/* =========================================
   VARIABLES
========================================= */

:root {
    --cream: #f8f5ef;
    --green: #5f7c5f;
    --green-dark: #324936;
    --green-light: #8fa38f;
    --wood: #8b6a47;

    --text: #2c2c2c;
    --white: #ffffff;

    --radius: 20px;
    --shadow: 0 20px 40px rgba(0, 0, 0, .08);
    --transition: .35s ease;
}


/* =========================================
   GLOBAL
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

section {
    position: relative;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}
.text-primary {
    color: rgba(32, 76, 41, 1.0) !important;
}

/* =========================================
   HERO
========================================= */

/* ==========================================================================
   SECTION HERO (ADAPTÉE POUR CAROUSEL)
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh; /* Garde la hauteur plein écran */
    color: white;
    background-color: rgba(43, 63, 44, .75); /* Fond de secours */
    overflow: hidden;
}

/* Force le carrousel et ses éléments à faire toute la hauteur du Hero */
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    min-height: 100vh;
    height: 100%;
}

/* Style des images du slider */
.hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Remplace ton background-size: cover */
    object-position: center; /* Remplace ton background-position: center */
}

/* Récréation de ton filtre dégradé linéaire par-dessus les images */
.hero .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0, 0, 0, .40),
        rgba(0, 0, 0, .30)
    );
    z-index: 1; /* Se place entre l'image et le texte */
}

/* Positionnement du texte par-dessus le filtre */
.hero .carousel-caption {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    z-index: 2; /* Passe au-dessus du dégradé sombre */
    color: white;
}

/* ==========================================================================
   TES STYLES D'ORIGINE (CONSERVÉS IDENTIQUES)
   ========================================================================== */

.hero-content {
    padding-top: 120px; /* Conserve ton espace pour ton menu/header */
}

.hero-subtitle {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .9rem;
    font-weight: 500;
    opacity: .9;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    text-shadow: 0px 0px 10px rgba(0,0,0,0.9);
    line-height: .95;
    margin: 20px 0;
}

.hero p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    max-width: 650px;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* Style rapide pour harmoniser les puces de navigation Bootstrap en bas */
.hero .carousel-indicators [data-bs-target] {
    background-color: #fff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.5;
}
.hero .carousel-indicators .active {
    opacity: 1;
}



/* =========================================
   AJUSTEMENT POUR PAGES SANS HERO
========================================= */

/* À appliquer sur la première <section> ou <main> de tes pages intérieures */
.page-interieure-content {
    margin-top: 120px !important; 
}

/* =========================================
   NAVBAR
========================================= */

.navbar-floating {
    position: sticky;
    top: 25px;
    
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -95px;

    /* Configuration initiale (en haut de page) */
    width: 92%;
    max-width: 1400px;
    border-radius: 20px;
    background: rgba(43, 63, 44, .75);
    box-shadow: 0 12px 40px rgba(0,0,0,.20);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;

    /* Transition fluide pour toutes les métamorphoses au scroll */
    transition: all 0.4s ease-in-out; 
}

/* =========================================
   EFFET AU SCROLL (PLEINE LARGEUR ET PLAT)
========================================= */
.navbar-floating.scrolled {
    top: 0;             /* Se colle tout en haut de l'écran */
    width: 100%;        /* Prend toute la largeur */
    max-width: 100%;    /* Annule la limite des 1400px */
    border-radius: 0;   /* Supprime les arrondis */
    border-color: transparent; /* Supprime la fine bordure */
    
    /* Ton aplat à 80% (ici basé sur ton vert foncé #324936) */
    background: rgba(50, 73, 54, 0.80); 
    
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    color: white !important;
    margin: 0 12px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap; /* Empêche les intitulés de se couper sur 2 lignes */
}

.nav-link:hover {
    opacity: .75;
}


/* =========================================
   BUTTONS
========================================= */

.btn-book,
.btn-primary-custom {

    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 14px 28px;

    border: none;
    border-radius: 12px;

    font-weight: 600;

    transition: var(--transition);
}

