/* Foyer — interface « v2 » en essai (alpha, 2026-10-13) : html[data-ui="v2"] par-dessus le design « chaleur ».
   Inspirée de Mélimélo : fond grège, vert sapin, cartes blanches, pastilles rondes, tuiles pastel illustrées,
   boutons maison et + flottants. Sans thème de saison : palette ci-dessous ; avec un thème : ses couleurs, mais la même mise en page. */

:root[data-da="chaleur"][data-ui="v2"]:not([data-saison]) {
  /* 2026-10-13 : plus lumineux (demande) — fond presque blanc, vert plus frais, pastels vifs */
  --fond: #fbfaf6; --surface: #ffffff; --surface-2: #f3f2ec; --bordure: #e9e6de;
  --texte: #1b2a26; --texte-2: #45554f; --discret: #86918c;
  --accent: #1d5c4f; --accent-texte: #ffffff; --accent-doux: #def3ec;
  --tournesol: #1d5c4f; --tournesol-ombre: transparent; --tournesol-texte: #ffffff;
  --sauge: #1d5c4f; --sauge-doux: #def3ec; --tomate: #f0604a; --tomate-doux: #ffe6e0;
  --lavande: #6d63d6; --lavande-doux: #ebe8ff; --soleil-doux: #fff4d6; --miel-texte: #a0701a;
  --ombre: 0 1px 2px rgba(27, 42, 38, .04), 0 8px 24px rgba(27, 42, 38, .06);
  --rayon: 24px;
}
/* teintes des tuiles et des dessins (suivent le thème de saison) */
:root {  /* aussi hors v2 : dessins du module Animaux */
  --tuile-a: #ccefe3; --tuile-b: #ffecbf; --tuile-c: #ffdcd3; --tuile-d: #e3e0ff; --tuile-e: #d8eefc;
  --il-f: #1d5c4f; --il-c: #ffffff; --il-a: #f0604a; --il-b: #f5b544; --il-g: #a5c4bb; --il-sauge: #4fbf8a;
  --puce-midi: #2fa58b; --puce-soir: #7d72e0;
  --ombre-douce: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .06);
}
:root[data-saison="halloween"] {
  --tuile-a: #3b2b52; --tuile-b: #4a2f22; --tuile-c: #4a2333; --tuile-d: #2f2a4a; --tuile-e: #2c3a22;
  --il-f: #ff8a2a; --il-c: #f8ecdf; --il-a: #c49bff; --il-b: #9fd36b; --il-g: #7d6a8a; --il-sauge: #9fd36b;
  --puce-midi: #a0612a; --puce-soir: #6b4a9a; --ombre-douce: 0 2px 0 #120c17, 0 8px 20px rgba(0, 0, 0, .3);
}
:root[data-saison="noel"] {
  --tuile-a: #dcefe2; --tuile-b: #f6ecd2; --tuile-c: #f8dcd8; --tuile-d: #e3e9f6; --tuile-e: #e8f0dc;
  --il-f: #1f6b45; --il-c: #ffffff; --il-a: #c8312a; --il-b: #d9a441; --il-g: #9fb8a8; --il-sauge: #2f8a57;
  --puce-midi: #1f6b45; --puce-soir: #b3261e;
}
:root[data-saison="octobre_rose"] {
  --tuile-a: #fbe4ec; --tuile-b: #f8eadf; --tuile-c: #f6d3e1; --tuile-d: #efe3f6; --tuile-e: #fdeef3;
  --il-f: #a61e4d; --il-c: #ffffff; --il-a: #e64980; --il-b: #f0a6c0; --il-g: #d8b2c2; --il-sauge: #d6336c;
  --puce-midi: #c2255c; --puce-soir: #9c36b5;
}
:root[data-saison="movember"] {
  --tuile-a: #dbe8f5; --tuile-b: #efe8da; --tuile-c: #e1eaf3; --tuile-d: #e3e9f6; --tuile-e: #e6eef0;
  --il-f: #1b4878; --il-c: #ffffff; --il-a: #2f6fb0; --il-b: #c9a27a; --il-g: #a9bcd0; --il-sauge: #3f7fb5;
  --puce-midi: #2f6fb0; --puce-soir: #41546b;
}

/* ---------- typographie : sans-serif du téléphone, titres gras */
[data-ui="v2"] body { font-family: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; }
[data-ui="v2"] .titre-serif { font-family: inherit; font-variation-settings: normal; }
[data-ui="v2"] h1, [data-ui="v2"] h2 { letter-spacing: -.015em; }

