/* MYIG — Design System V2 · composants partagés (base, verre, boutons, cartes, badges, formulaires, états, modales).
   Les écrans (coque, tableau de bord, pages) sont dans myig.css, chargé après. Documentation : docs/myig-v2/10_DESIGN_SYSTEM.md */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--slate);
  background: #EEF0F3; min-height: 100vh;
}
.login-page { background: transparent; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--slate); }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
small, .muted { color: var(--slate-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[data-icon] { display: inline-flex; width: 1.15em; height: 1.15em; }
[data-icon] svg { width: 100%; height: 100%; }

/* ---------- Verre dépoli ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.55) 38%, rgba(255,255,255,.48) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 6px 20px rgba(53, 75, 96, .10);
}

/* ---------- Mise en page ---------- */
main { outline: none; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin-top: 6px; color: var(--slate-2); max-width: 680px; }
.section { margin-top: 40px; }
.section > h2 { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stack { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.spacer { flex: 1; }

/* ---------- Boutons ---------- */
.btn { --b: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 14.5px; color: var(--slate); cursor: pointer; text-decoration: none !important; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,248,251,.85));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--b); box-shadow: 0 1px 0 rgba(255,255,255,.95) inset, 0 2px 8px rgba(43,58,74,.08);
  transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.95) inset, 0 8px 22px rgba(53,75,96,.16); }
.btn:active { transform: translateY(0); }
.btn.primary { color: #fff; --b: transparent; background: var(--act-gradient); box-shadow: var(--act-shadow); text-shadow: 0 1px 2px rgba(60, 10, 90, .35); }
.btn.dark { color: #fff; background: linear-gradient(180deg, #3D4F63, #2B3A4A); --b: rgba(255,255,255,.2); }
.btn.danger { color: #A8433D; } /* 5,9:1 sur blanc (L1.4) */
.btn.small { height: var(--control-h-sm); padding: 0 14px; font-size: 13px; }
.btn.icon { width: 44px; padding: 0; justify-content: center; }
.btn.small.icon { width: var(--control-h-sm); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: var(--control-h-sm); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--slate); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--slate); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: #8A2BE2; color: #fff; border-color: #8A2BE2; box-shadow: 0 4px 12px rgba(138, 43, 226, .3); }

/* ---------- Cartes ---------- */
.card { background: var(--card); border-radius: 26px; box-shadow: 0 1px 2px rgba(17, 24, 39, .03); padding: 24px; border: 1px solid rgba(255,255,255,.9); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.recipe-card { display: block; color: inherit; text-decoration: none !important; }
.recipe-card .photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--powder); }
.recipe-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.recipe-card:hover .photo img { transform: scale(1.04); }
.recipe-card .fav { position: absolute; top: 12px; right: 12px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); width: 26px; height: 26px; }
.recipe-card .fav.on svg { fill: #fff; }
.recipe-card .meta { padding: 12px 2px 0; display: grid; gap: 2px; }
.recipe-card .meta .t { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.recipe-card .meta .s { color: var(--slate-2); font-size: 14px; }
.placeholder-photo { width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--brand-gradient); color: #fff; font-weight: 800; font-size: 64px; letter-spacing: -.04em; text-shadow: 0 2px 10px rgba(90, 30, 140, .25); }
.editorial { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lift);
  color: inherit; text-decoration: none !important; min-height: 360px; }
.editorial .photo { position: relative; min-height: 280px; background: var(--powder); }
.editorial .photo img, .editorial .photo .placeholder-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial .body { padding: 32px; display: grid; align-content: center; gap: 14px; }
.editorial .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--accent-ink); font-weight: 800; }
.editorial h3 { font-size: 28px; letter-spacing: -.01em; }
.editorial .why { font-size: 14px; color: var(--slate-2); }
.picks { display: grid; gap: 24px; }
.picks.two { grid-template-columns: 1fr 1fr; }
.picks.two .editorial { grid-template-columns: 1fr; grid-template-rows: 300px auto; }

