/* RIZO · feuille de style unique. Polices hébergées localement (Poppins, licence OFL, voir fonts/OFL.txt). */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/poppins-800.woff2") format("woff2"); }

:root {
  --creme: #FBF4E4;
  --carte: #FFFDF7;
  --texte: #1E1B16;
  --texte-2: #5C554A;
  --vert: #2D6A47;
  --rouge: #C3352A;
  --jaune: #F7E28A;
  --beige: #C9B98F;
  --rayon: 16px;
  --largeur: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
/* La charte est claire uniquement : on empêche Chrome et Samsung Internet d'assombrir la page de force (le logo noir deviendrait illisible). */
:root { color-scheme: only light; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--vert); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--texte); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--texte); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 16px; }

section { scroll-margin-top: 16px; }

.titre-rouge { color: var(--rouge); font-weight: 800; font-size: 1.6rem; margin-bottom: 20px; }
.petit { font-size: .82rem; color: var(--texte-2); }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--vert);
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--vert); color: #fff; }
.btn--primary:hover { background: #245839; }
.btn--secondary { background: transparent; color: var(--vert); }
.btn--secondary:hover { background: var(--carte); }
.btn--blanc { background: #fff; color: var(--rouge); border-color: #fff; }

/* ---------- En-tête ---------- */
.store {
  height: 44px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='44'%3E%3Cpath d='M8 0h48v24a24 20 0 0 1-48 0z' fill='%232D6A47'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 64px 44px;
  background-position: center top;
}
.hero { padding-bottom: 32px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  grid-template-areas: "brand mascotte" "text text";
  gap: 8px 12px;
  align-items: center;
  padding-top: 20px;
}
.hero__brand { grid-area: brand; }
.hero__logo { width: 100%; max-width: 300px; }
.hero__mascotte { grid-area: mascotte; }
.hero__text { grid-area: text; padding-top: 12px; }
.hero__accroche { color: var(--rouge); font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.hero h1 { color: var(--vert); font-weight: 800; font-size: 2rem; letter-spacing: -.01em; margin-bottom: 24px; max-width: 16ch; }
.hero .actions .btn { flex: 1 1 220px; }

/* ---------- Un repas complet ---------- */
.repas { display: grid; gap: 16px; margin-bottom: 48px; }
.repas__photo img { border-radius: var(--rayon); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.repas__encart { background: var(--vert); color: #fff; border-radius: var(--rayon); padding: 24px; }
.repas__kicker { font-size: .95rem; font-weight: 600; }
.repas__big { font-size: 2.1rem; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.repas__sub { font-size: .92rem; opacity: .95; }
.repas__prix { color: var(--jaune); font-size: 2rem; font-weight: 800; margin-top: 20px; line-height: 1.1; }

/* ---------- Recettes ---------- */
.recettes { margin-bottom: 56px; }
.cartes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.carte {
  background: var(--carte); border: 2px solid var(--vert); border-radius: var(--rayon);
  padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px;
}
.carte__tete { display: flex; align-items: center; gap: 12px; }
.carte__tete picture { flex: 0 0 76px; }
.carte__tete h3 { color: var(--vert); font-weight: 800; font-size: 1.3rem; }
.carte > p:not(.tag) { flex: 1; }
.tag {
  align-self: flex-start; color: #fff; font-size: .82rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.tag--vege { background: var(--vert); }
.tag--viande { background: var(--rouge); }

.arguments {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.arguments li {
  font-weight: 700; font-size: .92rem; line-height: 1.3;
  padding-top: 30px; position: relative;
}
.arguments li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  border: 2px solid var(--vert); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%232D6A47' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Packs ---------- */
.packs { margin-bottom: 56px; }
.packs__bandeau { background: var(--vert); color: #fff; padding: 32px 0 28px; margin-bottom: 24px; }
.packs__bandeau h2 { font-weight: 800; font-size: 1.9rem; margin-bottom: 8px; }
.packs__bandeau p { max-width: 62ch; }

.tarifs { width: 100%; border-collapse: collapse; }
.tarifs thead { display: none; }
.tarifs tr {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  background: var(--carte); border: 1px solid var(--beige); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.tarifs th[scope="row"] { text-align: left; font-weight: 700; font-size: 1.05rem; }
.tarifs th[scope="row"] span { display: block; font-weight: 400; font-size: .82rem; color: var(--texte-2); }
.tarifs td { font-size: .92rem; }
.tarifs td[data-label]::before { content: attr(data-label) " : "; color: var(--texte-2); }
.tarifs td.prix::before { content: none; }
.tarifs td.prix { grid-column: 2; grid-row: 1; color: var(--rouge); font-weight: 800; font-size: 1.25rem; text-align: right; }
.tarifs td:not(.prix) { grid-column: 1 / -1; }
.tva { font-size: .82rem; color: var(--texte-2); margin-top: 4px; }
.note { color: var(--texte-2); margin: 20px 0 28px; max-width: 70ch; }

.encarts { display: grid; gap: 16px; margin-bottom: 28px; }
.encart { border-radius: var(--rayon); padding: 22px 20px; }
.encart h3 { color: var(--vert); font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }
.encart--jaune { background: var(--jaune); }
.encart--jaune .petit { color: var(--texte); }
.encart--cadre { background: var(--carte); border: 2px solid var(--vert); }
.lignes { margin: 0 0 12px; }
.lignes div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; }
.lignes dt { flex: 1; }
.lignes dd { margin: 0; font-weight: 700; white-space: nowrap; }

.infos { display: grid; gap: 18px; }
.infos h3 { color: var(--vert); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Devis ---------- */
.devis { background: var(--rouge); color: #fff; padding: 40px 0; margin-bottom: 56px; }
.devis h2 { font-weight: 800; font-size: 1.9rem; margin-bottom: 10px; }
.devis__grid { display: grid; gap: 24px; align-items: center; }
.champs { margin: 10px 0 0; padding-left: 1.2em; }
.champs li { margin: 2px 0; }
.devis__action .btn { width: 100%; font-size: 1.1rem; }
.devis__action .petit { color: #fff; margin-top: 12px; word-break: break-word; }

/* ---------- Commander ---------- */
.commander { margin-bottom: 56px; }
.commander .actions .btn { flex: 1 1 220px; }
.lien-avis, .insta { margin-top: 14px; font-weight: 600; }
.labo {
  font-style: normal; margin-top: 24px; padding: 16px 20px;
  background: var(--carte); border: 1px solid var(--beige); border-radius: 12px;
}
.labo span { color: var(--texte-2); }

/* ---------- Pied de page ---------- */
.pied { background: var(--vert); color: #fff; padding: 32px 0 28px; }
.pied a { color: #fff; }
.pied__titre { font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }
.pied__contact { list-style: none; padding: 0; margin: 0 0 20px; }
.pied__contact li { padding: 4px 0; }
.pied__bas { font-size: .85rem; }

/* ---------- Mentions légales ---------- */
.legal { padding-top: 24px; padding-bottom: 56px; max-width: 760px; }
.legal__logo { width: 160px; margin-bottom: 24px; }
.legal h1 { color: var(--vert); font-weight: 800; font-size: 1.9rem; margin-bottom: 24px; }
.legal h2 { color: var(--vert); font-weight: 700; font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal ul { margin: 0 0 8px; }
.a-remplir { background: var(--jaune); font-weight: 700; padding: 0 4px; }

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 640px) {
  .store { height: 56px; background-size: 80px 56px; }
  .hero__grid { grid-template-columns: 1fr 200px; }
  .hero h1 { font-size: 2.6rem; }
  .cartes { grid-template-columns: repeat(3, 1fr); }
  .arguments { grid-template-columns: repeat(4, 1fr); }
  .encarts { grid-template-columns: 1fr 1fr; }
  .infos { grid-template-columns: repeat(3, 1fr); }

  .tarifs thead { display: table-header-group; }
  .tarifs thead th { background: var(--jaune); text-align: left; font-weight: 700; padding: 12px 14px; }
  .tarifs tr { display: table-row; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
  .tarifs tbody tr { border-bottom: 1px solid var(--beige); }
  .tarifs th[scope="row"], .tarifs td { padding: 12px 14px; vertical-align: middle; }
  .tarifs td[data-label]::before { content: none; }
  .tarifs .num { text-align: right; }
  .tarifs td.prix { font-size: 1.15rem; }
}

@media (min-width: 900px) {
  .hero { padding-bottom: 48px; }
  .hero__grid {
    grid-template-columns: 1fr 320px;
    grid-template-areas: "brand mascotte" "text mascotte";
    gap: 0 32px; padding-top: 32px;
  }
  .hero__logo { max-width: 340px; }
  .hero__text { align-self: start; padding-top: 20px; }
  .hero h1 { font-size: 3.2rem; }
  .repas { grid-template-columns: 1.7fr 1fr; gap: 20px; }
  .repas__encart { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
  .repas__kicker { font-size: 1.1rem; }
  .repas__big { font-size: 2.8rem; }
  .repas__sub { font-size: 1rem; }
  .repas__prix { font-size: 2.8rem; margin-top: 32px; }
  .labo { max-width: 560px; }
  .pied__contact { display: flex; flex-wrap: wrap; gap: 0 32px; }
  .titre-rouge, .packs__bandeau h2, .devis h2 { font-size: 2.2rem; }
  .devis__grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .commander .actions { max-width: 560px; }
}
