/* =====================================================
   PÂTISSERIE BELLE ÉPOQUE - Styles Principaux
   Esthétique : Luxe artisanal français
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
    /* Couleurs principales */
    --color-cream: #FAF7F2;
    --color-cream-dark: #F5EFE6;
    --color-beige: #E8DFD4;
    --color-beige-dark: #D4C8B8;
    --color-chocolate: #3D2314;
    --color-chocolate-light: #5C3D2E;
    --color-chocolate-medium: #4A2C1A;
    --color-gold: #C9A962;
    --color-gold-light: #D4BC7D;
    --color-gold-dark: #A88B4A;
    --color-caramel: #8B5A2B;
    --color-espresso: #2C1810;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;

    /* Typographie */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-slower: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(61, 35, 20, 0.08);
    --shadow-md: 0 4px 16px rgba(61, 35, 20, 0.12);
    --shadow-lg: 0 8px 32px rgba(61, 35, 20, 0.16);
    --shadow-xl: 0 16px 48px rgba(61, 35, 20, 0.2);

    /* Bordures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Dimensions */
    --header-height: 80px;
    --container-max: 1280px;
    --container-narrow: 900px;

    /* Bandeau maquette : espresso translucide + hauteur reservee sous le contenu */
    --demo-banner-bg: rgba(44, 24, 16, 0.94); /* --color-espresso */
    --demo-banner-border: rgba(201, 169, 98, 0.35); /* --color-gold */
    --demo-banner-height: 2.5rem;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-chocolate);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

address {
    font-style: normal;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-chocolate);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ----- Section ----- */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section--dark {
    background-color: var(--color-chocolate);
    color: var(--color-cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-cream);
}

.section--dark .section__label {
    color: var(--color-gold-light);
}

.section--dark p {
    color: var(--color-cream);
    opacity: 0.9;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

/* caramel plutot que gold : ce sur-titre de 12 px en capitales espacees ne
   donnait que 2,11:1 sur le fond creme. Le caramel monte a 5,5:1. Sur fond
   sombre, .section--dark .section__label et .section__label--light prennent le
   relais avec l'or clair, qui y est deja a 7,8:1. */
.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-caramel);
    margin-bottom: var(--space-md);
}

.section__label--light {
    color: var(--color-gold-light);
}

.section__title {
    margin-bottom: var(--space-md);
}

.section__title--light {
    color: var(--color-cream);
}

.section__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.section__divider::before,
.section__divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.divider__diamond {
    color: var(--color-gold);
    font-size: 0.75rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn--primary {
    background-color: var(--color-chocolate);
    color: var(--color-cream);
}

.btn--primary:hover {
    background-color: var(--color-chocolate-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    border: 1px solid var(--color-cream);
    color: var(--color-cream);
    background: transparent;
}

.btn--outline:hover {
    background-color: var(--color-cream);
    color: var(--color-chocolate);
}

.btn--light {
    background-color: var(--color-cream);
    color: var(--color-chocolate);
}

.btn--light:hover {
    background-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(250, 247, 242, 0.98), rgba(250, 247, 242, 0.95));
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.header.scrolled::before {
    opacity: 1;
}

/* Voile sombre degrade : le header flotte au-dessus de la photo hero,
   ce voile garantit la lisibilite de la navigation quelle que soit la photo.
   Il s'efface des que le panneau creme prend le relais (.scrolled). */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -40px;
    background: linear-gradient(
        to bottom,
        rgba(28, 15, 8, 0.90) 0%,
        rgba(28, 15, 8, 0.70) 55%,
        rgba(28, 15, 8, 0) 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

/* Le mode « voile » ne vaut qu'en haut de la page d'accueil et menu mobile
   ferme : le panneau plein ecran du menu est creme, le texte clair y serait
   invisible. Un seul garde-fou, plutot que des regles de rattrapage. */
body:has(.hero):not(:has(.header__nav.mobile-open)) .header:not(.scrolled)::after {
    opacity: 1;
}

/* Texte clair tant que le voile sombre est actif (contraste mesure >= 5:1
   meme sur une photo blanche, le pire cas possible) */
body:has(.hero):not(:has(.header__nav.mobile-open)) .header:not(.scrolled) .logo__text,
body:has(.hero):not(:has(.header__nav.mobile-open)) .header:not(.scrolled) .nav__link {
    color: var(--color-cream);
    text-shadow: 0 1px 3px rgba(28, 15, 8, 0.5);
}

body:has(.hero):not(:has(.header__nav.mobile-open)) .header:not(.scrolled) .nav__link--active {
    color: var(--color-gold-light);
}

body:has(.hero):not(:has(.header__nav.mobile-open)) .header:not(.scrolled) .header__burger span {
    background-color: var(--color-cream);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

/* Header on inner pages - ensure visibility over dark backgrounds */
body.inner-page .header::before,
body:has(.page-header) .header::before {
    opacity: 1;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo__monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-chocolate), var(--color-chocolate-light));
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-base);
}

.header__logo:hover .logo__monogram {
    transform: scale(1.05);
}

.logo__text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-chocolate);
}

