/* ==========================================================================
   La Petite Patisserie — Main stylesheet
   ========================================================================== */

/* Base reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body  { overflow-x: hidden; min-width: 320px; }

:root {
    --cream:        #faf5ec;
    --cream-2:      #f3ead8;
    --ink:          #1f140d;
    --ink-soft:     #4a392c;
    --gold:         #b8884a;
    --gold-dark:    #8d6432;
    --rose:         #c98a8a;
    --line:         rgba(31, 20, 13, 0.12);

    --font-serif:  "Cormorant Garamond", "Times New Roman", serif;
    --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container:   1200px;
    --pad-x:       clamp(20px, 4vw, 40px);
    --radius:      6px;
    --shadow-sm:   0 1px 3px rgba(31, 20, 13, 0.06);
    --shadow-md:   0 12px 32px rgba(31, 20, 13, 0.10);
    --ease:        cubic-bezier(.22,.61,.36,1);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }
button { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 0.4em;
    line-height: 1.15;
}
p { margin: 0 0 1em; }

.container        { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.container.narrow { max-width: 760px; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 0 0 18px;
    font-weight: 500;
}

/* Header ------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0; z-index: 50;
    background: rgba(250, 245, 236, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 84px; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark {
    width: 44px; height: 44px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-size: 18px; font-weight: 600;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.brand-name {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.1;
    font-weight: 500;
}
.brand-name em { color: var(--gold-dark); font-style: italic; font-weight: 500; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.primary-nav a {
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 0;
    position: relative;
    transition: color .2s var(--ease);
    white-space: nowrap;
}
.primary-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.primary-nav a:hover { color: var(--gold-dark); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch  { display: flex; align-items: center; gap: 4px; font-size: 13px; letter-spacing: 0.08em; }
.lang-btn {
    text-decoration: none; padding: 4px 6px;
    color: var(--ink-soft); font-weight: 500;
    transition: color .2s var(--ease);
}
.lang-btn.is-active { color: var(--ink); border-bottom: 1px solid var(--gold); }
.lang-btn:hover     { color: var(--gold-dark); }
.lang-sep           { color: var(--line); }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: 0; width: 38px; height: 38px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .25s var(--ease), opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav-mobile {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--cream);
}
.primary-nav-mobile ul { list-style: none; margin: 0; padding: 8px var(--pad-x); }
.primary-nav-mobile li { border-bottom: 1px solid var(--line); }
.primary-nav-mobile li:last-child { border-bottom: 0; }
.primary-nav-mobile a { display: block; padding: 14px 0; text-decoration: none; font-size: 16px; }
.primary-nav-mobile.is-open { display: block; }

/* Buttons ------------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease);
    cursor: pointer; border: 0;
    text-align: center;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* Hero --------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 88vh;
    min-height: 88svh;
    display: flex; align-items: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(135deg, rgba(31, 20, 13, 0.55) 0%, rgba(31, 20, 13, 0.80) 100%),
        url('../images/edmondlafoto-paris-6803796_1920.jpg') center/cover no-repeat;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
    opacity: 0.6;
}
.hero-inner {
    position: relative;
    max-width: 880px;
    padding-top: 80px;
    padding-bottom: 120px;
    color: var(--cream);
}
.hero-inner .eyebrow { color: var(--gold); }
.hero-title {
    font-size: clamp(36px, 7vw, 96px);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--cream);
}
.hero-sub {
    font-size: clamp(16px, 1.6vw, 20px);
    color: rgba(250, 245, 236, 0.85);
    max-width: 560px;
    line-height: 1.55;
    margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn-ghost { color: var(--cream); border-color: var(--cream); }
.hero-ctas .btn-ghost:hover { background: var(--cream); color: var(--ink); }
.hero-ctas .btn-primary { background: var(--gold); color: var(--ink); }
.hero-ctas .btn-primary:hover { background: var(--cream); color: var(--ink); }

.hero-scroll {
    position: absolute; left: 50%; bottom: 28px;
    transform: translateX(-50%);
}
.hero-scroll span {
    display: block; width: 1px; height: 56px;
    background: linear-gradient(180deg, transparent, rgba(250,245,236,0.7));
    animation: scroll-pulse 2s var(--ease) infinite;
}
@keyframes scroll-pulse {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Sections shared ---------------------------------------------------------- */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 16px;
}
.section-sub { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 18px); }

