/* modules/holidays/holidays.css */ /* --- 1. VARIABLES & BASE --- */ :root { --primary: #2563eb; --primary-hover: #1d4ed8; --bg-page: #f1f5f9; --bg-card: #ffffff; --text-main: #1e293b; --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); padding-bottom: 50px; } /* --- 2. EN-TÊTE --- */ .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; } .pf-holidays__titlebar h1 { font-size: 1.8rem; font-weight: 800; color: #0f172a; margin: 0; } .hol-title-actions { display: flex; gap: 12px; } /* --- 3. BOUTONS --- */ .hol-add-btn, .hol-map-toggle, .pf-btn { border: none; border-radius: 50px; 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; box-shadow: var(--shadow-sm); text-decoration: none; } .hol-add-btn, .pf-btn { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; } .hol-add-btn:hover, .pf-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); } .hol-map-toggle { background: white; color: #0f766e; border: 1px solid #ccfbf1; } .hol-map-toggle:hover { background: #f0fdfa; color: #0d9488; border-color: #99f6e4; } .pf-btn.btn-secondary { background: white; color: var(--text-muted); border: 1px solid #cbd5e1; box-shadow: none; } .pf-btn.btn-secondary:hover { background: #f8fafc; color: var(--text-main); } /* Petit bouton + pour les colonnes */ .btn-icon-small { background: white !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; width: 32px !important; height: 32px !important; min-width: 32px !important; padding: 0 !important; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-sm); } .btn-icon-small:hover { background: #f1f5f9 !important; border-color: #cbd5e1 !important; transform: scale(1.05); } /* --- 4. CARTES --- */ .hol-ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 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; cursor: pointer; position: relative; overflow: hidden; } .hol-idea-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #e2e8f0; } .hol-idea-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; } .hol-idea-card h3 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--text-main); line-height: 1.3; } .hol-idea-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; } .hol-notes { font-size: 0.85rem; color: #64748b; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-style: italic; } /* --- 5. UTILITAIRES STATUTS --- */ .bg-green-100 { background-color: #dcfce7; } .text-green-800 { color: #166534; } .bg-blue-100 { background-color: #dbeafe; } .text-blue-800 { color: #1e40af; } .bg-yellow-50 { background-color: #fefce8; } .text-yellow-800 { color: #854d0e; } .bg-gray-100 { background-color: #f3f4f6; } .text-gray-600 { color: #4b5563; } /* --- 6. MODALE & FORMULAIRE (Refonte Centrage & Largeur) --- */ .pf-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; /* Centrage Vertical */ justify-content: center; /* Centrage Horizontal */ background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); } .pf-modal.open { display: flex; } .pf-modal-content { position: relative; background: white; width: 95%; /* Responsive */ max-width: 1100px; /* Largeur augmentée pour 3 colonnes */ max-height: 90vh; overflow-y: auto; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px; display: flex; flex-direction: column; margin: auto; /* Sécurité centrage */ } /* Cas spécifique modale carte */ .hol-dialog--map { width: 95vw; height: 90vh; max-width: 1400px; padding: 0; background: white; border-radius: 12px; display: flex; flex-direction: column; } /* Inputs généraux */ .pf-label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; } .pf-input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: var(--radius-m); font-size: 1rem; background: #ffffff; /* Fond blanc forcé */ color: var(--text-main); box-sizing: border-box; transition: all 0.2s; } .pf-input:focus { background: white; border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } /* --- 7. SECTIONS DE DÉTAILS (Transport/Hotel/Activité) --- */ .hol-columns-wrapper { display: flex; /* Flexbox */ flex-direction: column; /* Alignement vertical (les uns sous les autres) */ gap: 24px; /* Espace entre les blocs */ width: 100%; } .hol-col { background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; width: 100%; /* Prend toute la largeur disponible */ box-sizing: border-box; /* Empêche le padding de casser la largeur */ } .hol-col-header { display: flex; justify-content: space-between; /* Titre à gauche, bouton à droite */ align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; margin-bottom: 12px; } .hol-col-header h4 { margin: 0; font-size: 1rem; text-transform: uppercase; font-weight: 700; /* On retire les bordures/marges de l'ancien h4 car c'est le header qui gère */ border: none; padding: 0; } /* Le bouton "+" style Gift List */ .btn-add-item { /* Style de base */ background: rgba(255, 255, 255, 0.6); color: var(--text-muted); border: 1px solid rgba(0, 0, 0, 0.1); /* Forme et Taille */ width: 28px; height: 28px; border-radius: 50%; /* Texte */ font-size: 18px; line-height: 1; /* Flex pour centrer le + */ display: flex; align-items: center; justify-content: center; cursor: pointer; /* Animation fluide "Cubic Bezier" copiée de gift-list */ transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .btn-add-item:hover { background: white; color: var(--primary); /* On ajoute la couleur primaire au survol */ /* L'effet de rotation et d'agrandissement */ transform: rotate(90deg) scale(1.1); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); border-color: currentColor; } /* --- 8. ITEMS DYNAMIQUES (Inputs optimisés) --- */ .savings-line-item { display: flex; align-items: center; gap: 8px; /* Espace réduit */ margin-bottom: 10px; background: white; padding: 8px; border-radius: 8px; border: 1px solid #f1f5f9; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); } /* Champ NOM : prend toute la place */ .savings-line-item input[type="text"] { flex-grow: 1; min-width: 120px; padding: 6px 10px; font-size: 0.9rem; } /* Champ PRIX : compact */ .savings-line-item input[type="number"] { width: 120px !important; padding: 6px 8px !important; text-align: right; font-weight: 600; color: #059669; } /* Checkbox Payé */ .savings-line-item label { display: flex; align-items: center; font-size: 0.75rem; color: #64748b; gap: 4px; cursor: pointer; white-space: nowrap; } /* Bouton Supprimer (Croix) */ .btn-remove { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: transparent; color: #ef4444; border: none; border-radius: 4px; font-size: 1.2rem; cursor: pointer; line-height: 1; transition: background 0.2s; } .btn-remove:hover { background: #fef2f2; color: #b91c1c; } /* --- 9. FOOTER MODALE --- */ .modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; } /* --- 10. MOBILE --- */ @media (max-width: 768px) { .pf-holidays__titlebar { flex-direction: column; align-items: flex-start; } .hol-title-actions { width: 100%; } .hol-add-btn, .hol-map-toggle { width: 100%; } .form-row { flex-direction: column; gap: 10px; } /* Sur mobile, les colonnes s'empilent */ .hol-columns-wrapper { grid-template-columns: 1fr; } .pf-modal-content { padding: 16px; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; } } /* --- 11. CALENDRIER & DATES (Force Light Theme) --- */ input[type="date"] { color-scheme: light; /* Force le popup blanc */ background-color: #ffffff; color: #1e293b; } /* Cible spécifique pour l'icône calendrier (Chrome/Edge/Safari) */ input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; filter: invert(0); } input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; } /* ========================================================================== 12. PAGE DE DÉTAIL DU VOYAGE (detail.php) ========================================================================== */ /* Structure principale de la page détail */ .pf-holidays-detail { padding-top: 10px; } /* En-tête de la page détail */ .hol-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; } .hol-detail-title-group { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; } .hol-detail-title-group h1 { margin: 0; font-size: 1.5rem; color: var(--text-main); } .hol-badge-status { font-size: 0.75rem; padding: 4px 10px; border-radius: 12px; font-weight: bold; background: #e0f2fe; color: #0369a1; } /* Bloc Résumé Financier */ .hol-summary-card { background: white; padding: 20px; border-radius: var(--radius-l); box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0; margin-bottom: 24px; } .hol-summary-grid { display: flex; justify-content: space-between; margin-bottom: 15px; flex-wrap: wrap; gap: 15px; } .hol-summary-item { min-width: 150px; } .hol-summary-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; } .hol-summary-value { font-weight: 600; color: var(--text-main); font-size: 1.1rem; } .hol-summary-value.total { font-size: 1.4rem; font-weight: bold; color: #0f172a; } /* Grille principale : Carte + Timeline */ .hol-layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: stretch; } /* Panneaux (Carte et Timeline) */ .hol-panel { background: white; border-radius: var(--radius-l); box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0; display: flex; flex-direction: column; height: 600px; overflow: hidden; } .hol-panel-header { padding: 15px 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; } .hol-panel-header h3 { margin: 0; font-size: 1.1rem; color: var(--text-main); } .hol-panel-body { padding: 15px; overflow-y: auto; flex: 1; } /* Styles des Checkpoints (Timeline) */ .hol-checkpoint { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 15px; overflow: hidden; background: white; } .hol-cp-header { background: #f8fafc; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; gap: 12px; } .hol-cp-info-group { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; } .hol-cp-title { color: #0f172a; font-size: 0.95rem; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hol-cp-title:hover { color: var(--primary); } .hol-cp-actions-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .hol-cp-total { font-size: 0.9rem; font-weight: 700; color: var(--primary); white-space: nowrap; } .hol-cp-body { padding: 10px 15px; } .hol-expense-line { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 5px; border-bottom: 1px dashed #f1f5f9; padding-bottom: 5px; } .hol-expense-line:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .hol-notes-panel { padding: 15px; border-top: 1px solid #e2e8f0; background: #fffbeb; } /* --- RESPONSIVE DETAIL PAGE --- */ @media (max-width: 992px) { .hol-layout-grid { grid-template-columns: 1fr; /* Sur tablette/mobile, la carte et la liste s'empilent */ } .hol-panel { height: 500px; /* On réduit un peu la hauteur pour que ce soit agréable sur mobile */ } .hol-summary-grid { flex-direction: column; /* Les infos financières s'empilent */ } .hol-summary-item { text-align: left !important; /* On annule l'alignement à droite du total */ } }