/* Ami-Amie — direction artistique
   Un fond clair, et deux couleurs secondaires : le vert foncé et le sable (le « marron » du client).
   - crème #F5F0E6 : le fond de la page. Un ivoire chaud, de la famille du sable, pour que les trois s'accordent.
   - nuit  #1A3637 : le vert foncé. Le texte, les boutons, la table du hero, et les bandes sombres
                     (annonce, terrasse, pied de page).
   - sable #D6BC97 : les panneaux, le défilé, la porcelaine, les parasols, et le texte posé sur le vert foncé.
   - pin   #40534D : un vert foncé un peu plus doux, pour les détails (pans de parasol, une tuile, accents).
   Nuit, sable et pin viennent du client ; les teintes intermédiaires sont des mélanges de ces couleurs. */

:root {
  --creme: #F5F0E6;
  --sable: #D6BC97;
  --pin: #40534D;
  --nuit: #1A3637;
  --sable-ombre: #C9B491; /* sable un peu ombré : détails sur la porcelaine */
  --olive: #84826E;       /* pin + 45 % de sable : les feuilles d'olivier, les rayures */
  --cafe-lait: #948D75;   /* sable + 35 % de nuit : le lait dans le verre */

  --bg: #F5F0E6;   /* crème */
  --bg-2: #EADECA; /* crème + 35 % de sable : survols, surfaces discrètes */
  --bg-3: #E2D1B7; /* crème + 60 % de sable */
  --fg: #1A3637;   /* nuit : contraste 11 pour 1 sur la crème */
  --fg-2: #3B5251; /* nuit à 85 % : textes de présentation (7,4 pour 1) */
  --fg-3: #576A68; /* nuit à 72 % : étiquettes, notes (5 pour 1) */
  --line: #CECFC7; /* crème + 18 % de nuit : filets */
  --accent: #40534D; /* pin */

  /* Fraunces : un serif rond et gourmand pour les titres et les noms de plats.
     Figtree : un sans net et lisible pour les textes. Space Mono : la voix du logo, pour les étiquettes. */
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --page: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: clamp(64px, 9vw, 112px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(88px + var(--demo-h, 0px)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Titres */
.d-xl, .d-lg, .d-md, .h-sm { font-family: var(--display); font-weight: 400; text-wrap: balance; }
.d-xl { font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -.025em; }
.d-lg { font-size: clamp(36px, 4.7vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
.d-md { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.015em; }
.h-sm { font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }

/* Textes de présentation : plus grands, bien lisibles */
.lede { font: 400 18px/1.6 var(--sans); color: var(--fg-2); text-wrap: pretty; max-width: 48ch; }

/* Le mono : la voix du logo, pour les étiquettes et les prix */
.cap { font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.note { font-size: 14px; line-height: 1.45; color: var(--fg-3); max-width: 52ch; }

.heart { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.12em; }

.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--fg-3); transition: color .3s, text-decoration-color .3s, text-underline-offset .3s var(--ease); }
.link:hover { color: var(--accent); text-decoration-color: var(--accent); text-underline-offset: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 12px 16px; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 12px; }

/* Boutons : le texte roule, le fond se retourne */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r);
  font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap;
  color: var(--fg); background: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.btn::before { content: ''; position: absolute; inset: -1px; z-index: -1; transform: translateY(102%); transition: transform .5s var(--ease); }
.btn__label { display: block; text-shadow: 0 44px 0 currentColor; transition: transform .5s var(--ease); }
.btn:hover .btn__label, .btn:focus-visible .btn__label { transform: translateY(-44px); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }

.btn--fill { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--fill::before { background: var(--sable); }
.btn--fill:hover, .btn--fill:focus-visible { color: var(--nuit); border-color: var(--sable); }

.btn--line { border-color: var(--fg); }
.btn--line::before { background: var(--fg); }
.btn--line:hover, .btn--line:focus-visible { color: var(--bg); }

.btn--ghost { padding-inline: 4px; border-radius: 0; }
.btn--ghost::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 9px; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.btn--ghost:hover::after { transform: scaleX(0); transform-origin: left; }

/* Surfaces sable (panneaux, défilé) : le texte y reste en vert nuit. */
.panel, .marquee { --bg: #D6BC97; --bg-2: #C9B491; --fg: #1A3637; --fg-2: #1A3637; --fg-3: #364A45; --line: #AFA687; --accent: #40534D; }
/* Bandes vert foncé (annonce, terrasse, pied de page) : le texte y passe en sable, l'accent en crème. */
.banner, .terrasse, .foot { --bg: #1A3637; --bg-2: #27403F; --bg-3: #334945; --fg: #D6BC97; --fg-2: #BFAC8B; --fg-3: #AD9F82; --line: #40534D; --accent: #F5F0E6; }
.panel { background: var(--bg); color: var(--fg); border-radius: var(--r); }

/* Listes à lignes fines */
.rows { margin-top: 32px; }
.rows > li { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 24px; padding: 15px 0; }
.rows > li::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--line); transform-origin: left; }
.rows > li::after { content: ''; position: absolute; inset: 1px 0 0 0; background: var(--bg-2); border-radius: var(--r); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: -1; }
.rows__name { font: 400 21px/1.25 var(--display); letter-spacing: -.01em; transition: transform .5s var(--ease); }
.rows > li > .cap { text-align: right; transition: transform .5s var(--ease), color .3s; }

/* Apparitions au défilement (seulement si le JS tourne) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .05em .2em; margin: -.14em -.05em -.2em; }
.w__i { display: inline-block; }
.js [data-split] .w__i { transform: translateY(118%); }
.js [data-split].is-in .w__i { transform: none; transition: transform 1s var(--ease) calc(var(--i, 0) * 45ms); }

.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s; }

.js [data-rows] > li::before { transform: scaleX(0); }
.js [data-rows] > li > * { opacity: 0; transform: translateY(10px); }
.js [data-rows].is-in > li::before { transform: none; transition: transform 1s var(--ease) calc(var(--i, 0) * 70ms); }
.js [data-rows].is-in > li > * { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--i, 0) * 70ms + .15s), transform .5s var(--ease); }
@media (hover: hover) {
  html .rows > li:hover::after { transform: none; }
  html .rows > li:hover > .rows__name { transform: translateX(24px); }
  html .rows > li:hover > .cap { transform: translateX(-14px); color: var(--fg); }
}

.js [data-clip] { clip-path: inset(0 0 100% 0); }
.js [data-clip].is-in { clip-path: inset(0); transition: clip-path 1.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-split] .w__i, .js [data-rise], .js [data-rows] > li > *, .js [data-rows] > li::before { transform: none; opacity: 1; }
  .js [data-clip] { clip-path: none; }
}