/* ---------- Badges IG / CG / origine des données ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge.gi-bas, .badge.gl-basse { background: var(--gi-low-bg); color: #3D7259; }
.badge.gi-moyen, .badge.gl-modérée { background: var(--gi-mid-bg); color: #86601F; }
.badge.gi-élevé, .badge.gl-élevée { background: var(--gi-high-bg); color: #9B4640; }
.badge.none { background: var(--surface-3); color: var(--text-2); }
.prov { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.prov::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.prov.mesure { color: #3D7259; background: #EAF4EE; }
.prov.calcul { color: #3B4A5C; background: #EEF1F5; }
.prov.estimation { color: #86601F; background: #F8F0E0; }
/* L1.5 — résultat provisoire (correspondance automatique non validée) : texte 7,6:1 sur fond clair */
.prov-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap;
  color: #6B21A8; background: #F3E8FF; border: 1px dashed rgba(107, 33, 168, .45); }
.prov-flag::before { content: '~'; font-weight: 800; }
.ml-gi.prov { box-shadow: inset 0 0 0 2px rgba(107, 33, 168, .35); }
.prov.auto { color: #86601F; background: #F8F0E0; }

/* ---------- Fiche aliment ---------- */
.food-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.gauge-wrap { display: grid; gap: 8px; justify-items: center; text-align: center; }
.gauge-value { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.kv dt { color: var(--slate-2); }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.kv .sub { font-weight: 500; font-size: 12px; color: var(--slate-2); }
.portion { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.portion input[type=range] { flex: 1; min-width: 160px; accent-color: var(--accent-ink); }
.portion output { font-weight: 800; min-width: 64px; }
.source-box { font-size: 13px; color: var(--slate-2); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: grid; gap: 4px; }
.note { font-size: 13.5px; color: var(--slate-2); background: var(--surface-3); border-radius: var(--radius-sm); padding: 12px 14px; }
.note.warn { background: #FBF3E4; color: #6E4F18; }

/* ---------- Listes de résultats ---------- */
.result { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px;
  background: #fff; box-shadow: 0 1px 2px rgba(53,75,96,.05); color: inherit; text-decoration: none !important; border: 1px solid transparent; }
.result:hover { border-color: var(--glacier); box-shadow: var(--shadow); }
.result .n { font-weight: 700; }
.result .d { font-size: 13px; color: var(--slate-2); }
.result .r { display: flex; gap: 8px; align-items: center; }
.cat-title { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 12px; color: var(--accent-ink); margin: 28px 0 10px; }

/* ---------- Comparateur ---------- */
.compare-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; display: flex; gap: 10px; align-items: center;
  padding: 8px 8px 8px 20px; border-radius: 999px; max-width: calc(100% - 32px); }
.compare-bar .items { display: flex; gap: 6px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { font-size: 13px; color: var(--slate-2); font-weight: 700; vertical-align: bottom; }
.compare-table tbody th { font-weight: 600; }
.compare-table .best { color: #3D7259; font-weight: 800; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { font-family: var(--font); fill: var(--slate); }
.weights { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.weights label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.weights select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--slate); }
.verdict { display: grid; gap: 10px; }
.verdict li { margin-bottom: 6px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; }
.field small { font-size: 12.5px; }
input[type=text], input[type=password], input[type=number], input[type=search]:not(.cmd input), input[type=date], input[type=time], input[type=datetime-local], input[type=tel], input[type=email], input[type=url], textarea, select {
  font: inherit; color: var(--slate); background: #fff; border: 1px solid #D5E1EB; border-radius: 12px; padding: 11px 14px; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.cols-3 { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.ing-row { display: grid; grid-template-columns: 1.6fr .6fr 1.6fr auto; gap: 10px; align-items: start; }
.ing-row .link { font-size: 12.5px; color: var(--slate-2); padding: 4px 2px; }
.picker { position: relative; }
.picker-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lift);
  max-height: 280px; overflow: auto; padding: 6px; display: none; }
.picker-list.open { display: block; }
.picker-list button { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--slate); }
.picker-list button:hover, .picker-list button:focus { background: var(--white-blue); outline: none; }
.picker-list .s { font-size: 12px; color: var(--slate-2); }
.tags-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid #D5E1EB; border-radius: 12px; background: #fff; }
.tags-input input { border: 0 !important; outline: none !important; flex: 1; min-width: 120px; padding: 6px !important; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--powder); padding: 4px 6px 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--slate-2); font-size: 15px; line-height: 1; padding: 0 4px; }

/* ---------- Recette ---------- */
.recipe-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.recipe-hero .photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--powder); position: relative; }
.recipe-hero .photo img, .recipe-hero .photo .placeholder-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; color: var(--slate-2); font-size: 14px; }
.facts b { color: var(--slate); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--powder); display: grid; place-items: center; font-weight: 800; }
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ing-list .q { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--glacier); font-size: 20px; line-height: 1; }
.stars button.on { color: #B7791F; }

/* ---------- États ---------- */
.empty { text-align: center; padding: 56px 24px; display: grid; gap: 12px; justify-items: center; }
.empty .ill { width: 72px; aspect-ratio: 381 / 328; background: linear-gradient(120deg, #F0A83C, #8A2BE2); -webkit-mask: url(/brand/symbol-mask.png) center / contain no-repeat; mask: url(/brand/symbol-mask.png) center / contain no-repeat; font-size: 0; }
.empty p { max-width: 460px; color: var(--slate-2); }
.skeleton { background: linear-gradient(90deg, #EFEDF3 0%, #F8F7FB 50%, #EFEDF3 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
.error-box { background: var(--gi-high-bg); color: #7E3833; padding: 14px 18px; border-radius: 14px; }
#toasts { position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { background: var(--slate); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lift); font-weight: 600; font-size: 14px; animation: up .25s ease-out; }
.toast.err { background: #9B4640; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Fenêtres modales ---------- */
dialog { border: 0; padding: 0; border-radius: 24px; box-shadow: var(--shadow-lift); max-width: min(560px, calc(100% - 32px)); width: 100%; color: var(--slate); }
dialog::backdrop { background: rgba(53, 75, 96, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog .dlg { padding: 28px; display: grid; gap: 18px; }
dialog .dlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }



/* =====================================================================
   Design System V2 (phase 2) — composants ajoutés ou harmonisés
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: var(--r-pill); background: var(--surface); color: var(--violet-700);
  font-weight: 700; box-shadow: var(--shadow-2); text-decoration: none !important; transition: top var(--dur-2) var(--ease-out); }
.skip-link:focus { top: 12px; }

/* Boutons : une famille, quatre variantes (secondaire par défaut, principal, verre, danger) */
.btn { transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), color var(--dur-2); }
.btn.glass { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: var(--shadow-glass); }
.btn.danger:hover { background: var(--danger-bg); }
.btn.is-busy { cursor: progress; }
.btn.is-done { color: var(--success); }
.btn.primary.is-done { color: #fff; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } .btn:hover { transform: none; } }

/* États : vide · chargement · erreur */
.state { display: grid; justify-items: center; text-align: center; gap: var(--sp-3); padding: var(--sp-10) var(--sp-6); }
.state-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; font-weight: 800; background: var(--grad-soft); color: var(--violet-700); }
.state.error .state-ico { background: var(--danger-bg); color: var(--danger); }
.state p { color: var(--text-2); max-width: 46ch; }
.error-box { color: #7A1A12; background: var(--danger-bg); }

/* Chiffres clés (fiche aliment, synthèse, glycémie) — chiffres tabulaires : pas de saut de mise en page */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: var(--sp-3); }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); display: grid; gap: 2px; align-content: start; min-width: 0; }
.stat .k { font-size: var(--fs-xs); color: var(--text-2); font-weight: var(--fw-semibold); }
.stat .v { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); letter-spacing: var(--ls-tight); font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--text); }
.stat .v small { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-2); margin-left: 2px; }
.stat .s { font-size: var(--fs-xs); color: var(--text-2); }
.stat.brand { background: var(--violet-50); border-color: var(--violet-200); }

/* Sélecteur de portion : curseur + saisie + raccourcis, tactile (cibles ≥ 32 px) */
.portion2 { display: grid; gap: var(--sp-2); }
.portion2 .p-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.portion2 .p-label { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.portion2 .p-val { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-bold); }
.portion2 .p-val input { width: 84px; height: 40px; text-align: right; font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }
.portion2 input[type=range] { width: 100%; height: 32px; margin: 0; accent-color: var(--brand-violet); cursor: pointer; }
.portion2 .p-presets { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.portion2 .p-presets .chip { height: 32px; padding: 0 12px; font-variant-numeric: tabular-nums; }

/* Divulgation progressive (lecture détaillée) */
details.disclosure { border-top: 1px solid var(--border); }
details.disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  min-height: 52px; font-weight: var(--fw-bold); font-size: var(--fs-md); border-radius: var(--r-xs); }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 6px; transition: transform var(--dur-2) var(--ease-out); flex: none; }
details.disclosure[open] > summary::after { transform: rotate(-135deg); }
details.disclosure > summary .sum-hint { margin-left: auto; font-weight: var(--fw-medium); font-size: var(--fs-xs); color: var(--text-2); }
details.disclosure > .disc-body { padding: 0 0 var(--sp-5); display: grid; gap: var(--sp-4); }

/* Surtitre de section (hiérarchie du tableau de bord) */
.overline { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-2); }

