/* ==========================================================================
   MOKAFÉ — Nout’ Kafé
   Principe : un seul rythme, répété. Deux fonds (noir, crème), une grille
   de 12 colonnes, un même en-tête de section partout (titre à gauche,
   texte à droite), des photos plein cadre ou en paire. Pas d'effets.
   ========================================================================== */


:root {
  --noir: #15110E;
  --creme: #EEE5D8;
  --encre: #1B1410;
  --jaune: #FFC844;       /* jaune du logo : CTA et focus uniquement */

  --bg: var(--noir);
  --fg: #EFE6DA;
  --muted: rgba(239, 230, 218, .64);
  --line: rgba(239, 230, 218, .16);
  --panel: #1F1814;

  --m: clamp(20px, 4vw, 64px);    /* marge latérale */
  --g: clamp(16px, 2vw, 32px);    /* gouttière */
  --max: 1360px;
  --space: clamp(88px, 10vw, 152px);
  --hh: 96px;

  --title: "Brandon Printed", "Arial Narrow", sans-serif;
  --title-shadow: "Brandon Printed Shadow", "Brandon Printed", sans-serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.light {
  --bg: var(--creme); --fg: var(--encre);
  --muted: rgba(27, 20, 16, .66); --line: rgba(27, 20, 16, .16); --panel: #E2D6C4;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--noir); color: var(--fg);
  font-family: var(--text); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main > section { background: var(--bg); color: var(--fg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--jaune); color: var(--noir); }
:focus-visible { outline: 2px solid var(--jaune); outline-offset: 4px; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--jaune); color: var(--noir); transform: translateY(-160%); transition: transform .3s; }
.skip:focus { transform: none; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }

/* --- Typographie --------------------------------------------------------
   Titres : Brandon Printed (capitales à grain d'impression, comme sur les
   paquets). Tout le reste : Hanken Grotesk. */
.h2 {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04; letter-spacing: .02em; text-transform: uppercase;
  text-wrap: balance;
}
.h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.statement { font-size: clamp(25px, 2.9vw, 42px); line-height: 1.22; font-weight: 400; letter-spacing: -.012em; max-width: 24em; text-wrap: pretty; }

/* --- Liens & boutons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 26px;
  background: var(--jaune); color: var(--noir);
  font-size: 16px; font-weight: 600;
  transition: background-color .3s;
}
.btn svg { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .4s; }
.btn:hover { background: #FFD670; }
.btn:hover svg { transform: translateX(4px); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  padding-block: 6px;
  font-size: 15px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s;
}
.link::after {
  content: ""; width: 15px; height: 10px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M0 5h13.5M9.5 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M0 5h13.5M9.5 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link:hover::after { transform: translateX(4px); }

/* Échelle d'intensité (cinq grains, comme sur les paquets) */
.beans { display: inline-flex; gap: 5px; align-items: center; vertical-align: middle; }
.beans i { display: block; width: 7px; height: 11px; border: 1.25px solid currentColor; border-radius: 50%; transform: rotate(24deg); }
.beans i.on { background: currentColor; }

/* Fiche technique : filets fins */
.meta > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.meta dt { color: var(--muted); }
.meta dd { text-align: right; }

/* --- En-tête ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hh);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: max(var(--m), calc((100% - var(--max)) / 2 + var(--m)));   /* même bord que le contenu */
  color: #EFE6DA;
  border-bottom: 1px solid transparent;
  transition: height .4s, background-color .4s, border-color .4s;
}
.site-header.is-scrolled { height: 72px; background: rgba(21, 17, 14, .96); border-color: rgba(239, 230, 218, .1); }
.site-header__logo img { height: 68px; width: auto; transition: height .4s; }
.site-header.is-scrolled .site-header__logo img { height: 52px; }

