/* Concept — Boucherie Berger */

:root {
  --tile: #f7f1e6;
  --tile-line: #e4dac8;
  --red: #a3201d;
  --red-dark: #7f1714;
  --green: #1e4a32;
  --black: #1b1a17;
  --muted: #55504a;

  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --bar: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--bar);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* carrelage de boucherie */
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--tile-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tile-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph { font-style: italic; color: var(--muted); background: #ece3d2; padding: 0 0.25em; }

/* Bandeau concept */
.concept-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: var(--bar); padding: 0.35rem clamp(1rem, 3vw, 2rem);
  background: #111; color: #eee; font: 400 0.78rem/1.3 "Helvetica Neue", Arial, sans-serif;
}
.concept-bar p { margin: 0; }
.concept-bar a { color: #fff; white-space: nowrap; text-underline-offset: 0.2em; }
@media (max-width: 700px) {
  :root { --bar: 2.75rem; }
  .concept-bar { font-size: 0.7rem; line-height: 1.25; }
  .bar-extra { display: none; }
}

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; padding: 0.75rem 1rem; background: var(--black); color: #fff; }
.skip:focus { top: calc(var(--bar) + 0.5rem); }

/* En-tête */
.top { background: var(--tile); border-bottom: 3px solid var(--black); }
.awning { width: 100%; height: 28px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 0.9; }
.logo-small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--green); }
.logo-big { font-family: var(--slab); font-weight: 700; font-size: 2.4rem; color: var(--red); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); font-weight: 500; font-size: 0.95rem; }
.nav a { text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav a:hover { border-color: var(--red); }
.nav .nav-cta { padding: 0.6rem 1rem; background: var(--red); color: #fff; border: 0; transition: background-color 0.2s; }
.nav .nav-cta:hover { background: var(--red-dark); }
@media (max-width: 720px) { .nav li:not(:last-child) { display: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--black);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 4px 4px 0 var(--black); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--black); }
.btn-line { background: transparent; color: var(--black); }
.btn-line:hover { background: var(--black); color: #fff; }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem); border-bottom: 3px solid var(--black); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.sign {
  display: inline-block; margin-bottom: 1.5rem; padding: 0.4rem 0.8rem;
  background: var(--green); color: var(--tile);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6.6rem); letter-spacing: -0.02em; }
.red { color: var(--red); }
.claims { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.75rem 0 1.25rem; font-family: var(--slab); font-style: italic; font-weight: 500; font-size: 1.3rem; }
.claims span + span::before { content: "—"; margin-right: 1.5rem; color: var(--red); font-style: normal; }
.lede { max-width: 34em; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-plate svg { width: 100%; max-width: 380px; margin-inline: auto; height: auto; }
.plate-arc { font: 700 15px var(--sans); letter-spacing: 0.32em; fill: var(--tile); }
.plate-name { font: 700 64px var(--slab); fill: var(--tile); }
@media (prefers-reduced-motion: no-preference) {
  .hero-plate svg { transition: transform 0.6s ease; }
  .hero-plate:hover svg { transform: rotate(-6deg); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plate { order: -1; width: 100%; max-width: 200px; justify-self: center; }
  .claims span + span::before { display: none; }
  .claims { flex-direction: column; gap: 0.2rem; }
}

/* Titres de section */
.section-title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); margin-bottom: 2.5rem; letter-spacing: -0.01em; }
.section-title .n {
  display: inline-grid; place-items: center; vertical-align: 0.35em;
  width: 2.4rem; height: 2.4rem; margin-right: 0.6rem;
  background: var(--red); color: #fff; font-family: var(--sans); font-size: 0.95rem; border-radius: 50%;
}
.section-title em { color: #f0b9a6; font-weight: 500; }

/* Rayons — tableau d'affichage */
.rayons { padding-block: clamp(4rem, 8vw, 7rem); }
.board { border-top: 3px solid var(--black); }
.board li {
  display: grid; grid-template-columns: auto 1fr minmax(0, 28rem);
  align-items: baseline; gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--black);
  transition: background-color 0.25s, padding 0.25s;
}
.board li:hover { background: rgba(163, 32, 29, 0.06); padding-inline: 0.75rem; }
.board h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); color: var(--red); }
.dots { border-bottom: 3px dotted var(--black); transform: translateY(-0.4rem); }
.board p { margin: 0; font-size: 1.05rem; }
@media (max-width: 720px) {
  .board li { grid-template-columns: 1fr; gap: 0.4rem; }
  .dots { display: none; }
}