.header__nav {
    display: none;
}

@media (min-width: 1024px) {
    .header__nav {
        display: block;
    }
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-chocolate);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    /* caramel plutot que gold-dark : 5,29:1 sur le panneau creme (gold-dark
       ne donnait que 2,94:1, sous le seuil AA de 4,5:1) */
    color: var(--color-caramel);
}

.header__phone {
    display: none;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    /* espresso plutot que blanc : 7,5:1 sur l'or clair (le blanc ne donnait
       que 2,25:1, tres en dessous du seuil AA) */
    color: var(--color-espresso);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.header__phone:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
    .header__phone {
        display: flex;
    }
}

/* Burger Menu */
/* `z-index` etait present mais sans `position` : il ne s'appliquait donc pas.
   Symptome : une fois le menu ouvert, le panneau creme plein ecran (fixed, donc
   peint apres les elements non positionnes) recouvrait la croix de fermeture —
   invisible ET inclicable. Le menu ne pouvait plus se refermer autrement qu'en
   suivant un lien. La cible passe aussi a 44 px : elle n'en mesurait que 32. */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1001;
}

.header__burger::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

/* Meme cause pour le logo : la regle de couleur prevue pour l'etat « menu
   ouvert » (texte chocolat sur le panneau creme) ne servait a rien puisque le
   panneau le recouvrait. */
.header__logo {
    position: relative;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .header__burger {
        display: none;
    }
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-chocolate);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.header__nav.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-cream);
    padding-top: calc(var(--header-height) + var(--space-xl));
    animation: fadeIn 0.3s ease;
}

.header__nav.mobile-open .nav__list {
    flex-direction: column;
    gap: var(--space-lg);
}

.header__nav.mobile-open .nav__link {
    font-size: 1.5rem;
    font-family: var(--font-display);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* reserve la hauteur du header fixe en haut et celle de l'indicateur
       « Decouvrir » en bas : sans ca le contenu centre passe sous la barre
       de navigation sur les ecrans peu hauts */
    padding-top: var(--header-height);
    padding-bottom: var(--space-4xl);
}

.hero__content {
    position: relative;
    z-index: 1;
}

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

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 24, 16, 0.55) 0%,
        rgba(44, 24, 16, 0.7) 50%,
        rgba(44, 24, 16, 0.85) 100%
    );
}

.hero__content {
    text-align: center;
    color: var(--color-cream);
    padding: var(--space-lg);
    max-width: 800px;
}

