Deploy HouseHub / deploy (push) Successful in 1s
- GPS database (toll_gps.json): 414 péages géocodés via Nominatim (88.5% coverage, 468 plazas) - API PHP (voyage/api.php): estimation péages + carburant via OSRM routing - Matching opérateur/entrée/sortie par proximité GPS (80km radius) - Fallback haversine si OSRM indisponible - UI holidays/detail.php: panneau "Coût du trajet" (≥2 étapes) - Inputs conso L/100km et prix carburant configurables - Affichage distance, péages, carburant, total aller - Détail par segment en accordéon - CSS: classes hol-cost-stat pour les stats chiffrées Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1408 lines
28 KiB
CSS
1408 lines
28 KiB
CSS
/* modules/holidays/holidays.css */
|
|
|
|
/* --- 1. VARIABLES & BASE --- */
|
|
|
|
/* Bloque le défilement de la page en arrière-plan */
|
|
body.no-scroll {
|
|
overflow: hidden !important;
|
|
}
|
|
:root {
|
|
--primary: #2563eb;
|
|
--primary-hover: #1d4ed8;
|
|
--bg-card: var(--bg-panel);
|
|
--text-muted: #64748b;
|
|
--hol-accent-transport: #2563eb;
|
|
--hol-accent-accommodation: #059669;
|
|
--hol-accent-activity: #d97706;
|
|
--hol-info-bg: #e0f2fe;
|
|
--hol-info-text: #0369a1;
|
|
--hol-warning-bg: #fffbeb;
|
|
--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 (Refonte Responsive) --- */
|
|
.pf-holidays__titlebar {
|
|
background: transparent;
|
|
padding-bottom: 1rem;
|
|
margin-bottom: 2rem;
|
|
border-bottom: 1px solid var(--border-light);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.hol-title-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
flex: 1; /* Prend l'espace disponible */
|
|
}
|
|
|
|
.hol-main-title {
|
|
font-size: 1.8rem;
|
|
font-weight: 800;
|
|
color: var(--text-main);
|
|
margin: 0;
|
|
}
|
|
|
|
.hol-filters-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hol-year-select {
|
|
width: auto !important; /* Force la largeur au contenu sur PC */
|
|
padding: 6px 12px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.hol-badge-left-to-pay {
|
|
color: #be123c;
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
font-weight: bold;
|
|
font-size: 0.9rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.hol-badge-amount {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.hol-actions-group {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* --- 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: var(--bg-panel);
|
|
color: #0f766e;
|
|
border: 1px solid #ccfbf1;
|
|
}
|
|
.hol-map-toggle:hover {
|
|
background: #f0fdfa;
|
|
color: #0d9488;
|
|
border-color: #99f6e4;
|
|
}
|
|
|
|
.pf-btn.btn-secondary {
|
|
background: var(--bg-panel);
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border-strong);
|
|
box-shadow: none;
|
|
}
|
|
.pf-btn.btn-secondary:hover {
|
|
background: var(--bg-page);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
/* Petit bouton + pour les colonnes */
|
|
.btn-icon-small {
|
|
background: var(--bg-panel) !important;
|
|
border: 1px solid var(--border-light) !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: var(--bg-subtle) !important;
|
|
border-color: var(--border-strong) !important;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* --- 4. CARTES --- */
|
|
.hol-ideas-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 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: var(--border-light);
|
|
}
|
|
|
|
.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: var(--text-muted);
|
|
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: var(--bg-panel);
|
|
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 */
|
|
}
|
|
|
|
.hol-modal-content {
|
|
max-width: 800px;
|
|
width: 95%;
|
|
}
|
|
|
|
.hol-flex-1 {
|
|
flex: 1;
|
|
}
|
|
|
|
.hol-flex-2 {
|
|
flex: 2;
|
|
}
|
|
|
|
.hol-date-range-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.hol-divider {
|
|
border: 0;
|
|
border-top: 1px solid var(--border-light);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.hol-cat-transport {
|
|
color: var(--hol-accent-transport);
|
|
}
|
|
|
|
.hol-cat-accommodation {
|
|
color: var(--hol-accent-accommodation);
|
|
}
|
|
|
|
.hol-cat-activity {
|
|
color: var(--hol-accent-activity);
|
|
}
|
|
|
|
.hol-btn-delete {
|
|
color: var(--danger);
|
|
border-color: var(--border-danger-soft);
|
|
margin-right: auto;
|
|
display: none;
|
|
}
|
|
|
|
/* Cas spécifique modale carte */
|
|
.hol-dialog--map {
|
|
width: 95vw;
|
|
height: 90vh;
|
|
max-width: 1400px;
|
|
padding: 0;
|
|
background: var(--bg-panel);
|
|
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 var(--border-strong);
|
|
border-radius: var(--radius-m);
|
|
font-size: 1rem;
|
|
background: var(--bg-panel);
|
|
color: var(--text-main);
|
|
box-sizing: border-box;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.pf-input:focus {
|
|
background: var(--bg-panel);
|
|
border-color: var(--primary);
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px var(--focus-ring);
|
|
}
|
|
|
|
.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 {
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-light);
|
|
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 var(--border-light);
|
|
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: var(--bg-panel);
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-light);
|
|
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: var(--hol-accent-accommodation);
|
|
}
|
|
|
|
/* Checkbox Payé */
|
|
.savings-line-item label {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
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: var(--bg-danger-soft);
|
|
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 var(--border-light);
|
|
}
|
|
|
|
/* --- 10. MOBILE --- */
|
|
@media (max-width: 768px) {
|
|
.pf-holidays__titlebar {
|
|
flex-direction: column;
|
|
align-items: stretch; /* Étire les éléments de haut en bas */
|
|
gap: 15px;
|
|
}
|
|
.hol-title-group {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 15px;
|
|
}
|
|
|
|
.hol-filters-row {
|
|
justify-content: space-between; /* Écarte l'année et le badge */
|
|
width: 100%;
|
|
}
|
|
.hol-badge-left-to-pay {
|
|
flex: 1;
|
|
justify-content: center; /* Centre le texte dans le badge */
|
|
font-size: 0.8rem; /* Un peu plus petit sur mobile */
|
|
}
|
|
|
|
/* On empile proprement les boutons d'action */
|
|
.hol-title-actions {
|
|
width: 100%;
|
|
flex-direction: column; /* Essentiel pour que les boutons width: 100% ne s'écrasent pas */
|
|
gap: 10px;
|
|
}
|
|
.hol-actions-group .hol-add-btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
padding: 12px;
|
|
font-size: 1rem;
|
|
}
|
|
.hol-add-btn,
|
|
.hol-map-toggle {
|
|
width: 100%;
|
|
justify-content: center; /* Centre le texte et l'icône */
|
|
}
|
|
|
|
.form-row {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.hol-columns-wrapper {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* Modale 100% écran avec scroll natif fluide */
|
|
.pf-modal-content {
|
|
padding: 16px;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-height: 100vh;
|
|
border-radius: 0;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* Adaptation des lignes de budget sur mobile pour éviter qu'elles ne soient compressées */
|
|
.savings-line-item {
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
.savings-line-item input[type="text"] {
|
|
min-width: 100%; /* Le nom de la dépense prend toute la ligne */
|
|
}
|
|
.savings-line-item input[type="number"] {
|
|
flex-grow: 1; /* Le prix s'ajuste sur la 2ème ligne */
|
|
}
|
|
|
|
.hol-date-weather-wrapper {
|
|
gap: 6px;
|
|
}
|
|
|
|
.hol-cp-header {
|
|
align-items: flex-start;
|
|
flex-direction: column; /* On passe le titre et le prix l'un sous l'autre si besoin */
|
|
}
|
|
|
|
.hol-cp-info-group {
|
|
flex: 1;
|
|
min-width: 0;
|
|
width: 100%;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.hol-cp-title {
|
|
white-space: normal !important;
|
|
overflow: visible !important;
|
|
text-overflow: clip !important;
|
|
line-height: 1.4;
|
|
word-break: break-word;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.hol-cp-actions-group {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
margin-top: 8px;
|
|
}
|
|
}
|
|
|
|
/* --- 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: var(--hol-info-bg);
|
|
color: var(--hol-info-text);
|
|
}
|
|
|
|
/* Bloc Résumé Financier */
|
|
.hol-summary-card {
|
|
background: var(--bg-panel);
|
|
padding: 20px;
|
|
border-radius: var(--radius-l);
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--border-light);
|
|
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: var(--text-main);
|
|
}
|
|
|
|
/* 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: var(--bg-panel);
|
|
border-radius: var(--radius-l);
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--border-light);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 600px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hol-panel-header {
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: var(--bg-page);
|
|
}
|
|
|
|
.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 var(--border-light);
|
|
border-radius: 8px;
|
|
margin-bottom: 15px;
|
|
overflow: hidden;
|
|
background: var(--bg-panel);
|
|
}
|
|
|
|
.hol-cp-header {
|
|
background: var(--bg-page);
|
|
padding: 12px 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border-light);
|
|
gap: 12px;
|
|
}
|
|
|
|
.hol-cp-info-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.hol-cp-title {
|
|
color: var(--text-main);
|
|
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 var(--bg-subtle);
|
|
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 var(--border-light);
|
|
background: var(--hol-warning-bg);
|
|
flex-shrink: 0;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* --- 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 */
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
13. BARRE DE PROGRESSION & FINANCES
|
|
========================================================================== */
|
|
.hol-progress-bar {
|
|
width: 100%;
|
|
height: 12px;
|
|
background: #e2e8f0;
|
|
border-radius: 6px;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
.hol-progress-paid {
|
|
background: #10b981;
|
|
}
|
|
.hol-progress-saved {
|
|
background: #3b82f6;
|
|
}
|
|
|
|
.hol-progress-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.85rem;
|
|
}
|
|
.hol-label-paid {
|
|
color: #10b981;
|
|
font-weight: 600;
|
|
}
|
|
.hol-label-saved {
|
|
color: #3b82f6;
|
|
font-weight: 600;
|
|
}
|
|
.hol-label-left {
|
|
color: #ef4444;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
14. LÉGENDE DE LA CARTE
|
|
========================================================================== */
|
|
.hol-panel-header-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.hol-map-legend {
|
|
display: flex;
|
|
gap: 12px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
background: var(--bg-panel);
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
.hol-legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.hol-legend-color {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
}
|
|
.hol-legend-color.aller {
|
|
background: #3b82f6;
|
|
}
|
|
.hol-legend-color.interm {
|
|
background: #8b5cf6;
|
|
}
|
|
.hol-legend-color.retour {
|
|
background: transparent;
|
|
height: 0;
|
|
border-bottom: 3px dashed #f97316;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
15. LIGNES DE DÉPENSES (Timeline & Modale JS)
|
|
========================================================================== */
|
|
.hol-expense-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
margin-bottom: 8px;
|
|
border-bottom: 1px dashed var(--bg-subtle);
|
|
padding-bottom: 8px;
|
|
}
|
|
.hol-expense-wrapper:last-child {
|
|
margin-bottom: 0;
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.hol-expense-main {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
font-size: 0.85rem;
|
|
}
|
|
.hol-expense-name {
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
.hol-expense-amount {
|
|
color: var(--text-main);
|
|
font-weight: bold;
|
|
}
|
|
.status-paid {
|
|
color: #10b981;
|
|
margin-left: 5px;
|
|
}
|
|
.status-pending {
|
|
color: #f59e0b;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.hol-expense-note {
|
|
font-size: 0.75rem;
|
|
color: var(--border-strong);
|
|
padding-left: 24px;
|
|
word-break: break-all;
|
|
}
|
|
.hol-expense-link {
|
|
color: #3b82f6;
|
|
text-decoration: none;
|
|
}
|
|
.hol-expense-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.hol-empty-step {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
padding: 5px 0;
|
|
}
|
|
|
|
/* Boutons de petite taille */
|
|
.pf-btn-small {
|
|
padding: 6px 14px !important;
|
|
font-size: 0.85rem !important;
|
|
width: auto !important;
|
|
height: auto !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
/* Modale JS d'ajout de dépense */
|
|
.hol-form-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 10px;
|
|
background: var(--bg-page);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
.hol-form-inner {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
.hol-form-select {
|
|
width: 50px;
|
|
padding: 8px 4px;
|
|
font-size: 1.2rem;
|
|
cursor: pointer;
|
|
}
|
|
.hol-form-text {
|
|
flex: 2;
|
|
padding: 8px;
|
|
font-size: 0.9rem;
|
|
}
|
|
.hol-form-number {
|
|
width: 80px;
|
|
text-align: right;
|
|
padding: 8px;
|
|
font-size: 0.9rem;
|
|
}
|
|
.hol-form-paid-label {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
width: 55px;
|
|
}
|
|
.hol-form-paid-text {
|
|
font-size: 0.75rem;
|
|
margin-left: 4px;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
}
|
|
.hol-form-notes-input {
|
|
font-size: 0.8rem;
|
|
padding: 6px 8px;
|
|
border-style: dashed;
|
|
color: var(--text-muted);
|
|
width: calc(100% - 58px);
|
|
margin-left: 58px;
|
|
}
|
|
.btn-remove-expense {
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
background: #fee2e2;
|
|
color: #ef4444;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
transition: 0.2s;
|
|
}
|
|
.btn-remove-expense:hover {
|
|
background: #fca5a5;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
16. PLANNING DRAG & DROP (CARNET DE VOYAGE)
|
|
========================================================================== */
|
|
/* Simplification de la sous-ligne du formulaire d'édition */
|
|
.hol-form-subrow {
|
|
display: flex;
|
|
margin-top: 6px;
|
|
padding-left: 58px;
|
|
}
|
|
.hol-form-notes-full {
|
|
margin: 0 !important;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Layout du Planning Interactif */
|
|
.hol-planning-layout {
|
|
display: flex;
|
|
gap: 20px;
|
|
height: 65vh;
|
|
align-items: stretch;
|
|
overflow: hidden;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.hol-planning-layout {
|
|
flex-direction: column;
|
|
height: 75vh;
|
|
}
|
|
.hol-unmapped-zone {
|
|
width: 100%;
|
|
height: 180px;
|
|
min-height: 180px;
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
align-items: flex-start;
|
|
}
|
|
.hol-calendar-zone {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
/* Zone des activités non planifiées */
|
|
.hol-unmapped-zone {
|
|
width: 250px;
|
|
background: var(--bg-page);
|
|
padding: 15px;
|
|
border-radius: 12px;
|
|
border: 2px dashed var(--border-strong);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
overflow-y: auto;
|
|
}
|
|
.hol-unmapped-title {
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
margin-bottom: 5px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Grille du calendrier */
|
|
.hol-calendar-zone {
|
|
flex: 1;
|
|
display: flex;
|
|
gap: 15px;
|
|
overflow: auto; /* Gère à la fois gauche/droite ET haut/bas */
|
|
padding-bottom: 10px;
|
|
position: relative;
|
|
}
|
|
.hol-calendar-zone::-webkit-scrollbar,
|
|
.hol-unmapped-zone::-webkit-scrollbar {
|
|
height: 10px;
|
|
}
|
|
.hol-calendar-zone::-webkit-scrollbar-track,
|
|
.hol-unmapped-zone::-webkit-scrollbar-track {
|
|
background: var(--bg-subtle);
|
|
border-radius: 5px;
|
|
}
|
|
.hol-calendar-zone::-webkit-scrollbar-thumb,
|
|
.hol-unmapped-zone::-webkit-scrollbar-thumb {
|
|
background: var(--border-strong);
|
|
border-radius: 5px;
|
|
}
|
|
.hol-calendar-zone::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
.hol-calendar-zone .hol-drag-item {
|
|
position: absolute;
|
|
top: 1px;
|
|
left: 45px;
|
|
right: 5px;
|
|
height: calc(75px * var(--duration) - 2px);
|
|
}
|
|
/* Dans la boîte d'attente : Position normale */
|
|
.hol-unmapped-zone .hol-drag-item {
|
|
position: relative;
|
|
min-width: 150px;
|
|
height: auto;
|
|
}
|
|
|
|
/* Mode "Tap-to-Move" pour Mobile */
|
|
.hol-drag-item.selected-for-move {
|
|
border-color: #f59e0b;
|
|
transform: scale(1.02);
|
|
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
|
|
}
|
|
|
|
/* Boutons Durée */
|
|
.hol-item-duration-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
margin: 0;
|
|
padding: 2px;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.4); /* Léger fond pour se détacher */
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.hol-day-column {
|
|
min-width: 220px;
|
|
flex: 1;
|
|
background: white;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-light);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: max-content; /* Laisse la colonne grandir jusqu'à 22h */
|
|
overflow: visible;
|
|
}
|
|
|
|
.hol-calendar-day-header {
|
|
text-align: center;
|
|
padding: 12px 10px;
|
|
background: #f8fafc;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
position: sticky;
|
|
top: 0; /* Garde la date toujours visible en haut ! */
|
|
z-index: 20;
|
|
}
|
|
|
|
/* Les créneaux horaires (Drop Zones) */
|
|
.hol-time-slots-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.hol-time-slot {
|
|
height: 75px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
position: relative;
|
|
transition: background 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.hol-time-slot.drag-over {
|
|
background: #e0f2fe; /* Surbrillance quand on survole avec une activité */
|
|
}
|
|
.hol-slot-label {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 5px;
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
color: #94a3b8;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* L'Activité (Élément draggable) */
|
|
.hol-drag-item {
|
|
background: white;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
|
|
cursor: grab;
|
|
font-size: 0.85rem;
|
|
border: 1px solid var(--border-light);
|
|
border-left: 4px solid var(--primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 10;
|
|
overflow: hidden;
|
|
transition:
|
|
transform 0.2s,
|
|
border-color 0.2s;
|
|
}
|
|
.hol-drag-item:active {
|
|
cursor: grabbing;
|
|
}
|
|
.hol-drag-item.cat-accommodation {
|
|
border-left-color: #8b5cf6;
|
|
}
|
|
.hol-drag-item.cat-transport {
|
|
border-left-color: #10b981;
|
|
}
|
|
|
|
.hol-drag-title {
|
|
font-weight: 600;
|
|
color: #0f172a;
|
|
line-height: 1.2;
|
|
}
|
|
.hol-drag-note {
|
|
font-size: 0.75rem;
|
|
color: #64748b;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Élargir la modale de planning */
|
|
#planningModal .pf-modal-content {
|
|
max-width: 1100px !important;
|
|
width: 95%;
|
|
}
|
|
|
|
.hol-dur-btn {
|
|
background: #f1f5f9;
|
|
border: none;
|
|
border-radius: 4px;
|
|
width: 18px;
|
|
height: 18px; /* Plus petit */
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
color: #475569;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.8rem;
|
|
}
|
|
.hol-dur-btn:hover {
|
|
background: #e2e8f0;
|
|
}
|
|
.hol-dur-text {
|
|
font-size: 0.7rem;
|
|
color: #64748b;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.highlight-step {
|
|
transition:
|
|
box-shadow 0.3s,
|
|
transform 0.3s;
|
|
box-shadow: 0 0 0 3px var(--primary);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
/* Style du badge météo injecté par le JS */
|
|
.hol-weather-info {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.pf-weather-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: #f8fafc; /* Slate 50 */
|
|
border: 1px solid var(--border-light); /* Slate 200 */
|
|
padding: 1px 6px;
|
|
border-radius: 6px;
|
|
color: #475569; /* Slate 600 */
|
|
font-weight: 600;
|
|
font-size: 0.7rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.pf-weather-icon {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Conteneur Date + Météo */
|
|
.hol-date-weather-wrapper {
|
|
font-size: 0.75rem;
|
|
color: #64748b;
|
|
font-weight: normal;
|
|
margin-top: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap; /* Le secret pour le responsive ! */
|
|
}
|
|
|
|
/* On s'assure que le texte de la date ne se coupe pas au milieu d'un mot */
|
|
.hol-step-dates {
|
|
white-space: nowrap;
|
|
}
|
|
.leaflet-container img.leaflet-tile {
|
|
pointer-events: none !important;
|
|
user-select: none !important;
|
|
-moz-user-select: none !important;
|
|
}
|
|
#tripMap {
|
|
touch-action: none;
|
|
}
|
|
|
|
/* --- Toll cost estimator panel --- */
|
|
.hol-cost-stat { background: var(--bg-page, #f8fafc); border: 1px solid var(--border-light, #e2e8f0); border-radius: 10px; padding: .75rem 1rem; text-align: center; }
|
|
.hol-cost-stat-val { font-size: 1.2rem; font-weight: 700; color: var(--text-main, #0f172a); }
|
|
.hol-cost-stat-label { font-size: .72rem; color: var(--text-muted, #64748b); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
|
|
.hol-cost-total { border-color: var(--primary, #4361ee); }
|
|
.hol-cost-total .hol-cost-stat-val { color: var(--primary, #4361ee); }
|