/* ---------- en-tête : maison · foyer … cloche · moi */
[data-ui="v2"] .entete { padding: calc(var(--haut-sur) + 8px) 16px 8px; background: var(--fond); }
[data-ui="v2"] .entete-ligne { display: none; }
[data-ui="v2"] .onglets { display: none; }
.v2-barre { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; }
.v2-espace { flex: 1; }
.v2-rond { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); color: var(--texte);
  box-shadow: var(--ombre-douce); text-decoration: none; }
.v2-rond.petit { width: 40px; height: 40px; }
.v2-rond .icone svg, .v2-cloche .icone svg, .v2-maison .icone svg, .v2-fab .icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; display: block; }
.v2-rond[aria-current="page"] { background: var(--accent); color: var(--accent-texte); }
.v2-foyer { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 46px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--surface);
  box-shadow: var(--ombre-douce); color: var(--texte); font-weight: 700; font-size: 1rem; text-decoration: none; }
.v2-foyer > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-pile { display: inline-flex; flex-shrink: 0; }
.v2-pile .avatar { width: 32px; height: 32px; font-size: .85rem; border: 2px solid var(--surface); }
.v2-pile .avatar + .avatar { margin-left: -12px; }
.v2-cloche, .v2-moi { position: relative; display: grid; place-items: center; width: 42px; height: 46px; color: var(--texte); text-decoration: none; flex-shrink: 0; }
.v2-cloche .icone svg { width: 25px; height: 25px; }
.v2-moi .avatar { width: 40px; height: 40px; font-size: 1rem; box-shadow: var(--ombre-douce); }
.v2-point { position: absolute; top: 8px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--tomate); border: 2px solid var(--fond); }
.v2-moi .v2-point { top: 2px; right: 0; }
[data-ui="v2"] .entete .ss-guirlande { top: auto; bottom: -12px; }

/* ---------- titre de page */
.v2-titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 2px 14px; }
.v2-titre-ligne h1 { font-size: 1.65rem; font-weight: 800; color: var(--texte); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-titre-actions { display: flex; gap: 6px; flex-shrink: 0; }
[data-ui="v2"] .entete-bouton { width: 42px; height: 42px; background: var(--surface); box-shadow: var(--ombre-douce); }

/* ---------- pastilles (listes, filtres) */
[data-ui="v2"] .vue > .defile-x:first-child { margin: 2px -16px 4px; padding: 4px 16px 8px; }
[data-ui="v2"] .chip { min-height: 44px; padding: 0 18px; border: 0; background: var(--surface); box-shadow: var(--ombre-douce); font-weight: 600; font-size: .95rem; color: var(--texte); }
[data-ui="v2"] .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-texte); box-shadow: none; }
[data-ui="v2"] .chip .compte { background: var(--surface-2); color: var(--texte-2); }
[data-ui="v2"] .chip[aria-pressed="true"] .compte { background: rgba(255, 255, 255, .22); color: inherit; }
[data-ui="v2"] .suggestions .chip { min-height: 36px; padding: 0 14px; font-size: .86rem; }

/* ---------- cartes, boutons, champs */
[data-ui="v2"] .carte { border: 0; box-shadow: var(--ombre); }
[data-ui="v2"] .bouton { border-radius: 999px; box-shadow: none; font-weight: 650; }
[data-ui="v2"] .bouton.principal { background: var(--accent); color: var(--accent-texte); box-shadow: none; }
[data-ui="v2"] .bouton.principal:active:not(:disabled) { box-shadow: none; transform: scale(.98); }
[data-ui="v2"] .ajout input, [data-ui="v2"] .ajout select { border-radius: 999px; background: var(--surface); border: 1px solid var(--bordure); box-shadow: none; }
[data-ui="v2"] .ajout .bouton.principal { width: 46px; padding: 0; border-radius: 50%; font-size: 1.4rem; }
[data-ui="v2"] .banniere-magasin { background: var(--accent); color: var(--accent-texte); box-shadow: none; }
[data-ui="v2"] .banniere-magasin small { color: inherit; opacity: .8; }

/* ---------- listes : rayons à pastille ronde, cases carrées, emoji dans un rond */
[data-ui="v2"] .rayon-carte > summary > span:first-child { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.rayon-carte > summary span.rayon-ico:first-child { flex: 0 0 40px; }
.rayon-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--bordure); font-size: 1.2rem; }
[data-ui="v2"] .rayon-carte .rayon-n { display: none; }
[data-ui="v2"] .coche { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid #cdd3d0; background-color: var(--surface); }
[data-ui="v2"] .coche:checked { background-color: var(--accent); border-color: var(--accent); }
[data-ui="v2"] .article-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--bordure);
  font-size: 1.2rem; flex-shrink: 0; }
