/* --- Variables & Reset --- */
:root {
    --primary-color: #008080; /* Teal / Turquoise foncé */
    --secondary-color: #f4e4bc; /* Couleur Sable */
    --text-dark: #333;
    --bg: #f4f7f6;
    --text-light: #fff;
    --white: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

.profile-card hr {
  margin-top: 8px;
  margin-bottom: 8px;
}

.hero-small{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('photos/anse_lazio_1920.jpg'); 
    height: 400px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center;
}

.surlignage-jaune {
  background-color: #fff9a8;
}
p {
    padding-bottom: 10px;
    font-size: 16px;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--text-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}


/* Configuration de la navigation fixe sur les pages activités, plages,... */
/* Barre de navigation principale */
/* --- NAVIGATION PRINCIPALE --- */
.main-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    z-index: 999999 !important; /* Priorité maximale devant le header */
}

.nav-container {
    list-style: none; margin: 0 auto; padding: 0;
    /* margin-right: 130px; Si langue en haut à droite*/
    display: flex; justify-content: center;
    max-width: 1200px;
}

.nav-item-dropdown {
    position: relative; /* Référentiel pour le sous-menu PC */
}

.nav-link {
    display: block;
    padding: 18px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--primary-color); }
.arrow { font-size: 0.7rem; margin-left: 5px; }

/* --- STYLE DU BOUTON BURGER (Mobile uniquement) --- */
.menu-mobile-toggle {
    display: none; /* Caché sur PC */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 15px;
    z-index: 1000001;
}
.menu-mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s linear;
}

.menu-mobile-toggle small {
    font-size: 10px;
    font-weight: bold;
    margin-top: 2px;
}

/* --- SOUS-MENU (Version PC) --- */
.submenu {
    display: none; /* Masqué par défaut */
    position: absolute;
    top: 100%; left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0; margin: 0;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    z-index: 1000000 !important;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #444;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f5f5;
}

.submenu li a:hover {
    background: #fff5f2;
    color: var(--primary-color);
}

/* --- STYLE DU TITRE MOBILE --- */
.nav-title-mobile {
    display: none; /* Caché sur PC */
}

/* Affichage au survol sur PC */
@media (min-width: 961px) {
    .nav-item-dropdown:hover .submenu {
        display: block;
    }
}


