/* Recettes de Marisa. Pensee d'abord pour la tablette de la cuisine : gros caracteres, grandes zones tactiles. */
:root {
  --fond: #faf7f2; --carte: #ffffff; --encre: #2a2521; --discret: #75695e; --trait: #e6ddd1;
  --accent: #b5541f; --accent-encre: #ffffff; --doux: #f4e7dc; --pastille: #f1eae0;
  --ok: #2f6d4f; --ok-fond: #e4f1ea; --alerte: #a03c3c; --alerte-fond: #f8e6e4;
  --ombre: 0 1px 3px rgba(60, 40, 20, .08); --ombre-forte: 0 10px 34px rgba(60, 40, 20, .18);
  --rayon: 14px;
  --c: var(--accent);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #17150f; --carte: #211e17; --encre: #ece5da; --discret: #a3978a; --trait: #38322a;
    --accent: #e9a06a; --accent-encre: #241609; --doux: #2e2418; --pastille: #2a251c;
    --ok: #7ec9a3; --ok-fond: #1d2b24; --alerte: #e58a8a; --alerte-fond: #33201f;
    --ombre: 0 1px 3px rgba(0, 0, 0, .5); --ombre-forte: 0 10px 34px rgba(0, 0, 0, .6);
  }
  [style*="--cs"] { --c: var(--cs) !important; }
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 1rem/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.sans-defilement { overflow: hidden; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.discret { color: var(--discret); }

/* ---------- Barre du haut ---------- */
.barre {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1.2rem;
  padding: .55rem max(1rem, env(safe-area-inset-left)) .55rem max(1rem, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.marque { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.08rem; color: var(--encre); text-decoration: none; white-space: nowrap; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent) url(icone.svg) center/cover; flex: none; }
.menu { display: flex; gap: .2rem; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: .6rem .85rem; border-radius: 10px; color: var(--discret); text-decoration: none; white-space: nowrap; font-weight: 550; }
.menu a:hover { background: var(--doux); color: var(--encre); }
.menu a.actif { color: var(--accent); background: var(--doux); }
.compte { display: flex; align-items: center; gap: .7rem; color: var(--discret); font-size: .9rem; white-space: nowrap; }
.compte a { color: var(--discret); }
/* tablette en portrait (768 px) comprise : le menu passe sur sa propre ligne plutot que d'etre coupe */
@media (max-width: 900px) {
  .barre { flex-wrap: wrap; gap: .3rem .8rem; }
  .menu { order: 3; flex-basis: 100%; }
  .compte { margin-left: auto; }
  html { scroll-padding-top: 120px; }
}

main { max-width: 1320px; margin: 0 auto; padding: 1.1rem max(1rem, env(safe-area-inset-left)) 5rem max(1rem, env(safe-area-inset-right)); }

/* ---------- Boutons et formulaires ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px;
  padding: .55rem 1.1rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte);
  color: var(--encre); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--ombre);
}
.bouton:hover { border-color: var(--accent); color: var(--accent); }
.bouton-plein { background: var(--accent); border-color: var(--accent); color: var(--accent-encre); }
.bouton-plein:hover { filter: brightness(1.08); color: var(--accent-encre); }
.bouton:disabled { opacity: .5; cursor: default; }
.bouton.grand { min-height: 64px; font-size: 1.15rem; padding: .7rem 1.6rem; }
.bouton.danger { color: var(--alerte); }
.lien { background: none; border: 0; padding: .3rem 0; color: var(--discret); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--trait); border-radius: 11px;
  background: var(--carte); color: var(--encre); font: inherit;
}
textarea { min-height: 6rem; resize: vertical; }
label { display: block; font-size: .9rem; color: var(--discret); font-weight: 550; }
label > input, label > select, label > textarea { margin-top: .3rem; color: var(--encre); font-weight: 400; }
.coche { display: flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--encre); font-weight: 400; font-size: .95rem; cursor: pointer; }
.coche input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
form > * + * { margin-top: .9rem; }
.ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; align-items: end; }

.flash { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 11px; background: var(--ok-fond); color: var(--ok); font-weight: 550; }
.flash-erreur { background: var(--alerte-fond); color: var(--alerte); }
.erreur { color: var(--alerte); font-weight: 550; }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.5rem; box-shadow: var(--ombre); }
.carte-etroite { max-width: 27rem; margin: 8vh auto 0; }
.carte-etroite h1 { font-size: 1.6rem; margin-bottom: .4rem; }

/* ---------- Recherche ---------- */
.champ-recherche { display: flex; gap: .6rem; }
.champ-recherche input { min-height: 58px; font-size: 1.1rem; padding-left: 1.1rem; box-shadow: var(--ombre); }
.bouton-frigo { min-height: 58px; white-space: nowrap; }
.bouton-frigo.actif { border-color: var(--accent); color: var(--accent); background: var(--doux); }

.frigo { margin-top: .8rem; padding: 1.1rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.frigo-titre { margin: 0 0 .6rem; font-weight: 700; font-size: 1.05rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: .45rem; }
.pastilles:not(:empty) { margin-bottom: .7rem; }
.pastille {
  min-height: 44px; padding: .35rem .9rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-encre);
  font: inherit; font-weight: 650; cursor: pointer;
}
.pastille.famille { background: var(--encre); color: var(--fond); }
.pastille small { font-weight: 400; opacity: .85; }
.saisie-ingredient { position: relative; }
.suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem; list-style: none;
  background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; box-shadow: var(--ombre-forte);
}
.suggestions button { width: 100%; min-height: 48px; padding: .4rem .8rem; border: 0; border-radius: 9px; background: none; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.suggestions button:hover, .suggestions button.premier { background: var(--doux); }
.suggestions small { color: var(--discret); margin-left: .4rem; }
.suggestions .vide { padding: .7rem .8rem; color: var(--discret); }
.frequents { margin: .8rem 0 .3rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: var(--discret); font-size: .9rem; }
.propose { min-height: 40px; padding: .25rem .8rem; border: 1px solid var(--trait); border-radius: 999px; background: var(--pastille); color: var(--encre); font: inherit; font-size: .92rem; cursor: pointer; }
.propose:hover { border-color: var(--accent); color: var(--accent); }

.categories { display: flex; gap: .45rem; margin-top: .9rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.cat {
  display: inline-flex; align-items: center; gap: .45rem; flex: none; min-height: 44px; padding: .3rem .9rem;
  border: 1px solid transparent; border-radius: 999px; background: var(--pastille); color: var(--discret);
  font: inherit; font-size: .93rem; cursor: pointer; white-space: nowrap;
}
.cat i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cat b { font-weight: 600; font-size: .82rem; opacity: .75; }
.cat:hover, .cat.actif { color: var(--c); border-color: var(--c); background: var(--carte); }
.cat.actif { font-weight: 650; }
.sous-categories { margin-top: .4rem; }
.sous-categories .cat { min-height: 40px; font-size: .88rem; }

.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.3rem; margin: .8rem 0 1rem; }
.filtres label:not(.coche) { display: flex; align-items: center; gap: .5rem; }
.filtres select { width: auto; min-height: 44px; margin: 0; }
.compteur { margin-left: auto; color: var(--discret); font-size: .92rem; font-variant-numeric: tabular-nums; }
.message { padding: .9rem 1.1rem; border-radius: 12px; background: var(--doux); }

/* ---------- Grille de recettes ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1rem; }
.carte-recette {
  display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--ombre); transition: transform .12s, box-shadow .12s;
}
.carte-recette:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.carte-recette .photo { position: relative; aspect-ratio: 4 / 3; background: var(--doux); }
.carte-recette .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.sans-photo { position: absolute; inset: 0; display: grid; place-items: center; font: 600 5.5rem/1 Georgia, "Times New Roman", serif; color: color-mix(in srgb, var(--c) 38%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 26%, var(--carte)), color-mix(in srgb, var(--c) 8%, var(--carte))); }
.carte-recette .texte { padding: .75rem .9rem .85rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; border-top: 3px solid var(--c); }
.rubrique { margin: 0; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c); font-weight: 700; }
.rubrique em { margin-left: .4rem; color: var(--discret); text-transform: none; letter-spacing: 0; font-weight: 400; }
.carte-recette h3 { font-size: 1.04rem; font-weight: 650; }
.manque { margin: .15rem 0 0; font-size: .86rem; color: var(--discret); }
.manque.complet { color: var(--ok); font-weight: 650; }
.bas { margin: auto 0 0; padding-top: .35rem; display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .84rem; color: var(--discret); }
.bas .four, .bas .langue, .langue { padding: 0 .4rem; border: 1px solid var(--trait); border-radius: 6px; font-size: .76rem; }
.etoiles { color: #d99a1c; letter-spacing: .05em; white-space: nowrap; }
.etoiles i { font-style: normal; color: var(--trait); }
.favori {
  position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: #b9afa4; font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: var(--ombre);
}
.favori.on { color: #d0342c; }
.favori.grand { position: static; width: auto; height: auto; min-height: 48px; padding: .55rem 1.1rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); font: inherit; font-weight: 600; }
.suite { text-align: center; margin-top: 1.5rem; }

/* ---------- Fiche recette ---------- */
.fil { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; margin-bottom: .8rem; }
.fil a { color: var(--discret); text-decoration: none; }
.fil a:hover { color: var(--c); }
.fil a + a::before { content: "›"; margin-right: .3rem; color: var(--trait); }

.tete { display: grid; gap: 1.3rem; align-items: center; margin-bottom: 1.2rem; }
.tete.avec-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.photo-tete { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); cursor: zoom-in; }
.tete h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
.tete h1::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .7rem; border-radius: 2px; background: var(--c); }
.sous-titre { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: .7rem 0 0; color: var(--discret); }
.a-relire { padding: 0 .5rem; border-radius: 6px; background: var(--doux); font-size: .82rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
@media (max-width: 760px) { .tete.avec-photo { grid-template-columns: 1fr; } }

.reperes { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.reperes li { display: flex; align-items: center; gap: .5rem; min-height: 56px; padding: .4rem 1rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); }
.reperes span { color: var(--discret); font-size: .85rem; }
.reperes b { font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.reperes em { font-style: normal; color: var(--discret); }
.portions button { width: 44px; height: 44px; border: 1px solid var(--trait); border-radius: 50%; background: var(--fond); color: var(--encre); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.portions b { min-width: 1.6em; text-align: center; cursor: pointer; }
.portions-modifiees .portions b, .portions-modifiees .qte { color: var(--c); }

.four-maison { margin-bottom: 1.4rem; padding: 1rem 1.2rem; border-radius: var(--rayon); background: var(--doux); border-left: 5px solid var(--c); }
.four-maison h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.reglage { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin: .3rem 0 0; }
.reglage span { font-weight: 600; }
.reglage b { font-size: 1.9rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.reglage em { font-style: normal; color: var(--discret); }
.explication, .note-maison { margin: .4rem 0 0; font-size: .9rem; color: var(--discret); }
.explication q { font-style: italic; }

.corps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.2rem; align-items: start; }
@media (max-width: 860px) { .corps { grid-template-columns: 1fr; gap: 1.5rem; } }
.recette h2 { font-size: 1.3rem; margin-bottom: .7rem; }
.recette section { margin-bottom: 2rem; }
.recette h2 small { color: var(--discret); font-weight: 400; font-size: .9rem; }

.ingredients { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 1.1rem 1.2rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
@media (max-width: 860px) { .ingredients { position: static; max-height: none; } }
.ingredients h3 { margin: 1rem 0 .3rem; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.ingredients ul { margin: 0; padding: 0; list-style: none; }
.ingredients li + li { border-top: 1px solid var(--trait); }
.ingredients label { display: grid; grid-template-columns: 24px 3.2em 3.4em 1fr; gap: .2rem .5rem; align-items: baseline; padding: .6rem 0; min-height: 48px; color: var(--encre); font-size: 1rem; font-weight: 400; cursor: pointer; }
.ingredients input { width: 22px; height: 22px; margin: 0; accent-color: var(--c); align-self: center; }
.qte { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.unite { color: var(--discret); font-size: .92rem; white-space: nowrap; }
.nom small { color: var(--discret); }
.nom .fac, .nom .traduction { margin-left: .3rem; font-style: italic; }
.ingredients input:checked ~ span { opacity: .4; text-decoration: line-through; }

.etapes ol { margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { position: relative; counter-increment: etape; padding: 0 0 1.3rem 3.4rem; font-size: 1.08rem; line-height: 1.6; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--c); color: var(--carte); font-weight: 700; font-size: 1rem;
}
.notes { margin-top: .5rem; padding: 1rem 1.2rem; border-radius: var(--rayon); border: 1px dashed var(--trait); }
.notes h3 { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--discret); margin-bottom: .3rem; }
.notes p { margin: 0; }

.vignettes { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.vignettes img { width: 170px; height: 128px; object-fit: cover; border-radius: 11px; cursor: zoom-in; box-shadow: var(--ombre); }
.retour { padding: .9rem 0; border-top: 1px solid var(--trait); }
.retour p { margin: .2rem 0; }
.retour .qui { color: var(--discret); }
.retour .qui b { color: var(--encre); }
.reglages { font-size: .95rem; }
.nouveau-retour { margin-top: 1rem; }
.nouveau-retour summary { list-style: none; width: fit-content; }
.nouveau-retour summary::-webkit-details-marker { display: none; }
.nouveau-retour[open] summary { margin-bottom: 1rem; }
.nouveau-retour form { padding: 1.2rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); max-width: 52rem; }
.notation { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; margin: 0; padding: 0; border: 0; }
.notation legend { float: left; width: 100%; margin-bottom: .2rem; padding: 0; font-size: .9rem; color: var(--discret); font-weight: 550; }
.notation input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.notation label { width: 48px; height: 48px; display: grid; place-items: center; font-size: 2rem; color: var(--trait); cursor: pointer; }
.notation input:checked ~ label, .notation label:hover, .notation label:hover ~ label { color: #d99a1c; }
.notation input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 8px; }
.photos input { padding: .7rem; border: 1px dashed var(--trait); border-radius: 11px; width: 100%; background: var(--fond); }
.apercus { display: flex; flex-wrap: wrap; gap: .5rem; }
.apercus span { position: relative; }
.apercus img { width: 110px; height: 84px; object-fit: cover; border-radius: 9px; display: block; }
.apercus button { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--encre); color: var(--fond); font-size: 1.1rem; cursor: pointer; }

.original .pages { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.original .pages img { width: 100%; border-radius: 10px; border: 1px solid var(--trait); cursor: zoom-in; background: #fff; }
.original pre { white-space: pre-wrap; font: .9rem/1.5 inherit; color: var(--discret); padding: 1rem; background: var(--carte); border-radius: 10px; border: 1px solid var(--trait); }
.original summary { cursor: pointer; color: var(--discret); min-height: 44px; display: flex; align-items: center; }
.provenance { color: var(--discret); font-size: .8rem; overflow-wrap: anywhere; }

/* ---------- Zoom ---------- */
.zoom { position: fixed; inset: 0; z-index: 80; background: rgba(12, 10, 8, .94); overflow: auto; display: grid; place-items: center; padding: 1rem; }
.zoom img { max-width: 100%; max-height: calc(100vh - 2rem); border-radius: 8px; cursor: zoom-in; }
.zoom.grand { place-items: start center; }
.zoom.grand img { max-width: none; max-height: none; width: min(1600px, 200vw); cursor: zoom-out; }
.zoom .bouton { position: fixed; top: 1rem; right: 1rem; }

/* ---------- Mode cuisine ---------- */
.cuisine { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--fond); }
.cuisine > header { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--trait); }
.cuisine > header strong { flex: 1 1 auto; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cuisine-four { padding: .3rem .8rem; border-radius: 999px; background: var(--doux); font-weight: 700; white-space: nowrap; }
#cuisine-four:empty { display: none; }
.cuisine-corps { flex: 1 1 auto; display: grid; grid-template-columns: minmax(280px, 30%) 1fr; min-height: 0; }
.cuisine aside { overflow-y: auto; padding: 1rem; border-right: 1px solid var(--trait); }
.cuisine aside .ingredients { position: static; max-height: none; border: 0; box-shadow: none; background: none; padding: 0; }
.cuisine-etape { overflow-y: auto; padding: clamp(1.2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: safe center; }
.numero { margin: 0 0 1rem; color: var(--c, var(--accent)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.cuisine .texte { margin: 0; font-size: clamp(1.45rem, 3.1vw, 2.35rem); line-height: 1.45; text-wrap: pretty; }
.duree { padding: 0 .35em; border: 2px solid var(--accent); border-radius: .4em; background: var(--doux); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.minuteries { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1rem; }
.minuteries:not(:empty) { padding-bottom: .7rem; }
.minuterie { min-height: 56px; padding: .4rem 1.1rem; border: 0; border-radius: 999px; background: var(--encre); color: var(--fond); font: inherit; cursor: pointer; }
.minuterie b { font-size: 1.35rem; font-variant-numeric: tabular-nums; margin-right: .3rem; }
.minuterie.finie { background: var(--alerte); color: #fff; animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: .55; } }
.cuisine > footer { display: flex; gap: .8rem; padding: .8rem 1rem max(.8rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--trait); }
.cuisine > footer .bouton { flex: 1 1 0; }
#cuisine-ingredients { display: none; }
@media (max-width: 860px) {
  .cuisine-corps { grid-template-columns: 1fr; }
  .cuisine aside { display: none; border: 0; }
  .cuisine.liste-ouverte aside { display: block; }
  .cuisine.liste-ouverte .cuisine-etape { display: none; }
  #cuisine-ingredients { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Administration ---------- */
.onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.onglets a { padding: .55rem 1rem; border-radius: 10px; background: var(--pastille); color: var(--discret); text-decoration: none; font-weight: 600; }
.onglets a.actif { background: var(--accent); color: var(--accent-encre); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.chiffres div { padding: 1rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); }
.chiffres b { display: block; font-size: 1.8rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.chiffres span { color: var(--discret); font-size: .88rem; }
.table-defilante { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--discret); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
.etiquette { display: inline-block; padding: 0 .5rem; border-radius: 6px; background: var(--doux); font-size: .8rem; white-space: nowrap; }
.etiquette.ok { background: var(--ok-fond); color: var(--ok); }
.etiquette.alerte { background: var(--alerte-fond); color: var(--alerte); }

.edition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.edition .cote-original { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); padding: .6rem; }
.edition .cote-original img { width: 100%; display: block; border-radius: 8px; cursor: zoom-in; }
.edition .cote-original img + img { margin-top: .6rem; }
.edition .cote-original pre { white-space: pre-wrap; font: .88rem/1.5 inherit; margin: 0; padding: .6rem; }
@media (max-width: 1000px) { .edition { grid-template-columns: 1fr; } .edition .cote-original { position: static; max-height: 60vh; } }
.bloc { padding: 1.1rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); }
.bloc + .bloc { margin-top: 1rem; }
.bloc h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.lignes-ingredients { width: 100%; }
.lignes-ingredients th, .lignes-ingredients td { padding: .2rem .25rem; border: 0; }
.lignes-ingredients input { min-height: 42px; padding: .35rem .5rem; font-size: .92rem; }
.lignes-ingredients .c-qte { width: 5.2rem; } .lignes-ingredients .c-unite { width: 5.5rem; } .lignes-ingredients .c-fac { width: 2.4rem; text-align: center; }
.lignes-ingredients .retirer { width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--discret); font-size: 1.2rem; cursor: pointer; }
.barre-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; padding: .8rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre-forte); }
.barre-actions .espace { flex: 1; }
