/* Chez Dadou — direction : marché d'épices.
   Safran (curcuma), indigo de lagon, sel, piment en touche. Gloock pour la voix, Schibsted Grotesk pour l'usage. */

@font-face { font-family: "Gloock"; src: url("/fonts/gloock-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --safran: #f2b418;
  --safran-clair: #f9d675;
  --indigo: #14224a;
  --indigo-2: #1f3270;
  --sel: #f8f7f2;
  --piment: #b8291f;
  --muted: #55607f;
  --line: rgba(20, 34, 74, .18);

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--indigo); background: var(--sel);
  font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--piment); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: var(--indigo); }
.on-dark :focus-visible { outline-color: var(--safran); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Typographie */
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0; max-width: 62ch; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; }

/* ——— Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px;
  padding: 0 26px; border: 2px solid var(--indigo); border-radius: var(--radius);
  font: 700 1rem/1 var(--text); text-decoration: none; cursor: pointer; background: transparent; color: var(--indigo);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--indigo); color: var(--sel); }
.btn-solid { background: var(--indigo); color: var(--sel); }
.btn-solid:hover { background: var(--indigo-2); border-color: var(--indigo-2); }
.on-dark .btn { border-color: var(--sel); color: var(--sel); }
.on-dark .btn:hover { background: var(--sel); color: var(--indigo); }
.on-dark .btn-solid { background: var(--safran); border-color: var(--safran); color: var(--indigo); }
.on-dark .btn-solid:hover { background: var(--safran-clair); border-color: var(--safran-clair); color: var(--indigo); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ——— En-tête */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 68px; padding: 0 var(--gutter); background: var(--sel); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.wordmark { font: 400 1.65rem/1 var(--display); letter-spacing: -.01em; }
.bar nav { display: flex; align-items: center; gap: 28px; }
.bar nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; }
.bar nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.bar .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }

/* ——— Hero */
.hero { background: var(--safran); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: min(88vh, 760px); }
.hero-copy { padding: clamp(40px, 8vw, 96px) var(--gutter); padding-right: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-rules { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-weight: 600; font-size: .98rem; }
.hero-rules li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; background: var(--indigo); border-radius: 50%; vertical-align: 1px; }
.hero-visual {
  position: relative; background: var(--indigo) 50% 40% / cover no-repeat; background-image: url("/images/hero.jpg");
  display: flex; align-items: flex-end; justify-content: flex-start; padding: clamp(18px, 3vw, 40px);
}
.marche {
  background: var(--sel); border-radius: var(--radius); padding: 22px 24px; width: min(100%, 360px);
  box-shadow: 0 18px 40px -18px rgba(20, 34, 74, .55);
}
.marche small { display: block; font-weight: 600; color: var(--muted); font-size: .9rem; }
.marche strong { display: block; font: 400 1.9rem/1.15 var(--display); margin: 4px 0 8px; }
.marche span { font-weight: 600; }

/* ——— Sections */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Photos des plats */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 20px); margin-bottom: clamp(40px, 6vw, 72px); }
.photos figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--safran-clair); border-radius: var(--radius); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos:not(.three) { margin-bottom: clamp(10px, 1.6vw, 20px); }
.photos.three { grid-template-columns: repeat(3, 1fr); }
.photos.three figure img { transform: none; }
.photos figure:nth-child(3) img { transform: scale(1.3); transform-origin: 50% 100%; }
@media (max-width: 620px) { .photos { grid-template-columns: repeat(2, 1fr); } .photos.three { grid-template-columns: repeat(3, 1fr); } }

