Files
HouseHub/modules/holidays/holidays.css
T
2026-01-30 23:32:25 +01:00

571 lines
11 KiB
CSS

/* modules/holidays/holidays.css */
/* --- 1. VARIABLES & BASE --- */
:root {
--primary: #2563eb; /* Bleu vibrant */
--primary-hover: #1d4ed8;
--bg-page: #f1f5f9; /* Gris-bleu très pâle */
--bg-card: #ffffff;
--text-main: #1e293b; /* Gris très foncé (pas noir) */
--text-muted: #64748b;
--radius-l: 16px;
--radius-m: 10px;
--radius-s: 6px;
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg:
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-hover:
0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.pf-holidays {
background-color: var(--bg-page);
font-family:
"Segoe UI",
system-ui,
-apple-system,
sans-serif;
color: var(--text-main);
}
/* Titres */
.pf-holidays h1 {
font-size: 1.8rem;
font-weight: 800;
letter-spacing: -0.025em;
color: #0f172a;
margin-bottom: 0.5rem;
}
.pf-holidays p {
font-size: 0.95rem;
color: var(--text-muted);
line-height: 1.5;
}
/* --- 2. EN-TÊTE (TITLEBAR) --- */
.pf-holidays__titlebar {
background: transparent;
padding-bottom: 1rem;
margin-bottom: 2rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.hol-title-actions {
display: flex;
gap: 12px;
}
/* --- 3. BOUTONS MODERNES --- */
.btn,
.hol-add-btn,
.hol-map-toggle {
border: none;
border-radius: 50px; /* Pill shape */
padding: 10px 20px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: var(--shadow-sm);
}
/* Bouton principal (Ajouter) */
.hol-add-btn {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
}
.hol-add-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
/* Bouton Carte */
.hol-map-toggle {
background: white;
color: #0f766e;
border: 1px solid #ccfbf1;
}
.hol-map-toggle:hover {
background: #f0fdfa;
border-color: #99f6e4;
color: #0d9488;
}
/* Boutons classiques */
.btn {
background: white;
color: var(--text-main);
border: 1px solid #cbd5e1;
}
.btn:hover {
background: #f8fafc;
border-color: #94a3b8;
}
/* Actions contextuelles (edit/delete) dans les cards */
.btn-edit,
.btn-delete {
border-radius: var(--radius-s);
padding: 6px 12px;
font-size: 0.8rem;
box-shadow: none;
}
.btn-edit {
background: #f1f5f9;
color: #475569;
border: none;
}
.btn-edit:hover {
background: #e2e8f0;
color: #1e293b;
}
.btn-delete {
background: #fef2f2;
color: #dc2626;
border: none;
}
.btn-delete:hover {
background: #fee2e2;
color: #b91c1c;
}
/* --- 4. GRILLE & CARTES (Le cœur du design) --- */
.hol-ideas-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 24px;
margin-bottom: 40px;
}
.hol-idea-card {
background: var(--bg-card);
border-radius: var(--radius-l);
box-shadow: var(--shadow-md);
padding: 20px;
display: flex;
flex-direction: column;
transition:
transform 0.25s ease,
box-shadow 0.25s ease;
border: 1px solid transparent; /* Pour éviter le saut au hover */
position: relative;
overflow: hidden;
}
/* Effet au survol : la carte "flotte" */
.hol-idea-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
border-color: #e2e8f0;
}
/* Bande de couleur décorative en haut de carte selon statut (Optionnel mais joli) */
.hol-idea-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: #e2e8f0; /* Default */
}
.hol-idea-card:has(.hol-status--planned)::before {
background: #22c55e;
}
.hol-idea-card:has(.hol-status--favorite)::before {
background: #f59e0b;
}
.hol-idea-card:has(.hol-status--shortlist)::before {
background: #3b82f6;
}
.hol-idea-card__head {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 12px;
}
.hol-idea-card h3 {
margin: 0;
font-size: 1.15rem;
font-weight: 700;
line-height: 1.3;
color: var(--text-main);
margin-right: 8px;
}
.hol-idea-meta {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
/* Notes stylisées */
.hol-notes {
background: #fffbeb; /* Jaune très pâle, style post-it */
color: #78350f;
padding: 10px 12px;
border-radius: var(--radius-m);
font-size: 0.85rem;
font-style: italic;
margin-bottom: 16px;
flex-grow: 1;
border-left: 3px solid #fcd34d;
}
.hol-card-actions {
margin-top: auto;
display: flex;
gap: 8px;
padding-top: 16px;
border-top: 1px solid #f1f5f9;
}
/* Statuts (Badges Modernes) */
.hol-status {
padding: 4px 10px;
border-radius: 20px;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.hol-status--planned {
background: #dcfce7;
color: #15803d;
} /* Vert */
.hol-status--favorite {
background: #fff7ed;
color: #c2410c;
border: 1px solid #ffedd5;
} /* Orange */
.hol-status--shortlist {
background: #eff6ff;
color: #1d4ed8;
} /* Bleu */
.hol-status--draft {
background: #f1f5f9;
color: #64748b;
} /* Gris */
.hol-status--archived {
background: #f8fafc;
color: #94a3b8;
text-decoration: line-through;
}
/* Style spécifique pour les archivés */
.hol-idea-card--archived {
background: #f8fafc;
box-shadow: none;
border: 1px solid #e2e8f0;
opacity: 0.8;
}
/* --- 5. VUE DÉTAIL (Panels) --- */
.pf-section--panel {
background: white;
border-radius: var(--radius-l);
box-shadow: var(--shadow-sm);
padding: 24px;
margin-bottom: 24px;
border: 1px solid #f1f5f9;
}
.pf-section--panel h2 {
font-size: 1.25rem;
color: var(--text-main);
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 8px;
}
/* Petite ligne décorative sous le titre h2 */
.pf-section--panel h2::after {
content: "";
flex: 1;
height: 1px;
background: #e2e8f0;
margin-left: 12px;
}
.hol-list li {
padding: 12px 0;
border-bottom: 1px solid #f1f5f9;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.hol-list li:last-child {
border-bottom: none;
}
.hol-budget-summary {
background: linear-gradient(to right, #eff6ff, #ffffff);
border: 1px solid #dbeafe;
color: #1e40af;
padding: 16px;
border-radius: var(--radius-m);
font-weight: 600;
display: flex;
justify-content: space-between;
margin-bottom: 16px;
}
/* Formulaires Inline (Détail) */
.hol-inline-form {
background: #f8fafc;
padding: 12px;
border-radius: var(--radius-m);
border: 1px dashed #cbd5e1;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
margin-bottom: 20px;
}
.hol-inline-form input,
.hol-inline-form select {
border: 1px solid #cbd5e1;
border-radius: var(--radius-s);
padding: 8px 12px;
font-size: 0.9rem;
transition: border-color 0.2s;
}
.hol-inline-form input:focus,
.hol-inline-form select:focus {
border-color: var(--primary);
outline: 2px solid rgba(37, 99, 235, 0.1);
}
.hol-inline-form button {
background: #334155;
color: white;
border: none;
padding: 8px 16px;
border-radius: var(--radius-s);
cursor: pointer;
}
.hol-inline-form button:hover {
background: #1e293b;
}
/* --- 6. MODALES MODERNES (Glassmorphism léger) --- */
.hol-modal {
display: none;
}
.hol-modal.open {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
inset: 0;
z-index: 9999;
}
.hol-backdrop {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.6); /* Plus sombre */
backdrop-filter: blur(4px); /* Flou d'arrière plan */
}
.hol-dialog {
position: relative;
background: white;
width: min(600px, 90vw);
max-height: 90vh;
overflow-y: auto;
border-radius: 20px; /* Très arrondi */
box-shadow: var(--shadow-lg);
z-index: 10;
animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
from {
transform: scale(0.95) translateY(10px);
opacity: 0;
}
to {
transform: scale(1) translateY(0);
opacity: 1;
}
}
/* Modale Carte */
.hol-dialog--map {
width: 95vw;
height: 90vh;
max-width: 1400px;
padding: 0;
display: flex;
flex-direction: column;
}
/* Formulaires Modale */
.hol-form {
padding: 32px;
display: flex;
flex-direction: column;
gap: 16px;
}
.hol-form h3 {
font-size: 1.5rem;
margin-bottom: 12px;
color: var(--text-main);
}
.hol-form label {
font-weight: 600;
font-size: 0.85rem;
color: #475569;
margin-bottom: 4px;
}
.hol-form input,
.hol-form select,
.hol-form textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid #cbd5e1;
border-radius: var(--radius-m);
font-size: 1rem;
background: #f8fafc;
box-sizing: border-box; /* Important */
}
.hol-form input:focus,
.hol-form select:focus,
.hol-form textarea:focus {
background: white;
border-color: var(--primary);
outline: 4px solid rgba(37, 99, 235, 0.1);
}
.hol-inline {
display: flex;
gap: 16px;
}
.hol-inline > label {
flex: 1;
}
.hol-actions {
margin-top: 16px;
display: flex;
justify-content: flex-end;
gap: 12px;
}
.hol-cancel {
background: transparent;
color: var(--text-muted);
border: none;
font-weight: 600;
}
.hol-cancel:hover {
color: var(--text-main);
background: #f1f5f9;
}
.hol-ok {
background: var(--primary);
color: white;
border: none;
padding: 10px 24px;
border-radius: 50px;
font-weight: 600;
box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}
.hol-ok:hover {
background: var(--primary-hover);
transform: translateY(-1px);
}
/* --- 7. PICKER GEOCODE --- */
.hol-geocode-picker {
background: white;
border: 1px solid #e2e8f0;
border-radius: var(--radius-m);
box-shadow: var(--shadow-lg);
margin-top: 8px;
overflow: hidden;
}
.hol-geocode-picker__header {
background: #f8fafc;
padding: 8px 12px;
font-weight: 600;
font-size: 0.85rem;
display: flex;
justify-content: space-between;
}
.hol-geocode-picker__item {
padding: 10px 12px;
border-bottom: 1px solid #f1f5f9;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}
.hol-geocode-picker__item:hover {
background: #f0f9ff;
}
.hol-geocode-picker__item button {
background: white;
border: 1px solid #cbd5e1;
border-radius: 4px;
font-size: 0.75rem;
padding: 4px 8px;
}
/* --- 8. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
.hol-inline {
flex-direction: column;
gap: 12px;
}
.hol-inline-form {
flex-direction: column;
align-items: stretch;
}
.hol-inline-form button {
margin-top: 8px;
width: 100%;
}
.pf-holidays h1 {
font-size: 1.5rem;
}
.hol-idea-card {
padding: 16px;
}
.hol-ideas-grid {
gap: 16px;
}
.btn,
.hol-add-btn,
.hol-map-toggle {
width: 100%; /* Boutons pleine largeur sur mobile */
margin-bottom: 8px;
}
.hol-title-actions {
flex-direction: column;
width: 100%;
gap: 4px;
}
}