:root {
  --bg: #ffffff;
  --surface: #f4f6f7;
  --text: #16232b;
  --muted: #5b6b74;
  --accent: #0f6e78;
  --accent-ink: #ffffff;
  --border: #dde3e6;
  --radius: 14px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181c;
    --surface: #1b252b;
    --text: #e8eef1;
    --muted: #9fb0b8;
    --accent: #4fb6bf;
    --accent-ink: #0b1215;
    --border: #2b3840;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow, .tag { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--accent); margin: 0 0 .5em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand small { font-weight: 500; color: var(--muted); margin-left: 4px; font-size: .8em; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .95rem; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 0; display: inline-block; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }

/* Accueil */
.hero { background: var(--surface); padding: 56px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-img { border-radius: var(--radius); background: #fff; }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 48px; padding-bottom: 16px; }
.etape h2 { font-size: 1.15rem; }
.etape p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.section-titre { margin-top: 48px; font-size: 1.6rem; }
.grille-gammes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 64px; }
.gamme { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); background: var(--bg); transition: border-color .15s; }
.gamme:hover { border-color: var(--accent); }
.gamme img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; width: 100%; }
.gamme-corps { display: flex; flex-direction: column; gap: 2px; padding: 16px; }

/* Pages gamme */
.entete-page { padding-top: 48px; padding-bottom: 24px; }
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding-bottom: 64px; }
.carte { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.carte-img img, .img-vide { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; background: #fff; }
.img-vide { display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: .9rem; }
.carte-corps { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.carte-corps h3 { font-size: 1.2rem; }
.carte-corps p:not(.tag) { color: var(--muted); margin: 0 0 16px; }
.lien { margin-top: auto; font-weight: 600; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.bloc { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.bloc h2 { font-size: 1rem; }
.bloc p { margin: 0; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 32px 0; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 760px) {
  .hero-inner, .etapes, .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 32px 0; }
}

/* Bulletin de commande */
.liens { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.note-privee { font-size: .9rem; background: var(--surface); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; max-width: 70ch; }
.bc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-bottom: 64px; }
.bc-section { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0 0 16px; min-width: 0; }
.bc-section legend { font-weight: 700; padding: 0 6px; }
.bc-section legend .muted { font-weight: 400; font-size: .85rem; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.champ { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.champ span { color: var(--muted); }
.champ input, .champ select, .bc textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; }
.opt { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; cursor: pointer; }
.opt:hover { background: var(--surface); }
.opt:has(input:checked) { background: var(--surface); outline: 2px solid var(--accent); }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.opt img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; }
.opt:not(:has(img)) { grid-template-columns: auto 1fr auto; }
.opt-txt { display: flex; flex-direction: column; font-size: .95rem; }
.opt-txt strong { font-weight: 500; }
.opt-txt small { color: var(--muted); font-size: .75rem; }
.opt-prix { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .9rem; }
.bc-resume { position: sticky; top: 80px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bc-resume img { background: #fff; border-radius: 8px; }
.bc-resume h2 { font-size: 1.1rem; margin: 0; }
.bc-resume dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-variant-numeric: tabular-nums; }
.bc-resume dd { margin: 0; text-align: right; }
.bc-resume .fort { font-weight: 700; font-size: 1.1rem; }
.bc-resume .btn { text-align: center; cursor: pointer; font: inherit; font-weight: 600; }
.petit { font-size: .8rem; margin: 0; }
@media (max-width: 860px) {
  .bc { grid-template-columns: 1fr; }
  .bc-resume { position: static; order: -1; }
  .bc-resume img { max-height: 160px; object-fit: contain; }
}