/* Carte */
.carte-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 88px); }
.carte-col h3 { padding-bottom: 14px; border-bottom: 2px solid var(--indigo); margin-bottom: 4px; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dish b { font: 400 1.3rem/1.25 var(--display); }
.dish .desc { grid-column: 1; color: var(--muted); font-size: .98rem; }
.dish .price { grid-row: 1; grid-column: 2; font-weight: 700; white-space: nowrap; align-self: start; padding-top: 4px; }
.carte-note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* Marché + saveurs (bandeau indigo) */
.on-dark { background: var(--indigo); color: var(--sel); }
.on-dark .muted { color: #c1c9e6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--safran); padding-top: 18px; display: grid; gap: 10px; }
.steps li::before { content: counter(step); font: 400 2.6rem/1 var(--display); color: var(--safran); }
.steps h3 { font-size: 1.35rem; }
.steps p { color: #c1c9e6; }

/* Devis */
.devis-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 36px; min-inline-size: 0; }
legend { font: 400 1.5rem/1.2 var(--display); padding: 0 0 14px; }
.line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .name { font-weight: 600; }
.line .unit { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.stepper { display: inline-grid; grid-template-columns: 44px 64px 44px; border: 2px solid var(--indigo); border-radius: var(--radius); background: #fff; }
.stepper button { border: 0; background: transparent; color: var(--indigo); font: 700 1.3rem/1 var(--text); min-height: 44px; cursor: pointer; }
.stepper button:hover { background: var(--safran-clair); }
.stepper input { width: 100%; border: 0; border-inline: 2px solid var(--indigo); text-align: center; font: 700 1.05rem var(--text); color: var(--indigo); background: transparent; -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--indigo); border-radius: var(--radius);
  background: #fff; color: var(--indigo); font: 400 1rem/1.4 var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.legal { color: var(--muted); font-size: .88rem; margin: 18px 0 22px; }

.ticket { position: sticky; top: 92px; background: var(--safran); border-radius: var(--radius); padding: 28px 26px 26px; }
.ticket h3 { margin-bottom: 14px; }
.ticket ul { list-style: none; padding: 0; margin: 0 0 16px; border-top: 2px solid var(--indigo); }
.ticket li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(20, 34, 74, .4); }
.ticket .empty { display: block; padding: 14px 0; font-weight: 400; }
.ticket dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.ticket dt { font-weight: 400; }
.ticket dd { margin: 0; font-weight: 700; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 400 1.7rem/1.1 var(--display); padding-top: 14px; border-top: 2px solid var(--indigo); }
.total small { font: 400 .85rem/1.3 var(--text); display: block; }
.form-msg { margin-top: 16px; font-weight: 700; }
.form-msg.ok { color: #14663a; background: #e6f4ea; padding: 14px 16px; border-radius: var(--radius); }
.form-msg.err { color: var(--piment); }
.ticket .btn { width: 100%; margin-top: 18px; }

/* Contact + pied */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.contact-grid h3 { margin-bottom: 10px; }
.contact-links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; justify-items: start; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border: 1.5px solid rgba(255,255,255,.28); border-radius: var(--radius); color: inherit; text-decoration: none; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.contact-links a:hover { background: var(--safran); border-color: var(--safran); color: var(--indigo); }
.contact-links a:focus-visible { outline: 2px solid var(--safran); outline-offset: 3px; }
.contact-links svg { flex: none; }
footer { padding: 28px 0 48px; font-size: .88rem; color: var(--muted); }
footer p { max-width: 90ch; margin-bottom: 10px; }

/* ——— Mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 280px; order: 2; }
  .carte-grid, .devis-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ticket { position: static; order: -1; }
}
@media (max-width: 620px) {
  .bar { gap: 12px; }
  .wordmark { font-size: 1.35rem; white-space: nowrap; }
  .bar .btn { white-space: nowrap; padding: 0 14px; font-size: .9rem; }
  .bar nav a:not(.btn) { display: none; }
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ——— Formules */
section.alt { background: #f0eee4; }
.badge { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--piment); color: #fff; font: 700 .72rem/1.4 var(--text); font-style: normal; vertical-align: 2px; white-space: nowrap; }
.formules-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.formules { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--indigo); }
.formules li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.formules .f-name { font-weight: 600; }
.formules .f-price { font: 400 1.5rem/1 var(--display); white-space: nowrap; }
.formules li.hot { background: var(--safran-clair); margin-inline: -14px; padding-inline: 14px; border-bottom-color: transparent; }
.signature { background: var(--indigo); color: var(--sel); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); display: grid; gap: 12px; position: sticky; top: 92px; }
.signature .badge { justify-self: start; margin: 0 0 4px; background: var(--safran); color: var(--indigo); }
.signature h3 { font-size: 2rem; }
.signature p { color: #c1c9e6; }
.signature .sig-price { font: 400 3.2rem/1 var(--display); color: var(--safran); margin: 6px 0 10px; }
.signature .sig-price small { font: 400 1rem var(--text); color: #c1c9e6; }
.signature .btn { justify-self: start; }

/* Choix de formule dans le devis */
.formula-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.formula {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px;
  padding: 14px 16px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.formula input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.formula:hover { border-color: var(--indigo); }
.formula:has(input:checked) { border-color: var(--indigo); background: var(--safran); }
.formula:has(input:focus-visible) { outline: 3px solid var(--piment); outline-offset: 3px; }
.formula .f-name { font-weight: 600; line-height: 1.3; }
.formula .f-price { font: 400 1.4rem/1 var(--display); }
.formula .f-sub { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.formula:has(input:checked) .f-sub { color: var(--indigo); }
.formula.is-signature { grid-column: 1 / -1; }

/* Choix des plats */
#picks { margin-bottom: 36px; }
.legend { font: 400 1.5rem/1.2 var(--display); margin: 28px 0 4px; max-width: none; }
#picks .legend:first-child { margin-top: 0; }
.count { font: 600 .95rem var(--text); color: var(--muted); margin-left: 6px; }
.pick-hint { margin-bottom: 12px; }
.hint { color: var(--muted); font-size: .9rem; font-weight: 400; }
.picks { display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.pick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--indigo); }
.pick b { display: block; font-weight: 600; }
.pick small { color: var(--muted); font-size: .88rem; }
.pick:has(input:checked) { border-color: var(--indigo); background: var(--safran-clair); }
.pick:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.pick:has(input:focus-visible) { outline: 3px solid var(--piment); outline-offset: 3px; }
.punch { margin-top: 14px; font-weight: 600; color: var(--indigo); }

/* Ticket : liste des plats */
.ticket ul { margin: 0 0 16px; }
.ticket dl { margin-bottom: 16px; }

@media (max-width: 900px) {
  .formules-grid { grid-template-columns: 1fr; }
  .signature { position: static; }
}
@media (max-width: 620px) {
  .formula-choices { grid-template-columns: 1fr; }
  .brand img { height: 28px; }
}
.signature .btn-solid { background: var(--safran); border-color: var(--safran); color: var(--indigo); }
.signature .btn-solid:hover { background: var(--safran-clair); border-color: var(--safran-clair); color: var(--indigo); }
.brand img { height: 40px; }

/* Aperçu : formules en quatre niveaux */
.named { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 5vw, 56px); border-top: 2px solid var(--indigo); }
.named h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.named > p { color: var(--muted); margin-bottom: 28px; }
.named-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.named-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); position: relative; }
.named-card h4 { font: 400 1.7rem/1.1 var(--display); margin: 0; }
.named-card .tagline { color: var(--muted); font-size: .95rem; min-height: 3em; }
.named-card .n-price { font: 400 2.8rem/1 var(--display); margin-top: 6px; }
.named-card .n-price small { font: 400 .9rem var(--text); color: var(--muted); }
.named-card .n-detail { font-weight: 600; font-size: .95rem; flex: 1; }
.named-card .btn { width: 100%; margin-top: 8px; }
.named-card .badge { position: absolute; top: -12px; left: 16px; margin: 0; }
.named-card.is-hot { background: var(--safran); border-color: var(--indigo); }
.named-card.is-hot .tagline, .named-card.is-hot .n-price small { color: var(--indigo); }
.named-card.is-dark { background: var(--indigo); color: var(--sel); border-color: var(--indigo); }
.named-card.is-dark .tagline, .named-card.is-dark .n-price small { color: #c1c9e6; }
.named-card.is-dark .n-price { color: var(--safran); }
.named-card.is-dark .btn-solid { background: var(--safran); border-color: var(--safran); color: var(--indigo); }
@media (max-width: 1000px) { .named-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .named-grid { grid-template-columns: 1fr; } }
.named-card .n-price small { display: block; margin-top: 6px; }

/* Grille complète repliable */
.all-formulas { margin-top: clamp(40px, 6vw, 64px); border-top: 2px solid var(--indigo); }
.all-formulas summary { cursor: pointer; padding: 22px 0; font: 400 1.5rem/1.25 var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.all-formulas summary::-webkit-details-marker { display: none; }
.all-formulas summary::after { content: "+"; font: 400 2rem/1 var(--display); }
.all-formulas[open] summary::after { content: "−"; }
.all-formulas .formules { max-width: 760px; border-top: 1px solid var(--line); }
.formules li.sig { background: var(--indigo); color: var(--sel); margin-inline: -14px; padding-inline: 14px; border-bottom-color: transparent; }
.formules li.sig .f-price { color: var(--safran); }
.formules .f-sub { display: block; font-weight: 400; font-size: .88rem; color: #c1c9e6; margin-top: 2px; }
.named { margin-top: 0; padding-top: 0; border-top: 0; }

[hidden] { display: none !important; }

.bar .social { display: inline-flex; align-items: center; gap: 4px; }
.bar .social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--indigo); transition: background .15s; }
.bar .social a:hover { background: var(--safran-clair); }
.bar .social a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
@media (max-width: 620px) { .bar nav { gap: 6px; } .bar .social a { width: 36px; height: 36px; } }
@media (max-width: 620px) {
  .bar .social a:not(.btn) { display: inline-flex; }
  .bar .social a { width: 32px; height: 32px; }
  .bar .social svg { width: 20px; height: 20px; }
  .bar nav { gap: 2px; }
  .bar .btn { padding: 0 10px; font-size: .82rem; margin-left: 4px; }
  .brand { gap: 8px; }
  .brand img { height: 26px; }
  .wordmark { font-size: 1.05rem; }
}
.bar .btn .short { display: none; }
@media (max-width: 620px) { .bar .btn .full { display: none; } .bar .btn .short { display: inline; } }
.hero-actions .btn svg { flex: none; margin-right: 8px; }
.hero-actions .btn { display: inline-flex; align-items: center; justify-content: center; }
.hero-actions { flex-wrap: wrap; }
.hero-actions .row-break { flex-basis: 100%; height: 0; margin: 0; }