/* Menu --------------------------------------------------------------------- */
.section-menu { background: var(--cream); }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.menu-card {
    padding: clamp(28px, 4vw, 44px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    transition: background .3s var(--ease);
}
.menu-card:hover { background: var(--cream-2); }
.menu-card-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; margin-bottom: 10px; flex-wrap: wrap;
}
.menu-card h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.menu-card .price {
    font-family: var(--font-serif);
    font-size: clamp(17px, 1.8vw, 20px); color: var(--gold-dark);
    font-style: italic; font-weight: 500;
    white-space: nowrap;
}
.menu-card p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* Story -------------------------------------------------------------------- */
.section-story { background: var(--cream-2); }
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px); align-items: center;
}
.story-text .section-title { text-align: left; }
.story-text .lede { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-soft); margin-bottom: 36px; }

.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats li {
    text-align: left;
    padding: 22px 12px 22px 0;
    border-top: 1px solid var(--ink);
}
.stats strong {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 44px); font-weight: 500;
    line-height: 1; margin-bottom: 6px;
    color: var(--ink);
}
.stats span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

.story-figure {
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 520px;
    width: 100%;
}
.story-img {
    position: absolute;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background-size: cover; background-position: center;
}
.story-img-1 {
    inset: 0 30% 25% 0;
    background-image: url('../images/chocolate-cake.jpg');
}
.story-img-2 {
    inset: 30% 0 0 35%;
    background-image: url('../images/chef.jpg');
    border: 6px solid var(--cream-2);
}

/* Gallery ------------------------------------------------------------------ */
.section-gallery { background: var(--cream); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(160px, 18vw);
    gap: 14px;
}
.g-tile {
    border-radius: var(--radius);
    background-size: cover; background-position: center;
    transition: transform .5s var(--ease), filter .3s var(--ease);
}
.g-tile:hover { transform: scale(1.02); filter: brightness(1.05); }
.g-1 { grid-column: span 2; grid-row: span 2; background-image: url('../images/croissant.jpg'); }
.g-2 { grid-column: span 2; background-image: url('../images/macarons.jpg'); }
.g-3 { grid-column: span 2; background-image: url('../images/strawberry-cake.jpg'); }
.g-4 { grid-column: span 2; background-image: url('../images/chocolat-chaud.jpg'); }
.g-5 { grid-column: span 2; grid-row: span 2; background-image: url('../images/chocolats.jpg'); }
.g-6 { grid-column: span 2; background-image: url('../images/boules-chocolat.jpg'); }

/* Contact ------------------------------------------------------------------ */
.section-contact { background: var(--ink); color: var(--cream); }
.section-contact .section-title,
.section-contact .eyebrow { color: var(--cream); }
.section-contact .eyebrow { color: var(--gold); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; }
.contact-list li {
    padding: 24px 0;
    border-top: 1px solid rgba(250, 245, 236, 0.15);
    display: grid; grid-template-columns: 140px 1fr; gap: 24px;
    align-items: baseline;
}
.contact-list .label {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold);
}

.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label span {
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
}
.contact-form input,
.contact-form textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(250, 245, 236, 0.3);
    color: var(--cream);
    font: inherit;
    padding: 12px 0;
    transition: border-color .2s var(--ease);
    width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0; border-bottom-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary {
    background: var(--gold);
    color: var(--ink);
    justify-self: start;
    margin-top: 8px;
}
.contact-form .btn-primary:hover { background: var(--cream); }

.form-flash {
    padding: 14px 16px; border-radius: var(--radius);
    font-size: 14px;
}
.form-flash.ok  { background: rgba(184, 136, 74, 0.2); color: var(--cream); border: 1px solid var(--gold); }
.form-flash.err { background: rgba(201, 138, 138, 0.2); color: var(--cream); border: 1px solid var(--rose); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #14090b; color: rgba(250, 245, 236, 0.7); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--cream); }
.footer-brand .brand-mark { border-color: var(--gold); color: var(--gold); }
.footer-brand strong { display: block; font-family: var(--font-serif); font-size: 18px; }
.footer-brand small  { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.footer-meta { text-align: right; font-size: 13px; }
.footer-meta p { margin: 0; }
.footer-lang { margin-top: 6px !important; }
.footer-lang a { text-decoration: none; color: rgba(250, 245, 236, 0.7); }
.footer-lang a.is-active { color: var(--cream); }
.footer-lang a:hover     { color: var(--gold); }

/* Prose pages -------------------------------------------------------------- */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--gold-dark); }
.post-list { display: grid; gap: 32px; }
.post-card { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 28px; margin-bottom: 8px; }
.post-card a  { text-decoration: none; }
.post-card a:hover { color: var(--gold-dark); }
.post-thumb { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }

