/* Gabarit « petit commerce » de PIXEWORK. Les couleurs viennent de site.json (variables posées par construire.py). */
@font-face { font-family: "Fraunces"; src: url("polices/fraunces.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("polices/dmsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --encre: #1d1512;
  --fond: #faf5ee;
  --carte: #ffffff;
  --accent: #a3151c;
  --accent-fonce: #6f0d13;
  --doux: #f0e4d6;
  --gris: #6b5d55;
  --trait: rgba(29, 21, 18, .12);
  --wa: #128c4b;
  --rayon: 18px;
  --large: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.6 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.cadre { width: min(100% - 32px, var(--large)); margin-inline: auto; }
.sur { font: 700 12px/1 "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* ── En-tête ── */
.tete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.tete .cadre { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.marque img { height: 44px; width: auto; }
.marque span { font: 700 20px/1.1 "Fraunces", serif; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tete nav { display: none; gap: 26px; font-size: 15px; font-weight: 500; }
.tete nav a { text-decoration: none; opacity: .78; }
.tete nav a:hover { opacity: 1; color: var(--accent); }
@media (min-width: 860px) { .tete nav { display: flex; } }

/* ── Boutons ── */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 16px/1 "DM Sans", sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton:active { transform: scale(.98); }
.bouton.wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -12px rgba(18, 140, 75, .9); }
.bouton.wa:hover { background: #0f7a41; }
.bouton.plein { background: var(--accent); color: #fff; }
.bouton.plein:hover { background: var(--accent-fonce); }
.bouton.clair { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--trait); }
.bouton.clair:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton.petit { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.tete .bouton { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.tete .bouton b { font-weight: 700; }
@media (max-width: 420px) { .tete .bouton b { display: none; } .tete .bouton { padding: 0 13px; } }

/* ── Ouverture ── */
.ouverture { position: relative; overflow: hidden; }
.ouverture .cadre { display: grid; gap: 28px; padding-block: 34px 44px; }
.ouverture h1 { font-size: clamp(40px, 9.6vw, 84px); font-weight: 700; }
.ouverture h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.ouverture .chapo { margin-top: 18px; font-size: clamp(17px, 2.2vw, 20px); color: var(--gris); max-width: 34em; }
.ouverture .gestes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ouverture .photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--doux); box-shadow: 0 30px 60px -34px rgba(29, 21, 18, .55); }
.ouverture .photo img { width: 100%; height: 100%; object-fit: cover; }
.ouverture .pastille { position: absolute; left: 14px; bottom: 14px; background: var(--carte); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; line-height: 1.3; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); max-width: 78%; }
.ouverture .pastille strong { display: block; font: 700 15px/1.2 "Fraunces", serif; }
.etat { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--doux); margin-bottom: 18px; }
.etat i { width: 9px; height: 9px; border-radius: 50%; background: #9a8f88; }
.etat.ouvert i { background: #1faa59; box-shadow: 0 0 0 4px rgba(31, 170, 89, .2); }
@media (min-width: 900px) {
  .ouverture .cadre { grid-template-columns: 1.02fr .98fr; align-items: center; gap: 56px; padding-block: 64px 80px; }
  .ouverture .photo { aspect-ratio: 5 / 5.2; }
}

/* ── Bandeau ── */
.bandeau { background: var(--accent); color: #fff; }
.bandeau ul { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 10px 28px; grid-template-columns: 1fr; font-weight: 600; font-size: 15.5px; }
.bandeau li { display: flex; align-items: center; gap: 10px; }
.bandeau svg { width: 20px; height: 20px; flex: none; opacity: .9; }
@media (min-width: 720px) { .bandeau ul { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* ── Sections ── */
section { padding-block: 64px; }
section > .cadre > header { max-width: 640px; margin-bottom: 34px; }
section h2 { font-size: clamp(30px, 5.4vw, 48px); margin-top: 12px; }
section header p { margin-top: 14px; color: var(--gris); }

.viandes { display: grid; gap: 18px; }
@media (min-width: 760px) { .viandes { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.viande { background: var(--carte); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--trait), 0 24px 40px -34px rgba(29, 21, 18, .5); }
.viande .image { aspect-ratio: 4 / 3.4; background: var(--doux); overflow: hidden; }
.viande .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.viande:hover .image img { transform: scale(1.04); }
.viande .texte { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.viande h3 { font-size: 26px; }
.viande p { color: var(--gris); font-size: 15.5px; }
.viande ul { list-style: none; margin: 2px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.viande li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--doux); }
.viande .bouton { margin-top: auto; align-self: flex-start; }

.sombre { background: var(--encre); color: #fbf3ea; }
.sombre .sur { color: #f0b9a0; }
.sombre header p { color: rgba(251, 243, 234, .72); }
.etapes { counter-reset: e; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.etapes li { counter-increment: e; border: 1px solid rgba(251, 243, 234, .16); border-radius: var(--rayon); padding: 22px; }
.etapes li::before { content: "0" counter(e); font: 600 15px/1 "Fraunces", serif; color: #f0b9a0; letter-spacing: .06em; }
.etapes h3 { font-size: 23px; margin: 14px 0 8px; }
.etapes p { color: rgba(251, 243, 234, .72); font-size: 15.5px; }
.sombre .suite { margin-top: 30px; }

.duo { display: grid; gap: 26px; align-items: center; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; gap: 56px; } }
.duo .photo { border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--doux); }
.duo .photo img { width: 100%; height: 100%; object-fit: cover; }
.duo p { color: var(--gris); margin-top: 14px; }
.duo .bouton { margin-top: 24px; }

.infos { display: grid; gap: 16px; }
@media (min-width: 760px) { .infos { grid-template-columns: repeat(3, 1fr); } }
.info { background: var(--carte); border-radius: var(--rayon); padding: 22px; box-shadow: 0 1px 0 var(--trait); }
.info h3 { font-size: 21px; margin-bottom: 10px; }
.info p, .info li { color: var(--gris); font-size: 15.5px; }
.info a.lien { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--accent); text-decoration: none; }
.info table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info td { padding: 5px 0; border-bottom: 1px dashed var(--trait); color: var(--gris); }
.info tr:last-child td { border-bottom: 0; }
.info td:last-child { text-align: right; font-weight: 600; color: var(--encre); }
.info tr.auj td { color: var(--accent); font-weight: 700; }

.appel { text-align: center; padding-block: 72px; background: var(--doux); }
.appel h2 { font-size: clamp(32px, 6vw, 56px); }
.appel p { color: var(--gris); margin: 14px auto 26px; max-width: 30em; }

footer { padding: 28px 0 96px; font-size: 14px; color: var(--gris); }
footer .cadre { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { font-weight: 600; text-decoration: none; }
@media (min-width: 760px) { footer { padding-bottom: 32px; } }

/* ── Barre du téléphone ── */
.barre { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--trait); }
.barre .bouton { min-height: 50px; padding: 0 10px; font-size: 15.5px; }
@media (min-width: 760px) { .barre { display: none; } }

.apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