.site-nav ul { display: flex; gap: clamp(22px, 2.6vw, 44px); }
.site-nav a { display: block; padding-block: 8px; font-size: 15px; font-weight: 500; opacity: .75; border-bottom: 1px solid transparent; transition: opacity .3s, border-color .3s; }
.site-nav a:hover, .site-nav a[aria-current="true"] { opacity: 1; }
.site-nav a[aria-current="true"] { border-bottom-color: currentColor; }

.menu-toggle { display: none; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; padding: 10px 0; }
.menu-toggle__bars { position: relative; width: 22px; height: 8px; }
.menu-toggle__bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 6.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 3.25px; transform: rotate(-45deg); }

.menu-mobile { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hh) + 40px) var(--m) 32px; background: var(--noir); color: #EFE6DA; }
.menu-mobile[hidden] { display: none; }
.menu-mobile li { border-top: 1px solid rgba(239, 230, 218, .14); }
.menu-mobile li a { display: block; padding: 16px 0 14px; font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -.015em; }
.menu-mobile__foot { display: grid; gap: 6px; font-size: 15px; color: rgba(239, 230, 218, .7); }

/* --- La marque ---------------------------------------------------------- */
.marque { padding-top: var(--space); }

/* --- En-tête de section (le même partout) -------------------------------- */
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: end; }
.section-head .h2 { grid-column: 1 / 8; }
.section-head__text { grid-column: 8 / 13; max-width: 38ch; color: var(--muted); }
.section-head__text p + p { margin-top: 14px; }

section.cafes, section.craft, section.local, section.contact { padding-block: var(--space); }

/* --- Composition de la marque ---------------------------------------- */
.marque__duo { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: end; margin-top: clamp(64px, 7vw, 112px); }
.marque__a { grid-column: 1 / 7; }

.marque__b { grid-column: 8 / 13; }

.marque__b p { margin-top: 24px; max-width: 32ch; color: var(--muted); }

/* --- Nos cafés ---------------------------------------------------------- */
.range { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(56px, 6vw, 88px) var(--g); margin-top: clamp(64px, 7vw, 104px); }
.group--4 { grid-column: 1 / -1; }
.group--2 { grid-column: span 2; }
.group--1 { grid-column: span 1; }
.group__title { padding-top: 14px; margin-bottom: 28px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: var(--g); }
.group--4 { --n: 4; } .group--2 { --n: 2; } .group--1 { --n: 1; }

.card { display: flex; flex-direction: column; }
.card__visual { border-bottom: 3px solid var(--c, transparent); display: grid; place-items: center; aspect-ratio: 1 / 1.06; background: var(--panel); overflow: hidden; }
.card__visual img { width: 82%; max-height: 90%; object-fit: contain; transition: transform .6s; }
.card__visual img.is-tall { width: auto; height: 88%; }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 22px; }
.card__name { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.005em; }
.card__sig { margin-top: 4px; font-size: 15px; color: var(--muted); }
.card .meta { margin: 18px 0 20px; }
.card .link { margin-top: auto; align-self: flex-start; }
@media (hover: hover) { .card__visual:hover img { transform: scale(1.03); } }

/* --- Savoir-faire ------------------------------------------------------- */
.craft__photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--g); margin-top: clamp(56px, 6vw, 96px); }
.craft__photos img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.craft__photos figure:first-child img { object-position: 50% 62%; }
.craft__photos figure:last-child img { object-position: 50% 70%; }
.craft__text { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--g); margin-top: clamp(40px, 4vw, 64px); }
.craft__text > div { padding-top: 18px; border-top: 1px solid var(--line); }
.craft__text p { margin-top: 12px; max-width: 46ch; color: var(--muted); }

/* --- Ancrage ------------------------------------------------------------ */
section.local { padding-top: 0; }
.local .wrap { margin-top: var(--space); }
.local__lead { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; color: var(--fg); }
.label { display: grid; grid-template-columns: 76px 1fr; gap: 24px; align-items: start; max-width: 600px; margin: clamp(48px, 5vw, 72px) 0 0 calc(100% / 12 * 7 + var(--g) * 7 / 12); padding-top: 24px; border-top: 1px solid var(--line); }
.label img { width: 76px; }
.label p { color: var(--muted); font-size: 15px; }
.label strong { color: var(--fg); font-weight: 600; }