@media (max-width: 960px) {
    .hero-small{
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('photos/anse_lazio_1200-mobile.jpg'); 
        height: 300px;
    }
    .main-nav {
        display: flex;
        align-items: center;
        height: 60px; /* Force une hauteur de barre fixe */
        padding: 0 15px;
    }

    .nav-title-mobile {
        display: block; /* Visible sur mobile */
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Centre parfaitement au milieu */
        font-weight: bold;
        color: var(--primary-color); /* Vert comme votre thème */
        font-size: 1.1rem;
        white-space: nowrap;
        pointer-events: none; /* Pour que le clic passe au travers si besoin */
    }

    /* On s'assure que le bouton burger ne décale rien */
    .menu-mobile-toggle {
        display: flex; /* Affiché sur mobile */
        height: 60px;
        margin-right: auto; /* Pousse le reste si besoin */
        z-index: 1000002;
    }

    .nav-container {
        display: none; /* FERMÉ PAR DÉFAUT */
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        position: absolute;
        top: 60px; /* Hauteur de votre barre de nav */
        left: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Quand le menu a la classe 'active' (via JS) */
    .nav-container.active {
        display: flex;
    }

    /* Style des items sur mobile */
    .nav-item-dropdown {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .submenu {
        position: static;
        width: 100%;
        background: #f9f9f9;
        display: none;
        padding-left: 50px;
    }
    
    .nav-item-dropdown.is-open .submenu {
        display: block !important;
    }
}

/* On pousse le reste du site vers le bas pour ne pas être caché par le menu */
body { padding-top: 60px !important; }

/* Scroll fluide */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/*--------------------------------------------------------------*/


/* --- Hero Section --- */
.hero {
    height: 100vh;
    /*background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1590523277543-a94d2e4eb00b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');*/
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('photos/Lazio.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* --- Communs --- */
.section-container {
    padding: 2rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}


.section-title h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
}

/* OLD 
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
}*/

/* --- Boutons --- */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #006666;
}

.info-hebergement {
    margin-top: 30px;
}

/* --- SECTION CONSEILS --- guide3 */
.tips-box {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tips-box h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}

.tips-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.icon { margin-right: 15px; font-size: 1.6rem; }

.must-do { border-left: 6px solid #2ecc71; }
.must-not { border-left: 6px solid #e74c3c; }
.practical { border-left: 6px solid #3498db; }

.red-bullet li::before { color: #e74c3c !important; content: '✕' !important; }

.simple-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.simple-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding-left: 15px;
    position: relative;
}

.simple-list li:first-of-type{
    padding-top:10px;
}

.simple-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.intro-text {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* --- Grille Cartes --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h2, .card p {
    padding: 1rem;
}

.meteo {
    padding: 1rem;
}

/* --- NOUVEAU STYLE AGENDA (Heure par Heure) --- */
.phase-title {
    background: var(--primary-color); color: white; display: inline-block;
    padding: 0.6rem 2rem; border-radius: 50px; font-weight: bold; margin: 3rem 0 2rem 0;
    box-shadow: 0 4px 10px rgba(0,128,128,0.3);
}

.agenda-day {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    border-left: 5px solid var(--secondary-color);
}

.day-header {
    background: #fdfdfd;
    padding: 1.2rem 2rem;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.schedule-row {
    display: flex;
    padding: 1rem 2rem;
    border-bottom: 1px solid #f8f8f8;
    align-items: flex-start;
}

.schedule-row:last-child { border-bottom: none; }

.time-col {
    min-width: 80px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    padding-top: 2px; /* Alignement visuel */
}

.info-col {
    flex: 1;
    font-size: 1rem;
    color: #555;
}

.highlight-bg {
    background-color: #e0f2f1; /* Fond très léger turquoise pour trucs importants */
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* --- Section Activités (Row) --- */
.bg-light {
    background-color: #f9f9f9;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 50px;
}

.text-col, .img-col {
    flex: 1;
}

.text-col p{
    margin-bottom: 10px;
}
.text-col h2{
    margin-bottom: 15px;
}

.img-col img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 1rem;
}

footer h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 2rem;
}

.footer-bottom {
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 960px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--text-light);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    
    .hero {
    height: 80vh;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }

    .hero h1 { font-size: 2.5rem; }
    
    .section-container { padding: 1.5rem 5%; }
    /*
    .section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;*/
    }
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Animation Burger */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- Section Programme (Timeline) --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* La ligne verticale */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 20px; /* Position de la ligne */
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 50px; /* Espace pour la ligne */
}

/* Le point sur la ligne */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.timeline-content ul {
    list-style: none;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.timeline-content li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
    display: flex; /* Aligne l'heure et le texte */
}

.timeline-content li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.time {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 60px; /* Largeur fixe pour l'heure */
    display: inline-block;
}

/* --- Section Budget --- */
.budget-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
}

.budget-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed #ddd;
    font-size: 1.1rem;
}

.iles .budget-row{
    padding: 0.7rem 0;
    font-size: 1rem;
}

.budget-row:nth-child(6) {
    border-bottom: none; /* Pas de ligne sous le dernier élément avant total */
}

.cat {
    font-weight: 500;
}

.price {
    font-weight: bold;
    color: var(--text-dark);
}

.budget-card hr {
    margin: 1rem 0;
    border: 0;
    height: 1px;
    background: #ccc;
}

.budget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.total-price {
    font-size: 1.5rem;
}

.budget-note {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    margin-top: 1.5rem;
    font-style: italic;
}

.budget-business-option {
    padding: 2rem;
    background: #f4f4f4;
    text-align: center;
    border-top: 2px solid #eee;
    margin-top: 20px;
}
.bb-title { font-weight: bold; margin-bottom: 0.5rem; color: var(--primary-color);}
.bb-total {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: white;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* --- Section Galerie --- */
.gallery-grid {
    display: grid;
    /* Crée 3 colonnes de taille égale sur les grands écrans */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Petit effet de soulèvement au survol */
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour l'homogénéité */
    object-fit: cover; /* Assure que les images couvrent la zone sans déformation */
    display: block;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
    opacity: 1; /* Affiche la légende au survol */
}


/* --- Section Commentaires PHP --- */
.comment-form-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comments-list {
    max-width: 800px;
    margin: 0 auto;
}

.comment-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ddd; /* Bordure grise par défaut */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Style spécial pour VOS réponses */
.comment-item.admin-reply {
    border-left: 4px solid var(--primary-color); /* Bordure Turquoise */
    background-color: #f0fdfd; /* Fond très léger turquoise */
    margin-left: 2rem; /* Décalage visuel pour montrer que c'est une réponse */
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.comment-date {
    color: #999;
    font-size: 0.85rem;
}

.comment-body {
    color: var(--text-dark);
    line-height: 1.6;
}

@media print {
  .page-break {
    page-break-before: always;
    break-before: page;
    /* ou */
    /* page-break-after: always; */
  }
    .no-print {
    display: none !important;
    visibility: hidden;
  }
}

/* Adaptation mobile spécifique timeline */
@media screen and (max-width: 960px) {
    .timeline::after { left: 15px; }
    .timeline-item::before { left: 6px; }
    .timeline-item { padding-left: 40px; }
    .timeline-date { font-size: 1.2rem; }
    /* Force l'affichage en colonne verticale */
    .content-row {
        display: flex;
        flex-direction: column; /* Le texte reste en haut, l'image passe en dessous */
        gap: 2rem; /* Espace entre le texte et l'image */
    }

    /* Assure que le texte et l'image prennent toute la largeur */
    .text-col, .img-col {
        width: 100%;
        flex: auto; /* Annule la contrainte de taille flexible */
    }

    /* Optionnel : ajuste la hauteur de l'image pour qu'elle soit belle sur mobile */
    .img-col img {
        height: auto;
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Galerie: Les images s'aligneront automatiquement en 1 ou 2 colonnes grâce à auto-fit */
    .gallery-grid {
        grid-template-columns: 1fr; /* Force une seule colonne sur les très petits écrans */
    }
    
    /* Masquer la lightbox sur mobile pour ne pas surcharger le JS sur les petits écrans
   (où le swipe est plus naturel que les boutons) */
    .lightbox {
        padding-top: 0;
    }
    .prev-btn, .next-btn, .close-btn {
        font-size: 30px;
        top: 20px;
    }
    .prev-btn, .next-btn {
        /* On pourrait les masquer totalement sur mobile si l'on préfère le swipe */
        display: none; 
    }
    
    .grid-3 {
        grid-template-columns: 1fr; /* Force une seule colonne sur mobile */
        gap: 15px; /* Réduit un peu l'écart entre les cartes */
     }
    
    /*
    .grid-3 {
    display: grid;
    /* On passe de 300px à 250px pour que ça rentre sur les petits écrans mobiles */
    /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    width: 100%; /* S'assure que la grille ne dépasse pas le parent */
    /*box-sizing: border-box; /* S'assure que le padding est inclus dans la largeur */
    /*}*/
    
    .section-container {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Empêche tout dépassement horizontal global */
    }
    
    /* Synthèse des randonnées*/
    /* Supprime les bordures et fonds du conteneur de base sur mobile */
    .synthese-table-container {
        background: transparent;
        padding: 0;
    }

    /* Cache les en-têtes (Nom, Île, etc.) */
    .synthese-table-container thead {
        display: none;
    }

    /* Chaque ligne devient une carte indépendante */
    .synthese-table-container tr {
        display: block;
        background: #fff;
        margin-bottom: 15px;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #eee;
    }

    /* Chaque cellule devient une ligne dans la carte */
    .synthese-table-container td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 5px;
        border-bottom: 1px solid #f9f9f9;
        text-align: right;
        font-size: 0.9rem;
    }

    /* Retire la bordure de la dernière cellule de la carte */
    .synthese-table-container td:last-child {
        border-bottom: none;
    }

    /* Affiche le titre de la colonne à gauche (provenant du data-label) */
    .synthese-table-container td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
        text-transform: uppercase;
        font-size: 0.75rem;
        text-align: left;
        margin-right: 15px;
    }
    
    /* Style particulier pour le nom de la rando pour le faire ressortir */
    .synthese-table-container td[data-label="Nom"] {
        color: var(--primary-color, #ff7f50);
        font-weight: bold;
    }
}


/* --- SPLASH SCREEN STYLES --- */
#splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fond sombre transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Toujours au-dessus de tout */
    backdrop-filter: blur(5px);
}

.splash-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.5s ease;
}

.splash-box h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.splash-box p {
    margin-bottom: 1.5rem;
}

.splash-box .form-input {
    background-color: #f7f7f7;
    border: 1px solid #eee;
}

.splash-box .btn-primary {
    width: 100%;
    margin-top: 10px;
}

.privacy-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
}

/* --- Styles de la LightBox Modale --- */
.lightbox {
    /* Masqué par défaut */
    display: none; 
    position: fixed;
    z-index: 10000; /* Assure d'être au-dessus de tout (y compris le splash screen) */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Fond très sombre */
    /* Transition d'opacité pour une ouverture plus douce */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.visible {
    display: block;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh; /* Limite la hauteur pour les écrans plus petits */
    text-align: center;
}

#lightbox-image {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    margin: 0 auto;
}

/* Bouton pour fermer (X) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
}

/* Lightbox début 2026 */
/* Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

/* Popup */
.popup-box {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    animation: popupFade 0.25s ease;
}

/* Mobile */
@media (max-width: 960px) {
    .popup-box {
        max-width: 100%;
        border-radius: 10px;
        padding: 1.25rem;
    }
}

/* Close button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* Animation */
@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
/* FIN Lightbox début 2026 */

/* Boutons de navigation (Précédent/Suivant) */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.prev-btn {
    left: 15px;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 15px;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    margin-top: 10px;
    color: #ccc;
    font-size: 1.1rem;
    padding: 10px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* On masque tout le contenu principal si le splash est présent */
/* Votre contenu principal n'est pas directement affecté, car il est dans le body
   MAIS la modale le recouvre. Le PHP gère l'affichage/masquage de la modale. */


/* --- SECTION COMPARATIF DES ÎLES --- */

.comparatif-profiles-grid {
    display: grid;
    /* 3 colonnes sur desktop, s'adapte à la taille de l'écran */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px;
    max-width: 1200px;
    margin: 3rem auto;
}

.profile-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.2s;
}

.profile-card:hover {
    transform: translateY(-3px);
}

.profile-card h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.profile-card h3 {
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color); 
    margin-bottom: 1rem;
}

