/* ==================================================================
   MAISON LUMIERE - FEUILLE DE STYLE PRINCIPALE
   ==================================================================
   Structure du fichier :
   1. Variables (couleurs, polices)
   2. Reset et styles de base
   3. Typographie commune
   4. Navbar
   5. Section Hero
   6. Section A Propos
   7. Section Services
   8. Section Philosophie
   9. Section Galerie
   10. Section Temoignages
   11. Section Reservation
   12. Footer
   13. Animations (reveal au scroll)
   14. Responsive (tablette / mobile)
   ================================================================== */


/* ==================================================================
   1. VARIABLES
   ==================================================================
   PERSONNALISATION DES COULEURS : modifier les codes hexadecimaux
   ci-dessous pour changer toute la palette du site.
   ================================================================== */
:root {
    --white:           #ffffff;
    --warm-taupe:      #AF9483;   /* Couleur principale taupe */
    --warm-taupe-dark: #8e7566;   /* Taupe assombri pour hover */
    --shaker-beige:    #D1C2A7;   /* Beige doux d'accent */
    --shaker-light:    #ece3d3;   /* Beige tres clair (fond sections) */
    --ink:             #2b221d;   /* Texte principal (brun tres fonce) */
    --muted:           #7a6a5f;   /* Texte secondaire */

    --font-display: 'Cormorant Garamond', serif;   /* Police des titres */
    --font-body:    'Manrope', sans-serif;         /* Police du corps de texte */
}


/* ==================================================================
   2. RESET ET STYLES DE BASE
   ================================================================== */
* {
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}


/* ==================================================================
   3. TYPOGRAPHIE COMMUNE
   ================================================================== */
h1, h2, h3, h4,
.display-serif {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

/* Petit texte en majuscules au-dessus des titres */
.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: .72rem;
    font-weight: 500;
    color: var(--warm-taupe);
}

.eyebrow-light {
    color: var(--shaker-beige);
}


/* ==================================================================
   4. NAVBAR
   ==================================================================
   Comportement :
   - Transparente au chargement (sur le hero)
   - Au scroll : fond blanc translucide avec effet de flou
   - Gere par JS (classe .scrolled ajoutee)
   ================================================================== */
.navbar {
    transition: all .5s ease;
    padding: 1.6rem 0;
    background: transparent;
}

.navbar .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--white);
    letter-spacing: .02em;
    transition: color .5s ease;
}

/* Petit point decoratif entre "Maison" et "Lumiere" */
.brand-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--shaker-beige);
    margin: 0 .35rem .35rem;
    vertical-align: middle;
}

.navbar .nav-link {
    color: var(--white);
    font-size: .82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin: 0 .9rem;
    position: relative;
    transition: color .3s ease;
}

/* Trait fin anime sous le lien au survol */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--shaker-beige);
    transition: all .35s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
    width: 24px;
}

/* Bouton Reserver dans la navbar */
.navbar .btn-reserve {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
    color: var(--white);
    padding: .7rem 1.6rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 500;
    border-radius: 0;
    transition: all .4s ease;
    margin-left: 1rem;
}

.navbar .btn-reserve:hover {
    background: var(--shaker-beige);
    border-color: var(--shaker-beige);
    color: var(--ink);
    transform: translateY(-1px);
}

/* ETAT SCROLLE : classe ajoutee par JS apres 80px de scroll */
.navbar.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: .9rem 0;
    box-shadow: 0 1px 0 rgba(175, 148, 131, .12);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--ink);
}

.navbar.scrolled .btn-reserve {
    border-color: var(--warm-taupe);
    color: var(--warm-taupe);
}

.navbar.scrolled .btn-reserve:hover {
    background: var(--warm-taupe);
    color: var(--white);
}

.navbar-toggler {
    border: none;
    color: var(--white);
}

.navbar.scrolled .navbar-toggler {
    color: var(--ink);
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* ==================================================================
   5. SECTION HERO (plein ecran)
   ==================================================================
   PERSONNALISATION DE L'IMAGE DE FOND :
   Dans la regle .hero::before ci-dessous, remplacer l'URL de l'image
   par le chemin vers ton image locale, exemple :
   url('../images/hero.jpg')
   ================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* IMAGE DE FOND DU HERO : remplacer par ton image */
    background:
        linear-gradient(180deg,
            rgba(43, 34, 29, .35) 0%,
            rgba(43, 34, 29, .55) 60%,
            rgba(43, 34, 29, .7) 100%),
        url('../images/hero.jpg') center / cover no-repeat;
    z-index: 0;
    transform: scale(1.05);
    animation: heroZoom 18s ease-out forwards;
}

/* Effet de zoom tres lent au chargement */
@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    color: var(--shaker-beige);
    opacity: 0;
    animation: fadeUp 1s .3s forwards;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
    font-weight: 300;
    margin: 1.2rem 0 1.5rem;
    opacity: 0;
    animation: fadeUp 1.1s .55s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--shaker-beige);
    font-weight: 300;
}