/* Cookies banner ----------------------------------------------------------- */
.cookies-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #14090b;
    color: rgba(250, 245, 236, 0.9);
    z-index: 100;
    border-top: 1px solid var(--gold);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform .5s var(--ease);
}
.cookies-banner.is-visible { transform: none; }
.cookies-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 20px var(--pad-x);
    flex-wrap: wrap;
}
.cookies-text { flex: 1 1 320px; min-width: 0; }
.cookies-text strong {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--cream);
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}
.cookies-text p {
    font-size: 13px;
    margin: 0;
    line-height: 1.55;
    color: rgba(250, 245, 236, 0.75);
}
.cookies-text a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cookies-text a:hover {
    color: var(--cream);
    border-bottom-color: var(--cream);
}
.cookies-accept {
    background: var(--gold);
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
}
.cookies-accept:hover { background: var(--cream); transform: translateY(-1px); }
@media (max-width: 600px) {
    .cookies-inner { padding: 18px var(--pad-x) 22px; gap: 14px; }
    .cookies-text strong { font-size: 17px; }
    .cookies-text p { font-size: 12.5px; }
    .cookies-accept { width: 100%; }
}

/* Footer credit ------------------------------------------------------------ */
.footer-credit { margin-top: 4px !important; font-size: 12px; }
.footer-credit a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease);
}
.footer-credit a:hover { border-bottom-color: var(--gold); }

/* Lightbox ----------------------------------------------------------------- */
[data-lightbox] { cursor: zoom-in; }
[data-lightbox]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 9, 11, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 60px);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.lightbox.is-open    { display: flex; }
.lightbox.is-visible { opacity: 1; }

.lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: inline-flex;
}
.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    max-height: 86svh;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    background: #14090b;
    transition: opacity .25s var(--ease);
}
.lightbox-img.is-loading { opacity: 0; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(20, 9, 11, 0.7);
    color: var(--cream);
    border: 1px solid rgba(250, 245, 236, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    font-family: var(--font-sans);
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
    z-index: 2;
}
.lightbox-close { top: -56px; right: 0; }
.lightbox-prev  { left: -64px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.lightbox-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(250, 245, 236, 0.7);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 900px) {
    .lightbox { padding: 16px; }
    .lightbox-close {
        position: fixed;
        top: 16px;
        right: 16px;
    }
    .lightbox-prev { left: 8px;  }
    .lightbox-next { right: 8px; }
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .lightbox-img { max-height: 78vh; max-height: 78svh; }
    .lightbox-counter { bottom: -28px; font-size: 10px; }
}

/* Reveal on scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   1024  small desktop / large tablet
    900  collapse desktop nav to hamburger
    768  tablet portrait — menu becomes 1 column, contact list stacks labels
    600  large phone — gallery becomes 2 cols, stats compact
    420  small phone — single col stats, full-width buttons
   ========================================================================== */

@media (max-width: 1024px) {
    .gallery-grid { grid-auto-rows: minmax(140px, 16vw); gap: 12px; }
    .contact-list li { grid-template-columns: 120px 1fr; gap: 18px; }
}

@media (max-width: 900px) {
    .primary-nav { display: none; }
    .nav-toggle  { display: block; }

    .story-grid { grid-template-columns: 1fr; gap: 48px; }
    .story-figure { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }
    .story-text .section-title { text-align: left; }

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(160px, 22vw);
    }
    .g-1 { grid-column: span 2; grid-row: span 2; }
    .g-2, .g-3, .g-4, .g-5 { grid-column: span 2; grid-row: span 1; }
    .g-6 { grid-column: span 4; grid-row: span 1; }
}