[data-ui="v2"] .article-qte { color: var(--texte); font-weight: 500; }
/* libellé à gauche, quantité à droite ; « ajouté par » réduit à l'avatar */
[data-ui="v2"] .article-corps { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
[data-ui="v2"] .article-corps .article-qte { grid-column: 2; grid-row: 1; }
[data-ui="v2"] .article-libelle { font-weight: 500; font-size: 1.02rem; }
[data-ui="v2"] .article-sous { grid-column: 1; font-size: 0; gap: 0; }
[data-ui="v2"] .article-sous .avatar { width: 16px; height: 16px; font-size: .55rem; }
[data-ui="v2"] .liste li + li .article { border-top: 0; }
[data-ui="v2"] .article.fait .article-libelle, [data-ui="v2"] .article.fait .article-qte { text-decoration: line-through; color: var(--discret); }

/* ---------- accueil : la date, la semaine des repas */
.v2-jour { margin: 6px 2px 14px; }
.v2-jour h1 { font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1.15; }
[data-saison="halloween"] .v2-jour h1 { color: var(--tournesol); }
.v2-jour p { color: var(--discret); margin-top: 2px; }
.v2-semaine-carte { padding: 14px 12px 12px; }
.v2-semaine-tete { display: flex; justify-content: space-between; align-items: baseline; margin: 0 6px 10px; }
.v2-semaine-tete h2 { font-size: 1.1rem; font-weight: 750; }
.v2-lien { font-size: .86rem; font-weight: 650; color: var(--accent); text-decoration: none; }
[data-saison="halloween"] .v2-lien { color: var(--tournesol); }
.v2-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.v2-jour-col { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 108px; padding: 0 2px 4px; text-decoration: none; color: var(--texte);
  border-left: 1px solid var(--bordure); }
.v2-jour-col:first-child { border-left: 0; }
.v2-jour-nom { text-align: center; font-size: .72rem; color: var(--discret); }
.v2-jour-col > b { align-self: center; display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.v2-jour-col.auj > b { background: var(--accent); color: var(--accent-texte); }
.v2-jour-col.auj .v2-jour-nom { color: var(--texte); font-weight: 700; }
.v2-puce { display: block; padding: 3px 4px; border-radius: 6px; font-size: .66rem; font-weight: 650; line-height: 1.25; color: #fff; background: var(--puce-midi);
  white-space: nowrap; overflow: hidden; text-overflow: clip; }  /* comme un agenda : le nom est coupé net, le détail est dans Repas */
.v2-puce.soir { background: var(--puce-soir); }

/* ---------- « Mes applications » : tuiles pastel illustrées */
.v2-apps-tete { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 12px; }
.v2-apps-tete h2 { font-size: 1.3rem; font-weight: 800; }
.v2-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (min-width: 600px) { .v2-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.app-tuile { position: relative; overflow: hidden; aspect-ratio: 1 / 1.05; border-radius: 18px; padding: 12px; background: var(--tuile-a);
  color: var(--texte); text-decoration: none; box-shadow: var(--ombre-douce); transition: transform .15s; }
.app-tuile:active { transform: scale(.96); }
.app-tuile.t-b { background: var(--tuile-b); } .app-tuile.t-c { background: var(--tuile-c); }
.app-tuile.t-d { background: var(--tuile-d); } .app-tuile.t-e { background: var(--tuile-e); }
.app-nom { position: relative; z-index: 1; display: block; font-weight: 750; font-size: 1rem; line-height: 1.15; }
.app-compte { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--surface); color: var(--texte); font-size: .82rem; font-weight: 750; box-shadow: var(--ombre-douce); }
.app-illu { position: absolute; right: -6%; bottom: -6%; width: 74%; aspect-ratio: 1; }
.app-illu svg { width: 100%; height: 100%; display: block; }
.il-f { fill: var(--il-f); } .il-c { fill: var(--il-c); } .il-a { fill: var(--il-a); } .il-b { fill: var(--il-b); } .il-g { fill: var(--il-g); } .il-sauge { fill: var(--il-sauge); }
/* traits : seulement les éléments qui portent un stroke-width ; fill="none" reste sans remplissage */
[stroke-width].il-f { stroke: var(--il-f); } [stroke-width].il-c { stroke: var(--il-c); } [stroke-width].il-a { stroke: var(--il-a); }
[stroke-width].il-b { stroke: var(--il-b); } [stroke-width].il-g { stroke: var(--il-g); } [stroke-width].il-sauge { stroke: var(--il-sauge); }
.app-illu [fill="none"] { fill: none; }
[data-saison="noel"] .app-tuile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H120 V6 C110 12 100 7 90 10 C80 13 70 7 60 10 C50 13 40 7 30 10 C20 13 10 7 0 10 Z' fill='%23ffffff'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- boutons flottants : maison (gauche) et + (droite) */
.v2-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none; }
.v2-maison, .v2-fab { position: absolute; bottom: calc(18px + var(--bas-sur)); display: grid; place-items: center; border-radius: 50%; pointer-events: auto;
  text-decoration: none; border: 0; cursor: pointer; }
.v2-maison { left: 16px; width: 54px; height: 54px; background: var(--surface); color: var(--texte); box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .1); }
.v2-fab { right: 16px; width: 62px; height: 62px; background: var(--accent); color: var(--accent-texte); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.v2-fab .icone svg { width: 28px; height: 28px; stroke-width: 1.8; }
.v2-fab:active, .v2-maison:active { transform: scale(.94); }
[data-ui="v2"] .vue .flottant { display: none; }  /* remplacé par le bouton + du bas */
[data-ui="v2"] .vue { padding-bottom: calc(100px + var(--bas-sur)); }
[data-ui="v2"] .ss-coucou { bottom: calc(90px + var(--bas-sur, 0px)); }

/* ---------- feuille « Ajouter » de l'accueil */
.v2-ajouts { display: grid; gap: 10px; }
.v2-ajout { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 0; border-radius: 18px; background: var(--surface-2); color: var(--texte);
  text-align: left; font: inherit; cursor: pointer; }
.v2-ajout .app-illu { position: static; width: 52px; flex-shrink: 0; }
.v2-ajout span:last-child { display: flex; flex-direction: column; }
.v2-ajout small { color: var(--discret); }

/* images origami des produits (base produits.js, PNG à fond transparent) */
.article-ico img, .rayon-ico img { width: 32px; height: 32px; object-fit: contain; display: block; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .12)); }
[data-ui="v2"] .article-ico:has(img), .rayon-ico:has(img) { background: var(--surface); }