/* Marque « meilleure valeur » : ne repose jamais sur la seule couleur */
.best-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 11px; font-weight: 800; margin-left: 6px; vertical-align: 1px; }

/* Alternative textuelle des graphiques */
.chart-text { font-size: var(--fs-sm); }
.chart-text table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-text th, .chart-text td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.chart-text td.n { text-align: right; }
.chart-text caption { text-align: left; color: var(--text-2); padding: 0 0 8px; }

/* Vignette sans photo (recettes) */
.placeholder-photo.v2 { background: var(--grad-soft); color: inherit; font-size: 0; }
.placeholder-photo.v2 .ph-emoji { font-size: 52px; line-height: 1; }

/* Barre de filtres (recettes) */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-main { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 0; }
.filter-main input[type=search] { flex: 1; min-width: 0; max-width: 340px; }
.filter-more { display: contents; }
.filter-more > summary { display: none; }
.filter-sel { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-sel select { width: auto; }
.list-count { margin: 0 0 14px; font-size: 13px; }
@media (max-width: 760px) {
  .filter-more { display: block; width: 100%; }
  .filter-more > summary { display: inline-flex; align-items: center; gap: 8px; height: var(--control-h-sm); padding: 0 14px; border-radius: var(--r-pill);
    border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; list-style: none; }
  .filter-more > summary::-webkit-details-marker { display: none; }
  .filter-more > summary .count { background: var(--brand-violet); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
  .filter-more[open] > summary { margin-bottom: 10px; }
  .filter-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-sel select { width: 100%; }
  .filter-main input[type=search] { max-width: none; }
}
@media (max-width: 760px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .recipe-grid .placeholder-photo.v2 .ph-emoji { font-size: 38px; }
  .recipe-grid .recipe-card .meta .t { font-size: 14px; }
}
@media (max-width: 340px) { .recipe-grid { grid-template-columns: minmax(0, 1fr); } }
[tabindex="-1"]:focus:not(:focus-visible), h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.btn.danger-solid { background: var(--danger); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(168, 67, 61, .25); }
.btn.danger-solid:hover { background: #8F3530; }