.pros, .cons {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.pros {
    color: #388e3c; /* Vert pour les points positifs */
}

.cons {
    color: #d32f2f; /* Rouge pour les points négatifs */
}

.recommend {
    color: #008080; /* Vert pour la recommandation */
    font-weight: bold;
    margin-top: 40px;
}


/* --- Synthèse Tableau & Conseil --- */

.conseil-final {
    text-align: center;
    margin: 4rem auto;
    margin-bottom: 20px;
}

.highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color); /* Couleur plus vibrante */
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1rem;margin-bottom: 30px;
}

.synthese-table-container {
    max-width: 950px;
    margin: 4rem auto 2rem auto;
}

.synthese-table-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.4rem;
}

.synthese-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.synthese-table-container th, .synthese-table-container td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.synthese-table-container thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.synthese-table-container tbody tr:last-child td {
    border-bottom: none;
}

/* --- Page Budget --- */
.cost-grid {
    display: grid;
    grid-template-columns: 1fr auto; /* La 1ère prend tout l'espace restant, la 2ème s'adapte au contenu */
    gap: 15px; /* On augmente un peu l'espace entre les deux pour la lisibilité */
    font-size: 0.9rem;
    align-items: center;
    vertical-align: top;
    padding-top: 20px;
}
/* OLD .cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 0.9rem; }*/
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
}
.grid-2 {
    display: grid;
    gap: 25px;
    margin: 20px 0;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /*grid-template-columns: repeat(2, 1fr);*/
    }