/* Fumoir */
.fumoir { background: var(--green); color: var(--tile); padding-block: clamp(4rem, 8vw, 7rem); border-block: 3px solid var(--black); }
.fumoir-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 3rem; align-items: center; }
.section-title.light .n { background: var(--tile); color: var(--green); }
.fumoir .big { font-family: var(--slab); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.25; font-weight: 500; max-width: 26em; }
.fumoir p { max-width: 36em; }
.smoke svg { width: 100%; max-width: 220px; height: auto; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .smoke path { stroke-dasharray: 12 10; animation: rise 3s linear infinite; }
  .smoke .s2 { animation-duration: 4s; }
  .smoke .s3 { animation-duration: 5s; }
  @keyframes rise { to { stroke-dashoffset: -88; } }
}
@media (max-width: 760px) { .fumoir-grid { grid-template-columns: 1fr; } .smoke svg { max-width: 120px; } }

/* Commande */
.commande { padding-block: clamp(4rem, 8vw, 7rem); }
.commande-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.commande-head .section-title { margin-bottom: 1.5rem; }
.demo-note { padding: 0.8rem 1rem; background: #fff; border: 2px solid var(--black); border-left-width: 8px; font-size: 0.95rem; }
.demo-note a { font-weight: 700; }
.progress { margin-top: 2rem; border-top: 1px solid var(--black); }
.progress li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--tile-line); color: var(--muted); }
.progress span { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 2px solid currentColor; border-radius: 50%; font-weight: 700; font-size: 0.85rem; }
.progress .is-current { color: var(--black); font-weight: 700; }
.progress .is-current span { background: var(--red); border-color: var(--red); color: #fff; }
.progress .is-done span { background: var(--green); border-color: var(--green); color: #fff; }

.order { background: #fff; border: 3px solid var(--black); box-shadow: 8px 8px 0 var(--black); padding: clamp(1.25rem, 3vw, 2.25rem); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .step:not(.is-active) { display: none; }
.step + .step { margin-top: 2rem; }
.js .step + .step { margin-top: 0; }
html:not(.js) [data-next] { display: none; }
legend { font-family: var(--slab); font-size: 1.9rem; font-weight: 700; margin-bottom: 1.25rem; padding: 0; }
legend .n { color: var(--red); margin-right: 0.3rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.5rem; }
.choice {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.6rem 0.9rem;
  border: 2px solid var(--black); cursor: pointer; font-weight: 500; line-height: 1.25;
  transition: background-color 0.15s, color 0.15s;
}
.choice:hover { background: var(--tile); }
.choice input { accent-color: var(--red); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.choice:has(input:checked) { background: var(--black); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.35rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.75rem;
  border: 2px solid var(--black); border-radius: 0; background: #fff; color: var(--black);
  font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.hint { font-size: 0.92rem; color: var(--muted); }
.error { color: var(--red-dark); font-weight: 700; font-size: 0.92rem; }
.nav-steps { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tile-line); }
.nav-steps [data-next], .nav-steps [data-submit] { margin-left: auto; }
.done { margin-top: 1rem; padding: 1.25rem; background: var(--tile); border: 2px dashed var(--black); }
.done:focus { outline: 3px solid var(--green); }
.done h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.recap { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0 0 1rem; }
.recap dt { font-weight: 700; }
.recap dd { margin: 0; }
@media (max-width: 900px) { .commande-grid { grid-template-columns: 1fr; } }

/* Infos */
.infos { padding-block: clamp(4rem, 8vw, 7rem); background: var(--black); color: var(--tile); }
.infos-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.infos .section-title { margin: 0; }
.infos table { width: 100%; border-collapse: collapse; }
.infos th, .infos td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid #4a4640; font-variant-numeric: tabular-nums; }
.infos th { font-weight: 700; padding-right: 1rem; }
.ph-block { margin-top: 1rem; padding: 0.75rem; font-size: 0.9rem; background: #2c2a26; border-left: 4px solid #e2675f; }
.address h3 { font-size: 2rem; color: #f0b9a6; margin-bottom: 1rem; }
.landmark { font-style: italic; }
.address a { text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.address a:hover { color: #f0b9a6; }
@media (max-width: 900px) { .infos-grid { grid-template-columns: 1fr; } }

.foot { background: var(--red); color: #fff; font-size: 0.85rem; padding-block: 1.5rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
