@media (prefers-color-scheme: light) {
    /* Surcharges de fin de fichier pour garantir le thème clair
       sur les sections principales, même si des styles sombres
       sont définis plus haut dans le fichier. */
    .travel-type-selection {
        background-color: #f9fafb !important;
    }

    .search-container {
        background-color: #f9fafb !important;
        color: #111827 !important;
    }

    .popular-countries-section,
    .popular-hotels-section {
        background-color: #f9fafb !important;
        color: #111827 !important;
    }
}
*** End of File
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    position: relative;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: 60px;
    padding-top: 59px 180px;
    position: relative;
}

/* Thème clair/sombre basé sur le système (téléphone/navigateur) */
@media (prefers-color-scheme: light) {
    html {
        color-scheme: light;
    }

    body {
        background-color: #ffffff;
        color: #111827;
    }

    /* Barre du haut (simu barre système) */
    .top-bar {
        background-color: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
        color: #111827;
    }

    .top-bar-left .time,
    .signal {
        color: #111827;
    }

    .battery-icon {
        border-color: #9ca3af;
    }

    .battery-icon::after {
        background-color: #9ca3af;
    }

    .signal-bars span {
        background-color: #111827;
    }

    /* Header / barre d'adresse */
    .main-header {
        background-color: #ffffff;
        border-bottom: 1px solid #e5e7eb;
    }

    .url-bar {
        background-color: #e5e7eb;
        border-bottom: 1px solid #d1d5db;
    }

    .url-bar-content {
        background-color: #ffffff;
    }

    .url-text {
        color: #374151;
    }

    .globe-icon,
    .share-icon {
        color: #9ca3af;
    }

    /* Sélecteur de type de voyage */
    .travel-type-selection {
        background-color: #f9fafb;
    }

    .travel-icon {
        background-color: #e5e7eb;
        color: #111827;
    }

    .travel-type-item.active .travel-icon {
        background-color: #f97316;
        color: #111827;
    }

    .travel-label {
        color: #374151;
    }

    /* Formulaire de recherche */
    .search-container {
        background-color: #f9fafb;
        color: #111827;
    }

    .input-label {
        color: #6b7280;
    }

    .location-input,
    .date-input {
        background-color: #ffffff;
        border: 1px solid #d1d5db;
        color: #111827;
    }

    .location-input:focus,
    .date-input:focus {
        border-color: #f97316;
    }

    .swap-button {
        background-color: #e5e7eb;
        color: #111827;
    }

    .swap-button:hover {
        background-color: #d1d5db;
    }

    .date-icon {
        color: #9ca3af;
    }

    .min-price-display {
        background-color: #ffffff;
        border-color: #e5e7eb;
    }

    .min-price-text {
        color: #111827;
    }

    /* Bouton principal */
    .find-button {
        background-color: #f97316;
        color: #ffffff;
    }

    .find-button:hover {
        background-color: #fb923c;
    }

    .find-button:active {
        background-color: #ea580c;
    }

    /* Cartes / sections */
    .popular-countries-section,
    .popular-hotels-section {
        background-color: #f9fafb;
        color: #111827;
    }

    .ad-banner {
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    }

    .ad-image-placeholder {
        background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    }

    .section-title {
        color: #0f172a;
    }

    .country-name,
    .hotel-name {
        color: #111827;
    }

    .country-price,
    .hotel-price {
        color: #6b7280;
    }

    /* Navigation du bas */
    .bottom-nav {
        background-color: #ffffff;
        border-top: 1px solid #e5e7eb;
    }

    .nav-button {
        color: #6b7280;
    }

    .nav-button:hover {
        background-color: #e5e7eb;
    }

    .tabs-count {
        background-color: #e5e7eb;
        border-color: #d1d5db;
        color: #111827;
    }

    /* Footer */
    .main-footer {
        background-color: #f3f4f6;
        color: #111827;
        border-top: 1px solid #e5e7eb;
    }

    .footer-title {
        color: #111827;
    }

    .footer-links a {
        color: #4b5563;
    }

    .footer-links a:hover {
        color: #f97316;
    }
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background-color: #000000;
    font-size: 14px;
    height: 32px;
}

.top-bar-left .time {
    color: #ffffff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal {
    color: #ffffff;
    font-size: 12px;
}

.battery-icon {
    width: 24px;
    height: 12px;
    border: 1px solid #ffffff;
    border-radius: 2px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 3px;
    width: 2px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 0 1px 1px 0;
}

.signal-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.signal-bars span {
    width: 3px;
    background-color: #ffffff;
    border-radius: 1px;
}

.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 6px; }
.signal-bars span:nth-child(3) { height: 8px; }
.signal-bars span:nth-child(4) { height: 10px; }