/* espresso plutot que blanc : 7,5:1 sur l'or clair et 5,4:1 sur l'or fonce
   (le blanc ne donnait que 2,25:1, tres en dessous du seuil AA de 4,5:1 pour
   ce texte de 11 px). Meme correctif que .header__phone plus haut. */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-espresso);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__badge .badge__icon {
    font-size: 0.6rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: var(--space-md);
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(28, 15, 8, 0.85), 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero__title--accent {
    font-style: italic;
    color: var(--color-gold-light);
    text-shadow: 0 1px 2px rgba(28, 15, 8, 0.9), 0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
    text-shadow: 0 1px 2px rgba(28, 15, 8, 0.8), 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero__description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
    color: var(--color-cream);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background-color: var(--color-cream);
    color: var(--color-chocolate);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.hero__cta:hover {
    background-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero__cta svg {
    transition: transform var(--transition-base);
}

.hero__cta:hover svg {
    transform: translateX(4px);
}

.hero__cta--outline {
    background-color: transparent;
    border: 2px solid var(--color-cream);
    color: var(--color-cream);
}

.hero__cta--outline:hover {
    background-color: var(--color-cream);
    color: var(--color-chocolate);
}

.hero__cta--outline svg {
    transform: none;
}

.hero__cta--outline:hover svg {
    transform: none;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    /* remonte l'indicateur au-dessus du bandeau maquette fixe */
    bottom: calc(var(--space-xl) + var(--demo-banner-height));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-cream);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}

.scroll__line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-cream), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 60px; }
    50% { opacity: 1; height: 80px; }
}

/* =====================================================
   UNIVERS (4 Savoir-faire)
   ===================================================== */
.univers__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .univers__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .univers__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }
}

.univers__card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.univers__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card__image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

.univers__card:hover .card__image img {
    transform: scale(1.1);
}

.card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(44, 24, 16, 0.2) 60%,
        rgba(44, 24, 16, 0.6) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.univers__card:hover .card__overlay {
    opacity: 1;
}

.card__content {
    padding: var(--space-lg);
}

/* caramel : l'or ne donnait que 2,25:1 sur la carte blanche. */
.card__number {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--color-caramel);
    margin-bottom: var(--space-xs);
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.card__description {
    font-size: 0.9rem;
    color: var(--color-chocolate-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    /* caramel : l'or fonce ne donnait que 3,14:1 sur la carte blanche, sous le
       seuil AA de 4,5:1 pour ce libelle de 12,8 px. */
    color: var(--color-caramel);
    transition: all var(--transition-base);
}

.card__link:hover {
    color: var(--color-chocolate);
    gap: var(--space-sm);
}

/* =====================================================
   ABOUT PREVIEW
   ===================================================== */
.about-preview {
    overflow: hidden;
}

.about-preview__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pattern {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 50%;
}

.pattern--left {
    top: -150px;
    left: -150px;
}

.pattern--right {
    bottom: -150px;
    right: -150px;
}

.about-preview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .about-preview__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-preview__image {
    position: relative;
}

/* Symptome : le lisere dore cense encadrer la photo (::before, deborde de
   10 px) n'apparaissait sur aucune page. Deux causes cumulees :
   - `overflow: hidden`, pose pour arrondir les coins de la photo, rognait le
     ::before qui deborde volontairement hors du cadre ;
   - avec `position: relative` sans z-index chiffre, le cadre ne creait pas de
     contexte d'empilement : le `z-index: -1` du ::before remontait jusqu'a la
     racine et le placait DERRIERE le fond chocolat de la section.
   Correctif : le rognage passe sur l'image, et `z-index: 0` enferme le ::before
   dans le cadre. */
.image__frame {
    position: relative;
    z-index: 0;
    border-radius: var(--radius-md);
    overflow: visible;
}

.image__frame img {
    border-radius: var(--radius-md);
}

.image__frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: -1;
}

.image__frame img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Idem : blanc sur or = 2,25:1. Sous 1024 px cette pastille est posee sur la
   photo elle-meme, ou elle etait quasi illisible. */
.image__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-espresso);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1023px) {
    .image__badge {
        bottom: 20px;
        right: 20px;
    }
}

.badge__years {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.badge__label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.about-preview__content {
    position: relative;
    z-index: 1;
}

.about-preview__quote {
    margin: var(--space-xl) 0;
    padding-left: var(--space-lg);
    border-left: 2px solid var(--color-gold);
}

.about-preview__quote p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.about-preview__quote cite {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--color-gold-light);
}

.about-preview__values {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.value {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
}

.value__icon {
    color: var(--color-gold);
}

/* =====================================================
   TESTIMONIAL
   ===================================================== */
.testimonial {
    background-color: var(--color-cream-dark);
}

.testimonial__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial__icon {
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.testimonial__text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.testimonial__author {
    margin-bottom: var(--space-xl);
}

.author__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-chocolate-light);
}