@media (max-width: 768px) {
    .menu-grid { grid-template-columns: 1fr; }
    .header-inner { min-height: 72px; }
    .brand-mark { width: 40px; height: 40px; font-size: 16px; }
    .brand-name { font-size: 15px; }
    .hero { min-height: 80vh; min-height: 80svh; }
    .hero-inner { padding-top: 60px; padding-bottom: 90px; }
    .contact-list li {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 20px 0;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(140px, 36vw);
        gap: 10px;
    }
    .g-1, .g-5 { grid-column: span 2; grid-row: span 1; }
    .g-2, .g-3, .g-4, .g-6 { grid-column: span 1; grid-row: span 1; }

    .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stats li { padding: 16px 8px 16px 0; }
    .stats strong { font-size: 28px; }
    .stats span { font-size: 10px; letter-spacing: 0.08em; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-meta { text-align: center; }
    .footer-brand { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
    .header-inner { gap: 8px; }
    .header-right { gap: 8px; }
    .brand-name { font-size: 13px; }
    .brand-mark { width: 36px; height: 36px; font-size: 14px; }
    .lang-switch { font-size: 12px; }

    .hero-inner { padding-top: 48px; padding-bottom: 72px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; }

    .stats { grid-template-columns: 1fr; }
    .stats li { padding: 14px 0; }

    .gallery-grid { grid-auto-rows: 180px; }

    .menu-card { padding: 24px 20px; }
    .menu-card h3 { font-size: 20px; }
}

/* ==========================================================================
   PORTFOLIO ENHANCEMENTS  —  motion, new sections, contact page
   ========================================================================== */

/* Anchor offset so sticky header never covers section tops */
section[id] { scroll-margin-top: 96px; }

/* --- Scroll progress bar -------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--rose));
    z-index: 200;
    transition: width .1s linear;
    pointer-events: none;
}

/* --- Header scrolled state ------------------------------------------------ */
.site-header { transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-header.is-scrolled {
    box-shadow: 0 6px 28px rgba(31, 20, 13, 0.10);
    background: rgba(250, 245, 236, 0.97);
}
.site-header.is-scrolled .header-inner { min-height: 70px; }
.header-inner { transition: min-height .3s var(--ease); }

/* Active nav link (scroll-spy) */
.primary-nav a.is-current { color: var(--gold-dark); }
.primary-nav a.is-current::after { transform: scaleX(1); }

/* --- Split-text reveal (titles word by word) ------------------------------ */
[data-split] { }
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}
.word-inner {
    display: inline-block;
    transform: translateY(115%);
    transition: transform .9s var(--ease);
    transition-delay: calc(var(--w, 0) * 0.045s);
    will-change: transform;
}
.is-visible .word-inner,
[data-split].is-visible .word-inner { transform: translateY(0); }

/* --- Reveal variants + stagger -------------------------------------------- */
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(.92);        transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible { opacity: 1; transform: none; }
/* stagger: set --i on the element */
.reveal, .reveal-left, .reveal-right, .reveal-scale { transition-delay: calc(var(--i, 0) * 0.08s); }

/* --- Marquee band --------------------------------------------------------- */
.marquee {
    background: var(--ink);
    color: var(--cream);
    overflow: hidden;
    border-top: 1px solid rgba(250,245,236,0.08);
    border-bottom: 1px solid rgba(250,245,236,0.08);
    padding: 20px 0;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 34px);
    font-style: italic;
    padding: 0 28px;
    white-space: nowrap;
    color: rgba(250, 245, 236, 0.92);
}
.marquee-dot { color: var(--gold); padding: 0 4px; font-style: normal; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Intro statement ------------------------------------------------------ */
.section-intro { background: var(--cream); text-align: center; }
.intro-statement {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4.4vw, 56px);
    line-height: 1.2;
    font-weight: 500;
    max-width: 16ch;
    margin: 0 auto;
    letter-spacing: -0.01em;
}
.intro-statement .accent { color: var(--gold-dark); font-style: italic; }
.intro-lead {
    max-width: 560px;
    margin: 28px auto 0;
    color: var(--ink-soft);
    font-size: clamp(15px, 1.5vw, 18px);
}

/* --- Process / Savoir-faire ----------------------------------------------- */
.section-process { background: var(--cream-2); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 36px);
}
.process-step { position: relative; }
.step-media {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream) url('../images/placeholder.png') center/cover no-repeat;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.step-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(31,20,13,0.35));
}
/* Per-step images (Savoir-faire) */
.process-step:nth-child(1) .step-media { background-image: url('../images/petrissage.jpg'); }
.process-step:nth-child(2) .step-media { background-image: url('../images/tourage.jpg'); }
.process-step:nth-child(3) .step-media { background-image: url('../images/cuisson.jpg'); }
.process-step:nth-child(4) .step-media { background-image: url('../images/dressage.jpg'); }
.step-num {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--cream);
    background: rgba(31, 20, 13, 0.55);
    backdrop-filter: blur(4px);
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(250,245,236,0.4);
}
.step-title { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 8px; }
.step-text { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* --- Signature showcase (alternating) ------------------------------------- */
.section-showcase { background: var(--cream); }
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}
.showcase-row + .showcase-row { margin-top: clamp(56px, 9vw, 120px); }
.showcase-row.is-flipped .showcase-media { order: 2; }
.showcase-media {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.showcase-img {
    position: absolute;
    inset: -12% 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
.showcase-badge {
    position: absolute;
    z-index: 2; left: 20px; bottom: 20px;
    background: var(--cream);
    color: var(--ink);
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 8px 14px; border-radius: 100px;
    box-shadow: var(--shadow-sm);
}
.showcase-eyebrow { color: var(--gold-dark); }
.showcase-title { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
.showcase-body p { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17px); }
.showcase-list { list-style: none; padding: 0; margin: 22px 0 30px; }
.showcase-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.showcase-list li::before {
    content: '✦';
    position: absolute; left: 0; top: 9px;
    color: var(--gold);
    font-size: 14px;
}

/* --- Testimonials --------------------------------------------------------- */
.section-testimonials { background: var(--cream-2); }
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
}
.testi-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(28px, 3.5vw, 40px);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 18px; font-size: 15px; }
.testi-quote {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.45;
    color: var(--ink);
    margin: 0 0 24px;
    flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-size: 18px; font-weight: 600;
    flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 14px; }