.hero p.lead {
    max-width: 520px;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .88);
    opacity: 0;
    animation: fadeUp 1.1s .8s forwards;
}

.hero .hero-cta {
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeUp 1.1s 1s forwards;
}

/* Bouton principal (beige, utilise partout dans le site) */
.btn-primary-custom {
    background: var(--shaker-beige);
    color: var(--ink);
    border: none;
    padding: 1.1rem 2.4rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    border-radius: 0;
    transition: all .4s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--white);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
}

/* Bouton secondaire transparent */
.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .4);
    padding: 1.1rem 2.4rem;
    font-size: .78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .22em;
    text-decoration: none;
    display: inline-block;
    margin-left: .8rem;
    transition: all .4s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--white);
    color: var(--white);
}

/* Indicateur "Decouvrir" en bas du hero */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    color: var(--white);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .3em;
    z-index: 3;
    opacity: 0;
    animation: fadeUp 1s 1.4s forwards;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, .5);
    margin: 10px auto 0;
    animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50%      { transform: scaleY(1); transform-origin: top; }
    51%      { transform-origin: bottom; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==================================================================
   6. STYLES COMMUNS AUX SECTIONS
   ================================================================== */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 300;
    margin-top: .8rem;
}

.section-header h2 em {
    font-style: italic;
    color: var(--warm-taupe);
}


/* ==================================================================
   7. SECTION A PROPOS
   ================================================================== */
.about {
    background: var(--white);
}

.about-img {
    position: relative;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.about-img:hover img {
    transform: scale(1.04);
}

/* Cadre decoratif fin a l'interieur de l'image */
.about-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .45);
    z-index: 2;
    pointer-events: none;
}

.about p {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 1.2rem;
}

.about .signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--warm-taupe);
    margin-top: 2rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(175, 148, 131, .2);
}

.stats .stat .num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--warm-taupe);
    line-height: 1;
}

.stats .stat .lbl {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--muted);
    margin-top: .5rem;
}


/* ==================================================================
   8. SECTION SERVICES (cartes avec image en fond)
   ================================================================== */
.services {
    background: var(--shaker-light);
}

.service-card {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: all .6s ease;
    display: flex;
    align-items: flex-end;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(43, 34, 29, .35);
}

/* Voile sombre dégradé pour la lisibilité du texte blanc */
.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(43, 34, 29, .15) 0%,
        rgba(43, 34, 29, .55) 55%,
        rgba(43, 34, 29, .88) 100%);
    transition: all .6s ease;
    z-index: 1;
}

.service-card:hover .service-overlay {
    background: linear-gradient(180deg,
        rgba(43, 34, 29, .25) 0%,
        rgba(43, 34, 29, .65) 50%,
        rgba(43, 34, 29, .92) 100%);
}

/* Effet de zoom léger sur l'image au survol */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease;
    z-index: 0;
}

.service-card:hover {
    background-size: 110%;
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    color: var(--white);
    width: 100%;
    transform: translateY(40px);
    transition: transform .6s ease;
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-content h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: .8rem;
    font-weight: 400;
}

.service-content p {
    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
    margin-bottom: 1.2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .6s ease;
}

.service-card:hover .service-content p {
    opacity: 1;
    max-height: 200px;
}

.service-content .price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--shaker-beige);
    font-style: italic;
}

/* Trait fin animé en haut de la carte au hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--shaker-beige);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s ease;
    z-index: 3;
}

.service-card:hover::after {
    transform: scaleX(1);
}


/* ==================================================================
   9. SECTION PHILOSOPHIE (bande taupe pleine)
   ================================================================== */
.philosophy {
    background: var(--warm-taupe);
    color: var(--white);
    padding: 7rem 0;
    text-align: center;
}

.philosophy blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

.philosophy .dash {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--shaker-beige);
    vertical-align: middle;
    margin: 0 1rem;
}

.philosophy .eyebrow {
    color: var(--shaker-beige);
}


/* ==================================================================
   10. SECTION GALERIE
   ==================================================================
   Grille asymetrique en 4 colonnes et 2 rangees.
   Disposition :
     g1 : grande photo verticale (colonne 1, 2 rangees)
     g2 : photo horizontale (colonnes 2-3, rangee 1)
     g3 : photo carree (colonne 4, rangee 1)
     g4 : photo carree (colonne 2, rangee 2)
     g5 : photo horizontale (colonnes 3-4, rangee 2)
   ================================================================== */
.gallery {
    background: var(--white);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

/* Voile sombre au survol */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(43, 34, 29, .55));
    opacity: 0;
    transition: opacity .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 260px 260px;
    gap: 14px;
}

.gallery-grid .g1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-grid .g2 { grid-column: 2 / 4; grid-row: 1 / 2; }
.gallery-grid .g3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.gallery-grid .g4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.gallery-grid .g5 { grid-column: 3 / 5; grid-row: 2 / 3; }