.btn-book:hover,
.btn-primary-custom:hover {

    background: var(--green-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-outline-custom {

    margin-left: 10px;

    padding: 14px 28px;

    border-radius: 12px;

    border: 1px solid white;

    color: white;

    transition: var(--transition);
}

.btn-outline-custom:hover {

    background: white;
    color: var(--green-dark);

    transform: translateY(-2px);
}


/* =========================================
   TITRES DE SECTION
========================================= */

.section-kicker {

    display: inline-block;

    margin-bottom: 10px;

    color: var(--green);

    font-size: .8rem;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 25px;
}


/* =========================================
   EXPERIENCE
========================================= */

.experience {
    padding: 120px 0;
}

.feature {

    margin-bottom: 15px;

    font-size: 1.05rem;
    font-weight: 500;
}


/* =========================================
   STATS (VERSION APPLAT VERT + CARTES CLAIRES)
========================================= */

.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.stat-card {
    background: var(--cream); /* On réutilise ta variable crème pour un contraste doux */
    padding: 40px 20px;
    border-radius: var(--radius);
    text-align: center;
    height: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* Ombre pour détacher la carte du fond */
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-8px); /* Bel effet de lévitation au survol */
    background: var(--white); /* Devient purement blanche au survol */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 700;
    color: var(--green-dark); /* Le chiffre passe en vert foncé pour être ultra lisible sur le crème */
    line-height: 1;
    margin-bottom: 12px;
}

.stat-number span {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--green-light); /* L'unité "min" reste un peu plus discrète */
    margin-left: 4px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wood); /* Le libellé en couleur bois pour rappeler la nature et le gîte */
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .stats {
        padding: 60px 0;
    }
    .stat-card {
        padding: 30px 15px;
    }
    .stat-number span {
        font-size: 1rem;
        display: block;
        margin-left: 0;
    }
}

/* =========================================
   CHAMBRES
========================================= */

.rooms {
    padding: 120px 0;
}

.room-card {

    background: white;

    overflow: hidden;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-8px);
}

.room-card img {

    width: 100%;
    height: 320px;

    object-fit: cover;

    transition: .5s ease;
}

.room-card:hover img {
    transform: scale(1.05);
}

.room-body {
    padding: 30px;
}

.room-body h4 {
    margin-bottom: 15px;
}



/* ==========================================================================
   SECTION LANDSCAPE - MODE SOMBRE (DARK MODE)
   ========================================================================== */

.landscape {
    position: relative;
    overflow: hidden;
    background-color: #af9f7b; /* Fond anthracite très foncé (ou #000 pour du noir pur) */
    padding-top: 6rem !important;   
    padding-bottom: 6rem !important;
}

/* Image en arrière-plan */
.landscape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background-image: url("../medias/site/troyes.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Effet Parallaxe */
    background-attachment: fixed; 
    
    /* OPACITÉ : Ajustée à 25% pour créer un effet stylé sur fond noir */
    opacity: 0.08; 
    
    z-index: 1;
}

/* Désactivation de la parallaxe sur mobile pour éviter les bugs d'affichage iOS/Safari */
@media (max-width: 991px) {
    .landscape::before {
        background-attachment: scroll; 
    }
}
/* =========================================
   REGION
========================================= */

.region {
    padding: 120px 0;
}

.location-list {

    padding: 0;
    margin: 0;

    list-style: none;
}

.location-list li {

    padding: 16px 0;

    border-bottom: 1px solid #e5e5e5;
}


/* ==========================================================================
   SECTION GALERIE PHOTOS (MODERNE & RESPONSIVE)
   ========================================================================== */

/* Conteneur principal de la galerie */
.notre-galerie-container {
    background-color: #fcfcfc;
}