.grid-3 li {
    padding-top: 5px;
}

.grid-2 li {
    padding-top: 10px;
}

.remarque-mini {
    font-size: 0.8rem; 
    color: #777; 
    margin-top: 15px; 
    font-style: italic;
}
/* --- FIN Page Budget --- */

/* --- Sélecteur de Langue PC --- */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1001;
}
.pc-language-selector{
    padding-top: 22px;
    padding-left: 25px;
}

.lang-link {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.lang-link.active {
    color: var(--primary-color);
}

.lang-link:hover {
    color: var(--primary-color);
}

.separator {
    color: #ccc;
}

/* --- Style Global des Images Drapeaux --- */
.flag-img {
    width: 30px; /* Taille sur PC */
    height: auto;
    border-radius: 4px; /* Optionnel : arrondit légèrement les coins */
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flag-img-small {
    width: 24px; /* Taille légèrement plus petite pour le menu mobile */
    height: auto;
    border-radius: 3px;
}

/* --- Version PC (Haut Droite) --- */
.language-selector.pc-only {
    position: absolute;
    top: 25px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 1100; /* Assure d'être au-dessus des autres éléments */
    align-items: center;
}

.lang-link {
    text-decoration: none;
    line-height: 0; /* Évite les décalages de ligne */
}

/* Effet pour la langue non-active */
.lang-link:not(.active) .flag-img {
    opacity: 0.5;
    filter: grayscale(40%);
}

.lang-link:hover .flag-img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* --- Version Mobile (Dans le hamburger) --- */
.mobile-lang-selector {
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 15px;
    width: 100%;
}

.lang-options {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.lang-btn {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
}

.lang-btn.active {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05); /* Si vous avez défini RGB, sinon mettez une couleur claire */
    border: 1px solid var(--primary-color);
}

/* --- Media Queries pour l'affichage 768-769--- */
@media (max-width: 960px) {
    .pc-only { display: none !important; }
    .mobile-only { display: block !important; }
}

@media (min-width: 961px) {
    .pc-only { display: flex !important; }
    .mobile-only { display: none !important; }
}



/************* HEBERGEMENTS *************/

/* Petit ajustement CSS pour que le script d'animation fonctionne */
.profile-card {
    transition: opacity 0.3s ease;
}

/* Style pour les hôtels recommandés */
.profile-card.recommended {
    border: 2px solid #f1c40f; /* Bordure Jaune */
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.2); /* Légère lueur */
    position: relative;
    overflow: visible; /* Pour laisser dépasser le badge */
}

/* Le petit badge au dessus */
.profile-card.recommended::after {
    content: "⭐ Testé & Approuvé";
    position: absolute;
    top: -12px;
    right: 15px;
    background: #f1c40f;
    color: #2c3e50;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style pour les hôtels recommandés */
.profile-card.coeur {
    border: 2px solid #F10FA9; /* Bordure Jaune */
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.2); /* Légère lueur */
    position: relative;
    overflow: visible; /* Pour laisser dépasser le badge */
}

/* Le petit badge au dessus */
.profile-card.coeur::after {
    content: "❤️ Coup de coeur";
    position: absolute;
    top: -12px;
    right: 15px;
    background: #F9A1DC;
    color: #2c3e50;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Container de l'image */
.card-image-container {
    width: 100%;
    height: 180px; /* Hauteur fixe pour uniformiser */
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

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

.card:hover .card-image-container img {
    transform: scale(1.1); /* Zoom au survol */
}

/* Badge de prix flottant */
.floating-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Zone de contenu */
.card-content {
    padding: 15px;
}

/* Bloc des avis (Points forts / faibles) */
.review-summary {
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 10px;
    font-size: 0.85rem;
    margin-top: 10px;
    border-radius: 5px;
}

.review-point {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

.review-point.bad {
    color: #666;
    font-style: italic;
}

.icon-review {
    margin-right: 6px;
    min-width: 15px;
}


/* Style des cartes cliquables */
a.profile-card {
    text-decoration: none; /* Enlève le soulignement */
    color: inherit; /* Garde la couleur du texte */
    display: block; /* La carte prend tout l'espace */
    cursor: pointer;
}

/* Effet au survol spécifique pour le lien */
a.profile-card:hover {
    transform: translateY(-5px); /* Légère remontée */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Barre de filtres Prix (Style distinct) */
.price-filters {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.filter-btn.price-btn {
    background: transparent;
    border: 1px solid #2c3e50;
    color: #2c3e50;
}

.filter-btn.price-btn.active {
    background: #2c3e50;
    color: #fff;
}
/************* FIN HEBERGEMENTS *************/

/* --- Style des Boîtes d'Information (Info-box) --- */
.info-box {
    background: #ffffff;
    border: 1px solid #e0e7e5;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Pour que toutes les boîtes d'une ligne aient la même hauteur */
    display: flex;
    flex-direction: column;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.15);
    border-color: #1abc9c;
}

.info-box h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #1abc9c;
    display: inline-block;
    padding-bottom: 5px;
}

.info-box p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1; /* Pousse le prix vers le bas */
}

/* --- Badge de Prix --- */
.price-tag {
    display: inline-block;
    background: #e8f8f5;
    color: #16a085;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}
.star-tag {
    position: absolute;
    top: 10px;          /* Distance du bord haut */
    left: 10px;        /* Distance du bord droit */
    background: rgba(255, 255, 255, 0.9); /* Fond blanc semi-transparent */
    color: #333;        /* Couleur du texte */
    padding: 4px 8px;   /* Espace intérieur */
    border-radius: 6px; /* Bords arrondis */
    font-size: 0.85rem; /* Taille de la police */
    font-weight: bold;  /* Mise en gras */
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* Ombre légère pour la lisibilité */
    z-index: 10;        /* Pour passer au-dessus de l'image */
    display: flex;
    align-items: center;
    gap: 4px;           /* Espace entre l'étoile et le chiffre */
}
/* --- Badge de Style pour hébegements --- 
Collection L'Âme Créole : #e67e22 (Orange terre cuite)

Collection Chic & Moderne : #8e44ad (Violet élégant)

Collection Pieds dans l'Eau : #008080 (Turquoise profond)*/
.badge-style {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- Style spécifique pour les listes dans les boîtes --- */
.info-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.info-box ul li {
    margin-bottom: 8px;
    color: #555;
}
/* --- FIN Style des Boîtes d'Information (Info-box) --- */
.custom-list{
    font-size: 0.9rem;
}
.filter-btn { padding: 10px 20px; border: none; background: #eee; cursor: pointer; border-radius: 20px; transition: 0.3s; margin: 5px; }

.filter-btn.active { background: var(--primary-color); color: white; }