/* À table — feuille de style unique. Mobile d'abord, clair et sombre. */
:root {
  --fond: #f6f1e9; --carte: #fffdf9; --encre: #2a241f; --doux: #6f665c; --pale: #9a9086;
  --trait: #e7dfd3; --accent: #b4502f; --accent-encre: #fff; --accent-doux: #f5e3d8;
  --vert: #47663f; --vert-doux: #e4ecdc; --or: #b98318; --or-doux: #f6ead0;
  --ombre: 0 1px 2px rgb(60 40 20 / .06), 0 4px 16px rgb(60 40 20 / .06);
  --rayon: 14px; --rayon-petit: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --barre: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #161311; --carte: #211d1a; --encre: #f2ece4; --doux: #b1a69a; --pale: #857b71;
    --trait: #352f29; --accent: #e27b55; --accent-encre: #1b1310; --accent-doux: #3b281f;
    --vert: #93b886; --vert-doux: #223020; --or: #e0b04f; --or-doux: #3a2f17;
    --ombre: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.55 var(--sans);
  padding-bottom: calc(var(--barre) + env(safe-area-inset-bottom) + 16px);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* bilingue : la langue principale, puis la traduction plus discrète */
.bi { display: block; }
.bi .s { display: block; color: var(--doux); font-size: .88em; margin-top: .1em; }
.bi-ligne .s { display: inline; margin: 0 0 0 .4em; }
.bi-ligne .s::before { content: "· "; color: var(--pale); }
[lang="ja"] { line-break: strict; word-break: normal; overflow-wrap: anywhere; }

/* ---------- en-tête et barre d'onglets ---------- */
.entete {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--trait) 60%, transparent);
}
.entete .marque { font-family: var(--serif); font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.entete .marque small { font-family: var(--sans); font-size: 12px; color: var(--doux); font-weight: 400; margin-left: 6px; }
.entete .droite { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.bascule-langue { display: inline-flex; border: 1px solid var(--trait); border-radius: 99px; overflow: hidden; background: var(--carte); }
.bascule-langue button { border: 0; background: none; padding: 5px 11px; font-size: 13px; color: var(--doux); min-height: 32px; }
.bascule-langue button[aria-pressed="true"] { background: var(--encre); color: var(--fond); }
.icone-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--trait); background: var(--carte); text-decoration: none; }
.icone-btn svg { width: 18px; height: 18px; }

.onglets {
  position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--barre) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--carte) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--trait);
}
.onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--pale); font-size: 11px; font-weight: 500; }
.onglets a svg { width: 23px; height: 23px; }
.onglets a[aria-current="page"] { color: var(--accent); }
.onglets .pastille { position: absolute; transform: translate(14px, -12px); background: var(--accent); color: var(--accent-encre); border-radius: 99px; font-size: 10px; padding: 0 5px; line-height: 16px; }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.surtitre { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); font-weight: 600; font-family: var(--sans); }
.doux { color: var(--doux); }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section > h2 .bi .s { display: inline; font-size: 15px; font-family: var(--sans); font-weight: 400; margin-left: 4px; }

/* ---------- cartes et éléments ---------- */
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.puce {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 13px;
  background: var(--fond); border: 1px solid var(--trait); color: var(--doux); white-space: nowrap;
}
.puce svg { width: 14px; height: 14px; }
a.puce { text-decoration: none; }
.puce.accent { background: var(--accent-doux); border-color: transparent; color: var(--accent); }
.puce.vert { background: var(--vert-doux); border-color: transparent; color: var(--vert); }
.puce.or { background: var(--or-doux); border-color: transparent; color: var(--or); }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 99px; border: 0; background: var(--accent); color: var(--accent-encre); font-weight: 600; text-decoration: none; font-size: 16px;
}
.btn svg { width: 20px; height: 20px; }
.btn.second { background: var(--carte); color: var(--encre); border: 1px solid var(--trait); }
.btn.plein { width: 100%; }
.btn:active { transform: scale(.98); }
.lien-fleche { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }

