/* ============================================
   TRIVACOM THEME - CSS COMPLET (v2.1)
   ============================================ */

:root {
    --primary: #0077cc;
    --primary-dark: #005fa3;
    --secondary: #ff6b35;
    --accent: #00c853;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.trivacom-header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
}

.logo-triva { color: var(--primary); }
.logo-com { color: var(--secondary); }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    padding: 14px 32px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.search-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-medium);
}

/* ============================================
   DESTINATIONS
   ============================================ */
.popular-destinations {
    padding: 80px 0;
}

.section-subtitle {
    color: var(--text-medium);
    margin-bottom: 40px;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.destination-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
    display: block;
}

.destination-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.destination-card:hover .destination-image {
    transform: scale(1.05);
}

.destination-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.destination-card h3 {
    position: absolute;
    bottom: 40px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.hotel-count {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ============================================
   TOP RATED SECTION
   ============================================ */
.top-rated {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* ============================================
   HOTEL GRID v2
   ============================================ */
.hotel-grid-v2,
.trivacom-hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ============================================
   HOTEL CARD v2
   ============================================ */
.hotel-card-v2 {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.hotel-card-v2:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

/* Image */
.hotel-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotel-card-v2:hover .hotel-card-image img {
    transform: scale(1.08);
}

/* Badge prix */
.hotel-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

.hotel-price-badge .price-from {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hotel-price-badge .price-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.hotel-price-badge .price-per {
    display: block;
    font-size: 11px;
    opacity: 0.9;
}

/* Badge destination */
.hotel-destination-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Contenu */
.hotel-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.hotel-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.hotel-name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.hotel-name a:hover {
    color: var(--primary);
}

.hotel-address {
    color: var(--text-medium);
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hotel-address .icon {
    font-size: 16px;
}

/* Equipements */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.amenity-tag {
    padding: 4px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 500;
    transition: var(--transition);
}

.amenity-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.amenity-more {
    padding: 4px 12px;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* Description */
.hotel-excerpt {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Actions */
.hotel-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.btn-secondary {
    padding: 12px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-icon {
    padding: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */
.search-header {
    background: var(--primary);
    padding: 30px 0;
}

.search-header .search-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 20px;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.filters-panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.filters-panel h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--text-medium);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.price-range {
    padding: 10px 0;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 8px;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-medium);
}

.btn-apply-filters,
.btn-reset-filters {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-bottom: 8px;
}

.btn-apply-filters {
    background: var(--primary);
    color: white;
}

.btn-reset-filters {
    background: transparent;
    color: var(--text-medium);
    border: 1px solid var(--border);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-header h1 {
    font-size: 24px;
}

.results-count {
    color: var(--text-medium);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hotels-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hotels-list .hotel-card-v2 {
    flex-direction: row;
    max-height: 260px;
}

.hotels-list .hotel-card-image {
    width: 320px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.hotels-list .hotel-card-content {
    flex: 1;
    justify-content: center;
}

.hotels-list .hotel-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--text-medium);
}

.no-results {
    text-align: center;
    padding: 60px;
    color: var(--text-medium);
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.trivacom-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .features-grid,
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hotel-grid-v2,
    .trivacom-hotel-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .hotels-list .hotel-card-v2 {
        flex-direction: column;
        max-height: none;
    }

    .hotels-list .hotel-card-image {
        width: 100%;
        aspect-ratio: 16/10;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .features-grid,
    .destinations-grid,
    .hotel-grid-v2,
    .trivacom-hotel-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hotel-actions {
        flex-wrap: wrap;
    }

    .btn-primary,
    .btn-secondary {
        flex: 1 1 calc(50% - 5px);
    }
}


/* ============================================
   PAGE DESTINATION (taxonomy-destination.php)
   ============================================ */

.destination-archive-page {
    min-height: 100vh;
}

/* Header destination */
.destination-header {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.destination-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
}

.destination-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.destination-header-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 20px 40px;
    max-width: 800px;
}

.breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 10px;
    opacity: 0.6;
}

.breadcrumbs .current {
    opacity: 0.8;
}

.destination-header-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.destination-count {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Search box compacte */
.search-box.compact {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 15px;
    max-width: 600px;
}

.search-box.compact .search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box.compact .search-field {
    flex: 1;
}

.search-box.compact .search-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    font-size: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--text-dark);
}

.search-box.compact .search-field input:focus {
    outline: none;
    border-color: var(--secondary);
}

.search-box.compact .search-btn {
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Section hotels */
.destination-hotels {
    padding: 50px 0;
    background: var(--bg-light);
}

.destination-hotels .results-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.destination-hotels .sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.destination-hotels .sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination .page-numbers {
    padding: 10px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Autres destinations */
.other-destinations {
    padding: 60px 0;
    background: var(--bg-white);
}

.other-destinations h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.destinations-grid.small {
    grid-template-columns: repeat(4, 1fr);
}

.destination-card.small {
    aspect-ratio: 3/2;
}

.destination-card.small h3 {
    font-size: 18px;
    bottom: 30px;
}

.destination-card.small .hotel-count {
    font-size: 12px;
    bottom: 12px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.no-results p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .destinations-grid.small {
        grid-template-columns: repeat(2, 1fr);
    }

    .destination-header-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .destination-header {
        min-height: 280px;
    }

    .destination-header-content h1 {
        font-size: 26px;
    }

    .search-box.compact .search-form {
        flex-direction: column;
    }

    .search-box.compact .search-btn {
        width: 100%;
    }

    .destinations-grid.small {
        grid-template-columns: 1fr;
    }

    .destination-hotels .results-header {
        justify-content: center;
    }
}


/* ============================================
   FLATPICKR - Styles additionnels
   ============================================ */

.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.flatpickr-month {
    border-radius: 12px 12px 0 0;
    background: #0077cc;
    color: white;
    fill: white;
}

.flatpickr-current-month {
    padding-top: 12px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
    font-size: 15px;
}

.flatpickr-current-month input.cur-year {
    font-weight: 600;
    font-size: 15px;
}

.flatpickr-weekdays {
    background: #f8f9fa;
}

.flatpickr-weekday {
    color: #555;
    font-weight: 600;
    font-size: 12px;
}

.flatpickr-day {
    border-radius: 8px;
    font-size: 14px;
    line-height: 36px;
    height: 36px;
    margin: 2px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

.flatpickr-day.inRange {
    background: rgba(255,107,53,0.12);
    border-color: rgba(255,107,53,0.12);
    color: #333;
    box-shadow: -5px 0 0 rgba(255,107,53,0.12), 5px 0 0 rgba(255,107,53,0.12);
}

.flatpickr-day.today {
    border-color: #0077cc;
    color: #0077cc;
    font-weight: 700;
}

.flatpickr-day.today:hover {
    background: #0077cc;
    color: white;
}

.flatpickr-day:hover {
    background: #f0f0f0;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #ccc;
    cursor: not-allowed;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: white;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: rgba(255,255,255,0.8);
}

/* Input dates avec icone calendrier */
#search-dates {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 44px;
}

/* Alt input (affichage formate) */
.flatpickr-input[readonly] {
    cursor: pointer;
}

/* Bouton effacer dans le calendrier */
.flatpickr-clear-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    border-top: 1px solid #e8e8e8;
    transition: background 0.2s;
}

.flatpickr-clear-btn:hover {
    background: #e8e8e8;
    color: #333;
}

/* Responsive : 1 mois sur mobile */
@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 100% !important;
        max-width: 320px;
    }

    .flatpickr-days {
        width: 100% !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}