.testi-role { font-size: 12px; color: var(--ink-soft); }

/* --- Awards / Press ------------------------------------------------------- */
.section-awards { background: var(--ink); color: var(--cream); padding: clamp(48px, 7vw, 80px) 0; }
.awards-head {
    text-align: center;
    font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 36px;
}
.awards-row {
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center;
    gap: clamp(28px, 6vw, 72px);
}
.award {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.4vw, 26px);
    color: rgba(250, 245, 236, 0.75);
    letter-spacing: 0.02em;
    transition: color .3s var(--ease), opacity .3s var(--ease);
    opacity: .8;
}
.award:hover { color: var(--cream); opacity: 1; }
.award small { display: block; font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-top: 4px; }

/* --- Newsletter ----------------------------------------------------------- */
.section-newsletter {
    position: relative;
    color: var(--cream);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.newsletter-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(rgba(31, 20, 13, 0.82), rgba(31, 20, 13, 0.88)),
        url('../images/infolettre.jpg') center/cover fixed no-repeat;
}
.newsletter-inner { max-width: 640px; margin: 0 auto; }
.newsletter-inner .eyebrow { color: var(--gold); }
.newsletter-inner h2 { color: var(--cream); font-size: clamp(30px, 4.5vw, 50px); }
.newsletter-inner p { color: rgba(250, 245, 236, 0.8); margin-bottom: 32px; }
.newsletter-form {
    display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
    flex-wrap: wrap;
}
.newsletter-form input {
    flex: 1 1 240px;
    background: rgba(250, 245, 236, 0.08);
    border: 1px solid rgba(250, 245, 236, 0.3);
    border-radius: var(--radius);
    color: var(--cream);
    padding: 15px 18px;
    font: inherit;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.newsletter-form input::placeholder { color: rgba(250, 245, 236, 0.55); }
.newsletter-form input:focus { outline: 0; border-color: var(--gold); background: rgba(250, 245, 236, 0.12); }
.newsletter-form .btn-primary { background: var(--gold); color: var(--ink); flex-shrink: 0; }
.newsletter-form .btn-primary:hover { background: var(--cream); }
.newsletter-note { font-size: 12px; color: rgba(250, 245, 236, 0.55); margin: 18px 0 0; }

/* --- Back-to-top ---------------------------------------------------------- */
.to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    z-index: 90;
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s var(--ease), visibility .3s;
    box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-dark); }
