Files
HouseHub/modules/holidays/holidays.css
T
FeFeClochette 659b286967
Deploy HouseHub / deploy (push) Successful in 3s
imprv roadtrip
2026-07-28 08:51:55 +02:00

1776 lines
36 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: 6px 8px;
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;
}
/* 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(60px * 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: 60px;
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;
}
/* Bouton pour retirer une carte du planning (Undo) */
.hol-unplace-btn {
display: none; /* Caché par défaut dans la zone "À placer" */
background: #fee2e2;
color: #ef4444;
border: 1px solid #fca5a5;
border-radius: 4px;
width: 24px;
height: 24px;
cursor: pointer;
font-size: 0.85rem;
align-items: center;
justify-content: center;
padding: 0;
transition: all 0.2s;
margin-left: 4px;
}
.hol-unplace-btn:hover {
background: #ef4444;
color: white;
}
/* Le bouton n'apparaît QUE quand la carte est physiquement dans le calendrier */
.hol-time-slot .hol-drag-item .hol-unplace-btn {
display: flex;
}
.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: 0.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: 0.72rem;
color: var(--text-muted, #64748b);
margin-top: 2px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.hol-cost-total {
border-color: var(--primary, #4361ee);
}
.hol-cost-total .hol-cost-stat-val {
color: var(--primary, #4361ee);
}
/* ==========================================================================
17. ENCART D'ESTIMATION DE TRAJET (OSRM)
========================================================================== */
.hol-transit-info {
margin: 0 15px 15px 15px;
padding: 12px 16px;
background: var(--hol-info-bg);
border-radius: var(--radius-m);
border: 1px dashed #7dd3fc;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
transition: all 0.2s ease;
}
.hol-transit-details {
font-size: 0.85rem;
color: var(--hol-info-text);
display: flex;
align-items: center;
gap: 12px;
}
.hol-transit-icon {
font-size: 1.6rem;
line-height: 1;
}
.hol-transit-text strong {
font-size: 0.95rem;
}
.hol-transit-text span {
opacity: 0.85;
font-size: 0.8rem;
display: block;
margin-top: 2px;
}
.hol-transit-btn {
padding: 6px 14px;
font-size: 0.8rem;
white-space: nowrap;
}
@media (max-width: 768px) {
.hol-transit-info {
margin: 0 10px 15px 10px;
padding: 10px;
flex-direction: column;
align-items: flex-start;
}
.hol-transit-btn {
width: 100%;
justify-content: center;
}
}
/* --- EN-TÊTE DES ÉTAPES ROADTRIP --- */
.hol-step-header {
padding: 6px 8px;
border-bottom: 1px solid var(--border-light);
display: flex;
flex-direction: column;
gap: 8px;
}
/* Ligne 1 : Icône + Titre + Poignée */
.hol-step-row-top {
display: flex;
align-items: flex-start;
gap: 10px;
width: 100%;
}
.hol-step-icon {
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
flex-shrink: 0;
margin-top: 2px;
}
.hol-step-title {
flex: 1;
font-size: 1.05rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.3;
word-break: break-word;
cursor: pointer;
padding-top: 4px;
}
.hol-step-controls {
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: center;
}
.hol-drag-handle {
color: #cbd5e1;
font-size: 1.4rem;
cursor: grab;
user-select: none;
line-height: 1;
}
.hol-step-arrows {
display: flex;
flex-direction: column;
gap: 0;
}
.hol-step-arrows button {
background: transparent;
border: none;
color: #94a3b8;
font-size: 0.75rem;
padding: 4px 8px;
cursor: pointer;
line-height: 1;
}
/* Ligne 2 : Tags/Dates + Prix/Actions */
.hol-step-row-bottom {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 5px;
width: 100%;
}
.hol-step-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.hol-tag-return {
background: #fff7ed;
color: #ea580c;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 700;
border: 1px solid #ffedd5;
line-height: 1.2;
}
.hol-step-date {
font-size: 0.8rem;
color: #64748b;
background: var(--bg-page);
padding: 2px 6px;
border-radius: 4px;
border: 1px solid var(--border-light);
line-height: 1.2;
}
.hol-step-actions {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto; /* Pousse le prix et les boutons tout à droite */
}
.hol-step-price {
font-weight: 800;
color: var(--primary);
white-space: nowrap;
}
/* Optimisation Mobile */
@media (max-width: 768px) {
.hol-step-row-bottom {
padding-left: 0; /* Sur mobile, on prend toute la largeur pour éviter d'écraser les boutons */
}
}
/* --- LIGNES DE DÉPENSES --- */
.hol-expense-main {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
}
.hol-expense-name {
flex: 1;
min-width: 0;
word-break: break-word;
}
.hol-expense-price-group {
display: inline-flex;
align-items: center;
gap: 6px;
white-space: nowrap; /* Interdit le passage à la ligne */
flex-shrink: 0; /* Empêche le bloc d'être écrasé */
margin-top: 2px;
}
.hol-expense-price-group .status-paid,
.hol-expense-price-group .status-pending {
line-height: 1;
}
/* ============================================================================
📱 UX MOBILE : MODALE DE PLANNING (DRAG & DROP)
============================================================================ */
@media (max-width: 768px) {
/* --- MODALE GLOBALE --- */
#planningModal .pf-modal-content {
padding: 8px !important;
height: 98vh !important;
max-height: 98vh !important;
display: flex !important;
flex-direction: column !important;
}
#planningModal .pf-modal-content > div:first-child {
margin-bottom: 6px !important;
padding-bottom: 6px !important;
}
#planningModalTitle {
font-size: 1rem !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#planningContainer > div {
flex-direction: column !important;
padding-bottom: 0 !important;
gap: 8px !important;
height: 100% !important;
}
/* --- 1. LE CALENDRIER (EN HAUT) --- */
.hol-calendar-zone {
width: 100% !important;
flex: 1 1 auto !important; /* Le calendrier prend tout l'espace restant */
order: 1 !important;
padding-bottom: 10px !important;
margin-top: 0 !important;
gap: 6px !important;
}
/* 🎯 Header des Jours ultra-compressé */
.hol-calendar-day-header {
padding: 4px !important;
}
.hol-cal-weekday {
font-size: 0.6rem !important;
margin-bottom: 0 !important;
}
.hol-cal-date {
font-size: 0.9rem !important;
line-height: 1 !important;
margin-bottom: 2px !important;
}
div[id^="plan-weather-"] {
min-height: 14px !important;
margin-top: 0 !important;
}
div[id^="plan-weather-"] .pf-weather-badge {
padding: 1px 4px !important;
font-size: 0.55rem !important;
}
.hol-time-slot {
min-height: 40px !important;
padding: 4px !important;
}
/* --- 2. LA ZONE "À PLACER" (BOTTOM SHEET - 30%) --- */
.hol-unmapped-zone {
width: 100% !important;
height: 30vh !important; /* 🔼 Prend exactement 30% de l'écran */
min-height: 180px !important;
flex: 0 0 auto !important; /* 🛡️ Protection anti-écrasement */
order: 2 !important;
border-radius: 12px 12px 0 0 !important;
border-top: 2px solid var(--primary) !important;
border-bottom: none !important;
border-left: none !important;
border-right: none !important;
box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15) !important;
margin: 0 -8px -8px -8px !important;
padding: 12px 10px 15px 10px !important;
z-index: 100;
background: var(--bg-panel) !important;
display: flex !important;
flex-direction: column !important; /* ↕️ On repasse en mode vertical */
}
.hol-unmapped-title {
font-size: 0.8rem !important;
margin-bottom: 8px !important;
flex-shrink: 0 !important;
}
/* --- 3. LISTE VERTICALE (Scroll Down) --- */
#unmapped-pool {
flex-direction: column !important; /* ↕️ Les cartes s'empilent */
overflow-y: auto !important; /* ↕️ Apparition du scroll vertical */
overflow-x: hidden !important;
padding-bottom: 10px !important;
padding-right: 5px !important; /* Espace pour la barre de scroll */
gap: 8px !important;
-webkit-overflow-scrolling: touch;
flex: 1 !important; /* Prend tout l'espace des 30vh */
align-items: stretch !important;
}
/* 🎯 Les cartes s'adaptent à 100% de la largeur du téléphone */
#unmapped-pool .hol-drag-item {
width: 100% !important;
height: auto !important;
min-height: 50px !important;
padding: 8px 10px !important;
white-space: normal !important;
}
/* 🗑️ On cache le footer de la modale pour gagner de l'espace */
#planningModal .modal-footer {
display: none !important;
}
}