/* ---------- Polices (incluses dans l'app, fonctionnent hors ligne) ---------- */
@font-face { font-family: "Manrope"; font-weight: 400; src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; src: url(../fonts/manrope-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; src: url(../fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 500; src: url(../fonts/nunito-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; src: url(../fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; src: url(../fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; src: url(../fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; src: url(../fonts/nunito-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 300; src: url(../fonts/fraunces-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; src: url(../fonts/fraunces-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; src: url(../fonts/fraunces-latin-500-normal.woff2) format("woff2"); }

:root {
  /* Atable : thème sombre */
  --bg: #0f1615;
  --surface: #162120;
  --raised: #1e2b2a;
  --raised-2: #273634;
  --line: #334341;
  --text: #eef3f1;
  --muted: #9fb2af;
  --faint: #6c807d;
  --accent: #5cc2b7;
  --accent-ink: #082220;
  --coral: #f08a6c;
  --ok: #8fd3a6;
  --warn: #f08a6c;
  --radius: 24px;
  --radius-sm: 16px;
  --gap: 14px;
  --serif: "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); overflow: hidden; }
body { display: flex; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); user-select: text; -webkit-user-select: text; }
h2 { font-family: var(--serif); font-weight: 800; font-size: 22px; margin: 0; letter-spacing: .2px; }
svg { display: block; }

/* ---------- Barre latérale ---------- */
.rail { width: 76px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0; }
.rail-spacer { flex: 1; }
.rail-btn { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: var(--faint); transition: background .2s, color .2s; }
.rail-btn svg { width: 26px; height: 26px; }
.rail-btn.active { background: var(--raised); color: var(--accent); }

/* ---------- Pages ---------- */
main { flex: 1; position: relative; min-width: 0; }
.page { position: absolute; inset: 0; padding: 16px 16px 16px 0; display: none; gap: var(--gap); }
.page.active { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; min-height: 0; }

#page-accueil .col-left { flex: 0 0 29%; }
#page-accueil .col-mid { flex: 1 1 40%; }
#page-accueil .col-right { flex: 0 0 29%; }
#page-maison .col-lights { flex: 1 1 52%; }
#page-maison .col-music { flex: 1 1 48%; }

.card { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; min-height: 0; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex: none; }

/* ---------- Horloge ---------- */
.clock-card { padding: 22px 26px 24px; flex: none; }
.clock { font-family: var(--serif); font-weight: 700; font-size: 104px; line-height: .95; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.date { margin-top: 10px; font-size: 21px; color: var(--muted); font-weight: 500; }
.date::first-letter { text-transform: uppercase; }

/* ---------- Météo ---------- */
.weather-card { flex: 1; gap: 16px; }
.wx-now { display: flex; align-items: center; gap: 16px; }
.wx-now .wx-icon { width: 76px; height: 76px; flex: none; }
.wx-temp { font-family: var(--serif); font-size: 62px; font-weight: 800; line-height: 1; }
.wx-desc { color: var(--text); font-size: 18px; font-weight: 600; }
.wx-sub { color: var(--muted); font-size: 15px; margin-top: 3px; }
.wx-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--raised); border-radius: var(--radius-sm); padding: 12px 6px; }
.wx-hour { text-align: center; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wx-hour b { color: var(--text); font-weight: 600; font-size: 16px; }
.wx-hour .wx-icon { width: 30px; height: 30px; }
.wx-pop { color: #8ab4e8; font-size: 12px; min-height: 14px; }
.wx-days { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.wx-day { display: grid; grid-template-columns: 74px 30px 1fr auto; align-items: center; gap: 10px; padding: 6px 2px; font-size: 16px; }
.wx-day .wx-icon { width: 28px; height: 28px; }
.wx-day .d { color: var(--muted); font-weight: 600; }
.wx-day .bar { height: 6px; border-radius: 3px; background: var(--raised-2); position: relative; }
.wx-day .bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #7fb0e0, #e8a85c); }
.wx-day .t { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-day .t span { color: var(--muted); margin-right: 8px; }
.wx-place { color: var(--faint); font-size: 13px; margin-top: auto; }

/* ---------- Agenda ---------- */
.agenda-card { flex: 1; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.agenda { overflow-y: auto; flex: 1; margin: 0 -8px; padding: 0 8px; scrollbar-width: none; }
.agenda::-webkit-scrollbar { display: none; }
.day { margin-bottom: 18px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; position: sticky; top: 0; background: var(--surface); padding: 4px 0; z-index: 1; }
.day-head b { font-family: var(--serif); font-weight: 800; font-size: 20px; }
.day-head span { color: var(--muted); font-size: 15px; }
.day.today .day-head b { color: var(--accent); }
.event { display: grid; grid-template-columns: 4px 86px 1fr; gap: 12px; align-items: center; padding: 11px 12px 11px 0; background: var(--raised); border-radius: var(--radius-sm); margin-bottom: 6px; }
.event .bar { align-self: stretch; border-radius: 0 3px 3px 0; }
.event .time { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.25; }
.event .title { font-size: 17px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.event .where { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event.past { opacity: .45; }
.event.now { box-shadow: inset 0 0 0 1.5px var(--accent); }
.day-empty { color: var(--faint); font-size: 15px; padding: 4px 2px 6px; }
.empty-state { color: var(--muted); font-size: 16px; line-height: 1.5; padding: 20px 4px; }
.empty-state button { color: var(--accent); font-weight: 700; }

/* ---------- Listes ---------- */
.lists-card { flex: 1.6; }
.tabs { justify-content: flex-start; gap: 6px; background: var(--raised); padding: 5px; border-radius: 16px; }
.tab { flex: 1; padding: 9px 12px; border-radius: 12px; font-weight: 700; font-size: 16px; color: var(--muted); }
.tab.active { background: var(--raised-2); color: var(--text); }
.list-add { display: flex; gap: 8px; margin-bottom: 10px; }
.list-add input { flex: 1; min-width: 0; background: var(--raised); border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 17px; outline: none; }
.list-add input:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 14px; font-weight: 600; }
.chip:active { background: var(--raised-2); }
.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; scrollbar-width: none; }
.list::-webkit-scrollbar { display: none; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--raised); font-size: 17px; }
.list li .check { width: 26px; height: 26px; flex: none; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; }
.list li .check svg { width: 16px; height: 16px; opacity: 0; color: var(--accent-ink); }
.list li.done .check { background: var(--accent); border-color: var(--accent); }
.list li.done .check svg { opacity: 1; }
.list li.done .txt { color: var(--faint); text-decoration: line-through; }
.list li .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list li .del { color: var(--faint); width: 30px; height: 30px; display: grid; place-items: center; }
.list li .del svg { width: 18px; height: 18px; }
.list-empty { color: var(--faint); padding: 14px 4px; font-size: 15px; border: 0 !important; }
.text-btn { color: var(--muted); font-size: 14px; font-weight: 600; padding: 10px 0 0; text-align: left; }

.notes-card { flex: 1; }
.notes-card textarea { flex: 1; resize: none; background: transparent; border: 0; outline: none; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.45; color: var(--text); padding: 0; }
.notes-card textarea::placeholder, .list-add input::placeholder { color: var(--faint); }
.saved { color: var(--faint); font-size: 13px; }

/* ---------- Boutons ---------- */
.icon-btn { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--raised); color: var(--text); flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.accent { background: var(--accent); color: var(--accent-ink); }
.icon-btn.big { width: 64px; height: 64px; border-radius: 50%; }
.icon-btn.big svg { width: 30px; height: 30px; }
.icon-btn.ghost { background: transparent; }
.icon-btn:active { transform: scale(.95); }
.btn { padding: 12px 18px; border-radius: 14px; background: var(--raised-2); font-weight: 700; font-size: 15px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--warn); }
.btn:disabled { opacity: .5; }

/* ---------- Lumières ---------- */
.lights-card { flex: 1; }
.lights { overflow-y: auto; flex: 1; scrollbar-width: none; }
.lights::-webkit-scrollbar { display: none; }
.area { margin-bottom: 18px; }
.area-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.area-head button { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 14px; padding: 4px 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.tile { position: relative; overflow: hidden; background: var(--raised); border-radius: 18px; min-height: 108px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; touch-action: pan-y; }
.tile .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(92,194,183,.30), rgba(232,168,92,.18)); transition: width .25s; pointer-events: none; }
.tile.dragging .fill { transition: none; }
.tile > * { position: relative; }
.tile .ico { width: 30px; height: 30px; color: var(--faint); }
.tile.on .ico { color: var(--accent); }
.tile .name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.tile .lvl { font-size: 14px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile.on .lvl { color: var(--text); }
.tile .fan-speeds { display: flex; gap: 4px; margin-top: 6px; }
.tile .fan-speeds button { flex: 1; padding: 5px 0; border-radius: 8px; background: var(--raised-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.tile .fan-speeds button.sel { background: var(--accent); color: var(--accent-ink); }
.scenes .chip { padding: 10px 16px; font-size: 15px; background: var(--raised); color: var(--text); }
.status-dot { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status-dot.ok::before { background: var(--ok); }
.status-dot.err::before { background: var(--warn); }

/* ---------- Musique ---------- */
.spotify-card { flex: none; }
.np { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; }
.np-art { width: 132px; height: 132px; border-radius: 16px; background: var(--raised-2) center/cover; display: grid; place-items: center; color: var(--faint); }
.np-art svg { width: 44px; height: 44px; }
.np-title { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-artist { color: var(--muted); font-size: 16px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-device { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 700; margin-top: 8px; padding: 6px 10px; background: var(--raised); border-radius: 999px; }
.np-device svg { width: 14px; height: 14px; }
.np-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.progress { height: 4px; background: var(--raised-2); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--text); border-radius: 2px; }
.volume { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--muted); }
.volume svg { width: 20px; height: 20px; flex: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--raised-2) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); margin-top: -8px; }
.playlists { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 10px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.playlists::-webkit-scrollbar { display: none; }
.pl { text-align: left; }
.pl .cover { aspect-ratio: 1; border-radius: 12px; background: var(--raised-2) center/cover; }
.pl span { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sonos-card { flex: 1; }
.rooms { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.rooms::-webkit-scrollbar { display: none; }
.room { background: var(--raised); border-radius: 18px; padding: 12px 14px; display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.room .art { width: 56px; height: 56px; border-radius: 10px; background: var(--raised-2) center/cover; display: grid; place-items: center; color: var(--faint); }
.room .art svg { width: 24px; height: 24px; }
.room .rname { font-weight: 800; font-size: 16px; }
.room .rname small { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 6px; }
.room .rtrack { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .rctl { display: flex; gap: 6px; }
.room .rctl .icon-btn { width: 44px; height: 44px; background: var(--raised-2); }
.room .volume { grid-column: 1 / -1; margin-top: -4px; }
.room.playing .rname { color: var(--accent); }

/* ---------- Feuille (sélecteurs) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 105%); width: min(680px, 94vw); max-height: 78vh; overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 22px 24px 30px; z-index: 21; transition: transform .25s ease; }
.sheet.open { transform: translate(-50%, 0); }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet h3 { font-family: var(--serif); font-weight: 800; font-size: 24px; margin: 0 0 14px; }
.sheet .opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 14px; font-size: 17px; font-weight: 600; text-align: left; }
.sheet .opt:active, .sheet .opt.sel { background: var(--raised); }
.sheet .opt svg { width: 22px; height: 22px; color: var(--muted); }
.sheet .opt.sel svg { color: var(--accent); }
.sheet .opt small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }

/* ---------- Réglages ---------- */
.settings { height: 100%; overflow-y: auto; columns: 2 420px; column-gap: var(--gap); scrollbar-width: none; }
.settings::-webkit-scrollbar { display: none; }
.settings .card { break-inside: avoid; margin-bottom: var(--gap); display: block; }
.settings h2 { margin-bottom: 4px; }
.settings .hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.settings .hint b { color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.field input, .field select { background: var(--raised); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; width: 100%; }
.field input:focus { border-color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.cal-row { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: start; background: var(--raised); padding: 10px; border-radius: 14px; margin-bottom: 8px; }
.cal-row input { background: var(--raised-2); border: 1.5px solid transparent; border-radius: 10px; padding: 10px 12px; font-size: 15px; outline: none; width: 100%; }
.cal-row input:focus { border-color: var(--accent); }
.cal-row input[type=color] { width: 44px; height: 44px; padding: 4px; border-radius: 12px; border: 0; background: var(--raised-2); }
.cal-row .stack { display: flex; flex-direction: column; gap: 6px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 16px; font-weight: 600; }
.switch input { width: 52px; height: 30px; -webkit-appearance: none; appearance: none; background: var(--raised-2); border-radius: 15px; position: relative; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--text); top: 3px; left: 3px; transition: left .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 25px; background: var(--accent-ink); }
.msg { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 18px; line-height: 1.45; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--warn); }
.geo-results .opt { padding: 10px; }
code { background: var(--raised-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; user-select: text; -webkit-user-select: text; }

/* ---------- Écran de veille ---------- */
.screensaver { position: fixed; inset: 0; background: #000; z-index: 50; display: none; }
.screensaver.on { display: block; }
.ss-clock { position: absolute; font-family: var(--serif); font-weight: 700; font-size: 88px; color: #5a5249; transition: left 2s, top 2s; }
.ss-clock small { display: block; font-family: var(--sans); font-size: 18px; color: #3d3730; font-weight: 600; }

/* ---------- Notifications ---------- */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--raised-2); color: var(--text); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.4); animation: fade .2s; max-width: 80vw; }
.toast.err { border-left: 4px solid var(--warn); }

/* ---------- Tablette à la verticale ---------- */
@media (orientation: portrait) {
  body { flex-direction: column-reverse; }
  .rail { width: auto; height: 72px; flex-direction: row; padding: 0 18px; justify-content: center; }
  .rail-spacer { flex: 0 0 40px; }
  .page { padding: 16px 16px 0; flex-wrap: wrap; overflow-y: auto; align-content: flex-start; }
  #page-accueil .col-left { flex: 1 1 100%; flex-direction: row; }
  #page-accueil .col-left .card { flex: 1; }
  #page-accueil .col-mid { flex: 1 1 100%; height: 52vh; }
  #page-accueil .col-right { flex: 1 1 100%; flex-direction: row; height: 420px; }
  #page-accueil .col-right .card { flex: 1; }
  .clock { font-size: 76px; }
  #page-maison .col-lights, #page-maison .col-music { flex: 1 1 100%; }
  #page-maison .col-lights { height: 50vh; }
  .settings { columns: auto; overflow-x: hidden; }
}

/* ---------- Soupers ---------- */
#page-soupers .col-week { flex: 1 1 62%; }
#page-soupers .col-meal-tools { flex: 0 0 36%; }
.week-card { flex: 1; }
.week-nav { display: flex; align-items: center; gap: 10px; }
.week-nav h2 { min-width: 190px; text-align: center; }
.btn svg { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 7px; }
.week-card .card-head { flex-wrap: wrap; }
.week { flex: 1; display: grid; grid-template-columns: 1fr; grid-auto-rows: minmax(0, 1fr); gap: 7px; min-height: 0; }
.meal-day { background: var(--raised); border-radius: 16px; padding: 0 18px; text-align: left; display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 56px; border: 1.5px solid transparent; }
.meal-day.today { border-color: var(--accent); }
.meal-day.past { opacity: .5; }
.md-day { font-weight: 800; font-size: 16px; width: 112px; flex: none; }
.meal-day.today .md-day { color: var(--accent); }
.md-day span { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-top: 1px; }
.md-name { font-family: var(--serif); font-weight: 800; font-size: 22px; line-height: 1.2; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-empty { color: var(--faint); font-weight: 700; font-size: 15px; flex: 1; }
.md-tags { display: flex; gap: 4px; flex: none; }
.md-tags span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--raised-2); border-radius: 999px; padding: 4px 10px; }
.ideas-card { flex: 1.3; }
.chip.on { background: var(--accent); color: var(--accent-ink); }
.ideas { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; margin: 4px 0 12px; scrollbar-width: none; }
.idea { display: flex; align-items: center; gap: 10px; background: var(--raised); border-radius: 16px; padding: 12px 12px 12px 16px; }
.idea-main { flex: 1; min-width: 0; }
.idea-name { font-family: var(--serif); font-weight: 800; font-size: 19px; }
.idea-ing { color: var(--muted); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn.like { background: transparent; color: var(--faint); width: 40px; height: 40px; }
.icon-btn.like.on { color: #e38fb0; }
.icon-btn.like.on svg { fill: currentColor; }
.big-btn { width: 100%; padding: 15px; font-size: 16px; }
.flyers-card { flex: none; }
.flipp { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; background: var(--raised); border-radius: 16px; padding: 14px 16px; }
.flipp svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.flipp b { display: block; font-size: 16px; }
.flipp span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.35; }
.stores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.store { background: var(--raised); border-radius: 14px; padding: 12px 6px; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.store i { width: 26px; height: 6px; border-radius: 3px; }
.sheet-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 16px 0 8px; }
.plan .list-add input, .plan .field input { background: var(--raised); }
.textarea { width: 100%; background: var(--raised); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; resize: none; font-family: var(--sans); }
.pick-list { max-height: 46vh; }
.pick-list li { cursor: pointer; }
.pick-list li .check { background: var(--accent); border-color: var(--accent); }
.pick-list li .check svg { opacity: 1; }
.pick-list li.off .check { background: transparent; border-color: var(--line); }
.pick-list li.off .check svg { opacity: 0; }
.pick-list li.off .txt { color: var(--faint); text-decoration: line-through; }
.sheet .opt .icon-btn { width: 40px; height: 40px; }

/* ---------- Enfants ---------- */
.kids-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kids-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 14px; }
.kids-head h2 { font-size: 28px; }
.kids { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: var(--gap); min-height: 0; overflow-y: auto; scrollbar-width: none; }
.kid { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; border-top: 5px solid var(--kid); min-height: 0; }
.kid-head { display: flex; align-items: center; gap: 12px; }
.kid-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: color-mix(in srgb, var(--kid) 25%, transparent); flex: none; }
.kid-id { flex: 1; min-width: 0; }
.kid-name { font-family: var(--serif); font-weight: 800; font-size: 28px; line-height: 1.1; }
.kid-wins { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 3px; }
.kid-wins svg { width: 15px; height: 15px; color: var(--kid); }
.kid-goal { font-size: 19px; font-weight: 700; line-height: 1.3; }
.kid-progress { display: flex; align-items: center; gap: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.kid-progress .bar { flex: 1; height: 10px; border-radius: 5px; background: var(--raised-2); overflow: hidden; }
.kid-progress .bar i { display: block; height: 100%; background: var(--kid); border-radius: 5px; transition: width .4s; }
.stars { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; align-content: start; flex: 1; overflow-y: auto; scrollbar-width: none; }
.stars.small { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
.star { aspect-ratio: 1; border-radius: 14px; background: var(--raised); display: grid; place-items: center; color: var(--line); }
.star svg { width: 62%; height: 62%; }
.star.on { color: var(--kid); background: color-mix(in srgb, var(--kid) 16%, var(--raised)); animation: pop .35s ease; }
.star.next { box-shadow: inset 0 0 0 2px var(--kid); color: var(--kid); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pulse { 50% { opacity: .55; } }
.gift { display: flex; align-items: center; gap: 12px; background: var(--raised); border-radius: 18px; padding: 12px 12px 12px 16px; }
.gift > svg { width: 34px; height: 34px; color: var(--kid); flex: none; }
.gift > div { flex: 1; min-width: 0; }
.gift small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.gift b { font-size: 17px; }
.gift.open { background: color-mix(in srgb, var(--kid) 22%, var(--raised)); }
.kid .btn.accent { background: var(--kid); color: #1b1309; }
.kids-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 18px; max-width: 520px; margin: 60px auto; line-height: 1.5; }
.big-emoji { font-size: 64px; }
.emoji-row, .color-row { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-row button { width: 48px; height: 48px; border-radius: 14px; background: var(--raised); font-size: 26px; }
.emoji-row button.on { box-shadow: inset 0 0 0 2px var(--accent); }
.color-row button { width: 40px; height: 40px; border-radius: 50%; }
.color-row button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper b { font-size: 24px; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.pin { text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 10px 0 18px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dots i.on { background: var(--text); border-color: var(--text); }
.pin-dots.err { animation: shake .3s; }
.pin-dots.err i { border-color: var(--warn); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; justify-content: center; }
.pin-pad button { height: 64px; border-radius: 18px; background: var(--raised); font-size: 26px; font-weight: 700; }

/* Célébration */
.celebrate { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: none; place-items: center; overflow: hidden; }
.celebrate.on { display: grid; }
.celebrate > i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes fall { to { top: 110vh; transform: rotate(720deg) translateX(40px); } }
.cele-card { position: relative; background: var(--surface); border-radius: 28px; padding: 30px 40px; text-align: center; max-width: 520px; animation: pop .45s ease; }
.cele-emoji { font-size: 72px; }
.cele-card h2 { font-size: 38px; margin: 6px 0; }
.cele-card p { color: var(--muted); font-size: 18px; }
.cele-gift { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--raised); border-radius: 18px; padding: 16px 18px; margin: 18px 0; font-size: 22px; font-weight: 800; }
.cele-gift svg { width: 40px; height: 40px; color: var(--accent); flex: none; }
.cele-gift small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.cele-card .btn { font-size: 18px; padding: 14px 30px; }

/* Ce soir (page d'accueil) */
.tonight { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; background: var(--raised); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 700; color: var(--text); }
.tonight svg { width: 18px; height: 18px; color: var(--accent); }
.tonight:empty { display: none; }

@media (orientation: portrait) {
  #page-soupers .col-week, #page-soupers .col-meal-tools { flex: 1 1 100%; }
  .kids { grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); }
}

/* Recette en photo */
.scan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-btn { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--raised); border-radius: 16px; padding: 14px; }
.scan-btn svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.scan-btn b { display: block; font-size: 15px; }
.scan-btn span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Vue du mois ---------- */
.agenda-title { display: flex; align-items: center; gap: 12px; }
.month-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 6px 11px; }
.month-pill svg { width: 15px; height: 15px; }
#page-mois { padding-left: 0; }
.month-card { flex: 1; }
.month-card .card-head { flex-wrap: wrap; }
#month-title { min-width: 210px; text-align: center; }
.month-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.month-dow div { text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.month-grid { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(var(--weeks, 5), minmax(0, 1fr)); gap: 6px; min-height: 0; }
.mday { background: var(--raised); border-radius: 12px; padding: 6px 7px; text-align: left; display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 0; overflow: hidden; border: 1.5px solid transparent; }
.mday.out { opacity: .35; }
.mday.past .mev { opacity: .6; }
.mday.today { border-color: var(--accent); }
.mnum { font-weight: 800; font-size: 15px; margin-bottom: 1px; }
.mday.today .mnum { color: var(--accent); }
.mev { font-size: 12.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c); padding-left: 5px; color: var(--text); }
.mev b { font-weight: 700; color: var(--muted); margin-right: 4px; }
.mev.all { background: color-mix(in srgb, var(--c) 28%, transparent); border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.mmore { font-size: 12px; color: var(--muted); font-weight: 700; }
.sheet .event { background: var(--raised); }

/* ---- Agenda : ajout et détail d'événements ---- */
.cal-head-right { flex-wrap: nowrap; gap: 12px; min-width: 0; }
.cal-head-right .legend { min-width: 0; }
.agenda .event, .sheet .event { cursor: pointer; }
.agenda .event:active, .sheet .event:active { filter: brightness(1.15); }
.event-detail { display: grid; grid-template-columns: 4px 1fr; gap: 14px; background: var(--raised); border-radius: var(--radius-sm); padding: 14px 14px 14px 0; }
.event-detail .bar { border-radius: 0 3px 3px 0; }
.event-detail .when { font-size: 17px; font-weight: 600; }
.event-detail .when::first-letter { text-transform: uppercase; }
.event-detail .where { font-size: 14px; color: var(--muted); margin-top: 4px; }
.add-event .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.add-event .field input, .add-event .field select { min-height: 48px; }
.add-event .big-btn { margin-top: 8px; }
.cal-dev { display: flex; align-items: center; gap: 12px; background: var(--raised); padding: 10px 12px; border-radius: 14px; margin-bottom: 8px; }
.cal-dev input[type=color] { width: 40px; height: 40px; padding: 4px; border-radius: 10px; border: 0; background: var(--raised-2); flex: none; }
.cal-dev .who { flex: 1; min-width: 0; }
.cal-dev .who b { display: block; font-size: 16px; }
.cal-dev .who small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-dev .switch { padding: 0; }
.stepper { display: flex; align-items: center; gap: 8px; background: var(--raised); border-radius: 14px; padding: 6px; }
.stepper .icon-btn { background: var(--raised-2); width: 48px; height: 48px; }
.step-val { flex: 1; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-val.wide { font-size: 18px; }
.step-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hour-jump { margin-top: 6px; }
.add-event .chips { margin-top: 8px; }
.chip.on { background: var(--accent); color: var(--accent-ink); }
.cal-chip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 7px; }
.cal-chip.on i { background: var(--accent-ink); }
.list-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.list-send { padding: 9px 14px; display: inline-flex; align-items: center; white-space: nowrap; flex: none; }
.list-foot .text-btn { padding: 0; }
.send-opts { display: grid; gap: 12px; }
.send-opts .opt { background: var(--raised); }
.send-qr { display: flex; align-items: center; gap: 18px; background: var(--raised); border-radius: 14px; padding: 14px; }
.send-qr .qr { width: 180px; height: 180px; flex: none; background: #fff; border-radius: 12px; padding: 6px; }
.send-qr .qr svg { width: 100%; height: 100%; display: block; }
.send-qr b { display: block; font-size: 17px; }
.send-qr small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.4; }
.send-preview { white-space: pre-wrap; font: inherit; font-size: 14px; color: var(--muted); background: var(--raised); border-radius: 14px; padding: 12px 14px; margin: 12px 0 0; max-height: 160px; overflow: auto; }

/* ---- Fiche recette ---- */
.recipe-top { margin-bottom: 4px; }
.recipe-top .chip { background: var(--raised); }
.recipe-cols { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 22px; }
.recipe-ing { list-style: none; margin: 0; padding: 0; }
.recipe-ing li { padding: 7px 0; border-bottom: 1px solid var(--raised); font-size: 15px; }
.recipe-steps { margin: 0; padding-left: 22px; }
.recipe-steps li { margin-bottom: 10px; font-size: 15px; line-height: 1.45; }
.recipe-steps li::marker { color: var(--accent); font-weight: 800; }
.recipe-actions { margin-top: 18px; }
.recipe-actions .btn { display: inline-flex; align-items: center; }
.idea-main { cursor: pointer; }
@media (max-width: 700px) { .recipe-cols { grid-template-columns: 1fr; } }
.sheet:has(.recipe) { width: min(920px, 94vw); }

/* ---- Prix des circulaires dans la liste ---- */
.list li .txt { display: flex; flex-direction: column; gap: 2px; }
.list li .price { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent); background: none; padding: 2px 0; text-align: left; }
.list li .price.loading { color: var(--faint); font-weight: 500; }
.list li .price.none { display: none; }
.list-deals { font-size: 13px; color: var(--muted); padding: 6px 2px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.list-deals:empty { display: none; }
.list-deals b { color: var(--text); font-weight: 700; }
.offer { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--raised); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.offer.best { outline: 2px solid var(--accent); }
.offer img, .offer .noimg { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; }
.offer-main b { display: block; font-size: 16px; }
.offer-name { font-size: 13px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-main small { font-size: 12px; color: var(--faint); }
.offer-price { font-size: 20px; font-weight: 800; text-align: right; white-space: nowrap; }
.offer-price s { display: block; font-size: 12px; color: var(--faint); font-weight: 500; }

/* ---- Recette à cocher ---- */
.cklist { list-style: none; margin: 0; padding: 0; }
.cklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid var(--raised); cursor: pointer; font-size: 15px; line-height: 1.45; }
.cklist li:active { background: var(--raised); }
.cklist .ck { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; margin-top: 1px; }
.cklist .ck svg { width: 15px; height: 15px; opacity: 0; color: var(--accent-ink); }
.cklist li.on .ck { background: var(--accent); border-color: var(--accent); }
.cklist li.on .ck svg { opacity: 1; }
.cklist li.on .ck-txt { color: var(--faint); text-decoration: line-through; }
.ck-steps .num { color: var(--accent); }
.chip.info { background: var(--raised); color: var(--text); }
.recipe-top .text-btn { padding: 0 8px; }
.sheet:has(.recipe) { max-height: 90vh; }
.plan .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- Recherche de recettes et cœur ---- */
.idea-search { display: flex; align-items: center; gap: 6px; background: var(--raised); border-radius: 14px; padding: 2px 4px 2px 14px; margin-bottom: 10px; }
.idea-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 11px 0; font-size: 16px; }
.idea-search input::-webkit-search-cancel-button { display: none; }
.idea-search .icon-btn { width: 38px; height: 38px; }
.name-row { display: flex; gap: 10px; align-items: center; }
.name-row input { flex: 1; }
.fav-box { display: flex; align-items: center; gap: 6px; flex: none; }
.fav-txt { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.icon-btn.like.big-heart { width: 46px; height: 46px; background: var(--raised); }
.icon-btn.like.big-heart.on svg { fill: currentColor; }
.icon-btn.like.on svg { fill: currentColor; }

/* ---- Recherche Spotify ---- */
.music-search-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--raised); color: var(--muted); border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; margin: 12px 0 4px; text-align: left; }
.music-search-btn svg { width: 18px; height: 18px; }
.music-search .idea-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sr-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--raised); }
.sr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 4px; text-align: left; }
.sr-row { cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background .12s; }
.sr-row:active { background: var(--raised); }
.sr-row .icon-btn { flex: none; }
.sr-queries .chip { display: inline-flex; align-items: center; gap: 6px; }
.sr-queries .chip svg { width: 14px; height: 14px; opacity: .7; }
.sr-clear { margin: 12px 4px 4px; color: var(--muted); }
.sr-img { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--raised) center/cover; display: grid; place-items: center; color: var(--faint); }
.sr-img.round { border-radius: 50%; }
.sr-img svg { width: 20px; height: 20px; }
.sr-txt { min-width: 0; }
.sr-txt b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-txt small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Musique 1.9 : Sonos par pièce, groupes, destination ---------- */
.head-btns { display: flex; gap: 8px; }
.icon-btn.on { color: var(--accent); }
.room.grouped { grid-template-columns: 56px 1fr auto; }
.room .volume .vlabel { font-size: 12px; font-weight: 700; color: var(--faint); min-width: 44px; }
.room .members { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; padding: 6px 0 0 6px; border-top: 1px solid var(--raised-2); }
.member { display: grid; grid-template-columns: 36px 120px 1fr; align-items: center; gap: 8px; }
.member .mname { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .mute { width: 36px; height: 36px; color: var(--muted); }
.member .mute svg { width: 18px; height: 18px; }
.member .mute.on { color: var(--warn); }
.grp-opt .cbox { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--faint); display: grid; place-items: center; flex: none; }
.grp-opt .cbox.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.grp-opt .cbox svg { width: 16px; height: 16px; color: inherit !important; }
.grp-opt.busy { opacity: .45; pointer-events: none; }
.grp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dest-row { display: flex; align-items: center; gap: 8px; }
.dest-row .opt { flex: 1; min-width: 0; }
.dest-row .add { width: 48px; height: 48px; }
.np-dev-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.np-dev-row .np-device { margin-top: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np-group { width: 34px; height: 34px; }
.np-group svg { width: 18px; height: 18px; }
.music-search > .np-device { margin: 0 0 10px; }
.sr-filters { margin: 10px 0 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sr-filters .chip { white-space: nowrap; flex: none; }

/* ---------- Mode cellulaire (recettes partagées) ---------- */
body.phone { flex-direction: column; }
.phone main { flex: 1; min-height: 0; }
.phone .page { padding: 10px 10px 8px; flex-direction: column; overflow-y: auto; flex-wrap: nowrap; }
.phone .tabbar { flex: none; display: flex; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--raised); padding: 6px 4px 8px; }
.phone .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 18px; border-radius: 14px; color: var(--faint); font-size: 12px; font-weight: 700; }
.phone .tabbar button svg { width: 24px; height: 24px; }
.phone .tabbar button.active { color: var(--accent); background: var(--raised); }
.phone #page-soupers .col { flex: 1 1 auto; min-height: 0; }
.phone[data-tab=recipes] #page-soupers .col-week, .phone[data-tab=week] #page-soupers .col-meal-tools { display: none; }
.phone .flyers-card { display: none; }
.phone .card { padding: 14px; border-radius: 18px; }
.phone .card-head { flex-wrap: wrap; margin-bottom: 10px; }
.phone .week-nav h2 { min-width: 0; flex: 1; font-size: 19px; }
.phone .week-nav { width: 100%; }
.phone .week { grid-auto-rows: auto; }
.phone .meal-day { min-height: 60px; padding: 8px 12px; gap: 10px; }
.phone .md-day { width: 82px; font-size: 15px; }
.phone .md-name { font-size: 18px; white-space: normal; }
.phone .ideas-card { flex: 1; min-height: 0; }
.phone .ideas { margin-bottom: 8px; }
.phone .idea { padding: 10px 10px 10px 12px; gap: 6px; }
.phone .idea .btn { padding: 10px 12px; font-size: 14px; }
.phone .idea-name { font-size: 17px; }
.phone .sheet, .phone .sheet:has(.recipe) { width: 100vw; max-height: 92vh; padding: 18px 14px 26px; border-radius: 20px 20px 0 0; }
.phone .settings { columns: auto; display: block; height: 100%; overflow-y: auto; overflow-x: hidden; padding-bottom: 24px; } /* une seule colonne qui défile de haut en bas */
.phone .scan-row { grid-template-columns: 1fr; }
.phone .two { grid-template-columns: 1fr 1fr; }
.sheet-head { display: flex; align-items: flex-start; gap: 8px; }
.sheet-head h3 { flex: 1; min-width: 0; }
.sheet-x { display: none; }
.phone .sheet-x { display: grid; width: 40px; height: 40px; margin: -6px -6px 0 0; }
.phone .sheet-head h3 { font-size: 21px; }
.phone .tabbar { order: 2; border-top: 1px solid var(--raised); border-bottom: 0; }
.np-controls .shuffle { color: var(--faint); }
.np-controls .shuffle.on { color: var(--accent); background: var(--raised); }
.np-controls .shuffle svg { width: 22px; height: 22px; }
.link-row { display: flex; gap: 8px; align-items: center; }
.link-row input { flex: 1; min-width: 0; }
.link-row .btn { flex: none; }

/* Cellulaire : onglet Épicerie (la carte des listes de l'accueil, seule) */
.phone #page-accueil > .col-left, .phone #page-accueil > .col-mid, .phone #page-accueil .notes-card { display: none; }
.phone #page-accueil > .col-right { display: flex; flex: 1 1 auto; min-height: 0; width: 100%; }
.phone .lists-card { flex: 1; min-height: 0; }
.phone .lists-card .list { overflow-y: auto; }
.phone .tabbar button { padding: 6px 10px; }
.list-foot .row { display: flex; gap: 8px; }
.list-foot .row { flex-wrap: nowrap; flex: none; margin: 0; }
.list-foot .text-btn { flex: 1; min-width: 0; }
.phone .list-foot .btn { padding: 10px 14px; }
.pl-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 -6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.pl-head .text-btn { padding: 0; display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; }
.pl-head .text-btn svg { width: 16px; height: 16px; }
.pl .cover { display: grid; place-items: center; color: var(--faint); }
.pl .cover svg { width: 28px; height: 28px; }
.link-row input { background: var(--raised); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; color: var(--text); }
.link-row input:focus { border-color: var(--accent); }

/* ---------- Page Météo ---------- */
#page-meteo .mt-left { flex: 0 0 34%; }
#page-meteo .mt-right { flex: 1 1 66%; }
#weather { cursor: pointer; }
.mt-now { flex: none; gap: 14px; }
.mt-hero { display: flex; align-items: center; gap: 18px; }
.mt-big { width: 92px; height: 92px; flex: none; }
.mt-temp { font-family: var(--serif); font-weight: 800; font-size: 64px; line-height: 1; }
.mt-desc { font-size: 19px; font-weight: 700; margin-top: 4px; }
.mt-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.mt-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mt-tile { background: var(--raised); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.mt-l { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 6px; }
.mt-v { font-size: 20px; font-weight: 700; margin-top: 4px; white-space: nowrap; }
.mt-s { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.3; }
.wind-arrow { display: inline-block; color: var(--accent); font-size: 15px; line-height: 1; }
.mt-place { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; }
.mt-place svg { width: 14px; height: 14px; }
.mt-days { flex: 1; min-height: 0; }
.mt-dlist { display: flex; flex-direction: column; flex: 1; justify-content: space-between; overflow-y: auto; scrollbar-width: none; }
.mt-day { display: grid; grid-template-columns: 1.6fr 34px .8fr 1fr 30px 1.2fr 30px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--raised); font-size: 15px; }
.mt-day:last-child { border-bottom: 0; }
.mt-day .wx-icon { width: 32px; height: 32px; }
.mt-dname { font-weight: 700; min-width: 0; }
.mt-dname small, .mt-pop small, .mt-wind small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-pop { color: #8ab4e8; font-weight: 700; font-size: 14px; }
.mt-wind { font-size: 14px; font-weight: 600; }
.mt-lo { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.mt-hi { font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-day .bar { height: 6px; border-radius: 3px; background: var(--raised-2); position: relative; }
.mt-day .bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #7fb0e0, #e8a85c); }
.mt-radar { flex: 1.5; min-height: 0; }
.mt-radar .card-head .row { display: flex; align-items: center; gap: 8px; }
.mt-radar .chip { cursor: pointer; }
.mt-time { color: var(--muted); font-size: 14px; font-weight: 600; min-width: 150px; text-align: right; }
.mt-map { flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: #1d1f22; }
.mt-map .leaflet-control-attribution { background: rgba(15,13,11,.7); color: var(--faint); font-size: 10px; }
.mt-map .leaflet-control-attribution a { color: var(--muted); }
.mt-map .leaflet-bar a { background: var(--raised); color: var(--text); border-color: var(--raised-2); }
.mt-hours-slot { flex: 1; min-height: 0; display: flex; }
.mt-hours { flex: 1; min-height: 0; }
.mt-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.mt-legend i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.mt-legend i.t { background: #e8a85c; } .mt-legend i.p { background: #7fb0e0; }
.mt-chart-wrap { position: relative; flex: 1; min-height: 200px; }
.mt-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt-lab { position: absolute; top: 0; bottom: 0; width: 70px; margin-left: -35px; text-align: center; pointer-events: none; }
.mt-lab b { position: absolute; left: 0; right: 0; transform: translateY(-140%); font-size: 15px; }
.mt-lab-bot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; color: var(--muted); }
.mt-lab-bot .wx-icon { width: 26px; height: 26px; }
.mt-lab-bot .pop { color: #8ab4e8; font-weight: 700; min-height: 14px; white-space: nowrap; }
.mt-map.leaflet-container { background: #1d1f22; }
.mt-chart-wrap { min-height: 240px; }
.mt-lab.first { margin-left: 0; text-align: left; }
.mt-lab.last { margin-left: -70px; }
.mt-lab.first .mt-lab-bot { align-items: flex-start; }
.mt-lab.last .mt-lab-bot { align-items: flex-end; }
.mt-lab.first b { text-align: left; } .mt-lab.last b { text-align: right; }
.mt-lab-bot .amt { color: var(--faint); font-size: 11px; min-height: 13px; white-space: nowrap; }
.osm-dark { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.4); }
.mm-btn { padding: 10px 14px; font-size: 14px; }

/* ---------- Version Web (iPhone) ---------- */
.web { padding-top: env(safe-area-inset-top); }
.web .tabbar { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.web .sheet { padding-bottom: max(26px, env(safe-area-inset-bottom)); }

/* ---------- Page Caméras ---------- */
#page-cameras .cam-page { flex: 1; overflow-y: auto; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.cam-card { background: var(--raised); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; gap: 14px 16px; align-items: center; }
.cam-card.missing { opacity: .7; }
.cam-icon { width: 72px; height: 72px; border-radius: 18px; background: var(--raised-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.cam-icon img { width: 100%; height: 100%; object-fit: cover; }
.cam-icon svg { width: 34px; height: 34px; }
.cam-icon.sm { width: 40px; height: 40px; border-radius: 10px; }
.cam-icon.sm svg { width: 20px; height: 20px; }
.cam-txt b { display: block; font-size: 22px; font-family: var(--serif); font-weight: 800; }
.cam-txt small { color: var(--muted); font-size: 14px; }
.cam-btns { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.cam-btns .btn { flex: 1; padding: 14px; font-size: 16px; }
.cam-hint { margin-top: 16px; }
.cam-pick { margin-top: 10px; max-height: 55vh; overflow-y: auto; }
.cam-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 16px; }
.cam-search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* ---------- Page Garage ---------- */
#page-garage .gx-col { flex: 1 1 50%; overflow-y: auto; scrollbar-width: none; }
.gx-card { flex: none; gap: 12px; }
.gx-title { display: flex; align-items: center; gap: 10px; }
.gx-title svg { width: 26px; height: 26px; color: var(--accent); }
.gx-hero { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.gx-big { font-family: var(--serif); font-weight: 800; font-size: 56px; line-height: 1; }
.gx-sub { font-size: 17px; font-weight: 700; }
.gx-plug { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 4px 10px; }
.gx-plug.on { color: var(--ok); }
.gx-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--raised-2); overflow: hidden; }
.gx-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8fc79a, #e8a85c); border-radius: 4px; }
.gx-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gx-stat { background: var(--raised); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.gx-stat small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.gx-stat b { display: block; font-size: 16px; margin-top: 3px; }
.gx-stat.warn b { color: var(--warn); }
.gx-cmds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gx-cmds .btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; font-size: 14px; }
.gx-cmds .btn svg { margin: 0; width: 22px; height: 22px; }
.gx-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gx-card .msg { margin: 0; }
.gx-doorlist { display: flex; flex-direction: column; gap: 8px; }
.gx-door { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: var(--raised); border-radius: 16px; padding: 12px 14px; }
.gx-door b { display: block; font-size: 17px; }
.gx-door small { color: var(--ok); font-weight: 700; }
.gx-door.open small { color: var(--warn); }
.gx-door .btn { padding: 12px 22px; }
.gx-doors .card-head .row { display: flex; gap: 8px; }

/* ---------- Garage : nouveau design ---------- */
#page-garage { overflow-y: auto; scrollbar-width: none; }
.gx-wrap { flex: 1; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.gx-cars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.vh-card { padding: 0; overflow: hidden; }
.vh-hero { position: relative; height: 230px; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 70%), linear-gradient(180deg, var(--raised-2), var(--surface)); }
.vh-top { position: absolute; inset: 18px 18px auto 22px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.vh-top h2 { font-size: 26px; }
.vh-top small { color: var(--muted); font-size: 14px; font-weight: 600; }
.vh-tools { display: flex; gap: 6px; align-items: center; }
.vh-app { padding: 8px 12px; font-size: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px); }
.vh-tools .icon-btn { background: color-mix(in srgb, var(--surface) 70%, transparent); width: 40px; height: 40px; }
.vh-tools .icon-btn svg { width: 20px; height: 20px; }
.vh-pic { position: absolute; left: 0; right: 0; bottom: 0; top: 56px; display: flex; align-items: flex-end; justify-content: center; }
.vh-pic .veh-svg { width: 82%; max-height: 100%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.vh-pic img { position: absolute; inset: -56px 0 0 0; width: 100%; height: calc(100% + 56px); object-fit: cover; }
.vh-pic:has(img)::after { content: ''; position: absolute; inset: -56px 0 0 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 40%, transparent 70%, var(--surface)); }
.vh-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.vh-main { display: flex; align-items: center; gap: 18px; }
.vh-gauge { position: relative; width: 112px; height: 112px; flex: none; color: var(--text); }
.vh-gauge .ring { width: 100%; height: 100%; }
.vh-gauge-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.vh-gauge-txt b { font-family: var(--serif); font-size: 30px; font-weight: 800; line-height: 1; }
.vh-gauge-txt small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.vh-info { min-width: 0; }
.vh-range { font-family: var(--serif); font-weight: 800; font-size: 40px; line-height: 1; }
.vh-range small { font-family: var(--sans); font-size: 16px; color: var(--muted); font-weight: 600; }
.vh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vh-chip { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--raised); color: var(--muted); }
.vh-chip.ok { color: var(--ok); background: rgba(143,199,154,.12); }
.vh-chip.warn { color: var(--warn); background: rgba(233,138,108,.14); }
.vh-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vh-mini { background: var(--raised); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.vh-mini small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.vh-mini b { display: block; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-cmds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vh-cmd { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vh-cmd span { width: 62px; height: 62px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; color: var(--text); transition: transform .1s; }
.vh-cmd:active span { transform: scale(.94); }
.vh-cmd svg { width: 26px; height: 26px; }
.vh-cmd.accent span { background: var(--accent); color: var(--accent-ink); }
.vh-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vh-when { flex: 1; color: var(--faint); font-size: 13px; text-align: right; }
.vh-when.err { color: var(--warn); }
.vh-body .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-card { flex: none; }
.gd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.gd-tile { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 14px; align-items: center; background: var(--raised); border-radius: 18px; padding: 12px 14px; color: var(--ok); }
.gd-tile.open { color: var(--warn); }
.gd-art svg { width: 70px; height: 58px; display: block; }
.gd-txt b { display: block; font-size: 18px; color: var(--text); }
.gd-txt small { font-weight: 700; font-size: 14px; }
.gd-tile .btn { padding: 12px 22px; }
.gd-del { color: var(--faint); }
.gd-list { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.gd-txt { min-width: 0; } .gd-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: start; }
.gx-bottom .gd-list { grid-template-columns: 1fr; }
.club-card { gap: 12px; background: linear-gradient(135deg, rgba(143,199,154,.14), transparent 60%), var(--surface); }
.club-head { display: flex; align-items: center; gap: 14px; }
.club-head small { color: var(--muted); font-size: 14px; }
.club-badge { width: 52px; height: 52px; border-radius: 16px; background: rgba(143,199,154,.18); color: var(--ok); display: grid; place-items: center; flex: none; }
.club-badge svg { width: 28px; height: 28px; }
.club-card .hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.club-note { color: var(--faint); font-size: 12px; }
.wb-card { gap: 12px; }
.wb-live { display: flex; align-items: center; gap: 18px; }
.wb-power { width: 112px; height: 112px; border-radius: 50%; background: var(--raised); display: grid; place-content: center; text-align: center; flex: none; }
.wb-power b { font-family: var(--serif); font-size: 36px; font-weight: 800; line-height: 1; }
.wb-power small { color: var(--muted); font-weight: 700; }
.wb-power.on { background: radial-gradient(circle, rgba(143,199,154,.28), rgba(143,199,154,.08)); color: var(--ok); box-shadow: 0 0 0 3px rgba(143,199,154,.35); }
.wb-session { color: var(--muted); font-size: 14px; margin-top: 8px; }
.wb-ctrls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wb-amps { display: flex; align-items: center; gap: 10px; margin-left: auto; background: var(--raised); border-radius: 14px; padding: 4px; }
.wb-amps .icon-btn { width: 40px; height: 40px; background: var(--raised-2); }
.wb-amps b { display: block; font-size: 18px; text-align: center; }
.wb-amps small { color: var(--muted); font-size: 11px; }
.club-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--ok); }
.club-link svg { width: 16px; height: 16px; }
.vh-hero { height: 250px; }
.vh-pic img.cutout { position: static; inset: auto; width: auto; height: auto; max-width: 78%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.55)); margin-bottom: 6px; }
.vh-pic:has(img.cutout)::after { display: none; }
.wb-card .vh-gauge-txt small { text-transform: none; font-size: 13px; }
.mq-card { align-items: center; justify-content: center; background: radial-gradient(80% 110% at 50% 100%, rgba(42,143,212,.18), transparent 65%), var(--surface); }
.mq-btn { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 24px; border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.mq-disc { width: 168px; height: 168px; border-radius: 50%; display: block; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); transition: transform .12s ease; }
.mq-disc svg { width: 100%; height: 100%; display: block; }
.mq-btn:active .mq-disc { transform: scale(.94); }
.mq-label { font-size: 22px; font-weight: 700; color: var(--text); }
.mq-btn small { color: var(--muted); font-size: 13px; margin-top: -8px; }

/* Idées : filtres en deux rangées (provenance / catégories), nouveautés, catégories perso */
#idea-filters { margin-bottom: 4px; }
.filter-line { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin: 0 -2px; flex-wrap: nowrap; }
.filter-line::-webkit-scrollbar { display: none; }
.filter-line .chip { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.filter-btn svg { width: 16px; height: 16px; }
.filter-count { background: var(--accent-ink); color: var(--accent); border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.filter-btn:not(.on) .filter-count { background: var(--accent); color: var(--accent-ink); }
.active-f .x { font-weight: 800; opacity: .75; margin-left: 2px; }
.filter-sheet .chips { margin-bottom: 14px; }
.filter-actions { margin-top: 6px; position: sticky; bottom: -30px; background: var(--surface); padding: 10px 0 4px; }
.chip.sub { font-size: 13px; padding-left: 12px; padding-right: 12px; opacity: .92; }
.chip.sub::before { content: '↳ '; opacity: .6; }
.chip.new-chip:not(.on) { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.chip.custom:not(.on) { box-shadow: inset 0 0 0 1px var(--raised-2); }
.chip.add-chip { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.chip-input { width: 190px; border-radius: 999px; padding: 6px 14px; font-size: 14px; border: 1px dashed var(--muted); background: transparent; color: var(--text); }
.new-badge { display: inline-block; margin-left: 8px; vertical-align: middle; font-family: var(--sans, inherit); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 8px; }
.cat-edit { margin-top: 12px; align-items: center; }
.cat-edit .sheet-label { margin: 0 6px 0 0; }

/* Fenêtres (fiches) sur cellulaire : toujours visibles en entier sur iPhone (barres de Safari) et
   bouton ✕ toujours à portée, même après avoir fait défiler une longue recette */
.sheet { max-height: 78dvh; }
.sheet:has(.recipe) { max-height: 90dvh; }
.phone .sheet, .phone .sheet:has(.recipe) { max-height: calc(100dvh - 24px - env(safe-area-inset-top)); }
.phone .sheet-head { position: sticky; top: -18px; z-index: 3; background: var(--surface); margin: -18px -14px 6px; padding: 14px 14px 8px; border-radius: 20px 20px 0 0; }
.phone .sheet-x { margin: 0; background: var(--raised); border-radius: 50%; flex: none; }

/* Sorento hybride rechargeable : deux ronds (essence et batterie) avec leur autonomie */
.vh-ring-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.vh-ring-km { font-size: 15px; font-weight: 700; color: var(--muted); }
.vh-range-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 4px 0 8px; }
.vh-main:has(.vh-ring-col + .vh-ring-col) { gap: 14px; flex-wrap: wrap; }
.vh-main:has(.vh-ring-col + .vh-ring-col) .vh-gauge { width: 100px; height: 100px; }

/* ---------- Soupers : recettes en pastilles photo ---------- */
#page-soupers .col-meal-tools { flex: 0 0 42%; }
.ideas-card { container-type: inline-size; }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 12px; align-content: start; }
@container (max-width: 330px) { .ideas { grid-template-columns: 1fr; } }
.ideas .empty-state { grid-column: 1 / -1; }

.rphoto { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 30% 20%, hsl(var(--hue) 45% 34%), hsl(calc(var(--hue) + 40) 40% 16%)); display: grid; place-items: center; }
.rphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rphoto-art { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }

.rtile { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--raised);
  box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .12s ease; }
.rtile:active { transform: scale(.97); }
.rtile::before { content: ''; display: block; padding-top: 100%; }
.rtile-img { position: absolute; inset: 0; }
.rtile-img .rphoto-art { font-size: clamp(34px, 17cqi, 72px); margin-bottom: 26%; }
.rtile-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 10px; }
.rtile-top .new-badge { margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.rtile-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,16,12,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; }
.rtile-btn svg { width: 19px; height: 19px; }
.rtile-btn.like.on { color: #ff6b6b; }
.rtile-btn.like.on svg { fill: currentColor; }
.rtile-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 40px 10px 10px 14px;
  background: linear-gradient(to top, rgba(10,8,6,.92) 0%, rgba(10,8,6,.7) 55%, transparent 100%); }
.rtile-txt { flex: 1; min-width: 0; }
.rtile-name { font-family: var(--serif); font-weight: 800; font-size: 19px; line-height: 1.15; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.rtile-sub { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.75); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtile-pick { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.rtile-pick svg { width: 20px; height: 20px; }
.phone .rtile-name { font-size: 15.5px; -webkit-line-clamp: 3; }
.phone .rtile-foot { padding: 34px 10px 10px 12px; }
.phone .rtile { border-radius: 16px; }
.phone .rtile-btn, .phone .rtile-pick { width: 34px; height: 34px; }

/* Semaine : petite photo devant le nom du souper */
.md-photo { width: 64px; height: 64px; border-radius: 14px; flex: none; align-self: center; }
.md-photo .rphoto-art { font-size: 32px; }
.meal-day { padding-top: 6px; padding-bottom: 6px; }
.phone .md-photo { width: 48px; height: 48px; border-radius: 12px; }
.phone .md-photo .rphoto-art { font-size: 24px; }

/* Fiche recette : grande photo en haut */
.recipe-hero { height: 220px; border-radius: 18px; margin: 0 0 14px; }
.recipe-hero .rphoto-art { font-size: 88px; }
.phone .recipe-hero { height: 180px; }
.recipe-hero.no-img { height: 96px; }
.recipe-hero.no-img .rphoto-art { font-size: 54px; }

/* Ajouter / modifier : photo du plat */
.pic-edit { display: flex; gap: 14px; align-items: center; }
.pic-edit > img, .pic-edit > .pic-empty { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; }
.pic-edit .rphoto-art { font-size: 40px; }
.pic-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pic-btns .hint { margin: 0; }
/* Tablette : pastilles un peu moins hautes pour voir deux rangées ; circulaires plus compactes */
body:not(.phone) .rtile::before { padding-top: 78%; }
body:not(.phone) .flyers-card { padding-top: 14px; padding-bottom: 14px; }
body:not(.phone) .flyers-card .card-head { margin-bottom: 6px; }

/* Semaine : chaque soir planifié porte la photo de sa recette sur toute la largeur */
.md-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.meal-day.set { position: relative; overflow: hidden; min-height: 112px; }
.meal-day.set .md-photo { position: absolute; inset: 0; width: 100%; height: 100%; align-self: stretch; border-radius: 0; z-index: 0; }
.meal-day.set .md-photo.no-img .rphoto-art { font-size: 64px; position: absolute; right: 7%; top: 50%; transform: translateY(-50%); }
.meal-day.set::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,8,6,.9) 0%, rgba(10,8,6,.62) 50%, rgba(10,8,6,.12) 100%); }
.meal-day.set > :not(.md-photo) { position: relative; z-index: 2; }
.meal-day.set .md-name { color: #fff; font-size: 24px; white-space: normal; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.meal-day.set .md-day, .meal-day.set .md-day span { color: #fff; }
.meal-day.set.today .md-day { color: var(--accent); }
.meal-day.set .md-tags span { background: rgba(255,255,255,.16); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.phone .meal-day.set { min-height: 96px; }
.phone .meal-day.set .md-name { font-size: 19px; }
.phone .meal-day.set .md-photo.no-img .rphoto-art { font-size: 46px; }

/* Cellulaire : onglets Ingrédients / Préparation dans la fiche recette */
.recipe-tabs { display: none; }
.phone .recipe-tabs { display: flex; gap: 4px; background: var(--raised); border-radius: 14px; padding: 4px; margin: 4px 0 10px;
  position: sticky; top: 44px; z-index: 2; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.phone .recipe-tabs button { flex: 1; padding: 11px 8px; border-radius: 11px; font-weight: 700; font-size: 15px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.phone .recipe-tabs button small { font-size: 12px; font-weight: 800; background: var(--raised-2); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.phone .recipe-tabs button.on { background: var(--accent); color: var(--accent-ink); }
.phone .recipe-tabs button.on small { background: rgba(0,0,0,.15); color: var(--accent-ink); }
.phone .recipe-cols[data-show=ing] .rc-steps, .phone .recipe-cols[data-show=steps] .rc-ing { display: none; }
.phone .recipe-cols .sheet-label { display: none; }

/* Notes sur 10 */
.note-row { background: var(--raised); border-radius: 16px; padding: 12px 14px; margin: 6px 0 12px; }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.note-head .sheet-label { margin: 0; }
.note-avg { font-weight: 800; font-size: 16px; color: var(--accent); }
.note-avg.good { color: #7fc7a1; }
.note-avg.bad { color: #e98a6c; }
.note-people { color: var(--muted); font-size: 13px; font-weight: 600; }
.note-head .hint { margin: 0; }
.note-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.note-btn { height: 40px; border-radius: 10px; background: var(--raised-2); color: var(--muted); font-weight: 800; font-size: 15px; }
.note-btn.on { background: color-mix(in srgb, var(--accent) 45%, var(--raised-2)); color: var(--text); }
.note-btn.cur { background: var(--accent); color: var(--accent-ink); }
.phone .note-btn { height: 36px; font-size: 14px; border-radius: 9px; }
.phone .note-scale { gap: 4px; }
.note-badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(20,16,12,.65); color: #ffd27a;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.note-badge.good { color: #8fe0b3; }
.note-badge.bad { color: #ff9b7e; }

/* Invitations (lien ou code QR) */
.invite-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: color-mix(in srgb, var(--accent) 14%, var(--raised)); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; color: var(--text); }
.invite-btn > svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.invite-btn b { display: block; font-size: 16px; }
.invite-btn small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.acct { display: flex; align-items: center; gap: 12px; background: var(--raised); border-radius: 16px; padding: 12px 14px; margin: 4px 0 12px; }
.acct-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px; }
.acct-txt { flex: 1; min-width: 0; display: grid; }
.acct-txt small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-out { flex: none; padding: 10px 14px; font-size: 14px; }
.invite-banner { display: grid; gap: 6px; background: color-mix(in srgb, var(--accent) 16%, var(--raised)); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.invite-banner span, .invite-banner small { color: var(--muted); }
.invite-sheet { display: grid; gap: 12px; }
.invite-sheet .opt { background: var(--raised); }
.invite-sheet .send-qr small { display: block; color: var(--muted); }
.invite-code { font: 700 30px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 3px; margin: 6px 0; }
.invite-sheet .row .btn { display: inline-flex; align-items: center; gap: 6px; }
.invite-sheet .row .btn svg { width: 18px; height: 18px; }
body.phone .invite-sheet .send-qr { flex-direction: column; text-align: center; }

/* Roomba */
.roomba-card { flex: none; background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--surface); }
.roomba-card .head-btns { display: flex; align-items: center; gap: 10px; }
.rb-pill { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--raised); color: var(--muted); }
.rb-pill.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--raised)); }
.rb-pill.err { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--raised)); }
.rb-hero { display: flex; align-items: center; gap: 20px; margin: 0 0 14px; }
.rb-hero .rb-state { flex: 1; }
.rb-bot { position: relative; width: 108px; height: 108px; flex: none; }
.rb-bot-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rb-track { fill: none; stroke: var(--raised-2); stroke-width: 7; }
.rb-level { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .6s ease; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ok) 45%, transparent)); }
.rb-t-low .rb-level { stroke: #e8b85c; }
.rb-t-bad .rb-level { stroke: var(--warn); }
.rb-t-live .rb-level { stroke: var(--accent); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 55%, transparent)); }
.rb-shell { fill: #121010; stroke: #3a332b; stroke-width: 1.5; }
.rb-top { fill: #1e1a17; stroke: #2f2924; stroke-width: 1; }
.rb-bumper { fill: none; stroke: #4a4138; stroke-width: 3; stroke-linecap: round; }
.rb-btn { fill: #2b2621; stroke: #4d443a; stroke-width: 1.2; }
.rb-led { fill: var(--ok); filter: drop-shadow(0 0 3px var(--ok)); }
.rb-t-bad .rb-led { fill: var(--warn); filter: drop-shadow(0 0 3px var(--warn)); }
.rb-t-live .rb-led { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.rb-empty .rb-led { fill: var(--faint); filter: none; }
.rb-grip { stroke: #2f2924; stroke-width: 2.5; stroke-linecap: round; }
.rb-body { transform-origin: 60px 60px; }
.rb-spin .rb-body { animation: rbwander 6s ease-in-out infinite; }
.rb-spin::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: rbwave 2.4s ease-out infinite; }
@keyframes rbwander { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes rbwave { 0% { transform: scale(.75); opacity: .5; } 100% { transform: scale(1.12); opacity: 0; } }
.rb-charge { position: absolute; right: 4px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #10200f; box-shadow: 0 0 0 4px var(--surface); }
.rb-charge .rb-ico svg { width: 17px; height: 17px; }
.rb-state { display: grid; gap: 4px; min-width: 0; }
.rb-state > b { font-family: var(--serif); font-weight: 800; font-size: 25px; line-height: 1.15; }
.rb-state > small { color: var(--muted); font-size: 15px; }
.rb-badtxt { color: var(--warn); }
.rb-live::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 5px; animation: rbpulse 1.4s ease-in-out infinite; }
@keyframes rbpulse { 50% { opacity: .25; } }
.rb-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.rb-meta b { color: var(--text); font-weight: 700; }
.rb-ico { display: inline-grid; place-items: center; }
.rb-ico svg { width: 22px; height: 22px; display: block; }
.rb-alert { display: flex; align-items: center; gap: 10px; margin-top: -2px; background: color-mix(in srgb, var(--warn) 15%, var(--raised)); color: var(--text); border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; font-weight: 600; font-size: 14.5px; }
.rb-alert .rb-ico { color: var(--warn); }
.rb-acts { display: flex; gap: 14px; flex: none; }
.rb-act { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px; -webkit-tap-highlight-color: transparent; }
.rb-act-disc { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--raised-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 14px rgba(0,0,0,.28); transition: transform .12s ease; }
.rb-act.primary .rb-act-disc { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.rb-act:active .rb-act-disc { transform: scale(.92); }
.rb-act-lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.rb-act.primary .rb-act-lbl { color: var(--text); }
.rb-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--raised); }
.rb-rooms-lbl { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.rb-add { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--muted); }
.rb-add svg { width: 16px; height: 16px; }
.rb-room { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 11px; border-radius: 14px; background: var(--raised); font-weight: 700; font-size: 14.5px; border: 1px solid transparent; transition: border-color .15s, transform .12s; }
.rb-room .rb-ico { color: var(--accent); }
.rb-room .rb-ico svg { width: 18px; height: 18px; }
.rb-room:active { transform: scale(.96); border-color: var(--accent); }
.rb-hint { color: var(--faint); font-size: 13.5px; }
.rb-setup-btn { width: 100%; }
.rb-setup { display: grid; gap: 12px; }
.rb-setup .opt { background: var(--raised); }
.rb-setup .msg:empty { display: none; }
.rb-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--text); }

/* Sites de recettes */
.site-list { display: grid; gap: 8px; margin: 4px 0 14px; }
.site-row { display: flex; align-items: center; gap: 12px; background: var(--raised); border-radius: 14px; padding: 8px 10px 8px 14px; }
.site-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.site-txt { flex: 1; min-width: 0; display: grid; }
.site-txt .site-name { background: transparent; border: 0; padding: 2px 0; font-weight: 700; font-size: 16px; color: var(--text); width: 100%; }
.site-txt small { color: var(--muted); font-size: 12.5px; }
.site-add { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; margin-bottom: 12px; }
.phone .site-add { grid-template-columns: 1fr; }

/* « Pas pour nous » */
.rtile-btn.hide svg, .rtile-btn.unhide svg { width: 18px; height: 18px; }
.rtile-top .rtile-btn.hide { margin-right: 6px; }
.rtile-top .rtile-btn.unhide { margin-right: 6px; color: var(--ok); }
.undo-bar { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 18px; background: var(--raised-2); color: var(--text); border-radius: 14px; padding: 12px 14px 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.45); font-weight: 600; max-width: calc(100vw - 32px); }
.undo-bar button { color: var(--accent); font-weight: 800; padding: 6px 8px; }
.phone .undo-bar { bottom: 88px; }
.undo-bar { width: max-content; }
.undo-bar span { flex: 1; }
.phone .undo-bar { left: 16px; right: 16px; transform: none; width: auto; }
.site-add input { background: var(--raised); color: var(--text); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; width: 100%; min-width: 0; }
.site-add input:focus { border-color: var(--accent); }
.site-add input::placeholder { color: var(--faint); }
.app-version { text-align: center; margin: 18px 0 8px; }

/* Kia : recharge en cours */
.vh-gauge-wrap { position: relative; }
.vh-charging .vh-gauge { filter: drop-shadow(0 0 10px rgba(111,224,160,.55)); animation: vhglow 2.2s ease-in-out infinite; }
@keyframes vhglow { 50% { filter: drop-shadow(0 0 20px rgba(111,224,160,.95)); } }
.vh-bolt { position: absolute; right: -10px; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #6fe0a0; color: #0f2a1a; box-shadow: 0 0 0 4px var(--surface), 0 0 16px rgba(111,224,160,.8); animation: vhbolt 1.6s ease-in-out infinite; }
.vh-bolt .bolt-ico svg { width: 19px; height: 19px; display: block; }
@keyframes vhbolt { 50% { transform: scale(1.12); box-shadow: 0 0 0 4px var(--surface), 0 0 26px rgba(111,224,160,1); } }
.vh-charging .vh-ring-km { color: #6fe0a0; }
.vh-chip.charge { display: inline-flex; align-items: center; gap: 5px; color: #6fe0a0; background: rgba(111,224,160,.14); }
.vh-chip.charge .bolt-ico svg { width: 14px; height: 14px; display: block; }

/* Retirer une pastille de catégorie (appui long) */
#idea-filters .chip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.chip.removing { position: relative; animation: chipwiggle .35s ease-in-out infinite alternate; padding-right: 34px; }
@keyframes chipwiggle { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.chip-x { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e5734f; color: #fff; font-weight: 800; font-size: 16px; line-height: 1; }

/* Appui long sur une tuile de recette */
.rtile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rtile.removing { animation: chipwiggle .35s ease-in-out infinite alternate; }
.rtile-del { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(15,12,10,.78); backdrop-filter: blur(2px); border-radius: inherit; color: #fff; font-weight: 800; font-size: 15px; text-align: center; padding: 10px; }
.rtile-del-btn { width: 64px; height: 64px; border-radius: 50%; background: #e5734f; color: #fff; font-size: 36px; font-weight: 700; line-height: 1; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
/* Tablette : 6 idées visibles (3 × 2) */
body:not(.phone) .ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body:not(.phone) .ideas .rtile-name { font-size: 16px; }
body:not(.phone) .ideas { grid-auto-rows: minmax(210px, 1fr); align-content: stretch; }
body:not(.phone) .ideas .rtile::before { padding-top: 0; }
body:not(.phone) .ideas .rtile-btn, body:not(.phone) .ideas .rtile-pick { width: 34px; height: 34px; }
body:not(.phone) .ideas .rtile-top { gap: 4px; padding: 8px; }

/* Choisir un souper : petites tuiles avec photo */
.mtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
body:not(.phone) .mtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mtile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--raised); text-align: left; padding: 0; }
.mtile:active { transform: scale(.96); }
.mtile-img { position: absolute; inset: 0; }
.mtile-img .rphoto-art { font-size: 34px; margin-bottom: 30%; }
.mtile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px; font-family: var(--serif); font-weight: 800; font-size: 14px; line-height: 1.15; color: #fff;
  background: linear-gradient(to top, rgba(10,8,6,.92), rgba(10,8,6,.6) 60%, transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-label { display: flex; align-items: center; justify-content: space-between; }
.row-label .text-btn { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.row-label .text-btn svg { width: 15px; height: 15px; }

/* ===== Circulaires ===== */
.fly-page { height: 100%; overflow-y: auto; scrollbar-width: none; padding-bottom: 20px; }
.fly-page::-webkit-scrollbar { display: none; }
.fly-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 4px 14px; }
.fly-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 4px 14px; }
.fly-head h2 { font-family: var(--serif); font-weight: 800; font-size: 30px; margin: 0; }
.fly-empty { padding: 26px; color: var(--muted); }
.fly-covers { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.fly-covers::-webkit-scrollbar { display: none; }
.fly-cover { position: relative; flex: none; width: 190px; height: 260px; border-radius: 22px; overflow: hidden; scroll-snap-align: start; text-align: left; color: #fff;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--brand) 85%, #fff 15%), color-mix(in srgb, var(--brand) 60%, #000 40%));
  box-shadow: 0 12px 28px rgba(0,0,0,.35); transition: transform .12s ease; padding: 0; }
.fly-cover:active { transform: scale(.97); }
.fly-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fly-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, transparent 70%); }
.fly-cover.no-thumb .fly-shade { background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%); }
.fly-logo { position: absolute; top: 12px; left: 12px; width: 62px; height: 62px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.fly-logo img { width: 86%; height: 86%; object-fit: contain; }
.fly-logo span { font-weight: 900; font-size: var(--lg, 18px); color: var(--brand); letter-spacing: -.5px; }
.fly-logo { --lg: 22px; }
.fly-logo.small { --lg: 17px; }
.fly-cover.no-thumb .fly-logo { top: 50%; left: 50%; transform: translate(-50%, -70%); width: 104px; height: 104px; border-radius: 28px; }
.fly-cover.no-thumb .fly-logo { --lg: 34px; }
.fly-logo.small { position: static; width: 52px; height: 52px; border-radius: 14px; flex: none; }
.fly-info { position: absolute; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.fly-info b { font-size: 20px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.fly-info small { font-size: 12.5px; color: rgba(255,255,255,.82); }
.fly-sec { margin: 6px 4px 20px; }
.fly-sec h3 { font-family: var(--serif); font-weight: 800; font-size: 23px; margin: 0 0 10px; }
.deal-row { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.deal-row::-webkit-scrollbar { display: none; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.deal-card { position: relative; background: var(--raised); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.deal-img { height: 130px; background: #fff; display: grid; place-items: center; }
.deal-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.deal-pct { position: absolute; top: 8px; left: 8px; background: #e5484d; color: #fff; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.deal-add { position: absolute; top: 96px; right: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.deal-add svg { width: 20px; height: 20px; }
.deal-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.deal-price { font-weight: 800; font-size: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.deal-price s { font-weight: 600; font-size: 13px; color: var(--muted); }
.deal-name { font-size: 13.5px; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11.5px; color: var(--muted); }
.deal-store { padding: 2px 7px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 22%, var(--raised-2)); color: var(--text); font-weight: 700; }
.deal-low { padding: 2px 7px; border-radius: 8px; background: rgba(111,224,160,.15); color: #6fe0a0; font-weight: 700; }
.fly-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mtile-deal { position: absolute; top: 8px; left: 8px; right: 8px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(229,72,77,.92); padding: 3px 7px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: fit-content; max-width: calc(100% - 16px); }
.cmp-results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
.cmp-results > .hint, .cmp-refine { grid-column: 1 / -1; }
.phone .cmp-results { grid-template-columns: minmax(0, 1fr); }
.cmp-store, .cmp-results > * { min-width: 0; }
.cmp-refine { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.cmp-refine .chip, .cmp-refine .hint { flex: none; }
.fly-sec { min-width: 0; }
.cmp-store .deal-row { grid-auto-columns: 140px; }
.cmp-store { background: var(--raised); border-radius: 16px; padding: 10px 12px 12px; }
.cmp-store-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cmp-store-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.cmp-store-head b { flex: 1; }
.cmp-store-head span { font-weight: 800; color: var(--ok, #6fe0a0); }
.cmp-store .deal-row { padding-bottom: 2px; }
.cmp-store-head span.other { color: var(--muted); }
.cmp-store .deal-card.other { opacity: .55; }
.cmp-refine { align-items: center; margin: 0 0 2px; }
.cmp-refine .hint { margin: 0 4px 0 2px; }
.fly-note { margin: 0 6px; }
.sheet.wide { width: min(1100px, 96vw); max-height: 88vh; }
.fly-sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.fly-sheet-head > div { flex: 1; display: grid; }
.fly-sheet-head small { color: var(--muted); }
.fly-search input { width: 100%; background: var(--raised); border: 0; border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--text); margin-bottom: 10px; }
.fly-sheet .chips { margin-bottom: 12px; }
.recipe-deals { display: flex; gap: 10px; align-items: flex-start; background: rgba(229,72,77,.12); border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.recipe-deals svg { width: 20px; height: 20px; color: #ff7b7f; flex: none; margin-top: 2px; }
.recipe-deals b { display: block; color: #ff9a9d; }
.list-group { list-style: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 4px 4px !important; background: none !important; border: 0 !important; }
.phone .fly-page { padding: 0 2px 20px; }
.phone .fly-cover { width: 150px; height: 210px; }
.phone .deal-row { grid-auto-columns: 150px; }
.phone .fly-recipes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.phone .mtile-deal { font-size: 10px; padding: 2px 5px; top: 6px; left: 6px; }
#list li.list-group { font-size: 12px; font-weight: 800; letter-spacing: .12em; padding: 14px 4px 2px; min-height: 0; border: 0; color: var(--muted); }

/* Ajouter un magasin */
.fly-add { background: transparent !important; border: 2.5px dashed color-mix(in srgb, var(--muted) 60%, transparent); box-shadow: none; color: var(--muted); display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.fly-add-plus { width: 64px; height: 64px; border-radius: 50%; border: 2.5px dashed currentColor; display: grid; place-items: center; font-size: 36px; font-weight: 300; line-height: 1; }
.fly-add b { font-size: 15px; }
.fly-cover.removing { animation: chipwiggle .35s ease-in-out infinite alternate; }
.fly-del { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(15,12,10,.75); color: #fff; font-weight: 800; }
.store-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.store-opt { display: flex; align-items: center; gap: 10px; background: var(--raised); border-radius: 14px; padding: 10px; text-align: left; }
.store-opt span { font-weight: 700; flex: 1; }
.store-opt small { color: var(--muted); font-size: 11px; }
.store-opt .fly-logo.small { width: 44px; height: 44px; border-radius: 12px; }

/* Inventaire et Tâches */
.lists-card[data-list="inventory"] #list-reebee { display: none; }
.recipe-pantry { display: flex; gap: 10px; align-items: flex-start; background: rgba(111,224,160,.12); border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.recipe-pantry b { display: block; color: #8fe0b0; }
.inv-tag { color: #8fe0b0; font-size: 12px; }
.ask-bar { gap: 10px; flex-wrap: wrap; }
.ask-bar button { white-space: nowrap; }
.tasks-page { height: 100%; display: flex; justify-content: center; padding: 0 0 10px; }
.tasks-card { width: min(760px, 100%); height: 100%; display: flex; flex-direction: column; }
.tasks-card .list { flex: 1; overflow-y: auto; }
.phone .tasks-page { height: auto; }
.phone .tabbar button span { font-size: 11px; }
#page-taches .tasks-page { flex: 1; width: 100%; }
body:not(.phone) .tasks-card { width: min(900px, 100%); margin: 0 auto; padding: 28px 32px; }
body:not(.phone) .tasks-card h2 { font-size: 30px; }
body:not(.phone) .tasks-card .list li { font-size: 19px; padding: 14px 6px; }
/* Article d'épicerie venu d'une circulaire : pastille du magasin + prix */
.list li .deal-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 0; background: none; border: 0; font: inherit; font-size: 13.5px; color: var(--text); text-align: left; }
.deal-tag-st { --brand: var(--accent); display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-weight: 700; font-size: 12.5px; background: color-mix(in srgb, var(--brand) 22%, var(--raised-2)); }
.deal-tag-st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.deal-tag b { color: var(--accent); font-weight: 800; }
.deal-tag s { color: var(--faint); font-size: 12px; }
.deal-tag em { font-style: normal; font-weight: 800; font-size: 11.5px; color: #fff; background: rgba(229,72,77,.9); padding: 1px 6px; border-radius: 6px; }

/* ---------- Thème clair ---------- */
:root[data-theme="light"] {
  /* Atable : thème clair */
  --bg: #f6f3ee;
  --surface: #ffffff;
  --raised: #f2eee7;
  --raised-2: #e8e2d8;
  --line: #ddd6cb;
  --text: #1d2a2a;
  --muted: #566664;
  --faint: #879492;
  --accent: #1f6f6a;
  --accent-ink: #ffffff;
  --coral: #e9785b;
  --ok: #2f8a5a;
  --warn: #c4573a;
  color-scheme: light;
}
:root[data-theme="light"] .card, :root[data-theme="light"] .sheet { box-shadow: 0 1px 2px rgba(60,40,20,.06), 0 6px 20px rgba(60,40,20,.06); }
:root[data-theme="light"] .deal-low { background: rgba(63,143,82,.14); color: #2f7a42; }
:root[data-theme="light"] .recipe-deals { background: rgba(229,72,77,.09); }
:root[data-theme="light"] .recipe-deals b { color: #b8343a; }
:root[data-theme="light"] .cmp-store-head span { color: var(--ok); }
:root[data-theme="light"] #screensaver { background: #000; color: #f4ede3; }

/* ---------- Mises à jour, rappels, état des services, sauvegardes ---------- */
.update-bar, .rem-bar { position: fixed; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px;
  background: var(--raised-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35); max-width: min(640px, calc(100vw - 24px)); font-size: 15px; }
.update-bar { bottom: 22px; }
.update-bar .btn { padding: 8px 14px; }
.rem-bar { top: 18px; align-items: flex-start; border-left: 4px solid var(--accent); }
.rem-bar > div { display: grid; gap: 2px; flex: 1; }
.rem-bar span { color: var(--muted); font-size: 14px; }
.update-bar .icon-btn, .rem-bar .icon-btn { font-size: 22px; width: 36px; height: 36px; flex: none; }
.phone .update-bar { bottom: calc(86px + env(safe-area-inset-bottom)); }
.svc-list { display: grid; gap: 6px; }
.svc-row { display: flex; align-items: center; gap: 12px; background: var(--raised); border-radius: 12px; padding: 9px 12px; }
.svc-row > div { display: grid; gap: 1px; min-width: 0; }
.svc-row small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.svc-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); }
.svc-row.bad { background: color-mix(in srgb, var(--warn) 14%, var(--raised)); }
.svc-row.bad .svc-dot { background: var(--warn); color: #fff; }
.has-alert { position: relative; }
.has-alert::after { content: ''; position: absolute; top: 8px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--bg); }
.rem-list { display: grid; gap: 4px; }
.rem-list .switch > span { display: grid; gap: 2px; }
.rem-list .switch small { margin: 0; }
.due-chip { align-self: flex-start; margin-top: 3px; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--raised-2); color: var(--muted); }
.due-chip.today { background: color-mix(in srgb, var(--accent) 22%, var(--raised-2)); color: var(--text); }
.due-chip.late { background: color-mix(in srgb, var(--warn) 25%, var(--raised-2)); color: var(--text); }
.list li .due-btn { opacity: .55; }
.bk-list { display: grid; gap: 14px; }
.bk-dev { display: grid; gap: 6px; }
.bk-dev h3 { margin: 4px 0 2px; font-size: 15px; }
.bk-row { display: grid; gap: 2px; text-align: left; background: var(--raised); border-radius: 12px; padding: 10px 14px; }
.bk-row small { color: var(--muted); }
.msg { white-space: pre-line; }

/* ---------- Mode cuisine ---------- */
.cook { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; padding: 18px 26px calc(18px + env(safe-area-inset-bottom)); gap: 12px; }
.cook-head { display: flex; align-items: center; gap: 14px; }
.cook-head > div:first-child { flex: 1; display: grid; min-width: 0; }
.cook-head small { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.cook-head b { font-family: var(--serif); font-weight: 800; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-count { color: var(--muted); font-weight: 700; white-space: nowrap; }
.cook-x { width: 48px; height: 48px; }
.cook-prog { height: 6px; border-radius: 3px; background: var(--raised); position: relative; overflow: hidden; flex: none; }
.cook-prog::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); border-radius: 3px; transition: width .25s ease; }
.cook-timers { display: none; gap: 10px; flex-wrap: wrap; }
.cook-timers.on { display: flex; }
.cook-timer { display: flex; align-items: center; gap: 10px; background: var(--raised); border-radius: 14px; padding: 6px 6px 6px 14px; }
.cook-timer b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cook-timer span { color: var(--muted); font-size: 13px; }
.cook-timer.done { background: var(--accent); color: var(--accent-ink); animation: cookPulse 1s ease-in-out infinite; }
.cook-timer.done span { color: inherit; }
@keyframes cookPulse { 50% { transform: scale(1.04); } }
.cook-main { flex: 1; display: flex; gap: 22px; min-height: 0; }
.cook-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; overflow-y: auto; touch-action: pan-y; padding: 10px 4px; }
.cook-step { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.4; font-weight: 500; user-select: text; }
.cook-tbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.cook-tbtns .btn { font-size: 18px; padding: 12px 20px; }
.cook-ing { display: none; width: min(360px, 40vw); overflow-y: auto; background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.cook.show-ing .cook-ing { display: block; }
.cook-ing h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 800; }
.cook-ing ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cook-ing li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; font-size: 17px; cursor: pointer; }
.cook-ing li .ck { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: transparent; margin-top: 1px; }
.cook-ing li .ck svg { width: 14px; height: 14px; }
.cook-ing li.on { color: var(--faint); text-decoration: line-through; }
.cook-ing li.on .ck { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cook-foot { display: flex; gap: 14px; }
.cook-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 66px; border-radius: 18px; background: var(--raised); font-size: 19px; font-weight: 700; }
.cook-nav.next { background: var(--accent); color: var(--accent-ink); }
.cook-nav:disabled { opacity: .35; }
.cook-nav svg { width: 24px; height: 24px; }
.cook-mini { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.phone .cook-mini { bottom: calc(90px + env(safe-area-inset-bottom)); }
.cook-mini-t { display: flex; align-items: center; gap: 8px; background: var(--raised-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.cook-mini-t small { color: var(--muted); font-weight: 600; }
.cook-mini-t.done { background: var(--accent); color: var(--accent-ink); animation: cookPulse 1s ease-in-out infinite; }
.phone .cook { padding: calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); }
.phone .cook-head b { font-size: 20px; }
.phone .cook-count { display: none; }
.phone .cook-step { font-size: 24px; }
.phone .cook-ing { position: absolute; inset: 70px 12px 96px; width: auto; z-index: 2; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.phone .cook-nav { min-height: 58px; font-size: 17px; }
.welcome { display: grid; gap: 14px; }
.wel-pt { display: flex; gap: 14px; align-items: flex-start; background: var(--raised); border-radius: 14px; padding: 12px 14px; }
.wel-pt > span { font-size: 26px; line-height: 1; }
.wel-pt > div { display: grid; gap: 3px; }
.wel-pt small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.welcome .text-btn { justify-self: center; }

/* ---------- Inventaire : frigo, congélateur, garde-manger ---------- */
.inv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.list li .zone-btn { font-size: 18px; opacity: .85; }
#list li.zone-head { color: var(--text); font-size: 13px; letter-spacing: .06em; padding-top: 16px; }
.zone-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zone-opt { display: grid; justify-items: center; gap: 6px; padding: 16px 8px; border-radius: 16px; background: var(--raised); font-weight: 700; }
.zone-opt span { font-size: 30px; }
.zone-opt.on { background: color-mix(in srgb, var(--accent) 25%, var(--raised)); outline: 2px solid var(--accent); }
.ask-bar { flex-wrap: wrap; }
/* Images des produits : toujours dans leur cadre (le texte en dessous reste lisible) */
.deal-img { position: relative; overflow: hidden; display: block; }
.deal-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; max-height: none; object-fit: contain; }
.deal-grid .deal-img { height: auto; aspect-ratio: 1 / 0.9; }

/* ---------- Tâches : qui s'en occupe ---------- */
.who-av { --h: 30; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: hsl(var(--h) 55% 45%); color: #fff; font-weight: 800; font-size: 12px; }
.who-av.small { width: 20px; height: 20px; font-size: 11px; }
.who-av.big { width: 44px; height: 44px; font-size: 20px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; align-items: center; }
.task-meta .due-chip { margin-top: 0; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--raised-2); font-size: 12.5px; font-weight: 700; }
.who-filter .chip { display: inline-flex; align-items: center; gap: 6px; }
.who-filter .chip small { color: var(--muted); font-weight: 700; }
.who-sheet { display: grid; gap: 14px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.who-opt { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--raised); font-weight: 700; }
.who-opt.on { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--raised)); }
.who-sheet .row input { flex: 1; min-width: 0; background: var(--raised); border: 0; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.list li.pressed { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 12px; }
.who-filter .chip.on small { color: inherit; opacity: .7; }
/* Pinceau sur la photo d'une recette */
.hero-wrap { position: relative; }
.hero-brush { position: absolute; right: 12px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,16,12,.72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.hero-brush svg { width: 20px; height: 20px; }
/* Semaine : les soirs planifiés ne débordent plus sur les voisins quand l'écran est moins haut */
body:not(.phone) .week { grid-auto-rows: minmax(64px, 1fr); overflow-y: auto; }
body:not(.phone) .meal-day.set { min-height: 0; }

/* Véhicules en thème clair : ombre plus douce sous l'image détourée */
:root[data-theme="light"] .vh-pic img.cutout { filter: drop-shadow(0 14px 14px rgba(40,50,50,.28)); }

/* ---------- Onglets déplaçables (appui long) ---------- */
.reordering .rail-btn, .reordering.tabbar button { touch-action: none; animation: tabWiggle .5s ease-in-out infinite alternate; }
.reordering .rail-btn:nth-child(even), .reordering.tabbar button:nth-child(even) { animation-delay: -.25s; }
.reordering .dragging { animation: none !important; background: var(--accent) !important; color: var(--accent-ink) !important; transform: scale(1.12); box-shadow: 0 8px 20px rgba(0,0,0,.3); z-index: 2; }
@keyframes tabWiggle { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.reorder-done { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 12px 28px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.phone .reorder-done { bottom: calc(96px + env(safe-area-inset-bottom)); }
.room .volume .eq-btn { flex: none; font-size: 12.5px; font-weight: 800; padding: 7px 12px; white-space: nowrap; border-radius: 999px; background: var(--raised-2); color: var(--accent); }

/* ---------- Roomba : grosses pastilles de raccourcis (favoris et pièces) ---------- */
.rb-shortcuts { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--raised); }
.rb-sc-head { display: flex; align-items: center; gap: 8px; }
.rb-sc-head .rb-rooms-lbl { flex: 1; }
.rb-sc-head .rb-go { padding: 8px 16px; }
.rb-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.rb-tiles::-webkit-scrollbar { display: none; }
.rb-tile { scroll-snap-align: start; }
.rb-tile { all: unset; box-sizing: border-box; cursor: pointer; min-height: 104px; padding: 14px; border-radius: 20px; background: var(--raised); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; border: 2px solid transparent; transition: transform .12s, border-color .15s, background .15s; user-select: none; -webkit-user-select: none; }
.rb-tile b { font-size: 17px; font-weight: 800; line-height: 1.15; }
.rb-tile small { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: -6px; }
.rb-tile-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.rb-tile-ico .rb-ico svg { width: 24px; height: 24px; }
.rb-tile.fav { background: color-mix(in srgb, var(--accent) 14%, var(--raised)); }
.rb-tile.fav .rb-tile-ico { background: var(--accent); color: var(--accent-ink); }
.rb-tile:active { transform: scale(.96); }
.rb-tile.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--raised)); }
.rb-tile.sel .rb-tile-ico { background: var(--accent); color: var(--accent-ink); }
.rb-hint.small { font-size: 12.5px; margin: 0; }

/* Photo du plat fini (différente de la lecture de la recette en haut) */
.dish-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone .dish-row { grid-template-columns: 1fr; }
.dish-btn { display: flex; align-items: center; gap: 12px; text-align: left; background: transparent; border: 2px dashed var(--line); border-radius: 16px; padding: 12px 14px; }
.dish-btn:active { border-color: var(--accent); }
.dish-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--coral, #e9785b); color: #fff; }
.dish-ico svg { width: 22px; height: 22px; }
.dish-btn b { display: block; font-size: 15px; }
.dish-btn span:not(.dish-ico) { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pic-edit:has(.dish-row), .pic-edit:has(.dish-preview) { display: grid; gap: 8px; }
.dish-preview { position: relative; border-radius: 18px; overflow: hidden; height: 190px; background: var(--raised); }
.dish-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-actions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.dish-actions .chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(15,22,21,.72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dish-actions .chip svg { width: 16px; height: 16px; }
/* Un seul bouton photo : le choix appareil photo / bibliothèque s'ouvre dessous */
.src-wrap { display: grid; gap: 8px; }
.src-wrap > .scan-btn, .src-wrap > .dish-btn { width: 100%; }
.src-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; animation: srcIn .15s ease-out; }
.src-menu[hidden] { display: none; }
@keyframes srcIn { from { opacity: 0; transform: translateY(-4px); } }
.src-opt { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--raised); font-weight: 700; font-size: 14px; }
.src-opt svg { width: 20px; height: 20px; color: var(--accent); }
.dish-btn ~ .src-menu .src-opt svg, .dish-preview ~ .src-menu .src-opt svg { color: var(--coral, #e9785b); }
button.dish-preview { width: 100%; padding: 0; border: 0; display: block; text-align: left; }
.dish-change { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: rgba(15,22,21,.72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dish-change svg { width: 16px; height: 16px; }
.pic-edit:has(.src-wrap) { display: grid; gap: 8px; }
.plan > .src-wrap { margin-bottom: 6px; }
.src-opt:nth-child(n+3) { grid-column: 1 / -1; }

/* Œil pour afficher le mot de passe */
.pw-wrap { position: relative; display: block; flex: 1; min-width: 0; }
.pw-wrap > input { width: 100%; padding-right: 48px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); background: transparent; }
.pw-eye svg { width: 21px; height: 21px; }
.pw-eye:active { color: var(--accent); }
/* Choisir le souper d'un soir : recherche en direct */
.day-input { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.day-input > svg { position: absolute; left: 13px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.day-search .day-input input { width: 100%; padding-left: 42px; padding-right: 42px; }
.day-clear { position: absolute; right: 4px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); background: transparent; }
.day-clear[hidden], .day-results[hidden] { display: none; }
.day-clear svg { width: 18px; height: 18px; }
.day-free { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 13px 14px; border-radius: 14px; border: 2px dashed var(--line); background: transparent; text-align: left; font-size: 15px; }
.day-free svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.day-results { min-height: 42vh; }
/* Titres de section d'une recette (une seule fois) */
.cklist li.ck-head { display: block; cursor: default; padding: 16px 4px 6px; border-bottom: 0; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cklist li.ck-head:first-child { padding-top: 4px; }
.cklist li.ck-head:active { background: none; }
.cook-ing li.cook-ing-head { display: block; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding-top: 12px; border: 0; }
.cook-section { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
/* Étapes écrites par Claude (la photo n'en avait pas) */
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 13.5px; line-height: 1.45; color: var(--text); }
.ai-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.cook-ai { font-size: 13px; color: var(--muted); margin-top: 14px; }
.snacks { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--raised); }
.snacks-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 15px; }
.snacks-row { display: flex; flex-wrap: wrap; gap: 8px; }
.snack { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--raised-2); font-weight: 700; font-size: 14px; }
.snack-x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: transparent; color: var(--muted); }
.snack-x svg, .snack.add svg { width: 15px; height: 15px; }
.snack.add { padding: 6px 12px; gap: 6px; border: 1.5px dashed var(--line); background: transparent; color: var(--accent); }
.phone .week { grid-auto-rows: auto; flex: none; }
.snacks { flex: none; }
.phone .week-card { flex: none; }

/* Menu : déjeuner et dîner en vignettes ; toucher les vignettes déplie la journée */
.md-wrap { display: flex; flex-direction: column; min-height: 0; }
.md-wrap > .meal-day { flex: 1; min-height: 0; }
.md-thumbs { display: flex; align-items: center; gap: 5px; flex: none; margin-left: auto; padding: 6px; margin-right: -6px; border-radius: 12px; cursor: pointer; }
.meal-day.set .md-thumbs { position: relative; z-index: 2; }
.md-thumb { width: 34px; height: 34px; border-radius: 9px; flex: none; border: 2px solid rgba(255,255,255,.85); overflow: hidden; }
.md-thumb .rphoto-art { font-size: 17px; }
.md-thumb.add { display: grid; place-items: center; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); }
.meal-day.set .md-thumb.add { border-color: rgba(255,255,255,.6); color: #fff; }
.md-thumb.add svg { width: 16px; height: 16px; }
.md-chev { display: grid; place-items: center; width: 22px; color: var(--muted); }
.meal-day.set .md-chev { color: #fff; }
.md-chev svg { width: 18px; height: 18px; }
.meal-day.opened { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.md-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: var(--raised); border-radius: 0 0 16px 16px; }
.md-more:has(> :only-child) { grid-template-columns: 1fr; }
.md-tile { position: relative; height: 64px; border-radius: 12px; overflow: hidden; text-align: left; padding: 0; }
.md-tile .md-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.md-tile .md-tile-img .rphoto-art { font-size: 30px; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.md-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.05)); pointer-events: none; }
.md-tile-txt { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; color: #fff; font-weight: 800; font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-tile-txt small { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; opacity: .9; }
.md-tile.add { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--line); background: transparent; color: var(--accent); font-size: 14.5px; }
.md-tile.add::after { display: none; }
body:not(.phone) .md-tile { height: 52px; }
body:not(.phone) .md-wrap.open { grid-row: span 2; }
.md-more { flex: none; }
body:not(.phone) .week { overflow-y: auto; }
body:not(.phone) .snacks { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-top: 8px; }
body:not(.phone) .snacks-head { margin: 0; flex: none; }
body:not(.phone) .snacks-row { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
body:not(.phone) .snacks-head .text-btn { order: 2; }
/* Ajouter une recette au menu : choix du repas */
.kind-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.kind-seg button { flex: 1 1 auto; padding: 10px 12px; border-radius: 12px; background: var(--raised); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.kind-seg button.on { background: var(--accent); color: #fff; }
.sheet-label[hidden] { display: none; }
/* Photos proposées pour une recette */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pic-cand { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; padding: 0; background: var(--raised); }
.pic-cand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-cand span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pic-cand:active { outline: 3px solid var(--accent); }
.prop-box:empty { display: none; }
.recipe-hero { cursor: pointer; }
/* Inventaire : onglets par endroit */
.inv-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 8px; padding-bottom: 2px; scrollbar-width: none; }
.inv-tabs::-webkit-scrollbar { display: none; }
.inv-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--raised); font-weight: 700; font-size: 14px; white-space: nowrap; }
.inv-tabs button small { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--raised-2); color: var(--muted); }
.inv-tabs button.on { background: var(--accent); color: #fff; }
.inv-tabs button.on small { background: rgba(255,255,255,.22); color: #fff; }
.zone-opt small { display: block; font-size: 11.5px; font-weight: 700; color: var(--accent); margin-top: 2px; }
body:not(.phone) .inv-tabs { gap: 4px; }
body:not(.phone) .inv-tabs button { padding: 7px 8px; font-size: 13px; gap: 4px; flex: 1 1 auto; justify-content: center; }
body:not(.phone) .inv-tabs button small { padding: 0 5px; font-size: 11px; }
body:not(.phone) .inv-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
.inv-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
.inv-tabs button { justify-content: center; min-width: 0; }
.lists-card { min-width: 0; }
.phone .tabbar { gap: 2px; padding-left: 4px; padding-right: 4px; }
.phone .tabbar button { flex: 1 1 0; min-width: 0; padding: 6px 2px; }
.phone .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Google Images : chercher, copier l'adresse, coller */
.gimg { display: grid; gap: 10px; margin-bottom: 6px; }
.gimg-go { justify-content: center; width: 100%; }
.gimg-steps { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.gimg .link-row { display: flex; gap: 8px; }
.gimg .link-row input { flex: 1; min-width: 0; background: var(--raised); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; }
.gimg .link-row input:focus { border-color: var(--accent); }
.gimg-prev:empty { display: none; }
/* Recherche sur le Web (Idées de soupers) */
.web-block { grid-column: 1 / -1; margin-top: 6px; padding: 14px; border-radius: 18px; background: var(--raised); display: grid; gap: 10px; }
.web-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.web-head b { font-size: 16px; }
.web-head span { font-size: 13.5px; color: var(--muted); }
.web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.web-tile { position: relative; aspect-ratio: 4 / 3.4; border-radius: 14px; overflow: hidden; padding: 0; text-align: left; background: var(--raised-2); }
.web-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.web-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.75)); }
.web-name { position: absolute; left: 10px; right: 10px; bottom: 30px; z-index: 1; color: #fff; font-weight: 800; font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.web-add { position: absolute; left: 10px; bottom: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 800; opacity: .9; }
.web-add svg { width: 14px; height: 14px; }
.web-src { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 999px; }
.web-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.web-actions .btn { flex: 1 1 auto; justify-content: center; }
.prop-panel { display: grid; gap: 10px; }
.gimg-more { border-radius: 12px; background: var(--raised); padding: 10px 12px; }
.gimg-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--accent); }
.gimg-more[open] summary { margin-bottom: 10px; }
/* Ingrédients → épicerie : décoché = « → Inventaire » sur la même ligne */
.pick-list li .txt { flex: 1; min-width: 0; }
.to-inv { display: inline-flex; gap: 4px; flex: none; margin-left: auto; align-items: center; }
.to-inv:empty { display: none; }
.to-inv-btn { padding: 6px 10px; border-radius: 999px; background: var(--raised-2); color: var(--accent); font-weight: 800; font-size: 13px; white-space: nowrap; }
.to-inv-z { width: 34px; height: 34px; border-radius: 10px; background: var(--raised-2); font-size: 17px; display: grid; place-items: center; }
.to-inv-z.on { outline: 2px solid var(--accent); }
.to-inv-ok { font-size: 12.5px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.pick-list li.off .to-inv { opacity: 1; }
/* Doublons de recettes */
.dup-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: color-mix(in srgb, #e9a23b 18%, var(--raised)); font-size: 14px; line-height: 1.45; margin: 6px 0; }
.dup-note > span { font-size: 18px; }
.dup-note .row { margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.dup-chip { background: color-mix(in srgb, #e9a23b 22%, var(--raised)); }
.dup-pair { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--raised); margin-bottom: 10px; }
.dup-why { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dup-side { display: flex; align-items: center; gap: 10px; }
.dup-img { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.dup-img .rphoto-art { font-size: 24px; }
.dup-txt { flex: 1; min-width: 0; }
.dup-txt b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-txt small { color: var(--muted); font-size: 12px; }
.dup-side .btn { padding: 8px 12px; font-size: 13.5px; }
.dup-pair .text-btn { justify-self: start; }
.dup-side { min-width: 0; }
.dup-txt b { white-space: normal; }
.dup-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.dup-btns .btn { padding: 7px 12px; font-size: 13px; justify-content: center; }
.chip.origin { background: var(--raised); }
.dup-hidden { font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 7px 4px; }

/* Fiche recette (option C) : gros boutons, puis une ligne discrète, catégories repliées */
.recipe-big { display: grid; gap: 8px; margin-top: 14px; }
.recipe-big .btn { width: 100%; justify-content: flex-start; padding: 13px 16px; font-size: 15.5px; gap: 10px; }
.recipe-big .btn svg { width: 20px; height: 20px; }
.recipe-manage { margin-top: 12px; gap: 8px; }
.recipe-manage .chip { display: inline-flex; align-items: center; gap: 6px; }
.recipe-manage .chip svg { width: 16px; height: 16px; }
.chip.danger { color: var(--danger, #c2553f); }
.cat-box { margin-top: 14px; }
.cat-box .sheet-label { margin-bottom: 6px; }
.cat-toggle { border: 1.5px dashed var(--line); background: transparent; color: var(--accent); }
/* Circulaire page par page : toucher un produit */
.fv { display: grid; gap: 10px; }
.fv-stage { display: grid; place-items: center; touch-action: pan-y; }
.fv-page { position: relative; width: 100%; max-height: 72vh; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
body:not(.phone) .fv-page { width: auto; height: 72vh; }
.fv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.fv-spot { position: absolute; padding: 0; border: 0; background: transparent; border-radius: 6px; overflow: hidden; }
.fv-page:not(.has-img) .fv-spot { background: #fafafa; border: 1px solid #eee; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fv-cut { width: 100%; flex: 1; min-height: 0; object-fit: contain; }
.fv-page.has-img .fv-cut, .fv-page.has-img .fv-price { display: none; }
.fv-price { font-size: clamp(8px, 2.4vw, 13px); font-weight: 800; color: #c2251a; background: #fff3c4; padding: 1px 4px; border-radius: 4px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fv-spot:active, .fv-spot:hover { outline: 3px solid var(--accent); outline-offset: -3px; background-color: color-mix(in srgb, var(--accent) 12%, transparent); }
.fv-nav { display: flex; align-items: center; justify-content: space-between; }
.fv-count { font-weight: 800; color: var(--muted); }
/* Fiche d'un produit et choix « moins cher ailleurs » */
.item-sheet { display: grid; gap: 10px; }
.item-img { width: 100%; max-height: 240px; object-fit: contain; background: #fff; border-radius: 14px; }
.item-price { display: flex; align-items: baseline; gap: 10px; font-size: 26px; font-weight: 900; }
.item-price s { font-size: 15px; color: var(--muted); font-weight: 700; }
.item-name { font-size: 16px; }
.cheap { display: grid; gap: 10px; }
.cheap-opt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: 14px; background: var(--raised); }
.cheap-opt img, .cheap-noimg { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 26px; }
.cheap-opt b { display: block; font-size: 16px; }
.cheap-opt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.cheap-tag { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 800; color: var(--accent); }
.cheap-opt:first-of-type { outline: 2px solid var(--accent); }
/* Circulaire redessinée : chaque morceau de la circulaire à sa place, comme le papier */
.fv-page:not(.has-img) .fv-spot { background: transparent; border: 0; display: block; }
.fv-page .fv-cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fv-page:not(.has-img) .fv-spot:not(:has(img)) { background: #fafafa; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; }
.phone .fv-page { max-height: none; }
.phone .fv-stage { max-height: 70vh; overflow-y: auto; place-items: start center; }
/* Circulaire en premier plan */
.sheet.fv-sheet { width: min(1500px, 98vw); max-height: 96vh; }
.fv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fv-head > div { flex: 1; min-width: 160px; }
.fv-head b { display: block; font-size: 16px; }
.fv-head small { color: var(--muted); font-size: 12.5px; }
.fv-body { display: flex; align-items: center; gap: 8px; }
.fv-stage { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 10px; }
.fv-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); }
.fv-arrow:disabled { opacity: .3; }
.fv-arrow svg { width: 24px; height: 24px; }
.fv-nav { justify-content: center; }
body:not(.phone) .fv-page { width: auto; height: calc(96vh - 190px); max-height: none; max-width: 100%; }
body:not(.phone) .fv-stage.spread .fv-page { max-width: calc(50% - 5px); }
.phone .fv-arrow { display: none; }
.phone .fv-stage { display: grid; }
.phone .fv-head .btn { padding: 8px 12px; font-size: 13.5px; }
.phone .fv-stage { grid-template-columns: 100%; place-items: start stretch; }
.phone .fv-body { display: block; }
.fv-head .fly-logo { width: 72px; height: 44px; flex: none; }
.fv-head .fly-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fv-head .fly-logo.small { width: 72px; height: 44px; min-width: 0; padding: 6px; }
/* Visionneuse : cadre fixe, pages ajustées au cadre, zoom avec les doigts */
.fv-stage { position: relative; overflow: hidden; height: calc(96vh - 190px); touch-action: none; display: block !important; max-height: none !important; }
.phone .fv-stage { height: 68vh; }
.fv-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; transform-origin: 0 0; } /* will-change seulement pendant le geste (sinon flou au zoom) */
.fv-zoom .fv-page { flex: none; max-width: none !important; max-height: none !important; aspect-ratio: auto !important; }
.fv-spot img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.fv-back { flex: none; }
.fv-unzoom[hidden] { display: none; }
.phone .fv-head { gap: 8px; }
.phone .fv-head > div { min-width: 100%; order: 5; }
.phone .fv-head .fly-logo { display: none; }
/* Flèches bien visibles, par-dessus la circulaire (tablette et cellulaire) */
.fv-wrap { position: relative; flex: 1; min-width: 0; }
.fv-wrap .fv-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 56px; height: 56px; display: grid !important; background: rgba(15,22,21,.62); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.fv-wrap .fv-arrow svg { width: 28px; height: 28px; }
.fv-wrap .fv-arrow.prev { left: 8px; }
.fv-wrap .fv-arrow.next { right: 8px; }
.fv-wrap .fv-arrow:disabled { opacity: 0; pointer-events: none; }
.phone .fv-wrap .fv-arrow { width: 46px; height: 46px; }
.fly-addsheet { display: grid; gap: 10px; }
.fly-addsheet .row .btn { width: 100%; justify-content: center; }
/* Vraies pages : tuiles d'images de Flipp sous les zones à toucher */
.fv-tile { position: absolute; display: block; max-width: none; pointer-events: none; user-select: none; }
.fv-page.has-img { background: #fff; }
.fv-page.has-img .fv-spot { background: transparent; border: 0; }

/* Spécial d'une nouvelle circulaire (pas encore en vigueur) */
.deal-tag:has(.deal-tag-soon) { flex-wrap: wrap; }
.deal-tag-st, .deal-tag b, .deal-tag em { white-space: nowrap; }
.deal-tag-soon { flex-basis: 100%; width: max-content; max-width: max-content; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, #f0b323 24%, transparent); white-space: nowrap; }
.up-warn { display: grid; gap: 12px; }
.up-warn-mute { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.up-warn-mute input { width: 22px; height: 22px; accent-color: var(--accent, #5cc8b8); }
.up-warn-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ===== Spotify comme l'app officielle (2.38) ===== */
.np-art, .np-title { cursor: pointer; }
.sp-notice { display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0 2px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; text-align: left; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.sp-notice svg { width: 16px; height: 16px; flex: none; }
.heart svg { width: 20px; height: 20px; }
.heart.on { color: #1ed760; }
.heart.on svg { fill: currentColor; }
.sr-go { color: var(--faint); padding: 0 8px; display: grid; place-items: center; }
.sr-go svg { width: 18px; height: 18px; }
.sr-img.liked, .mp-cover.liked { background: linear-gradient(135deg, #4b2ad1, #8fd7c3); color: #fff; }
.sr-row.now b { color: var(--accent); }
/* Pages album / artiste / liste */
.sheet.mp-sheet { width: min(860px, 96vw); max-height: 90vh; }
.mp-head { display: flex; gap: 20px; align-items: flex-end; margin: 4px 0 16px; }
.mp-cover { width: 168px; height: 168px; flex: none; border-radius: 14px; background: var(--raised) center/cover; display: grid; place-items: center; color: var(--faint); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.mp-cover.round { border-radius: 50%; }
.mp-cover svg { width: 56px; height: 56px; }
.mp-info { min-width: 0; display: grid; gap: 4px; }
.mp-info h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mp-kind { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.mp-sub, .mp-count { color: var(--muted); font-size: 14px; }
.mp-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mp-btns .btn { display: inline-flex; align-items: center; gap: 6px; }
.mp-btns svg { width: 18px; height: 18px; }
.mp-num { width: 28px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.mp-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.mp-tile { display: grid; gap: 4px; text-align: left; min-width: 0; }
.mp-tile .cover { width: 136px; height: 136px; border-radius: 10px; background: var(--raised) center/cover; display: grid; place-items: center; color: var(--faint); }
.mp-tile.round .cover { border-radius: 50%; }
.mp-tile.round { text-align: center; }
.mp-tile b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-tile small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .mp-head { flex-direction: column; align-items: flex-start; } .mp-cover { width: 140px; height: 140px; } .mp-info h2 { font-size: 24px; } }
/* Lecteur plein écran */
.sheet.np-full { width: min(760px, 100vw); max-height: 100vh; height: 100vh; border-radius: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--fp-bg, var(--raised)) 55%, var(--surface)) 0%, var(--surface) 80%); transition: transform .25s ease, background .6s; }
.sheet.np-full .sheet-head { position: absolute; right: 18px; top: 16px; }
.sheet.np-full .sheet-head h3 { display: none; }
.fp { display: grid; gap: 16px; max-width: 520px; margin: 10px auto 0; }
.fp-art { width: min(440px, 74vw, 46vh); aspect-ratio: 1; margin: 8px auto 6px; border-radius: 18px; background: var(--raised-2) center/cover; box-shadow: 0 18px 50px rgba(0,0,0,.4); display: grid; place-items: center; color: var(--faint); }
.fp-art svg { width: 80px; height: 80px; }
.fp-meta { display: flex; align-items: center; gap: 12px; }
.fp-txt { flex: 1; min-width: 0; }
.fp-title { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fp-artist { color: var(--muted); font-size: 17px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-heart .heart svg { width: 26px; height: 26px; }
.fp-seek { width: 100%; }
.fp-times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.fp-controls { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.fp-controls .icon-btn svg { width: 24px; height: 24px; }
.fp-play { width: 72px; height: 72px; }
.fp-play svg { width: 30px; height: 30px; }
.fp-vol { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.fp-vol svg { width: 18px; height: 18px; flex: none; }
.fp-vol input { flex: 1; }
.fp-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fp-chip { display: inline-flex; align-items: center; gap: 6px; }
.fp-chip svg { width: 15px; height: 15px; }
.opts { display: grid; gap: 4px; }
.sp-notice[hidden] { display: none; }
.fp-close { justify-self: start; margin: -6px 0 -10px -8px; }
.fp-close svg { width: 30px; height: 30px; }
.sheet.np-full .sheet-head { display: none; }
.sheet.mp-sheet .sheet-head { justify-content: flex-end; }
.sheet.mp-sheet .sheet-head h3 { display: none; }

/* Circulaires : choix de la semaine (2.40) */
.fly-week { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -2px 4px 14px; }
.fly-week.single { grid-template-columns: minmax(0, 360px); }
.fly-week-btn { display: grid; gap: 2px; text-align: left; padding: 12px 16px; border-radius: 16px; background: var(--raised); border: 2px solid transparent; transition: background .15s, border-color .15s; }
.fly-week-btn b { font-size: 17px; font-weight: 800; }
.fly-week-btn small { font-size: 13px; color: var(--muted); }
.fly-week-btn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--raised)); }
.fly-week-btn.on b { color: var(--accent); }
.fly-week-btn:nth-child(2).on { border-color: #e0a21a; background: color-mix(in srgb, #f0b323 22%, var(--raised)); }
.fly-week-btn:nth-child(2).on b { color: #b47c00; }
:root:not([data-theme="light"]) .fly-week-btn:nth-child(2).on b { color: #f3c552; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .fly-week-btn:nth-child(2).on b { color: #b47c00; } }
.fly-next { background: linear-gradient(180deg, color-mix(in srgb, #f0b323 10%, transparent), transparent 520px); border-radius: 22px; }
.fly-next-banner { display: flex; align-items: flex-start; gap: 10px; margin: 0 4px 14px; padding: 11px 14px; border-radius: 14px; background: color-mix(in srgb, #f0b323 20%, var(--raised)); font-size: 14.5px; line-height: 1.4; }
.fly-next-banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.deal-soon { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #f0b323; color: #3a2a00; }
.deal-pct + .deal-soon { top: 34px; }
.phone .fly-week-n { display: none; }
.phone .fly-week-btn { padding: 10px 12px; }
.phone .fly-week-btn b { font-size: 15.5px; }
.fv-hi { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Tuile « lecteur » de la page d'accueil (2.43, maquette B) */
.home-player { flex: none; padding: 16px; }
.hp { display: flex; gap: 16px; }
.hp-art { width: 118px; height: 118px; flex: none; border-radius: 14px; background: var(--raised-2) center/cover; display: grid; place-items: center; color: var(--faint); cursor: pointer; }
.hp-art svg { width: 40px; height: 40px; }
.hp-body { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: center; }
.hp-title { font-weight: 800; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.hp-artist { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-bar { margin: 0; }
.hp-controls { display: flex; align-items: center; gap: 10px; }
.hp-controls .hp-btn { width: 42px; height: 42px; background: var(--raised); border-radius: 50%; }
.hp-controls .hp-play { width: 50px; height: 50px; border-radius: 50%; }
.hp-controls svg { width: 20px; height: 20px; }
.hp-gap { flex: 1; }
.hp-dev { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-vol { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.hp-vol svg { width: 18px; height: 18px; flex: none; }
.hp-vol input { flex: 1; }
.hp-mixes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.hp-mixes[hidden] { display: none; }
.hp-mix { display: grid; gap: 3px; width: 64px; flex: none; text-align: center; }
.hp-mix .cover { width: 64px; height: 64px; border-radius: 10px; background: var(--raised) center/cover; display: grid; place-items: center; color: var(--faint); }
.hp-mix span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Fil de la famille (2.44) ===== */
.tab-badge { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg, #0f1716); pointer-events: none; }
.rail-btn, .tabbar button { position: relative; }
.tabbar button .tab-badge { top: 2px; right: calc(50% - 22px); }
#page-fil { overflow-y: auto; }
.fil-page { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; padding-bottom: 30px; }
.fil-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 4px 0; }
.fil-top h2 { font-family: var(--serif); font-weight: 800; font-size: 28px; margin: 0; }
.fil-av { --h: 160; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: hsl(var(--h) 45% 42%); }
.fil-av.sm { width: 28px; height: 28px; font-size: 13px; }
.fil-row { display: flex; gap: 12px; align-items: flex-start; }
.fil-ta { flex: 1; min-height: 44px; resize: vertical; border: 0; border-radius: 14px; padding: 10px 12px; background: var(--raised); color: inherit; font: inherit; }
.fil-att { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0 50px; }
.fil-att:empty { display: none; }
.fil-chip { display: inline-flex; align-items: center; gap: 6px; }
.fil-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; background: var(--raised) center/cover; }
.fil-x { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; line-height: 20px; padding: 0; flex: none; }
.fil-thumb .fil-x { position: absolute; top: 4px; right: 4px; }
.fil-tools { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.fil-tool, .fil-send { display: inline-flex; align-items: center; gap: 6px; }
.fil-tool svg, .fil-send svg { width: 17px; height: 17px; }
.fil-post { display: grid; gap: 10px; }
.fil-post.fresh { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.fil-head { display: flex; align-items: center; gap: 10px; }
.fil-who { flex: 1; min-width: 0; display: grid; }
.fil-who small { color: var(--muted); font-size: 12.5px; }
.fil-text { margin: 0; white-space: pre-wrap; font-size: 16px; line-height: 1.45; }
.fil-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--raised) center/cover; padding: 0; }
.fil-photo.missing { display: none; }
.fil-rec { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--raised); }
.fil-rimg { width: 96px; height: 96px; flex: none; border-radius: 12px; overflow: hidden; }
.fil-rimg img { width: 100%; height: 100%; object-fit: cover; }
.fil-rtxt { min-width: 0; display: grid; gap: 4px; }
.fil-rtxt small { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 800; color: var(--muted); }
.fil-rtxt b { font-size: 17px; }
.fil-rbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fil-rbtns .btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; font-size: 14px; }
.fil-rbtns svg { width: 15px; height: 15px; }
.fil-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.fil-like, .fil-ccount { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--muted); padding: 4px 2px; }
.fil-like svg, .fil-ccount svg { width: 20px; height: 20px; }
.fil-like.on { color: #e5484d; }
.fil-like.on svg { fill: currentColor; }
.fil-likers { font-size: 12.5px; }
.fil-coms { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--raised); }
.fil-com { display: flex; gap: 8px; align-items: flex-start; }
.fil-com.fresh .fil-cbody { background: color-mix(in srgb, var(--accent) 14%, var(--raised)); }
.fil-cbody { flex: 1; min-width: 0; background: var(--raised); border-radius: 14px; padding: 7px 11px; font-size: 14.5px; line-height: 1.4; }
.fil-cbody small { color: var(--muted); font-size: 12px; }
.fil-com .fil-x { background: transparent; color: var(--muted); }
.fil-crow { display: flex; gap: 8px; align-items: center; }
.fil-cin { flex: 1; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--raised); color: inherit; font: inherit; font-size: 14.5px; }
.fil-empty p { margin: 0; }
.fil-view img { width: 100%; border-radius: 14px; display: block; }
.fil-share .fil-composer { box-shadow: none; padding: 0; background: transparent; }
.share-feed svg { width: 20px; height: 20px; }
#fil { flex: 1; min-width: 0; width: 100%; }
.fil-page { width: 100%; }

/* Cellulaire : réglages par mon avatar en haut du Fil (2.45) */
.fil-top-btns { gap: 8px; align-items: center; }
.fil-me { position: relative; padding: 0; border-radius: 50%; }
.fil-me .fil-av { width: 40px; height: 40px; }
.fil-me-gear { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 2px var(--bg, #0f1716); color: var(--muted); }
.fil-me-gear svg { width: 13px; height: 13px; }
.fil-me.has-alert::after { top: -2px; right: -2px; }
.set-top { display: flex; align-items: center; gap: 12px; margin: 4px 4px 12px; }
.set-top h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 26px; }
.set-back { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; }
.set-back svg { width: 16px; height: 16px; }

/* Disposition des cases (2.46) */
.card.sized { min-height: 90px; overflow: auto; }
.layout-edit .card { position: relative; outline: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: -2px; }
.layout-edit .card > *:not(.lay-h) { pointer-events: none; opacity: .85; }
.lay-h { position: absolute; z-index: 5; background: var(--accent); border-radius: 999px; touch-action: none; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.lay-h::after { content: ''; position: absolute; inset: -14px; } /* zone de toucher plus grande */
.lay-w { right: -9px; top: 50%; width: 14px; height: 64px; margin-top: -32px; cursor: ew-resize; }
.lay-v { bottom: -9px; left: 50%; width: 64px; height: 14px; margin-left: -32px; cursor: ns-resize; }
.lay-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 10px 40px rgba(0,0,0,.45); font-size: 14.5px; max-width: 94vw; }

/* ===== Fil façon Instagram (2.47) ===== */
.fil-page.ig { max-width: 560px; gap: 0; }
.ig-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; }
.ig-top h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.ig-top-btns { gap: 4px; align-items: center; }
.ig-top-btns .icon-btn svg { width: 24px; height: 24px; }
/* Stories */
.ig-stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: none; border-bottom: 1px solid var(--raised); margin-bottom: 8px; }
.ig-stories::-webkit-scrollbar { display: none; }
.ig-story { display: grid; justify-items: center; gap: 5px; flex: none; width: 70px; padding: 0; background: none; }
.ig-story small { font-size: 12px; max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.ig-ring { display: inline-grid; place-items: center; border-radius: 50%; padding: 2px; background: var(--raised-2); position: relative; }
.ig-ring.fresh { background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.ig-ring > .fil-av { box-shadow: 0 0 0 2px var(--surface); }
.ig-ring.big > .fil-av { width: 60px; height: 60px; font-size: 24px; }
.ig-ring.plain { background: transparent; }
.ig-plus { position: absolute; right: -1px; bottom: -1px; width: 22px; height: 22px; border-radius: 50%; background: #0095f6; color: #fff; font-weight: 800; font-size: 16px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
/* Publication */
.ig-post { background: var(--surface); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.ig-post.fresh { box-shadow: 0 0 0 2px color-mix(in srgb, #d62976 45%, transparent); }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-head .fil-av { width: 34px; height: 34px; font-size: 14px; }
.ig-who { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.ig-who b { font-size: 14.5px; }
.ig-who small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-new-dot { font-size: 11px; font-weight: 800; color: #fff; background: #d62976; padding: 2px 8px; border-radius: 999px; }
.ig-dots { background: none; padding: 4px 8px; font-size: 14px; letter-spacing: 1px; color: var(--muted); }
.ig-media { position: relative; width: 100%; aspect-ratio: 4 / 5; background: var(--raised) center/cover no-repeat; overflow: hidden; user-select: none; -webkit-user-select: none; }
.ig-media.loading { animation: igpulse 1.2s ease-in-out infinite alternate; }
.ig-media.missing { aspect-ratio: auto; height: 0; }
@keyframes igpulse { from { opacity: .55; } to { opacity: 1; } }
.ig-media.rec { aspect-ratio: 1; }
.ig-media .ig-media-img, .ig-new-media .ig-media-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.ig-media .ig-media-img img, .ig-new-media .ig-media-img img { width: 100%; height: 100%; object-fit: cover; }
.ig-media.text { aspect-ratio: 1; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, hsl(var(--h) 60% 45%), hsl(calc(var(--h) + 50) 65% 38%)); }
.ig-media.text p { margin: 0; color: #fff; font-family: var(--serif); font-weight: 800; font-size: clamp(20px, 5.4vw, 30px); line-height: 1.25; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.ig-rec-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-weight: 700; font-size: 14px; backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-rec-tag span { opacity: .8; font-weight: 600; }
.ig-rec-tag svg { width: 15px; height: 15px; flex: none; }
.ig-pop { position: absolute; left: 50%; top: 50%; color: #fff; filter: drop-shadow(0 4px 18px rgba(0,0,0,.4)); transform: translate(-50%, -50%) scale(0); animation: igpop .9s ease forwards; pointer-events: none; }
.ig-pop svg { width: 110px; height: 110px; fill: #fff; }
@keyframes igpop { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(.95); } 45%, 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(.9); opacity: 0; } }
.ig-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; }
.ig-act { background: none; padding: 6px; color: inherit; display: grid; place-items: center; }
.ig-act svg { width: 26px; height: 26px; }
.ig-like.on { color: #ff3040; animation: iglike .35s ease; }
.ig-like.on svg { fill: currentColor; }
@keyframes iglike { 50% { transform: scale(1.25); } }
.ig-body { padding: 2px 14px 12px; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.4; }
.ig-likes { font-weight: 600; }
.ig-caption-line { overflow-wrap: anywhere; }
.ig-caption-line.fresh b { color: #d62976; }
.ig-more, .ig-allcoms { background: none; padding: 0; color: var(--muted); font-size: 14.5px; text-align: left; }
.ig-time { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; margin-top: 2px; }
.ig-cline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ig-cline .fil-av { width: 26px; height: 26px; font-size: 12px; }
.ig-cin { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; padding: 6px 0; outline: none; }
.ig-post-btn { background: none; padding: 4px 6px; color: #0095f6; font-weight: 700; font-size: 14px; }
.ig-post-btn[hidden] { display: none; }
/* Commentaires (fenêtre) */
.ig-comments { display: grid; gap: 12px; }
.ig-com-row { display: flex; gap: 10px; align-items: flex-start; }
.ig-com-row .fil-av { width: 32px; height: 32px; font-size: 13px; }
.ig-com-body { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.ig-com-body small { color: var(--muted); font-size: 12px; }
.ig-com-del { background: none; padding: 4px; color: var(--muted); }
.ig-com-del svg { width: 16px; height: 16px; }
.ig-hr { border: 0; border-top: 1px solid var(--raised); margin: 0; }
.ig-cbar { position: sticky; bottom: -30px; display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; background: var(--surface); border-top: 1px solid var(--raised); }
.ig-cbar .ig-cin { background: var(--raised); border-radius: 999px; padding: 10px 14px; }
/* Nouvelle publication */
.ig-new { display: grid; gap: 12px; }
.ig-new-media { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 52vh; border-radius: 16px; background: var(--raised) center/cover no-repeat; overflow: hidden; }
.ig-new-media.empty { display: grid; place-content: center; justify-items: center; gap: 6px; border: 2px dashed var(--raised-2); color: var(--muted); }
.ig-new-media.empty svg { width: 46px; height: 46px; }
.ig-new-media.empty b { color: inherit; font-size: 17px; }
.ig-new-media.rec { aspect-ratio: 1; }
.ig-new-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; padding: 0; }
.ig-new-add { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-weight: 700; font-size: 14px; }
.ig-new-add svg { width: 16px; height: 16px; }
.ig-new-row { display: flex; gap: 10px; align-items: flex-start; }
.ig-caption { flex: 1; border: 0; border-radius: 14px; padding: 10px 12px; background: var(--raised); color: inherit; font: inherit; resize: vertical; min-height: 64px; }
.ig-new-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.ig-new-opts .chip { display: inline-flex; align-items: center; gap: 6px; }
.ig-new-opts svg { width: 15px; height: 15px; }
.ig-chip-x { background: none; padding: 0 0 0 4px; font-size: 16px; color: inherit; }
.ig-share { width: 100%; padding: 13px; font-size: 16px; }
.ig-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 40px 20px; }
.ig-empty-ic { width: 76px; height: 76px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.ig-empty-ic svg { width: 36px; height: 36px; }
.danger-opt { color: #e5484d; }
/* Cellulaire : pleine largeur, comme l'app */
.phone .fil-page.ig { max-width: none; }
.phone .ig-post { border-radius: 0; margin: 0 -10px 10px; }
.phone .ig-stories { margin: 0 -10px 8px; padding-left: 10px; padding-right: 10px; }
.ig-media { max-height: 64vh; }
.phone .ig-media { max-height: none; }
.ig-ring { padding: 3px; }
.ig-ring > .fil-av { box-shadow: 0 0 0 3px var(--bg, #0f1716); }
.ig-post .ig-ring > .fil-av { box-shadow: 0 0 0 2px var(--surface); }

/* Fil 2.48 : texte en haut, cadre à la forme de la photo */
.ig-text-top { margin: 0; padding: 0 14px 10px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ig-head + .ig-text-top { margin-top: -2px; }
.ig-media:not(.rec):not(.text) { aspect-ratio: 1; }
.ig-body { padding-top: 0; }

/* ---------- Ouverture animée (index.html, #intro) ----------
   La table se pose, le bol apparaît dessus, la famille arrive dans le bol, puis le nom et le slogan. Chaque morceau du logo
   est un calque à part et on n'anime que la position et la transparence : fluide même pendant le chargement de l'app.
   L'écran d'ouverture d'Android est sarcelle sans logo (drawable/ic_splash_vide.xml) : l'animation part d'un écran vide. */
#intro { position: fixed; inset: 0; z-index: 10000; background: #1F6F6A; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .4s ease; touch-action: none; }
#intro.out { opacity: 0; pointer-events: none; }
#intro .in-logo { position: relative; width: 150px; height: 150px; }
#intro .in-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform, opacity; }
#intro .in-table { transform-origin: 50% 71.6%; animation: in-table .45s cubic-bezier(.3,.9,.3,1) .05s both; }
#intro .in-bowl { transform-origin: 50% 55%; animation: in-bowl .5s cubic-bezier(.25,1.3,.5,1) .2s both; }
#intro .in-h { animation: in-pop .4s cubic-bezier(.3,1.6,.5,1) both; }
#intro .in-h1 { transform-origin: 36.7% 37%; animation-delay: .4s; }
#intro .in-h2 { transform-origin: 50% 32%; animation-delay: .33s; }
#intro .in-h3 { transform-origin: 62.8% 38%; animation-delay: .47s; }
#intro .in-word { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 56px; letter-spacing: -.03em; line-height: 1; margin-top: 8px; will-change: transform, opacity; animation: in-up .45s ease-out .55s both; }
#intro .in-word span { color: #FFD2C2; }
#intro .in-tag { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 21px; color: #e3f1ee; margin-top: 10px; will-change: transform, opacity; animation: in-up .45s ease-out .7s both; }
@keyframes in-table { from { opacity: 0; transform: scaleX(.1); } to { opacity: 1; transform: none; } }
@keyframes in-bowl { from { opacity: 0; transform: translateY(12px) scale(.55, .3); } to { opacity: 1; transform: none; } }
@keyframes in-pop { from { opacity: 0; transform: translateY(-10px) scale(0); } to { opacity: 1; transform: none; } }
@keyframes in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #intro * { animation: none !important; } }

/* ---------- Épicerie par rayon ---------- */
#list li.aisle-head { color: var(--text); font-size: 13px; letter-spacing: .06em; padding-top: 16px; }
#list li.aisle-sub { font-size: 11.5px; letter-spacing: .08em; padding-top: 8px; color: var(--text); opacity: .75; text-transform: none; }
#list-deals .chip + .chip { margin-left: 6px; }
/* Barre « Ranger dans l'inventaire ? » : la question sur une ligne, les choix (3 endroits, Toujours, Non) en dessous */
.ask-bar { flex-wrap: wrap; gap: 4px 2px; width: min(560px, calc(100vw - 32px)); }
.ask-bar span { flex: 1 1 100%; margin-bottom: 2px; }
.ask-bar button { padding: 8px 10px; border-radius: 10px; background: rgba(127,127,127,.12); }

/* ---------- Coloriage de super-héros (récompense des défis, js/coloring.js) ---------- */
.color-app { position: fixed; inset: 0; z-index: 9000; background: var(--bg, #0f1615); color: var(--text); display: flex; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) 14px max(10px, env(safe-area-inset-bottom)); gap: 8px; }
.ca-top { display: flex; align-items: center; gap: 10px; }
.ca-title { flex: 1; font-size: 17px; min-width: 0; }
.ca-title span { color: var(--muted); }
.ca-pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ca-pick button { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--raised); font-weight: 700; font-size: 14px; color: var(--text); }
.ca-pick button.on { background: var(--accent); color: #0f1615; }
.ca-body { flex: 1; min-height: 0; display: flex; gap: 14px; }
.ca-stage { position: relative; height: 100%; aspect-ratio: 3 / 4; max-width: 100%; margin: 0 auto; touch-action: none; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ca-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ca-lines { pointer-events: none; }
.ca-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.ca-tools, .ca-acts { display: flex; gap: 8px; }
.ca-tool, .ca-act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--raised); color: var(--text); font-size: 22px; line-height: 1; }
.ca-tool small, .ca-act small { font-size: 12px; font-weight: 700; }
.ca-tool.on { background: var(--accent); color: #0f1615; }
.ca-act.accent { background: var(--accent); color: #0f1615; }
.ca-act:disabled { opacity: .4; }
.ca-ic { font-size: 26px; }
.ca-sizes { display: flex; gap: 8px; }
.ca-size { flex: 1; height: 46px; border-radius: 12px; background: var(--raised); display: grid; place-items: center; }
.ca-size i { display: block; border-radius: 50%; background: var(--text); }
.ca-size.on { outline: 3px solid var(--accent); }
.ca-pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ca-color { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); }
.ca-color.on { outline: 4px solid var(--accent); outline-offset: 2px; }
.ca-gallery { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ca-gallery small { width: 100%; color: var(--muted); font-weight: 700; }
.ca-thumb { position: relative; width: 60px; height: 80px; border-radius: 8px; overflow: hidden; padding: 0; }
.ca-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ca-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 20px; }
/* Cellulaire ou tablette à la verticale : outils sous le dessin */
@media (orientation: portrait) {
  .ca-body { flex-direction: column; }
  .ca-stage { flex: none; height: auto; width: min(100%, 58vh * .75); }
  .ca-side { width: 100%; gap: 8px; flex: 1; min-height: 0; }
  .ca-pal { grid-template-columns: repeat(8, 1fr); }
  .ca-gallery { display: none; }
}
.cele-card .btn.color-btn { margin-top: 6px; }
.gift .color-btn { margin-left: 6px; }

/* ---------- Bulle d'un produit touché sur la circulaire (la circulaire reste ouverte) ---------- */
.fv-spot.sel { outline: 3px solid #5cc2b7; outline-offset: -1px; box-shadow: 0 0 0 4px rgba(92,194,183,.35); z-index: 2; }
.fv-bubble { position: absolute; z-index: 20; width: min(300px, calc(100% - 12px)); background: #fff; color: #13201e; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.45);
  padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; animation: fv-bub .16s ease-out; }
.fv-bubble::after { content: ""; position: absolute; left: var(--ax, 50%); width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.fv-bubble.up::after { bottom: -7px; } .fv-bubble.down::after { top: -7px; }
.fv-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fv-bt b { font-weight: 800; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fv-bp { font-weight: 900; font-size: 20px; color: #c0262c; }
.fv-bp s { color: #8a9592; font-weight: 700; font-size: 13px; margin-left: 6px; }
.fv-bsoon { color: #9a5b00; font-weight: 700; font-size: 12px; }
.fv-bt small { color: #5d6e6a; font-size: 12px; font-weight: 700; }
.fv-balt { text-align: left; color: #9a5b00; font-weight: 700; font-size: 12px; padding: 0; background: none; line-height: 1.3; }
.fv-bname { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #cfd8d5; background: #fff; color: #13201e; font: inherit; font-size: 15px; }
.fv-plus { width: 48px; height: 48px; border-radius: 50%; background: #1F6F6A; color: #fff; font-size: 30px; font-weight: 800; line-height: 1; flex: none; display: grid; place-items: center; }
.fv-plus.ok { background: #2e9d58; font-size: 24px; }
@keyframes fv-bub { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- Circulaire sur cellulaire : plein écran, pages les unes sous les autres ---------- */
.sheet.fv-full { left: 0; right: 0; top: 0; bottom: 0; width: 100vw; max-width: none; height: 100%; max-height: none; border-radius: 0; transform: translate(0, 105%);
  padding: max(10px, env(safe-area-inset-top)) 0 max(6px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow: hidden; }
.sheet.fv-full.open { transform: none; }
.sheet.fv-full .sheet-head { padding: 0 12px; }
.sheet.fv-full .sheet-head h3 { margin: 0 0 6px; font-size: 20px; }
.sheet.fv-full > .fv { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.sheet.fv-full .fv-head { padding: 0 12px; }
.sheet.fv-full .fv-head > div { display: none; }
.sheet.fv-full .fv-body { flex: 1; min-height: 0; display: flex; }
.sheet.fv-full .fv-wrap { flex: 1; min-height: 0; display: flex; }
.sheet.fv-full .fv-nav { padding: 2px 0; }
.fv-stage.vert { height: auto !important; flex: 1; overflow: auto !important; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.fv-stage.vert .fv-zoom { position: static; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 6px; transform: none !important; width: max-content; min-width: 100%; }
.fv-stage.vert.zoomed .fv-zoom { align-items: flex-start; }
.fv-stage.vert .fv-page { border-radius: 6px; flex: none; }
.fv-stage.vert .fv-page:not(.has-img) { background: #fff; }
.sheet.fv-full .fv-wrap { flex-direction: column; }
.sheet.fv-full .fv-stage.vert { flex: 1 1 0; min-height: 0; }
.sheet.fv-full .fv-arrow { display: none !important; }
.sheet.fv-full .fv-body { align-items: stretch; }
.sheet.fv-full .sheet-head { margin: 0; padding: 8px 12px 0; } .sheet.fv-full .sheet-head h3 { line-height: 1.25; }

/* ---------- Épicerie : tri discret, nom modifiable sur place ---------- */
.list-sort { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 4px; font-size: 12.5px; color: var(--muted); }
.list-sort .seg { display: inline-flex; background: var(--raised); border-radius: 999px; padding: 2px; }
.list-sort .seg button { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.list-sort .seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.list .txt-edit { width: 100%; font: inherit; font-size: inherit; color: var(--text); background: var(--raised); border: 1.5px solid var(--accent); border-radius: 10px; padding: 6px 10px; }
.list li .txt-name { cursor: text; }
.ca-keep { padding: 9px 12px; border-radius: 12px; background: var(--raised); color: var(--muted); font-weight: 700; font-size: 13.5px; text-align: left; }
.ca-keep.on { color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }

/* Changer de semaine en glissant le doigt */
.wk-from-right { animation: wkRight .24s ease-out; }
.wk-from-left { animation: wkLeft .24s ease-out; }
@keyframes wkRight { from { transform: translateX(36px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes wkLeft { from { transform: translateX(-36px); opacity: .3; } to { transform: none; opacity: 1; } }
.week-card, .month-card { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .wk-from-right, .wk-from-left { animation: none; } }

/* Aubaines : sortes de produits, toucher = voir sur la circulaire, × = masquer */
.deal-kinds { margin: 0 0 10px; flex-wrap: wrap; }
.deal-card.can-open { cursor: pointer; }
.deal-card.can-open:active { transform: scale(.98); }
.deal-hide { position: absolute; top: 6px; left: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.45); color: #fff; opacity: .8; }
.deal-hide svg { width: 14px; height: 14px; }
.deal-card .deal-pct { z-index: 1; }
.deal-card.going { transition: opacity .2s, transform .2s; opacity: 0; transform: scale(.9); }
.deal-card.arriving { animation: dealIn .3s ease-out; }
@keyframes dealIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.deal-card.flash { animation: dealFlash 1.4s ease-out; }
@keyframes dealFlash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.fv-spot.found { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; animation: spotPulse 1s ease-out 2; }
@keyframes spotPulse { 0% { box-shadow: 0 0 0 0 rgba(255,140,90,.7); } 100% { box-shadow: 0 0 0 18px rgba(255,140,90,0); } }

.deal-hide { left: auto; right: 6px; }
.toast.has-act { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.toast-act { color: var(--accent); font-weight: 800; padding: 4px 6px; }

/* % de rabais à côté du prix (≈ = estimé d'après la moyenne des dernières semaines) */
.deal-off { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 800; color: #fff; background: #e5484d; padding: 2px 6px; border-radius: 8px; vertical-align: middle; }
.deal-off.est, .deal-pct.est { background: #c2410c; }
.deal-avg { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ================= 2.78 : page Musique ================= */
#page-musique .col-np { flex: 1 1 50%; }
#page-musique .col-music { flex: 1 1 50%; }
.music-np-card { flex: 1; overflow-y: auto; scrollbar-width: none; justify-content: center;
  background: linear-gradient(170deg, color-mix(in srgb, var(--fp-bg, var(--raised)) 70%, var(--surface)) 0%, var(--surface) 92%); transition: background .6s; }
.music-np-card .fp { margin: 0 auto; width: 100%; }
.music-np-card .fp-art { width: min(360px, 40vh, 86%); }
#page-musique .sonos-card { flex: 0 1 auto; max-height: 46%; overflow-y: auto; scrollbar-width: none; }
#page-musique .sonos-card .head-btns { display: flex; gap: 6px; align-items: center; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.listen-card { flex: 1 1 0; overflow-y: auto; scrollbar-width: none; }
.listen-card .music-search-btn { margin-bottom: 4px; }
.ml-sub { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 8px; }
.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mood, .scene { position: relative; border-radius: 16px; padding: 12px; color: #fff; min-height: 76px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.mood:active, .scene:active { transform: scale(.97); }
.mood b, .scene b { font-size: 16px; line-height: 1.15; padding-right: 22px; }
.mood small, .scene small { font-size: 11.5px; font-weight: 600; opacity: .9; line-height: 1.3; }
.mood-edit-btn { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.18); color: #fff; }
.mood-edit-btn svg { width: 14px; height: 14px; }
.ml-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.ml-tiles .pl span, .mood-pls .pl span { display: block; font-size: 12px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mood-pls { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; max-height: 260px; overflow-y: auto; }
.mood-pls .pl.sel .cover { outline: 3px solid var(--accent); outline-offset: 2px; }
.plain-range { width: 100%; accent-color: var(--accent); }
.alarm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alarm-row.off { opacity: .55; }
.al-time { font-family: var(--serif); font-weight: 800; font-size: 26px; min-width: 96px; cursor: pointer; }
.al-txt { flex: 1; min-width: 0; cursor: pointer; }
.al-txt b { display: block; }
.al-txt small, .h-txt small { color: var(--muted); font-size: 13px; }
.alarm-row .switch { padding: 0; }
.eq-room { padding: 12px 0; border-bottom: 1px solid var(--line); }
.eq-room h3 { font-size: 17px; margin-bottom: 6px; }
.eq-range { display: grid; grid-template-columns: 70px 1fr 34px; align-items: center; gap: 10px; font-weight: 600; }
.eq-range b { text-align: right; font-variant-numeric: tabular-nums; }
.eq-max { justify-content: space-between; align-items: center; }

/* ================= 2.78 : page Maison ================= */
#page-maison.active { flex-direction: column; }
.house-top { display: flex; flex-direction: column; gap: var(--gap); flex: none; }
.house-status { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; }
.house-status h2 { margin: 0 8px 0 0; font-size: 22px; }
.hs-pill { padding: 7px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: var(--raised); color: var(--text); }
.hs-pill.ok { background: color-mix(in srgb, #3f8f52 16%, var(--surface)); color: #2f7a42; }
.hs-pill.warn { background: color-mix(in srgb, #e07a3b 18%, var(--surface)); color: #b4441a; }
:root:not([data-theme="light"]) .hs-pill.ok { color: #8fd19e; }
:root:not([data-theme="light"]) .hs-pill.warn { color: #f3a77a; }
.house-scenes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.scene { min-height: 92px; padding: 14px; }
.scene b { font-size: 18px; }
.house-cols { display: flex; gap: var(--gap); flex: 1; min-height: 0; }
#page-maison .col-lights { flex: 1 1 36%; }
#page-maison .col-auto { flex: 1 1 32%; }
#page-maison .col-care { flex: 1 1 32%; }
.house-timers, .house-care, .house-info { overflow-y: auto; scrollbar-width: none; }
.house-care { flex: 1 1 auto; }
.house-info { flex: 0 1 auto; }
.house-cams { flex: none; }
.h-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.h-row:last-of-type { border-bottom: 0; }
.h-ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.h-txt { flex: 1; min-width: 0; }
.h-txt b { display: block; font-size: 15px; }
.h-tag { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.h-tag.ok { color: #2f7a42; } .h-tag.due { color: #b4441a; } .h-tag.soon { color: #b7791f; } .h-tag.mut { color: var(--muted); font-weight: 600; }
:root:not([data-theme="light"]) .h-tag.ok { color: #8fd19e; }
:root:not([data-theme="light"]) .h-tag.due { color: #f3a77a; }
.switch.mini { padding: 0; }
.hint.small { font-size: 12px; margin-top: 6px; }
.bin-box { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--raised); margin-bottom: 6px; cursor: pointer; }
.bin-box.now { background: color-mix(in srgb, #3b82f6 16%, var(--surface)); }
.bin-edit { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.bin-edit .row { gap: 8px; flex-wrap: wrap; }
.bin-edit input[type=text] { flex: 1; min-width: 120px; }
.chips.days .chip { min-width: 40px; justify-content: center; }
.scene-zones { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.scene-zone { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.cam-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.cam-tile { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--raised); font-size: 13px; font-weight: 700; }
.cam-tile img, .cam-tile svg { width: 40px; height: 40px; border-radius: 10px; }
.wifi-qr { width: min(320px, 70vw); margin: 0 auto; background: #fff; padding: 10px; border-radius: 16px; }
.wifi-qr svg { width: 100%; height: auto; display: block; }
.wifi-sheet .row { align-items: center; gap: 10px; flex-wrap: wrap; }
.big-done { width: 100%; padding: 14px; font-size: 17px; }

@media (orientation: portrait) {
  #page-maison.active, #page-musique.active { flex-direction: column; flex-wrap: nowrap; }
  .house-cols { flex-direction: column; flex: none; }
  .house-scenes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #page-maison .col-lights { height: 50vh; flex: none; }
  #page-musique .col-np, #page-musique .col-music { flex: none; }
  #page-musique .sonos-card { max-height: none; }
}
.card-head .text-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; color: var(--accent); font-weight: 700; }
.card-head .text-btn svg { width: 16px; height: 16px; }
.listen-card > *, #page-musique .sonos-card > *, .music-np-card > *, .house-timers > *, .house-care > *, .house-info > *, .house-cams > * { flex-shrink: 0; }
.month-card, .week-card { overflow-x: clip; }
/* Champs dans les fenêtres (collectes, scénarios, son…) : même style que les autres, lisibles en mode sombre */
.sheet input[type=text], .sheet input[type=time], .sheet input[type=date], .sheet input[type=tel], .sheet input[type=password], .sheet input[type=search], .sheet select {
  background: var(--raised); color: var(--text); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; font-family: inherit; outline: none; min-height: 46px; }
.sheet input:focus, .sheet select:focus { border-color: var(--accent); }
.sheet select option { background: var(--surface); color: var(--text); }
:root:not([data-theme="light"]) .sheet input, :root:not([data-theme="light"]) .sheet select { color-scheme: dark; }
.bin-edit .row > select:first-child { flex: 0 0 auto; }
.bin-edit .row { align-items: center; }
.eq-max { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.eq-max label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.eq-max select { width: auto; min-width: 140px; }

/* ===== 2.82 : Ajouter une recette, version simple ===== */
.easy-step { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 18px 0 10px; }
.easy-step:first-child { margin-top: 4px; }
.es-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); display: grid; place-items: center; font-family: var(--sans, inherit); font-size: 15px; font-weight: 800; flex: none; }
.easy-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.easy-tiles.two-up { grid-template-columns: 1.3fr 1fr; }
.easy-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; padding: 16px 8px; border-radius: 18px;
  background: var(--raised); border: 1.5px solid transparent; min-height: 112px; }
.easy-tile:active { transform: scale(.97); }
.easy-tile .et-ic { font-size: 34px; line-height: 1; margin-bottom: 4px; }
.easy-tile b { font-size: 15px; }
.easy-tile small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.easy-tile.main { background: color-mix(in srgb, var(--accent) 16%, var(--raised)); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.easy-dish { display: flex; gap: 14px; align-items: center; }
.easy-dish img { width: 140px; height: 105px; object-fit: cover; border-radius: 14px; flex: none; }
.easy-dish-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.easy-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.easy-type { display: flex; align-items: center; gap: 8px; padding: 13px 12px; border-radius: 14px; background: var(--raised); font-weight: 700; font-size: 15px; border: 1.5px solid transparent; }
.easy-type span { font-size: 22px; }
.easy-type.on { background: color-mix(in srgb, var(--accent) 20%, var(--raised)); border-color: var(--accent); }
.easy-more { margin-top: 10px; }
.easy-more summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 14px; padding: 6px 0; }
.easy-more .chips { margin-top: 8px; }
.easy-save { width: 100%; padding: 15px; font-size: 17px; margin: 18px 0 8px; justify-content: center; }
.easy-recipe .text-btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .easy-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .easy-tiles.two-up { grid-template-columns: 1fr 1fr; }
  .easy-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .easy-dish { flex-direction: column; align-items: stretch; }
  .easy-dish img { width: 100%; height: 170px; }
}
.easy-recipe .text-btn svg { width: 18px; height: 18px; flex: none; }
.easy-details[hidden] { display: none; }
/* 2.83 : icônes fines à la place des emojis */
.easy-tile .et-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--text) 7%, transparent); margin-bottom: 6px; }
.easy-tile .et-ic svg { width: 26px; height: 26px; }
.easy-tile.main .et-ic { background: var(--accent); color: var(--on-accent, #fff); }
.easy-type svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.easy-type.on svg { color: var(--accent); }
.h-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); }
.h-ic svg { width: 20px; height: 20px; }
.hs-pill { display: inline-flex; align-items: center; gap: 6px; }
.hs-pill svg { width: 16px; height: 16px; flex: none; }
.fp-chip svg { width: 16px; height: 16px; }
.bin-box.now .h-ic { color: #3b82f6; }
.more-pages { margin: 10px 0 4px; padding: 14px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.more-pages .mp-txt b { display: block; font-size: 15px; }
.more-pages .mp-txt small { color: var(--muted); font-size: 13px; }
.more-pages .mp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.more-pages .mp-btns .btn { flex: 1 1 200px; justify-content: center; }
/* 2.88 : photos des étoiles */
.star-photos { display: grid; gap: 10px; }
.star-photos .sp { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; margin: 0; }
.star-photos .sp img { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; cursor: pointer; }
.star-photos figcaption b { display: block; }
.star-photos figcaption small { color: var(--muted); }
/* 2.90 : portions adaptables */
.portions-step { display: inline-flex; align-items: center; gap: 4px; background: var(--raised); border-radius: 99px; padding: 3px; }
.portions-step b { min-width: 92px; text-align: center; font-size: 14px; }
.ps-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); font-size: 20px; font-weight: 700; line-height: 1; display: grid; place-items: center; color: var(--accent); }
.ps-btn:active { transform: scale(.92); }
.portions-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 12px; padding: 8px 10px; margin: 4px 0 8px; }
.portions-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.portions-note .text-btn { color: var(--accent); font-weight: 700; padding: 0; }

/* 2.92 — Communauté et administration */
.commu-line { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.commu-line svg { width: 16px; height: 16px; flex-shrink: 0; }
.chip.private-btn.on { background: var(--accent-soft, rgba(120,120,120,.18)); }
.admin-fam { border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.admin-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-head svg { width: 18px; height: 18px; }
.admin-head small { opacity: .7; width: 100%; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line, rgba(128,128,128,.15)); }
.admin-who { display: flex; flex-direction: column; min-width: 0; }
.admin-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-who small { opacity: .7; }
.admin-row .chip { flex-shrink: 0; }
.admin-acts { margin-top: 8px; }
.friend-add { display: flex; gap: 8px; align-items: center; }
.friend-add input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.friend-add .btn { flex-shrink: 0; }
.admin-row .chips { flex-shrink: 0; flex-wrap: nowrap; }
.pseudo-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card, rgba(128,128,128,.1)); margin-bottom: 10px; }
.pseudo-box > div:first-child { display: flex; flex-direction: column; }
.pseudo-box small { opacity: .7; }
.pseudo-box b { font-size: 1.1em; }
.pseudo-box.ask { flex-direction: column; align-items: stretch; border: 1px solid var(--accent, #2a7); }
.pseudo-box .at { font-weight: 700; font-size: 1.2em; opacity: .7; }
.admin-rec { border-top: 1px solid var(--line, rgba(128,128,128,.15)); padding: 8px 0; }
.admin-rec summary { display: flex; flex-direction: column; cursor: pointer; list-style: none; }
.admin-rec summary::-webkit-details-marker { display: none; }
.admin-rec summary small { opacity: .7; }
.admin-rec img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin: 8px 0; }
.admin-list { margin: 6px 0; padding-left: 18px; }
.admin-list .sheet-label { list-style: none; margin-left: -18px; }
/* 2.96 — profils, famille et amis */
.av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--accent-soft, rgba(120,120,120,.2)); overflow: hidden; }
.av img, .acct-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.big { width: 60px; height: 60px; font-size: 1.4em; }
.acct-av.has-photo { padding: 0; overflow: hidden; }
.av-edit { position: relative; border: 0; background: none; padding: 0; flex-shrink: 0; cursor: pointer; }
.av-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent, #2a7); color: #fff; display: flex; align-items: center; justify-content: center; }
.av-cam svg { width: 14px; height: 14px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pseudo-box .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pseudo-top { display: flex; gap: 12px; align-items: center; }
.pseudo-top > div { display: flex; flex-direction: column; }
.search-res { margin: 6px 0 4px; }
.admin-row.req { flex-wrap: wrap; }
.friends > input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.friends .chip svg, .admin .chip svg { width: 16px; height: 16px; flex-shrink: 0; }

/* 2.99 — ma photo en haut de chaque page (petite bulle, sans barre) ; page « Personnes » */
body.phone .fil-me { display: none; }
body.phone .me-row { position: relative; padding-right: 46px !important; }
body.phone .me-row > .me-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; }
body.phone .page.me-row > .me-btn, body.phone .card.me-row > .me-btn { top: 12px; right: 12px; transform: none; }
.me-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.me-btn .av { width: 36px; height: 36px; font-size: .95rem; }
.me-badge { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.me-badge.in { position: static; margin-left: 6px; }
.me-btn.has-alert::after { top: -2px; left: -2px; right: auto; }
.av.huge { width: 96px; height: 96px; font-size: 2.2rem; }
.pp { display: flex; flex-direction: column; gap: 12px; }
.pp > input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.pp-me { display: flex; align-items: center; gap: 12px; }
.pp-me-av { border: 0; background: none; padding: 0; cursor: pointer; }
.pp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-who span, .pp-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-who small { opacity: .7; }
.pp-who a { color: inherit; text-decoration: underline; }
.pp-tabs { display: flex; gap: 6px; background: var(--card, rgba(128,128,128,.12)); padding: 4px; border-radius: 12px; }
.pp-tab { flex: 1; border: 0; background: none; color: inherit; padding: 9px 4px; border-radius: 9px; font: inherit; font-size: .92rem; opacity: .75; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pp-tab.on { background: var(--surface, rgba(128,128,128,.25)); opacity: 1; font-weight: 600; }
.pp-actions { gap: 8px; flex-wrap: wrap; }
.pp-actions .btn { flex: 1; justify-content: center; }
.pp-list { display: flex; flex-direction: column; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line, rgba(128,128,128,.15)); }
.pp-row:first-child { border-top: 0; }
.pp-row.tap { cursor: pointer; }
.pp-row > svg { width: 18px; height: 18px; opacity: .5; flex-shrink: 0; }
.pp-row .btn.sm { padding: 6px 14px; flex: 0 0 auto; }
.pp-req { border-top: 1px solid var(--line, rgba(128,128,128,.15)); padding-bottom: 8px; }
.pp-req:first-child { border-top: 0; }
.pp-req .pp-row { border-top: 0; }
.pp-empty { text-align: center; padding: 18px 8px; }
.pp-empty b { display: block; margin-bottom: 4px; }
.pp-leave { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.pp-step { font-size: .8rem; opacity: .6; margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.pp-bigav { position: relative; align-self: center; border: 0; background: none; padding: 0; cursor: pointer; }
.pp-bigav .av-cam { width: 30px; height: 30px; right: 2px; bottom: 2px; }
.pp h3 { margin: 4px 0 0; }
.pp-center { align-items: center; text-align: center; }
.pp-center .pp-actions { align-self: stretch; }
.pp-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pp-rec { border: 0; background: var(--card, rgba(128,128,128,.12)); color: inherit; border-radius: 12px; overflow: hidden; padding: 0; text-align: left; font: inherit; font-size: .85rem; cursor: pointer; display: flex; flex-direction: column; }
.pp-rec img, .pp-rec-ph { width: 100%; height: 84px; object-fit: cover; display: flex; align-items: center; justify-content: center; opacity: .9; }
.pp-rec-ph svg { width: 26px; height: 26px; opacity: .4; }
.pp-rec > span:last-child { padding: 6px 8px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp .qr { align-self: center; width: 200px; background: #fff; border-radius: 12px; padding: 6px; }
.pp .qr svg { width: 100%; height: auto; display: block; }
.pp-linkbtn { align-self: center; }
.pp a { color: inherit; text-decoration: underline; }
body.phone .card-head.me-row { flex-wrap: nowrap; }
body.phone .card-head.me-row > h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.phone .card-head.me-row > .btn { flex-shrink: 0; white-space: nowrap; }
body.phone .card-head.me-row { gap: 8px; }
body.phone .card-head.me-row > h2 { font-size: 1.2rem; }
body.phone .card-head.me-row > .btn { padding-left: 12px; padding-right: 12px; }
.pp-warn { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.pp-warn svg { width: 22px; height: 22px; flex-shrink: 0; }
.pp-list-dots { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
/* 3.00 — vie privée */
.check.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.4; margin: 6px 0; }
.check.consent input { margin-top: 3px; flex-shrink: 0; }
.check.consent a, .policy a { color: inherit; text-decoration: underline; }
.policy { line-height: 1.55; }
.sheet .policy h1, .policy h1 { font-size: 1.2rem; line-height: 1.3; margin: 8px 0 4px; }
.sheet .policy h2, .policy h2 { font-size: 1.02rem; margin: 18px 0 4px; }
.policy .meta { opacity: .65; font-size: .85rem; }
.policy table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 5px 6px; border-bottom: 1px solid var(--line, rgba(128,128,128,.2)); }
.policy .box { border: 1px solid var(--line, rgba(128,128,128,.3)); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.policy ul, .policy ol { padding-left: 20px; }
.site-sugg { margin-top: 10px; } .site-sugg .chips { margin-top: 4px; }
/* 3.02 — accueil des sites, sites des amis */
.site-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.site-tile { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line, rgba(128,128,128,.3)); cursor: pointer; }
.site-tile.on { border-color: var(--accent, #2a9d8f); background: var(--accent-soft, rgba(42,157,143,.12)); }
.site-tile input { margin-top: 3px; flex-shrink: 0; }
.site-tile div { display: flex; flex-direction: column; min-width: 0; }
.site-tile small { opacity: .7; overflow: hidden; text-overflow: ellipsis; }
.site-friends .site-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.site-friends .site-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.site-friends .btn.sm { padding: 6px 12px; flex-shrink: 0; }

/* 3.04 : pastille « + » pour ajouter un autre site à la main */
.site-add[hidden], .site-other[hidden], .site-plus[hidden] { display: none; }
.site-add { margin-top: 10px; }
.chip.chip-plus { border: 1.5px dashed var(--accent); color: var(--accent); background: transparent; font-weight: 600; }
.site-tile.site-plus { border-style: dashed; cursor: pointer; text-align: left; font: inherit; color: inherit; background: none; }
.site-tile.site-plus .plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; flex: none; }
.site-other { margin: 10px 0 0; }
.site-other input { width: 100%; background: var(--raised); color: var(--text); border: 1.5px solid var(--accent); border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; box-sizing: border-box; }
/* 3.05 : tuile « + » en pointillé et petite fenêtre « Ajouter un site » */
.site-tile.site-plus { border: 1.5px dashed var(--accent, #2a9d8f); align-items: center; }
.site-tile.site-plus b { color: var(--accent, #2a9d8f); }
.site-pop-wrap { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.35); display: grid; place-items: center; padding: 16px; }
.site-pop { background: var(--card, #fff); color: var(--text); border-radius: 18px; padding: 18px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.site-pop b { font-size: 17px; }
.site-pop input { background: var(--raised); color: var(--text); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; width: 100%; box-sizing: border-box; }
.site-pop input:focus { border-color: var(--accent); }
.site-pop .pop-err { color: #c0392b; min-height: 1em; }
.site-pop .pp-actions { justify-content: flex-end; }
/* 3.05 : cellulaire / site Web sur un grand écran (ordinateur) : plus d'idées, tuiles plus petites */
@media (min-width: 700px) {
  .phone .ideas { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .phone .rtile-name { font-size: 16px; }
}

/* 3.05 : logo et nom Atable */
.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.brand-word { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.brand-word span { color: var(--accent); }
.brand-mark.big { flex-direction: column; gap: 8px; width: 100%; margin: 4px 0 10px; }
.brand-mark.big .brand-logo { width: 72px; height: 72px; border-radius: 20px; }
.brand-mark.big .brand-word { font-size: 34px; }
.brand-mark.sm .brand-logo { width: 26px; height: 26px; border-radius: 8px; }
.brand-mark.sm .brand-word { font-size: 19px; }
.brand-top { display: none; }
/* Ordinateur (cellulaire/site Web sur grand écran) : logo à gauche, onglets en haut, en une seule rangée */
@media (min-width: 900px) {
  body.phone { position: relative; }
  body.phone .brand-top { display: flex; align-items: center; position: absolute; top: 0; left: 0; height: 64px; padding: 0 22px; z-index: 6; }
  body.phone .tabbar { order: -1; min-height: 64px; box-sizing: border-box; align-items: center; justify-content: center; gap: 6px; padding: 8px 200px; border-top: 0; border-bottom: 1px solid var(--raised); }
  body.phone .tabbar button { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 9px 16px; font-size: 14.5px; border-radius: 12px; }
  body.phone .tabbar button span { font-size: 14.5px; }
  body.phone .tabbar button svg { width: 20px; height: 20px; }
}
/* 3.06 : cellulaire : « Atable » et le logo à la place de « Idées de soupers » (ordinateur : le logo est déjà en haut) */
.ideas-brand { display: none; }
body.phone .ideas-card > .card-head > .ideas-brand { display: inline-flex; flex: 1; min-width: 0; }
body.phone .ideas-card > .card-head > h2 { display: none; }
@media (min-width: 900px) {
  body.phone .ideas-card > .card-head > .ideas-brand { display: none; }
  body.phone .ideas-card > .card-head > h2 { display: block; }
}
/* 3.07 : logo cliquable (retour à la page principale) ; code postal sur la page des circulaires */
.brand-link { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brand-link:active { transform: scale(.97); }
.fly-postal { margin-top: 10px; }
.fly-postal input { flex: 1; min-width: 0; background: var(--raised); color: var(--text); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; }
.fly-postal input:focus { border-color: var(--accent); }
/* 3.08 : notifications push */
.push-box { border: 1.5px solid var(--raised); border-radius: 14px; padding: 12px; margin: 6px 0 14px; }
.push-head { display: flex; align-items: center; gap: 12px; }
.push-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push-head .btn { flex: none; white-space: nowrap; }
.push-box .rem-list { margin-top: 10px; }
/* 3.08 : bandeau « Installez Atable » */
.inst-bar { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 800; display: flex; align-items: center; gap: 10px;
  background: var(--surface, #fff); color: var(--text); border-radius: 16px; padding: 10px 10px 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: in-up .3s ease-out both; }
.inst-bar img { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.inst-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inst-txt small { color: var(--muted); }
.inst-bar .btn { flex: none; padding: 9px 14px; }
.inst-x { flex: none; width: 34px; height: 34px; }
@media (min-width: 900px) { .inst-bar { left: auto; right: 20px; bottom: 20px; width: 380px; } }
.inst-how ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.inst-ic { display: inline-flex; vertical-align: -3px; } .inst-ic svg { width: 18px; height: 18px; display: inline-block; }
.inst-how li { display: list-item; }
.brand-tag { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: -2px; }
/* 3.10 : ordinateur et grande tablette : pages plus visuelles et centrées */
@media (min-width: 700px) {
  /* Semaine : une carte par jour, avec la photo du repas */
  body.phone .week { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: auto; gap: 14px; }
  body.phone .meal-day { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 200px; padding: 14px 16px; gap: 8px; height: 100%; width: 100%; }
  body.phone .meal-day .md-day { width: auto; position: relative; z-index: 1; }
  body.phone .meal-day.set .md-day { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  body.phone .meal-day.set .md-day span { color: rgba(255,255,255,.85); }
  body.phone .meal-day .md-main { position: relative; z-index: 1; width: 100%; }
  body.phone .meal-day .md-name { font-size: 18px; }
  body.phone .meal-day.set .md-photo.no-img .rphoto-art { right: 50%; transform: translate(50%, -50%); font-size: 72px; }
  body.phone .meal-day.set::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 35%, transparent 55%, rgba(0,0,0,.65)); z-index: 0; pointer-events: none; }
  body.phone .meal-day .md-empty { margin: auto; font-size: 16px; }
  body.phone .md-wrap { display: flex; flex-direction: column; }
  /* Épicerie, tâches, fil, réglages : une colonne centrée, plus facile à lire */
  body.phone #page-accueil > .col-right { max-width: 860px; margin: 0 auto; }
  body.phone #taches, body.phone #settings { max-width: 860px; margin-left: auto; margin-right: auto; width: 100%; }
  body.phone #fil { max-width: 640px; margin: 0 auto; width: 100%; }
  body.phone #fil img { max-height: 70vh; object-fit: cover; }
}
@media (min-width: 700px) {
  body.phone .meal-day .md-main { justify-content: flex-end; }
  body.phone .meal-day .md-name { flex: none; }
  body.phone .meal-day.set .md-photo.no-img .rphoto-art { top: 46%; font-size: 64px; opacity: .9; }
}
.list-group.done-head { margin-top: 14px; color: var(--muted); }
/* 3.10 : flèches de la semaine rapprochées du titre */
body.phone .week-nav { justify-content: center; gap: 12px; }
body.phone .week-nav h2 { flex: none; min-width: 0; text-align: center; }
/* 3.10 : plus d'emoji : sans photo, un fond sobre et une icône au trait */
.rphoto.no-img { background: radial-gradient(120% 100% at 30% 15%, hsl(var(--hue) 22% 40%), hsl(calc(var(--hue) + 25) 20% 18%)); }
.rphoto-art { display: grid; place-items: center; line-height: 0; filter: none; }
.rphoto-art svg { width: clamp(28px, 22cqi, 56px); height: auto; color: rgba(255,255,255,.42); stroke-width: 1.5; }
.rtile-img .rphoto-art { margin-bottom: 26%; }
.md-tile.add span svg, .zone-opt span svg { width: 20px; height: 20px; }
.recipe-pantry > svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.dup-note > span svg { width: 18px; height: 18px; color: #c0392b; }
/* 3.11 : ordinateur : ma bulle en haut à droite (la barre laisse passer les clics vers les onglets) */
@media (min-width: 900px) {
  body.phone .brand-top { right: 0; justify-content: space-between; pointer-events: none; }
  body.phone .brand-top > * { pointer-events: auto; }
  body.phone .brand-top > .me-btn { position: relative; transform: none; width: 40px; height: 40px; }
}
/* 3.14 : cellulaire : le logo Atable en haut de chaque page (Recettes l'a déjà dans son en-tête) */
@media (max-width: 899px) {
  body.phone .brand-top { display: flex; align-items: center; flex: none; padding: 12px 18px 2px; } /* le haut de l'écran (encoche) est déjà réservé par body.web */
  body.phone .brand-top .brand-logo { width: 30px; height: 30px; border-radius: 9px; }
  body.phone .brand-top .brand-word { font-size: 21px; }
  body.phone[data-tab="recipes"] .brand-top { display: none; }
}
.photo-credit { margin: 6px 2px 0; font-size: 11.5px; color: var(--muted, #8a8a8a); }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* 3.14 : cellulaire : logo à gauche, ma bulle à droite, sur la même ligne */
@media (max-width: 899px) {
  body.phone .brand-top { justify-content: space-between; gap: 12px; padding-right: 16px; padding-bottom: 6px; }
  body.phone .brand-top > .me-btn { position: relative; inset: auto; transform: none; flex: none; }
  body.phone .brand-top > .me-btn .av { width: 38px; height: 38px; box-shadow: 0 0 0 2px var(--bg, #f6f2ec), 0 0 0 3.5px color-mix(in srgb, var(--accent) 35%, transparent), 0 2px 8px rgba(0,0,0,.08); }
}
@media (max-width: 899px) {
  body.phone .brand-top .brand-logo { width: 36px; height: 36px; border-radius: 10px; }
  body.phone .brand-top .brand-word { font-size: 24px; }
  body.phone .me-btn .av { box-shadow: 0 0 0 2px var(--bg, #f6f2ec), 0 0 0 3.5px color-mix(in srgb, var(--accent) 35%, transparent), 0 2px 8px rgba(0,0,0,.08); }
}
.pp-section { margin: 14px 2px 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #8a8a8a); }
.pp-list:first-child > .pp-section { margin-top: 2px; }
/* 3.14 : cellulaire : « Remplir la semaine » et « Vers l'épicerie » côte à côte */
.wk-short { display: none; }
@media (max-width: 699px) {
  body.phone .week-card > .card-head > .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  body.phone .week-card > .card-head > .row > .btn { justify-content: center; padding: 11px 8px; font-size: 14px; white-space: nowrap; min-width: 0; gap: 6px; margin: 0; }
  body.phone .week-card > .card-head > .row > .btn svg { width: 18px; height: 18px; flex: none; }
  body.phone #week-grocery .wk-long { display: none; }
  body.phone #week-grocery .wk-short { display: inline; }
}
@media (max-width: 370px) { body.phone .week-card > .card-head > .row > .btn { font-size: 12.5px; padding: 10px 6px; gap: 4px; } }
/* 3.14 : « Mes recettes » repliable */
.my-list-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin: 18px 0 4px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--chip, rgba(0,0,0,.05)); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.my-list-toggle .sheet-label { margin: 0; flex: 1; }
.my-list-count { min-width: 26px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; text-align: center; }
.my-list-chev { display: flex; transition: transform .2s; }
.my-list-chev svg { width: 20px; height: 20px; }
.my-list-toggle.open .my-list-chev { transform: rotate(180deg); }
/* 3.14 : passage d'une circulaire à l'autre en glissant */
@keyframes flyInRight { from { transform: translateX(36px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes flyInLeft { from { transform: translateX(-36px); opacity: .3; } to { transform: none; opacity: 1; } }
.fly-in-right { animation: flyInRight .22s ease-out; }
.fly-in-left { animation: flyInLeft .22s ease-out; }
/* 3.14 : passage d'un onglet à l'autre en glissant (cellulaire) */
.tab-in-right { animation: flyInRight .22s ease-out; }
.tab-in-left { animation: flyInLeft .22s ease-out; }
/* 3.14 : personnes en bulles (Recettes) */
.people-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; margin: 2px 0 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.people-row::-webkit-scrollbar { display: none; }
.people-row[hidden] { display: none; }
.pbub { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 64px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; scroll-snap-align: start; }
.pbub-face { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--raised, #eee); box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 3.5px var(--line, rgba(0,0,0,.12)); transition: transform .15s, box-shadow .15s; overflow: hidden; }
.pbub-face svg { width: 24px; height: 24px; color: var(--muted); }
.pbub-ini { display: grid; place-items: center; width: 100%; height: 100%; font-size: 22px; font-weight: 800; color: #fff; background: hsl(var(--h) 38% 46%); }
.pbub.fresh .pbub-face { box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 4.5px var(--accent); }
.pbub-home .pbub-face { box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 3.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.pbub-new .pbub-face { background: color-mix(in srgb, var(--accent) 18%, var(--surface, #fff)); }
.pbub-new .pbub-face svg { color: var(--accent); }
.pbub.on .pbub-face { transform: scale(1.06); box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 5px var(--accent); }
.pbub-name { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--muted); }
.pbub.on .pbub-name { color: var(--accent); }
.pbub-x { position: absolute; top: -2px; right: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--surface, #fff); }
.pp-pick .pbub-ini { width: 40px; height: 40px; border-radius: 50%; font-size: 17px; flex: none; }
.pp-pick.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
/* Fenêtre Filtres rangée */
.filter-seg { display: flex; background: var(--raised); border-radius: 999px; padding: 3px; margin-bottom: 4px; }
.filter-seg button { flex: 1; padding: 9px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.filter-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.filter-hidden { display: block; margin: 4px 0 10px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pbub-ini { position: relative; }
.pbub-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* 3.14 : amis dans le Fil */
.fil-friends { margin: 4px 0 14px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line, rgba(0,0,0,.08)); }
.fil-friends-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fil-friends-head > b { font-size: 16px; }
.fil-friends-head .row { gap: 6px; flex-wrap: wrap; }
.fil-friends-head .chip svg { width: 16px; height: 16px; vertical-align: -3px; }
.accent-chip { background: var(--accent) !important; color: #fff !important; }
.fil-friends-sub { margin: 10px 0 6px; font-weight: 700; }
.fil-sugg { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fil-sugg::-webkit-scrollbar { display: none; }
.fil-sugg-card { position: relative; flex: none; width: 130px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 10px; border-radius: 16px; background: var(--raised); text-align: center; }
.fil-sugg-card b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-sugg-card small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fil-sugg-card .btn { margin-top: 4px; width: 100%; }
.fil-sugg-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.fil-sugg-av.ini { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 25%, var(--surface)); font-size: 22px; font-weight: 800; }
.fil-sugg-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.push-ask ul { margin: 6px 0 10px; }
.fil-friends-head .chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* 3.14 : circulaire sur ordinateur : défilement continu de haut en bas, pages centrées, boutons + / − */
.fv-stage.vert.fit .fv-page { box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.fv-stage.vert.fit .fv-zoom { gap: 16px; padding: 10px; }
.fv-zbtns { display: none; position: absolute; right: 14px; bottom: 14px; z-index: 5; flex-direction: column; gap: 8px; }
.fv-wrap:has(.fv-stage.fit) .fv-zbtns { display: flex; }
.fv-zbtns .icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
/* 3.14 : cellulaire : recherche, bulles, filtres et idées défilent ensemble ; les bulles restent collées en haut */
.ideas-scroll { display: contents; }
@media (max-width: 699px) {
  body.phone .ideas-scroll { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
  body.phone .ideas-scroll::-webkit-scrollbar { display: none; }
  body.phone .ideas-scroll > .ideas { flex: none; overflow: visible; }
  body.phone .ideas-scroll > .idea-search, body.phone .ideas-scroll > #idea-filters, body.phone .ideas-scroll > .people-row { flex: none; }
  body.phone .people-row { position: sticky; top: 0; z-index: 4; background: var(--surface); margin: 0 -4px; padding: 6px 4px 8px; }
  body.phone .people-row.stuck { box-shadow: 0 8px 12px -10px rgba(0,0,0,.4); }
}

/* 3.14 : iPhone (app sur l'écran d'accueil) : l'app prend tout l'écran, comme sur Android */
html.ios-app, html.ios-app body { height: var(--app-h, 100%); }
html.ios-app body.web { padding-top: max(env(safe-area-inset-top), 20px); box-sizing: border-box; }
html.ios-app .web .tabbar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