/* ==================================================================
   11. SECTION TEMOIGNAGES
   ================================================================== */
.testimonials {
    background: var(--shaker-light);
}

.testimonial {
    background: var(--white);
    padding: 3rem;
    height: 100%;
    position: relative;
}

/* Gros guillemet decoratif */
.testimonial .quote-mark {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--shaker-beige);
    line-height: .5;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.testimonial p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.testimonial .author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(175, 148, 131, .2);
}

.testimonial .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial .author .name {
    font-weight: 600;
    font-size: .95rem;
}

.testimonial .author .role {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .15em;
}

.testimonial .stars {
    color: var(--warm-taupe);
    margin-bottom: 1rem;
    font-size: .85rem;
}


/* ==================================================================
   12. SECTION RESERVATION
   ==================================================================
   PERSONNALISATION DE L'IMAGE DE FOND : remplacer l'URL dans
   .reservation::before par le chemin vers ton image, exemple :
   url('../images/reservation-bg.jpg')
   ================================================================== */
.reservation {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.reservation::before {
    content: '';
    position: absolute;
    inset: 0;
    /* IMAGE DE FOND DE LA SECTION RESERVATION : remplacer par ton image */
    background: url('../images/reservation-bg.jpg') center / cover no-repeat;
    opacity: .15;
}

.reservation > .container {
    position: relative;
    z-index: 2;
}

.reservation h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
}

.reservation h2 em {
    font-style: italic;
    color: var(--shaker-beige);
}

.reservation-text {
    color: rgba(255, 255, 255, .75);
    max-width: 540px;
}

/* Bloc info (adresse, horaires, telephone) */
.reservation .info {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.reservation .info i {
    color: var(--shaker-beige);
    font-size: 1.3rem;
    margin-top: .25rem;
}

.reservation .info .lbl {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--shaker-beige);
    margin-bottom: .2rem;
}

.reservation .info .val {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
}


/* ==================================================================
   13. FOOTER
   ================================================================== */
footer {
    background: #1f1813;
    color: rgba(255, 255, 255, .6);
    padding: 3rem 0 2rem;
    font-size: .85rem;
}

footer .brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    margin: 0 .8rem;
    transition: color .3s;
}

footer a:hover {
    color: var(--shaker-beige);
}

/* Icones sociales dans des cercles */
footer .socials a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    margin: 0 .3rem;
    transition: all .4s ease;
}

footer .socials a:hover {
    background: var(--warm-taupe);
    border-color: var(--warm-taupe);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-hr {
    border-color: rgba(255, 255, 255, .08);
    margin: 2rem 0 1rem;
}

.footer-copy {
    font-size: .78rem;
    opacity: .5;
}


/* ==================================================================
   14. ANIMATION REVEAL AU SCROLL
   ==================================================================
   Les elements avec la classe .reveal sont caches au chargement
   et apparaissent en glissant vers le haut lorsqu'ils entrent
   dans le viewport (via IntersectionObserver dans main.js).
   ================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================================
   SECTION CHEQUES CADEAUX
   ================================================================== */
.gift-card {
    position: relative;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    padding: 7rem 0;
}

.gift-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(175, 148, 131, .25) 0%,
        rgba(43, 34, 29, .95) 100%);
    z-index: 0;
}

.gift-card > .container {
    position: relative;
    z-index: 2;
}

.gift-card h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 300;
}

.gift-card h2 em {
    font-style: italic;
    color: var(--shaker-beige);
}

.gift-card-text {
    color: rgba(255, 255, 255, .75);
    max-width: 540px;
    font-size: 1.05rem;
}

.gift-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(209, 194, 167, .3);
    border-radius: 50%;
    color: var(--shaker-beige);
    font-size: 6rem;
    position: relative;
    animation: giftPulse 4s ease-in-out infinite;
}

.gift-icon::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(209, 194, 167, .15);
    border-radius: 50%;
    animation: giftPulse 4s ease-in-out infinite reverse;
}

@keyframes giftPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: .8; }
}

/* ==================================================================
   15. RESPONSIVE (tablettes et mobiles)
   ================================================================== */
@media (max-width: 991px) {

    /* Menu mobile : fond blanc plein */
    .navbar-collapse {
        background: rgba(255, 255, 255, .98);
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .navbar .nav-link {
        color: var(--ink) !important;
        margin: .5rem 0;
    }

    .navbar .btn-reserve {
        border-color: var(--warm-taupe);
        color: var(--warm-taupe);
        margin: 1rem 0 0;
    }

    /* Reduction des paddings de section */
    section {
        padding: 5rem 0;
    }

    .about-img img {
        height: 400px;
        margin-bottom: 2rem;
    }

    .stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero .btn-ghost {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {

    /* Galerie : grille simplifiee en 2 colonnes */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-grid .g1,
    .gallery-grid .g2,
    .gallery-grid .g3,
    .gallery-grid .g4,
    .gallery-grid .g5 {
        grid-column: auto;
        grid-row: auto;
    }
}