/* ---------- semaine ---------- */
.tete-semaine { display: flex; align-items: flex-end; gap: 12px; margin: 14px 0 6px; }
.tete-semaine .nav { margin-left: auto; display: flex; gap: 6px; }
.note-semaine { margin: 10px 0 0; color: var(--doux); font-size: 15px; }
.aujourdhui { margin-top: 20px; }
.aujourdhui .surtitre { color: var(--accent); }
.hero { position: relative; display: block; text-decoration: none; margin-top: 10px; }
.hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--trait); }
.hero .contenu { padding: 14px 16px 16px; }
.hero h3 { font-size: 22px; }
.hero .meta { margin-top: 8px; }
.hero .actions { display: flex; gap: 8px; margin-top: 14px; }
.hero .actions .btn { flex: 1; }
.badge-ia { position: absolute; top: 10px; right: 10px; font-size: 11px; background: rgb(0 0 0 / .45); color: #fff; padding: 2px 8px; border-radius: 99px; backdrop-filter: blur(4px); }
.moment { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.moment.diner { color: var(--accent); } .moment.bento { color: var(--vert); } .moment.batch { color: var(--or); }

.jour { margin-top: 18px; }
.jour-tete { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 8px; }
.jour-tete .nom { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.jour-tete .nom::first-letter { text-transform: uppercase; }
.jour-tete .puce { margin-left: auto; }
.jour.passe { opacity: .55; }
.jour.actuel .jour-tete .nom { color: var(--accent); }
.liste-repas { display: grid; gap: 8px; }
.repas { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 8px; text-decoration: none; }
.repas img, .repas .vignette-vide { width: 76px; height: 64px; border-radius: var(--rayon-petit); object-fit: cover; background: var(--trait); }
.repas .vignette-vide { display: grid; place-items: center; color: var(--pale); }
.repas .titre { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.repas .titre .s { font-weight: 400; }
.repas .chevron { color: var(--pale); width: 18px; height: 18px; }
.repas .sous { font-size: 13px; color: var(--doux); margin-top: 2px; }

.resume-courses { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; margin-top: 12px; }
.resume-courses .jauge { flex: 1; }
.jauge-barre { height: 6px; border-radius: 99px; background: var(--trait); overflow: hidden; margin-top: 6px; }
.jauge-barre span { display: block; height: 100%; background: var(--vert); border-radius: 99px; transition: width .3s; }

/* ---------- recette ---------- */
.fiche-hero { margin: 0 -16px; position: relative; }
.fiche-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--trait); }
@media (min-width: 760px) { .fiche-hero { margin: 12px 0 0; border-radius: var(--rayon); overflow: hidden; } }
.fiche-titre { margin-top: 18px; }
.fiche-titre h1 .s { font-size: 19px; margin-top: 6px; font-weight: 500; }
.accroche { margin: 10px 0 0; font-size: 17px; color: var(--doux); }
.accroche .s { font-size: 15px; }
.meta-fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--trait); border-radius: var(--rayon); overflow: hidden; margin-top: 18px; border: 1px solid var(--trait); }
.meta-fiche div { background: var(--carte); padding: 10px 12px; }
.meta-fiche b { display: block; font-size: 17px; font-family: var(--serif); }
.meta-fiche span { font-size: 12.5px; color: var(--doux); }
.meta-fiche .portions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
.meta-fiche .portions b { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.btn.flottant { position: fixed; z-index: 25; right: 16px; bottom: calc(var(--barre) + env(safe-area-inset-bottom) + 14px); box-shadow: 0 6px 20px rgb(0 0 0 / .22); }
body:has(.minuteur) .btn.flottant { display: none; }
.repas.tache .titre { font-weight: 400; font-size: 14.5px; }
.repas.tache .vignette-vide { height: 52px; }
.note-semaine { margin-top: 14px; padding: 12px 16px; font-size: 14.5px; color: var(--doux); }
.note-semaine summary { cursor: pointer; font-weight: 600; color: var(--encre); }
.note-semaine[open] summary { margin-bottom: 8px; }
.actions-fiche { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.actions-fiche .btn:first-child { flex: 1; }
.btn-rond { width: 48px; height: 48px; border-radius: 99px; border: 1px solid var(--trait); background: var(--carte); display: grid; place-items: center; flex: none; }
.btn-rond svg { width: 22px; height: 22px; }
.btn-rond[aria-pressed="true"] { color: var(--or); border-color: var(--or); background: var(--or-doux); }
.btn-rond[aria-pressed="true"] svg { fill: currentColor; }
.encart { border-radius: var(--rayon); padding: 14px 16px; margin-top: 16px; font-size: 15px; }
.encart.vert { background: var(--vert-doux); }
.encart.vert .titre-encart { color: var(--vert); }
.encart.or { background: var(--or-doux); }
.titre-encart { font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.titre-encart svg { width: 16px; height: 16px; }

.ingredients { list-style: none; margin: 0; padding: 0; }
.groupe-ing { margin-top: 14px; }
.groupe-ing > h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); font-weight: 700; margin: 0 0 4px; }
.groupe-ing > h3 .s { text-transform: none; letter-spacing: 0; display: inline; margin-left: 6px; font-weight: 400; }
.ing { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 40%); gap: 10px; align-items: start; padding: 10px 2px; border-bottom: 1px solid var(--trait); cursor: pointer; }
.ing input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 99px; border: 2px solid var(--trait); margin: 1px 0 0; display: grid; place-items: center; background: var(--carte); }
.ing input:checked { background: var(--vert); border-color: var(--vert); }
.ing input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ing:has(input:checked) .nom { text-decoration: line-through; color: var(--pale); }
.ing .qte { color: var(--doux); font-size: 14.5px; text-align: right; }
.ing .qte .s { font-size: 13px; }
.ing .maison { font-size: 11.5px; color: var(--vert); margin-left: 6px; white-space: nowrap; }