/* Boîte englobante de chaque vignette */
.notre-galerie-container .bloc-vignette {
    background: #fff;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet de soulèvement au survol du bloc */
.notre-galerie-container .bloc-vignette:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Structure forçant le format carré parfait (Ratio 1:1) */
.notre-galerie-container .bloc-ratio-carre {
    position: relative !important; 
    width: 100% !important; 
    padding-top: 100% !important; 
    overflow: hidden !important;
}

/* Remplissage complet du lien Lightbox */
.notre-galerie-container .bloc-ratio-carre > .lightbox {
    position: absolute !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important; 
    display: block !important;
    text-decoration: none;
}

/* Image fluide : Forçage des dimensions et transition douce */
.notre-galerie-container .bloc-ratio-carre img {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Effet de zoom sur l'image au survol */
.notre-galerie-container .bloc-vignette:hover .bloc-ratio-carre img {
    transform: scale(1.06) !important;
}

/* Voile sombre transparent + Icône Loupe en SVG blanc centré */
.notre-galerie-container .bloc-ratio-carre > .lightbox::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Affichage de la loupe et du voile au survol */
.notre-galerie-container .bloc-vignette:hover .bloc-ratio-carre > .lightbox::after {
    opacity: 1;
}

/* Zone textuelle dédiée au commentaire sous l'image */
.notre-galerie-container .zone-commentaire {
    padding: 10px 6px !important;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style du texte de commentaire */
.notre-galerie-container .zone-commentaire p {
    color: #495057 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.3;
}

/* =========================================
   AVIS
========================================= */

.reviews {

    padding: 120px 0;

    background: #dfe5df;
}

.review-card {

    height: 100%;

    padding: 35px;

    border-radius: var(--radius);

    background: white;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);
}

.stars {
    margin-bottom: 15px;
    font-size: 1.2rem;
}


/* =========================================
   CTA
========================================= */

.cta {

    padding: 120px 0;

    text-align: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--green-dark)
        );
}

.cta h2 {
    margin-bottom: 25px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .navbar-floating {
        width: 95%;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .landscape {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 3rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .room-card img {
        height: 240px;
    }

    .landscape {
        height: 350px;
    }
}
/* ==========================================================================
   CARTE GOOGLE MAPS RESPONSIVE
   ========================================================================== */
.map-responsive {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Optionnel : Si vous préférez un ratio fluide fixe plutôt qu'une hauteur en pixels */
@media (max-width: 576px) {
    .map-responsive iframe {
        height: 300px !important; /* Carte un peu moins haute sur l'écran des smartphones */
    }
}
.custom-hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.35) !important;
}
.custom-hover-card:hover .card-img-hover {
    transform: scale(1.08);
}
/* ==========================================================================
   Footer
========================================================================== */
   .hover-link {
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.hover-link:hover {
    color: #f8f9fa !important; /* Blanchit légèrement au survol */
    text-decoration: underline !important;
}
.custom-btn-gps {
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.2);
}
.custom-btn-gps:hover {
    background-color: #fff;
    color: #212529 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.custom-payment-list li {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Léger effet de survol pour faire écho au reste du footer */
.custom-payment-list li:hover {
    transform: translateX(4px);
    opacity: 1;
}
.payment-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}
/* ==========================================================================
   EFFET PARALLAXE CTA (Feuilles)
   ========================================================================== */

/* La section parent doit être en relative pour contenir le fond */
.cta.paralax-feuilles {
    position: relative;
    overflow: hidden;
    /* On garde ton dégradé d'origine en fond de secours/base */
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

/* Création du calque d'arrière-plan pour l'image */
.cta.paralax-feuilles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background-image: url("../medias/site/bg_feuille.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* C'est cette ligne qui crée la magie du parallaxe */
    background-attachment: fixed; 
    
    /* On joue sur la transparence pour ne pas écraser le contenu (à ajuster selon la photo) */
    opacity: 0.15; 
    
    z-index: 1;
}

/* On s'assure que tout le contenu de la section passe par-dessus l'image */
.cta.paralax-feuilles > .container {
    position: relative;
    z-index: 2;
}

/* Désactivation du parallaxe sur mobile (évite les gros bugs d'affichage sur iOS/Safari) */
@media (max-width: 991px) {
    .cta.paralax-feuilles::before {
        background-attachment: scroll; 
    }
}