.testimonial__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .testimonial__stats {
        gap: var(--space-xl);
    }
}

.stat {
    text-align: center;
}

/* caramel : l'or fonce ne donnait que 2,75:1 sur le creme fonce, sous le seuil
   de 3:1 pourtant permissif des grands caracteres. */
.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-caramel);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-chocolate-light);
}

.stat__divider {
    display: none;
    width: 1px;
    height: 40px;
    background-color: var(--color-beige-dark);
}

@media (min-width: 768px) {
    .stat__divider {
        display: block;
    }
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
    position: relative;
    padding: var(--space-4xl) 0;
}

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

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

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(44, 24, 16, 0.9) 0%,
        rgba(44, 24, 16, 0.7) 100%
    );
}

.cta__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: var(--color-cream);
}

.cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.cta__text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: var(--color-espresso);
    color: var(--color-beige);
}

.footer__top {
    padding: var(--space-3xl) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer__logo .logo__monogram {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-espresso);
}

.footer__logo .logo__text {
    color: var(--color-cream);
    font-size: 1.125rem;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: var(--space-md);
}

.footer__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.footer__title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all var(--transition-base);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--color-gold-light);
    padding-left: var(--space-xs);
}

.footer__address {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: var(--space-md);
}

.footer__address p {
    margin-bottom: var(--space-sm);
}

.footer__address a:hover {
    color: var(--color-gold-light);
}

.footer__hours {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer__hours p {
    margin-bottom: var(--space-xs);
}

.footer__hours strong {
    color: var(--color-gold-light);
}

.footer__bottom {
    border-top: 1px solid rgba(201, 169, 98, 0.2);
    padding: var(--space-lg) 0;
    /* reserve la hauteur du bandeau maquette fixe en bas de fenetre : le fond
       espresso du footer se prolonge dessous, aucun contenu n'est masque */
    padding-bottom: calc(var(--space-lg) + var(--demo-banner-height));
}

.footer__bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.footer__copyright,
.footer__legal {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer__legal a:hover {
    opacity: 1;
    color: var(--color-gold-light);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =====================================================
   PAGE SPECIFIC STYLES
   ===================================================== */

/* Page Header */
.page-header {
    position: relative;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background-color: var(--color-chocolate);
    color: var(--color-cream);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.page-header__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.page-header__subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Content Sections */
.content-section {
    padding: var(--space-3xl) 0;
}

.content-section:nth-child(even):not(.section--dark) {
    background-color: var(--color-cream-dark);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* =====================================================
   BANDEAU MAQUETTE
   ===================================================== */
.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* au-dessus du contenu (max z-index 100) mais sous le header et son menu
       mobile plein ecran (z-index 1000) : le bandeau ne bloque jamais la nav */
    z-index: 900;
    background-color: var(--demo-banner-bg);
    border-top: 1px solid var(--demo-banner-border);
    padding: 0.45rem var(--space-md);
    text-align: center;
}

.demo-banner__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-beige);
}

.demo-banner__link {
    color: var(--color-gold-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    /* evite que « Hue » se retrouve seul sur une ligne en mobile */
    white-space: nowrap;
}

.demo-banner__link:hover {
    color: var(--color-white);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 767px) {
    :root {
        /* le texte du bandeau passe sur deux lignes sous 768px */
        --demo-banner-height: 4rem;
    }

    .demo-banner {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Le header gardait 2 rem de marge laterale quand le contenu passe a
       1,5 rem : logo desaligne des titres, et 16 px de moins pour le nom de la
       boutique, qui repassait a la ligne sur les petits telephones. */
    .header__container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 575px) {
    :root {
        /* mesure a 375px de large : le texte tient sur trois lignes (69px) */
        --demo-banner-height: 5.5rem;
    }

    /* Les boutons portaient 3 rem de padding lateral. Mesure a 375 px : le
       bouton principal du hero demandait 349 px pour 311 px disponibles, et son
       libelle « Decouvrir nos creations » se cassait sur deux lignes des le
       premier ecran. A 1,5 rem il tient sur une ligne. */
    .btn,
    .hero__cta {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}
