/* Carnet de recettes — interface tactile (iPad), d'après la maquette « C · Magazine ». */
:root {
  --accent: #4f9a14;
  --tint: #e8f1e1;
  --glass: rgba(79, 154, 20, .55);
  --ink: #ffffff;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface2: #eef1ec;
  --text: #1b221e;
  --muted: #6a756f;
  --line: #e2e7e0;
  --red: #e5484d;
  --star: #f5a623;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 8px 24px rgba(20, 30, 25, .07);
  --rail-w: 236px;
  --pad: 24px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; touch-action: manipulation; overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
input, select { font: inherit; color: inherit; }
img { display: block; }
svg.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- structure ---------- */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main { flex: 1; position: relative; min-height: 0; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: 22px calc(var(--pad) + var(--sar)) calc(40px + var(--sab)) var(--pad); overscroll-behavior: contain; }
#detail-view { padding-top: 16px; padding-bottom: calc(24px + var(--sab)); }

/* ---------- rail ---------- */
.rail { width: var(--rail-w); flex: none; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; padding: calc(18px + var(--sat)) 14px calc(16px + var(--sab)) calc(14px + var(--sal));
  overflow-y: auto; z-index: 40; }
.brandmark { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; letter-spacing: -.3px; padding: 0 4px; }
.brandmark i { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-style: normal; font-size: 20px; }
.side-lab { font-size: 10.5px; letter-spacing: .9px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 0 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 46px; border-radius: 13px;
  font-size: 14.5px; font-weight: 600; color: var(--muted); text-align: left; transition: background .15s, color .15s; }
.nav button .i { font-size: 19px; }
.nav button > span:first-of-type { min-width: 0; line-height: 1.2; padding: 6px 0; }
.nav .n { white-space: nowrap; flex: none; }
.nav button:active { background: var(--surface2); }
.nav button.on { background: var(--tint); color: var(--accent); }
.nav .n { margin-left: auto; font-size: 11.5px; background: var(--surface2); padding: 2px 8px; border-radius: 999px;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.nav button.on .n { background: var(--accent); color: var(--ink); }
.browse { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; border-radius: 13px;
  background: var(--surface2); color: var(--muted); font-size: 14px; text-align: left; }
.browse .i { font-size: 18px; }
.browse small { margin-left: auto; font-size: 11px; }
.rail .sp { flex: 1; }
.offline { background: var(--surface2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.offline .lab { font-size: 10.5px; letter-spacing: .8px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.offline .val { font-size: 13px; font-weight: 600; line-height: 1.35; }
.offline .info { font-size: 12px; color: var(--muted); line-height: 1.35; }
.bar { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; transition: width .3s; }
.scrim { display: none; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600;
  color: var(--text); white-space: nowrap; transition: transform .1s, background .15s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn.on { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.btn.white { background: rgba(255, 255, 255, .95); color: #1b221e; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.btn.danger { color: var(--red); }
.btn.sm { min-height: 36px; padding: 0 13px; font-size: 12.5px; }
.btn .fill { fill: currentColor; }
.btn.white .heart-on { fill: var(--red); stroke: var(--red); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; }

/* ---------- bandeau ---------- */
.band { background: var(--accent); color: var(--ink); padding: calc(16px + var(--sat)) calc(var(--pad) + var(--sar)) 14px var(--pad);
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; flex: none; transition: background .25s; }
.band:after { content: ""; position: absolute; right: -60px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); pointer-events: none; }
.band:before { content: ""; position: absolute; right: 160px; bottom: -140px; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); pointer-events: none; }
.band-r1 { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.band .menu { display: none; color: var(--ink); background: rgba(255, 255, 255, .16); }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who .t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.who .t b { font-size: 19px; letter-spacing: -.3px; white-space: nowrap; }
.who .t span { font-size: 12.5px; opacity: .85; white-space: nowrap; }
.logo { height: var(--lh, 24px); width: auto; object-fit: contain; }
.logo-chip { background: #fff; border-radius: 12px; padding: 7px 11px; display: inline-flex; align-items: center; flex: none; --lh: 24px; }
.logo-chip.md { --lh: 30px; padding: 8px 13px; border-radius: 14px; box-shadow: var(--shadow); }
.search { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .97); color: #1b221e; height: 46px;
  border-radius: 14px; padding: 0 6px 0 14px; flex: 1; min-width: 240px; max-width: 560px; }
.search .i { color: #6a756f; font-size: 18px; }
.search input { flex: 1; border: 0; background: none; outline: 0; min-width: 0; font-size: 16px; color: #1b221e; }
.search input::placeholder { color: #6a756f; }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #6a756f; }
.band .sp { flex: 0 0 0; margin-left: auto; }
/* sélecteur des sites (maquette B) : logos blancs dans un rail sombre, site actif en couleur sur pastille blanche */
.swatch { display: flex; gap: 2px; background: rgba(0, 0, 0, .16); padding: 4px; border-radius: 999px;
  min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.swatch::-webkit-scrollbar { display: none; }
.swatch button { flex: none; background: transparent; border-radius: 999px; padding: 0 14px; height: 40px; display: flex; align-items: center;
  transition: background .15s, box-shadow .15s; --lh: 19px; }
.swatch button .logo.c { display: none; }
.swatch button .logo.w { opacity: .88; transition: opacity .15s; }
.swatch button:hover { background: rgba(255, 255, 255, .14); }
.swatch button:hover .logo.w { opacity: 1; }
.swatch button.on { background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.swatch button.on .logo.c { display: block; }
.swatch button.on .logo.w { display: none; }
.swatch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* hauteur par site : poids visuel égal (écriture fine de Recettes & Cabas agrandie, logo Marmiton large) */
.swatch button[data-source="recettescabas"] { --lh: 24px; }
.swatch button[data-source="quitoque"] { --lh: 16px; }
.swatch button[data-source="marmiton"] { --lh: 17px; }
.chips { display: flex; gap: 8px; overflow-x: auto; position: relative; z-index: 1; align-items: center; margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad) 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.me-mini { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .22); }
.me-mini .av { width: 36px; height: 36px; box-shadow: 0 0 0 2px #fff; }
.chips-wrap { position: relative; z-index: 1; }
/* flèches des thèmes (souris) : posées sur un fondu à la couleur du site, les pastilles s'estompent dessous */
.chip-fade { position: absolute; top: -6px; bottom: -6px; width: calc(var(--pad) + 86px); z-index: 2; display: flex;
  align-items: center; pointer-events: none; }
.chip-fade.l { left: calc(-1 * var(--pad)); padding-left: calc(var(--pad) - 4px);
  background: linear-gradient(to right, var(--accent) 0, var(--accent) 58%, transparent); }
.chip-fade.r { right: calc(-1 * var(--pad)); padding-right: calc(var(--pad) - 4px); justify-content: flex-end;
  background: linear-gradient(to left, var(--accent) 0, var(--accent) 58%, transparent); }
.chip-fade[hidden] { display: none; }
.chip-arr { pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #1b221e; display: grid;
  place-items: center; font-size: 18px; box-shadow: 0 2px 12px rgba(0, 0, 0, .28); flex: none; }
@media (hover: none), (pointer: coarse) { .chip-fade { display: none !important; } }
.chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 0 15px; height: 38px;
  background: rgba(255, 255, 255, .16); color: var(--ink); white-space: nowrap; font-weight: 600; font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, .22); flex: none; }
.chip span { opacity: .7; font-size: 12px; }
.chip.on { background: #fff; color: #1b221e; border-color: #fff; }
.chips .lbl { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; opacity: .75; font-weight: 700; flex: none; margin-right: 2px; }
.app.in-detail .chips-wrap { display: none; }
@media (min-width: 1280px) { :root { --rail-w: 288px; } }

/* ---------- en-tête de page ---------- */
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 14px 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph-l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ph-l > div { min-width: 0; }
.page-h h1 { font-size: 26px; letter-spacing: -.4px; line-height: 1.12; }
.count { font-size: 13px; color: var(--muted); margin-top: 3px; }
.ph-r { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--ink); display: grid;
  place-items: center; font-size: 26px; flex: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -8px 0 22px; }
.filters label { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 34px 0 15px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.filters label.on { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.filters label:after { content: "▾"; position: absolute; right: 14px; font-size: 11px; }
.filters select { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; }
.filters .note { font-size: 12px; color: var(--muted); flex: 1 1 260px; line-height: 1.35; }

/* ---------- cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
/* vignette : photo en haut (fondue vers le bas), titre et indications dessous ; la hauteur suit le texte */
.card { position: relative; display: flex; flex-direction: column; min-height: 300px; border-radius: 20px; overflow: hidden; background: #2b302d; color: #fff;
  box-shadow: var(--shadow); cursor: pointer; transform: translateZ(0); transition: transform .12s; }
.card:active { transform: scale(.98); }
.card > img.ph, .feature > img, .hero > img { position: absolute; object-fit: cover; opacity: 0; transition: opacity .3s; }
.card > img.ph { inset: 0 0 auto 0; width: 100%; height: auto; aspect-ratio: 1 / .95;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
img.ph.ok, .feature > img.ok, .hero > img.ok { opacity: 1; }
.badge { position: absolute; left: 10px; top: 10px; background: #fff; border-radius: 9px; padding: 4px 8px; display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18); --lh: 16px; z-index: 2; }
.fav { position: absolute; right: 4px; top: 4px; width: 46px; height: 46px; display: grid; place-items: center; z-index: 3; }
.fav i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #33403a; display: grid;
  place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); font-size: 17px; font-style: normal; transition: transform .15s; }
.fav:active i { transform: scale(.88); }
.fav.on svg { fill: var(--red); stroke: var(--red); }
.time { position: absolute; right: 10px; top: 54px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 4px 10px 4px 8px; border-radius: 999px; display: flex; align-items: center; gap: 5px; z-index: 2; }
/* texte sous la photo : commence aux 2/3 de la photo (marge en % = proportion de la largeur), fond sombre plein en bas */
.card-body { position: relative; z-index: 2; flex: 1; margin-top: 64%; padding: 34px 15px 13px;
  background: linear-gradient(to top, #1d221f 62%, rgba(29, 34, 31, .7) 82%, transparent);
  display: flex; flex-direction: column; gap: 4px; }
.card-body .meta { margin-top: auto; padding-top: 4px; }
.card-body h3 { font-size: 15px; line-height: 1.26; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; font-weight: 600; margin-top: 4px; min-height: 16px; }
.meta .kcal { color: rgba(255, 255, 255, .78); white-space: nowrap; }
.meta .diff, .meta .saved, .cpills span { white-space: nowrap; }
/* « Enregistrée » en entier : à droite, ou à la ligne suivante quand la difficulté et les calories prennent la place */
.meta .saved { flex: none; }
.meta .diff + .kcal:before { content: "·"; margin-right: 8px; color: rgba(255, 255, 255, .5); }
/* pastilles des vignettes : note (or) et coût par personne, mêmes couleurs que les cartes du menu IA */
/* en bas de la vignette, sous la description, juste au-dessus de la difficulté */
.card-body .cpills { margin-top: auto; padding-top: 6px; }
.card-body .cpills + .meta { margin-top: 2px; }
.cpills.in-feat { margin: 4px 0 0; }
.cpills { display: flex; gap: 4px; flex-wrap: wrap; }
.cpills span { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 999px; line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.cp-star { color: #8a5a00; background: #fff4dc; }
.cp-star i { font-style: normal; font-weight: 500; color: #a08a5c; }
.cp-cost { color: color-mix(in srgb, var(--accent) 70%, #0b1f0e); background: color-mix(in srgb, var(--accent) 16%, #fff); }
.diff { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .88); }
.diff:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #52b788; }
.diff.d2:before { background: #f4a261; }
.diff.d3:before { background: #e76f51; }
.saved { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #fff; }
.more { display: flex; justify-content: center; padding: 26px 0 10px; color: var(--muted); font-size: 13px; }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 18px; }
/* anneau à traîne dégradée, couleur du site */
.spinner { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto; position: relative;
  background: conic-gradient(from 90deg, transparent 0 8%, var(--accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: spin .9s cubic-bezier(.55, .15, .45, .85) infinite; }
.more .spinner { width: 26px; height: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 14px;
  animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } }

/* cartes fantômes pendant le chargement d'une liste (forme des vraies cartes, reflet qui glisse) */
.skel .sk { position: relative; overflow: hidden; background: var(--line);
  background: color-mix(in srgb, var(--accent) 10%, var(--line)); animation: fade-in .4s ease both; }
.grid.skel .sk { aspect-ratio: 5 / 7; border-radius: 20px; }
/* grande carte « À la une » : mêmes dimensions, cartouche de texte à gauche */
.skel .sk-feat { min-height: 290px; border-radius: 24px; margin-bottom: 24px; display: flex; align-items: flex-end; }
.skel .sk-cart { margin: 22px; padding: 22px; width: min(420px, calc(100% - 44px)); height: 150px; border-radius: 20px;
  background: rgba(255, 255, 255, .35); position: relative; }
.skel .sk-cart i { position: absolute; left: 22px; border-radius: 7px; background: rgba(255, 255, 255, .7); height: 12px; }
.skel .sk-cart i:nth-child(1) { top: 24px; width: 34%; height: 18px; border-radius: 9px; }
.skel .sk-cart i:nth-child(2) { top: 62px; width: 78%; height: 20px; }
.skel .sk-cart i:nth-child(3) { top: 100px; width: 52%; }
.skel .sk:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  animation: shimmer 1.5s ease-in-out infinite; }
.grid.skel .sk i { position: absolute; left: 15px; height: 11px; border-radius: 6px; background: rgba(255, 255, 255, .6); }
.grid.skel .sk i:nth-child(1) { bottom: 40px; width: 72%; height: 13px; }
.grid.skel .sk i:nth-child(2) { bottom: 20px; width: 46%; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .skel .sk:after { animation: none; }
}

/* ---------- « À la une » et bannière de la fiche ---------- */
.feature, .hero { position: relative; border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end;
  color: var(--ink); background: var(--accent); box-shadow: var(--shadow); }
.feature { min-height: 290px; margin-bottom: 24px; cursor: pointer; }
.feature > img, .hero > img { top: 0; right: 0; bottom: 0; width: 74%; height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
.cartouche { position: relative; z-index: 2; margin: 22px; padding: 18px 22px; border-radius: 20px; background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); display: flex; flex-direction: column;
  gap: 7px; max-width: min(440px, 46%); min-width: 260px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.eyebrow span { background: #fff; color: #1b221e; padding: 4px 10px; border-radius: 999px; }
.feature h2 { font-size: 25px; line-height: 1.12; letter-spacing: -.6px; }
.cartouche p { opacity: .88; font-size: 15px; line-height: 1.3; }
.fm { display: flex; gap: 16px; font-size: 13px; opacity: .92; align-items: center; margin-top: 2px; }
.fm span { display: inline-flex; align-items: center; gap: 6px; }
.feature .badge, .hero .badge { left: auto; right: 18px; top: 18px; --lh: 24px; padding: 7px 12px; border-radius: 12px; }
.hero { min-height: 360px; }
.hero h1 { font-size: 29px; letter-spacing: -.8px; line-height: 1.1; }
.hero .sub { font-size: 16.5px; opacity: .88; line-height: 1.3; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rating .stars { color: #ffd166; letter-spacing: 1px; font-size: 16px; }
.rating b { font-size: 15px; }
.hero-actions { position: absolute; left: 18px; top: 18px; right: 170px; z-index: 3; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .badge { --lh: 28px; padding: 9px 14px; border-radius: 14px; }
.hero .cartouche { margin-top: 90px; }
/* petite photo d'origine : fond flouté (le flou masque l'agrandissement) + photo nette encadrée à droite */
.hero.small > img.hero-bg { inset: 0; width: 100%; height: 100%; transform: scale(1.15);
  filter: blur(26px) saturate(1.25) brightness(.92); -webkit-mask-image: none; mask-image: none; }
.hero.small > img.hero-bg.ok { opacity: .85; }
.hero.small:before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--accent) 8%, transparent 62%); }
.hero.small > img.hero-pic { z-index: 2; top: 84px; right: 30px; left: auto; height: calc(100% - 110px); width: auto;
  max-width: 44%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35); outline: 4px solid rgba(255, 255, 255, .85); outline-offset: -1px;
  -webkit-mask-image: none; mask-image: none; }
.hero.small .cartouche { z-index: 3; }
@media (max-width: 600px) {          /* téléphone : bannière étroite, la photo nette la remplit sans être agrandie */
  .hero.small > img.hero-bg { display: none; }
  .hero.small:before { display: none; }
  .hero.small > img.hero-pic { inset: 0; height: 100%; width: 100%; max-width: none; border-radius: 0; outline: none;
    box-shadow: none; }
}

/* ---------- fiche ---------- */
.detail { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.c-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-top: -32px; position: relative;
  z-index: 4; padding: 0 18px; }
.panel { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.panel h2 { font-size: 19px; letter-spacing: -.2px; }
.c-body .panel { display: flex; flex-direction: column; gap: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--accent); }
.desc { font-size: 14.5px; line-height: 1.6; opacity: .9; white-space: pre-line; }
.allerg { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.allerg b { display: block; color: var(--text); font-size: 12px; margin-bottom: 2px; }
.nutri .hint { font-size: 12px; color: var(--muted); margin-top: -6px; }
.nutri .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.nutri .row:last-child { border: 0; }
.nutri .row.sub { padding-left: 14px; color: var(--muted); font-size: 12.5px; }
.nutri .row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; }
.stat { display: flex; gap: 13px; align-items: center; padding: 17px 20px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--tint); color: var(--accent); display: grid; place-items: center;
  font-size: 20px; flex: none; }
.stat small { display: block; font-size: 11.5px; color: var(--muted); }
.stat b { font-size: 15px; display: block; overflow-wrap: anywhere; }
.ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.serv { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.seg { display: flex; background: var(--surface2); border-radius: 13px; padding: 3px; }
.seg button { min-width: 42px; height: 38px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.seg button.on { background: var(--accent); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.grp { font-size: 11px; letter-spacing: .8px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 16px 0 10px; }
.grp:first-of-type { margin-top: 0; }
.ings { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.ing { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface2); min-height: 66px; }
.ing .e { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); flex: none; overflow: hidden; }
.ing .e img { width: 100%; height: 100%; object-fit: cover; }
.ing b { display: block; font-size: 14px; color: var(--accent); }
.ing span { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; }
.ing.noqty span { color: var(--text); font-size: 13px; }
.lines { padding-left: 18px; font-size: 14px; line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.step { background: var(--surface2); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.step .pic { aspect-ratio: 3 / 2; background: var(--line); }
.step .pic img { width: 100%; height: 100%; object-fit: cover; }
.step .tx { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 10px; }
.step .hd { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.step .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid;
  place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.step p { font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; }
.extras.one { grid-template-columns: 1fr; }
.extras ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14px; margin-top: 12px; }
.extras li { display: flex; gap: 10px; align-items: baseline; }
.extras li:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.review { margin-top: 12px; }
.review b { color: var(--accent); font-size: 13px; display: block; margin-bottom: 2px; }
.review p { font-size: 14px; line-height: 1.5; }
.dock { position: sticky; bottom: 12px; display: flex; justify-content: center; pointer-events: none; z-index: 6; margin-top: 6px; }
.dock .in { pointer-events: auto; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
  border-radius: 20px; padding: 8px; display: flex; gap: 8px; align-items: center; max-width: 100%; overflow-x: auto; }
.dock .btn { border: 0; background: var(--surface2); border-radius: 14px; }
.dock .btn.on { background: var(--tint); }
.dock .btn.on.fav-on svg { fill: var(--red); stroke: var(--red); }
.dock .logo-chip { --lh: 20px; padding: 6px 10px; border: 1px solid var(--line); }

/* ---------- liste des courses ---------- */
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.sec-h h2 { font-size: 19px; }
.shop-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 24px; }
.shop-r { display: flex; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; min-height: 122px; }
.shop-r .pic { width: 132px; flex: none; background: #2b302d; position: relative; cursor: pointer; }
.shop-r .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-r .bd { flex: 1; padding: 12px 12px 12px 15px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shop-r h3 { font-size: 14.5px; line-height: 1.28; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.shop-r small { font-size: 12px; color: var(--muted); }
.shop-r .row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.shop-r .seg button { min-width: 36px; height: 32px; font-size: 13px; }
.shop-r .rm { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--surface2); display: grid;
  place-items: center; color: var(--muted); flex: none; }
.cost-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); }
.cost-line span { flex: 1 1 300px; line-height: 1.4; }
.rayon { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.rayon-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rayon-h .dot { width: 12px; height: 12px; border-radius: 50%; }
.rayon-h h3 { font-size: 17px; }
.rayon-h small { font-size: 12px; font-weight: 700; color: var(--muted); }
.rayon-h .sub { margin-left: auto; font-weight: 700; font-size: 14px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; border-radius: 14px; background: var(--surface2);
  cursor: pointer; min-height: 64px; transition: background .15s; }
.item .ck { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--accent); background: var(--surface); flex: none;
  display: grid; place-items: center; color: var(--ink); font-size: 16px; }
.item.done .ck { background: var(--accent); }
.item .im { width: 56px; height: 56px; border-radius: 13px; background: var(--surface); flex: none; overflow: hidden; display: grid;
  place-items: center; font-weight: 700; font-size: 16px; }
.item .im img { width: 100%; height: 100%; object-fit: cover; }
.item .im.photo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.item .tx { flex: 1; min-width: 0; line-height: 1.3; }
.item .tx b { display: block; font-size: 13.5px; color: var(--accent); }
.item .tx span { display: block; font-size: 13.5px; }
.item .tx small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.done .tx b, .item.done .tx span { text-decoration: line-through; color: var(--muted); }
.item .price { align-self: stretch; min-width: 64px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  padding: 0 8px; font-size: 12.5px; font-weight: 700; border-radius: 10px; }
.item .price.none { color: var(--muted); }
.item .price em { font-style: normal; font-weight: 400; font-size: 10px; color: var(--accent); }

/* ---------- Leclerc Drive ---------- */
.drive-btn.on { background: #0b4ea2; border-color: #0b4ea2; color: #fff; }
.drive-bar { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; margin-bottom: 18px;
  background: #e8f0fb; border: 1px solid #c9daf3; }
.drive-bar > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; line-height: 1.4; }
.drive-bar b { display: inline-flex; align-items: center; gap: 8px; color: #0b4ea2; font-size: 15px; }
.drive-bar span { font-size: 13px; color: var(--text); }
.drive-bar .how { font-size: 12px; color: var(--muted); }
.drive-bar .how .i { vertical-align: -2px; }
.drive-bar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.drive-bar.setup { background: #fff6e5; border-color: #f3dcae; }
.drive-bar.setup b { color: #a05a00; }
.item.drive { padding-right: 8px; }
.item.drive .dacts { display: flex; gap: 6px; align-items: center; flex: none; }
.item.drive .btn.sm { min-height: 36px; padding: 0 11px; }
.item.drive .btn.primary { background: #0b4ea2; border-color: #0b4ea2; }
.item.drive .btn.icon { width: 36px; padding: 0; }
.item.drive .tx small .i { color: #0b4ea2; vertical-align: -2px; }
.item.drive.done .dacts { opacity: .45; }

/* ---------- statistiques ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.tile { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; align-items: center; gap: 14px; }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--accent); display: grid; place-items: center; font-size: 22px; }
.tile b { display: block; font-size: 24px; line-height: 1.1; }
.tile small { font-size: 12.5px; color: var(--muted); }
.st-info { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.month-h { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 10px; }
.month-h h3 { font-size: 17px; }
.month-h small { font-size: 12px; font-weight: 700; color: var(--muted); }
.st-row { display: flex; align-items: center; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 10px; min-height: 66px; }
.st-row .pic { width: 96px; align-self: stretch; background: #2b302d; flex: none; position: relative; }
.st-row .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-row .nm { flex: 1; padding: 10px 16px; min-width: 0; cursor: pointer; }
.st-row .nm b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row .nm small { font-size: 12px; color: var(--muted); }
.st-row .mt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 0 12px; white-space: nowrap; }
.st-row .mt .i { color: var(--accent); }
.st-row .rm { width: 38px; height: 38px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; color: var(--muted);
  margin: 0 12px; flex: none; }

/* ---------- feuilles (dialogues) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(10, 15, 12, .45); display: flex; align-items: center;
  justify-content: center; padding: 24px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--surface); border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); width: min(520px, 100%);
  max-height: calc(100% - 20px); display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet .sh { padding: 22px 24px 8px; }
.sheet h2 { font-size: 19px; }
.sheet .sb { padding: 8px 24px 4px; font-size: 14px; line-height: 1.55; color: var(--text); overflow-y: auto; white-space: pre-line; }
.sheet .sb .muted { color: var(--muted); }
.sheet .sf { padding: 16px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.sheet .sf .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.sheet input.txt { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); padding: 0 14px;
  font-size: 16px; outline: 0; margin-top: 12px; }
.sheet input.txt:focus { border-color: var(--accent); background: var(--surface); }
.sheet.wide { width: min(680px, 100%); }
/* « Exemples de demandes » (composition de menu) : cartes cliquables par catégorie, conseils en bas */
.sheet.mx-sheet { width: min(900px, 100%); }
.sheet .sb.mx-body { white-space: normal; padding-bottom: 10px; }
.mx-intro { color: var(--muted); font-size: 13.5px; margin: 0 0 6px; }
.mx-grp h3 { display: flex; align-items: center; gap: 9px; font-size: 14.5px; margin: 16px 0 8px; }
.mx-grp h3 span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #fff); }
.mx-grp h3 svg { width: 15px; height: 15px; }
.mx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.mx-card { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface2);
  border: 1px solid transparent; color: var(--text); font: inherit; cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
.mx-card:hover { background: color-mix(in srgb, var(--accent) 8%, #fff); border-color: color-mix(in srgb, var(--accent) 35%, #fff);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20, 30, 25, .08); }
.mx-card:active { transform: scale(.98); }
.mx-card b { font-size: 13.5px; color: color-mix(in srgb, var(--accent) 75%, #0b1f0e); }
.mx-card span { font-size: 13.5px; line-height: 1.4; }
.mx-card small { font-size: 11.5px; color: var(--muted); margin-top: auto; padding-top: 2px; }
.mx-tips { margin-top: 18px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); font-size: 13px; }
.mx-tips > b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.mx-tips > b svg { width: 15px; height: 15px; color: var(--accent); }
.mx-tips ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; }
.sheet.browse-sheet { width: min(620px, 100%); height: min(760px, 100%); }
.sheet .list { overflow-y: auto; padding: 4px 12px 16px; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet .list .hd { font-size: 10.5px; letter-spacing: .9px; font-weight: 700; color: var(--muted); padding: 14px 12px 6px; }
.sheet .list button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 12px;
  border-radius: 12px; font-size: 14.5px; text-align: left; gap: 12px; }
.sheet .list button:active { background: var(--surface2); }
.sheet .list button.on { background: var(--accent); color: var(--ink); font-weight: 600; }
.sheet .list button span { font-size: 12px; color: var(--muted); }
.sheet .list button.on span { color: inherit; opacity: .8; }
.sheet .x { position: absolute; }

/* ---------- profils ---------- */
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700;
  font-size: 15px; flex: none; }
.av.lg { width: 72px; height: 72px; font-size: 30px; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.av.add { background: var(--surface2); color: var(--muted); box-shadow: none; border: 2px dashed var(--line); font-weight: 400; }
.me-box { background: var(--surface2); border-radius: 14px; overflow: hidden; }
.me { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; text-align: left; min-height: 54px; }
.me-pw { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 12px 0 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--accent); text-align: left; }
.me-pw .i { font-size: 15px; }
.me > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.25; }
.me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { font-size: 11.5px; color: var(--muted); }
.me > .i { color: var(--muted); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 16px; }
.pick button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; border-radius: 16px;
  font-weight: 600; font-size: 14.5px; }
.pick button:active { background: var(--surface2); }
.pick button.on { background: var(--tint); color: var(--accent); }
.pick button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prows { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--surface2); white-space: normal; }
.prow b { flex: 1; font-size: 14.5px; min-width: 0; }
.prow small.pw { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.prow small.pw.on { color: var(--accent); }
.prow { flex-wrap: wrap; }
.pick button.off { opacity: .5; }
.pick button small.cur { color: var(--accent); font-weight: 700; }
.sheet-wrap ~ .toast, .toast { z-index: 95; }
.pick button small { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: -6px; }
.prow small { font-size: 11.5px; color: var(--muted); }
.sheet .muted { color: var(--muted); }
.sheet .form { white-space: normal; display: flex; flex-direction: column; gap: 12px; }
.sheet .form p { margin: 0; }
.sheet .form .small { font-size: 12.5px; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fld input.txt { margin-top: 0; }
.acct { display: flex; align-items: center; gap: 16px; }
.acct b { display: block; font-size: 18px; }
.acct .muted { font-size: 13px; }
.invite { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tint); margin-bottom: 12px;
  flex-wrap: wrap; white-space: normal; }
.invite > div { flex: 1 1 220px; line-height: 1.35; }
.invite b { display: block; font-size: 14px; }
.invite .muted { font-size: 12px; }
.invite code { font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--accent);
  background: var(--surface); padding: 6px 12px; border-radius: 10px; }
.prow small.presence { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.presence .pres { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.presence .devs { display: block; }
.presence .dev { display: block; padding-left: 14px; }
.presence .dot { width: 8px; height: 8px; border-radius: 50%; background: #c4ccc6; display: inline-block; flex: none; }
.presence .dot.on { background: #2fb344; box-shadow: 0 0 0 3px rgba(47, 179, 68, .2); animation: pulse 2s ease-in-out infinite; }
.presence b.on { color: #23963a; font-weight: 700; font-size: inherit; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(47, 179, 68, .08); } }
.prow b em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--tint); padding: 2px 8px;
  border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

/* ---------- toast ---------- */
/* carte claire et vitrée, comme les panneaux de l'application ; pastille ou anneau de la couleur du site */
.toast { position: fixed; left: 50%; bottom: calc(26px + var(--sab)); transform: translate(-50%, 16px) scale(.97);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  color: var(--text); border: 1px solid var(--line); padding: 10px 18px 10px 12px; border-radius: 999px; font-size: 14px;
  font-weight: 600; opacity: 0; pointer-events: none; z-index: 90;
  transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1.2);
  box-shadow: 0 2px 6px rgba(20, 30, 25, .08), 0 14px 36px rgba(20, 30, 25, .16);
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); }
.app.in-detail ~ .toast { bottom: calc(96px + var(--sab)); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.toast-i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff); }
.toast-i:empty:before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.toast-m { line-height: 1.3; }
.toast a { color: #fff; background: var(--accent); padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; }
/* petit anneau animé (notification « en cours », bouton occupé) */
.btn-spin { width: 16px; height: 16px; border-radius: 50%; flex: none; display: inline-block;
  background: conic-gradient(from 90deg, transparent 0 10%, var(--accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin .9s linear infinite; }
.btn.primary .btn-spin { background: conic-gradient(from 90deg, transparent 0 10%, #fff); margin-right: 8px; vertical-align: -3px; }

/* ---------- portrait / écrans étroits ---------- */
@media (max-width: 1360px) {
  .who .t { display: none; }
  .search { min-width: 200px; }
  .swatch button { padding: 0 10px; --lh: 17px; }
  .swatch button[data-source="recettescabas"] { --lh: 22px; }
  .swatch button[data-source="quitoque"], .swatch button[data-source="marmiton"] { --lh: 15px; }
}
@media (max-width: 1023px) {
  :root { --pad: 20px; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 300px; transform: translateX(-102%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  .app.drawer .rail { transform: none; }
  .app.drawer .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 15, 12, .35); z-index: 35; }
  .band .menu { display: grid; order: 0; }
  .me-mini { display: grid !important; order: 2; margin-left: auto; }
  .who { order: 1; }
  .swatch { order: 3; }
  .band .sp { display: none; }
  .band-r1 { gap: 12px; }
  .search { order: 5; max-width: none; flex-basis: 100%; }
  .who .t span { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {   /* iPad en portrait : logos des sites puis pastille, à droite */
  .swatch { order: 2; margin-left: auto; }
  .me-mini { order: 3; margin-left: 0; }
}
@media (max-width: 900px) {
  .c-body, .extras { grid-template-columns: 1fr; }
  .cartouche { max-width: 62%; }
  .hero { min-height: 400px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .cartouche { max-width: none; min-width: 0; margin: 14px; }
  .feature > img, .hero > img { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .who .t { display: none; }
  .hero-actions { right: 18px; }
  .hero .badge { display: none; }
  .shop-recipes, .items { grid-template-columns: 1fr; }
}

/* ---------- drives (Leclerc, Carrefour, Intermarché) ---------- */
.drive-picks { display: flex; gap: 8px; }
.drive-pick { width: 92px; height: 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 4px 8px; }
.drive-pick img { max-width: 76px; max-height: 40px; object-fit: contain; }
.drive-pick b { color: var(--dc); font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.drive-pick small { color: #e2001a; font-size: 11px; margin-top: 2px; }
.drive-pick.on { background: var(--tint); border: 2px solid var(--accent); }
.dtiles { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
@media (max-width: 1180px) { .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dtiles { grid-template-columns: minmax(0, 1fr); } }
.dtile { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.dtile .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--accent); display: grid; place-items: center; font-size: 22px; flex: none; }
.dtile > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dtile small { font-size: 12px; color: var(--muted); }
.dtile b { font-size: 22px; font-weight: 800; }
.dtile .nm { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtile .bar { display: block; height: 8px; border-radius: 4px; background: var(--surface2); margin-top: 6px; overflow: hidden; }
.dtile .bar em { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.dtile.main { background: var(--accent); color: var(--ink); }
.dtile.main .ic { background: rgba(255,255,255,.18); color: var(--ink); }
.dtile.main small { color: rgba(255,255,255,.8); font-weight: 700; }
.dtile.main b { font-size: 17px; }
.dtile.main b.big { font-size: 26px; }
.dtile.main .nm { color: rgba(255,255,255,.8); }
.dtile.main .sv { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.dtile.main .sv b { font-size: 20px; }
.drive-bar { background: var(--tint); border-color: transparent; }
.drive-bar b { color: var(--accent); }
.item.drive .btn.primary { background: var(--accent); border-color: var(--accent); }
.item.drive .tx small .i { color: var(--accent); }
.item .irm { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); color: var(--muted); display: grid;
  place-items: center; font-size: 13px; margin-left: 6px; }
.item .irm:hover, .item .irm:active { background: #f7d4d5; }
.removed { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; margin: 4px 0 22px; }
.removed-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.removed-h b { color: var(--muted); font-size: 15px; }
.removed-h small { color: var(--muted); font-size: 12px; flex: 1; }
.removed-l { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface2);
  color: var(--muted); font-weight: 700; font-size: 13px; }
.chip-back .i { color: var(--accent); }
.chip-back:hover { background: var(--tint); }

/* ---------- statistiques par semaine ---------- */
.week-h { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 18px; margin: 10px 0 8px; }
.week-h.open { background: var(--tint); }
.week-h .chev { width: 32px; height: 32px; border-radius: 50%; background: var(--surface2); color: var(--muted); display: grid; place-items: center; flex: none; }
.week-h.open .chev { background: var(--accent); color: var(--ink); }
.week-h h3 { font-size: 16px; }
.week-h em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 12px; background: var(--surface2); color: var(--muted); }
.week-h em.this { background: var(--accent); color: var(--ink); }
.week-h small { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.week-h.open small { color: var(--accent); }
/* mode drive : vignettes plus larges, boutons sous le nom quand la place manque */
.rayon:has(.item.drive) .items { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.item.drive { flex-wrap: wrap; row-gap: 8px; }
.item.drive .tx { flex: 1 1 140px; min-width: 120px; }
.item.drive .dacts { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .rayon:has(.item.drive) .items { grid-template-columns: 1fr; } }

/* ---------- remplissage du panier par l'ordinateur ---------- */
.code-box { background: var(--surface2); border-radius: 12px; padding: 10px 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.code-box small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.code-box b { font-size: 15px; word-break: break-all; }
.code-box b.sel { user-select: all; -webkit-user-select: all; font-family: ui-monospace, monospace; }
.bm-drag-wrap { margin: 10px 0 12px; }
.bm-drag { -webkit-user-drag: element; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--ink, #fff); font-weight: 700; text-decoration: none; cursor: grab; box-shadow: var(--shadow); }
.bm-drag svg { width: 18px; height: 18px; }

/* ---- comparatif des paniers ---- */
.sheet.wide { width: min(1160px, 100%); }
.sheet.cmp-sheet {
  --c-bg: #f4f6fb; --c-card: #ffffff; --c-ink: #0f172a; --c-mut: #64748b; --c-line: #e6eaf2; --c-soft: #f1f4f9;
  --c-win: #10b981; --c-win2: #059669; --c-win-soft: #ecfdf5; --c-win-ink: #047857;
  --c-warn: #b45309; --c-warn-soft: #fff7ed; --c-warn-line: #fde3c4;
  background: var(--c-bg); color: var(--c-ink);
}
.sheet.cmp-sheet .sh { padding-bottom: 4px; }
.sheet.cmp-sheet .sh h2 { letter-spacing: -.01em; }
.sheet.cmp-sheet .sf { background: var(--c-card); border-top: 1px solid var(--c-line); }
.sheet .sb.cmp { white-space: normal; padding: 10px 24px 16px; display: flex; flex-direction: column; gap: 16px; color: var(--c-ink); }
.sheet .sb.cmp > * { flex-shrink: 0; }
/* bandeau du gagnant */
.cmp-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #34d399 0%, var(--c-win) 38%, var(--c-win2) 72%, #065f46 100%);
  box-shadow: 0 14px 34px rgba(5, 150, 105, .28); }
.cmp-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .10); pointer-events: none; }
.cmp-hero.solo { background: linear-gradient(120deg, #475569, #1e293b); box-shadow: 0 10px 26px rgba(15, 23, 42, .18); }
.cmp-hero-l { display: flex; align-items: center; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.cmp-trophy { width: 54px; height: 54px; border-radius: 17px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(4px);
  display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cmp-trophy svg { width: 26px; height: 26px; }
.cmp-hero small { font-size: 11px; font-weight: 800; letter-spacing: .08em; opacity: .9; }
.cmp-hero h3 { font-size: 23px; margin: 2px 0; letter-spacing: -.01em; }
.cmp-hero p { margin: 0; font-size: 14px; opacity: .92; }
.cmp-hero-r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; position: relative; z-index: 1; }
.cmp-hero-r b { font-size: 28px; font-weight: 800; background: rgba(255, 255, 255, .95); color: var(--c-win-ink); padding: 4px 16px;
  border-radius: 14px; box-shadow: 0 6px 16px rgba(6, 95, 70, .25); }
.cmp-hero-r small { margin-top: 6px; font-weight: 600; letter-spacing: 0; }
.cmp-note { display: flex; gap: 8px; align-items: flex-start; color: var(--c-mut); font-size: 12.5px; margin: 0; line-height: 1.45; }
.cmp-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.cmp-note b { color: var(--c-ink); }
/* cartes des drives */
.cmp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 16px; }
.cmp-card { position: relative; background: var(--c-card); border-radius: 22px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--c-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06); overflow: hidden;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--dc) 7%, #fff) 0, #fff 110px); }
.cmp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 45%, #fff)); }
.cmp-card.best { border: 2px solid var(--c-win); padding: 17px 17px 13px; box-shadow: 0 12px 30px rgba(16, 185, 129, .18); }
.cmp-head { display: flex; align-items: center; justify-content: space-between; }
.cmp-logo { height: 36px; min-width: 76px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.cmp-logo img { height: 26px; } .cmp-logo b { color: var(--dc); font-size: 14px; font-weight: 800; }
.cmp-rank { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8); box-shadow: 0 2px 6px rgba(100, 116, 139, .3); }
.cmp-cards > .cmp-card:nth-child(1) .cmp-rank { background: linear-gradient(135deg, #fcd34d, #f59e0b); box-shadow: 0 2px 8px rgba(245, 158, 11, .4); }
.cmp-cards > .cmp-card:nth-child(3) .cmp-rank { background: linear-gradient(135deg, #f0b98a, #c2703d); box-shadow: 0 2px 8px rgba(194, 112, 61, .35); }
.cmp-name { font-weight: 800; font-size: 16.5px; letter-spacing: -.01em; display: flex; flex-direction: column; }
.cmp-name small { font-weight: 500; font-size: 12px; color: var(--c-mut); letter-spacing: 0; }
.cmp-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; background: var(--c-soft); border-radius: 16px; padding: 12px 14px; }
.cmp-card.best .cmp-price { background: var(--c-win-soft); }
.cmp-price small { display: block; font-size: 11px; font-weight: 700; color: var(--c-mut); }
.cmp-price b { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; color: var(--c-ink); }
.cmp-card.best .cmp-price b { color: var(--c-win-ink); }
.cmp-price .r { text-align: right; } .cmp-price .r span { font-size: 15px; font-weight: 700; white-space: nowrap; color: #334155; }
.cmp-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-stats span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  background: var(--c-soft); color: #1e293b; }
.cmp-stats span svg { width: 14px; height: 14px; color: var(--c-mut); }
.cmp-stats em { font-style: normal; font-weight: 500; color: var(--c-mut); font-size: 12px; }
.cmp-stats .g { background: var(--c-win-soft); color: var(--c-win-ink); } .cmp-stats .g svg { color: var(--c-win); }
.cmp-cover-t { display: flex; justify-content: space-between; font-size: 12.5px; }
.cmp-cover-t small { color: var(--c-mut); font-size: 12px; }
.cmp-cover i { display: block; height: 8px; border-radius: 999px; background: var(--c-soft); margin-top: 5px; overflow: hidden; }
.cmp-cover em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--dc) 55%, #fff), var(--dc)); }
.cmp-miss { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cmp-miss small { font-size: 12px; color: var(--c-mut); margin-right: 2px; }
.cmp-miss span { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--c-warn-soft); color: var(--c-warn);
  border: 1px solid var(--c-warn-line); }
.cmp-miss.cmp-nowhere span { background: var(--c-card); color: var(--c-mut); border: 1px solid var(--c-line); }
.cmp-warn { font-size: 12px; font-weight: 700; color: var(--c-warn); }
.cmp-when { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--c-mut); margin-top: auto; padding-top: 2px; }
.cmp-when svg { width: 13px; height: 13px; }
/* tableau */
.cmp-h { font-size: 16px; margin: 4px 0 -6px; letter-spacing: -.01em; }
.cmp-table-wrap { overflow: auto; border-radius: 20px; background: var(--c-card); border: 1px solid var(--c-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 640px; color: var(--c-ink); }
.cmp-table th, .cmp-table td { padding: 11px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { position: sticky; top: 0; z-index: 1; background: #fafbfd; font-size: 12px; color: var(--c-mut); font-weight: 700; }
.cmp-th { display: inline-flex; align-items: center; gap: 7px; color: var(--dc); font-weight: 800; font-size: 13.5px; }
.cmp-th::before { content: ""; width: 10px; height: 10px; border-radius: 4px; background: var(--dc); }
.cmp-table tbody th { position: sticky; left: 0; background: var(--c-card); font-weight: 700; min-width: 150px; white-space: nowrap; }
.cmp-table tbody th .cmp-ing { white-space: normal; max-width: 150px; }
.cmp-table tbody th .dot { display: inline-block; width: 9px; height: 9px; border-radius: 5px; margin-right: 8px; vertical-align: 2px; }
.cmp-table .cmp-ing { display: inline-flex; flex-direction: column; vertical-align: middle; }
.cmp-table .cmp-ing small { color: var(--c-mut); font-weight: 500; font-size: 11.5px; }
.cmp-table tbody tr:hover td, .cmp-table tbody tr:hover th { background: #f8fafc; }
.cmp-prod { display: flex; align-items: center; gap: 10px; }
.cmp-prod .pic { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); display: grid; place-items: center; overflow: hidden; flex: none; }
.cmp-prod .pic img { max-width: 88%; max-height: 88%; object-fit: contain; }
.cmp-prod > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmp-prod .nm { line-height: 1.25; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-prod .pr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cmp-prod .pr b { font-size: 14.5px; }
.cmp-prod .tag { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #34d399, var(--c-win2)); }
.cmp-prod .dif { font-style: normal; font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.cmp-table td.win, .cmp-table tbody tr:hover td.win { background: var(--c-win-soft); }
.cmp-table td.win .pr b { color: var(--c-win-ink); }
.cmp-table td.na span { display: inline-block; font-size: 12px; color: #94a3b8; background: var(--c-soft); padding: 4px 10px; border-radius: 999px; }
.cmp-foot { color: var(--c-mut); font-size: 12px; margin: 0; }
@media (max-width: 640px) {
  .sheet .sb.cmp { padding: 8px 14px 14px; }
  .cmp-hero { padding: 16px 18px; } .cmp-hero h3 { font-size: 19px; } .cmp-hero-r { align-items: flex-start; text-align: left; }
  .cmp-hero-r b { font-size: 22px; }
}

/* nombre de personnes (liste de courses) : − 2 pers. + */
.serv-step { display: inline-flex; align-items: center; gap: 4px; background: var(--surface2); border-radius: 13px; padding: 3px; }
.serv-step button { width: 34px; height: 32px; border-radius: 10px; font-size: 19px; font-weight: 800; color: var(--accent); background: var(--surface); line-height: 1; }
.serv-step button:disabled { color: var(--muted); opacity: .45; background: transparent; }
.serv-step b { min-width: 64px; text-align: center; font-size: 14px; }

/* favoris « Remplir avec le carnet » : liste avec Supprimer */
.sheet .sb.bm-sheet { white-space: normal; }
.bm-sheet h3 { font-size: 15px; margin: 14px 0 6px; }
.bm-sheet .muted { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.bm-sheet .warn { color: #c2410c; font-weight: 600; margin-top: 8px; }
.bm-list { display: flex; flex-direction: column; gap: 8px; }
.bm-row { display: flex; align-items: center; gap: 12px; background: var(--surface2); border-radius: 14px; padding: 10px 12px; }
.bm-row .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.bm-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bm-row small { color: var(--muted); font-size: 12px; }
.bm-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- statistiques : évolution des prix ---- */
.pt-wrap { --p-ink: #0f172a; --p-mut: #64748b; --p-line: #e6eaf2; --p-soft: #f1f4f9; --p-card: #fff;
  --p-win: #10b981; --p-win2: #059669; --p-win-soft: #ecfdf5; --p-win-ink: #047857; color: var(--p-ink); }
.pt-sec { margin-top: 34px; align-items: flex-end; }
.pt-sec h2 { letter-spacing: -.01em; }
.pt-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pt-card, .pt-kpi, .pt-drive, .pt-empty { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05); }
.pt-card { padding: 18px 20px; margin-bottom: 16px; }
.pt-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-card-h h3 { font-size: 16px; letter-spacing: -.01em; }
.pt-card-h small { color: var(--p-mut); font-size: 12.5px; }
/* état vide */
.pt-empty { display: flex; gap: 16px; align-items: center; padding: 22px; }
.pt-empty .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--p-soft); color: var(--p-mut); display: grid; place-items: center; flex: none; }
.pt-empty p { margin: 4px 0 0; color: var(--p-mut); font-size: 13.5px; }
/* indicateurs */
.pt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.pt-kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.pt-kpi .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, var(--accent) 6%, #fff)); color: var(--accent); }
.pt-kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pt-kpi small { color: var(--p-mut); font-size: 12.5px; }
/* point de départ */
.pt-start { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  background-image: radial-gradient(120% 140% at 0% 0%, #f0fdf4 0%, #fff 55%); }
.pt-start-l { display: flex; gap: 14px; align-items: center; flex: 1 1 320px; min-width: 0; }
.pt-flag { width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #34d399, var(--p-win2)); box-shadow: 0 8px 18px rgba(5, 150, 105, .25); }
.pt-start-l small { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--p-win-ink); }
.pt-start-l h3 { font-size: 18px; margin: 2px 0; letter-spacing: -.01em; }
.pt-start-l p { margin: 0; color: var(--p-mut); font-size: 13px; }
.pt-bars { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.pt-bars > small { color: var(--p-mut); font-size: 12px; font-weight: 600; }
.pt-bar { display: grid; grid-template-columns: 110px 1fr auto auto; align-items: center; gap: 10px; font-size: 13px; }
.pt-bar .nm { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.pt-bar .nm i { width: 10px; height: 10px; border-radius: 3px; }
.pt-bar .tr { height: 10px; border-radius: 999px; background: var(--p-soft); overflow: hidden; }
.pt-bar .tr em { display: block; height: 100%; border-radius: 999px; }
.pt-bar b { font-size: 14px; white-space: nowrap; }
.pt-bar.best b { color: var(--p-win-ink); }
.pt-best { font-size: 10.5px; font-weight: 800; color: #fff; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, #34d399, var(--p-win2)); }
/* graphique */
.pt-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--p-ink); }
.pt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pt-legend i, .pt-th i, .pt-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pt-chart { position: relative; width: 100%; }
.pt-chart svg { display: block; overflow: visible; }
.pt-chart .grid { stroke: #edf0f5; stroke-width: 1; }
.pt-chart .base { stroke: #b8c2cf; stroke-width: 1; }
.pt-chart .tick { fill: var(--p-mut); font-size: 11px; }
.pt-chart .pt-cross { stroke: #94a3b8; stroke-width: 1; }
.pt-tip { position: absolute; z-index: 2; pointer-events: none; background: #0f172a; color: #fff; border-radius: 12px; padding: 8px 12px;
  font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 8px 22px rgba(15, 23, 42, .25); min-width: 140px; }
.pt-tip b { font-size: 12px; opacity: .85; }
.pt-tip span { display: flex; align-items: center; gap: 7px; }
.pt-tip em { font-style: normal; font-weight: 800; margin-left: auto; }
/* cartes des drives */
.pt-drives { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.pt-drive { position: relative; overflow: hidden; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--dc) 7%, #fff) 0, #fff 90px); }
.pt-drive::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 45%, #fff)); }
.pt-drive.best { border: 2px solid var(--p-win); padding: 17px 17px 13px; box-shadow: 0 12px 30px rgba(16, 185, 129, .16); }
.pt-drive-h { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.pt-drive-h .pt-best { margin-left: auto; }
.pt-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--dc); }
.pt-drive-m { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; background: var(--p-soft); border-radius: 14px; padding: 10px 12px; }
.pt-drive.best .pt-drive-m { background: var(--p-win-soft); }
.pt-drive-m small { display: block; font-size: 11px; font-weight: 700; color: var(--p-mut); margin-bottom: 3px; }
.pt-drive-m { flex-wrap: wrap; }
.pt-drive-m small { white-space: nowrap; }
.pt-drive-m .r { text-align: right; margin-left: auto; } .pt-drive-m .r b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.pt-drive.best .pt-drive-m .r b { color: var(--p-win-ink); }
.pt-badge { display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--p-mut); border: 1px solid var(--p-line); }
.pt-big .pt-trend { font-size: 22px; }
.pt-hint { color: var(--p-mut); font-size: 12px; }
.pt-drive-f { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--p-mut); border-top: 1px solid var(--p-line); padding-top: 9px; margin-top: auto; }
.pt-drive-f span { display: inline-flex; align-items: center; gap: 5px; }
.pt-drive-f svg { width: 13px; height: 13px; }
.pt-trend { font-weight: 800; font-size: 12px; white-space: nowrap; }
.pt-trend.up { color: #b91c1c; } .pt-trend.down { color: #047857; } .pt-trend.flat { color: var(--p-mut); font-weight: 600; }
/* tableau */
.pt-table-wrap { overflow-x: auto; margin: 0 -6px; }
.pt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 620px; }
.pt-table th, .pt-table td { padding: 11px 12px; border-bottom: 1px solid var(--p-line); text-align: left; vertical-align: middle; }
.pt-table thead th { font-size: 12px; color: var(--p-mut); font-weight: 700; background: #fafbfd; }
.pt-table thead th:first-child { border-radius: 12px 0 0 12px; } .pt-table thead th:last-child { border-radius: 0 12px 12px 0; }
.pt-th { display: inline-flex; align-items: center; gap: 7px; color: var(--p-ink); font-weight: 800; font-size: 13px; }
.pt-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--p-card); min-width: 140px; }
.pt-ing { display: block; font-weight: 700; }
.pt-when { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--p-mut); background: var(--p-soft); padding: 1px 8px; border-radius: 999px; }
.pt-table tbody tr:last-child > * { border-bottom: 0; }
.pt-table tbody tr:hover > * { background: #f8fafc; }
.pt-table td.win, .pt-table tbody tr:hover td.win { background: var(--tint); }
.pt-cell { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-cell-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pt-price b { font-size: 15px; letter-spacing: -.01em; }
.pt-table td.win .pt-price b { color: var(--accent); }
.pt-tag { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; padding: 2px 8px; border-radius: 999px; background: var(--accent); }
.pt-cell small { color: var(--p-mut); font-size: 11.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-spark { flex: none; }
.pt-table td.na span { display: inline-block; font-size: 11.5px; color: #94a3b8; background: var(--p-soft); padding: 3px 10px; border-radius: 999px; }
.pt-more { margin-top: 12px; }
@media (max-width: 640px) { .pt-bar { grid-template-columns: 90px 1fr auto; } .pt-bar .pt-best { display: none; } }

/* gestion des relevés de prix */
.sheet .sb.obs-sb { white-space: normal; display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; }
.obs-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 4px 0 8px; }
.obs-bar select { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--text); }
.obs-count { color: var(--muted); font-size: 13px; margin-left: auto; }
.obs-count b { color: var(--text); }
.obs-group { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.obs-gh { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--dc) 7%, #fff); cursor: pointer; flex-wrap: wrap; }
.obs-gh i { width: 10px; height: 10px; border-radius: 3px; background: var(--dc); }
.obs-gh span { color: var(--muted); font-size: 13px; }
.obs-gh small { margin-left: auto; color: var(--muted); font-size: 12px; }
.obs-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.obs-row:hover { background: #f8fafc; }
.obs-row.on { background: #fef2f2; }
.obs-row .nm { display: flex; flex-direction: column; min-width: 0; }
.obs-row .nm small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obs-row .tm { color: var(--muted); font-size: 12px; }
.obs-row .pr { font-size: 14px; white-space: nowrap; }
.obs-gh input, .obs-row input { width: 18px; height: 18px; accent-color: #dc2626; }
.btn.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn.danger:disabled { opacity: .45; cursor: default; }
.pt-ing[data-obs-ing] { cursor: pointer; }
.pt-ing[data-obs-ing]:hover { color: var(--accent); text-decoration: underline; }
.pt-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* carte du drive le moins cher : mise en avant */
.pt-drive.best { border: 0; padding: 0 0 13px; transform: translateY(-4px); background: #fff;
  box-shadow: 0 0 0 2px var(--p-win), 0 18px 40px rgba(5, 150, 105, .22), 0 2px 6px rgba(5, 150, 105, .12); }
.pt-drive.best::before { display: none; }
.pt-drive.best > *:not(.pt-crown) { margin-left: 17px; margin-right: 17px; }
.pt-crown { display: flex; align-items: center; gap: 10px; padding: 14px 17px; color: #fff; margin-bottom: 2px;
  background: radial-gradient(130% 180% at 0% 0%, #34d399 0%, var(--p-win) 45%, var(--p-win2) 100%); }
.pt-crown b { font-size: 16px; letter-spacing: -.01em; }
.pt-crown-ic { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.pt-crown-ic svg { width: 17px; height: 17px; }
.pt-crown-tag { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 11px; border-radius: 999px;
  background: #fff; color: var(--p-win-ink); white-space: nowrap; box-shadow: 0 3px 10px rgba(6, 95, 70, .25); }
.pt-drive.best .pt-drive-m { background: var(--p-win-soft); box-shadow: inset 0 0 0 1px #c9f2df; }
.pt-drive.best .pt-drive-m .r b { font-size: 26px; color: var(--p-win-ink); }
.pt-lead { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p-win-ink); background: #f0fdf7; border: 1px dashed #a7e9c9;
  border-radius: 12px; padding: 7px 11px; }
.pt-lead svg { width: 15px; height: 15px; flex: none; }
.pt-lead b { font-weight: 800; }

@media (max-width: 1023px) {          /* iPad, téléphone : rail plus serré, il défile de côté si la place manque */
  .swatch button { padding: 0 9px; height: 36px; --lh: 15px; }
  .swatch button[data-source="recettescabas"] { --lh: 20px; }
  .swatch button[data-source="quitoque"], .swatch button[data-source="marmiton"] { --lh: 13px; }
}

/* ---- sites de la recherche ---- */
.search { position: relative; }
.q-sites { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 9px; border-radius: 10px;
  background: #f1f4f0; color: #3d4741; font-size: 13px; font-weight: 700; white-space: nowrap; max-width: 46%; }
.q-sites span { overflow: hidden; text-overflow: ellipsis; }
.q-sites svg { width: 15px; height: 15px; flex: none; }
.q-sites:hover { background: #e7ece6; }
.q-sites.ext { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); }
#sites-pop { position: absolute; z-index: 90; width: min(340px, calc(100vw - 24px)); background: var(--surface); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(10, 20, 14, .28); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sp-h { display: flex; flex-direction: column; } .sp-h small { color: var(--muted); font-size: 12px; }
.sp-list { display: flex; flex-direction: column; gap: 4px; }
.sp-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.sp-row:hover { background: var(--surface2); }
.sp-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.sp-logo { width: 92px; height: 30px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; flex: none; padding: 0 7px; }
.sp-logo .logo { height: auto; max-height: 17px; max-width: 100%; }
.sp-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sp-name b { font-size: 14px; } .sp-name small, .sp-name em { font-size: 11.5px; color: var(--muted); font-style: normal; }
.sp-row.cur .sp-name em { color: var(--accent); font-weight: 700; }
.sp-f { display: flex; gap: 8px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 640px) { .q-sites span { display: none; } .q-sites { padding: 0 8px; } }
/* secours : version blanche d'un logo absente -> logo en couleur atténué sur une petite pastille */
.swatch button.nowhite:not(.on) .logo.w { display: none; }
.swatch button.nowhite:not(.on) .logo.c { display: block; opacity: .8; background: rgba(255, 255, 255, .85); border-radius: 6px; padding: 2px 4px; }

/* ---- comparatif : cartes des drives (v3) ---- */
.cmp-cards { align-items: stretch; }
.cmp-card { padding: 0; gap: 0; background-image: none; border: 1px solid var(--c-line); }
.cmp-card::before { height: 4px; }
.cmp-card.best { border: 0; transform: translateY(-4px); padding: 0;
  box-shadow: 0 0 0 2px var(--c-win), 0 20px 44px rgba(5, 150, 105, .22), 0 2px 6px rgba(5, 150, 105, .12); }
.cmp-card.best::before { display: none; }
.cmp-head, .cmp-crown { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; }
.cmp-head { background: linear-gradient(180deg, color-mix(in srgb, var(--dc) 8%, #fff), #fff); }
.cmp-head-t, .cmp-crown-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.cmp-head-t b, .cmp-crown-t b { font-size: 16px; letter-spacing: -.01em; }
.cmp-head-t small, .cmp-crown-t small { font-size: 12px; color: var(--c-mut); margin-top: 2px; }
.cmp-crown { color: #fff; background: radial-gradient(130% 200% at 0% 0%, #34d399 0%, var(--c-win) 45%, var(--c-win2) 100%); }
.cmp-crown .cmp-crown-t small { color: rgba(255, 255, 255, .85); }
.cmp-crown .cmp-logo { border-color: transparent; box-shadow: 0 4px 12px rgba(6, 95, 70, .25); }
.cmp-crown-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11px; font-weight: 800; padding: 5px 11px 5px 8px;
  border-radius: 999px; background: #fff; color: var(--c-win-ink); box-shadow: 0 3px 10px rgba(6, 95, 70, .25); }
.cmp-crown-tag svg { width: 13px; height: 13px; }
.cmp-rank { width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none; }
.cmp-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 18px 16px; flex: 1; }
.cmp-price { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--c-soft); }
.cmp-card.best .cmp-price { background: var(--c-win-soft); box-shadow: inset 0 0 0 1px #c9f2df; }
.cmp-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cmp-price-row b { font-size: 32px; }
.cmp-delta { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #fff; color: #b45309; border: 1px solid var(--c-warn-line); white-space: nowrap; }
.cmp-delta.win { color: var(--c-win-ink); border-color: #b9ecd4; }
.cmp-gauge { display: block; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--c-mut) 14%, #fff); overflow: hidden; margin-top: 4px; }
.cmp-gauge em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--dc) 50%, #fff), var(--dc)); }
.cmp-card.best .cmp-gauge em { background: linear-gradient(90deg, #6ee7b7, var(--c-win2)); }
.cmp-total { font-size: 12px; color: var(--c-mut); margin-top: 2px; } .cmp-total b { color: #334155; }
.cmp-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.cmp-mini > div { border: 1px solid var(--c-line); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; background: #fff; }
.cmp-mini small { font-size: 11px; font-weight: 700; color: var(--c-mut); }
.cmp-mini b { font-size: 16px; letter-spacing: -.01em; }
.cmp-mini em { font-style: normal; font-size: 11px; color: var(--c-mut); }
.cmp-mini .g { background: var(--c-win-soft); border-color: #c9f2df; } .cmp-mini .g b { color: var(--c-win-ink); }
.cmp-dots { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; margin-top: 6px; }
.cmp-dots i { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-mut) 16%, #fff); }
.cmp-dots i.on { background: var(--dc); }
.cmp-card.best .cmp-dots i.on { background: var(--c-win); }
.cmp-miss small { display: inline-flex; align-items: center; gap: 4px; }
.cmp-miss small svg { width: 12px; height: 12px; }
.cmp-full { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--c-win-ink); }
.cmp-full svg { width: 15px; height: 15px; }
.cmp-when { border-top: 1px solid var(--c-line); padding-top: 10px; }
.cmp-price .cmp-total b { font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: #334155; }
.cmp-head, .cmp-crown { flex-wrap: wrap; row-gap: 10px; }
.cmp-head-t, .cmp-crown-t { flex-basis: 100%; order: 3; }
.cmp-head .cmp-rank, .cmp-crown .cmp-crown-tag { margin-left: auto; }

/* ---- Compléter mes courses ---- */
body.cour-open { overflow: hidden; }
#cour { position: fixed; inset: 0; z-index: 70; background: rgba(12, 18, 14, .5); display: grid; place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
#cour[hidden] { display: none; }
.co-w { width: min(1180px, 100%); height: min(900px, 100%); background: #f4f6f2; border-radius: 26px; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.co-h { display: flex; align-items: center; gap: 14px; padding: 18px 22px 12px; background: #fff; }
.co-h h2 { font-size: 21px; letter-spacing: -.01em; } .co-h small { color: var(--muted); font-size: 13px; }
.co-h .icon-btn { margin-left: auto; }
.co-ic { width: 48px; height: 48px; border-radius: 15px; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex: none; }
.co-bar { background: #fff; padding: 0 22px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.co-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: #f1f4ef; color: var(--muted); }
.co-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--text); }
.co-fams { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.co-fams::-webkit-scrollbar { display: none; }
.co-fam { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--fc) 9%, #fff); border: 1px solid color-mix(in srgb, var(--fc) 22%, #fff); font-size: 13px; font-weight: 700; color: #2c352f; white-space: nowrap; }
.co-fam span { font-size: 17px; }
.co-fam em { font-style: normal; min-width: 20px; height: 20px; border-radius: 999px; background: var(--fc); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.co-fam em:empty { display: none; }
.co-b { flex: 1; overflow-y: auto; padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 18px; -webkit-overflow-scrolling: touch; }
.co-sec { background: #fff; border-radius: 22px; padding: 16px 18px 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05); }
.co-sec[hidden] { display: none; }
.co-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.co-sec-ic { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--fc) 14%, #fff); display: grid; place-items: center; font-size: 21px; }
.co-sec-h h3 { font-size: 17px; letter-spacing: -.01em; }
.co-sec-h em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: #f1f4ef; padding: 2px 9px; border-radius: 999px; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.co-morebtn { margin: 12px auto 0; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  color: var(--fc, var(--text)); font-weight: 700; font-size: 13.5px; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.co-morebtn:hover { background: color-mix(in srgb, var(--fc) 8%, #fff); }
.co-morebtn svg { width: 16px; height: 16px; transition: transform .15s; }
.co-morebtn.open svg { transform: rotate(180deg); }
.co-morebtn[hidden] { display: none; }
.co-p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 8px 10px; border-radius: 18px;
  background: #fafbf9; border: 2px solid transparent; cursor: pointer; text-align: center; transition: transform .12s, border-color .12s, background .12s; user-select: none; }
.co-p[hidden] { display: none; }
.co-p:hover { background: color-mix(in srgb, var(--fc) 6%, #fff); }
.co-p:active { transform: scale(.97); }
.co-p:focus-visible { outline: 3px solid var(--fc); outline-offset: 2px; }
.co-em { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--fc) 16%, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc) 18%, #fff); }
.co-p b { font-size: 13px; line-height: 1.25; font-weight: 700; color: #2c352f; min-height: 32px; display: flex; align-items: center; }
.co-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--fc); color: #fff;
  display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .15s; }
.co-check svg { width: 13px; height: 13px; }
.co-step { display: none; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc) 30%, #fff); }
.co-step button { width: 28px; height: 28px; border-radius: 50%; font-size: 17px; font-weight: 800; color: var(--fc); background: color-mix(in srgb, var(--fc) 10%, #fff); line-height: 1; }
.co-step i { font-style: normal; min-width: 22px; font-weight: 800; font-size: 14px; }
.co-p.on { background: color-mix(in srgb, var(--fc) 9%, #fff); border-color: var(--fc); }
.co-p.on .co-check { opacity: 1; transform: none; }
.co-p.on .co-step { display: inline-flex; }
.co-other { background: #fff; border-radius: 22px; padding: 16px 18px; border: 2px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.co-other b { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.co-other-r { display: flex; gap: 8px; flex-wrap: wrap; }
.co-other-r input, .co-other-r select { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--text); }
.co-other-r input { flex: 1 1 220px; min-width: 0; }
.co-f { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: #fff; border-top: 1px solid var(--line); flex-wrap: wrap; }
.co-sum { margin-right: auto; color: var(--muted); font-size: 14px; } .co-sum b { color: var(--text); }
.co-f .btn:disabled { opacity: .5; }
@media (max-width: 640px) {
  .co-w { border-radius: 20px; } .co-h, .co-bar, .co-b, .co-f { padding-left: 14px; padding-right: 14px; }
  .co-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .co-em { width: 54px; height: 54px; font-size: 30px; }
}
/* liste de courses : bouton et produits ajoutés */
.btn.co-open { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, #fff); font-weight: 800; }
.item .im.emo { font-size: 24px; background: #fff !important; box-shadow: inset 0 0 0 1px var(--line); }
.item .tx .xtag { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--accent); background: var(--tint); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }

.co-step i { min-width: 56px; white-space: nowrap; font-size: 13px; }
.co-unit { display: none; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--fc); padding: 2px 9px 2px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--fc) 10%, #fff); }
.co-unit svg { width: 12px; height: 12px; transform: rotate(-90deg); }
.co-p.on .co-unit { display: inline-flex; }
.co-step { max-width: 100%; }
.co-step button { width: 26px; height: 26px; flex: none; }
.co-step i { min-width: 0; padding: 0 3px; font-size: 12.5px; }
/* illustrations 3D des produits du quotidien */
img.emo3d { display: block; object-fit: contain; }
.co-em img.emo3d { width: 72%; height: 72%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .12)); }
.co-fam span img.emo3d { width: 20px; height: 20px; }
.co-sec-ic img.emo3d { width: 26px; height: 26px; }
.item .im.emo img.emo3d { width: 74%; height: 74%; margin: auto; }
.co-del { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #b91c1c; box-shadow: 0 0 0 1px #f3c7c7; opacity: .85; z-index: 1; }
.co-del svg { width: 12px; height: 12px; }
.co-del:hover { opacity: 1; background: #fef2f2; }
/* photos réalistes des produits du quotidien */
.co-em.photo { background: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px color-mix(in srgb, var(--fc) 25%, #fff), 0 4px 10px rgba(0, 0, 0, .10); overflow: hidden; }
.co-em.photo img.ph { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.item .im.photo { overflow: hidden; } .item .im.photo img { width: 100%; height: 100%; object-fit: cover; }
.co-credits { font-size: 11.5px; color: var(--muted); margin-right: 6px; }
.co-step { gap: 2px; } .co-step button { width: 24px; height: 24px; font-size: 15px; } .co-step i { padding: 0 2px; font-size: 12px; letter-spacing: -.2px; overflow: visible; }

/* proposition C : le vrai produit du drive */
.co-em.pack { width: 84px; height: 84px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 3px 10px rgba(15, 23, 42, .06); overflow: hidden; }
.co-em.pack img.pk { width: 88%; height: 88%; object-fit: contain; }
.co-pick { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: -4px; white-space: nowrap; }
.co-pick i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.co-pick b { color: #2c352f; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 3px; }
.item .im.pack { background: #fff !important; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.item .im.pack img { width: 86%; height: 86%; object-fit: contain; }
.co-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.co-step button { width: 22px; height: 22px; font-size: 14px; } .co-step i { font-size: 11.5px; letter-spacing: -.3px; }
/* vignettes « le vrai produit du drive » (maquette C) : carte blanche, grande photo carrée, nom / drive / prix à gauche */
.co-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.co-p { align-items: stretch; text-align: left; gap: 3px; padding: 10px 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.co-p:hover { background: #fff; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.co-p.on { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.co-p .co-check { top: 8px; right: 8px; background: var(--accent); box-shadow: 0 0 0 2px #fff; z-index: 2; }
.co-em, .co-em.photo, .co-em.pack { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: #fff; box-shadow: none; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 6px; font-size: 54px; }
.co-em:not(.photo):not(.pack) { background: #f6f8f4; }
.co-em.photo img.ph { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.co-em.pack img.pk { width: 92%; height: 92%; object-fit: contain; }
.co-em img.emo3d { width: 58%; height: 58%; }
.co-p b { font-size: 13.5px; font-weight: 700; color: #1d2a17; min-height: 0; display: block; line-height: 1.3; }
.co-pick { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-pick.none { color: #a3ab9e; font-style: italic; }
.co-pick i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.co-price { font-size: 13.5px; font-weight: 800; color: #1d2a17; font-variant-numeric: tabular-nums; }
.co-p.on .co-step { display: flex; justify-content: space-between; margin-top: 8px; width: 100%; }
.co-p.on .co-unit { align-self: center; margin-top: 2px; }
.co-p .co-del { top: 8px; left: 8px; z-index: 2; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.co-p { text-align: center; align-items: center; }
.co-p b { min-height: 34px; display: flex; align-items: center; justify-content: center; }

/* ---- Menu de la semaine (Gemini) ---- */
.mn-connect { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.mn-c-h { display: flex; gap: 14px; align-items: flex-start; }
.mn-c-h p { color: var(--muted); margin-top: 4px; line-height: 1.5; }
.mn-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #4285f4, #9b72cb 55%, #d96570); }
.mn-badge svg { width: 24px; height: 24px; }
.mn-steps { counter-reset: st; list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.mn-steps li { counter-increment: st; position: relative; padding: 12px 14px 14px 52px; background: var(--surface2, #f3f6f1); border-radius: 14px; display: grid; gap: 6px; }
.mn-steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.mn-steps li span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.mn-steps li .btn { justify-self: start; margin-top: 4px; }
.mn-keyrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.mn-keyrow input { flex: 1; min-width: 220px; height: 42px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font: inherit; background: #fff; }
.mn-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mn-form { display: grid; gap: 14px; margin-bottom: 22px; }
.mn-lab { font-weight: 800; font-size: 15px; }
.mn-form textarea { width: 100%; border-radius: 14px; border: 1px solid var(--line); padding: 12px 14px; font: inherit; font-size: 15px; resize: vertical; min-height: 84px; background: #fff; }
.mn-form textarea:focus, .mn-keyrow input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.mn-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-ex button { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 5px 11px 5px 8px; border-radius: 999px;
  background: var(--surface2, #f1f4ef); color: var(--text); }
.mn-ex button svg { width: 13px; height: 13px; color: var(--accent); }
.mn-ex button:hover { background: color-mix(in srgb, var(--accent) 12%, #fff); }
.mn-opts { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-end; }
.mn-step > span, .mn-src > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.mn-step > div { display: inline-flex; align-items: center; gap: 4px; background: var(--surface2, #f1f4ef); border-radius: 999px; padding: 3px; }
.mn-step button { width: 32px; height: 32px; border-radius: 50%; background: #fff; font-size: 18px; font-weight: 800; color: var(--accent); }
.mn-step button:disabled { opacity: .35; }
.mn-step b { min-width: 34px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.mn-src > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-src button { font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); }
.mn-src button.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #fff); }
.mn-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mn-go .btn.big { height: 48px; padding: 0 22px; font-size: 15.5px; }
.mn-go small { color: var(--muted); font-size: 12.5px; max-width: 420px; line-height: 1.4; }
.mn-gem { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.mn-gem svg { width: 14px; height: 14px; color: var(--accent); }
.mn-gem span { font-family: ui-monospace, monospace; font-size: 11.5px; }
.mn-gem button { margin-left: auto; font-size: 12.5px; color: #b42318; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.mn-gem button:hover { background: #fef2f2; }
.mn-job { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.mn-job > div:last-child { flex: 1; display: grid; gap: 8px; }
.mn-job small { color: var(--muted); font-size: 12.5px; }
.mn-bar { height: 8px; border-radius: 999px; background: var(--surface2, #eef1ec); overflow: hidden; }
.mn-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s; }
.mn-err { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; color: #7a271a; background: #fef3f2; }
.mn-err svg { width: 20px; height: 20px; flex: none; color: #b42318; }
.mn-err b { display: block; margin-bottom: 2px; }
.mn-res-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mn-res-h h2 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.mn-res-act { display: flex; gap: 8px; flex-wrap: wrap; }
.mn-msg { color: var(--muted); margin: 6px 0 14px; line-height: 1.5; }
.mn-msg span { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 6px; }
.mn-msg em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); padding: 2px 9px; border-radius: 999px; }
.mn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mn-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  position: relative; transition: box-shadow .2s; }
/* « Autre » en cours : voile clair avec reflet qui glisse, contour de la couleur du site */
.mn-card.swapping { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow); }
.mn-card.swapping:before { content: ""; position: absolute; inset: 0 0 52px; z-index: 2; pointer-events: none;
  background: rgba(255, 255, 255, .55); animation: fade-in .25s ease both; }
.mn-card.swapping:after { content: ""; position: absolute; inset: 0 0 52px; z-index: 3; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .8) 50%, transparent 80%); animation: shimmer 1.3s ease-in-out infinite; }
.mn-day { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); padding: 12px 14px 8px; }
.mn-pic { position: relative; aspect-ratio: 4 / 3; background: var(--surface2, #eef1ec); cursor: pointer; overflow: hidden; }
.mn-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.mn-pic:hover img { transform: scale(1.04); }
.mn-in { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, .92); color: var(--accent); padding: 3px 9px 3px 6px; border-radius: 999px; }
.mn-in svg { width: 13px; height: 13px; }
.mn-bd { padding: 10px 14px 6px; display: grid; gap: 3px; flex: 1; }
.mn-bd h3 { font-size: 15px; line-height: 1.3; cursor: pointer; }
.mn-bd h3:hover { color: var(--accent); }
.mn-bd small { color: var(--muted); font-size: 12px; }
.mn-bd p { font-size: 12.5px; color: var(--text); opacity: .8; line-height: 1.4; margin-top: 3px; }
.mn-ft { display: flex; gap: 6px; padding: 8px 10px 12px; }
.mn-ft button { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 10px;
  background: var(--surface2, #f1f4ef); color: var(--text); }
.mn-ft button:first-child { flex: 1; justify-content: center; }
.mn-ft button svg { width: 14px; height: 14px; }
.mn-ft button:disabled { opacity: .4; }
.mn-ft button:last-child:hover { background: #fef2f2; color: #b42318; }
.mn-foot { font-size: 12px; color: var(--muted); margin-top: 14px; }
/* profil du foyer, catalogue, retouches, pastilles, motifs de retrait */
.mn-house, .mn-cov { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.mn-house svg, .mn-cov svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.mn-house b { color: var(--text); font-weight: 700; }
.mn-house button, .mn-cov button { font-size: 12.5px; font-weight: 700; color: var(--accent); padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; }
.mn-house button:hover, .mn-cov button:hover { background: color-mix(in srgb, var(--accent) 9%, #fff); }
.mn-msg p { margin: 0 0 6px; }
.mn-msg span { margin-left: 0; }
.mn-msg ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: color-mix(in srgb, var(--accent) 70%, #0b1f0e); }
.mn-msg li { margin: 2px 0; }
.mn-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.mn-stat { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.mn-stat .ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); }
.mn-stat .ic svg { width: 17px; height: 17px; }
.mn-stat small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mn-stat b { display: block; font-size: 15px; color: var(--text); }
.mn-stat em { display: block; font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.35; }
.mn-adj { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 6px 5px 14px; margin: 0 0 14px; }
.mn-adj svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.mn-adj input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; background: transparent; }
.mn-adj .btn { height: 36px; border-radius: 999px; }
/* ajustement en cours : champ grisé, fine barre de la couleur du site en bas du champ */
.mn-adj { position: relative; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.mn-adj.busy { border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.mn-adj.busy input { color: var(--muted); }
.mn-adj .btn:disabled { opacity: 1; }
.mn-adj-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mn-adj-bar i { display: block; height: 100%; width: 4%; background: var(--accent); border-radius: 0 3px 3px 0;
  transition: width .25s linear; position: relative; overflow: hidden; }
.mn-adj-bar i:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.2s ease-in-out infinite; }
.mn-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.mn-star { font-size: 11.5px; font-weight: 800; color: #b7791f; background: #fff4dc; padding: 2px 8px; border-radius: 999px; }
.mn-star i { font-style: normal; font-weight: 500; color: #a08a5c; }
.mn-cost { font-size: 11.5px; font-weight: 800; color: color-mix(in srgb, var(--accent) 70%, #0b1f0e);
  background: color-mix(in srgb, var(--accent) 10%, #fff); padding: 2px 8px; border-radius: 999px; }
.mn-bd p.mn-uses { color: var(--accent); font-weight: 700; opacity: 1; }
.mn-bd p.mn-miss { color: var(--muted); opacity: 1; margin-top: 0; }
.mn-bd p.mn-short { color: #c07a12; font-weight: 700; opacity: 1; }
.mn-ft button.on { background: var(--accent); color: #fff; }
.mn-ft button:first-child { flex: 1; }
.mn-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.mn-choices .btn { justify-content: flex-start; text-align: left; height: auto; min-height: 42px; white-space: normal; }
.mn-link { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-decoration: underline; background: none; }
.mn-hs { display: grid; gap: 8px; }
.mn-hs p { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.mn-hl { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mn-hl small { font-weight: 500; color: var(--muted); font-size: 12px; }
.mn-hl select { font: inherit; font-weight: 600; font-size: 13px; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.mn-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mn-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mn-chk input { width: 17px; height: 17px; accent-color: var(--accent); }
/* demande repliée (un menu existe) */
.mn-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, #fff); }
.mn-dot svg { width: 20px; height: 20px; }
.mn-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-top: 12px; padding-bottom: 12px; }
.mn-sum-t { flex: 1; min-width: 200px; text-align: left; font-weight: 800; font-size: 14.5px; color: var(--text); background: none; line-height: 1.4; }
.mn-sum-t span { font-weight: 600; color: var(--muted); }
.mn-sum-t:hover { color: var(--accent); }
.mn-sum-act { display: flex; gap: 8px; flex-wrap: wrap; }
/* formulaire : en-tête, zone de saisie façon assistant */
.mn-fh { display: flex; align-items: flex-start; gap: 14px; }
.mn-fh > div { flex: 1; min-width: 0; }
.mn-fh h2 { font-size: 19px; margin: 0; }
.mn-fh p { color: var(--muted); font-size: 13px; margin: 2px 0 0; line-height: 1.45; }
.mn-prompt { border: 2px solid var(--line); border-radius: 18px; background: #fff; padding: 8px 12px 8px; transition: border-color .15s; }
.mn-prompt:focus-within { border-color: var(--accent); }
.mn-form .mn-prompt textarea { border: 0; padding: 4px 2px; min-height: 58px; border-radius: 0; resize: vertical; outline: none; }
.mn-form .mn-prompt textarea:focus { outline: none; }
.mn-prompt small { display: block; font-size: 11.5px; color: color-mix(in srgb, var(--muted) 70%, #fff); padding: 2px 2px 0; }
/* suggestions */
.mn-ex { align-items: center; }
.mn-ex .mn-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text); }
.mn-ex .mn-chip:hover { background: color-mix(in srgb, var(--accent) 9%, #fff); }
.mn-ex .mn-chip svg { width: 12px; height: 12px; }
.mn-ex .mn-chip.on { font-weight: 700; border-color: var(--accent); color: color-mix(in srgb, var(--accent) 70%, #0b1f0e); background: color-mix(in srgb, var(--accent) 11%, #fff); }
.mn-ex .mn-chip.add { font-weight: 700; color: color-mix(in srgb, var(--accent) 70%, #0b1f0e); border-color: color-mix(in srgb, var(--accent) 45%, #fff); }
.mn-ex .mn-pantry { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  background: var(--accent); color: #fff; }
.mn-ex .mn-pantry svg { width: 14px; height: 14px; color: #fff; }
.mn-ex .mn-pantry:hover { filter: brightness(.93); }
.mn-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.mn-ex .mn-more { margin-left: auto; font-size: 12.5px; font-weight: 700; text-decoration: underline; color: color-mix(in srgb, var(--accent) 70%, #0b1f0e);
  background: none; padding: 6px 8px; border-radius: 999px; }
.mn-ex .mn-more:hover { background: color-mix(in srgb, var(--accent) 9%, #fff); }
/* « Plus de suggestions » : trois cartes aérées (exclure / envies / cuisines), étiquettes plus grandes et espacées */
.mn-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; animation: fade-in .25s ease both; }
@media (max-width: 1320px) {         /* deux colonnes : les cuisines sur toute la largeur, en dessous */
  .mn-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-grp.g-cui { grid-column: 1 / -1; }
}
.mn-grp { --gc: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.mn-grp.g-ex { --gc: #c2410c; }
.mn-grp header { display: flex; align-items: center; gap: 11px; }
.mn-gi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--gc);
  background: color-mix(in srgb, var(--gc) 12%, #fff); }
.mn-gi svg { width: 17px; height: 17px; }
.mn-grp h4 { margin: 0; font-size: 14.5px; font-weight: 800; color: var(--text); letter-spacing: -.1px; }
.mn-grp header small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.mn-grp .mn-ex { gap: 8px; }
.mn-grp .mn-ex .mn-chip { font-size: 13px; padding: 8px 14px; border-color: transparent; background: var(--surface2);
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
.mn-grp .mn-ex .mn-chip:hover { background: color-mix(in srgb, var(--gc) 10%, #fff); border-color: color-mix(in srgb, var(--gc) 30%, #fff);
  transform: translateY(-1px); box-shadow: 0 3px 10px rgba(20, 30, 25, .08); }
.mn-grp .mn-ex .mn-chip:active { transform: scale(.97); }
.mn-grp .mn-ex .mn-chip.on { background: color-mix(in srgb, var(--gc) 13%, #fff); border-color: var(--gc);
  color: color-mix(in srgb, var(--gc) 75%, #111); }
.mn-grp .mn-ex .mn-chip.on svg { color: var(--gc); }
.mn-grp .mn-ex .mn-chip.add { background: #fff; border: 1px dashed color-mix(in srgb, var(--gc) 55%, #fff); }
@media (max-width: 700px) { .mn-panel { grid-template-columns: 1fr; } }
.mn-src button { display: inline-flex; align-items: center; gap: 4px; }
.mn-src button svg { width: 13px; height: 13px; }
/* « Composer » et sa petite progression */
.mn-go-b { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mn-go small { display: inline-flex; align-items: center; gap: 5px; }
.mn-go small svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.mn-prog { width: 240px; max-width: 100%; display: grid; gap: 5px; }
.mn-prog-t { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.mn-prog-t span { color: var(--muted); }
.mn-prog .mn-bar { height: 4px; }
.mn-prog button { justify-self: end; font-size: 11.5px; text-decoration: underline; color: var(--muted); background: none; padding: 0; }
.mn-prog button:hover { color: #b42318; }
/* question de Gemini */
.mn-ask { display: flex; gap: 14px; background: #fff8e8; border-radius: 16px; padding: 16px 18px; }
.mn-ask-i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #a46a00; }
.mn-ask-i svg { width: 18px; height: 18px; }
.mn-ask > div { flex: 1; min-width: 0; display: grid; gap: 8px; }
.mn-ask small { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8a5a00; }
.mn-ask b { font-size: 15.5px; line-height: 1.35; }
.mn-ask-o { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-ask-o button { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e7cf9a; color: var(--text); }
.mn-ask-o button:hover { background: #fdf0d2; }
.mn-ask-r { display: flex; gap: 8px; flex-wrap: wrap; }
.mn-ask-r input { flex: 1; min-width: 180px; height: 40px; border-radius: 999px; border: 1px solid #e7cf9a; padding: 0 14px; font: inherit; background: #fff; }
.mn-ask-r input:focus { outline: 2px solid #d39b1a; outline-offset: 1px; }
/* bandeau vert profond et filet aux couleurs de Gemini (comme l'application de bureau) */
.mn-hero { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 20px; color: #fff;
  background: color-mix(in srgb, var(--accent) 62%, #0b1f0e); }
.mn-hero-i { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center;
  color: color-mix(in srgb, var(--accent) 62%, #0b1f0e); }
.mn-hero-i svg { width: 22px; height: 22px; }
.mn-hero-t { flex: 1; min-width: 0; }
.mn-hero-t h1 { font-size: 19px; margin: 0; color: #fff; }
.mn-hero-t p { margin: 2px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.mn-hero-s { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 13px; }
.mn-hero-s svg { width: 16px; height: 16px; }
.mn-hero-s span { font-weight: 700; }
.mn-hero-s button { font-size: 12.5px; color: rgba(255, 255, 255, .8); background: none; padding: 4px 10px; border-radius: 999px; }
.mn-hero-s button:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.mn-strip { height: 3px; margin: 0 24px 14px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570, #f5b400); }
@media (max-width: 700px) { .mn-hero { flex-wrap: wrap; } .mn-hero-s { width: 100%; } .mn-hero-s button { margin-left: auto; } }
/* zone de saisie + colonne « Composer » à droite */
.mn-fh-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mn-prow { display: flex; gap: 14px; align-items: flex-start; }
.mn-prow .mn-prompt { flex: 1; min-width: 0; }
.mn-gocol { flex: none; width: 230px; display: grid; gap: 8px; }
.mn-gocol .btn.big { width: 100%; height: 48px; justify-content: center; font-size: 15.5px; border-radius: 999px; }
.mn-gocol .mn-prog { width: 100%; }
@media (max-width: 700px) {
  .mn-prow { flex-direction: column; align-items: stretch; } .mn-gocol { width: 100%; }
  .mn-fh { flex-wrap: wrap; } .mn-fh > div:not(.mn-fh-act) { flex-basis: calc(100% - 54px); }
  .mn-fh-act { width: 100%; justify-content: flex-start; }
}
.mn-hero-s b, .mn-hero-s span { white-space: nowrap; }
/* sites à LEUR couleur : plein et coché s'il est retenu, contour à sa couleur sinon */
.mn-opts { align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.mn-src { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mn-src > span { margin: 0; font-size: 10.5px; }
.mn-src button { border: 2px solid var(--sc); color: var(--sc); background: #fff; padding: 6px 14px; }
.mn-src button.on { background: var(--sc); border-color: var(--sc); color: #fff; }
.mn-src button:hover { filter: brightness(.94); }
/* compteurs regroupés */
.mn-cnt { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.mn-cnt button { width: 30px; height: 30px; border-radius: 50%; background: #fff; font-size: 16px; font-weight: 800; color: var(--accent); }
.mn-cnt button:hover { background: color-mix(in srgb, var(--accent) 10%, #fff); }
.mn-cnt button:disabled { opacity: .35; }
.mn-cnt b { padding: 0 6px; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mn-cnt i { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.mn-trust { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mn-trust svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.mn-form .mn-cov { font-size: 12px; }
.mn-cov.on span { color: color-mix(in srgb, var(--accent) 70%, #0b1f0e); }
/* « À acheter : … › voir » */
.mn-bd button.mn-miss { text-align: left; font-size: 12.5px; color: var(--muted); background: none; padding: 0; line-height: 1.4; }
.mn-bd button.mn-miss u { color: color-mix(in srgb, var(--accent) 70%, #0b1f0e); font-weight: 700; }
.mn-bd button.mn-miss:hover u { color: var(--accent); }