/* URL Bar */
.url-bar {
    background-color: #2a2a2a;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
}

.url-bar-content {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 8px;
}

.globe-icon {
    color: #666;
    font-size: 16px;
}

.url-text {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
}

.share-icon {
    color: #666;
    font-size: 16px;
}

/* Main Header */
.main-header {
    background-color: #2a2a2a;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 9999 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.camertravel-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

.logo-mobile {
    display: block;
    width: 32px;
    height: 32px;
    background-color: #ff0000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 4px;
}

.logo-desktop {
    background-color: #ff0000;
    display: none;
    border-radius: 4px;
    padding: 5px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.globe-icon-purple {
    font-size: 24px;
}

.brand-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-desktop-actions {
    display: none; /* Masqué par défaut (mobile) */
    align-items: center;
    gap: 16px;
}

.header-mobile-actions {
    display: flex; /* Visible par défaut (mobile) */
    align-items: center;
    gap: 12px;
}

.login-button {
    background-color: #ff8800;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #ff9900;
}

.trips-icon,
.favorites-icon {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.trips-icon:hover,
.favorites-icon:hover {
    color: #ffcc00;
}

.trips-icon i,
.favorites-icon i {
    font-size: 18px;
}

.year-button {
    background-color: #ff8800;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
}

.icon-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    padding: 4px;
}

/* Travel Type Selection */
.travel-type-selection {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 16px;
    background-color: #1a1a1a;
}

.travel-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.travel-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background-color: #2a2a2a;
    color: #ffffff;
}

.travel-icon i {
    font-size: 28px;
    color: currentColor;
}

.travel-type-item.active .travel-icon {
    background-color: #ffcc00;
    color: #000000;
}

.travel-label {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
}

/* Search Container */
.search-container {
    padding: 0 16px 24px;
    background-color: #1a1a1a;
}

.location-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.swap-button {
    width: auto;
    min-width: 60px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    padding: 8px 16px;
    background-color: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
    transition: background-color 0.2s;
    
}

.swap-button:hover {
    background-color: #333;
}

.swap-button .swap-icon {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}


.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.input-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
}

.location-input,
.date-input {
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.location-input:focus,
.date-input:focus {
    outline: none;
    border-color: #ffcc00;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.date-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input {
    position: relative;
    padding-right: 40px;
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
}

.date-icon {
    display: block;
    position: absolute;
    right: 12px;
    color: #999;
    font-size: 18px;
    pointer-events: none;
    z-index: 5;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.input-wrapper .calendar-icon {
    position: absolute;
    right: 12px;
    top: calc(16px + 22px);
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 18px;
    width: 18px;
    z-index: 5;
    visibility: visible !important;
    opacity: 1 !important;
}

.date-input-wrapper {
    position: relative;
}

/* Min Price Display */
.min-price-display {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #2a2a2a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ffcc00;
    border: 1px solid #333;
}

.min-price-display i {
    color: #ffcc00;
    font-size: 14px;
}

.min-price-text {
    color: #ffffff;
}

.min-price-text strong {
    color: #ffcc00;
    font-weight: 600;
    font-size: 14px;
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.autocomplete-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #3a3a3a;
    color: #ffcc00;
}

/* Find Button */
.find-button {
    width: 100%;
    background-color: #ffcc00;
    color: #000000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.find-button:hover {
    background-color: #ffd633;
}

.find-button:active {
    background-color: #e6b800;
}

.find-button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Advertisement Banner */
.ad-banner {
    background-color: #1a1a1a;
    margin: 16px;
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    color: #ffffff;
    background-color: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    opacity: 0.8;
}

.ad-media-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
}

.ad-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-image-placeholder img,
.ad-image-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 1;
    pointer-events: none;
}

.ad-text-section {
    width: 100%;
}

.ad-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.ad-subtitle {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.4;
}

/* Popular Countries Section */
.popular-countries-section,
.popular-hotels-section {
    padding: 24px 16px;
    background-color: #1a1a1a;
}

.section-title {
    color: #ffffff;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.countries-grid,
.hotels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.countries-grid::-webkit-scrollbar,
.hotels-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Carte destination (ville) : l'image remplit le cadre,
   le texte est en dehors, en-dessous. */
.country-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    cursor: pointer;
}

/* Carte hôtel : on conserve l'ancien design encadré. */
.hotel-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.hotel-card:hover {
    transform: translateY(-4px);
    
}

/* Cadre image pour les villes : prend tout le cadre avec les bords arrondis */
.country-image-carousel {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 35px;
    background-color: #2a2a2a;
}