.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.etape { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.etape .num { width: 30px; height: 30px; border-radius: 99px; background: var(--encre); color: var(--fond); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.etape .texte { font-size: 16.5px; }
.etape .texte .s { font-size: 15px; margin-top: 6px; }
.etape .outils { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.poste { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.poste.A { background: #e5eef7; color: #2f5d8a; } .poste.B { background: #f4e7f1; color: #874275; }
@media (prefers-color-scheme: dark) { .poste.A { background: #1d2a37; color: #8fb6dd; } .poste.B { background: #33202e; color: #dc9bc9; } }
.astuces { margin: 0; padding-left: 20px; }
.astuces li { margin: 10px 0; }

.etoiles { display: inline-flex; gap: 2px; }
.etoiles button { border: 0; background: none; padding: 4px; color: var(--trait); }
.etoiles button svg { width: 30px; height: 30px; fill: currentColor; }
.etoiles button.on { color: var(--or); }
.fait-bloc { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- courses ---------- */
.courses-tete { position: sticky; top: calc(env(safe-area-inset-top) + 57px); z-index: 10; background: var(--fond); padding: 10px 0 10px; }
.courses-tete .ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rayon { margin-top: 18px; }
.rayon > h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--doux); font-weight: 700; margin: 0 0 6px 4px; }
.rayon > h2 .s { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.article { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 36%); gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--trait); cursor: pointer; user-select: none; -webkit-user-select: none; min-height: 56px; }
.article:last-child { border-bottom: 0; }
.article .rond { width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--trait); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.article[aria-checked="true"] .rond { background: var(--vert); border-color: var(--vert); }
.article[aria-checked="true"] .rond::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.article[aria-checked="true"] .nom { text-decoration: line-through; color: var(--pale); }
.article .nom { font-weight: 500; line-height: 1.3; }
.article .nom .s { font-weight: 400; }
.article .pour { font-size: 12.5px; color: var(--pale); margin-top: 2px; }
.article .qte { font-size: 14px; color: var(--doux); text-align: right; }
.masquer-pris .article[aria-checked="true"] { display: none; }
details.repli { margin-top: 22px; }
details.repli > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 10px 4px; color: var(--doux); }
details.repli > summary::-webkit-details-marker { display: none; }
details.repli > summary::after { content: "＋"; margin-left: auto; color: var(--pale); }
details.repli[open] > summary::after { content: "－"; }
.form-ajout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.form-ajout .large { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--doux); }
.champ input, .champ select, .champ textarea { font-size: 16px; color: var(--encre); background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: 10px 12px; min-height: 44px; width: 100%; }
.champ textarea { min-height: 80px; resize: vertical; }

/* ---------- recettes ---------- */
.recherche { width: 100%; font-size: 16px; padding: 12px 16px 12px 42px; border-radius: 99px; border: 1px solid var(--trait); background: var(--carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9086' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 18px; margin-top: 14px; }
.filtres { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.filtres::-webkit-scrollbar { display: none; }
.filtres button { flex: none; border: 1px solid var(--trait); background: var(--carte); border-radius: 99px; padding: 7px 14px; font-size: 14px; color: var(--doux); min-height: 36px; }
.filtres button[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(3, 1fr); } }
.tuile { text-decoration: none; display: flex; flex-direction: column; position: relative; }
.tuile img, .tuile .vignette-vide { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--trait); }
.tuile .contenu { padding: 10px 12px 12px; }
.tuile .titre { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.tuile .titre .s { font-weight: 400; font-size: 12.5px; }
.tuile .meta { font-size: 12.5px; color: var(--doux); margin-top: 6px; }
.tuile .etoile-fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 99px; background: rgb(0 0 0 / .4); color: #ffd36b; display: grid; place-items: center; }
.tuile .etoile-fav svg { width: 16px; height: 16px; fill: currentColor; }
.vide { text-align: center; color: var(--doux); padding: 40px 10px; }

/* ---------- restos ---------- */
.segments { display: grid; grid-template-columns: 1fr 1fr; background: var(--trait); border-radius: 99px; padding: 3px; margin-top: 14px; }
.segments button { border: 0; background: none; border-radius: 99px; padding: 9px; font-weight: 600; color: var(--doux); min-height: 40px; }
.segments button[aria-pressed="true"] { background: var(--carte); color: var(--encre); box-shadow: var(--ombre); }
.resto { padding: 14px 16px; margin-top: 10px; }
.resto .ligne { display: flex; gap: 10px; align-items: baseline; }
.resto .nom { font-weight: 700; font-size: 17px; }
.resto .nom .s { font-weight: 400; font-size: 14px; }
.resto .note { margin-left: auto; color: var(--or); white-space: nowrap; }
.resto .avis { margin: 8px 0 0; font-size: 15px; }
.resto .puces { margin-top: 8px; }
.resto details summary { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 10px; cursor: pointer; }

/* ---------- connexion ---------- */
.connexion { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.connexion form { width: 100%; max-width: 360px; text-align: center; }
.connexion h1 { font-size: 40px; }
.connexion .champ { margin-top: 24px; text-align: left; display: block; }
.connexion .champ input { margin-top: 6px; }
.connexion .btn { margin-top: 14px; width: 100%; }
.connexion .erreur { color: var(--accent); margin-top: 12px; }
.connexion .deco { font-size: 44px; margin-bottom: 8px; }

/* ---------- réglages ---------- */
.reglage { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.choix { display: flex; gap: 8px; flex-wrap: wrap; }
.choix label { flex: 1; min-width: 120px; border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: 12px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.interrupteur { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.interrupteur input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--trait); position: relative; transition: background .2s; flex: none; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.interrupteur input:checked { background: var(--vert); }
.interrupteur input:checked::after { transform: translateX(20px); }
.regles { margin: 0; padding: 0; list-style: none; }
.regles li { padding: 12px 0; border-bottom: 1px solid var(--trait); }

/* ---------- minuteurs flottants (toutes les pages) ---------- */
.minuteurs { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(var(--barre) + env(safe-area-inset-bottom) + 10px); display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
.minuteur { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--encre); color: var(--fond); border-radius: 99px; padding: 8px 8px 8px 16px; box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.minuteur .temps { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.minuteur .lib { flex: 1; font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minuteur button { border: 0; background: color-mix(in srgb, var(--fond) 18%, transparent); color: inherit; border-radius: 99px; height: 34px; min-width: 34px; padding: 0 10px; font-size: 13px; font-weight: 600; }
.minuteur.fini { background: var(--accent); color: var(--accent-encre); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.03); } }

.toast { position: fixed; z-index: 50; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translate(-50%, -150%); background: var(--encre); color: var(--fond); padding: 10px 18px; border-radius: 99px; font-size: 14px; transition: transform .3s; max-width: 90vw; text-align: center; }
.toast.visible { transform: translate(-50%, 0); }

/* ---------- mode cuisine ---------- */
body.cuisine { padding-bottom: 0; background: var(--carte); overflow: hidden; }
.cuisine-app { height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; max-width: 760px; margin: 0 auto; }
.cuisine-haut { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 12px 6px; }
.cuisine-haut .titre { flex: 1; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progression { height: 4px; background: var(--trait); margin: 0 16px; border-radius: 99px; overflow: hidden; }
.progression span { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.postes { display: flex; gap: 6px; padding: 10px 16px 0; align-items: center; }
.postes button { border: 1px solid var(--trait); background: var(--fond); border-radius: 99px; padding: 6px 14px; font-size: 14px; font-weight: 600; min-height: 36px; }
.postes button[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.scene { min-width: 0; overflow-y: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; justify-content: center; touch-action: pan-y; }
.scene .compteur { font-size: 14px; color: var(--doux); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.scene .texte-etape { font-size: clamp(22px, 5.6vw, 30px); line-height: 1.4; margin-top: 12px; font-weight: 500; }
.scene .texte-etape .s { font-size: .74em; margin-top: 14px; line-height: 1.55; }
.scene .btn-minuteur { margin-top: 22px; align-self: flex-start; }
.scene.fin { text-align: center; align-items: center; }
.scene.fin h2 { font-size: 34px; }
.cuisine-bas { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 10px 14px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--trait); }
.cuisine-bas .btn { min-height: 56px; font-size: 17px; }
.cuisine-app .minuteurs { position: static; transform: none; width: auto; margin: 6px 14px 0; }
.feuille { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .4); display: none; }
.feuille.ouverte { display: block; }
.feuille .panneau { position: absolute; inset: auto 0 0 0; max-height: 80svh; overflow-y: auto; background: var(--carte); border-radius: 20px 20px 0 0; padding: 8px 18px calc(env(safe-area-inset-bottom) + 18px); }
.feuille .poignee { width: 40px; height: 5px; border-radius: 99px; background: var(--trait); margin: 6px auto 12px; }
.anim-gauche { animation: entreG .22s ease-out; } .anim-droite { animation: entreD .22s ease-out; }
@keyframes entreG { from { opacity: 0; transform: translateX(24px); } }
@keyframes entreD { from { opacity: 0; transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- banque d'idées ---------- */
.flux { display: grid; gap: 14px; margin-top: 12px; }
@media (min-width: 640px) { .flux { grid-template-columns: repeat(2, 1fr); } }
.idee { display: flex; flex-direction: column; }
.idee-bandeau { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; font-size: 13px; font-weight: 600; color: var(--encre); background: var(--fond); border-bottom: 1px solid var(--trait); }
.idee-bandeau .picto { font-size: 26px; line-height: 1; }
.idee-bandeau .coeur { margin-left: auto; width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--trait); background: var(--carte); display: grid; place-items: center; color: var(--pale); }
.idee-bandeau .coeur svg { width: 21px; height: 21px; }
.idee-bandeau .coeur[aria-pressed="true"] { color: #d1495b; border-color: #e8a1aa; background: #fbe9eb; }
.idee-bandeau .coeur[aria-pressed="true"] svg { fill: currentColor; }
@media (prefers-color-scheme: dark) { .idee-bandeau .coeur[aria-pressed="true"] { background: #3a1d22; border-color: #7a3540; color: #ff7d8d; } }
.m-four-vapeur { background: #f7e7dc; } .m-airfryer { background: #fbefd2; } .m-rice-cooker { background: #eef0e2; } .m-auto-cooker { background: #f6e9cf; }
.m-donabe, .m-rechaud-table { background: #efe2d6; } .m-plancha { background: #f5ddd5; } .m-takoyaki { background: #f3e1e8; } .m-vapeur-bambou { background: #e6eedb; }
.m-crepiere { background: #f8ecd6; } .m-kitchenaid { background: #e3ebf3; } .m-fumoir { background: #e7e5e2; }
@media (prefers-color-scheme: dark) { .idee-bandeau { background: #2a2420 !important; } }
.idee-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.idee-corps h3 { font-size: 18px; }
.idee-corps h3 .s { font-size: 14.5px; font-weight: 500; margin-top: 3px; }
.idee .resume { margin: 0; font-size: 15px; }
.idee .resume .s { font-size: 13.5px; }
.idee .note-g { margin: 0; font-size: 13px; color: var(--doux); }
.idee-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.idee-pied .source { font-size: 13px; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.idee-pied .lien-fleche { flex: none; font-size: 14px; }
.sources-groupe h3 { font-family: var(--sans); font-size: 14px; margin: 12px 0 4px; }
.sources-groupe ul { margin: 0 0 6px; padding-left: 18px; font-size: 14px; }
.sources-groupe li { margin: 6px 0; }
