/* Le Toucan – Cantine parisienne
   Palette tirée des stores, de la salle et des cartes du restaurant. */

@font-face {
  font-family: "Amatic SC";
  src: url("amatic-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("outfit-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sauge: #8FAE98;        /* rayure du store */
  --creme: #F3F1E7;        /* rayure claire du store */
  --vert: #56755F;         /* lambrequin (bord du store) */
  --vert-fonce: #3B5244;   /* boutons, textes forts */
  --encre: #2E2E29;        /* trait des illustrations, texte */
  --ardoise: #262823;      /* ardoise de la salle */
  --pale: #EDF2EC;         /* fond de section clair */
  --jaune: #E8B83A;        /* assiette jaune, focus */
  --gris: #5C5D55;         /* légendes */

  --titre: "Amatic SC", "Arial Narrow", sans-serif;
  --texte: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1160px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --hauteur-store: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 0.35em;
}
h2 { font-size: clamp(3rem, 6vw, 4.5rem); }
h3 { font-size: clamp(2.2rem, 3.6vw, 2.9rem); }
p { margin: 0 0 1em; }

section { scroll-margin-top: calc(var(--hauteur-store) + 8px); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--creme); color: var(--encre); padding: 8px 14px;
}
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--texte); font-size: 1rem; font-weight: 600;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.bouton--plein { background: var(--vert-fonce); color: var(--creme); }
.bouton--plein:hover { background: var(--encre); }
.bouton--contour { border-color: currentColor; background: transparent; }
.bouton--contour:hover { background: rgba(255,255,255,.12); }
.bouton--clair { background: var(--creme); color: var(--vert-fonce); }
.bouton--clair:hover { background: #fff; }
.bouton--contour-clair { border-color: var(--creme); color: var(--creme); background: transparent; }

/* ---------- Le store (en-tête) ---------- */
.store { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.store__rayures {
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--sauge) 0 44px, var(--creme) 44px 88px);
}
.store__lambrequin {
  position: relative;
  display: flex; align-items: center; gap: 28px;
  min-height: 66px;
  padding: 6px var(--gouttiere);
  background: var(--vert);
  color: var(--creme);
}
/* Le bord festonné du store, avec son liseré crème */
.store__lambrequin::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 13px;
  background:
    radial-gradient(circle at 13px 0, var(--vert) 10.5px, transparent 11px) 0 0 / 26px 13px repeat-x,
    radial-gradient(circle at 13px 0, var(--creme) 12.5px, transparent 13px) 0 0 / 26px 13px repeat-x;
}
.store__logo { flex: none; }
.store__logo img { width: 132px; }
.store__nav { display: flex; gap: 26px; margin-left: auto; }
.store__nav a { text-decoration: none; font-weight: 500; padding: 8px 0; }
.store__nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.store .bouton { min-height: 42px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88svh, 860px); display: grid; align-items: end; color: var(--creme); }
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,32,27,0) 35%, rgba(30,32,27,.72) 100%);
}
.hero__texte {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--largeur); margin: 0 auto;
  padding: 120px var(--gouttiere) clamp(40px, 7vw, 80px);
}
.hero h1 { font-size: clamp(3.4rem, 9vw, 7rem); max-width: 11ch; margin-bottom: .2em; }
.hero__accroche { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 38ch; margin-bottom: 1.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .bouton--plein { background: var(--creme); color: var(--vert-fonce); }
.hero__actions .bouton--plein:hover { background: #fff; }
.hero__horaires { margin: 1.4em 0 0; font-size: .95rem; opacity: .92; }

/* ---------- Le lieu ---------- */
.lieu { max-width: var(--largeur); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gouttiere) 0; }
.lieu__intro { max-width: 760px; margin-bottom: clamp(40px, 7vw, 80px); }
.lieu__chapo { font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.45; font-weight: 300; }

.duo {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px);
  align-items: start; margin-bottom: clamp(64px, 9vw, 110px);
}
.duo--inverse { grid-template-columns: 7fr 5fr; }
.duo--inverse .duo__photo--haute { order: 2; }
.duo__texte { padding-top: clamp(0px, 4vw, 48px); }
.duo__texte p { max-width: 46ch; }
.duo__photo { margin: 0; }
.duo__photo img { width: 100%; border-radius: 4px; }
.duo__photo--haute img { aspect-ratio: 2 / 3; object-fit: cover; }
.duo__photo--large { margin-top: 36px; }
figcaption { margin-top: 10px; font-size: .9rem; color: var(--gris); }
.duo__illustration { width: min(360px, 80%); margin-top: 32px; }

.quartier {
  max-width: 760px; margin: 0 0 0 auto;
  padding: clamp(32px, 5vw, 56px);
  background: var(--pale); border-radius: 4px;
}
.quartier p:last-child { margin-bottom: 0; }