/* Image simple (si utilisée ailleurs) + carrousel hôtels */
.country-image,
.hotel-image-carousel {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.country-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.country-card:hover .country-image img {
    transform: scale(1.05);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: unset;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    pointer-events: auto;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    touch-action: manipulation;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 12px;
}

.carousel-caption {
    margin: 6px 0 0;
    padding: 0 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.3;
    min-height: 0;
    text-align: center;
}

.carousel-caption:empty {
    display: none;
}

.carousel-container {
    touch-action: pan-y;
    user-select: none;
}

.carousel-dot.active {
    background-color: #ffffff;
    width: 20px;
    border-radius: 3px;
}

.country-card:hover .carousel-image {
    transform: scale(1.05);
}

.country-info,
.hotel-info {
    padding: 5px 25px 0;
}

.country-name,
.hotel-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 4px;
    font-family: revert;
}

.country-price,
.hotel-price {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #2a2a2a;
    padding: 12px;
    border-top: 1px solid #333;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.nav-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #333;
}

.tabs-count {
    background-color: #1a1a1a;
    border: 1px solid #333;
    font-size: 14px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Date Picker Modal */
.date-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.date-picker-modal.active {
    display: flex;
}

.modal-content {
    background-color: #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 20px;
}

.close-modal {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #ffffff;
    padding: 4px;
    min-height: 60px;
}

.calendar-day .day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.calendar-day .day-price {
    font-size: 10px;
    color: #ffcc00;
    font-weight: 600;
    margin-top: 2px;
}

.calendar-day:hover {
    background-color: #333;
}

.calendar-day.selected {
    background-color: #ffcc00;
    color: #000000;
}

.calendar-day.selected .day-price {
    color: #000000;
    font-weight: 700;
}

.calendar-day.other-month {
    color: #666;
}

.calendar-day-name {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

/* Hide default date input styling */
.date-input[type="date"] {
    color-scheme: dark;
    position: relative;
    padding-right: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

/* Masquer complètement l'icône calendrier native sur tous les écrans */
.date-input[type="date"]::-webkit-calendar-picker-indicator {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: -9999px !important;
    background: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: default !important;
    z-index: -1 !important;
}

.date-input[type="date"]::-moz-calendar-picker-indicator {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.date-input[type="date"]::-ms-calendar-picker-indicator {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}


/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffcc00;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 9999 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        /* Augmenter la taille du header sur petit écran */
        padding: 5px 5px !important;
    }

    .header-content {
        padding: 8px !important;
    }
    
    body {
        padding-top: 56px !important;
    }
    
    /* Scroll horizontal pour les cartes sur tablettes et téléphones */
    .countries-grid,
    .hotels-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .country-card,
    .hotel-card {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 9999 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    body {
        padding-top: 56px !important;
        overflow-x: hidden;
    }
    
    .search-container {
        padding: 0 12px 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .location-inputs {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .input-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .location-input,
    .date-input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px;
        font-size: 16px;
    }
    
    .date-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    /* Masquer complètement l'icône calendrier native sur mobile - règles très agressives */
    .date-input[type="date"] {
        padding-right: 40px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .date-input[type="date"]::-webkit-calendar-picker-indicator {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        right: -9999px !important;
        background: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        cursor: default !important;
    }
    
    .date-input[type="date"]::-moz-calendar-picker-indicator {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }
    
    .date-input[type="date"]::-ms-calendar-picker-indicator {
        display: none !important;
        opacity: 0 !important;
    }
    
    /* Afficher l'icône Font Awesome uniquement sur mobile */
    .date-icon {
        display: block !important;
        position: absolute;
        right: 12px;
        color: #999;
        font-size: 18px;
        pointer-events: none;
        z-index: 5;
    }
    
    .travel-type-selection {
        gap: 16px;
        padding: 24px 12px;
    }
    
    .travel-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .travel-icon i {
        font-size: 24px;
    }
    
    .ad-content {
        flex-direction: column;
    }
    
    .ad-image-section {
        width: 100%;
        height: 150px;
    }
    
    /* Popular Countries - Scroll horizontal sur mobile */
    .popular-countries-section,
    .popular-hotels-section {
        padding: 20px 0px 20px 20px;
        overflow-x: visible;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .countries-grid,
    .hotels-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        margin-top: 12px;
        padding-top: 12px;
        padding-bottom: 8px;
        padding-left: 16px;
        padding-right: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        box-sizing: border-box;
    }
    
    .countries-grid::-webkit-scrollbar,
    .hotels-grid::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    .hotel-card {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    .country-image,
    .country-image-carousel,
    .hotel-image-carousel {
        height: 300px;
    }
}

/* Grands écrans - Padding horizontal sur le body */
@media (min-width: 769px) {
    body {
        padding: 110px 150px;
    }
    
    .main-header {
        left: 16px !important;
        right: 16px !important;
        width: calc(100% - 32px) !important;
    }
    
    /* Afficher les actions desktop et masquer les actions mobile */
    .header-desktop-actions {
        display: flex !important;
    }
    
    .header-mobile-actions {
        display: none !important;
    }
    
    /* Afficher "CAMER TRAVEL" au lieu de "CT" sur grand écran */
    .logo-mobile {
        display: none !important;
    }
    
    .logo-desktop {
        display: block !important;
    }
    
    /* Configuration des grilles pour grands écrans - distribution symétrique */
    .popular-countries-section,
    .popular-hotels-section {
        max-width: 100%;
        padding: 24px 16px;
    }

    /* Aligner le footer avec le reste du contenu sur grand écran */
    .main-footer {
        padding-left: 150px;
        padding-right: 150px;
    }

    .footer-content {
        max-width: none;
        margin: 0;
    }
    
    .countries-grid,
    .hotels-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* S'assurer que les cartes hôtels conservent leur taille fixe */
    .hotel-card {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        flex-shrink: 0;
        margin: 0;
    }
}

/* Footer Styles */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 16px 20px;
    margin-top: 40px;
    border-top: 1px solid #333333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    list-style: none;   
    gap: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    list-style: none;   
    margin:0;
    padding:0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ff8800;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #ff8800;
    color: #1a1a1a;
    border-color: #ff8800;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.app-button:hover {
    background-color: #ff8800;
    color: #1a1a1a;
    border-color: #ff8800;
}

.app-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: #999999;
    font-size: 12px;
}

.footer-projects,
.footer-team {
    margin-top: 8px;
    color: #cccccc;
    font-size: 12px;
}

.footer-projects a,
.footer-team a {
    color: #ff8800;
    text-decoration: none;
}

.footer-projects a:hover,
.footer-team a:hover {
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 32px 16px 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .app-buttons {
        width: 100%;
    }
}

/* Surcharges de fin de fichier pour forcer le thème clair
   sur les blocs principaux quand le système est en clair. */
@media (prefers-color-scheme: light) {
    /* Bloc types de voyage */
    .travel-type-selection {
        background-color: #ffffff !important;
    }

    .travel-icon {
        background-color: #e5e7eb !important;
        color: #111827 !important;
    }

    .travel-type-item.active .travel-icon {
        background-color: #e5e7eb !important;
        color: #f97316 !important;
    }

    .travel-label {
        color: #374151 !important;
    }

    /* Formulaire de recherche */
    .search-container {
        background-color: #ffffff !important;
        color: #111827 !important;
    }

    .input-label {
        color: #6b7280 !important;
    }

    .location-input,
    .date-input {
        background-color: #ffffff !important;
        border-color: #d1d5db !important;
        color: #111827 !important;
    }

    .swap-button {
        background-color: #e5e7eb !important;
        color: #111827 !important;
    }

    .date-icon {
        color: #9ca3af !important;
    }

    /* Sections de cartes */
    .popular-countries-section,
    .popular-hotels-section {
        background-color: #ffffff !important;
        color: #111827 !important;
    }

    .section-title {
        color: #0f172a !important;
    }

    
    .ad-banner {
        background-color: #ffffff !important;
        color: #111827 !important;
    }

    .country-name,
    .hotel-name {
        color: #111827 !important;
    }

    .country-price,
    .hotel-price {
        color: #6b7280 !important;
    }

    /* Footer en thème clair */
    .main-footer {
        background-color: #ffffff !important;
        color: #111827 !important;
        border-top: 1px solid #e5e7eb !important;
    }

    .footer-title {
        color: #111827 !important;
    }

    .footer-links a {
        color: #4b5563 !important;
    }

    .footer-links a:hover {
        color: #f97316 !important;
    }

    .social-icon {
        background-color: #e5e7eb !important;
        color: #111827 !important;
        border-color: #d1d5db !important;
    }

    .social-icon:hover {
        background-color: #f97316 !important;
        color: #ffffff !important;
        border-color: #f97316 !important;
    }

    .app-button {
        background-color: #ffffff !important;
        color: #111827 !important;
        border-color: #e5e7eb !important;
    }

    .app-button:hover {
        background-color: #f97316 !important;
        color: #ffffff !important;
        border-color: #f97316 !important;
    }

    .footer-bottom {
        border-top-color: #e5e7eb !important;
        color: #6b7280 !important;
    }

    .footer-projects,
    .footer-team {
        color: #6b7280 !important;
    }

    .footer-projects a,
    .footer-team a {
        color: #f97316 !important;
    }
}