/* icônes au trait à la place des emojis d'interface (v2) */
.ico-trait { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-trait.avant-texte { margin-right: .4em; }
.ani-ico .ico-trait, .ani-info-ico .ico-trait, .tuile2-ico .ico-trait, .bm-ico .ico-trait, .moment-ico .ico-trait, .repas-ico .ico-trait { width: 22px; height: 22px; margin: 0; color: var(--accent); }
[data-ui="v2"] .ani-ico, [data-ui="v2"] .ani-info-ico { background: var(--accent-doux); }
[data-ui="v2"] .chip[aria-pressed="true"] .ico-trait { color: inherit; }
[data-ui="v2"] .carte-titre h2 .ico-trait, [data-ui="v2"] .section-titre .ico-trait { color: var(--accent); }
[data-ui="v2"] .ani-appareil .ico-trait { width: 18px; height: 18px; margin: 0; }

/* ---------- personnalisation (2026-10-13) */
.perso-titre { font-size: 1.15rem; margin-bottom: 2px; }
.perso-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.perso-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 10px; border-radius: 18px; border: 2px solid transparent;
  background: var(--surface-2); color: var(--texte); font: inherit; font-weight: 650; cursor: pointer; }
.perso-option[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); box-shadow: var(--ombre); }
.perso-dessin { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 96px; }
.pd-tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.pd-tuiles.deux { grid-template-columns: repeat(2, 1fr); height: 100%; }
.pd-tuiles.trois { grid-template-columns: repeat(3, 1fr); height: 100%; }
.pd-tuiles i { display: block; min-height: 26px; border-radius: 7px; background: var(--surface); border: 1px solid var(--bordure); }
.pd-rond { align-self: flex-start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); box-shadow: var(--ombre-douce); }
.pd-barre { display: flex; justify-content: space-around; padding: 6px; border-radius: 10px; background: var(--surface); box-shadow: var(--ombre-douce); }
.perso-dessin .ico-trait { width: 16px; height: 16px; color: var(--accent); }
.chip .ico-trait { width: 16px; height: 16px; }

/* tuiles : densité « grandes » (2 colonnes) et mode édition */
.v2-apps.normal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-apps.normal .app-nom { font-size: 1.15rem; }
.v2-apps-tete > div { min-width: 0; }
.v2-apps-boutons { display: flex; gap: 8px; align-items: center; }
.app-tuile.en-edition { animation: tuile-tremble .35s ease-in-out infinite alternate; }
.app-tuile.en-edition:nth-child(2n) { animation-delay: .17s; }
@keyframes tuile-tremble { from { transform: rotate(-.8deg); } to { transform: rotate(.8deg); } }
.tuile-outils { position: absolute; z-index: 3; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.tuile-outils button { flex: 1; height: 30px; border: 0; border-radius: 10px; background: var(--surface); color: var(--texte); font-size: 1.1rem; font-weight: 800; box-shadow: var(--ombre-douce); }
.tuile-outils .masquer { background: var(--tomate); color: #fff; }
@media (prefers-reduced-motion: reduce) { .app-tuile.en-edition { animation: none; } }
/* barre de favoris (à la place du bouton accueil) */
.v2-favoris { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--bas-sur)); z-index: 30; display: flex; justify-content: space-around;
  padding: 6px; border-radius: 22px; background: var(--surface); box-shadow: 0 4px 24px rgba(0, 0, 0, .12); pointer-events: auto; max-width: 560px; margin: 0 auto; }
