/* Home page */


/* 2. On rend les sections existantes transparentes pour voir à travers */
body, 
.hero, 
.results-page, 
.section-title, 
.grid {
    background: transparent !important;
}

.section-cities {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligne le bouton avec la ligne de base du titre */
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Grille Responsive */
.city-grid {
    display: grid;
    /* Crée des colonnes d'au moins 250px, et remplit l'espace */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 15px;
}

/* La Carte (Base) */
.city-card {
    display: block;
    text-decoration: none;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
    background-color: #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image et Zoom */
.city-card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.city-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.city-card:hover img {
    transform: scale(1.1);
}

/* Badge "Hot" */
.trending-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #AC0D0D; /* Ton rouge */
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(172, 13, 13, 0.3);
}

.trending-badge i {
    color: #FFD700;
}

/* Overlay Dégradé */
.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.4) 35%, 
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

/* Infos Texte */
.city-name {
    color: white;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.city-count {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.city-count i {
    color: var(--secondary-color, #008080); /* Ton vert */
}

/* === IMMERSIVE SPOT CARDS === */

.section-spots {
    padding: 80px 0;
    overflow: hidden;
}
.spots-container { /* ou la classe que tu as mise autour de ta boucle */
    display: flex;         /* Aligne les cartes horizontalement */
    flex-wrap: nowrap;     /* Empêche de revenir à la ligne */
    overflow-x: auto;      /* Active le scroll horizontal */
    gap: 20px;             /* Espace entre les cartes */
    padding: 20px;
    
    /* Pour un défilement fluide "aimanté" sur mobile */
    scroll-snap-type: x mandatory; 
    
    /* Optionnel : cache la barre de défilement moche */
    scrollbar-width: none; 
}
.spots-horizontal-scroll {
    display: flex;
    gap: 25px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.spots-horizontal-scroll::-webkit-scrollbar { display: none; }

.immersive-spot-card {
    flex: 0 0 320px;
    height: 420px;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    scroll-snap-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Image de fond avec zoom */
.spot-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.spot-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.immersive-spot-card:hover .spot-bg-image img {
    transform: scale(1.15);
}

/* Conteneur de texte avec effet de flou */
.spot-content-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 24px;
    color: white;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.immersive-spot-card:hover .spot-content-box {
    transform: translateY(-10px);
}

.spot-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: var(--secondary-color, #00d2d2); /* Couleur vive pour le contraste */
    font-weight: 800;
}

.spot-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spot-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.spot-action {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge Nouveau */
.spot-new-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    background: #FFD700;
    color: #000;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
}

.activity-selector-container {
    display: flex;
    justify-content: flex-start; /* Aligné à gauche pour le scroll mobile */
    gap: 30px;
    padding: 30px 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}



.activity-selector-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: #AC0D0D; /* Ton rouge primaire */
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.activity-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #444;
    text-align: center;
    white-space: nowrap;
}

/* Effet au survol / Sélection */
.activity-item:hover .activity-icon, 
.activity-item.active .activity-icon {
    background: #AC0D0D;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(172, 13, 13, 0.3);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: scale(0.98);
}

/* La grande carte (occupe 2 colonnes et 2 lignes) */
.bento-main {
    grid-column: span 2;
    grid-row: span 2;
}

/* Les petites cartes */
.bento-secondary {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

/* Contenu */
.bento-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.bento-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bento-main h3 { font-size: 1.8rem; }
.bento-secondary h3 { font-size: 1.1rem; }

.bento-price {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.bento-price span {
    font-weight: 800;
    font-size: 1.1rem;
}

/* === SECTION CIRCUITS === */
.section-circuits {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-circuits .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

/* Le petit badge au-dessus du titre */
.badge-accent {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.header-left h2 {
    margin-bottom: 0;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Le bouton Outline style Flutter */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    height: fit-content;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transform: translateY(-2px);
}

/* Liste de cartes */
.circuit-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.circuit-card {
    display: flex;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.circuit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    background: #fff;
}

/* Image */
.circuit-image {
    width: 320px;
    position: relative;
    flex-shrink: 0;
}

.circuit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circuit-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Détails */
.circuit-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.circuit-cat {
    font-size: 0.8rem;
    color: #888;
}

.circuit-title {
    font-size: 1.6rem;
    margin: 10px 0 25px 0;
    color: #222;
    font-weight: 800;
}

/* Timeline / Itinéraire */
.itinerary-preview {
    display: flex;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.itinerary-line {
    position: absolute;
    top: 6px;
    left: 10px;
    right: 30px;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.itinerary-step {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-dot {
    width: 12px;
    height: 12px;
    background: #AC0D0D;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #eee;
    margin-bottom: 10px;
}

.step-dot.empty {
    background: #eee;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* On centre les icônes sur desktop si elles tiennent toutes */
@media (min-width: 992px) {
    .activity-selector-container {
        justify-content: center;
    }
}


/* Tablette et Mobile */
@media (max-width: 992px) {
	
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-main, .bento-secondary {
        grid-column: span 1;
        height: 300px;
    }
    
    .section-cities h2 { padding: 0px 10px 0px 10px;}
    
	.section-header {
        padding: 0 20px; /* Aligné avec ton nouveau menu horizontal */
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.6rem; /* Plus compact pour ne pas prendre 3 lignes */
        line-height: 1.2;
    }

    .section-header p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 0;
    }
	.btn-outline {
        width: 100%; /* Le bouton prend toute la largeur sur mobile pour être plus cliquable */
        justify-content: center;
        font-size: 0.9rem;
        padding: 10px;
    }
    
    
    .circuit-card { flex-direction: column; }
    .circuit-image { width: 100%; height: 220px; }
    .itinerary-preview { display: none; } /* On cache l'itinéraire sur mobile pour gagner de la place */ 
    
}


@media (max-width: 768px) {
    
	.section-activities {
        padding: 40px 0;
        overflow: hidden; /* Empêche le scroll horizontal de toute la page */
    }


    .bento-grid {
        display: flex; /* On casse la grille pour passer en ligne */
        flex-direction: row;
        grid-template-columns: none;
        grid-template-rows: none;
        gap: 15px;
        overflow-x: auto; /* Active le scroll horizontal */
        padding: 0 20px 20px 20px; /* Padding latéral pour que la 1ère carte soit alignée */
        scroll-snap-type: x mandatory; /* Aimante les cartes au défilement */
        -webkit-overflow-scrolling: touch;
    }

    .bento-item {
        flex: 0 0 85%; /* Chaque carte prend 85% de la largeur pour laisser voir la suivante */
        height: 380px; /* Hauteur fixe pour l'harmonie */
        scroll-snap-align: center;
        border-radius: 20px;
        margin: 0;
        position: relative;
    }

    /* On égalise le design des cartes main et secondary sur mobile */
    .bento-main .bento-content p {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limite la description à 2 lignes */
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.85rem;
    }

    .bento-image img {
        height: 100%;
        object-fit: cover;
    }

    /* Cache la scrollbar mais garde le défilement */
    .bento-grid::-webkit-scrollbar {
        display: none;
    }
}