/* À l’ancienne : même identité, un parcours de la vitrine au comptoir. */
:root {
    --motion-ease: cubic-bezier(.22, 1, .36, 1);
    --header-height: 88px;
}
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body[data-motion-page] { overflow-x: clip; }
[data-motion-page] .site-header { --nav-p: .65; background: rgba(245,239,225,.97); backdrop-filter: none; }
[data-motion-page] .site-header__inner { min-height: 80px; }
[data-motion-page] a:focus-visible,
[data-motion-page] button:focus-visible { outline: 3px solid var(--rouge-clair); outline-offset: 6px; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 300; padding: 1rem; background: var(--creme); color: var(--noir); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.reading-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 3px; background: var(--rouge); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* L’entrée garde la façade et le grand titre d’origine. */
.page-home .hero { min-height: calc(100svh - 126px); padding: clamp(2rem,5vh,4rem) 2rem; }
.page-home .hero__title { font-size: clamp(3.5rem,8.4vw,8rem); margin-bottom: 1.5rem; }
.page-home .hero__eyebrow { margin-bottom: 1.6rem; }
.page-home .hero__lede { max-width: 530px; margin-bottom: 1.6rem; }
.page-home .hero__cta { margin-bottom: 1.8rem; }
.page-home .hero__photo { will-change: auto; }
.page-home .hero__photo::after { background: linear-gradient(90deg,rgba(26,20,16,.7),rgba(26,20,16,.12) 82%); }
.page-home .hero__photo-img { object-position: center 42%; }
.page-home .hero__title-line { animation: none; opacity: 1; overflow: clip; line-height: 1.15; margin-block: -.08em; }
.page-home .hero__title-line--accent { transform: none; margin-left: 2rem; padding-right: .16em; max-width: 100%; }
.hero__word { display: block; }
.motion-ready .hero__word { animation: sign-enter .95s var(--motion-ease) both; }
.hero__title-line:nth-child(2) .hero__word { animation-delay: .11s; }
.hero__title-line:nth-child(3) .hero__word { animation-delay: .22s; }
.page-home .hero__eyebrow,.page-home .hero__lede,.page-home .hero__cta,.page-home .hero__rating { animation-duration: .7s; animation-delay: .25s; }
.page-home .hero__cta { animation-delay: .4s; }
.page-home .hero__rating { animation-delay: .5s; }
@keyframes sign-enter { from { transform: translateY(115%); } to { transform: translateY(0); } }
.motion-desktop.hero-can-pin .hero-scene { height: calc(var(--hero-height,800px) + 48vh); margin-bottom: -56px; position: relative; z-index: 0; }
.motion-desktop.hero-can-pin .hero { position: sticky; top: var(--header-height); }
.page-home .marquee { z-index: 4; position: relative; }
.page-home .story { box-shadow: 0 -20px 60px rgba(26,20,16,.12); }
.motion-desktop .story { padding-block: 9rem; }
.motion-desktop .story__img { will-change: auto; }

/* Les lignes restent un seul titre accessible. */
/* Extra mask space keeps italic overhangs and descenders visible without moving the text. */
.type-mask { display: block; overflow: clip; padding: .06em .16em .3em; margin: 0 -.16em -.3em; }
.type-inner { display: block; }
.motion-ready .type-title:not(.is-visible) .type-inner { transform: translateY(112%); }
.motion-ready .type-inner { transition: transform .85s var(--motion-ease); transition-delay: var(--line-delay,0ms); }
.motion-reveal { transition: opacity .7s var(--motion-ease), translate .7s var(--motion-ease); transition-delay: var(--entry-delay,0ms); }
.motion-ready .motion-reveal:not(.is-visible) { opacity: 0; translate: 0 24px; }
.motion-ready .motion-reveal.is-visible { opacity: 1; translate: 0 0; }
.motion-paused, .motion-paused::before, .motion-paused::after { animation-play-state: paused !important; }

/* Une traversée du comptoir, faite uniquement avec les photos de la maison. */
.counter { position: relative; z-index: 3; background: var(--creme); padding: 5rem 0; }
.counter__inner { width: 100%; }
.counter__head { max-width: 1300px; margin: 0 auto 2.4rem; padding: 0 2rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.counter__head .section-title { font-size: clamp(2.6rem,5vw,4.6rem); margin-bottom: 0; }
.counter__head .section-eyebrow { margin-bottom: .9rem; }
.counter__link { font-family: var(--font-sans); font-size: .85rem; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid var(--rouge); color: var(--rouge); white-space: nowrap; }
.counter__window { padding: 12px 2rem 24px; }
.counter__track { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
.counter__card { min-width: 0; margin: 0; }
.counter__photo { aspect-ratio: 5 / 6; overflow: hidden; border: 6px solid var(--blanc); border-radius: 3px; background: var(--noir); box-shadow: 0 12px 28px rgba(26,20,16,.12); }
.counter__photo img { width: 100%; height: 100%; object-fit: cover; }
.counter__card figcaption { margin-top: 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.counter__card strong { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.counter__card figcaption span { color: var(--gris); font-size: .88rem; }
.counter__foot { display: none; }
.motion-desktop .counter { padding: 0; height: calc(var(--counter-height,750px) + var(--counter-travel,0px)); }
.motion-desktop .counter__inner { position: sticky; top: var(--header-height); padding: 2.5rem 0 1.5rem; overflow: clip; }
.motion-desktop .counter__head { margin-bottom: 1.6rem; }
.motion-desktop .counter__window { overflow: clip; padding-inline: max(2rem,calc((100vw - 1240px)/2)); }
.motion-desktop .counter__track { display: flex; max-width: none; margin: 0; gap: 3rem; width: max-content; align-items: start; }
.motion-desktop .counter__card { width: clamp(300px,31vw,455px); flex: none; }
.motion-desktop .counter__card:nth-child(2n) { padding-top: 24px; }
.motion-desktop .counter__photo { height: clamp(290px,43vh,485px); aspect-ratio: auto; }
.motion-desktop .counter__card:nth-child(3) { width: clamp(380px,40vw,580px); }
.motion-desktop .counter__card:nth-child(3) .counter__photo img { object-position: center 62%; }
.motion-desktop .counter__foot { display: flex; align-items: center; gap: 1rem; max-width: 1240px; margin: 1rem auto 0; padding-inline: 2rem; font: .7rem var(--font-sans); color: var(--gris); letter-spacing: .08em; text-transform: uppercase; }
.counter__line { flex: 1; height: 1px; background: var(--kraft); }
.counter__line span { display: block; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: left; }
@media (max-height: 850px) and (min-width: 1101px) {
    .page-home .hero { padding-block: 2rem; }
    .page-home .hero__title { font-size: clamp(3.5rem,7vw,5.4rem); margin-bottom: 1.25rem; }
    .page-home .hero__eyebrow { margin-bottom: 1rem; }
    .page-home .hero__lede { margin-bottom: 1.25rem; }
    .page-home .hero__cta { margin-bottom: 1.25rem; }
    .motion-desktop .counter__inner { padding-block: 1.25rem; }
    .motion-desktop .counter__head { margin-bottom: 1rem; }
    .motion-desktop .counter__head .section-title { font-size: 2.8rem; }
    .motion-desktop .counter__photo { height: 37vh; }
    .motion-desktop .counter__foot { margin-top: .4rem; }
}

/* Les personnes derrière le comptoir : mêmes cadres photographiques. */
.team__grid--photos { max-width: 1240px; grid-template-columns: 1fr 1.15fr 1fr; gap: 2.5rem; align-items: start; }
.member__portrait { aspect-ratio: 3 / 4; overflow: hidden; border: 6px solid var(--blanc); box-shadow: 0 18px 45px rgba(26,20,16,.14); margin: 0 0 1.5rem; border-radius: 3px; }
.member__portrait img { width: 100%; height: 100%; object-fit: cover; }
.member--cook .member__portrait { transform: rotate(-2deg); }
.member--cook img { object-position: 65% 43%; }
.member--together .member__portrait { transform: rotate(.7deg); }
.member--together img { object-position: center 47%; }
.member--owner .member__portrait { transform: rotate(1.8deg); }
.member--owner img { object-position: center 45%; }
.team__grid--photos .member__name { margin-top: .4rem; }
.motion-desktop .member--cook { margin-top: 56px; }
.motion-desktop .member--owner { margin-top: 96px; }
.motion-desktop .team { padding-top: 6rem; box-shadow: 0 -20px 40px rgba(26,20,16,.04); }
.gallery__frame img { transition: transform .65s var(--motion-ease); }
@media (hover:hover) and (pointer:fine) {
    .gallery__cell:hover .gallery__frame img { transform: scale(1.025); }
}
.motion-toggle { font: .72rem var(--font-sans); color: var(--creme); border: 1px solid rgba(245,239,225,.35); border-radius: 2px; padding: .7rem 1rem; min-height: 44px; }
.quick-contact { display: none; }

@media (max-width: 1100px) {
    .team__grid--photos { gap: 1.5rem; }
    .team__grid--photos .member__portrait { aspect-ratio: 3 / 4; }
}
@media (max-width: 960px) {
    [data-motion-page] .site-header { backdrop-filter: none; }
    [data-motion-page] .main-nav { right: 0; transform: translateX(105%); visibility: hidden; transition: transform .35s var(--motion-ease), visibility .35s; }
    [data-motion-page] .main-nav.open { transform: none; visibility: visible; }
    .page-home .hero { min-height: calc(100svh - 120px); padding: 3rem 1.5rem; }
    .page-home .hero__title { font-size: clamp(3.5rem,10.5vw,6rem); }
    .page-home .hero__title-line--accent { margin-left: .5rem; }
    .page-home .hero__lede { font-size: 1.05rem; }
    .counter__head { padding-inline: 1.5rem; }
    .counter__window { padding-inline: 1.5rem; }
    .counter__track { gap: 2rem 1.3rem; }
    .team__grid--photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .member--together { grid-column: 2; grid-row: span 2; position: sticky; top: calc(var(--header-height) + 24px); }
    .member--owner { grid-column: 1; }
    .team__grid--photos .member__portrait { aspect-ratio: 3 / 4; }
    .motion-reveal { transition-duration: .45s; }
}
@media (max-width: 600px) {
    .page-home .hero__eyebrow { font-size: .65rem; letter-spacing: .15em; line-height: 1.7; }
    .page-home .hero__title { font-size: clamp(3.1rem,12.5vw,4.8rem); }
    .page-home .hero__photo::after { background: rgba(26,20,16,.54); }
    .page-home .hero__rating { gap: .65rem; flex-wrap: wrap; }
    .counter__head { align-items: start; flex-direction: column; gap: 1rem; }
    .counter__track { grid-template-columns: 1fr; gap: 2.5rem; }
    .counter__card:nth-child(3) .counter__photo { aspect-ratio: 6 / 5; }
    .team__grid--photos { display: flex; flex-direction: column; gap: 3.5rem; }
    .team__grid--photos .member { width: 100%; position: static; }
    .team__grid--photos .member__portrait { aspect-ratio: 3 / 4; }
    .member__portrait { transform: none !important; }
    .page-home .footer { padding-bottom: 7rem; }
    .quick-contact { display: flex; position: fixed; z-index: 85; bottom: 12px; left: 16px; right: 16px; padding-bottom: env(safe-area-inset-bottom,0px); background: var(--creme); border: 1px solid var(--kraft); box-shadow: 0 6px 30px rgba(26,20,16,.18); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .2s,transform .2s,visibility .2s; }
    .quick-contact.is-visible { opacity: 1; visibility: visible; transform: none; }
    .quick-contact a { flex: 1; text-align: center; padding: 1rem .5rem; font: 600 .8rem var(--font-sans); }
    .quick-contact a:last-child { background: var(--rouge); color: var(--creme); }
}

/* Même présentation statique si le système ou la personne réduit le mouvement. */
html[data-reduced-motion="true"] { scroll-behavior: auto; }
html[data-reduced-motion="true"] *, html[data-reduced-motion="true"] *::before, html[data-reduced-motion="true"] *::after { animation: none !important; transition: none !important; }
html[data-reduced-motion="true"] .type-inner, html[data-reduced-motion="true"] .hero__word { transform: none !important; }
html[data-reduced-motion="true"] .motion-reveal { opacity: 1 !important; translate: none !important; }
html[data-reduced-motion="true"] .hero__eyebrow, html[data-reduced-motion="true"] .hero__lede, html[data-reduced-motion="true"] .hero__cta, html[data-reduced-motion="true"] .hero__rating { opacity: 1; }
html[data-reduced-motion="true"] .member--together { position: static; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .type-inner,.hero__word { transform: none !important; }
    .motion-reveal { opacity: 1 !important; translate: none !important; }
    .hero__eyebrow,.hero__lede,.hero__cta,.hero__rating { opacity: 1; }
    .member--together { position: static; }
}