.v2-favoris .fav { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--discret);
  text-decoration: none; font-size: .66rem; font-weight: 650; min-width: 0; }
.v2-favoris .fav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-favoris .ico-trait { width: 24px; height: 24px; }
.v2-favoris .fav[aria-current="page"] { color: var(--accent); background: var(--accent-doux); }
[data-favoris] .v2-fab { bottom: calc(90px + var(--bas-sur)); }
[data-ui="v2"][data-favoris] .vue { padding-bottom: calc(110px + var(--bas-sur)); }

/* écran verrouillé */
.verrou { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px;
  background: var(--fond); text-align: center; }
.verrou-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--ombre); }
.verrou .bouton { min-width: 220px; }
.app-nom { overflow-wrap: break-word; }
/* un seul long mot (« Anniversaires ») : sur une ligne, un peu plus petit, sans césure */
.app-nom.long { white-space: nowrap; letter-spacing: -.02em; }
.v2-apps:not(.normal) .app-nom.long { font-size: .78rem; }
.v2-apps:not(.normal) .app-nom { font-size: .95rem; }
/* pavé du code de verrouillage */
.pave { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.pave h2 { font-size: 1.3rem; }
.pave-sous { color: var(--discret); text-align: center; min-height: 1.4em; margin: 0; }
.pave-points { display: flex; gap: 16px; margin: 8px 0 14px; }
.pave-points i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.pave-points i.plein { background: var(--accent); }
.pave-points.faux { animation: pave-faux .35s; }
@keyframes pave-faux { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pave-touches { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; justify-content: center; }
.pave-touche { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--ombre-douce); color: var(--texte);
  font: inherit; font-size: 1.6rem; font-weight: 600; cursor: pointer; }
.pave-touche:active { background: var(--accent-doux); }
.verrou-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-doux); color: var(--accent); flex-shrink: 0; }
.verrou-ico .ico-trait { width: 24px; height: 24px; }