@media (max-width: 600px) { .to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; } }

/* --- Enhanced footer ------------------------------------------------------ */
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(250, 245, 236, 0.12);
}
.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
}
.footer-about { color: rgba(250, 245, 236, 0.65); font-size: 14px; max-width: 34ch; margin: 16px 0 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { text-decoration: none; color: rgba(250, 245, 236, 0.7); font-size: 14px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: rgba(250, 245, 236, 0.7); font-size: 14px; margin: 0 0 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(250, 245, 236, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; letter-spacing: 0.05em;
    color: rgba(250, 245, 236, 0.8);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* --- Page hero (contact + sub pages) -------------------------------------- */
.page-hero {
    position: relative;
    padding: clamp(120px, 18vw, 200px) 0 clamp(56px, 8vw, 90px);
    color: var(--cream);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.page-hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(135deg, rgba(31, 20, 13, 0.6), rgba(31, 20, 13, 0.82)),
        url('../images/edmondlafoto-paris-6803796_1920.jpg') center/cover no-repeat;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--cream); font-size: clamp(38px, 6vw, 76px); margin: 0; }
.page-hero p { color: rgba(250, 245, 236, 0.82); max-width: 560px; margin: 18px auto 0; }
.breadcrumb { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,245,236,0.6); margin-bottom: 22px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* --- Contact page --------------------------------------------------------- */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.contact-cards { display: grid; gap: 16px; margin-top: 8px; }
.contact-card {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.contact-card:hover { border-color: var(--gold); transform: translateX(4px); }
.contact-card .ico {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--cream-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.contact-card h3 { font-size: 18px; margin: 2px 0 6px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.contact-card a { color: var(--gold-dark); text-decoration: none; }

.contact-form-card {
    background: var(--ink);
    color: var(--cream);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.contact-form-card h2 { color: var(--cream); font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.contact-form-card .form-intro { color: rgba(250, 245, 236, 0.7); font-size: 14px; margin-bottom: 28px; }
.contact-form-card .contact-form .btn-primary { background: var(--gold); color: var(--ink); }
.contact-form-card .contact-form .btn-primary:hover { background: var(--cream); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-map {
    margin-top: clamp(48px, 7vw, 80px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    line-height: 0;
}
.contact-map iframe { width: 100%; height: clamp(320px, 45vw, 460px); border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

/* --- FAQ accordion -------------------------------------------------------- */
.section-faq { background: var(--cream-2); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; text-align: left;
    background: none; border: 0; cursor: pointer;
    padding: 26px 44px 26px 0;
    position: relative;
    font-family: var(--font-serif);
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--ink);
}
.faq-q::after {
    content: '+';
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font-size: 26px; color: var(--gold-dark);
    transition: transform .3s var(--ease);
    font-family: var(--font-sans);
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease);
}
.faq-a-inner { padding: 0 0 26px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale,
    .word-inner { opacity: 1 !important; transform: none !important; }
    .marquee-track { animation: none !important; }
}

/* ==========================================================================
   RESPONSIVE — new sections
   ========================================================================== */
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .testi-grid   { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
    .footer-top   { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
    .showcase-row { grid-template-columns: 1fr; gap: 32px; }
    .showcase-row.is-flipped .showcase-media { order: 0; }
    .showcase-media { aspect-ratio: 16 / 10; }
    .contact-page-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .process-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .step-media { aspect-ratio: 16 / 10; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: left; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn-primary { width: 100%; }
    .newsletter-bg { background-attachment: scroll; }
}

/* --- Savoir-faire: dramatic scroll-linked movement (desktop one-row only) -- */
.section-process { overflow: hidden; padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(140px, 18vw, 260px); }
.section-process .section-head { margin-bottom: clamp(56px, 8vw, 112px); }
.process-step { will-change: transform; }
@media (max-width: 1024px) {
    /* steps no longer share one row -> disable big travel, normal spacing */
    .section-process { padding-bottom: clamp(64px, 12vw, 120px); overflow: visible; }
    .process-step { will-change: auto; }
}