/* ---------- La carte (ardoise) ---------- */
.carte { max-width: var(--largeur); margin: 0 auto; padding: clamp(72px, 10vw, 130px) var(--gouttiere) 0; }
.ardoise {
  position: relative;
  background: var(--ardoise); color: var(--creme);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px);
  border-radius: 6px;
  box-shadow: inset 0 0 0 10px var(--ardoise), inset 0 0 0 11.5px rgba(243,241,231,.75);
}
.ardoise h2 { font-size: clamp(3.6rem, 8vw, 5.6rem); }
.ardoise__intro { max-width: 52ch; opacity: .9; }
.ardoise__liste {
  list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 64px);
  max-width: 820px;
}
@media (min-width: 901px) { .ardoise__liste { max-width: calc(100% - 250px); } }
.ardoise__liste li { border-top: 1px dashed rgba(243,241,231,.35); }
.ardoise__liste a { display: block; padding: 20px 0 22px; text-decoration: none; }
.ardoise__nom { display: block; font-family: var(--titre); font-weight: 700; font-size: 2.5rem; line-height: 1.05; }
.ardoise__detail { display: block; margin-top: 4px; opacity: .82; font-size: .98rem; max-width: 36ch; }
.ardoise__ouvrir {
  display: inline-block; margin-top: 10px; font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--jaune);
}
.ardoise__liste a:hover .ardoise__ouvrir { color: var(--jaune); }
.ardoise__illustration {
  position: absolute; right: clamp(24px, 5vw, 64px); bottom: clamp(24px, 4vw, 44px);
  width: clamp(150px, 18vw, 220px); opacity: .9;
}

.gourmandises {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(24px, 4vw, 40px); align-items: start;
}
.gourmandises figure { margin: 0; }
.gourmandises img { width: 100%; border-radius: 4px; }
.gourmandises figure:first-child { margin-top: clamp(32px, 8vw, 96px); }

/* ---------- Infos pratiques ---------- */
.infos {
  max-width: var(--largeur); margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gouttiere) clamp(72px, 10vw, 120px);
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.infos__liste { margin: 28px 0 32px; display: grid; gap: 18px; }
.infos__liste div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.infos__liste dt { color: var(--gris); font-size: .92rem; padding-top: 2px; }
.infos__liste dd { margin: 0; font-size: 1.1rem; font-weight: 500; }
.infos__liste a { text-underline-offset: 4px; }
.infos__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.infos__actions .bouton--contour { color: var(--vert-fonce); }
.infos__actions .bouton--contour:hover { background: var(--pale); }

.plan { aspect-ratio: 4 / 3; background: var(--pale); border-radius: 6px; overflow: hidden; }
.plan iframe { width: 100%; height: 100%; border: 0; display: block; }
.plan__attente {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 14px;
}
.plan__attente img { width: clamp(120px, 22vw, 180px); }
.plan__attente p { max-width: 34ch; font-size: .92rem; color: var(--gris); margin: 0; }

/* ---------- Pied de page ---------- */
.pied {
  position: relative; background: var(--vert); color: var(--creme);
  text-align: center; padding: 64px var(--gouttiere) 40px; margin-top: 13px;
}
.pied::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 13px;
  background:
    radial-gradient(circle at 13px 13px, var(--vert) 10.5px, transparent 11px) 0 0 / 26px 13px repeat-x,
    radial-gradient(circle at 13px 13px, var(--creme) 12.5px, transparent 13px) 0 0 / 26px 13px repeat-x;
}
.pied__logo { width: 200px; margin: 0 auto 20px; }
.pied p { margin: 0 0 12px; }
.pied a { text-underline-offset: 4px; }
.pied__liens { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.pied__credit { font-size: .85rem; opacity: .8; margin-top: 20px !important; }

/* ---------- Barre d'actions mobile ---------- */
.barre-mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .store__nav { display: none; }
  .store .bouton { margin-left: auto; }
  .ardoise__liste { grid-template-columns: 1fr; }
  .ardoise__illustration { position: static; margin: 24px 0 0 auto; }
  .infos { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --hauteur-store: 70px; }
  body { font-size: 1rem; padding-bottom: 76px; }
  .store__rayures { height: 12px; background-size: auto; background: repeating-linear-gradient(90deg, var(--sauge) 0 28px, var(--creme) 28px 56px); }
  .store__lambrequin { min-height: 58px; }
  .store__logo img { width: 104px; }
  .store .bouton { display: none; }
  .hero { min-height: 86svh; }
  .hero__photo img { object-position: 50% 40%; }
  .duo, .duo--inverse { grid-template-columns: 1fr; }
  .duo--inverse .duo__photo--haute { order: 0; }
  .duo__photo--haute img { aspect-ratio: 4 / 5; }
  .duo__texte { padding-top: 0; }
  .quartier { margin: 0; }
  .gourmandises { grid-template-columns: 1fr 1fr; }
  .gourmandises figcaption { display: none; }
  .infos__liste div { grid-template-columns: 1fr; gap: 2px; }

  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--vert);
    box-shadow: 0 -1px 0 rgba(243,241,231,.25);
  }
}