/* --- Contact ------------------------------------------------------------ */
section.contact { padding-top: 0; }
.contact__body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: start; margin-top: clamp(56px, 6vw, 96px); }
.contact__mail { grid-column: 1 / 7; font-size: clamp(30px, 4vw, 56px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; justify-self: start; padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .3s; }
.contact__mail:hover { color: var(--jaune); }
.contact__list { grid-column: 8 / 13; }
.contact__list > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__list > div:last-child { border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: 14px; color: var(--muted); }
.contact__list dd { font-size: 15px; line-height: 1.5; }
.contact__list a:not(.link):hover { color: var(--jaune); }

/* --- Pied de page ------------------------------------------------------- */
.site-footer { background: #0F0C0A; color: #EFE6DA; --line: rgba(239, 230, 218, .12); --muted: rgba(239, 230, 218, .56); padding-block: 80px 32px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 48px; }
.site-footer__logo { grid-column: 1 / 4; align-self: start; }
.site-footer__logo img { width: 104px; }
.site-footer__col--nav { grid-column: 6 / 8; }
.site-footer__col--contact { grid-column: 8 / 11; }
.site-footer__col--gsp { grid-column: 11 / 13; }
.site-footer__title { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.site-footer li { padding-block: 3px; font-size: 15px; line-height: 1.5; }
.site-footer li a { transition: color .3s; }
.site-footer li a:hover { color: var(--jaune); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 80px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-btn { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-btn:hover { color: #EFE6DA; }

/* --- Fiche produit ------------------------------------------------------ */
.drawer {
  --bg: var(--creme); --fg: var(--encre); --muted: rgba(27, 20, 16, .66); --line: rgba(27, 20, 16, .16); --panel: #E2D6C4;
  position: fixed; inset: 0 0 0 auto; width: min(540px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); overflow: hidden;
}
.drawer[open] { animation: drawer-in .45s ease-out; }
.drawer.is-closing { animation: drawer-out .3s ease-in forwards; }
.drawer::backdrop { background: rgba(15, 12, 10, .62); }
.drawer[open]::backdrop { animation: fade-in .4s ease-out; }
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } }
@keyframes drawer-out { to { transform: translateX(32px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.drawer__inner { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.drawer__close { position: absolute; top: 18px; right: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.drawer__close span { font-size: 22px; line-height: 1; font-weight: 300; }
.drawer__visual { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / .86; padding-top: 56px; background: var(--panel); }
.drawer__visual img { height: 90%; width: auto; }
.drawer__body { padding: 32px 40px 48px; }
.drawer--legal .drawer__body { padding-top: 88px; }
.drawer__format { font-size: 14px; color: var(--muted); }
.drawer__name { margin-top: 8px; font-family: var(--title); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.04; letter-spacing: .02em; text-transform: uppercase; }
.drawer__sig { margin-top: 12px; font-size: 18px; }
.drawer .meta { margin-top: 24px; }
.drawer .meta > div { display: grid; grid-template-columns: 8.5em 1fr; align-items: start; gap: 16px; padding: 12px 0; }
.drawer .meta dd { text-align: left; font-size: 15px; }
.drawer__contact { margin-top: 32px; }

/* --- Apparition : un seul mouvement, court -------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s ease-out, transform .8s ease-out; }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav ul { gap: 22px; }
  .site-nav a { font-size: 14px; }
  .range { grid-template-columns: repeat(2, 1fr); }
  .group--4 { --n: 2; }
  .group--4, .group--2 { grid-column: 1 / -1; }
  .group--2 { --n: 2; }
  .group--1 { grid-column: span 1; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 899px) {
  :root { --hh: 64px; }
  html { scroll-padding-top: 64px; }
  body { font-size: 16px; }
  .site-header.is-scrolled { height: 64px; }
  .site-header__logo img, .site-header.is-scrolled .site-header__logo img { height: 46px; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Hero : titre en bas de l'écran, sur la photo */
  .hero { min-height: max(100svh, 620px); align-items: end; }
  .hero__bg img { object-position: 56% 60%; }
  .hero::before { background: rgba(21, 17, 14, .42); }
  .hero__center { padding-bottom: 84px; }
  .hero__title { font-size: min(21vw, 110px); }
  .hero__lead { font-size: 16px; }
  .hero__scroll { display: none; }
  .ticker__track span { font-size: 18px; }

  .marque { padding-top: 88px; }
  .marque__duo { display: block; margin-top: 48px; }
  .marque__b { margin-top: 28px; }
    section.aromas { padding-block: 88px; }
  .profiles li { display: block; }
  .profiles .beans { margin-top: 14px; }
  .profiles li > div { margin-top: 12px; }
  
  .section-head { display: block; }
  .section-head__text { margin-top: 22px; max-width: none; }
  section.cafes, section.craft, section.contact { padding-block: 88px; }

  /* Cafés : grille de deux colonnes, infos réduites à l'essentiel */
  .range { display: block; margin-top: 56px; }
  .group + .group { margin-top: 56px; }
  .group__title { margin-bottom: 22px; }
  .cards, .group--1 .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 14px; }
  .card__visual { aspect-ratio: 1 / 1.08; }
  .card__visual img { width: 84%; }
  .card__body { padding-top: 14px; }
  .card__name { font-size: 18px; }
  .card__sig { font-size: 13.5px; }
  .card .meta { margin: 12px 0 14px; }
  .card .meta > div { display: block; padding: 3px 0; border-top: 0; font-size: 13.5px; }
  .card .meta dt { display: none; }
  .card .meta dd { text-align: left; }
  .card .link { font-size: 14px; }

  .craft__photos { grid-template-columns: 1fr; margin-top: 48px; }
  .craft__photos img { aspect-ratio: 4 / 3.4; }
  .craft__text { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }

  section.local { padding-top: 0; }
    .local .wrap { margin-top: 64px; }
  .label { margin-left: 0; grid-template-columns: 64px 1fr; gap: 18px; margin-top: 44px; }
  .label img { width: 64px; }

  section.contact { padding-top: 0; }
  .contact__body { display: block; margin-top: 48px; }
  .contact__mail { font-size: clamp(30px, 9.4vw, 44px); }
  .contact__list { margin-top: 48px; }
  .contact__list > div { grid-template-columns: 6.5em 1fr; }

  .site-footer { padding-top: 64px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .site-footer__logo { grid-column: 1 / -1; }
  .site-footer__logo img { width: 88px; }
  .site-footer__col--nav { grid-column: 1; }
  .site-footer__col--contact { grid-column: 2; }
  .site-footer__col--gsp { grid-column: 1 / -1; }
  .site-footer__legal { flex-direction: column; margin-top: 56px; }

  .drawer__body { padding: 28px 24px 40px; }
}

/* --- Mouvement réduit --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js [data-reveal], }


/* ==========================================================================
   Effets — un seul système : entrées en masque, parallaxe douce,
   boutons à remplissage, cartes qui se soulèvent.
   ========================================================================== */

/* --- Hero plein cadre ---------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: max(100svh, 680px); display: grid; align-items: center; overflow: hidden; background: var(--noir); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 17, 14, .6); }
.hero__bg { position: absolute; inset: 0; z-index: -2; animation: hero-zoom 3s cubic-bezier(.22,.68,.16,1) both; }
.hero__bg picture, .hero__bg img { display: block; }
.hero__bg img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 62%; will-change: transform; }
@keyframes hero-zoom { from { transform: scale(1.14); } }
.hero__center { width: 100%; padding-top: calc(var(--hh) + 16px); padding-bottom: 72px; text-align: center; }
.hero__title { font-family: var(--title-shadow); font-weight: 400; font-size: clamp(76px, 13vw, 200px); line-height: .98; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 50px rgba(0,0,0,.45); }
.hero__title .line { display: block; overflow: hidden; padding: .22em .1em .08em; margin: -.22em -.1em -.08em; }
.ch { display: inline-block; }
html.js .ch { transform: translateY(115%) rotate(7deg); transition: transform 1.1s cubic-bezier(.22,.68,.16,1); transition-delay: calc(var(--i) * 55ms + .2s); }
html.is-loaded .ch { transform: none; }
.hero__lead { margin-top: clamp(20px, 2.2vw, 34px); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: #F3EBDF; text-shadow: 0 1px 24px rgba(0,0,0,.7); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(26px, 2.8vw, 42px); }
html.js .hero__lead, html.js .hero__actions { opacity: 0; transform: translateY(18px); transition: opacity 1s ease-out, transform 1s ease-out; }
html.js .hero__lead { transition-delay: .9s; } html.js .hero__actions { transition-delay: 1.05s; }
html.is-loaded .hero__lead, html.is-loaded .hero__actions { opacity: 1; transform: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; color: rgba(239,230,218,.8); }
.hero__scroll::after { content: ""; width: 1px; height: 44px; background: currentColor; transform-origin: top; animation: scroll-cue 2.2s ease-in-out infinite; }
@keyframes scroll-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* --- Bandeau défilant ---------------------------------------------------- */
.ticker { overflow: hidden; background: var(--jaune); color: var(--noir); border-block: 1px solid rgba(21,17,14,.2); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__track span { white-space: pre; padding: 16px 0; font-family: var(--title); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Boutons : remplissage, flèche, effet magnétique ----------------------- */
.btn { position: relative; isolation: isolate; overflow: hidden; gap: 16px; transition: color .45s, transform .45s cubic-bezier(.22,.68,.16,1), box-shadow .45s; will-change: transform; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #FFF6E3; transform: translateX(-101%); transition: transform .6s cubic-bezier(.65,0,.35,1); }
.btn:hover { background: var(--jaune); box-shadow: 0 14px 34px -12px rgba(255,200,68,.55); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .5s cubic-bezier(.22,.68,.16,1); }
.btn:hover svg { transform: translateX(7px); }
.btn--ghost { background: transparent; color: #EFE6DA; box-shadow: inset 0 0 0 1px rgba(239,230,218,.55); }
.btn--ghost::before { background: #EFE6DA; }
.btn--ghost:hover { background: transparent; color: var(--noir); box-shadow: inset 0 0 0 1px #EFE6DA; }

/* --- Photos : entrée en masque + parallaxe douce ---------------------------- */
.pimg { position: relative; overflow: hidden; aspect-ratio: var(--ar, 2.4 / 1); }
.pimg img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
html.js [data-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.65,0,.35,1); }
html.js [data-mask].is-in { clip-path: inset(0); }
.craft__photos figure:nth-child(2) { transition-delay: .15s; }
.craft__photos figure { overflow: hidden; }
.craft__photos img { transition: transform 1.6s cubic-bezier(.22,.68,.16,1); }
.craft__photos figure:hover img { transform: scale(1.04); }

/* --- Titres : mots qui montent --------------------------------------------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
html.js .h2[data-reveal] { opacity: 1; transform: none; }
html.js .h2 .w > span { transform: translateY(110%); transition: transform .95s cubic-bezier(.22,.68,.16,1); transition-delay: calc(var(--i) * 80ms); }
html.js .h2.is-in .w > span { transform: none; }

/* --- Cartes produit : le paquet se soulève, le filet grandit ------------------ */
.cards .card:nth-child(2) { --d: .09s; } .cards .card:nth-child(3) { --d: .18s; } .cards .card:nth-child(4) { --d: .27s; }
.card__visual { position: relative; border-bottom: 0; }
.card__visual::before { content: ""; position: absolute; inset: 0; background: var(--c, transparent); opacity: 0; transition: opacity .6s; }
.card__visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c, transparent); transition: height .5s cubic-bezier(.22,.68,.16,1); }
.card__visual img { position: relative; z-index: 1; transition: transform .8s cubic-bezier(.22,.68,.16,1), filter .8s; }
@media (hover: hover) {
  .card:hover .card__visual::before { opacity: .13; }
  .card:hover .card__visual::after { height: 12px; }
  .card:hover .card__visual img { transform: translateY(-12px) rotate(-1.5deg) scale(1.04); filter: drop-shadow(0 24px 22px rgba(0,0,0,.28)); }
  .card__visual:hover img { transform: translateY(-12px) rotate(-1.5deg) scale(1.04); }
}

/* --- Arômes : les grains s'allument, la ligne réagit ------------------------ */
html.js .profiles li:not(.is-in) .beans i.on { background: transparent; }
.profiles .beans i { transition: background .5s ease-out; transition-delay: calc(var(--k, 0) * 150ms + .3s); }
.profile__sig { transition: transform .6s cubic-bezier(.22,.68,.16,1), color .4s; }
@media (hover: hover) { .profiles li:hover .profile__sig { transform: translateX(14px); color: var(--jaune); } }

/* --- Barre de progression --------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: var(--jaune); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg, .ticker__track, .hero__scroll::after { animation: none; }
  html.js .ch, html.js .hero__lead, html.js .hero__actions, html.js .h2 .w > span { transform: none; opacity: 1; }
  html.js [data-mask] { clip-path: none; }
}

@media (max-width: 899px) {
  .hero { align-items: end; }
  .hero__bg img { object-position: 56% 60%; }
  .hero::before { background: rgba(21, 17, 14, .42); }
  .hero__center { padding-bottom: 84px; }
  .hero__title { font-size: min(21vw, 110px); }
  .hero__lead { font-size: 16px; }
  .hero__scroll { display: none; }
  .btn { height: 52px; padding: 0 22px; }
  .ticker__track span { font-size: 18px; }
  .local__photo .pimg { --ar: 4 / 3.4; }
  .marque__a .pimg { --ar: 4 / 4.2; }
}


/* ==========================================================================
   Ajustements : boutons en pilule (couleur seule), images arrondies comme
   les étiquettes des paquets, souligné du menu, sections restructurées.
   ========================================================================== */
:root { --r: 14px; }

/* Boutons : seule la couleur change */
.btn { border-radius: 999px; overflow: visible; box-shadow: none; transform: none !important; transition: background-color .3s, color .3s, box-shadow .3s; }
.btn::before { display: none; }
.btn:hover { background: #F3EBDF; color: var(--noir); box-shadow: none; }
.btn:active { transform: none; }
.btn:hover svg { transform: none; }
.btn--ghost { box-shadow: inset 0 0 0 1px rgba(239,230,218,.55); }
.btn--ghost:hover { background: #F3EBDF; color: var(--noir); box-shadow: inset 0 0 0 1px #F3EBDF; }

/* Menu : souligné qui se trace au survol */
.site-nav a { position: relative; border-bottom: 0 !important; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }

/* Images arrondies */
.pimg, .craft__photos figure, .card__visual { border-radius: var(--r); }
.label img { border-radius: 10px; }
html.js [data-mask] { clip-path: inset(0 0 100% 0 round var(--r)); }
html.js [data-mask].is-in { clip-path: inset(0 round var(--r)); }
.card__visual { overflow: hidden; }

/* Paquets : centrés dans leur cadre */
.card__visual { position: relative; display: block; }
.card__visual img, .card__visual img.is-tall { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 80%; max-height: 86%; }
.drawer__visual { align-items: center; padding-top: 48px; }
.drawer__visual img { height: auto; max-height: 86%; max-width: 72%; }

/* Un café d'ici */
.local .wrap { margin-top: 0; }
.local__photo .pimg { --ar: 2.4 / 1; }
.local__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: start; margin-top: clamp(56px, 6vw, 96px); }
.local__main { grid-column: 1 / 7; }
.local__lead { margin-top: 28px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.01em; }
.local__text { margin-top: 16px; max-width: 44ch; color: var(--muted); }
.local__grid .label { grid-column: 8 / 13; max-width: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line); grid-template-columns: 84px 1fr; gap: 24px; }
.local__grid .label img { width: 84px; }
.label strong { display: inline-block; margin-bottom: 6px; font-size: 17px; }

/* Contact */
section.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(64px, 7vw, 110px); }
.contact__main { grid-column: 1 / 7; }
.contact__intro { margin-top: 24px; max-width: 42ch; color: var(--muted); }
.contact__main .contact__mail { grid-column: auto; margin-top: 44px; }
.contact__grid .contact__list { grid-column: 8 / 13; margin-top: 0; }
.contact__list > div:first-child { border-top: 0; padding-top: 6px; }

/* En-têtes de section alignés en haut */
.section-head { align-items: start; }
.section-head__text { padding-top: .5em; }

@media (max-width: 899px) {
  .card__visual img { max-width: 78%; max-height: 84%; }
  .local__photo .pimg { --ar: 4 / 3.4; }
  .local__grid { display: block; margin-top: 40px; }
  .local__grid .label { margin-top: 40px; grid-template-columns: 64px 1fr; gap: 18px; }
  .local__grid .label img { width: 64px; }
  .contact__grid { display: block; padding-top: 56px; }
  .contact__main .contact__mail { margin-top: 32px; }
  .contact__grid .contact__list { margin-top: 44px; }
}


/* ==========================================================================
   Retouches : remplissage glissant sur les boutons, titres en Brandon,
   texte de présentation centré, accents non coupés.
   ========================================================================== */
/* Bouton : la couleur glisse de la gauche vers la droite, rien d'autre */
.btn { overflow: hidden; isolation: isolate; }
.btn::before { display: block; content: ""; position: absolute; inset: 0; z-index: -1; background: #F3EBDF; transform: translateX(-101%); transition: transform .6s cubic-bezier(.65,0,.35,1); }
.btn:hover { background: var(--jaune); color: var(--noir); box-shadow: none; }
.btn:hover::before { transform: none; }
.btn--ghost { background: transparent; color: #EFE6DA; box-shadow: inset 0 0 0 1px rgba(239,230,218,.55); }
.btn--ghost:hover { background: transparent; color: var(--noir); box-shadow: inset 0 0 0 1px rgba(239,230,218,.55); }
.btn:hover svg, .btn svg { transform: none; }

/* Présentation : texte centré */
.marque .statement { margin-inline: auto; text-align: center; max-width: 26em; }
.marque { padding-bottom: var(--space); }

/* Titres secondaires : même police que les autres titres */
.group__title, .h3 { font-family: var(--title); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.group__title { font-size: clamp(24px, 2.4vw, 34px); padding-top: 22px; margin-bottom: 32px; }
.h3 { font-size: clamp(22px, 2vw, 28px); }
.craft__text p { margin-top: 16px; }

/* Accents des titres : on laisse de la place au-dessus des mots */
.w { padding-top: .32em; margin-top: -.32em; }
.local__text { margin-top: 28px; }

/* Présentation : quatre lignes voulues, jamais recoupées */
.marque .statement { max-width: none; }
.marque .statement span { display: block; }
@media (max-width: 899px) {
  .marque .statement { font-size: clamp(19px, 5.4vw, 26px); }
  .marque .statement span { display: inline; }
}

.group__title { white-space: nowrap; }

/* Composition de la marque : la photo de droite monte jusqu'en haut de celle de gauche */
.marque__duo { align-items: stretch; }
.marque__b { display: flex; flex-direction: column; }
.marque__b .pimg { flex: 1; aspect-ratio: auto; min-height: 320px; }
@media (max-width: 899px) { .marque__b .pimg { flex: none; aspect-ratio: 4 / 5; min-height: 0; } }