/* ---------- fluidité (2026-10-13) : entrées de page, retours au toucher, feuilles, en-tête ---------- */
:root { --ressort: cubic-bezier(.2, .9, .25, 1.05); --doux: cubic-bezier(.2, .8, .2, 1); }
/* la page entre en fondu, ses blocs l'un après l'autre */
[data-ui="v2"] .vue.entree > * { animation: v2-entre .36s var(--doux) both; }
[data-ui="v2"] .vue.entree > :nth-child(2) { animation-delay: .03s; } [data-ui="v2"] .vue.entree > :nth-child(3) { animation-delay: .06s; }
[data-ui="v2"] .vue.entree > :nth-child(4) { animation-delay: .09s; } [data-ui="v2"] .vue.entree > :nth-child(5) { animation-delay: .12s; }
[data-ui="v2"] .vue.entree > :nth-child(n+6) { animation-delay: .15s; }
[data-ui="v2"] .vue.entree .v2-apps > .app-tuile { animation: v2-tuile .42s var(--ressort) both; }
[data-ui="v2"] .vue.entree .v2-apps > .app-tuile:nth-child(3n+2) { animation-delay: .04s; }
[data-ui="v2"] .vue.entree .v2-apps > .app-tuile:nth-child(3n) { animation-delay: .08s; }
@keyframes v2-entre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes v2-tuile { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
/* retours au toucher : tout ce qui se touche s'enfonce un peu */
[data-ui="v2"] :is(.app-tuile, .carte a.ligne, .ligne, .chip, .bouton, .v2-rond, .v2-foyer, .v2-ajout, .perso-option, .ani-pastille, .fav, .v2-jour-col, .pave-touche) {
  transition: transform .18s var(--ressort), background-color .2s, box-shadow .2s, color .2s; -webkit-tap-highlight-color: transparent; }
[data-ui="v2"] :is(.app-tuile, .v2-ajout, .perso-option):active { transform: scale(.96); }
[data-ui="v2"] :is(.chip, .bouton, .v2-rond, .v2-foyer, .ani-pastille, .fav, .pave-touche):active { transform: scale(.94); }
[data-ui="v2"] :is(.ligne, .v2-jour-col):active { transform: scale(.985); }
[data-ui="v2"] .app-tuile .app-illu { transition: transform .35s var(--ressort); }
[data-ui="v2"] .app-tuile:active .app-illu { transform: translate(-3px, -3px) rotate(-3deg) scale(1.04); }
/* cases à cocher : petit rebond */
[data-ui="v2"] .coche:checked { animation: v2-coche .3s var(--ressort); }
@keyframes v2-coche { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }
/* feuilles : montée en ressort, descente rapide, fond en fondu */
[data-ui="v2"] .feuille { animation: v2-monte .34s var(--ressort); border-radius: 26px 26px 0 0; transition: transform .2s var(--doux); }
[data-ui="v2"] .feuille.ferme { animation: v2-descend .19s ease-in forwards; }
[data-ui="v2"] .feuille-fond { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
[data-ui="v2"] .feuille-fond.ferme { animation: v2-efface .19s ease-in forwards; }
[data-ui="v2"] .feuille-poignee { width: 44px; height: 5px; margin-top: 10px; cursor: grab; }
@keyframes v2-monte { from { transform: translateY(100%); } to { transform: none; } }
@keyframes v2-descend { to { transform: translateY(100%); } }
@keyframes v2-efface { to { opacity: 0; } }
/* message en bas : glisse et rebondit */
[data-ui="v2"] .toast:not([hidden]) { animation: v2-toast .32s var(--ressort); border-radius: 16px; }
@keyframes v2-toast { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } to { opacity: 1; } }
/* en-tête : se détache du contenu quand on fait défiler */
[data-ui="v2"] .entete { transition: box-shadow .25s, background-color .25s; }
[data-ui="v2"][data-defile] .entete { box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .35); }
/* boutons flottants : apparition */
[data-ui="v2"] .v2-fab, [data-ui="v2"] .v2-maison { animation: v2-pop .4s var(--ressort) both; }
[data-ui="v2"] .v2-favoris { animation: v2-entre .3s var(--doux) both; }
[data-ui="v2"] .v2-favoris .fav .ico-trait { transition: transform .25s var(--ressort); }
[data-ui="v2"] .v2-favoris .fav[aria-current="page"] .ico-trait { transform: translateY(-1px) scale(1.08); }
@keyframes v2-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-ui="v2"] *, [data-ui="v2"] *::before, [data-ui="v2"] *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
/* illustrations « pâte à modeler » des tuiles */
.app-illu.image { right: -2%; bottom: -2%; width: 70%; }
.app-illu.image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v2-apps.normal .app-illu.image { width: 62%; }
/* maquette de la popup « Nouvelle interface » (visible aussi hors v2) */
.maq-interface .maq-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.maq-tuile { position: relative; aspect-ratio: 1; border-radius: 14px; padding: 8px; overflow: hidden; background: #ccefe3; text-align: left; }
.maq-tuile.t-c { background: #ffdcd3; } .maq-tuile.t-e { background: #d8eefc; }
.maq-tuile b { font-size: .75rem; color: #1b2a26; }
.maq-tuile img { position: absolute; right: -4%; bottom: -4%; width: 72%; }

/* ---------- pages intérieures v2 (Repas, Listes), plus lumineuses, illustrations en pâte à modeler ---------- */
.moment-deco { width: 54px; height: 54px; object-fit: contain; margin: -6px -4px -6px -6px; }
[data-ui="v2"] .moment-carte { padding: 14px; border: 0; }
[data-ui="v2"] .moment-carte.midi { background: linear-gradient(160deg, var(--soleil-doux), color-mix(in srgb, var(--soleil-doux) 40%, var(--surface))); }
[data-ui="v2"] .moment-carte.soir { background: linear-gradient(160deg, var(--lavande-doux), color-mix(in srgb, var(--lavande-doux) 40%, var(--surface))); }
[data-ui="v2"] .moment-tete h2 { font-size: 1.25rem; }
[data-ui="v2"] .moment-carte .pilule { background: var(--surface); border: 0; box-shadow: var(--ombre-douce); color: var(--texte); }
[data-ui="v2"] .plat-carte { border-radius: 18px; box-shadow: var(--ombre-douce); }
[data-ui="v2"] .plat-vide { border: 2px dashed color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--texte-2); }
[data-ui="v2"] .jour-pastille { background: var(--surface); box-shadow: var(--ombre-douce); }
[data-ui="v2"] .jour-pastille[aria-selected="true"] { background: var(--accent); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
[data-ui="v2"] .mini-jour { background: var(--surface-2); }
[data-ui="v2"] .mini-jour.choisi { box-shadow: 0 0 0 2px var(--accent); background: var(--surface); }
[data-ui="v2"] .banniere-magasin { background: linear-gradient(120deg, var(--accent-doux), var(--surface)); color: var(--texte); box-shadow: var(--ombre); padding: 10px 16px 10px 10px; }
[data-ui="v2"] .banniere-magasin b { color: var(--accent); font-size: 1.05rem; }
[data-ui="v2"] .banniere-magasin small { color: var(--texte-2); opacity: 1; }
[data-ui="v2"] .banniere-magasin .chevron::after { color: var(--accent); }
.bm-deco { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.liste-finie { text-align: center; }
.fini-deco { width: 120px; height: 120px; object-fit: contain; margin: 6px auto 0; display: block; }
[data-ui="v2"] .rayon-carte { padding: 4px 16px 10px; }
[data-ui="v2"] .coches { background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* ---------- widgets de l'accueil ---------- */
.widget-edition { position: relative; margin-top: 22px; animation: tuile-tremble .4s ease-in-out infinite alternate; }
.widget-edition > .carte { margin-bottom: 14px; }
.widget-outils { position: absolute; z-index: 3; top: -17px; right: 8px; display: flex; gap: 6px; }
.widget-outils button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--ombre); color: var(--texte); font-size: 1rem; font-weight: 800; }
.widget-outils .masquer { background: var(--tomate); color: #fff; }
.widget-vide { display: flex; align-items: center; gap: 12px; color: var(--discret); }
.widget-vide .ico-trait { width: 26px; height: 26px; color: var(--accent); }
.widget-vide span { display: flex; flex-direction: column; } .widget-vide b { color: var(--texte); }
.widget-ajout { display: block; width: 100%; margin: 0 0 16px; padding: 16px; border: 2px dashed color-mix(in srgb, var(--texte) 18%, transparent); border-radius: var(--rayon);
  background: none; color: var(--discret); font: inherit; font-weight: 650; font-size: 1rem; cursor: pointer; }
.meteo-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.meteo-maintenant { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.meteo-maintenant .ico-trait { width: 30px; height: 30px; }
.meteo-maintenant b { font-size: 1.6rem; color: var(--texte); }
.meteo-lieu { flex: 1; font-weight: 700; color: var(--texte-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meteo-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.meteo-jour { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; }
.meteo-jour:first-child { background: var(--accent-doux); }
.meteo-jour span { font-size: .72rem; color: var(--discret); }
.meteo-jour .ico-trait { width: 26px; height: 26px; color: var(--accent); }
.meteo-jour b { font-size: .9rem; } .meteo-jour small { font-size: .72rem; color: var(--discret); }
@media (prefers-reduced-motion: reduce) { .widget-edition { animation: none; } }

/* ---------- menu latéral (avatar) ---------- */
.tiroir-fond { position: fixed; inset: 0; z-index: 80; background: rgba(20, 30, 28, .32); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: v2-apparait .22s ease both; }
.tiroir { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 380px); display: flex; flex-direction: column; background: var(--surface);
  border-radius: 28px 0 0 28px; box-shadow: -12px 0 40px rgba(0, 0, 0, .15); padding-top: var(--haut-sur); animation: tiroir-entre .32s var(--ressort) both; }
.tiroir-fond.ferme { animation: v2-efface .2s ease-in forwards; }
.tiroir-fond.ferme .tiroir { animation: tiroir-sort .2s ease-in forwards; }
@keyframes tiroir-entre { from { transform: translateX(100%); } to { transform: none; } }
@keyframes tiroir-sort { to { transform: translateX(100%); } }
@keyframes v2-apparait { from { opacity: 0; } to { opacity: 1; } }
.tiroir-tete { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; }
.tiroir-tete .avatar { width: 52px; height: 52px; font-size: 1.3rem; }
.tiroir-tete > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tiroir-tete b { font-size: 1.2rem; } .tiroir-tete small { color: var(--discret); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiroir-fermer { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); font-size: 1rem; cursor: pointer; }
.tiroir-corps { flex: 1; overflow-y: auto; padding: 0 10px calc(16px + var(--bas-sur)); }
.tiroir-groupe { padding: 4px 0; border-top: 1px solid var(--bordure); }
.tiroir-groupe:first-child { border-top: 0; }
.tiroir-section { margin: 12px 10px 2px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--discret); }
.tiroir-ligne { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 10px; border: 0; border-radius: 14px; background: none; color: var(--texte);
  font: inherit; font-size: 1.02rem; text-align: left; cursor: pointer; transition: background-color .15s, transform .15s var(--ressort); }
.tiroir-ligne:active { background: var(--surface-2); transform: scale(.985); }
.tiroir-ligne .ico-trait { width: 22px; height: 22px; color: var(--texte-2); }
.tiroir-titre { flex: 1; }
.tiroir-chevron { color: var(--discret); font-size: 1.3rem; line-height: 1; }
.tiroir-point { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tomate); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; }
.tiroir-etat { font-size: .8rem; color: var(--tomate); font-weight: 650; }
.tiroir-ligne.danger, .tiroir-ligne.danger .ico-trait { color: var(--tomate); }
.tiroir-version { margin: 10px; font-size: .75rem; color: var(--discret); }
@media (prefers-reduced-motion: reduce) { .tiroir, .tiroir-fond { animation: none !important; } }

/* ---------- thèmes déclinés en papier (2026-10-14) : bannière d'accueil et tuiles ---------- */
.banniere-theme { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 16px 8px 16px 18px; border-radius: 26px; overflow: hidden;
  box-shadow: var(--ombre); }
.banniere-theme.octobre_rose { background: linear-gradient(135deg, #ffe1ec, #fff6f9 70%); color: #5b1d38; }
.banniere-theme.halloween { background: linear-gradient(135deg, #ffe6cf, #f1e6ff 75%); color: #2a1f33; }
.banniere-theme.movember { background: linear-gradient(135deg, #dcecff, #f6efe4 75%); color: #1f2a44; }
.banniere-theme.noel { background: linear-gradient(135deg, #ffe3dc, #e4f4e8 75%); color: #23402e; }
.bt-texte { flex: 1; min-width: 0; }
.bt-texte h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.banniere-theme.octobre_rose h2 { color: #c2255c; } .banniere-theme.halloween h2 { color: #c2410c; }
.banniere-theme.movember h2 { color: #22304d; } .banniere-theme.noel h2 { color: #c92a2a; }
.bt-texte p { font-size: .88rem; line-height: 1.35; opacity: .85; }
.bt-image { width: 120px; height: 120px; object-fit: contain; flex-shrink: 0; animation: bt-flotte 5s ease-in-out infinite; }
@keyframes bt-flotte { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .bt-image { animation: none; } }
/* Halloween : les tuiles deviennent des papiers clairs posés sur la nuit (les images à fond blanc s'y fondent) */
:root[data-ui="v2"][data-saison="halloween"] {
  --tuile-a: #ffdcbc; --tuile-b: #ece0ff; --tuile-c: #ffd6cc; --tuile-d: #e2f5cf; --tuile-e: #fff0c4;
}
[data-ui="v2"][data-saison="halloween"] .app-tuile { color: #2a1f33; box-shadow: 0 2px 0 #120c17, 0 10px 24px rgba(0, 0, 0, .35); }
[data-ui="v2"][data-saison="halloween"] .app-tuile .app-compte { background: #2a1f33; color: #ffdcbc; }
/* Octobre rose : tuiles en roses et pêches de papier */
:root[data-ui="v2"][data-saison="octobre_rose"] {
  --tuile-a: #ffe0ea; --tuile-b: #fff0e6; --tuile-c: #ffd3e2; --tuile-d: #f6e6ff; --tuile-e: #e6f6ef;
}
/* Movember : bleus, crème et kraft ; Noël : rouges, verts et ors de papier */
:root[data-ui="v2"][data-saison="movember"] {
  --tuile-a: #dcecff; --tuile-b: #f3e8d6; --tuile-c: #e4e9f5; --tuile-d: #e3f3ee; --tuile-e: #fff1cf;
}
:root[data-ui="v2"][data-saison="noel"] {
  --tuile-a: #ffe1dc; --tuile-b: #dff2e4; --tuile-c: #fff1cc; --tuile-d: #fbe4d5; --tuile-e: #e3efe9;
}
/* tuto : illustration en papier à la place du gros emoji */
.bv-image { display: block; width: 150px; height: 150px; margin: 6px auto 4px; object-fit: contain; animation: bt-flotte 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bv-image { animation: none; } }
[data-ui="v2"] .article-corps .article-usage { grid-column: 1 / -1; }
/* hors ligne (2026-10-15) : l'ancienne ligne d'en-tête est masquée en v2 ; seule la pastille d'état ressort, quand on est hors ligne
   ou que des modifications attendent le réseau */
[data-ui="v2"] .entete-ligne:has(#direct.hors-ligne:not([hidden])) { display: contents; }
[data-ui="v2"] .entete-ligne > :not(#direct) { display: none; }
[data-ui="v2"] #direct.hors-ligne { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); top: calc(var(--haut-sur, 0px) + 66px);
  padding: 6px 14px; border-radius: 999px; background: var(--soleil-doux, #fff0c8); color: var(--attention-texte, #7a4b00); font-size: .8rem;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
