

:root {
  --fond: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f6ef;
  --texte: #16251b;
  --texte-doux: #5e6d62;
  --bord: #e3ebe0;
  --accent: #ff5a36;
  --accent-fonce: #e0401d;
  --accent-doux: #ffe6df;
  --vert: #2f8f4e;
  --vert-doux: #dff4e4;
  --rouge: #d0342c;
  --rouge-doux: #fde2e0;
  --ambre: #b07800;
  --ambre-doux: #fff3cc;
  --menthe: #c7e8c2;
  --citron: #ffd23f;
  --encre: #16251b;
  --ombre: 0 2px 10px rgb(22 37 27 / 6%);
  --ombre-forte: 0 14px 40px rgb(22 37 27 / 14%);
  --rayon: 22px;
  --rayon-petit: 14px;
  --police-titre: 'Bricolage Grotesque', system-ui, sans-serif;
  --police: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --largeur: 1240px;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.55 var(--police); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; font-family: var(--police); font-weight: 600; }
small { color: var(--texte-doux); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }


.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .7rem max(1rem, calc((100vw - var(--largeur)) / 2)); background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bord); }
body:not(.connecte) .nav, body:not(.connecte) .profil-lien { display: none; }
.logo { font-family: var(--police-titre); font-weight: 700; font-size: 1.4rem; color: var(--texte); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a { display: flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; color: var(--texte-doux); text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav a:hover { background: var(--surface-2); color: var(--texte); }
.nav a.actif { background: var(--accent-doux); color: var(--accent-fonce); }
.profil-lien { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--surface-2); text-decoration: none; font-size: 1.3rem; }

@media all {
  .nav { position: fixed; bottom: 0; left: 0; right: 0; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--bord); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); margin: 0; z-index: 30; }
  .nav a { flex-direction: column; gap: 0; padding: .3rem .4rem; font-size: .68rem; border-radius: 10px; }
  .nav a span { font-size: 1.25rem; }
  .profil-lien { margin-left: auto; }
  main { padding-bottom: 5.5rem !important; }
}

main { max-width: var(--largeur); margin: 0 auto; padding: 1.5rem 1rem 4rem; min-height: 70vh; }
main[aria-busy] { opacity: .7; transition: opacity .2s .15s; }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.1rem; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: #fff; font: 600 .93rem var(--police); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: var(--accent-fonce); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondaire { background: var(--surface); color: var(--texte); border-color: var(--bord); }
.btn.secondaire:hover { background: var(--surface-2); }
.btn.lien { background: none; color: var(--accent); padding: .3rem .4rem; }
.btn.lien:hover { text-decoration: underline; }
.btn.danger { background: var(--rouge); }
.btn.lien.danger { background: none; color: var(--rouge); }
.btn.petit { padding: .35rem .75rem; font-size: .83rem; }
.btn.large { padding: .85rem 1.6rem; font-size: 1rem; }
.btn.icone, button.icone { width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); cursor: pointer; font-size: 1rem; text-decoration: none; }
button.icone:hover { background: var(--surface-2); }

input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: .6rem .8rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.champ { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; }
.champ > span { font-weight: 600; font-size: .9rem; }
.champ.court { flex: 0 1 11rem; }
.ligne { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; }
.ligne > input { flex: 1; min-width: 12rem; }
.pile { display: flex; flex-direction: column; gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
legend small { font-weight: 400; }
.actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.actions.gauche { justify-content: flex-start; }
.aide { color: var(--texte-doux); font-size: .92rem; margin: .2rem 0 .6rem; }

.interrupteur { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .93rem; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; }
.interrupteur > span { flex: none; width: 2.5rem; height: 1.45rem; border-radius: 999px; background: var(--bord); position: relative; transition: background .2s; }
.interrupteur > span::after { content: ''; position: absolute; top: .15rem; left: .15rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .2s; }
.interrupteur input:checked + span { background: var(--accent); }
.interrupteur input:checked + span::after { transform: translateX(1.05rem); }
.interrupteur input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.puces { display: flex; flex-wrap: wrap; gap: .4rem; }
.puce { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--texte); font-size: .82rem; border: 1px solid transparent; cursor: default; white-space: nowrap; }
button.puce { cursor: pointer; font: inherit; font-size: .85rem; }
button.puce:hover { border-color: var(--accent); }
.puce-amb { background: var(--accent-doux); color: var(--accent-fonce); }
.puce-alerte { background: var(--ambre-doux); color: var(--ambre); }
.puce-erreur { background: var(--rouge-doux); color: var(--rouge); }
.puce-choix input { position: absolute; opacity: 0; width: 1px; }
.puce-choix span { display: inline-block; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--bord); background: var(--surface); cursor: pointer; font-size: .88rem; transition: all .15s; user-select: none; }
.puce-choix span:hover { border-color: var(--accent); }
.puce-choix input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.puce-choix input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.puce-retirable { background: var(--accent-doux); color: var(--accent-fonce); padding-right: .25rem; }
.puce-retirable button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .3rem; }

.selecteur { display: flex; flex-direction: column; gap: .4rem; }
.selecteur-puces { display: flex; flex-wrap: wrap; gap: .35rem; }
.selecteur-saisie { position: relative; }
.suggestions { position: absolute; z-index: 40; top: 100%; left: 0; right: 0; margin: .2rem 0 0; padding: .3rem; list-style: none; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-petit); box-shadow: var(--ombre-forte); max-height: 16rem; overflow: auto; }
.suggestions li { padding: .45rem .6rem; border-radius: 6px; cursor: pointer; }
.suggestions li:hover { background: var(--surface-2); }
.suggestions li.libre { color: var(--texte-doux); font-style: italic; }


.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.grille.petite { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.carte { background: var(--surface); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.carte:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.carte.exclue { opacity: .62; }
.carte.exclue:hover { opacity: 1; }
.carte-lien { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.carte-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.carte-img img, .carte-img .img-vide { width: 100%; height: 100%; object-fit: cover; }
.img-vide { display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(135deg, var(--accent-doux), var(--surface-2)); }
.coeur { position: absolute; top: .5rem; right: .5rem; background: var(--surface); color: var(--accent); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--ombre); }
.jauge { position: absolute; left: .5rem; bottom: .5rem; background: var(--vert); color: #fff; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }
.carte-corps { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.carte h3 { font-family: var(--police-titre); font-size: 1.05rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-meta { display: flex; gap: .7rem; flex-wrap: wrap; color: var(--texte-doux); font-size: .83rem; margin: 0; }
.carte-puces { display: flex; gap: .3rem; flex-wrap: wrap; margin: .1rem 0; }
.carte-source { color: var(--texte-doux); font-size: .78rem; margin: auto 0 0; }
.carte .raisons { color: var(--rouge); font-size: .8rem; margin: 0; }
.carte .manquants { color: var(--texte-doux); font-size: .8rem; margin: 0; }
.carte .pourquoi { color: var(--vert); font-size: .8rem; margin: 0; }
.carte-actions { display: flex; gap: .3rem; justify-content: flex-end; padding: 0 .7rem .7rem; }
.carte.compacte .carte-corps { padding: .6rem .7rem .7rem; }


.page-tete { margin-bottom: 1.5rem; }
.page.etroite { max-width: 760px; margin: 0 auto; }
.vide { text-align: center; padding: 3rem 1rem; color: var(--texte-doux); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.chargement { display: flex; flex-direction: column; align-items: center; padding: 3rem 1rem; color: var(--texte-doux); text-align: center; }
.marmite-anim { width: 3rem; height: 3rem; border-radius: 50%; border: 4px solid var(--accent-doux); border-top-color: var(--accent); animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.encadre { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.2rem; margin: 1rem 0; }
.encadre h2 { margin-top: 0; }
.encadre-fort { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-doux); }
.alerte { border-radius: var(--rayon-petit); padding: .8rem 1rem; margin: 1rem 0; font-size: .95rem; }
.alerte-ok { background: var(--vert-doux); color: var(--vert); }
.alerte-danger { background: var(--rouge-doux); color: var(--rouge); }
.bandeau-filtre { background: var(--surface); border: 1px dashed var(--bord); border-radius: var(--rayon-petit); padding: .6rem .9rem; font-size: .9rem; color: var(--texte-doux); }
.onglets { display: flex; gap: .3rem; border-bottom: 1px solid var(--bord); margin-bottom: 1.5rem; overflow-x: auto; }
.onglets a { padding: .6rem 1rem; color: var(--texte-doux); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.onglets a.actif { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.bloc { margin: 2.2rem 0; }
.bloc > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.bloc > header h2 { margin: 0; }
.compte { color: var(--texte-doux); font-size: .92rem; }

.hero { background: linear-gradient(135deg, var(--accent-doux), var(--surface-2)); border-radius: calc(var(--rayon) * 1.5); padding: clamp(1.5rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.hero-ia { display: flex; gap: .6rem; margin: 1rem 0; }
.hero-ia input { font-size: 1.05rem; padding: .85rem 1.1rem; border-radius: 999px; }
.suggestions-ia { display: flex; flex-wrap: wrap; gap: .4rem; }
.suggestions-ia .puce { background: var(--surface); }
.bloc-menu { display: flex; align-items: center; gap: 1rem; background: var(--surface); border-radius: var(--rayon); padding: 1rem 1.2rem; text-decoration: none; color: inherit; box-shadow: var(--ombre); margin: 1rem 0; }
.bloc-menu > span { font-size: 2rem; }
.bloc-menu small { display: block; }

.barre-recherche { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.barre-recherche input { font-size: 1.05rem; border-radius: 999px; padding: .75rem 1.1rem; }
.barre-recherche select { width: auto; border-radius: 999px; }
.recherche-corps { display: grid; grid-template-columns: 270px 1fr; gap: 1.5rem; align-items: start; }
.filtres { position: sticky; top: 5rem; background: var(--surface); border-radius: var(--rayon); padding: 1rem; display: flex; flex-direction: column; gap: .8rem; max-height: calc(100vh - 6rem); overflow: auto; box-shadow: var(--ombre); }
.filtres-tete { display: flex; justify-content: space-between; align-items: baseline; }
.filtres-tete h2 { margin: 0; font-size: 1.1rem; }
.filtres details { border-top: 1px solid var(--bord); padding-top: .6rem; }
.filtres summary { cursor: pointer; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.filtres .puce-choix span { font-size: .8rem; padding: .28rem .6rem; }
.appel-web { text-align: center; background: var(--surface); border: 1px dashed var(--bord); border-radius: var(--rayon); padding: 1.5rem; margin: 2rem 0; }
.sites-bilan { display: flex; flex-wrap: wrap; gap: .3rem; }
@media all {
  .recherche-corps { grid-template-columns: 1fr; }
  .filtres { position: static; max-height: none; }
  .recherche-corps aside { order: 0; }
  .volet-filtres:not(.ouvert) { display: none; }
  .bouton-filtres { display: inline-flex; margin-bottom: 1rem; }
  .barre-recherche { flex-wrap: wrap; }
  .barre-recherche input { flex: 1 1 100%; }
}

.fiche-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: start; }
.fiche-img { border-radius: calc(var(--rayon) * 1.4); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.fiche-img img, .fiche-img .img-vide { width: 100%; height: 100%; object-fit: cover; font-size: 5rem; }
.fil { margin: 0 0 .3rem; font-size: .9rem; }
.fil a { text-decoration: none; }
.description { color: var(--texte-doux); }
.fiche-meta { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.source { font-size: .9rem; color: var(--texte-doux); }
.fiche-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.plus { position: relative; }
.plus summary { list-style: none; }
.plus summary::-webkit-details-marker { display: none; }
.menu-plus { position: absolute; right: 0; top: 110%; z-index: 10; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-petit); box-shadow: var(--ombre-forte); padding: .3rem; min-width: 14rem; display: flex; flex-direction: column; }
.menu-plus a, .menu-plus button { text-align: left; padding: .55rem .7rem; border: 0; background: none; color: var(--texte); font: inherit; text-decoration: none; border-radius: 6px; cursor: pointer; }
.menu-plus a:hover, .menu-plus button:hover { background: var(--surface-2); }
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); grid-template-areas: "ing etapes" "ing infos" "ing avis"; grid-template-rows: auto auto 1fr; column-gap: 2rem; row-gap: 1rem; margin-top: 1rem; }
.fiche-corps > .ingredients { grid-area: ing; }
.fiche-corps > .etapes-recette { grid-area: etapes; }
.fiche-corps > .fiche-infos { grid-area: infos; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; align-items: start; }
.fiche-corps > .fiche-avis { grid-area: avis; }
.fiche-infos .encadre { margin: 0; }
@media (min-width: 801px) {
  .fiche-corps > .ingredients { position: sticky; top: 5rem; align-self: start; max-height: calc(100vh - 6rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: .3rem; }
}
.portions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.portions h2 { margin: 0; }
.stepper { display: flex; align-items: center; gap: .6rem; }
.liste-ingredients { list-style: none; padding: 0; margin: 1rem 0; }
.liste-ingredients li { padding: .45rem 0; border-bottom: 1px solid var(--bord); display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.liste-ingredients label { display: flex; gap: .6rem; cursor: pointer; }
.liste-ingredients input { width: auto; accent-color: var(--accent); }
.liste-ingredients input:checked + span { text-decoration: line-through; color: var(--texte-doux); }
.liste-ingredients .section, .etapes-recette .section { font-weight: 700; border: 0; padding-top: 1rem; list-style: none; color: var(--accent-fonce); }
.dispo { color: var(--vert); white-space: nowrap; }
.etapes-recette ol { padding-left: 1.4rem; counter-reset: etape; }
.etapes-recette li { margin-bottom: 1rem; padding-left: .3rem; }
.video-recette { margin: 0 0 1.2rem; border-radius: var(--rayon, 14px); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-recette video, .video-recette iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; }
.etape-img { display: block; width: 100%; max-width: 420px; border-radius: 10px; margin: .4rem 0; }
.puce-video { color: var(--accent-fonce); font-weight: 600; }
.mc-video { display: block; width: 100%; max-height: 42vh; object-fit: contain; background: #000; border-radius: 12px; margin-bottom: 1rem; }
.etapes-recette li::marker { font-family: var(--police-titre); font-weight: 700; color: var(--accent); }
.grossesse { list-style: none; padding: 0; margin: 0; }
.grossesse li { padding: .5rem 0; border-bottom: 1px solid var(--bord); }
.grossesse li p { margin: .2rem 0 0; font-size: .9rem; color: var(--texte-doux); }
.g-eviter strong { color: var(--rouge); }
.g-precaution strong, .g-limiter strong { color: var(--ambre); }
.etoiles { display: flex; gap: .2rem; margin-bottom: .6rem; }
.etoiles button { border: 0; background: none; font-size: 1.6rem; color: var(--bord); cursor: pointer; padding: 0; }
.etoiles button.on { color: #f59e0b; }
.perso form { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; margin-bottom: .8rem; }
@media (max-width: 800px) { .fiche-tete, .fiche-corps { grid-template-columns: 1fr; } .fiche-corps { grid-template-areas: "ing" "infos" "etapes" "avis"; grid-template-rows: none; } }

.mode-cuisine { position: fixed; inset: 0; z-index: 60; background: var(--fond); display: flex; flex-direction: column; }
.mode-cuisine header, .mode-cuisine footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--bord); }
.mode-cuisine footer { border: 0; border-top: 1px solid var(--bord); }
.mode-cuisine footer .btn { flex: 1; }
.mc-corps { flex: 1; display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }
.mc-corps aside { overflow: auto; padding: 1.5rem; border-right: 1px solid var(--bord); }
.mc-corps aside ul { list-style: none; padding: 0; }
.mc-corps aside li { padding: .3rem 0; }
.mc-corps aside input { width: auto; }
.mc-corps main { padding: 2rem clamp(1rem, 5vw, 4rem); overflow: auto; max-width: none; }
.mc-num { color: var(--accent); font-weight: 600; }
.mc-texte { font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.45; font-family: var(--police-titre); }
@media (max-width: 800px) { .mc-corps { grid-template-columns: 1fr; } .mc-corps aside { display: none; } }
.minuteur { position: fixed; right: 1rem; bottom: 6rem; z-index: 70; background: var(--texte); color: var(--fond); padding: .7rem 1rem; border-radius: 999px; display: flex; gap: .8rem; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: var(--ombre-forte); }
.minuteur + .minuteur { bottom: 9.5rem; }
.minuteur button { background: none; border: 0; color: inherit; cursor: pointer; }
.minuteur.sonne { background: var(--accent); color: #fff; animation: sonne .5s ease-in-out infinite alternate; }
@keyframes sonne { to { transform: scale(1.06); } }

.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; min-height: 70vh; }
.auth-visuel { background: linear-gradient(135deg, var(--accent), #ea580c 60%, #f59e0b); color: #fff; border-radius: calc(var(--rayon) * 2); padding: 3rem; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-visuel span { font-size: 5rem; }
.auth-visuel p { font-family: var(--police-titre); font-size: 1.8rem; line-height: 1.25; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; max-width: 420px; }
.bascule { color: var(--texte-doux); }
.mdp-oublie { margin: -.5rem 0 0; text-align: right; font-size: .9rem; }
.mdp-oublie a { color: var(--texte-doux); }
@media (max-width: 800px) { .auth { grid-template-columns: 1fr; } .auth-visuel { min-height: 0; padding: 1.5rem; } .auth-visuel span { font-size: 3rem; } .auth-visuel p { font-size: 1.3rem; } }
.bienvenue { max-width: 820px; margin: 0 auto; }
.etapes { list-style: none; padding: 0; display: flex; gap: .4rem; margin: 1rem 0 1.5rem; overflow-x: auto; }
.etapes li { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--texte-doux); white-space: nowrap; padding-right: .6rem; }
.etapes li span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-2); font-weight: 600; }
.etapes li.courante { color: var(--texte); font-weight: 600; }
.etapes li.courante span { background: var(--accent); color: #fff; }
.etapes li.faite span { background: var(--vert); color: #fff; }
.carte-etape { background: var(--surface); border-radius: var(--rayon); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 1rem; }
.navigation-etapes { justify-content: space-between; margin-top: 1.2rem; }
.membres { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.membre-ligne { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .7rem 1rem; }
.membre-ligne > div { flex: 1; }
.membre-ligne strong { margin-right: .4rem; }
.membre-ligne.inactif { opacity: .6; }
.membre-ligne .aide { margin: .1rem 0 0; font-size: .85rem; }
.avatar { font-size: 1.8rem; }
.membre-details { border: 1px solid var(--bord); border-radius: var(--rayon); padding: .8rem 1rem; }
.membre-details summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.membre-details summary small { font-weight: 400; }
.membre-form { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 1rem; }

.liste-menus { display: flex; flex-direction: column; gap: .6rem; }
.apercu { max-width: 640px; margin: 0 auto 2rem; }
.apercu-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.apercu-corps { padding: 1rem .2rem; }
.apercu-corps h1 { margin: .4rem 0 .5rem; }
.apercu-corps h2 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.apercu-corps h2 small { color: var(--texte-doux); font-weight: 500; }
.apercu-infos { display: flex; flex-wrap: wrap; gap: .9rem; color: var(--texte-doux); }
.apercu-infos span { display: inline-flex; align-items: center; gap: .3rem; }
.apercu-liste { margin: 0; padding-left: 1.2rem; }
.apercu-cache { position: relative; filter: blur(4px); user-select: none; pointer-events: none; opacity: .75;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.apercu-cache ul { margin: 0; padding-left: 1.2rem; }
.apercu-appel { margin-top: .4rem; padding: 1rem; border-radius: 16px; background: var(--fond-doux, #f4f1ea); display: flex; flex-direction: column; gap: .6rem; }
.apercu-appel p { margin: 0; }
.groupe-menus { margin-top: 1.4rem; }
.groupe-menus h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
.groupe-menus .mois-menus { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux, #6b6b6b); margin: 1rem 0 .5rem; }
.ligne-menu { display: flex; align-items: center; gap: 1rem; background: var(--surface); border-radius: var(--rayon); padding: 1rem 1.2rem; text-decoration: none; color: inherit; box-shadow: var(--ombre); }
.ligne-menu > span:first-child { font-size: 1.6rem; }
.ligne-menu div { flex: 1; }
.ligne-menu small { display: block; }
.quotas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.quota { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: .4rem .6rem; font-size: .9rem; }
.quota input { width: 4rem; padding: .3rem .4rem; }
.page.large { max-width: none; }
.planning { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.jour { background: var(--surface); border-radius: var(--rayon); padding: 1rem; box-shadow: var(--ombre); }
.jour h2 { font-size: 1.05rem; }
.jour h2::first-letter { text-transform: uppercase; }
.repas + .repas { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--bord); }
.repas h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); margin-bottom: .4rem; }
.case { display: flex; flex-direction: column; gap: .4rem; border-radius: var(--rayon-petit); padding: .4rem; margin-bottom: .4rem; }
.case.verrouillee { background: var(--accent-doux); }
.case-lien { display: grid; grid-template-columns: 64px 1fr; gap: .6rem; color: inherit; text-decoration: none; align-items: start; }
.case-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; font-size: 1.6rem; }
.case strong { display: block; font-size: .92rem; line-height: 1.3; }
.case small { display: block; font-size: .78rem; }
.case .pourquoi { color: var(--vert); }
.case .service { text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; color: var(--accent); }
.case-actions { display: flex; gap: .3rem; justify-content: flex-end; }
.case-actions .icone { width: 1.9rem; height: 1.9rem; font-size: .85rem; }
.vide-case { border: 1px dashed var(--bord); align-items: flex-start; }
.vide-case p { margin: 0; font-size: .85rem; color: var(--texte-doux); }

.ajout-article { margin-bottom: 1.5rem; }
.rayon h2 { font-size: 1rem; font-family: var(--police); text-transform: uppercase; letter-spacing: .05em; color: var(--accent-fonce); margin-top: 1.5rem; }
.rayon ul { list-style: none; padding: 0; margin: 0; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); }
.rayon li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem 1rem; border-bottom: 1px solid var(--bord); }
.rayon li:last-child { border: 0; }
.rayon label { display: flex; align-items: center; gap: .7rem; flex: 1; cursor: pointer; }
.rayon input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); flex: none; }
.rayon .article { flex: 1; }
.rayon .qte { font-weight: 600; white-space: nowrap; }
.rayon li.coche .article, .rayon li.coche .qte { text-decoration: line-through; color: var(--texte-doux); font-weight: 400; }
.rayon li small { max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.etagere { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.4rem; }
.livre { position: relative; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; background: var(--c); color: #fff; text-decoration: none; padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; overflow: hidden; box-shadow: inset 10px 0 0 rgb(0 0 0 / 18%), var(--ombre-forte); transition: transform .2s; }
.livre:hover { transform: translateY(-4px) rotate(-1deg); }
.livre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.livre > * { position: relative; }
.livre-emoji { font-size: 2.6rem; }
.livre strong { font-family: var(--police-titre); font-size: 1.25rem; line-height: 1.2; }
.livre small { color: rgb(255 255 255 / 85%); }
.livre-tete { display: flex; gap: 1.2rem; align-items: center; border-left: 8px solid var(--c); padding-left: 1rem; }
.liste-livres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.livre-choix { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .8rem; border-radius: var(--rayon-petit); border: 0; background: var(--c); color: #fff; cursor: pointer; font: 600 .9rem var(--police); text-align: left; }
.livre-choix span { font-size: 1.5rem; }
.livre-choix small { color: rgb(255 255 255 / 85%); }
.pastille input { position: absolute; opacity: 0; }
.pastille span { display: block; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c); cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--bord); }
.pastille input:checked + span { box-shadow: 0 0 0 3px var(--texte); }
.livre-impression .couverture { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--c); color: #fff; border-radius: var(--rayon); padding: 2rem; }
.livre-impression .couverture span { font-size: 5rem; }
.livre-impression .couverture h1 { font-size: 3rem; }
.page-recette { padding: 2rem 0; border-bottom: 1px solid var(--bord); }
.page-recette img { max-height: 280px; width: 100%; object-fit: cover; border-radius: var(--rayon); margin: 1rem 0; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.note-perso { background: var(--ambre-doux); padding: .6rem .9rem; border-radius: var(--rayon-petit); }

.assistant { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; min-height: 70vh; }
.fil-chat { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1rem; }
.bulle { max-width: 100%; padding: .9rem 1.1rem; border-radius: 18px; }
.bulle.moi { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; max-width: 80%; }
.bulle.ia { align-self: flex-start; background: var(--surface); box-shadow: var(--ombre); border-bottom-left-radius: 4px; width: 100%; }
.bulle.ia .grille { margin-top: .8rem; }
.bulle.erreur { color: var(--rouge); }
.saisie-chat { position: sticky; bottom: 0; display: flex; gap: .6rem; background: var(--fond); padding: .8rem 0; }
@media all { .saisie-chat { bottom: 4.3rem; } }
.saisie-chat textarea { border-radius: 18px; }
.points { display: inline-flex; gap: .3rem; }
.points i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--texte-doux); animation: saute 1s infinite; }
.points i:nth-child(2) { animation-delay: .15s; }
.points i:nth-child(3) { animation-delay: .3s; }
@keyframes saute { 50% { transform: translateY(-5px); opacity: .5; } }
.apercu-menu { grid-column: 1 / -1; display: block; background: var(--surface-2); border-radius: var(--rayon); padding: 1rem; color: inherit; text-decoration: none; }
.apercu-menu ol { list-style: none; padding: 0; margin: .6rem 0; }
.apercu-menu li { padding: .25rem 0; }
.apercu-menu li span { display: inline-block; width: 2rem; color: var(--accent); font-weight: 600; }
.apercu-menu small { color: var(--vert); margin-left: .3rem; }

dialog.modale { border: 0; border-radius: calc(var(--rayon) * 1.3); padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); background: var(--surface); color: var(--texte); box-shadow: var(--ombre-forte); }
dialog.modale.large { width: min(900px, calc(100vw - 2rem)); }
dialog.modale::backdrop { background: rgb(20 14 10 / 55%); backdrop-filter: blur(2px); }
.modale-tete { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--bord); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modale-tete h2 { margin: 0; font-size: 1.2rem; }
.modale-corps { padding: 1.2rem; }
.recherche-modale { display: flex; gap: .5rem; margin-bottom: 1rem; }
#toasts { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
@media all { #toasts { bottom: 5.5rem; } }
.toast { background: var(--texte); color: var(--fond); padding: .7rem 1.1rem; border-radius: 999px; box-shadow: var(--ombre-forte); font-size: .92rem; animation: entre .25s ease-out; max-width: 90vw; }
.toast-succes { background: var(--vert); color: #fff; }
.toast-erreur { background: var(--rouge); color: #fff; }
.toast.sortie { opacity: 0; transition: opacity .4s; }
@keyframes entre { from { transform: translateY(10px); opacity: 0; } }

@media print {
  .entete, .nav, .fiche-actions, .actions, .no-print, #toasts, .filtres, .case-actions, .carte-actions, .perso, .ajout-article, .stepper a, .barre-recherche { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding: 0; max-width: none; }
  .carte, .jour, .encadre, .rayon ul { box-shadow: none; border: 1px solid #ddd; }
  .page-recette, .jour { break-inside: avoid; }
  .livre-impression .couverture { break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sommaire { break-after: page; }
  .page-recette { break-before: page; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


h1, h2, .logo { font-weight: 800; letter-spacing: -.025em; }
.logo { color: var(--accent); font-size: 1.6rem; }
.nav a.actif { background: var(--encre); color: var(--fond); }
.btn { font-weight: 700; }

.hero { background: var(--menthe); position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 340px; height: 340px; right: -80px; top: -120px; background: var(--citron); }
.hero::after { width: 180px; height: 180px; right: 160px; bottom: -110px; background: var(--accent); opacity: .9; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); max-width: 16ch; line-height: 1.02; }
.hero .puce, .hero button.puce, .suggestions-ia .puce { background: var(--surface); border: 0; font-weight: 600; box-shadow: var(--ombre); }
.hero-ia input { border: 2px solid var(--encre); box-shadow: 4px 4px 0 var(--encre); }
.hero .btn { background: var(--encre); color: var(--fond); }
.barre-recherche input { border: 2px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); }

.carte { box-shadow: none; border: 1px solid var(--bord); }
.carte:hover { box-shadow: var(--ombre-forte); }
.carte h3 { font-weight: 800; letter-spacing: -.01em; }
.carte-img { margin: .5rem .5rem 0; border-radius: 16px; overflow: hidden; }
.jauge { background: var(--citron); color: #16251b; }
.bloc > header h2 { font-size: 1.8rem; }
.bloc-menu { border: 1px solid var(--bord); box-shadow: none; }

.fiche-img { box-shadow: 10px 10px 0 var(--menthe); }
.fiche-tete h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.video-recette { margin: 0 0 1.2rem; border-radius: var(--rayon, 14px); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-recette video, .video-recette iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; }
.etape-img { display: block; width: 100%; max-width: 420px; border-radius: 10px; margin: .4rem 0; }
.puce-video { color: var(--accent-fonce); font-weight: 600; }
.mc-video { display: block; width: 100%; max-height: 42vh; object-fit: contain; background: #000; border-radius: 12px; margin-bottom: 1rem; }
.etapes-recette li::marker { font-weight: 800; }
.encadre { border-radius: var(--rayon); }
.onglets a.actif { font-weight: 800; }

.auth-visuel { background: var(--menthe); color: var(--encre); position: relative; overflow: hidden; }
.auth-visuel::before { content: ''; position: absolute; width: 300px; height: 300px; right: -90px; top: -90px; border-radius: 50%; background: var(--citron); }
.auth-visuel::after { content: ''; position: absolute; width: 170px; height: 170px; left: -40px; bottom: -60px; border-radius: 50%; background: var(--accent); }
.auth-visuel > * { position: relative; z-index: 1; }
.auth-visuel p { font-weight: 800; letter-spacing: -.02em; }
.auth-visuel::after { left: auto; right: 50px; bottom: -90px; }
.puce { max-width: 100%; white-space: normal; text-align: left; }

@media all {
  .entete { backdrop-filter: none; background: var(--fond); }
  .hero::before { width: 200px; height: 200px; right: -90px; top: -90px; }
  .hero::after { width: 120px; height: 120px; right: 30px; bottom: -80px; }
  .hero-ia { flex-wrap: wrap; }
  .hero-ia input { flex: 1 1 100%; }
}


.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.plein { fill: currentColor; }
.btn .ic, .puce .ic, .puce-choix .ic { width: 1.05em; height: 1.05em; }
.nav a .ic { width: 1.1rem; height: 1.1rem; }
.coeur .ic { width: 1rem; height: 1rem; }
.carte-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.carte-meta .ic { width: .95em; height: .95em; color: var(--accent); }
.img-vide { color: var(--vert); }
.img-vide .ic { width: 2.6rem; height: 2.6rem; stroke-width: 1.5; }
.bloc-menu > span, .ligne-menu > span:first-child { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--menthe); color: var(--encre); font-size: 1.4rem; flex: none; }
.avatar, .livre-emoji { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--menthe); color: var(--encre); font-size: 1.3rem; flex: none; }
.livre-emoji { width: 3.4rem; height: 3.4rem; font-size: 1.7rem; border-radius: 16px; background: var(--citron); }
.livre-impression .couverture span { font-size: 4rem; }
.avatars .puce-choix span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; font-size: 1.15rem; }
.langue { display: inline-block; font: 800 .62rem/1 var(--police); letter-spacing: .06em; padding: .18rem .35rem; border-radius: 6px; background: var(--surface-2); color: var(--texte-doux); text-decoration: none; vertical-align: .1em; }
.bloc > header h2 .ic { color: var(--accent); }
h1 .ic { color: var(--accent); }

.logo { font-family: var(--police-titre); font-weight: 800; letter-spacing: -.04em; color: var(--accent); font-size: 1.75rem; line-height: 1; }
.auth-visuel .auth-marque { font: 800 clamp(3rem, 7vw, 5rem)/1 var(--police-titre); letter-spacing: -.04em; color: var(--accent); }
@media all { .nav a .ic { width: 1.35rem; height: 1.35rem; } }
@media (max-width: 800px) { .auth-visuel .auth-marque { font-size: 3rem; } }

.rejoindre-encadre { background: var(--menthe); border: 0; }
.rejoindre-encadre h3 { margin-top: 0; }
.rejoindre-encadre .ligne input { flex: 1; min-width: 10rem; }
.code-invitation { font: 800 2.2rem/1 var(--police-titre); letter-spacing: .12em; text-align: center; color: var(--accent); background: var(--surface-2); border-radius: var(--rayon-petit); padding: .8rem; margin: 1rem 0; }

@media (min-width: 901px) { .bouton-filtres { display: none; } }

.tirer { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; z-index: 80; width: 2.6rem; height: 2.6rem; margin-left: -1.3rem; border-radius: 50%;
  background: var(--surface); box-shadow: var(--ombre-forte); display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateY(calc(var(--tire, 0) * 60px - 50px)); transition: opacity .15s; }
.tirer.visible { opacity: 1; }
.tirer span { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 3px solid var(--accent-doux); border-top-color: var(--accent); transform: rotate(calc(var(--tire, 0) * 300deg)); }
.tirer.tourne { transform: translateY(10px); transition: transform .2s; }
.tirer.tourne span { animation: tourne .8s linear infinite; }

.photo-recette { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.photo-apercu { width: 7rem; aspect-ratio: 4 / 3; border-radius: var(--rayon-petit); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--texte-doux); font-size: 1.6rem; flex: none; }
.photo-apercu img { width: 100%; height: 100%; object-fit: cover; }
.photo-apercu.envoi { opacity: .5; animation: sonne .6s ease-in-out infinite alternate; }
.photo-boutons { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.photo-boutons label.btn { cursor: pointer; }
.photos-choisies { display: flex; gap: .5rem; flex-wrap: wrap; }
.photos-choisies img { width: 5.5rem; height: 7rem; object-fit: cover; border-radius: var(--rayon-petit); border: 1px solid var(--bord); }
#photo label.btn { cursor: pointer; align-self: flex-start; }

.materiel-manquant { color: var(--ambre); font-size: .8rem; margin: 0; display: flex; gap: .3rem; align-items: center; }
.fiche-materiel { font-size: .92rem; color: var(--texte-doux); margin: .3rem 0; }
.fiche-materiel .ic { margin-right: .2rem; }
.fiche-materiel .manquant { color: var(--ambre); font-weight: 700; text-decoration: underline dotted; }
.photos-choisies figure { position: relative; margin: 0; }
.photos-choisies figcaption { font-size: .75rem; color: var(--texte-doux); text-align: center; }
.photos-choisies .icone { position: absolute; top: -.5rem; right: -.5rem; width: 1.7rem; height: 1.7rem; font-size: .8rem; }
.au-frigo { color: var(--vert); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.onglets { scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .onglets a { padding: .6rem .55rem; font-size: .92rem; } }
@media all {
  .nav a.nav-pc { display: none; }
  .nav a { flex: 1 1 0; min-width: 0; }
}

.profil-lien { display: flex; align-items: center; gap: .45rem; width: auto; height: 2.5rem; padding: 0 .9rem 0 .25rem; border-radius: 999px; color: var(--texte); }
#nav-profil { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 1.1rem; }
#nav-prenom { font: 700 .92rem var(--police); max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

:root[data-theme="sombre"] {
  --fond: #101a13; --surface: #16231a; --surface-2: #1e2e23; --texte: #eef5ec; --texte-doux: #a5b8a9; --bord: #2a3d30;
  --accent: #ff7a5c; --accent-fonce: #ff9478; --accent-doux: #3a1f17;
  --vert: #6fd08f; --vert-doux: #17301f; --rouge: #ff8a80; --rouge-doux: #3a1a18; --ambre: #ffd23f; --ambre-doux: #33290e;
  --menthe: #24432c; --citron: #e9bd2a; --encre: #eef5ec;
  --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%); --ombre-forte: 0 14px 40px rgb(0 0 0 / 45%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --fond: #101a13; --surface: #16231a; --surface-2: #1e2e23; --texte: #eef5ec; --texte-doux: #a5b8a9; --bord: #2a3d30;
    --accent: #ff7a5c; --accent-fonce: #ff9478; --accent-doux: #3a1f17;
    --vert: #6fd08f; --vert-doux: #17301f; --rouge: #ff8a80; --rouge-doux: #3a1a18; --ambre: #ffd23f; --ambre-doux: #33290e;
    --menthe: #24432c; --citron: #e9bd2a; --encre: #eef5ec;
    --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%); --ombre-forte: 0 14px 40px rgb(0 0 0 / 45%);
    color-scheme: dark;
  }
}
.choix-theme { margin-bottom: 2rem; }
#frigo-photo.envoi { opacity: .6; pointer-events: none; }

.avis-membres { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.avis-membres li { display: flex; align-items: center; gap: .6rem; }
.avis-membres li strong { flex: 1; }
.avis-membres .avatar { width: 2rem; height: 2rem; font-size: 1rem; }
.avis-membres button.oui { background: var(--vert-doux); color: var(--vert); border-color: var(--vert); }
.avis-membres button.non { background: var(--rouge-doux); color: var(--rouge); border-color: var(--rouge); }
.mc-outils { display: flex; gap: .5rem; align-items: center; }
.mc-voix { margin: 0; padding: .5rem 1.5rem; background: var(--menthe); color: var(--encre); font-size: .9rem; display: flex; gap: .4rem; align-items: center; }

.liste-batch { display: flex; flex-direction: column; gap: .6rem; }
.deroule { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .6rem; }
.deroule li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .8rem; align-items: start; }
.deroule .quand { font: 800 .95rem var(--police-titre); color: var(--accent); background: var(--accent-doux); border-radius: 999px; text-align: center; padding: .2rem .4rem; }
.deroule p { margin: 0; }
.deroule small { color: var(--texte-doux); }

.blog main { max-width: 860px; }
.blog-entete { justify-content: space-between; }
.blog-entete .blog-rubrique { margin-right: auto; margin-left: .3rem; font: 800 1rem var(--police-titre); color: var(--texte); text-decoration: none; padding: .3rem .8rem; border-radius: 999px; background: var(--menthe); }
.blog-tete { text-align: center; margin: 1rem 0 2rem; }
.blog-tete p { color: var(--texte-doux); }
.blog-categorie { display: inline-block; font: 800 .95rem var(--police-titre); color: var(--texte); border-bottom: 3px dotted var(--texte); padding-bottom: .1rem; margin: 1.2rem 0 .4rem; }
.blog-une, .blog-carte { display: block; color: inherit; text-decoration: none; }
.blog-une h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; margin: .2rem 0 .5rem; }
.blog-une:hover h2, .blog-carte:hover h3 { color: var(--accent); }
.blog-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem 1.5rem; margin-top: 2.5rem; }
.blog-carte h3 { font: 800 1.15rem/1.2 var(--police-titre); margin: .2rem 0 .4rem; }
.blog-carte p:not(.blog-categorie) { color: var(--texte-doux); font-size: .92rem; margin: 0; }
.blog-carte small { display: block; margin-top: .5rem; color: var(--texte-doux); font-size: .82rem; }

.blog-couv { position: relative; aspect-ratio: 16 / 10; background: var(--fond); overflow: hidden; border-radius: 6px; display: grid; place-items: center; container-type: inline-size; }
.blog-couv::before, .blog-couv::after { content: ''; position: absolute; width: 6%; aspect-ratio: 1; background: var(--accent); }
.blog-couv::before { left: 0; top: 0; } .blog-couv::after { right: 0; bottom: 0; }
.blog-couv-photo { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 24px rgb(0 0 0 / 18%); }
.blog-couv-photo img { width: 100%; height: 100%; object-fit: cover; }
.blog-couv-photo.p0 { left: -6%; top: -12%; }
.blog-couv-photo.p1 { right: -5%; bottom: -14%; }
.blog-couv-photo.p2 { right: 4%; top: -18%; width: 24%; }
.blog-couv-titre { position: relative; z-index: 1; width: 64%; background: #fff; color: #16251b; padding: 6cqw 5cqw; text-align: center; font: 800 clamp(.95rem, 5.4cqw, 2.4rem)/1.15 var(--police-titre); letter-spacing: -.01em; }
.blog-couv.grande { border-radius: 8px; }

.blog-article > .blog-couv { margin-top: .5rem; }
.blog-article { text-align: left; }
.blog-article h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.08; margin: .2rem 0 .7rem; }
.blog-chapeau { font-size: 1.2rem; line-height: 1.5; margin: 0 0 .4rem; }
.blog-date { color: var(--texte-doux); font-size: .88rem; margin: 0 0 1.5rem; }
.blog-intro { font-size: 1.05rem; }
.blog-section h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; padding-top: .8rem; border-top: 2px solid var(--bord); }
.blog-recette { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.2rem; align-items: start; margin: 1.2rem 0 1.8rem; }
.blog-recette-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--rayon-petit); overflow: hidden; background: var(--surface-2); }
.blog-recette-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-recette-img:hover img { transform: scale(1.04); }
.blog-recette h3 { font: 800 1.25rem/1.2 var(--police-titre); margin: 0 0 .3rem; }
.blog-recette h3 a { color: inherit; text-decoration: none; }
.blog-recette p { margin: 0 0 .5rem; }
.blog-meta { color: var(--texte-doux); font-size: .88rem; }
.blog-liens { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.blog-source { font-size: .85rem; color: var(--texte-doux); }
.blog-astuce { background: var(--citron); color: #16251b; border-radius: var(--rayon); padding: 1.2rem 1.4rem; margin: 2rem 0; }
.blog-astuce b { font: 800 1.1rem var(--police-titre); }
.blog-astuce p { margin: .3rem 0 0; }

.blog-calendrier { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; margin: 1.5rem 0 1rem; }
.blog-calendrier > b { text-align: center; font: 800 .8rem var(--police-titre); color: var(--texte-doux); }
.blog-calendrier a { position: relative; display: flex; flex-direction: column; gap: .2rem; color: inherit; text-decoration: none; background: var(--surface-2); border-radius: 10px; padding: .3rem; font-size: .7rem; line-height: 1.2; }
.blog-calendrier a img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 8px; }
.blog-calendrier a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-calendrier i { position: absolute; top: .45rem; left: .45rem; font: 800 .75rem var(--police-titre); font-style: normal; background: #fff; border-radius: 6px; padding: .05rem .3rem; }

.blog-pied { max-width: 860px; margin: 0 auto; padding: 0 1rem 3rem; }
.blog-appel { background: var(--menthe); border-radius: var(--rayon); padding: 1.6rem; text-align: center; margin-bottom: 1rem; }
.blog-appel h2 { margin-top: 0; }
@media (max-width: 640px) {
  .blog-recette { grid-template-columns: 1fr; gap: .6rem; }
  .blog-calendrier { gap: .2rem; } .blog-calendrier a span { display: none; } .blog-calendrier a { padding: .15rem; }
  .blog-entete .btn { padding: .5rem .8rem; font-size: .85rem; }
}

.blog-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.blog-mini a { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: var(--fond-art, var(--menthe)); border-radius: var(--rayon); overflow: hidden; }
.blog-mini img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.blog-mini span { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem 1rem; color: #16251b; }
.blog-mini small { color: inherit; opacity: .75; font-weight: 700; }
.blog-mini b { font: 800 1.05rem/1.25 var(--police-titre); }

.carrousel { margin-bottom: 1.2rem; }
.carrousel-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--rayon); }
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-piste > .banniere { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
.carrousel-points { display: flex; justify-content: center; gap: .4rem; margin-top: .5rem; }
.carrousel-points button { width: .55rem; height: .55rem; padding: 0; border: 0; border-radius: 999px; background: var(--bord); cursor: pointer; transition: width .2s, background .2s; }
.carrousel-points button.on { width: 1.4rem; background: var(--accent); }
.banniere { display: flex; align-items: stretch; min-height: 7.5rem; border-radius: var(--rayon); overflow: hidden; background: var(--fond-art, var(--menthe)); color: #16251b; text-decoration: none; }
.banniere-texte { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .25rem; padding: 1rem 1.3rem; }
.banniere small { color: inherit; opacity: .75; font-weight: 700; }
.banniere b { font: 800 clamp(1.1rem, 2.6vw, 1.6rem)/1.15 var(--police-titre); }
.banniere em { font-style: normal; font-weight: 700; color: var(--accent-fonce); }
.banniere img { width: clamp(7.5rem, 32%, 22rem); object-fit: cover; flex: none; }
.banniere:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
.carrousel .banniere { height: clamp(9.5rem, 20vw, 13.5rem); min-height: 0; }
.carrousel .banniere img { height: 100%; width: clamp(8rem, 42%, 30rem); }
.carrousel .banniere-texte { padding: 1rem clamp(1.2rem, 4vw, 3rem); }
.carrousel .banniere b { font-size: clamp(1.15rem, 3vw, 2.1rem); }
.carrousel { position: relative; }
.carrousel .banniere { position: relative; height: clamp(13rem, 34vw, 22rem); background: #16251b; color: #fff; }
.carrousel .banniere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.carrousel .banniere:hover img { transform: scale(1.04); }
.carrousel .banniere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 18 12 / 78%) 0%, rgb(10 18 12 / 45%) 45%, transparent 75%), linear-gradient(0deg, rgb(10 18 12 / 45%), transparent 40%); }
.carrousel .banniere-texte { position: relative; z-index: 1; max-width: min(34rem, 80%); justify-content: flex-end; padding: 1.4rem clamp(1.2rem, 4vw, 2.6rem) 2.4rem; gap: .45rem; }
.carrousel .banniere small { align-self: flex-start; background: var(--accent); color: #fff; opacity: 1; border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; letter-spacing: .02em; }
.carrousel .banniere b { font-size: clamp(1.5rem, 4.4vw, 2.9rem); line-height: 1.05; text-shadow: 0 2px 14px rgb(0 0 0 / 35%); }
.carrousel .banniere em { color: #fff; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.carrousel-points { position: absolute; left: clamp(1.2rem, 4vw, 2.6rem); bottom: 1rem; margin: 0; z-index: 2; }
.carrousel-points button { background: rgb(255 255 255 / 55%); }
.carrousel-points button.on { background: #fff; }
@media (max-width: 600px) {
  .hero { padding: 1.3rem 1.2rem 1.1rem; }
  .hero h1 { font-size: 2rem; }
  .hero-ia { flex-wrap: nowrap; margin: .8rem 0; }
  .hero-ia input { flex: 1 1 auto; min-width: 0; font-size: 1rem; padding: .7rem 1rem; }
  .hero .btn { padding: .6rem .9rem; }
  .suggestions-ia { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .4rem; margin: 0 -1.2rem; padding: 0 1.2rem .2rem; scrollbar-width: none; }
  .suggestions-ia::-webkit-scrollbar { display: none; }
  .suggestions-ia .puce { white-space: nowrap; flex: none; }
}

.assistant-lien { display: none; }
.puce-reprendre { background: var(--encre) !important; color: var(--fond) !important; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
@media all {
  .assistant-lien { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-left: auto; margin-right: .4rem; border-radius: 50%; background: var(--menthe); color: var(--encre); }
  .assistant-lien .ic { width: 1.2rem; height: 1.2rem; }
}
@media (max-width: 600px) {
  main { padding: 1rem .9rem 5.5rem; }
  .grille, .grille.petite { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .carte-img { aspect-ratio: 1; margin: .35rem .35rem 0; border-radius: 12px; }
  .carte-corps { padding: .55rem .6rem .7rem; gap: .2rem; }
  .carte h3 { font-size: .92rem; line-height: 1.25; }
  .carte-meta { font-size: .74rem; gap: .15rem .5rem; }
  .carte-puces, .carte-source, .carte .pourquoi, .carte .manquants, .carte .materiel-manquant { display: none; }
  .carte .raisons { font-size: .72rem; }
  .jauge { font-size: .68rem; padding: .1rem .45rem; }
  .bloc { margin: 1.6rem 0; }
  .bloc > header h2 { font-size: 1.35rem; }
  .fiche-actions { flex-wrap: nowrap; overflow-x: auto; margin: 1rem -.9rem 0; padding: 0 .9rem .3rem; scrollbar-width: none; }
  .fiche-actions::-webkit-scrollbar { display: none; }
  .fiche-actions > * { flex: none; }
  .fiche-actions .btn { padding: .55rem .9rem; }
  .page-tete .actions { flex-wrap: nowrap; overflow-x: auto; margin-right: -.9rem; padding-right: .9rem; scrollbar-width: none; }
  .page-tete .actions::-webkit-scrollbar { display: none; }
  .page-tete .actions > * { flex: none; }
  .case-actions { margin-left: calc(64px + .6rem); justify-content: flex-start; gap: .3rem; }
  .case-actions .icone { width: 2rem; height: 2rem; }
  .jour { padding: .8rem; }
  .ajout-rapide, .puces-rapides { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; overflow-x: auto; scrollbar-width: none; }
  .liste-livres, .etagere { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .livre { padding: .9rem; }
  .saisie-chat textarea { font-size: 1rem; }
}
@media all { .entete .profil-lien { margin-left: 0; } }
@media (max-width: 600px) {
  .puces-rapides .puce { white-space: nowrap; }
  .fiche-actions [data-action="mode-cuisine"] { order: -1; }
}
@media (max-width: 800px) { .fiche-tete, .fiche-corps { grid-template-columns: minmax(0, 1fr); } .fiche-intro, .fiche-img { min-width: 0; } }
@media (max-width: 600px) { .puces-rapides { grid-auto-columns: max-content; } }
@media all { .entete .assistant-lien { margin-right: -.6rem; width: 2.3rem; height: 2.3rem; } }

.categories { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.6rem; }
.categories h2 { font-size: 1.05rem; margin: 0 0 .45rem; }
.categories-rangee { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.categorie { flex: none; width: 6.4rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; text-decoration: none; color: inherit; text-align: center; scroll-snap-align: start; }
.categorie-img { width: 5.6rem; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface-2); box-shadow: var(--ombre); transition: transform .2s; }
.categorie-img img { width: 100%; height: 100%; object-fit: cover; }
.categorie:hover .categorie-img { transform: translateY(-2px) rotate(-2deg); }
.categorie b { font-size: .85rem; line-height: 1.2; margin-top: .25rem; }
.categorie small { font-size: .72rem; }
.categorie.active .categorie-img { outline: 3px solid var(--accent); outline-offset: 2px; }
.categorie.active b { color: var(--accent-fonce); }
@media (max-width: 600px) {
  .categories-rangee { margin-right: -.9rem; padding-right: .9rem; scrollbar-width: none; }
  .categorie { width: 4.7rem; } .categorie-img { width: 4.3rem; border-radius: 16px; }
  .categorie b { font-size: .76rem; overflow-wrap: anywhere; }
  .categories { gap: .6rem; }
}
@media (max-width: 600px) {
  .fiche-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; overflow: visible; margin: 1rem 0 0; padding: 0; }
  .fiche-actions [data-action="mode-cuisine"] { grid-row: 1; grid-column: 1 / -1; padding: .75rem; font-size: 1rem; margin-bottom: .6rem; }
  .fiche-actions > button.btn:not([data-action="mode-cuisine"]):not([data-action="voir-video"]), .fiche-actions .plus > summary { grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 0; background: none; border: 0; box-shadow: none; color: var(--texte); font-size: .74rem; font-weight: 700; min-width: 0; }
  .fiche-actions > button.btn:not([data-action="mode-cuisine"]):not([data-action="voir-video"]) .ic, .fiche-actions .plus > summary .ic { box-sizing: content-box; width: 1.3rem; height: 1.3rem; padding: .75rem; border-radius: 50%; background: var(--surface-2); color: var(--encre); transition: background .15s; }
  .fiche-actions > button.btn:not(.secondaire):not([data-action="mode-cuisine"]) .ic { background: var(--accent-doux); color: var(--accent); }
  .fiche-actions > button.btn:not([data-action="mode-cuisine"]):not([data-action="voir-video"]):active .ic { background: var(--menthe); }
  .fiche-actions .plus { grid-row: 2; display: flex; justify-content: center; }
  .fiche-actions .plus > summary { list-style: none; }
  .fiche-actions .plus > summary::-webkit-details-marker { display: none; }
  .fiche-actions:has([data-action="voir-video"]) [data-action="mode-cuisine"] { grid-column: 1 / 3; }
  .fiche-actions [data-action="voir-video"] { grid-row: 1; grid-column: 3 / -1; margin-bottom: .6rem; padding: .75rem; font-size: 1rem; background: var(--encre); color: var(--fond); border-color: var(--encre); }
  .lib-long { display: none; }
  .lib-court { display: contents; }
  .page-tete .actions { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .categories-rangee, .puces-rapides, .suggestions-ia { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
}
.recherche-corps > *, .categories, .categories > section { min-width: 0; }
.categories h2 { display: flex; align-items: center; justify-content: space-between; }
.categories-suite { width: 2rem; height: 2rem; }

@media (min-width: 601px) { .lib-court { display: none; } }

.fiche-img { position: relative; }
.coeur-photo { position: absolute; top: .8rem; right: .8rem; width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--accent); box-shadow: 0 4px 14px rgb(0 0 0 / 18%); cursor: pointer; transition: transform .15s; }
.coeur-photo .ic { width: 1.45rem; height: 1.45rem; }
.coeur-photo:active { transform: scale(.9); }
.coeur-photo.on { background: var(--accent); color: #fff; }
.carte { position: relative; }
.coeur-carte { top: .9rem; right: .9rem; width: 2.3rem; height: 2.3rem; z-index: 2; }
.coeur-carte .ic { width: 1.1rem; height: 1.1rem; }
@media (max-width: 600px) { .coeur-carte { top: .7rem; right: .7rem; width: 2rem; height: 2rem; } .coeur-carte .ic { width: .95rem; height: .95rem; } }
@media (min-width: 601px) { .fiche-actions [data-action="mode-cuisine"] { order: -2; } .fiche-actions [data-action="voir-video"] { order: -1; } }
@media all {
  .recherche { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .5rem; align-items: center; }
  .barre-recherche { display: contents; }
  .barre-recherche input { grid-column: 1 / -1; margin-bottom: .6rem; }
  .barre-recherche select { grid-column: 1; grid-row: 2; min-width: 0; }
  .recherche > .bouton-filtres { grid-column: 2; grid-row: 2; margin: 0; }
  .barre-recherche .btn { grid-column: 3; grid-row: 2; }
  .recherche-corps { grid-column: 1 / -1; margin-top: 1.2rem; }
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
.categorie-choisie { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; margin-bottom: 1rem; }
.categorie-choisie h1 { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.categorie-choisie h1 img { width: 3.2rem; height: 3.2rem; border-radius: 14px; object-fit: cover; box-shadow: var(--ombre); }

.prix-courses { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; background: var(--menthe); color: var(--encre); border-radius: var(--rayon-petit); padding: .6rem .9rem; margin: .4rem 0 0; }
.prix-courses strong { font-size: 1.15rem; }
.prix-courses small { color: inherit; opacity: .75; }
@media (max-width: 600px) { .carte-meta .kcal { display: none; } }

.mc-ingredients { margin-top: 1.2rem; background: var(--surface-2); border-radius: var(--rayon-petit); padding: .8rem 1rem; }
.mc-ingredients small { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; margin-bottom: .35rem; }
.mc-ingredients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mc-ingredients li { background: var(--surface); border-radius: 999px; padding: .35rem .8rem; font-size: 1.05rem; font-weight: 600; box-shadow: var(--ombre); }

.scanner { display: flex; flex-direction: column; gap: .8rem; }
.scanner-video { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: var(--rayon-petit); overflow: hidden; }
.scanner-video video { width: 100%; height: 100%; object-fit: cover; }
.scanner-cadre { position: absolute; left: 12%; right: 12%; top: 32%; bottom: 32%; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 0 0 999px rgb(0 0 0 / 35%); }
.scanner-produit { display: flex; gap: .8rem; align-items: center; background: var(--surface-2); border-radius: var(--rayon-petit); padding: .7rem; }
.scanner-produit img { width: 4rem; height: 4rem; object-fit: contain; background: #fff; border-radius: 10px; }
.scanner-produit div { display: flex; flex-direction: column; gap: .1rem; }
.scanner-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .6rem; }
.scanner-choix .btn { flex-direction: column; white-space: normal; padding: .6rem .3rem; font-size: .82rem; text-align: center; }

.scanner-notes { display: flex; gap: .5rem; margin-top: .6rem; }
.note-lettre { flex: 1; display: flex; flex-direction: column; align-items: center; border-radius: 12px; padding: .35rem .3rem; font: 800 1.4rem/1.1 var(--police-titre); color: #fff; }
.note-lettre small { font: 700 .66rem var(--police); color: inherit; opacity: .9; }
.n-a { background: #038141; } .n-b { background: #85bb2f; } .n-c { background: #fecb02; color: #3b2a00; } .n-d { background: #ee8100; } .n-e { background: #e63e11; }
.nova-1 { background: #00aa00; } .nova-2 { background: #ffcc00; color: #3b2a00; } .nova-3 { background: #ff6600; } .nova-4 { background: #ff0000; }

.scanner-bas { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .4rem; }
.fiche-produit h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.fp-tete { display: flex; gap: .8rem; align-items: center; margin: .4rem 0 .8rem; }
.fp-tete img { width: 4.5rem; height: 4.5rem; object-fit: contain; background: #fff; border-radius: 12px; }
.fp-tete div { display: flex; flex-direction: column; }
.fp-note { display: flex; align-items: center; gap: .8rem; border-radius: var(--rayon-petit); padding: .7rem 1rem; color: #fff; }
.fp-note b { font: 800 2.2rem/1 var(--police-titre); } .fp-note b small { font-size: 1rem; color: inherit; opacity: .85; }
.fp-note span { font: 800 1.2rem var(--police-titre); }
.note-excellent { background: #038141; } .note-bon { background: #5aa52f; } .note-médiocre { background: #ee8100; } .note-mauvais { background: #e63e11; }
.fp-nutrition, .fp-additifs { list-style: none; margin: 0; padding: 0; }
.fp-nutrition li { display: grid; grid-template-columns: 1fr auto 4.2rem; gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--bord); }
.fp-nutrition i { font-style: normal; font-size: .75rem; font-weight: 700; text-align: center; border-radius: 999px; padding: .1rem .4rem; }
.niv-ok { background: #d8f0d1; color: #1d6b2c; } .niv-moyen { background: #ffe9c2; color: #8a5300; } .niv-haut { background: #ffd8cf; color: #b0300f; }
.fp-additifs li { padding: .35rem 0; border-bottom: 1px solid var(--bord); }
.fp-additifs li.debat b, .fp-additifs li.debat small { color: #c0392b; }
.fp-ingredients { font-size: .88rem; color: var(--texte-doux); }
@media all { .entete .scanner-lien { border: 0; padding: 0; cursor: pointer; margin-right: -.6rem; } .entete .scanner-lien + .assistant-lien { margin-left: 0; } }

.encart-appli { display: flex; align-items: center; gap: .8rem; background: var(--menthe); color: var(--encre); border-radius: var(--rayon-petit); padding: .8rem 1rem; margin-bottom: 1.2rem; }
.encart-appli > .ic { width: 1.6rem; height: 1.6rem; flex: none; }
.encart-appli div { flex: 1; display: flex; flex-direction: column; }
.encart-appli small { color: inherit; opacity: .8; }
.encart-appli small .ic { width: 1em; height: 1em; vertical-align: -.15em; }
body:not(.connecte) .assistant-lien { display: none !important; }

.fiche-programme header { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.fiche-programme header h2 { margin: 0; }
.besoins { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--bord); }
.besoins p { margin: 0 0 .5rem; }
.macros { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.macros li { background: var(--surface-2); border-radius: var(--rayon-petit); padding: .5rem; text-align: center; display: flex; flex-direction: column; }
.macros b { font: 800 1.2rem var(--police-titre); }
.suivi { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--bord); }
.suivi h3 { margin-top: 0; }
.courbe-poids { width: 100%; height: auto; color: var(--accent); background: var(--surface-2); border-radius: var(--rayon-petit); margin-bottom: .5rem; }
.courbe-poids circle { fill: var(--accent); }
.courbe-poids text { font-size: 9px; fill: var(--texte-doux); }
.programme .avertissement { margin-top: 1.5rem; }
.fiche-nutrition, .fiche-portions { font-size: .92rem; color: var(--texte-doux); margin: .3rem 0; }
.glucides { display: flex; gap: .7rem; align-items: flex-start; margin: .6rem 0; padding: .7rem .9rem; border-radius: 12px; border: 2px solid; }
.glucides svg { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .1rem; }
.glucides strong { display: block; font-size: 1.05rem; }
.glucides p { margin: .3rem 0 0; font-size: .92rem; }
.glucides .glucides-detail { font-weight: 600; margin-top: .15rem; }
.glucides small { display: block; margin-top: .3rem; color: var(--texte-doux); font-size: .8rem; }
.glucides.g-faible { border-color: #3f9a5a; background: #eaf6ee; color: #1f5a33; }
.glucides.g-modere { border-color: #d9a21a; background: #fdf5e0; color: #6a4a05; }
.glucides.g-eleve { border-color: #d6452f; background: #fdecea; color: #7a1f12; }
.glucides.g-inconnu { border-color: #b8b8b8; background: #f4f4f4; color: #444; }
.fiche-portions { color: var(--accent-fonce); font-weight: 600; }

.espace-programme { max-width: 760px; margin: 0 auto; }
.ep-tete { position: relative; background: linear-gradient(135deg, var(--menthe), color-mix(in srgb, var(--citron) 55%, var(--menthe))); color: #16251b; border-radius: var(--rayon); padding: 1.2rem 1.2rem 1rem; margin-bottom: .8rem; overflow: hidden; }
.ep-tete::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgb(255 255 255 / 25%); }
.ep-tete h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.4rem); }
.ep-sous { margin: .2rem 0 0; font-weight: 700; opacity: .8; }
.ep-retour { position: absolute; right: 1rem; top: 1rem; z-index: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgb(255 255 255 / 70%); color: inherit; }
.ep-personnes { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0 .2rem; position: relative; z-index: 1; }
.ep-personnes a { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem .25rem .25rem; border-radius: 999px; background: rgb(255 255 255 / 55%); color: inherit; text-decoration: none; font-weight: 700; font-size: .9rem; }
.ep-personnes a.actif { background: #16251b; color: #fff; }
.ep-personnes .avatar { width: 1.8rem; height: 1.8rem; font-size: .95rem; }
.ep-onglets { position: sticky; top: 4.2rem; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; background: var(--surface-2); border-radius: 999px; padding: .25rem; margin-bottom: 1rem; }
.ep-onglets a { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .5rem .3rem; border-radius: 999px; color: var(--texte-doux); text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ep-onglets a.actif { background: var(--surface); color: var(--texte); box-shadow: var(--ombre); }
@media (max-width: 420px) { .ep-onglets a { flex-direction: column; gap: .1rem; font-size: .72rem; border-radius: 16px; } .ep-onglets { border-radius: 20px; } }
.ep-jour { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; }
.ep-anneau { position: relative; width: 9.5rem; aspect-ratio: 1; }
.ep-anneau svg { width: 100%; height: 100%; }
.ep-anneau circle { fill: none; stroke-width: 11; }
.ep-anneau .fond { stroke: var(--surface-2); }
.ep-anneau .part { stroke: var(--vert); stroke-linecap: round; transition: stroke-dasharray .6s; }
.ep-anneau .part.trop { stroke: var(--accent); }
.ep-anneau > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.2rem; }
.ep-anneau b { font: 800 1.7rem/1 var(--police-titre); }
.ep-anneau small { font-size: .7rem; line-height: 1.2; }
.ep-macros { display: flex; flex-direction: column; gap: .7rem; }
.ep-barre { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; font-size: .88rem; }
.ep-barre span { font-weight: 700; }
.ep-barre i { grid-column: 1 / -1; grid-row: 2; height: .55rem; border-radius: 999px; background: linear-gradient(90deg, var(--vert) var(--p), var(--surface-2) var(--p)); }
.ep-barre.trop i { background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-2) var(--p)); }
.ep-barre small { grid-column: 2; grid-row: 1; }
@media (max-width: 520px) { .ep-jour { grid-template-columns: 1fr; justify-items: center; } .ep-macros { width: 100%; } }
.ep-repas { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-direction: column; gap: .5rem; }
.ep-repas a { display: grid; grid-template-columns: 4rem 1fr; gap: .8rem; align-items: center; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: .5rem; color: inherit; text-decoration: none; }
.ep-repas img, .ep-repas .img-vide { width: 4rem; height: 4rem; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); }
.ep-repas div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ep-conseil { display: flex; gap: .7rem; align-items: flex-start; background: var(--citron); color: #16251b; border-radius: var(--rayon); padding: 1rem; margin: 1rem 0; }
.ep-conseil > .ic { width: 1.5rem; height: 1.5rem; flex: none; }
.ep-conseil p { margin: 0; } .ep-conseil strong { display: block; }
.ep-poids { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; } .ep-poids b { font: 800 1.8rem var(--police-titre); }
.ep-invitation h2 { margin-top: 0; }
.ep-avertissement { margin-top: 1.5rem; }
.carte-programme { display: flex; align-items: center; gap: .9rem; background: linear-gradient(135deg, var(--menthe), color-mix(in srgb, var(--citron) 45%, var(--menthe))); color: #16251b; border-radius: var(--rayon); padding: 1rem 1.1rem; margin: 0 0 1.2rem; text-decoration: none; }
.carte-programme .cp-icone { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgb(255 255 255 / 65%); flex: none; }
.carte-programme .cp-icone .ic { width: 1.5rem; height: 1.5rem; }
.carte-programme div { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.carte-programme strong { font: 800 1.15rem var(--police-titre); }
.carte-programme small { color: inherit; opacity: .8; }
.cp-barre { height: .45rem; border-radius: 999px; margin-top: .3rem; background: linear-gradient(90deg, #16251b var(--p), rgb(255 255 255 / 60%) var(--p)); }

.tuto { position: fixed; inset: 0; z-index: 200; }
.tuto-trou { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgb(10 20 14 / 62%); outline: 3px solid var(--citron); transition: all .35s ease; pointer-events: none; }
.tuto.centre .tuto-trou { left: 50%; top: 50%; width: 0; height: 0; outline: none; }
.tuto-bulle { position: fixed; background: var(--surface); color: var(--texte); border-radius: var(--rayon); padding: 1rem 1.1rem; box-shadow: 0 18px 50px rgb(0 0 0 / 35%); transition: top .35s ease, bottom .35s ease, left .35s ease; animation: tuto-entree .3s ease; }
.tuto.centre .tuto-bulle { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 32px)); }
@keyframes tuto-entree { from { opacity: 0; translate: 0 8px; } }
.tuto-tete { display: flex; align-items: center; gap: .6rem; }
.tuto-tete small { color: var(--texte-doux); font-weight: 700; }
.tuto-icone { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--menthe); color: #16251b; }
.tuto-icone .ic { width: 1.3rem; height: 1.3rem; }
.tuto-passer { margin-left: auto; background: none; border: 0; padding: .3rem .2rem; color: var(--texte-doux); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tuto-bulle h2 { margin: .6rem 0 .3rem; font-size: 1.3rem; }
.tuto-bulle p { margin: 0; line-height: 1.45; }
.tuto-points { display: flex; gap: .3rem; justify-content: center; margin: .9rem 0 .7rem; }
.tuto-points i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--surface-2); transition: width .25s; }
.tuto-points i.actif { width: 1.3rem; border-radius: 999px; background: var(--accent); }
.tuto-actions { display: flex; justify-content: space-between; gap: .6rem; }
button.bloc-menu { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }

.carte-meta .ig { font-weight: 700; }
.carte-meta .ig i { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .3em; vertical-align: .05em; }
.carte-meta .ig-faible { color: #2f7d47; } .carte-meta .ig-faible i { background: #3f9a5a; }
.carte-meta .ig-moyen { color: #9a6a05; } .carte-meta .ig-moyen i { background: #d9a21a; }
.carte-meta .ig-fort { color: #b8321f; } .carte-meta .ig-fort i { background: #d6452f; }

.logo, .auth-visuel .auth-marque, .apercu .auth-marque { color: var(--encre); }
.logo em, .auth-marque em { font-style: normal; color: var(--accent); }
.fiche-auteur { display: flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--texte-doux); margin: .2rem 0 .4rem; }
.onglets-recherche { margin: .8rem 0 1rem; }
@media all { .recherche > .onglets-recherche { grid-column: 1 / -1; grid-row: 3; margin: 1rem 0 0; } .recherche > .onglets-recherche ~ .recherche-corps { margin-top: .6rem; } }

:root { --fond: #fbf8f3; --surface: #ffffff; --surface-2: #f1ebe1; --bord: #ece6dc; --texte-doux: #6f7a71; --creme-fonce: #efe9e0; --ombre: 0 2px 12px rgb(22 37 27 / 7%); }
.sr-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1 { font-weight: 800; letter-spacing: -.03em; }
.page-tete h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); }

.entete { background: color-mix(in srgb, var(--fond) 92%, transparent); border-bottom-color: transparent; }
.nav a.actif { background: var(--accent-doux); color: var(--accent-fonce); }
.nav a.nav-assistant { color: var(--accent-fonce); font-weight: 800; }
body:not([data-page="accueil"]):not([data-page="courses"]):not([data-page="frigo"]) .entete .scanner-lien { display: none !important; }
.entete .scanner-lien { background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
@media all {
  .entete .scanner-lien { margin-left: auto; margin-right: .5rem; }
  body:not([data-page="accueil"]):not([data-page="courses"]):not([data-page="frigo"]) .profil-lien { margin-left: auto; }
  .nav { background: rgb(255 255 255 / 97%); border-top-color: var(--bord); padding-top: .45rem; align-items: flex-start; }
  .nav a { color: #9a9389; font-size: .68rem; font-weight: 700; gap: .2rem; padding: .25rem .1rem; }
  .nav a .ic { width: 1.45rem; height: 1.45rem; }
  .nav a.actif { background: none; color: var(--accent); }
  .nav a.actif .ic { stroke-width: 2.4; }
  .nav a.nav-assistant { color: var(--accent); }
  .nav a.nav-assistant .ic { box-sizing: content-box; width: 1.5rem; height: 1.5rem; padding: .85rem; margin-top: -1.9rem; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--fond); }
  .nav a.nav-assistant.actif .ic { background: var(--accent-fonce); }
}
:root[data-theme="sombre"] .nav { background: var(--surface); }

.btn.secondaire { border-color: var(--bord); }
.encadre { background: var(--surface); border: 0; box-shadow: var(--ombre); }
.encadre-fort { box-shadow: 0 0 0 2px var(--accent); }
.hero-ia input, .barre-recherche input { border: 0; box-shadow: 0 4px 18px rgb(22 37 27 / 9%); background: var(--surface); }
.bloc-menu, .ligne-menu, .membre-ligne { border: 0; box-shadow: var(--ombre); background: var(--surface); }
.bloc-menu > span, .ligne-menu > span:first-child { background: var(--accent-doux); color: var(--accent); }
.alerte { border-radius: 16px; }
.bloc > header h2 { font-size: 1.45rem; }
.bloc > header a { font-weight: 800; text-decoration: none; }

.carte { background: none; border: 0; box-shadow: none; border-radius: 22px; overflow: visible; }
.carte:hover { box-shadow: none; transform: translateY(-3px); }
.carte-img { margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; }
.carte-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 18 12 / 82%), rgb(10 18 12 / 18%) 48%, transparent 72%); pointer-events: none; }
.carte-img img { transition: transform .4s; } .carte:hover .carte-img img { transform: scale(1.04); }
.carte-dessus { position: absolute; left: .8rem; right: .8rem; bottom: .75rem; z-index: 1; color: #fff; display: flex; flex-direction: column; gap: .25rem; }
.carte-dessus h3 { color: #fff; font: 800 1.08rem/1.15 var(--police-titre); letter-spacing: -.01em; -webkit-line-clamp: 3; }
.carte-dessus .carte-meta { color: rgb(255 255 255 / 92%); font-weight: 700; font-size: .78rem; gap: .2rem .6rem; }
.carte-dessus .carte-meta .ic { color: #fff; }
.carte-corps { padding: .45rem .2rem 0; gap: .2rem; }
.carte-corps:not(:has(p)) { display: none; }
.jauge { top: .7rem; bottom: auto; left: .7rem; z-index: 2; background: #fff; color: var(--vert); }
.carte-ig { margin: 0; font-size: .8rem; }
.carte-actions { padding: .5rem .2rem 0; justify-content: flex-start; }
.coeur-carte { background: rgb(255 255 255 / 90%); }
@media (max-width: 600px) {
  .carte-img { aspect-ratio: 4 / 5; margin: 0; border-radius: 20px; }
  .carte-dessus { left: .65rem; right: .65rem; bottom: .6rem; }
  .carte-dessus h3 { font-size: .95rem; }
  .carte-dessus .carte-meta { font-size: .72rem; }
  .carte-corps { padding: .35rem .15rem 0; }
}

.accueil .hero { background: none; padding: 0; margin: 0 0 1.2rem; overflow: visible; }
.accueil .hero::before, .accueil .hero::after { display: none; }
.accueil .hero h1.salut { font-size: clamp(1.6rem, 3.5vw, 2.4rem); max-width: none; margin-bottom: .6rem; }
.hero-ia { margin: 0 0 .7rem; gap: .5rem; }
.hero-ia input { border-radius: 999px; }
.hero-ia .btn { background: var(--accent); color: #fff; }
.carrousel .banniere em { display: inline-flex; align-self: flex-start; background: #fff; color: var(--encre); text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.carrousel-points { left: auto; right: clamp(1.2rem, 4vw, 2.6rem); bottom: 1.35rem; }
@media (max-width: 600px) {
  .accueil .carrousel { margin: -1rem -.9rem 0; }
  .accueil .carrousel-piste { border-radius: 0 0 30px 30px; }
  .accueil .carrousel .banniere { height: min(64vh, 30rem); }
  .accueil .carrousel .banniere::after { background: linear-gradient(to top, rgb(10 18 12 / 88%), rgb(10 18 12 / 20%) 55%, rgb(10 18 12 / 15%)); }
  .accueil .carrousel .banniere-texte { max-width: none; padding: 1.2rem 1.3rem 3.4rem; }
  .accueil .carrousel .banniere b { font-size: 2rem; letter-spacing: -.03em; }
  .accueil .carrousel-points { bottom: 3.9rem; right: 1.3rem; }
  .accueil .hero { position: relative; z-index: 2; margin: -1.7rem .2rem 1rem; }
  .accueil .hero h1.salut { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .accueil .hero-ia { flex-wrap: nowrap; position: relative; margin: 0 0 .8rem; }
  .accueil .hero-ia input { padding: .95rem 3.6rem .95rem 1.2rem; font-size: 1rem; }
  .accueil .hero-ia .btn { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.7rem; height: 2.7rem; padding: 0; border-radius: 50%; }
  .accueil .hero-ia .btn .lib-long { display: none; }
  .accueil .suggestions-ia { margin: 0 -1.1rem; padding: 0 1.1rem; }
  .accueil .bloc .grille { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: .75rem; margin-right: -.9rem; padding-right: .9rem; scrollbar-width: none; }
  .accueil .bloc .grille::-webkit-scrollbar { display: none; }
  .accueil .bloc .carte { flex: 0 0 44%; scroll-snap-align: start; }
}
.suggestions-ia .puce { background: var(--surface); box-shadow: 0 0 0 1.5px var(--bord); }
.carte-programme { background: var(--encre); color: #fff; }
.carte-programme .cp-icone { background: rgb(255 255 255 / 12%); color: #fff; }
.carte-programme .cp-barre { background: linear-gradient(90deg, var(--accent) var(--p), rgb(255 255 255 / 18%) var(--p)); }
:root[data-theme="sombre"] .carte-programme { background: var(--surface-2); }

.onglets-recherche { display: flex; background: var(--creme-fonce); border: 0; border-radius: 999px; padding: .25rem; gap: 0; }
.onglets-recherche a { flex: 1; text-align: center; border: 0; border-radius: 999px; padding: .55rem .5rem; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: .35rem; }
.onglets-recherche a.actif { background: var(--surface); color: var(--texte); box-shadow: 0 2px 8px rgb(22 37 27 / 10%); }
.envies-rapides { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 1rem; }
.envies-rapides::-webkit-scrollbar { display: none; }
.envies-rapides a { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--bord); color: var(--texte); text-decoration: none; font-weight: 700; font-size: .88rem; }
.envies-rapides a.on { background: var(--encre); color: #fff; box-shadow: none; }
@media all { .recherche > .envies-rapides { grid-column: 1 / -1; margin: .8rem -.9rem 0 0; padding-right: .9rem; } }
.filtres { box-shadow: var(--ombre); }

.fiche-img { box-shadow: none; }
.fiche .fil { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; }
.fiche .fil a { color: inherit; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: var(--surface); border-radius: 20px; padding: .8rem .3rem; margin: .8rem 0 .5rem; box-shadow: var(--ombre); }
.chiffres span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; border-right: 1px solid var(--bord); padding: 0 .3rem; min-width: 0; }
.chiffres span:last-child { border: 0; }
.chiffres b { font: 800 1.05rem var(--police-titre); white-space: nowrap; }
.chiffres small { font-size: .74rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.fiche-meta { font-size: .88rem; color: var(--texte-doux); gap: .9rem; }
.fiche-nutrition { display: flex; align-items: center; gap: 1rem; background: var(--surface); border-radius: 20px; padding: .8rem 1rem; box-shadow: var(--ombre); margin: .6rem 0; color: var(--texte); position: relative; }
.anneau-macros { flex: none; width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center; align-content: center; position: relative;
  background: conic-gradient(#2f8f4e 0 var(--p1), #ffb000 var(--p1) var(--p2), #ff5a36 var(--p2) 100%); }
.anneau-macros::before { content: ''; position: absolute; inset: .65rem; border-radius: 50%; background: var(--surface); }
.anneau-macros b, .anneau-macros small { position: relative; line-height: 1; } .anneau-macros b { font: 800 1.05rem var(--police-titre); } .anneau-macros small { font-size: .65rem; }
.fiche-nutrition ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; font-weight: 600; }
.fiche-nutrition li { display: flex; align-items: center; gap: .5rem; } .fiche-nutrition li b { margin-left: auto; }
.fiche-nutrition li i { width: .65rem; height: .65rem; border-radius: 3px; } .m-prot { background: #2f8f4e; } .m-gluc { background: #ffb000; } .m-lip { background: #ff5a36; }
.fn-par { position: absolute; top: .45rem; right: .8rem; font-size: .68rem; }
.liste-ingredients li { padding: .65rem 0; }
@media (max-width: 800px) {
  .fiche-img { margin: -1rem -.9rem 0; border-radius: 0; aspect-ratio: auto; height: 21rem; }
  .fiche-intro { position: relative; z-index: 1; margin: -2.2rem -.9rem 0; background: var(--fond); border-radius: 30px 30px 0 0; padding: 1.4rem .9rem 0; }
  .fiche-intro::before { content: ''; position: absolute; top: .6rem; left: 50%; width: 2.6rem; height: .28rem; margin-left: -1.3rem; border-radius: 4px; background: #ddd5ca; }
  .fiche-tete { gap: 0; }
  .fiche-tete h1 { font-size: 2rem; letter-spacing: -.03em; }
  .coeur-photo { top: 1rem; right: 1rem; }
}

.semaines { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 1rem; }
.semaines .ic.retourne { transform: rotate(180deg); }
.date-pastille { display: none; }
.jour { box-shadow: var(--ombre); }
@media all {
  .planning { display: flex; flex-direction: column; gap: 1rem; }
  .jour { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr); column-gap: .8rem; background: none; box-shadow: none; padding: 0; position: relative; }
  .jour::before { content: ''; position: absolute; left: 1.6rem; top: 3.9rem; bottom: -.8rem; width: 2px; background: var(--bord); }
  .jour:last-child::before { display: none; }
  .jour > h2 { grid-column: 1; grid-row: 1 / span 9; margin: 0; }
  .jour > .repas { grid-column: 2; }
  .date-pastille { display: grid; place-items: center; align-content: center; width: 3.3rem; height: 3.7rem; border-radius: 18px; background: var(--surface); box-shadow: var(--ombre); }
  .date-pastille small { font-size: .7rem; font-weight: 700; text-transform: capitalize; } .date-pastille b { font: 800 1.25rem/1 var(--police-titre); }
  .jour.auj .date-pastille { background: var(--accent); color: #fff; } .jour.auj .date-pastille small { color: #ffe0d6; }
  .date-longue { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .repas + .repas { margin-top: .5rem; padding-top: 0; border-top: 0; }
  .repas h3 { display: none; }
  .case { position: relative; padding: 0; margin-bottom: .5rem; border-radius: 20px; overflow: hidden; min-height: 6rem; background: #16251b; }
  .case-lien { display: block; min-height: 6rem; position: relative; }
  .case-lien::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 18 12 / 85%), rgb(10 18 12 / 15%) 70%); }
  .case-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .case-lien > div { position: absolute; left: .85rem; right: 3rem; bottom: .65rem; z-index: 1; color: #fff; }
  .case strong { font: 800 1rem/1.15 var(--police-titre); color: #fff; }
  .case small { color: rgb(255 255 255 / 85%); }
  .case .service, .case .pourquoi { color: #ffd2c2; }
  .case-actions { position: absolute; top: .45rem; right: .45rem; z-index: 2; margin: 0 !important; flex-direction: column; gap: .3rem; }
  .case-actions .icone { width: 1.9rem !important; height: 1.9rem !important; background: rgb(255 255 255 / 88%); border: 0; }
  .case.verrouillee { box-shadow: 0 0 0 3px var(--accent); }
  .vide-case { background: var(--surface); min-height: 0; padding: .8rem; }
  .vide-case p { color: var(--texte-doux); }
}

.avancement { display: flex; align-items: center; gap: 1rem; background: #16251b; color: #fff; border-radius: 22px; padding: 1rem 1.1rem; margin: .4rem 0 .8rem; }
.avancement > div { display: flex; flex-direction: column; }
.avancement b { font: 800 1.25rem var(--police-titre); white-space: nowrap; }
.avancement small { color: rgb(255 255 255 / 70%); font-size: .75rem; font-weight: 700; }
.jauge-courses { flex: 1; height: .5rem; border-radius: 99px; background: rgb(255 255 255 / 18%); overflow: hidden; }
.jauge-courses i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.av-prix { text-align: right; align-items: flex-end; }
.ajout-article input { border-radius: 999px; border: 1.5px dashed #d7cfc3; background: var(--surface); }
.rayon h2 { color: var(--texte-doux); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.rayon ul { box-shadow: var(--ombre); }
.rayon input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid #cfc7bb; background: var(--surface); display: grid; place-items: center; cursor: pointer; margin: 0; }
.rayon input[type=checkbox]:checked { background: var(--vert); border-color: var(--vert); }
.rayon input[type=checkbox]:checked::after { content: ''; width: .4rem; height: .7rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }

#frigo-photo { background: var(--surface); box-shadow: var(--ombre); }
#frigo-photo h3 .ic { color: var(--accent); }
.puce-retirable { background: var(--surface); color: var(--texte); box-shadow: 0 1px 4px rgb(22 37 27 / 8%); font-weight: 700; }
.puces-rapides .puce { background: var(--surface); box-shadow: 0 0 0 1.5px var(--bord); }
.lignes-frigo { display: flex; flex-direction: column; gap: .6rem; }
.ligne-frigo { display: flex; gap: .8rem; align-items: center; background: var(--surface); border-radius: 20px; padding: .5rem; text-decoration: none; color: inherit; box-shadow: var(--ombre); }
.ligne-frigo.exclue { opacity: .6; }
.ligne-frigo .lf-img { width: 5.6rem; height: 5.6rem; border-radius: 15px; object-fit: cover; flex: none; display: grid; place-items: center; }
.lf-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; padding-right: .4rem; }
.lf-corps b { font: 700 1rem/1.2 var(--police-titre); }
.lf-barre { height: .4rem; border-radius: 99px; background: var(--creme-fonce); overflow: hidden; }
.lf-barre i { display: block; height: 100%; background: var(--vert); border-radius: 99px; }
.lf-corps small { font-weight: 700; font-size: .8rem; }
@media (min-width: 901px) { .lignes-frigo { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }

.carnet .onglets { border: 0; gap: .45rem; margin-bottom: 1rem; }
.carnet .onglets a { border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--bord); padding: .5rem .9rem; color: var(--texte); font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }
.carnet .onglets a.actif { background: var(--accent); color: #fff; box-shadow: none; }
.mosaique { columns: 4 220px; column-gap: 1rem; }
.mosaique .carte { break-inside: avoid; margin-bottom: 1rem; display: block; }
.mosaique .carte:nth-child(3n+1) .carte-img { aspect-ratio: 3 / 4; }
.mosaique .carte:nth-child(3n+2) .carte-img { aspect-ratio: 1; }
.mosaique .carte:nth-child(3n) .carte-img { aspect-ratio: 4 / 5.4; }
@media (max-width: 600px) { .mosaique { columns: 2; column-gap: .65rem; } .mosaique .carte { margin-bottom: .65rem; } }

.choix-ajout { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.choix-ajout a { display: flex; align-items: center; gap: .9rem; background: var(--surface); border-radius: 18px; padding: .9rem; box-shadow: var(--ombre); color: inherit; text-decoration: none; cursor: pointer; }
.choix-ajout a > .ic { box-sizing: content-box; width: 1.3rem; height: 1.3rem; padding: .7rem; border-radius: 14px; background: var(--accent-doux); color: var(--accent); }
.choix-ajout span { display: flex; flex-direction: column; } .choix-ajout b { font: 700 1rem var(--police-titre); } .choix-ajout small { font-size: .82rem; font-weight: 600; }

.foyer-bandeau { background: linear-gradient(150deg, var(--accent), #ff8a5c 60%, #ffb38f); color: #fff; border-radius: 0 0 36px 36px; margin: -1.5rem -1rem 1.2rem; padding: 1.6rem 1.2rem 1.3rem; }
.foyer-bandeau h1 { color: #fff; margin: 0; font-size: 2rem; }
.foyer-bandeau p { margin: .1rem 0 0; color: rgb(255 255 255 / 85%); font-size: .85rem; }
.visages { display: flex; margin: 1rem 0 1.1rem; }
.visages span, .visages button { width: 3.4rem; height: 3.4rem; border-radius: 18px; border: 3px solid #fff; display: grid; place-items: center; font: 800 1.3rem var(--police-titre); margin-right: -.7rem; background: #16251b; color: #fff; }
.visages span:nth-child(3n+2) { background: #7a5ad6; } .visages span:nth-child(3n) { background: #2f8f4e; }
.visages button { background: rgb(255 255 255 / 30%); cursor: pointer; }
.chiffres-foyer { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.chiffres-foyer div { background: rgb(255 255 255 / 20%); border-radius: 16px; padding: .6rem .7rem; display: flex; flex-direction: column; }
.chiffres-foyer b { font: 800 1.5rem/1.1 var(--police-titre); } .chiffres-foyer small { color: #fff; opacity: .9; font-size: .72rem; font-weight: 700; }
.raccourcis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.raccourcis a { display: flex; flex-direction: column; gap: .5rem; background: var(--surface); border: 2px solid var(--bord); border-radius: 20px; padding: .9rem; color: var(--texte); text-decoration: none; cursor: pointer; }
.raccourcis .ic { width: 1.4rem; height: 1.4rem; color: var(--accent); } .raccourcis b { font: 700 .95rem var(--police-titre); }
@media (max-width: 600px) { .foyer-bandeau { margin: -1rem -.9rem 1rem; } .raccourcis { grid-template-columns: 1fr 1fr; } }
@media (min-width: 901px) { .foyer-bandeau { border-radius: 30px; margin: 0 0 1.2rem; } }

.auth-visuel { background: #16251b; color: #fff; }
.auth-visuel::before, .auth-visuel::after { display: none; }
.auth-visuel .auth-marque { color: #fff; }
.auth-visuel p { color: #fff; }

.bulle.ia { box-shadow: var(--ombre); }
.mc-voix { background: var(--accent-doux); color: var(--accent-fonce); font-weight: 700; }
.livre-tete { border-left-color: var(--c); }
.fn-par { position: static; display: block; margin-top: .35rem; text-align: right; }
.fiche-nutrition ul { position: relative; }
.fiche-nutrition { flex-wrap: wrap; } .fiche-nutrition .fn-par { flex-basis: 100%; margin: -.2rem 0 0; }
@media (max-width: 600px) { .accueil .carrousel-points { bottom: auto; top: 1.1rem; } }
@media all {
  .case-actions { flex-direction: row; top: .5rem; right: .5rem; gap: .25rem; }
  .case-actions .icone { width: 1.75rem !important; height: 1.75rem !important; }
  .case-lien > div { right: .85rem; }
  .case { min-height: 6.6rem; } .case-lien { min-height: 6.6rem; }
}
.assistant, .saisie-chat, .fil-chat { min-width: 0; max-width: 100%; }
.assistant .suggestions-ia, .assistant .puces { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ep-tete { background: linear-gradient(150deg, #16251b, #24402e); color: #fff; }
.ep-tete::after { background: rgb(255 90 54 / 22%); }
.ep-tete h1 { color: #fff; }
.ep-retour { background: rgb(255 255 255 / 15%); color: #fff; }
.ep-personnes a { background: rgb(255 255 255 / 14%); color: #fff; }
.ep-personnes a.actif { background: var(--accent); color: #fff; }
.ep-onglets { background: var(--creme-fonce); }
.ep-jour, .ep-repas a { border: 0; box-shadow: var(--ombre); }
.ep-anneau .part { stroke: var(--accent); }
.ep-barre i { background: linear-gradient(90deg, var(--vert) var(--p), var(--creme-fonce) var(--p)); }
.ep-conseil { background: var(--accent-doux); color: var(--encre); }

.tete-mobile { display: none; }
.rond-outil { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--surface); color: var(--encre); display: inline-grid; place-items: center; box-shadow: 0 2px 10px rgb(22 37 27 / 8%); cursor: pointer; position: relative; flex: none; }
.rond-outil .ic { width: 1.15rem; height: 1.15rem; }
.rond-outil .nb { position: absolute; top: -.2rem; right: -.2rem; min-width: 1.1rem; height: 1.1rem; border-radius: 99px; background: var(--accent); color: #fff; font: 800 .65rem/1.1rem var(--police); font-style: normal; text-align: center; }
.rond-photo { display: none; }
.segment-fiche { display: none; }
.plus-tel { display: none !important; }
.btn.danger-doux { color: var(--rouge); }
.ajout-article { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1.5px dashed #d7cfc3; border-radius: 16px; padding: .35rem .5rem .35rem .9rem; }
.ajout-article input { border: 0 !important; background: none; padding: .5rem 0; flex: 1; min-width: 0; box-shadow: none; }
.ajout-article input:focus { outline: none; }
.ajout-article .aa-plus { color: var(--texte-doux); display: grid; } .ajout-article .aa-scan { border: 0; background: none; color: var(--texte-doux); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; cursor: pointer; }

@media all {
  main { padding-top: 1.1rem; }
  .entete { position: absolute; left: 0; right: 0; top: 0; z-index: 25; background: none; border: 0; padding: calc(env(safe-area-inset-top) + 1.1rem) 1.2rem 0; pointer-events: none; }
  .entete > * { pointer-events: auto; }
  body:not([data-page="accueil"]) .entete .logo, body:not([data-page="accueil"]) .entete .profil-lien, body:not([data-page="accueil"]) .entete .scanner-lien { display: none !important; }
  body:not(.connecte) .entete { position: static; }
  body:not(.connecte) .entete .logo { display: inline !important; }
  body[data-page="accueil"] .entete .logo { color: #fff; font-size: 1.7rem; }
  body[data-page="accueil"] .entete .logo em { color: var(--accent); }
  .entete .scanner-lien { width: 2.6rem; height: 2.6rem; margin: 0 .5rem 0 auto; background: rgb(255 255 255 / 90%); box-shadow: none; }
  .entete .profil-lien { width: 2.6rem; height: 2.6rem; padding: 0; background: none; }
  .entete #nav-prenom { display: none; }
  .entete #nav-profil { width: 2.6rem; height: 2.6rem; background: var(--accent); color: #fff; font: 800 1.05rem var(--police-titre); }
  .entete #nav-profil .ic { display: none; }
  .entete #nav-profil::after { content: attr(data-initiale); }

  .page-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .5rem; margin-bottom: 1rem; }
  .page-tete > h1 { grid-column: 1; grid-row: 1; margin: 0; font-size: 2rem; letter-spacing: -.035em; }
  .page-tete > :not(h1):not(.actions) { grid-column: 1 / -1; }
  .page-tete > .aide { margin: .3rem 0 0; font-weight: 600; }
  .page-tete .actions { grid-column: 2; grid-row: 1; margin: 0; flex-wrap: nowrap !important; gap: .45rem; position: relative; overflow: visible !important; padding: 0 !important; }
  .page-tete .actions > .btn, .page-tete .actions > a.btn, .page-tete .actions > label.btn { font-size: 0; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; gap: 0; border: 0; box-shadow: 0 2px 10px rgb(22 37 27 / 8%); }
  .page-tete .actions > .btn:not(.secondaire) { background: var(--accent); color: #fff; }
  .page-tete .actions > .btn.secondaire { background: var(--surface); color: var(--encre); }
  .page-tete .actions > .btn .ic { width: 1.15rem; height: 1.15rem; }
  .page-tete .actions > form { display: none; }
  .page-tete .actions.a-plier > :nth-child(n+3):not(.plier) { display: none; }
  .page-tete .actions.a-plier.ouvert { }
  .page-tete .actions.a-plier.ouvert > :nth-child(n+3):not(.plier) { display: flex; position: absolute; right: 0; width: 15rem; height: auto; border-radius: 12px; justify-content: flex-start; font-size: .95rem; gap: .6rem; padding: .75rem 1rem; background: var(--surface); color: var(--texte); z-index: 30; box-shadow: var(--ombre-forte); }
  .page-tete .actions.a-plier.ouvert > :nth-child(3) { top: 3rem; } .page-tete .actions.a-plier.ouvert > :nth-child(4) { top: 6.1rem; } .page-tete .actions.a-plier.ouvert > :nth-child(5) { top: 9.2rem; } .page-tete .actions.a-plier.ouvert > :nth-child(6) { top: 12.3rem; } .page-tete .actions.a-plier.ouvert > :nth-child(7) { top: 15.4rem; }
  .page-tete .actions .plier { order: 99; }
  .page-tete .actions.a-plier > :nth-child(2):not(.plier) { order: 1; } .page-tete .actions.a-plier > :first-child { order: 2; }
  .page-tete .actions .btn.danger-doux { color: var(--rouge) !important; }

  .accueil .carrousel { margin-top: calc(-1.1rem - env(safe-area-inset-top)); }
  .accueil .carrousel .banniere { height: min(66vh, 31rem); }
  .accueil .carrousel .banniere-texte { padding-bottom: 3.6rem; }
  .accueil .carrousel .banniere small { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
  .accueil .carrousel-points { top: auto; bottom: 4.15rem; }
  .accueil .bloc > header { flex-wrap: nowrap; align-items: baseline; margin-bottom: .75rem; }
  .accueil .bloc > header h2 { font-size: 1.35rem; }
  .accueil .bloc > header a { white-space: nowrap; font-size: .9rem; }
  .accueil .bloc > header h2 .ic { display: none; }
  .accueil .bloc .carte { flex-basis: 41%; }
  .accueil .bloc .carte-img { aspect-ratio: 160 / 210; }
  .accueil .bandeau-filtre { font-size: .85rem; }

  .recherche { display: flex !important; flex-direction: column; }
  .tete-mobile { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
  .tete-mobile h1 { margin: 0; font-size: 2rem; letter-spacing: -.035em; }
  .barre-recherche { display: flex !important; position: relative; margin: 0 0 .9rem; }
  .barre-recherche input { margin: 0 !important; padding: .9rem 1rem .9rem 2.9rem; border-radius: 999px; font-size: 1rem; }
  .barre-recherche::before { content: ''; position: absolute; left: 1.1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; z-index: 1; pointer-events: none;
    background: var(--texte-doux); -webkit-mask: var(--loupe) center / contain no-repeat; mask: var(--loupe) center / contain no-repeat; }
  .barre-recherche .btn { display: none; }
  .barre-recherche select { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: auto; max-width: 8.5rem; padding: .4rem 1.6rem .4rem .7rem; border: 0; background-color: var(--creme-fonce); border-radius: 999px; font-size: .8rem; font-weight: 700; }
  .barre-recherche input { padding-right: 9.5rem; }
  .onglets-recherche { margin: 0 0 .9rem !important; }
  .envies-rapides { margin: 0 -1rem .9rem 0; padding-right: 1rem; }
  .recherche-corps { display: flex; flex-direction: column; margin: 0 !important; }
  .recherche-corps > div { display: flex; flex-direction: column; }
  .recherche-corps #resultats { order: 1; } .recherche-corps #categories { order: 2; margin-top: 1.5rem; } .recherche-corps #web { order: 3; }
  .recherche .compte { font-size: .85rem; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem !important; align-items: start; }
  .grille .carte:nth-child(4n+2) .carte-img, .grille .carte:nth-child(4n+3) .carte-img { aspect-ratio: 170 / 250; }
  .grille .carte .carte-img { aspect-ratio: 170 / 220; }
  .carte-puces, .carte-source { display: none !important; }

  body[data-page="recette"] main { padding-top: 0; }
  body[data-page="recette"] .nav { display: none; }
  body[data-page="recette"] main { padding-bottom: 7rem !important; }
  .fiche-img { margin: 0 -.9rem; height: 22rem; }
  .rond-photo, .coeur-photo { display: grid; position: absolute; top: calc(env(safe-area-inset-top) + 1rem); z-index: 3; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / 88%); color: var(--encre); place-items: center; box-shadow: none; cursor: pointer; }
  .rond-photo .ic, .coeur-photo .ic { width: 1.15rem; height: 1.15rem; }
  .retour-photo { left: 1rem; } .retour-photo .ic { transform: rotate(180deg); }
  .partage-photo { right: 4.2rem; } .coeur-photo { right: 1rem; }
  .coeur-photo.on { background: var(--accent); color: #fff; }
  .fiche-intro { margin-top: -2.2rem; }
  .fiche .fil { margin-bottom: .2rem; }
  .fiche-tete h1 { margin: .2rem 0 .8rem; }
  .fiche[data-vue] .fiche-intro > .description, .fiche[data-vue] .fiche-intro > .fiche-meta, .fiche[data-vue] .fiche-intro > .fiche-nutrition,
  .fiche[data-vue] .fiche-intro > .fiche-portions, .fiche[data-vue] .fiche-intro > .fiche-materiel, .fiche[data-vue] .fiche-intro > .carte-puces,
  .fiche[data-vue] .fiche-intro > .fiche-auteur, .fiche[data-vue] .fiche-intro > .source { display: none; }
  .fiche[data-vue="infos"] .fiche-intro > .description, .fiche[data-vue="infos"] .fiche-intro > .fiche-meta, .fiche[data-vue="infos"] .fiche-intro > .fiche-nutrition,
  .fiche[data-vue="infos"] .fiche-intro > .fiche-portions, .fiche[data-vue="infos"] .fiche-intro > .fiche-materiel, .fiche[data-vue="infos"] .fiche-intro > .carte-puces,
  .fiche[data-vue="infos"] .fiche-intro > .fiche-auteur, .fiche[data-vue="infos"] .fiche-intro > .source:not([hidden]) { display: flex; flex-wrap: wrap; }
  .fiche[data-vue="infos"] .fiche-intro > .description { display: block; }
  .fiche .alerte { margin: .6rem 0 0; font-weight: 700; font-size: .9rem; padding: .7rem .9rem; }
  .segment-fiche { display: flex; background: var(--creme-fonce); border-radius: 999px; padding: .25rem; margin: 1rem 0 .8rem; }
  .segment-fiche button { flex: 1; border: 0; background: none; border-radius: 999px; padding: .6rem; font: 800 .9rem var(--police); color: var(--texte-doux); cursor: pointer; }
  .segment-fiche button.actif { background: var(--surface); color: var(--texte); box-shadow: 0 2px 8px rgb(22 37 27 / 10%); }
  .fiche[data-vue="ingredients"] .fiche-corps > :not(.ingredients), .fiche[data-vue="etapes"] .fiche-corps > :not(.etapes-recette), .fiche[data-vue="infos"] .fiche-corps > :not(.fiche-infos):not(.fiche-avis) { display: none !important; }
  .fiche[data-vue="infos"] .fiche-corps { display: flex; flex-direction: column; gap: 1rem; }
  .fiche[data-vue="infos"] .fiche-intro { padding-bottom: .5rem; }
  .fiche-corps { margin-top: 0; }
  .ingredients .portions h2 { font-size: 0; margin: 0; }
  .ingredients .portions { flex-wrap: nowrap; }
  .ingredients .stepper { background: var(--surface); border-radius: 999px; padding: .25rem; box-shadow: 0 0 0 1.5px var(--bord); }
  .ingredients .stepper .btn.icone { width: 2rem; height: 2rem; border: 0; background: var(--fond); }
  .liste-ingredients li { font-size: 1rem; font-weight: 600; }
  .etapes-recette > h2 { display: none; }
  .fiche-actions { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 !important; display: flex !important; gap: .55rem !important; align-items: center; overflow: visible !important;
    padding: .9rem 1rem calc(1rem + env(safe-area-inset-bottom)) !important; background: linear-gradient(to top, var(--fond) 72%, transparent); grid-template-columns: none !important; }
  .fiche-actions > * { margin: 0 !important; grid-row: auto !important; grid-column: auto !important; }
  .fiche-actions > [data-action="ajouter-livre"], .fiche-actions > [data-action="voir-video"] { display: none !important; }
  .fiche-actions > button.btn:not([data-action="mode-cuisine"]), .fiche-actions .plus > summary { width: 3.4rem; height: 3.4rem; padding: 0 !important; border-radius: 50%; background: var(--surface) !important; border: 0 !important; box-shadow: 0 0 0 1.5px var(--bord) !important; font-size: 0 !important; flex: none; display: grid !important; place-items: center; color: var(--encre) !important; }
  .fiche-actions > button.btn:not([data-action="mode-cuisine"]) .ic, .fiche-actions .plus > summary .ic { width: 1.3rem !important; height: 1.3rem !important; padding: 0 !important; background: none !important; color: var(--encre) !important; }
  .fiche-actions .lib-court, .fiche-actions .lib-long { font-size: 0; }
  .fiche-actions [data-action="mode-cuisine"] { order: 3; flex: 1; height: 3.4rem; font-size: 1.05rem !important; order: 3; }
  .fiche-actions [data-action="ajouter-menu"] { order: 1; } .fiche-actions [data-action="ajouter-courses"] { order: 2; } .fiche-actions .plus { order: 4; }
  .fiche-actions .menu-plus { top: auto; bottom: 115%; right: 0; }
  .plus-tel { display: block !important; }

  .semaines { justify-content: flex-start; gap: .5rem; }
  .semaines .btn { border-radius: 999px; border: 0; background: var(--creme-fonce); font-weight: 700; }
  .page.large > .page-tete > .aide { font-size: .85rem; }

  .courses .rayon li small:not(.au-frigo) { display: none; }
  .courses .rayon h2 { margin-top: 1.3rem; }
  .courses > p.aide:last-child { font-size: .82rem; }
  .ajout-article { margin: 0 0 .4rem; }
  .ajout-article .btn { display: none; }

  .page > form.encadre { background: none; box-shadow: none; padding: 0; }
  #frigo-photo { display: none; }
  .puces-rapides { margin-top: .2rem; }
}
:root { --loupe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
@media all { .recherche, .recherche-corps, .recherche-corps > div, #categories, #resultats, #web { min-width: 0; max-width: 100%; } .recherche-corps { width: 100%; } }
.mc-court, .ok-court { display: none; }
.plus-case { display: none !important; }
.sem-actuelle { background: var(--encre); color: #fff; cursor: default; }
@media all {
  .recherche { align-items: stretch !important; }
  .recherche > * { width: 100%; }
  .tete-mobile { width: 100%; }
  .accueil { display: flex; flex-direction: column; }
  .accueil .carrousel { order: 1; } .accueil .hero { order: 2; } #accueil-blocs { order: 3; display: flex; flex-direction: column; } .accueil #carte-programme { order: 4; }
  #accueil-blocs > .bandeau-filtre, #accueil-blocs > .bloc-menu { order: 9; }
  #accueil-blocs > .bloc { order: 1; margin: 0 0 1.6rem; }
  .accueil .suggestions-ia { display: none; }
  .accueil .hero { margin-bottom: 1.4rem; }
  .fiche-actions > button.btn[data-action="ajouter-livre"], .fiche-actions > button.btn[data-action="voir-video"] { display: none !important; }
  .fiche-actions .mc-long { display: none; } .fiche-actions .mc-court { display: inline; }
  .fiche .alerte-ok { display: flex; gap: .5rem; align-items: center; } .fiche .alerte-ok .ok-long { display: none; } .fiche .alerte-ok .ok-court { display: inline; }
  .ingredients > .aide { font-size: .82rem; }
  .page.large > .page-tete > .aide { display: none; }
  .semaines { flex-wrap: wrap; }
  .semaines .btn.secondaire { background: var(--creme-fonce); }
  .plus-case { display: grid !important; }
  .case-actions { flex-direction: column; }
  .case-actions > :not(.plus-case) { display: none !important; }
  .case.ouverte .case-actions > :not(.plus-case) { display: grid !important; }
  .case.verrouillee .plus-case::after { content: ''; position: absolute; top: -2px; right: -2px; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
  .case .pourquoi { display: none !important; }
  .page > form.encadre .selecteur-saisie input { border-radius: 999px; background: var(--surface); border: 0; box-shadow: 0 0 0 1.5px var(--bord); }
  .page > form.encadre > .aide { margin: .4rem 0 .2rem; font-size: .82rem; }
  .page > form.encadre .actions { justify-content: space-between; }
  .page > form.encadre .actions .btn:not(.lien) { padding: .5rem 1rem; }
}
.membres-cartes { display: none; }
.retour-titre { display: none; }
.choix-ajout .fleche { margin-left: auto; color: var(--texte-doux); }
@media all {
  .retour-titre { display: inline-grid; margin-right: .7rem; vertical-align: middle; } .retour-titre .ic { transform: rotate(180deg); }
  .page-tete h1:has(.retour-titre) { font-size: 1.55rem; display: flex; align-items: center; }
  .choix-ajout a:first-child { box-shadow: 0 0 0 2px var(--accent); }
  .foyer-bandeau > p { display: none; }
  .foyer-bandeau h1 { margin-top: .6rem; }
  .membres-cartes { display: flex; gap: .75rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.9rem 1.2rem 0; padding-right: .9rem; }
  .membres-cartes::-webkit-scrollbar { display: none; }
  .membre-carte { flex: 0 0 9.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left; background: var(--creme-fonce); border: 0; border-radius: 24px; padding: 1rem; font: inherit; color: inherit; cursor: pointer; }
  .membre-carte span { width: 2.9rem; height: 2.9rem; border-radius: 16px; background: #16251b; color: #fff; display: grid; place-items: center; font: 800 1.15rem var(--police-titre); margin-bottom: .35rem; }
  .membre-carte:nth-child(3n+2) span { background: #7a5ad6; } .membre-carte:nth-child(3n) span { background: #2f8f4e; }
  .membre-carte b { font: 800 1.05rem var(--police-titre); } .membre-carte small { font-size: .75rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .membre-carte.inactif { opacity: .55; }
  #p-foyer, #p-foyer + .membres, #p-foyer + .membres + .btn { display: none; }
  .mosaique .carte-dessus .carte-meta { display: none; }
  .mosaique .carte-dessus h3 { font-size: .85rem; }
}
.pour-mob { display: none; }
@media all {
  .ingredients .portions h2 { display: none; }
  .pour-mob { display: inline; font-size: 1rem; }
  .ingredients .stepper .pp-mot { display: none; }
  .ingredients .stepper > span { min-width: 1.6rem; text-align: center; }
  .liste-ingredients label { align-items: baseline; }
  .liste-ingredients input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 1.15rem; height: 1.15rem; border: 2px solid #d7cfc3; border-radius: 50%; flex: none; position: relative; top: .15rem; }
  .liste-ingredients input[type=checkbox]:checked { background: var(--vert); border-color: var(--vert); }
  .qte-ing { display: inline-block; min-width: 4.6rem; font-weight: 800; color: var(--accent); }
  .liste-ingredients .dispo { font-size: .75rem; }
  .semaines .sem-actuelle { background: var(--encre) !important; color: #fff !important; }
  .carte-dessus .carte-meta > span[title^="Estimation"], .carte-dessus .carte-meta > .kcal { display: none; }
  .coeur-carte { width: 2rem !important; height: 2rem !important; top: .6rem !important; right: .6rem !important; background: rgb(255 255 255 / 92%) !important; color: var(--encre) !important; }
  .coeur-carte.on { color: var(--accent) !important; }
  .coeur-carte .ic { width: .95rem !important; height: .95rem !important; }
  .barre-recherche select { max-width: 6.8rem; font-size: .74rem; }
  .barre-recherche input { padding-right: 7.6rem; }
}
.frigo-etat { color: var(--vert); font-weight: 700; }
@media (max-width: 600px) {
  .accueil .carrousel .banniere em { max-width: calc(100% - 4.8rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .accueil .carrousel-points { right: 1.3rem; bottom: 4.35rem; gap: .35rem; }
  .accueil .carrousel-points button { width: .5rem; height: .5rem; }
  .accueil .carrousel-points button.on { width: 1.35rem; }
}
@media all {
  .liste-ingredients input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .liste-ingredients label { cursor: pointer; gap: 0; }
  .liste-ingredients input:checked + span, .liste-ingredients input:checked + span .qte-ing { text-decoration: line-through; color: var(--texte-doux); }
}
.rayon input[type=checkbox] { flex: 0 0 1.4rem !important; width: 1.4rem !important; height: 1.4rem !important; min-width: 1.4rem; box-sizing: border-box; padding: 0; border-radius: 50% !important; border: 2px solid #d7cfc3; background: var(--surface); }
.rayon input[type=checkbox]:checked { background: var(--vert-doux) !important; border-color: var(--vert) !important; }
.rayon input[type=checkbox]:checked::after { width: .32rem; height: .6rem; border-color: var(--vert); border-width: 0 2.2px 2.2px 0; transform: translateY(-1px) rotate(45deg); }
.rayon li.coche .article, .rayon li.coche .qte { color: #b3aca2; }
.choix-ajout a > .ic.fleche { box-sizing: border-box; width: 1.1rem; height: 1.1rem; padding: 0; background: none; color: var(--texte-doux); margin-left: auto; flex: none; }
.retour-titre { color: var(--encre) !important; }
@media all {
  .choix-ajout a:first-child { box-shadow: var(--ombre); }
  .choix-ajout a.choisi { box-shadow: 0 0 0 2px var(--accent); }
  .ajout > form.encadre { display: none; background: none; box-shadow: none; padding: 0; margin: 0; }
  .ajout[data-mode="photo"] > #photo, .ajout[data-mode="lien"] > #lien, .ajout[data-mode="texte"] > #texte { display: flex; }
  .ajout > form > h2, .ajout #photo > .aide { display: none; }
  .ajout .photos-choisies { display: contents; }
  .ajout #photo { flex-direction: row; flex-wrap: wrap; gap: .7rem; }
  .ajout #photo .photos-choisies figure, .ajout #photo .photos-choisies img { width: 5.4rem; height: 6.6rem; border-radius: 14px; object-fit: cover; }
  .ajout #photo .photos-choisies figcaption { display: none; }
  .ajout .photo-boutons { display: contents; }
  .ajout .photo-boutons label.btn { width: 5.4rem; height: 6.6rem; padding: 0; border-radius: 14px; border: 2px dashed #d7cfc3; background: none; flex-direction: column; gap: .3rem; font-size: .68rem; color: var(--texte-doux); white-space: normal; text-align: center; line-height: 1.1; }
  .ajout .photo-boutons label.btn .ic { width: 1.4rem; height: 1.4rem; }
  .ajout #photo .actions { flex-basis: 100%; margin-top: .4rem; }
  .ajout #photo .actions .btn, .ajout #lien .btn, .ajout #texte .actions .btn { width: 100%; padding: .9rem; font-size: 1rem; }
  .ajout #photo .alerte { flex-basis: 100%; }
  .ajout #lien .ligne { flex-direction: column; align-items: stretch; }
}
@media all {
  .ep-tete { background: none !important; color: var(--encre) !important; padding: 0; margin-bottom: .9rem; overflow: visible; }
  .ep-tete::after, .ep-retour { display: none !important; }
  .ep-tete h1 { color: var(--encre) !important; font-size: 2rem; letter-spacing: -.035em; }
  .ep-sous { font-size: .85rem; color: var(--texte-doux); opacity: 1; margin-top: .5rem; }
  .ep-personnes { margin: .6rem 0 0; }
  .ep-personnes a { background: var(--surface) !important; color: var(--encre) !important; padding: .45rem 1rem; box-shadow: 0 0 0 1.5px var(--bord); }
  .ep-personnes a.actif { background: var(--encre) !important; color: #fff !important; box-shadow: none; }
  .ep-personnes .avatar { display: none; }
  .ep-onglets { position: static; background: var(--creme-fonce) !important; }
  .ep-onglets a { flex-direction: row !important; font-size: .85rem !important; }
  .ep-onglets a .ic { display: none; }
  .ep-onglets a.actif { box-shadow: 0 2px 8px rgb(22 37 27 / 10%); }
  .ep-jour { grid-template-columns: 1fr; justify-items: center; background: none; box-shadow: none !important; padding: 0; }
  .ep-anneau { width: 11rem; }
  .ep-anneau .fond { stroke: var(--creme-fonce); }
  .ep-anneau .part { stroke: var(--accent) !important; }
  .ep-macros { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .ep-barre { display: flex; flex-direction: column; gap: .25rem; background: var(--surface); border-radius: 16px; padding: .65rem; box-shadow: var(--ombre); font-size: .78rem; }
  .ep-barre span { color: var(--texte-doux); font-weight: 700; }
  .ep-barre small { order: 1; color: var(--texte); font: 800 .85rem var(--police-titre); }
  .ep-barre i { order: 2; height: .35rem; }
  .ep-barre:nth-child(1) i { background: linear-gradient(90deg, #2f8f4e var(--p), var(--creme-fonce) var(--p)); }
  .ep-barre:nth-child(2) i { background: linear-gradient(90deg, #ffb000 var(--p), var(--creme-fonce) var(--p)); }
  .ep-barre:nth-child(3) i { background: linear-gradient(90deg, #ff5a36 var(--p), var(--creme-fonce) var(--p)); }
}
.suite-court { display: none; }
@media (max-width: 600px) {
  .accueil .carrousel .banniere em { max-width: none; }
  .accueil .carrousel .suite-long { display: none; } .accueil .carrousel .suite-court { display: inline; }
  .accueil .carrousel-points { right: 1.3rem; }
}
form[data-submit="enregistrer-frigo"] .selecteur { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-start; }
form[data-submit="enregistrer-frigo"] .selecteur-puces { display: contents; }
form[data-submit="enregistrer-frigo"] .selecteur-saisie { flex: 0 0 auto; }
form[data-submit="enregistrer-frigo"] .selecteur-saisie input { width: 7.2rem; border-radius: 999px !important; background: var(--encre) !important; color: #fff; border: 0 !important; box-shadow: none !important; padding: .55rem 1rem; font-weight: 800; font-size: 1rem; transition: width .2s; }
form[data-submit="enregistrer-frigo"] .selecteur-saisie input::placeholder { color: #fff; opacity: 1; }
form[data-submit="enregistrer-frigo"] .selecteur-saisie:focus-within { flex: 1 1 100%; }
form[data-submit="enregistrer-frigo"] .selecteur-saisie input:focus { width: 100%; background: var(--surface) !important; color: var(--texte); box-shadow: 0 0 0 2px var(--accent) !important; }
form[data-submit="enregistrer-frigo"] .selecteur-saisie input:focus::placeholder { color: var(--texte-doux); }
form[data-submit="enregistrer-frigo"] .puce-retirable { padding: .45rem .5rem .45rem .9rem; }
.plus-web { margin: 1rem 0 0; text-align: center; }

.titre-court { display: none; }
@media all {
  .accueil .hero-ia .btn { background: none !important; color: var(--accent) !important; box-shadow: none !important; }
  .ep-explique, .ep-reste { display: none !important; }
  .ep-titre-repas { font-size: 1.35rem; margin: 1.4rem 0 .6rem; }
  .ep-moment { color: var(--accent); text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: .68rem; }
  .titre-long { display: none; }
  .titre-court { display: inline; }
}

@media all {
  .accueil .carrousel-piste { border-radius: 0 !important; }
  .accueil .carrousel .banniere { height: min(60vh, 28.5rem) !important; }
}

@media all {
  .case-actions { flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end; max-width: 9rem; }
  .case-actions > [data-action="verrou-case"], .case-actions > [data-action="retirer-case"] { display: grid !important; }
  .case-actions > [data-action="verrou-case"] { order: 1; } .case-actions > [data-action="retirer-case"] { order: 2; } .case-actions > .plus-case { order: 3; }
  .case-actions > [data-action="hasard-case"], .case-actions > [data-action="changer-case"] { order: 4; }
  .case.verrouillee [data-action="verrou-case"] { background: var(--accent) !important; color: #fff; }
  .case.verrouillee .plus-case::after { display: none; }
}

@media all {
  .case .img-vide.case-img { background: #16251b; color: rgb(255 255 255 / 25%); }
}

@media all {
  .page-tete .actions.a-plier > a[href="#/menus/nouveau"] { order: 1 !important; }
  .page-tete .actions.a-plier > [data-action="recevoir"] { order: 2 !important; }
}

@media all {
  .recherche > .envies-rapides { padding-top: 2px; padding-bottom: 4px; margin-bottom: .5rem !important; }
  .recherche .filtres { margin-top: .5rem; }
}
.envies-rapides { padding: 3px 3px 5px 1px; }
.envies-rapides a { border: 1.5px solid var(--bord); box-shadow: none !important; }
.envies-rapides a.on { border-color: var(--encre); }
@media all {
  .envies-rapides { -webkit-mask-image: linear-gradient(to right, #000 78%, transparent); mask-image: linear-gradient(to right, #000 78%, transparent); padding-right: 2.5rem !important; }
  .envies-rapides a { padding: .42rem .8rem; font-size: .85rem; }
}

@media all {
  .grille .carte .carte-img, .grille .carte:nth-child(n) .carte-img { aspect-ratio: 170 / 220 !important; }
}
.carte { position: relative; }
.carte-ig { position: absolute; top: .55rem; left: .55rem; z-index: 2; margin: 0; pointer-events: none; }
.carte-ig .ig { display: inline-flex; align-items: center; gap: .3rem; background: rgb(255 255 255 / 94%); border-radius: 999px; padding: .22rem .6rem; font-size: .72rem; font-weight: 800; box-shadow: 0 2px 8px rgb(0 0 0 / 15%); }
.carte-ig .ig i { width: .55rem; height: .55rem; border-radius: 50%; }
.carte-ig .ig-faible { color: #2f7d47; } .carte-ig .ig-faible i { background: #3f9a5a; }
.carte-ig .ig-moyen { color: #9a6a05; } .carte-ig .ig-moyen i { background: #d9a21a; }
.carte-ig .ig-fort { color: #b8321f; } .carte-ig .ig-fort i { background: #d6452f; }
.carte-ig .ig-c { display: none; }
@media all {
  .carte-ig .ig-l { display: none; } .carte-ig .ig-c { display: inline; }
}
.ajout > form { scroll-margin-top: 1rem; }

.assistant .page-tete .aide { display: none; }
.assistant .page-tete { margin-bottom: .6rem; }
.fil-chat { gap: .7rem; }
.bulle { font-size: 1rem; line-height: 1.5; }
.bulle.ia { width: auto; max-width: 88%; background: var(--surface); border-radius: 22px; border-top-left-radius: 22px; border-bottom-left-radius: 6px; box-shadow: 0 2px 10px rgb(22 37 27 / 6%) !important; padding: .85rem 1.1rem; }
.bulle.moi { border-radius: 22px; border-bottom-right-radius: 6px; padding: .85rem 1.1rem; max-width: 82%; }
.bulle.ia .texte-ia strong { font-weight: 800; }
.reco-lignes { display: flex; flex-direction: column; gap: .55rem; }
.reco { display: flex; align-items: center; gap: .7rem; background: var(--surface); border-radius: 20px; padding: .5rem .6rem .5rem .5rem; box-shadow: 0 2px 10px rgb(22 37 27 / 6%); }
.reco > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.reco .reco-img { width: 4rem; height: 4rem; flex: none; border-radius: 14px; object-fit: cover; font-size: 1.4rem; }
.reco span { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.reco b { font: 800 1rem/1.2 var(--police-titre); }
.reco small { color: var(--texte-doux); font-size: .85rem; }
.reco-plus { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--encre); display: grid; place-items: center; cursor: pointer; }
.reco-plus .ic { width: 1.2rem; height: 1.2rem; }
.bas-chat { position: sticky; bottom: 0; z-index: 20; background: var(--fond); padding: .5rem 0 .7rem; display: flex; flex-direction: column; gap: .55rem; }
@media all { .bas-chat { bottom: 4.3rem; } }
.suggestions-chat { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: 2px 2.5rem 2px 1px; -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.suggestions-chat::-webkit-scrollbar { display: none; }
.suggestions-chat .puce { flex: none; white-space: nowrap; background: var(--surface); border: 1.5px solid var(--bord); border-radius: 999px; padding: .5rem .95rem; font-weight: 700; font-size: .88rem; color: var(--texte); box-shadow: none; }
.bas-chat .saisie-chat { position: static; padding: .3rem .3rem .3rem 1.1rem; background: var(--surface); border-radius: 999px; box-shadow: 0 4px 18px rgb(22 37 27 / 9%); align-items: flex-end; gap: .4rem; }
.bas-chat .saisie-chat textarea { flex: 1; border: 0 !important; box-shadow: none !important; background: none; resize: none; padding: .7rem 0; font-size: 1rem; line-height: 1.4; min-height: 0; outline: none; }
.chat-micro, .chat-envoi { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.chat-micro .ic, .chat-envoi .ic { width: 1.25rem; height: 1.25rem; }
.saisie-chat.vide .chat-micro:not([hidden]) + .chat-envoi { display: none; }
.saisie-chat:not(.vide) .chat-micro { display: none; }
.chat-micro.ecoute { animation: ecoute 1s ease-in-out infinite; }
@keyframes ecoute { 50% { box-shadow: 0 0 0 8px rgb(255 90 54 / 25%); } }
@media all { .assistant .page-tete .actions .btn { width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; font-size: 0; justify-content: center; } .assistant .page-tete .actions .btn .ic { font-size: 1rem; width: 1.15rem; height: 1.15rem; } }
.bas-chat .saisie-chat textarea { min-height: 0 !important; height: 2.8rem; max-height: 140px; }
.assistant { min-height: calc(100vh - 6rem); }
.bas-chat { margin-top: auto; }
@media all { .assistant { min-height: calc(100dvh - 7.5rem); } }

@media all {
  .fiche-actions { background: var(--fond) !important; box-shadow: 0 -6px 18px rgb(22 37 27 / 7%); padding-top: .7rem !important; }
  .fiche-actions > button.btn:not([data-action="mode-cuisine"]), .fiche-actions .plus > summary { display: flex !important; align-items: center; justify-content: center; }
  .fiche-actions > button.btn:not([data-action="mode-cuisine"]) .lib-long, .fiche-actions > button.btn:not([data-action="mode-cuisine"]) .lib-court, .fiche-actions .plus > summary .lib-long { display: none !important; }
  .fiche-actions .plus > summary .lib-court { display: contents; font-size: 0; }
  body[data-page="recette"] .page, body[data-page="recette"] .fiche { padding-bottom: 6.5rem; }
}
@media all {
  .fiche-actions > button.btn[data-action="ajouter-livre"], .fiche-actions > button.btn[data-action="voir-video"] { display: none !important; }
}
.bas-chat .saisie-chat { flex-wrap: nowrap !important; align-items: center; }
.bas-chat .saisie-chat textarea { width: auto; min-width: 0; flex: 1 1 0; }

.code-manuel > summary { cursor: pointer; text-align: center; color: var(--texte-doux); text-decoration: underline; font-size: .9rem; list-style: none; padding: .3rem 0; }
.code-manuel > summary::-webkit-details-marker { display: none; }
.code-manuel[open] > summary { display: none; }
.scanner-produit { position: relative; background: none; padding: 0; gap: .9rem; }
.scanner-produit img, .scanner-produit .sp-ic { width: 3.6rem; height: 3.6rem; flex: none; border-radius: 16px; background: var(--surface); box-shadow: 0 2px 10px rgb(22 37 27 / 7%); display: grid; place-items: center; object-fit: contain; color: #8a5a2b; }
.scanner-produit .sp-ic .ic { width: 1.6rem; height: 1.6rem; }
.scanner-produit strong { font: 800 1.15rem/1.15 var(--police-titre); }
.scanner-produit > div { flex: 1; min-width: 0; }
.sp-note { flex: none; margin-left: auto; color: #fff; border-radius: 14px; padding: .35rem .6rem; font: 800 1.35rem/1 var(--police-titre); }
.sp-note small { font-size: .75rem; opacity: .9; }
.scanner-choix { gap: .5rem; margin-top: .9rem; }
.scanner-choix .btn { background: var(--surface) !important; color: var(--encre) !important; border: 0 !important; box-shadow: 0 2px 10px rgb(22 37 27 / 6%) !important; border-radius: 16px; padding: .8rem .3rem; gap: .35rem; font-weight: 800; }
.scanner-choix .btn .ic { color: var(--accent); width: 1.4rem; height: 1.4rem; }
.scanner-bas { flex-direction: column; align-items: stretch; margin-top: .9rem; }
.scanner-bas [data-action="scan-infos"] { background: var(--encre); color: #fff; border: 0; justify-content: center; padding: .85rem; border-radius: 999px; font-weight: 800; }
.scanner-bas [data-action="scan-encore"] { align-self: center; }
@keyframes ligne-scan { 0%, 100% { top: 18%; } 50% { top: 78%; } }
@media all {
  dialog.modale.modale-scan { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border-radius: 0; background: #0d140f; overflow: hidden; }
  .modale-scan .modale-tete { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem; background: none; border: 0; }
  .modale-scan .modale-tete h2 { color: #fff; font-size: 1.1rem; margin: 0; }
  .modale-scan .modale-tete [data-fermer] { position: absolute; left: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / 88%); color: transparent; font-size: 0; }
  .modale-scan .modale-tete [data-fermer]::before { content: '←'; color: var(--encre); font-size: 1.3rem; font-weight: 700; }
  .modale-scan .modale-corps { padding: 0; height: 100%; max-height: none; overflow: hidden; }
  .modale-scan .scanner { position: relative; height: 100%; gap: 0; }
  .modale-scan .scanner-video { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
  .modale-scan .scanner-cadre { left: 13%; right: 13%; top: 22%; bottom: auto; height: 17%; border-width: 3px; border-radius: 20px; box-shadow: 0 0 0 999px rgb(0 0 0 / 30%); }
  .modale-scan .scanner-cadre::after { content: ''; position: absolute; left: 4%; right: 4%; height: 3px; border-radius: 3px; background: var(--accent); animation: ligne-scan 2.2s ease-in-out infinite; }
  .modale-scan [data-scanner-etat] { position: absolute; top: 43%; left: 0; right: 0; z-index: 2; text-align: center; color: #fff; font-weight: 700; margin: 0; text-shadow: 0 1px 6px rgb(0 0 0 / 50%); }
  .modale-scan .scanner-feuille { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--fond); border-radius: 26px 26px 0 0; padding: 1.4rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); max-height: 62dvh; overflow-y: auto; }
  .modale-scan .scanner-feuille::before { content: ''; display: block; width: 2.6rem; height: 4px; border-radius: 4px; background: var(--bord); margin: -.6rem auto .9rem; }
  .modale-scan:not(.a-produit) .scanner-feuille::before { display: none; }
  .modale-scan:not(.a-produit) .scanner-feuille { padding-top: 1rem; }
  .modale-scan .scanner.sans-camera { padding-top: 5rem; }
  .modale-scan .scanner.sans-camera [data-scanner-etat] { position: static; padding: 0 1.2rem 1rem; }
  .modale-scan .scanner.sans-camera .scanner-feuille { top: 9rem; max-height: none; }
}
.bas-chat .saisie-chat { flex-direction: row !important; }
.sp-note small { color: #fff !important; opacity: .85; }

.foyer-bandeau { background: var(--accent) !important; }
.foyer-titre { font-size: 1.15rem; margin: .4rem 0 .6rem; display: flex; align-items: baseline; gap: .5rem; }
.foyer-titre small { font: 600 .8rem var(--police); color: var(--texte-doux); }
.membre-carte.ajout { background: none; border: 2px dashed var(--bord); box-shadow: none; }
.membre-carte.ajout span { background: var(--surface-2) !important; color: var(--accent); }
.raccourcis a { border: 0; box-shadow: 0 2px 10px rgb(22 37 27 / 6%); gap: .25rem; }
.raccourcis a small { color: var(--texte-doux); font-size: .78rem; }
.reglages-liste { display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; box-shadow: 0 2px 10px rgb(22 37 27 / 6%); overflow: hidden; margin-bottom: 1.5rem; }
.reglage-ligne { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; color: var(--texte); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--bord); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.reglage-ligne:last-child { border-bottom: 0; }
.reglage-ligne .rl-ic { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 12px; background: var(--accent-doux); color: var(--accent); display: grid; place-items: center; }
.reglage-ligne .rl-ic .ic { width: 1.2rem; height: 1.2rem; }
.reglage-ligne .rl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reglage-ligne b { font: 700 1rem var(--police-titre); }
.reglage-ligne small { color: var(--texte-doux); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reglage-ligne .rl-fleche { width: 1.1rem; height: 1.1rem; color: var(--texte-doux); flex: none; }
.sous-foyer .retour-titre { display: inline-grid !important; place-items: center; margin-right: .7rem; vertical-align: middle; text-decoration: none; color: var(--accent); }
.sous-foyer .retour-titre .ic { transform: rotate(180deg); }
.sous-foyer .page-tete h1 { display: flex; align-items: center; font-size: 1.6rem; }
@media all {
  .sous-foyer .ligne { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .sous-foyer .ligne .champ span { font-size: .78rem; line-height: 1.2; min-height: 2.2em; display: block; }
  .sous-foyer .actions { position: sticky; bottom: 5rem; justify-content: stretch; }
  .sous-foyer .actions .btn { flex: 1; justify-content: center; box-shadow: 0 6px 18px rgb(255 90 54 / 30%); }
}

.livre-couv { position: relative; margin: -1.5rem -1rem 1rem; min-height: 15rem; background: var(--c, var(--accent)); color: #fff; display: flex; align-items: flex-end; overflow: hidden; border-radius: 0 0 28px 28px; }
.livre-couv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.livre-couv.avec-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgb(0 0 0 / 65%), rgb(0 0 0 / 5%) 70%), color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); }
.livre-embleme { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-60%); opacity: .25; }
.livre-embleme .ic { width: 7rem; height: 7rem; }
.livre-couv-txt { position: relative; z-index: 2; padding: 4rem 1.3rem 1.3rem; }
.livre-couv-txt small { text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: .75rem; opacity: .9; }
.livre-couv-txt h1 { color: #fff; margin: .2rem 0; font-size: 2.1rem; line-height: 1.05; }
.livre-couv-txt p { margin: .2rem 0 0; font-weight: 700; opacity: .92; }
.livre-retour, .livre-plus { position: absolute !important; top: calc(1rem + env(safe-area-inset-top)); z-index: 3; }
.livre-retour { left: 1rem; } .livre-retour .ic { transform: rotate(180deg); }
.livre-plus { right: 1rem; } .livre-plus > summary { list-style: none; cursor: pointer; } .livre-plus > summary::-webkit-details-marker { display: none; }
.livre-plus .menu-plus { right: 0; left: auto; top: 115%; }
.livre-page .rond-photo { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgb(255 255 255 / 90%); color: var(--encre); display: grid; place-items: center; border: 0; }
.livre-actions { display: flex; gap: .6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.livre-actions .btn { border-radius: 999px; padding: .75rem 1.2rem; }
.livre-chapitre h2 { font-size: 1.4rem; margin: 1.2rem 0 .7rem; }
.reco-menu { position: relative; flex: none; } .reco-menu > summary { list-style: none; } .reco-menu > summary::-webkit-details-marker { display: none; }
.reco-menu .menu-plus { right: 0; left: auto; top: 110%; z-index: 30; min-width: 14rem; }
.livre-vide { display: flex; gap: 1rem; align-items: center; background: var(--surface); border-radius: 20px; padding: 1.2rem; box-shadow: 0 2px 10px rgb(22 37 27 / 6%); }
.livre-vide > span { width: 3.2rem; height: 3.2rem; flex: none; border-radius: 16px; background: var(--accent-doux); color: var(--accent); display: grid; place-items: center; }
.livre-vide p { margin: 0; color: var(--texte-doux); } .livre-vide b { color: var(--texte); }
@media (min-width: 901px) { .livre-couv { margin: 0 0 1.2rem; border-radius: 28px; min-height: 17rem; } }
@media all { .livre-couv { margin-top: calc(-1.1rem - env(safe-area-inset-top)); } }
.choix-source { display: flex; flex-direction: column; gap: .55rem; }
.choix-source > * { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 18px; background: var(--fond); border: 1.5px solid var(--bord); color: var(--texte); text-decoration: none; font: inherit; text-align: left; cursor: pointer; }
.choix-source > * > .ic:first-child { width: 2.6rem; height: 2.6rem; padding: .65rem; box-sizing: border-box; flex: none; border-radius: 12px; background: var(--accent-doux); color: var(--accent); }
.choix-source span { flex: 1; display: flex; flex-direction: column; } .choix-source b { font: 700 1rem var(--police-titre); } .choix-source small { color: var(--texte-doux); font-size: .82rem; }
.choix-source .fleche { width: 1.1rem; height: 1.1rem; color: var(--texte-doux); }


.mode-cuisine { background: #16251b; color: #fff; }
.mode-cuisine header { border: 0; padding: calc(1rem + env(safe-area-inset-top)) 1.2rem .6rem; }
.mode-cuisine .mc-num { margin: 0; color: #ffb59c; font: 800 1.05rem var(--police-titre); }
.mc-rond { width: 2.8rem; height: 2.8rem; flex: none; border-radius: 50%; border: 0; background: rgb(255 255 255 / 88%); color: var(--encre); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mc-rond .ic { width: 1.25rem; height: 1.25rem; }
.mc-rond.actif { background: var(--accent); color: #fff; }
.mode-cuisine header .mc-rond:first-child .ic, .mc-prec .ic { transform: rotate(180deg); }
.mc-progres { height: 4px; margin: 0 1.2rem; border-radius: 4px; background: rgb(255 255 255 / 12%); overflow: hidden; }
.mc-progres i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.mode-cuisine .mc-corps aside { border-right-color: rgb(255 255 255 / 10%); color: rgb(255 255 255 / 85%); }
.mode-cuisine .mc-corps aside h3 { color: #fff; font-size: 1.2rem; margin-top: 0; }
.mode-cuisine .mc-corps aside h4 { color: #ffb59c; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.mode-cuisine .mc-corps main { padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 1.2rem; }
.mode-cuisine .mc-ingredients { order: -1; margin: 0; background: rgb(255 255 255 / 9%); border-radius: 18px; padding: .8rem 1rem; }
.mode-cuisine .mc-ingredients small { color: rgb(255 255 255 / 60%); margin-bottom: .25rem; }
.mode-cuisine .mc-ingredients p { margin: 0; font-weight: 800; font-size: 1.02rem; line-height: 1.4; }
.mode-cuisine .mc-texte { margin: 0; color: #fff; font: 800 clamp(1.55rem, 4.6vw, 2.3rem)/1.25 var(--police-titre); }
.mc-minuteurs { display: flex; flex-wrap: wrap; gap: .5rem; }
.mc-lancer { display: inline-flex; align-items: center; gap: .5rem; background: rgb(255 90 54 / 18%); color: #ffb59c; border: 1.5px solid rgb(255 90 54 / 45%); border-radius: 999px; padding: .6rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.mc-lancer b { color: #fff; font-family: var(--police-titre); }
.mode-cuisine footer { border: 0; flex-direction: column; align-items: stretch; gap: .7rem; padding: .6rem 1.2rem calc(1rem + env(safe-area-inset-bottom)); }
.mc-boutons { display: flex; gap: .8rem; align-items: center; }
.mc-prec { width: 3.6rem; height: 3.6rem; background: rgb(255 255 255 / 12%); color: #fff; }
.mc-prec:disabled { opacity: .35; cursor: default; }
.mc-suivante { flex: 1; height: 3.6rem; border-radius: 999px; border: 0; background: #fff; color: var(--encre); font: 800 1.1rem var(--police-titre); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; }
.mc-suivante .ic { width: 1.2rem; height: 1.2rem; }
.mode-cuisine .mc-voix { margin: 0; padding: 0; background: none !important; color: rgb(255 255 255 / 60%) !important; font-size: .85rem; font-weight: 700; justify-content: center; }
.mode-cuisine .mc-voix .ic { width: 1rem; height: 1rem; }
.mode-cuisine .mc-video { border-radius: 18px; }
.minuteur { gap: .7rem; padding: .7rem .8rem .7rem 1.2rem; background: var(--accent); color: #fff; border-radius: 22px; }
.minuteur b { font: 800 1.9rem/1 var(--police-titre); font-variant-numeric: tabular-nums; }
.minuteur small { flex: 1; font-weight: 700; font-size: .85rem; opacity: .9; }
.minuteur .m-pause { background: #fff; color: var(--accent); border-radius: 999px; padding: .5rem 1rem; font: 800 .9rem var(--police-titre); }
.minuteur .m-stop { color: #fff; font-size: 1rem; padding: .3rem; }
.minuteur.en-pause { background: #b5462d; }
.mode-cuisine .minuteur { left: 1.2rem; right: 1.2rem; bottom: calc(8.2rem + env(safe-area-inset-bottom)); }
.mode-cuisine .minuteur + .minuteur { bottom: calc(12.2rem + env(safe-area-inset-bottom)); }
.minuteur small { color: #fff !important; }
.mode-cuisine:has(.minuteur) .mc-corps main { padding-bottom: 6.5rem; }
@media all { .livre-couv { margin-left: -.9rem; margin-right: -.9rem; } }


@media all {
  .fiche[data-vue="recette"] .fiche-corps > :not(.ingredients):not(.etapes-recette) { display: none !important; }
  .fiche[data-vue="ingredients"] .fiche-corps > .etapes-recette { display: block !important; }
  .fiche[data-vue="recette"] .fiche-corps, .fiche[data-vue="ingredients"] .fiche-corps { display: flex; flex-direction: column; gap: 1.6rem; }
  .segment-fiche { position: sticky; top: calc(.5rem + env(safe-area-inset-top)); z-index: 15; box-shadow: 0 4px 14px rgb(22 37 27 / 8%); }
  .ingredients, .etapes-recette { scroll-margin-top: 4.5rem; }
}
details.glucides { display: block; padding: 0; }
details.glucides > summary { list-style: none; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; cursor: pointer; }
details.glucides > summary::-webkit-details-marker { display: none; }
details.glucides > summary > span { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
details.glucides > summary small { font-size: .82rem; opacity: .85; }
details.glucides .gl-fleche { width: 1rem; height: 1rem; transform: rotate(90deg); transition: transform .2s; flex: none; }
details.glucides[open] .gl-fleche { transform: rotate(-90deg); }
details.glucides > div { padding: 0 1rem .9rem 3.2rem; }
details.glucides > div p { margin: .3rem 0; }
.livre-couv-txt small { color: #fff !important; }
.livre-couv .livre-plus { left: auto !important; right: 1rem !important; width: 2.6rem; margin: 0 !important; }
.livre-couv .livre-plus > summary { margin: 0; }
.livre-couv .livre-plus { top: calc(1rem + env(safe-area-inset-top)) !important; line-height: 0; } .livre-couv .livre-plus > summary { display: grid; }

.suggestions-ia .puce, .puces-rapides .puce, .carnet .onglets a, .ep-personnes a, .assistant .puces .puce { box-shadow: none !important; border: 1.5px solid var(--bord) !important; }
.carnet .onglets a.actif, .carnet .onglets a[aria-current], .ep-personnes a.actif, .ep-personnes a[aria-current] { border-color: transparent !important; }
.ingredients .stepper { box-shadow: none !important; border: 1.5px solid var(--bord); }
.page > form.encadre .selecteur-saisie input { box-shadow: none !important; border: 1.5px solid var(--bord) !important; }
@media all {
  .carnet .onglets, .puces-rapides, .suggestions-ia, .page-tete .actions, .semaines, .ep-personnes { padding-top: 2px !important; padding-bottom: 4px !important; }
  .carnet .onglets { border-bottom: 0; padding-right: 2.5rem !important; -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
}


.biblio { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.biblio-livre, .biblio-nouveau { aspect-ratio: 3 / 4; border-radius: 6px 18px 18px 6px; overflow: hidden; text-decoration: none; }
.biblio-livre { position: relative; display: flex; flex-direction: column; background: var(--c, var(--accent)); color: #fff; box-shadow: 0 6px 18px rgb(22 37 27 / 14%); }
.biblio-livre::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8%; background: rgb(0 0 0 / 16%); z-index: 2; }
.bl-photo { flex: 0 0 54%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 70%, #fff); overflow: hidden; }
.bl-photo img { width: 100%; height: 100%; object-fit: cover; }
.bl-photo > .ic { width: 3rem; height: 3rem; color: #fff; opacity: .85; }
.bl-bas { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: .8rem .9rem .9rem 1.25rem; }
.bl-bas b { font: 800 1.05rem/1.15 var(--police-titre); overflow-wrap: anywhere; }
.bl-bas small { font-size: .82rem; font-weight: 700; opacity: .85; }
.biblio-nouveau { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; background: none; border: 2px dashed var(--bord); color: var(--texte-doux); font: inherit; cursor: pointer; padding: 1rem; text-align: center; border-radius: 18px; }
.biblio-nouveau .ic { width: 1.6rem; height: 1.6rem; }
.biblio-nouveau b { font: 800 .95rem var(--police-titre); }
.biblio-nouveau small { font-size: .78rem; }
.bl-bas small { color: #fff !important; }

@media all {
  .mosaique .carte-corps { padding: 0 !important; min-height: 0 !important; gap: 0 !important; }
  .mosaique .carte-corps > :not(.carte-ig) { display: none !important; }
  .mosaique .carte { margin-bottom: .7rem !important; border-radius: 22px; }
  .carnet .onglets a { background: var(--surface-2) !important; border: 0 !important; font-weight: 700; padding: .55rem 1rem; }
  .carnet .onglets a .ic { display: none; }
  .carnet .onglets a.actif { background: var(--accent) !important; color: #fff; }
  .carnet .page-tete .actions .btn:first-child { border-radius: 16px !important; }
}


.photo-titre { display: none; }
.etape-ingr { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 .2rem !important; }
.etape-ingr span { background: var(--surface); border: 1.5px solid var(--bord); border-radius: 999px; padding: .22rem .65rem; font-size: .85rem; font-weight: 700; }
.etape-ingr .qte-ing { color: var(--accent); margin-right: .2rem; }
.etape-video { position: relative; margin: .55rem 0 .2rem; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; max-width: 520px; }
.etape-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.etape-video button { position: absolute; inset: 0; border: 0; background: rgb(0 0 0 / 22%); color: #fff; display: grid; place-items: center; cursor: pointer; }
.etape-video button .ic { width: 2.6rem; height: 2.6rem; padding: .7rem; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--encre); box-sizing: content-box; }
.etape-video.lecture button { display: none; }
.etape-minuteurs { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 0 !important; }
.etape-minuteurs .puce { border: 1.5px solid var(--accent) !important; color: var(--accent) !important; background: none !important; font-weight: 800; }
@media all {
  body[data-page="recette"] .fiche-img { height: 58vh !important; max-height: 30rem; position: relative; }
  body[data-page="recette"] .fiche-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 62%), transparent 55%); pointer-events: none; }
  .photo-titre { display: flex; flex-direction: column; gap: .25rem; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 2.6rem; z-index: 2; color: #fff; }
  .photo-type { align-self: flex-start; background: var(--accent); border-radius: 999px; padding: .2rem .7rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
  .photo-titre b { font: 800 1.85rem/1.05 var(--police-titre); text-shadow: 0 2px 14px rgb(0 0 0 / 35%); }
  .photo-titre small { font-weight: 700; font-size: .9rem; }
  .fiche-intro > .fil, .fiche-intro > h1 { display: none !important; }
  .fiche-intro .chiffres > span[title*="ote"] { display: none; }
  .etapes-recette ol > li { padding-bottom: 1.1rem; }
}
.photo-titre small { color: #fff !important; }
.etape-ingr .qte-ing { all: unset; color: var(--accent); font-weight: 800; margin-right: .25rem; }
.etape-video { aspect-ratio: 16 / 9; }
@media all { .etapes-recette:has(.etape-video) > .video-recette { display: none; } }
@media all { .etapes-recette > h2 { display: block !important; font-size: 1.4rem; margin: .4rem 0 .8rem; } }

.ingredients li label > span { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: .6rem; align-items: baseline; }
.ingredients li label > span .qte-ing { min-width: 0; }
.etape-ingr .nom-ing { display: inline; }


.lien-infos { display: none; }
@media all {
  .segment-fiche { display: none !important; }
  .lien-infos { display: flex; align-items: center; gap: .7rem; width: 100%; margin: .2rem 0 1.2rem; padding: .8rem 1rem; border: 0; border-radius: 16px; background: var(--surface); box-shadow: 0 2px 10px rgb(22 37 27 / 6%); font: 700 .95rem var(--police); color: var(--texte); cursor: pointer; text-align: left; }
  .lien-infos > span { flex: 1; }
  .lien-infos .ic { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; }
  .lien-infos .ic:last-child { transform: rotate(90deg); color: var(--texte-doux); }
  .fiche[data-vue="recette"] .fiche-corps > .infos-bas, .fiche[data-vue="recette"] .fiche-corps > .fiche-infos, .fiche[data-vue="recette"] .fiche-corps > .fiche-avis { display: flex !important; flex-direction: column; gap: 1rem; }
  .infos-bas { scroll-margin-top: 1rem; border-top: 1px solid var(--bord); padding-top: 1.4rem; gap: .8rem !important; }
  .infos-bas h2 { font-size: 1.4rem; margin: 0; }
  .infos-bas > p { margin: 0; }
}
.etape-ingr span span { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; font: inherit; }
.etape-ingr .nom-ing { color: var(--texte); }
@media all {
  .fiche[data-vue="recette"] .fiche-corps > .infos-bas:not(#x):not(#y), .fiche[data-vue="recette"] .fiche-corps > .fiche-infos:not(#x):not(#y), .fiche[data-vue="recette"] .fiche-corps > .fiche-avis:not(#x):not(#y) { display: flex !important; flex-direction: column; gap: 1rem; }
  .ingredients li label > span { grid-template-columns: 6.4rem minmax(0, 1fr); }
}
@media all { .fiche-infos > *, .fiche-avis > *, .infos-bas > * { width: 100%; box-sizing: border-box; } }

.tuto.faire { pointer-events: none; }
.tuto.faire .tuto-bulle { pointer-events: auto; }
.tuto.faire .tuto-trou { outline-color: var(--accent); animation: guide-pulse 1.4s ease-in-out infinite; }
@keyframes guide-pulse { 50% { outline-width: 6px; } }
.tuto-avous { background: var(--accent); color: #fff; border-radius: 999px; padding: .15rem .6rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tuto-points i.fait { background: var(--accent-doux); }
.tuto-attente { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-weight: 800; font-size: .88rem; }
.tuto-attente .ic { width: 1.1rem; height: 1.1rem; }
.tuto-actions .btn.lien { color: var(--texte-doux); }
.tuto.sommaire .tuto-bulle { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
.guide-chapitres { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-direction: column; gap: .45rem; }
.guide-chapitres button { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1.5px solid var(--bord); border-radius: 16px; background: var(--fond); color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.guide-chapitres button:disabled { opacity: .5; cursor: default; }
.guide-chapitres .gc-num { width: 2rem; height: 2rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-doux); color: var(--accent); font: 800 .95rem var(--police-titre); }
.guide-chapitres .vu .gc-num { background: #dff1e4; color: #25703f; }
.guide-chapitres .gc-num .ic { width: 1.1rem; height: 1.1rem; }
.guide-chapitres .gc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.guide-chapitres b { font: 700 .98rem var(--police-titre); }
.guide-chapitres small { color: var(--texte-doux); font-size: .8rem; line-height: 1.3; }
.guide-chapitres .gc-fleche { width: 1rem; height: 1rem; color: var(--texte-doux); flex: none; }
.guide-pastille { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(6.2rem + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: .3rem; background: var(--encre); color: #fff; border-radius: 999px; padding: .35rem .4rem .35rem .5rem; box-shadow: 0 10px 28px rgb(0 0 0 / 25%); animation: tuto-entree .3s ease; max-width: calc(100vw - 24px); }
.guide-pastille button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.guide-pastille .gp-lancer { display: flex; align-items: center; gap: .55rem; text-align: left; padding: .2rem .3rem; }
.guide-pastille .gp-lancer .ic { width: 1.8rem; height: 1.8rem; padding: .35rem; border-radius: 50%; background: var(--accent); box-sizing: border-box; flex: none; }
.guide-pastille b { display: block; font-size: .9rem; } .guide-pastille small { display: block; font-size: .74rem; opacity: .75; }
.guide-pastille .gp-fermer { width: 2rem; height: 2rem; border-radius: 50%; opacity: .7; }
@media (min-width: 901px) { .guide-pastille { bottom: 1.5rem; } }

.guide-chapitres .prochain { border-color: var(--accent); background: var(--surface); box-shadow: 0 4px 14px rgb(255 90 54 / 15%); }
.guide-chapitres .prochain .gc-num { background: var(--accent); color: #fff; }

.tuto.attente .tuto-bulle { visibility: hidden; }
.tuto-tete .tuto-icone, .tuto-tete .tuto-avous { flex: none; white-space: nowrap; }
.tuto-tete small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-pastille { left: 1rem; right: 1rem; transform: none; max-width: 30rem; margin: 0 auto; border-radius: 20px; padding: .5rem .5rem .5rem .6rem; }
.guide-pastille .gp-lancer { flex: 1; min-width: 0; }
.guide-pastille .gp-lancer > span { flex: 1; min-width: 0; }
.guide-pastille b, .guide-pastille small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-pastille small { opacity: .7; }
.guide-pastille .gp-fleche { width: 1.1rem !important; height: 1.1rem !important; padding: 0 !important; background: none !important; flex: none; }
.guide-pastille small { color: rgb(255 255 255 / 72%) !important; opacity: 1; }

.notifs-titre { font-size: 1.1rem; margin: 1.3rem 0 .55rem; }
.notifs-liste { display: flex; flex-direction: column; padding: .3rem 1rem; }
.notif-type { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--bord); }
.notif-type:last-child { border-bottom: 0; }
.notif-type .nt-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.notif-type b { font: 700 .98rem var(--police-titre); }
.notif-type small { color: var(--texte-doux); font-size: .82rem; line-height: 1.35; }

body[data-page="decouvrir"] .nav, body[data-page="connexion"] .nav, body[data-page="inscription"] .nav, body[data-page="bienvenue"] .nav, body[data-page="mot-de-passe-oublie"] .nav, body[data-page="reinitialiser"] .nav,
body[data-page="decouvrir"] .entete, body[data-page="connexion"] .entete, body[data-page="inscription"] .entete, body[data-page="bienvenue"] .entete, body[data-page="mot-de-passe-oublie"] .entete, body[data-page="reinitialiser"] .entete { display: none !important; }
body[data-page="decouvrir"] #vue, body[data-page="connexion"] #vue, body[data-page="inscription"] #vue, body[data-page="bienvenue"] #vue, body[data-page="mot-de-passe-oublie"] #vue, body[data-page="reinitialiser"] #vue { padding-bottom: 0 !important; }
.arrivee-accueil { position: relative; min-height: 100dvh; margin: -1rem -.9rem 0; background: #0b130e; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.aa-photo { position: absolute; inset: 0; background: #2a1d14 center/cover; }
.aa-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 18 13 / 94%) 40%, rgb(10 18 13 / 10%) 78%); }
.aa-texte { position: relative; z-index: 1; padding: 1.5rem 1.5rem calc(1.8rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .6rem; max-width: 30rem; margin: 0 auto; width: 100%; }
.aa-texte .auth-marque { font: 800 2.8rem var(--police-titre); color: #fff; }
.aa-texte .auth-marque em { color: var(--accent); font-style: normal; }
.aa-texte h1 { color: #fff; font-size: 1.75rem; line-height: 1.12; margin: 0; }
.aa-texte > p { margin: 0 0 .8rem; opacity: .85; line-height: 1.45; }
.aa-texte .btn.large { width: 100%; justify-content: center; }
.btn.blanc { background: #fff !important; color: var(--encre) !important; border: 0 !important; }
.aa-mention { text-align: center; font-size: .82rem; opacity: .7 !important; margin: .4rem 0 0 !important; }
.aa-texte .encart-appli { margin-top: .6rem; background: rgb(255 255 255 / 10%); color: #fff; border: 0; }
.arrivee-auth { max-width: 30rem; margin: -1rem auto 0; min-height: 100dvh; display: flex; flex-direction: column; }
.aa-bandeau { height: 34dvh; min-height: 13rem; margin: 0 -.9rem; background: #e9e1d6 center/cover; position: relative; }
.aa-bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--fond), transparent 50%); }
.aa-bandeau .aa-retour { position: absolute; top: calc(1rem + env(safe-area-inset-top)); left: 1rem; z-index: 1; }
.aa-haut { padding: calc(1rem + env(safe-area-inset-top)) 0 .6rem; }
.aa-retour { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--encre); box-shadow: 0 0 0 1.5px var(--bord); }
.aa-retour .ic { transform: rotate(180deg); width: 1.2rem; height: 1.2rem; }
.arrivee-auth .auth-form { display: flex; flex-direction: column; gap: .9rem; padding: .4rem 0 calc(1.5rem + env(safe-area-inset-bottom)); flex: 1; max-width: none; }
.arrivee-auth .auth-form h1 { font-size: 2rem; margin: 0; }
.arrivee-auth:not(.sans-photo) .auth-form h1 { margin-top: -1.2rem; position: relative; }
.arrivee-auth .auth-form .aide { margin: -.4rem 0 .4rem; }
.arrivee-auth .auth-form input { height: 3.3rem; border-radius: 16px; font-size: 1rem; }
.arrivee-auth .btn.large { width: 100%; justify-content: center; margin-top: .3rem; }
.arrivee-auth .bascule { text-align: center; color: var(--texte-doux); margin: .3rem 0 0; }
.arrivee-auth .bascule a { color: var(--accent); font-weight: 800; }
.arrivee-auth .mdp-oublie { text-align: right; margin: -.5rem 0 0; }
.arrivee-auth .mdp-oublie a { color: var(--texte-doux); font-weight: 700; }
.aa-legal { font-size: .78rem; color: var(--texte-doux); line-height: 1.4; margin: auto 0 0; }
.mdp { position: relative; display: block; }
.mdp input { padding-right: 3.2rem !important; width: 100%; }
.mdp-oeil { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border: 0; background: none; color: var(--texte-doux); display: grid; place-items: center; cursor: pointer; }
.mdp-oeil .ic { width: 1.25rem; height: 1.25rem; }
.mdp-aide { color: var(--texte-doux); font-size: .82rem; }
.mdp-aide.ok { color: var(--vert); font-weight: 700; }
.questionnaire { max-width: 30rem; margin: -1rem auto 0; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(1rem + env(safe-area-inset-top)) 0 calc(1.2rem + env(safe-area-inset-bottom)); }
.q-haut { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; min-height: 2.6rem; }
.q-retour { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; }
.q-retour .ic { transform: rotate(180deg); }
.q-barre { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.q-barre i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .4s; }
.q-num { font-weight: 800; color: var(--texte-doux); font-size: .85rem; }
.q-etape { color: var(--accent); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.questionnaire h1 { font-size: 1.9rem; line-height: 1.08; margin: .3rem 0 .4rem; }
.q-aide { color: var(--texte-doux); margin: 0 0 1.2rem; line-height: 1.45; }
.q-corps { flex: 1; }
.q-pied { position: sticky; bottom: 0; padding-top: 1rem; background: linear-gradient(to top, var(--fond) 80%, transparent); display: flex; flex-direction: column; gap: .3rem; }
.q-pied .btn.large { width: 100%; justify-content: center; }
.q-passer { background: none; border: 0; color: var(--texte-doux); font: 800 .95rem var(--police); padding: .6rem; cursor: pointer; }
.q-sous { font-weight: 800; margin: 1.2rem 0 .6rem; }
.q-cartes { display: flex; flex-direction: column; gap: .55rem; }
.q-carte { display: flex; align-items: center; gap: .8rem; background: var(--surface); border-radius: 20px; padding: .8rem 1rem; box-shadow: 0 2px 10px rgb(22 37 27 / 6%); }
.q-carte > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-carte b { font: 800 1.02rem var(--police-titre); }
.q-carte small { color: var(--texte-doux); font-size: .84rem; }
.q-av { width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 800 1.15rem var(--police-titre); flex: none; }
.q-retirer { background: none; border: 0; color: var(--texte-doux); font-size: 1.1rem; padding: .4rem; cursor: pointer; }
.q-puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.q-puce, .q-tuile, .q-choix label { position: relative; }
.q-puce input, .q-tuile input, .q-choix input { position: absolute; opacity: 0; pointer-events: none; }
.q-puce span, .q-puce-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .95rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--bord); font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--texte); font-family: inherit; }
.q-puce-btn .ic { width: 1rem; height: 1rem; }
.q-puce input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.q-membres { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .6rem; }
.q-membres .puce { border: 1.5px solid var(--bord); background: var(--surface); }
.q-membres .puce.on { background: var(--encre); color: #fff; border-color: var(--encre); }
.q-nouveau { display: flex; gap: .5rem; margin-top: .8rem; }
.q-nouveau input[name="nom"] { flex: 1; min-width: 0; height: 3rem; border-radius: 14px; }
.q-rejoindre { margin-top: 1.4rem; background: var(--surface-2); border-radius: 18px; padding: .8rem 1rem; }
.q-rejoindre summary { display: flex; align-items: center; gap: .8rem; list-style: none; cursor: pointer; }
.q-rejoindre summary::-webkit-details-marker { display: none; }
.q-rejoindre summary > span { display: flex; flex-direction: column; }
.q-rejoindre small { color: var(--texte-doux); font-size: .82rem; }
.q-rejoindre form { margin-top: .8rem; }
.q-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.q-tuile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; background: var(--surface); border: 1.5px solid var(--bord); border-radius: 18px; padding: .85rem .4rem; font-weight: 800; font-size: .82rem; line-height: 1.2; cursor: pointer; min-height: 5.6rem; }
.q-tuile .ic { width: 1.6rem; height: 1.6rem; color: var(--accent); }
.q-tuile:has(input:checked) { border: 2.5px solid var(--accent); background: #fff6f2; padding: calc(.85rem - 1px) calc(.4rem - 1px); }
.q-choix { display: flex; flex-direction: column; gap: .55rem; }
.q-choix label { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1.5px solid var(--bord); border-radius: 18px; padding: 1rem 1.1rem; cursor: pointer; }
.q-choix b { font: 800 1.02rem var(--police-titre); }
.q-choix small { color: var(--texte-doux); font-size: .84rem; }
.q-choix label:has(input:checked) { border: 2.5px solid var(--accent); background: #fff6f2; padding: calc(1rem - 1px) calc(1.1rem - 1px); }
.q-note { color: var(--texte-doux); font-size: .86rem; margin: 1rem 0 0; }
.q-inter { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; }
.q-inter > div { display: flex; flex-direction: column; }
.q-inter b { font: 700 .98rem var(--police-titre); }
.q-inter small { color: var(--texte-doux); font-size: .82rem; }
.q-sante { flex-direction: column; align-items: stretch; gap: .2rem; margin-bottom: .6rem; }
.q-sante-tete { display: flex; align-items: center; gap: .7rem; flex-direction: row !important; }
.q-reglages { flex-direction: column; align-items: stretch; padding: .3rem 1rem; margin-top: 1rem; }
.q-reglages > * { border-bottom: 1px solid var(--bord); }
.q-reglages > *:last-child { border-bottom: 0; }
.q-compteur { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; }
.q-compteur > div { display: flex; flex-direction: column; }
.q-compteur small { color: var(--texte-doux); font-size: .82rem; }
.q-stepper { display: flex; align-items: center; gap: .3rem; }
.q-stepper button { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--surface-2); font: 800 1.1rem var(--police); cursor: pointer; }
.q-stepper input { width: 2.4rem; text-align: center; border: 0 !important; background: none !important; font: 800 1.1rem var(--police-titre); padding: 0 !important; box-shadow: none !important; }
.q-dimanche { background: var(--surface-2); border-radius: 18px; padding: .8rem 1rem; margin-top: .8rem; }
.q-fin { min-height: 100dvh; margin: -1rem -.9rem 0; background: var(--accent); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.6rem calc(2rem + env(safe-area-inset-bottom)); gap: .8rem; }
.q-fin-ic { width: 3.6rem; height: 3.6rem; }
.q-fin h1 { color: #fff; font-size: 2.4rem; line-height: 1.02; margin: .4rem 0 0; }
.q-fin p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.q-fin-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0 1.2rem; }
.q-fin-photos span { aspect-ratio: 3 / 4; border-radius: 18px; background: rgb(255 255 255 / 20%) center/cover; }
.q-fin .btn.large { width: 100%; justify-content: center; }
.q-fin-note { text-align: center; font-weight: 700; opacity: .9; }
.arrivee-auth .auth-form .champ { margin: 0 !important; gap: .35rem; flex: none; }

.puce-retirable.deja-la { animation: deja-la .9s ease; }
@keyframes deja-la { 0%, 100% { box-shadow: none; } 30%, 70% { box-shadow: 0 0 0 3px var(--accent, #ff5a36); } }

.reglage-q { gap: 0 !important; }
.reglage-q > .q-sous:first-child, .reglage-q > .q-tuiles:nth-child(2) { margin-top: .4rem; }
.reglage-q .q-reglages { margin-top: 1.2rem; }
.reglage-q > .aide { margin-top: 1rem; }
.reglage-q > .actions { margin-top: 1.2rem; }
@media (max-width: 760px) {
  .sous-foyer .actions { background: linear-gradient(to bottom, transparent, var(--fond) 45%); padding: 1.4rem 0 .6rem; z-index: 2; }
}
:root[data-theme="sombre"] .q-tuile:has(input:checked), :root[data-theme="sombre"] .q-choix label:has(input:checked) { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.q-carte > .q-compteur { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }

.toast { border-radius: 16px; line-height: 1.35; max-width: min(92vw, 420px); }

.page-legale { max-width: 720px; }
.page-legale h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.page-legale p, .page-legale li { line-height: 1.6; }
.page-legale ul ul { margin-top: .3rem; }
.page-legale .retour-titre { display: inline-grid; place-items: center; margin-right: .7rem; vertical-align: middle; color: var(--accent); }
.page-legale .retour-titre .ic { transform: rotate(180deg); }
.page-legale .page-tete h1 { display: flex; align-items: center; font-size: 1.6rem; }
.liens-legaux { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.6rem 0 .5rem; font-size: .88rem; }
.liens-legaux a { color: var(--texte-doux); }
body:not(.connecte)[data-page="legal"] .nav, body:not(.connecte)[data-page="legal"] .entete { display: none !important; }
body:not(.connecte)[data-page="legal"] #vue { padding-bottom: 1rem !important; }
.aa-legal a { color: inherit; text-decoration: underline; }

.fiche-intro:has(details.plus[open]) { z-index: 45; }

.menu-plus button { display: flex; align-items: center; gap: .6rem; min-height: 2.9rem; width: 100%; }
.menu-plus button .ic { flex: none; }
.menu-plus button.danger { color: var(--rouge); }
.livre-plus .menu-plus { top: calc(100% + .5rem); min-width: 15rem; }
.livre-couv .livre-plus { line-height: 1 !important; height: 2.6rem; }
.livre-couv .livre-plus > summary { position: static !important; width: 2.6rem; height: 2.6rem; place-items: center; padding: 0; }
.livre-couv:has(.livre-plus[open]) { overflow: visible; }

.couv-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: .5rem; }
.couv-choix { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--bord); background: var(--surface-2); cursor: pointer; display: grid; }
.couv-choix input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.couv-choix img { width: 100%; height: 100%; object-fit: cover; display: block; }
.couv-choix:has(input:checked) { border: 3px solid var(--accent); box-shadow: 0 0 0 2px var(--surface) inset; }
.couv-auto { display: grid; place-items: center; align-content: center; gap: .2rem; color: var(--texte-doux); font-weight: 700; }
.couv-auto .ic { width: 1.4rem; height: 1.4rem; color: var(--accent); }

.deplacer-liste { display: flex; flex-direction: column; gap: .45rem; margin-top: .6rem; }
.deplacer-choix { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--bord); border-radius: 16px; padding: .55rem .8rem; font: inherit; color: var(--texte); cursor: pointer; }
.deplacer-choix .date-pastille { flex: none; }
.deplacer-choix .dc-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.deplacer-choix .dc-txt small { color: var(--texte-doux); }
.deplacer-choix .dc-fleche { color: var(--accent); flex: none; }
.deplacer-choix.ici { opacity: .55; cursor: default; border-style: dashed; }
.deplacer-choix .date-pastille { display: grid !important; place-items: center; align-content: center; width: 3rem; height: 3.3rem; border-radius: 14px; background: var(--surface-2); box-shadow: none; }
.case-actions > [data-action="deplacer-case"] { order: 4; }

.case[data-case] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.case-souleve { opacity: .35; }
.case-fantome { position: fixed !important; z-index: 9000; pointer-events: none; margin: 0 !important; transform: scale(1.04) rotate(-1.5deg); box-shadow: 0 18px 40px rgb(0 0 0 / 30%); border-radius: 22px; }
.case-fantome .case-actions { display: none !important; }
.repas.depot { outline: 3px dashed var(--accent); outline-offset: 4px; border-radius: 22px; }

.case-fantome { position: fixed !important; z-index: 9000; pointer-events: none; display: flex; align-items: center; gap: .6rem; width: min(17rem, 70vw); height: auto; padding: .45rem .9rem .45rem .45rem; background: var(--surface); color: var(--texte); border-radius: 999px; box-shadow: 0 14px 34px rgb(0 0 0 / 28%); transform: rotate(-2deg); font-size: .9rem; }
.case-fantome img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; flex: none; }
.case-fantome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.glisse-en-cours, html.glisse-en-cours body { overscroll-behavior: none; }
.jour.cible-jour .date-pastille { background: var(--accent) !important; color: #fff; transform: scale(1.08); transition: transform .12s; }
.jour.cible-jour .date-pastille small { color: #fff; }
.repas.depot { position: relative; outline: 3px dashed var(--accent); outline-offset: 4px; border-radius: 22px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.repas.depot::after { content: attr(data-indice); position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: var(--accent); color: #fff; font-weight: 800; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; pointer-events: none; }
.repas:not(:has(.case)) { min-height: 3.6rem; display: flex; align-items: center; }

.mosaique .carte:nth-child(n) .carte-img { aspect-ratio: auto !important; }
.mosaique .carte:nth-child(7n+1) .carte-img { aspect-ratio: 0.68 !important; }
.mosaique .carte:nth-child(7n+2) .carte-img { aspect-ratio: 1 !important; }
.mosaique .carte:nth-child(7n+3) .carte-img { aspect-ratio: 0.8 !important; }
.mosaique .carte:nth-child(7n+4) .carte-img { aspect-ratio: 1.15 !important; }
.mosaique .carte:nth-child(7n+5) .carte-img { aspect-ratio: 0.62 !important; }
.mosaique .carte:nth-child(7n+6) .carte-img { aspect-ratio: 0.9 !important; }
.mosaique .carte:nth-child(7n) .carte-img { aspect-ratio: 0.72 !important; }

.nav-assistant { position: relative; }
.nav-assistant.a-repondu::after { content: ''; position: absolute; top: .35rem; right: calc(50% - 1.6rem); width: .8rem; height: .8rem; border-radius: 50%; background: #e11d48; border: 2px solid var(--surface); z-index: 3; }

.ajout-menu .q-puces { gap: .4rem; }
.ajout-menu .am-petit .q-puce span { padding: .4rem .75rem; font-size: .85rem; }
.ajout-menu .am-jours { max-height: 55vh; overflow-y: auto; }
.case-actions > [data-action="portions-case"] { order: 4; }

.bilan-menu { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-radius: 18px; padding: .8rem 1.1rem; margin: .2rem 0 1rem; font-size: .9rem; color: var(--texte-doux); }
.bilan-menu b { font: 800 1.15rem var(--police-titre); color: var(--accent-fonce, #c2410c); margin-right: .15rem; }

.puce-retirable .qte-frigo { border: 0; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font: 700 .78rem var(--police); border-radius: 999px; padding: .1rem .5rem; margin-left: .35rem; cursor: pointer; }
.puce-retirable .qte-frigo:not(.a-qte) { background: none; color: var(--texte-doux); text-decoration: underline dotted; padding: .1rem .2rem; }
.qte-frigo-form .q-stepper input { width: 4.2rem; border: 1px solid var(--bord) !important; border-radius: 10px; background: var(--surface) !important; }
.au-frigo.manque { color: #b45309; }

.mc-fin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 1.5rem; }
.mc-fin img { width: min(16rem, 70vw); aspect-ratio: 1; object-fit: cover; border-radius: 28px; }
.mc-fin h2 { font-size: 2rem; margin: .4rem 0 0; }
.mc-fin p { opacity: .8; max-width: 26rem; margin: 0; }
.mc-fin .mc-suivante { width: min(22rem, 90vw); justify-content: center; }
.mc-fin .mc-autre { background: none; border: 0; color: inherit; opacity: .75; font: 700 1rem var(--police); padding: .6rem; cursor: pointer; }
.case-cuisine { position: absolute; left: .55rem; top: .55rem; z-index: 3; display: inline-flex; align-items: center; gap: .3rem; border: 0; border-radius: 999px; padding: .3rem .7rem; background: rgb(255 255 255 / 92%); color: var(--texte); font: 800 .78rem var(--police); cursor: pointer; }
.case-cuisine .ic { width: 1rem; height: 1rem; color: var(--vert, #2f8f4e); }
.case-cuisine.fait { background: var(--vert, #2f8f4e); color: #fff; cursor: default; }
.case-cuisine.fait .ic { color: #fff; }
.mc-fin .mc-suivante { flex: none !important; height: auto !important; min-height: 0 !important; padding: 1rem 1.4rem !important; border-radius: 999px !important; background: var(--accent) !important; color: #fff !important; display: inline-flex; align-items: center; gap: .5rem; font-size: 1.1rem; }
.mc-fin .mc-suivante .ic { color: #fff; }

.rayon li { position: relative; }
.rayon li > label { padding-right: 6.5rem !important; }
.rayon .qte-modifiable { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); background: none; border: 0; font: 600 1rem var(--police); color: var(--texte); cursor: pointer; padding: .4rem .2rem .4rem .6rem; text-align: right; max-width: 6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rayon .qte-modifiable .qte-vide .ic { width: 1rem; height: 1rem; color: var(--texte-doux); }
.rayon li > small { padding-right: 6.5rem; }
.ranger-frigo b { font-weight: inherit; }

.rayon li > label { padding-right: 8.6rem !important; }
.rayon .qte-modifiable { right: 2.9rem; }
.rayon li > small { padding-right: 8.6rem; }
.ranger-article { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--texte-doux); display: grid; place-items: center; cursor: pointer; }
.ranger-article .ic { width: 1.1rem; height: 1.1rem; }
.ranger-article:active, .ranger-article:disabled { background: var(--vert, #2f8f4e); color: #fff; }
.rayon li.range { opacity: .4; transition: opacity .2s; }
.rayon li.coche .ranger-article { color: var(--vert, #2f8f4e); background: color-mix(in srgb, var(--vert, #2f8f4e) 14%, transparent); }
.rayon li > label { padding-right: 11rem !important; }
.rayon li > small { padding-right: 11rem; }
.rayon .qte-modifiable { right: 5.3rem; }
.ranger-article { right: 2.95rem; }
.retirer-article { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--texte-doux); display: grid; place-items: center; cursor: pointer; }
.retirer-article .ic { width: 1.05rem; height: 1.05rem; }
.retirer-article:active, .retirer-article:disabled { background: var(--rouge, #dc2626); color: #fff; }

.puce-retirable.au-congelo { background: color-mix(in srgb, #0ea5e9 12%, var(--surface)); border-color: color-mix(in srgb, #0ea5e9 35%, transparent); }
.puce-retirable .flocon { display: inline-grid; place-items: center; margin-right: .3rem; color: #0284c7; }
.puce-retirable .flocon .ic { width: .95rem; height: .95rem; }
.lieu-frigo .q-puce span .ic { width: 1rem; height: 1rem; }
.a-decongeler { display: inline-flex; align-items: center; gap: .3rem; background: #e0f2fe; color: #075985 !important; font-weight: 800; border-radius: 999px; padding: .15rem .55rem; width: fit-content; }
.a-decongeler .ic { width: .9rem; height: .9rem; }
.case { position: relative; }
.case .a-decongeler { position: absolute; left: .55rem; top: .55rem; z-index: 3; }
.case:has(.case-cuisine) .a-decongeler { top: 2.75rem; }
.case .a-decongeler { max-width: calc(100% - 8.2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } .case .a-decongeler .ic { vertical-align: -2px; margin-right: .2rem; }

.choix-voix { display: grid; gap: .5rem; }
.choix-voix-ligne { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: var(--rayon-petit); background: var(--surface); border: 1px solid var(--bord); }
.choix-voix-ligne label { flex: 1; display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.choix-voix-ligne label span { display: flex; flex-direction: column; }
.choix-voix-ligne small { color: var(--texte-doux); }
.choix-voix-ligne input { accent-color: var(--accent); width: 1.2rem; height: 1.2rem; }
.choix-voix-ligne:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.lf-barre:not(.complete) i { background: var(--accent); }

.case-etat { position: absolute; left: .55rem; top: .55rem; z-index: 3; display: flex; gap: .35rem; flex-wrap: wrap; }
.case-etat .case-cuisine { position: static; padding: .28rem .55rem; font-size: .72rem; gap: .25rem; }
.case-etat .case-cuisine .ic { width: .9rem; height: .9rem; }
.case-cuisine.pas-cuisine { background: rgb(255 255 255 / 80%); color: var(--texte-doux); font-weight: 700; }
.case:has(.case-etat) .a-decongeler { top: 2.75rem; }
.en-attente { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--rayon-petit); background: var(--ambre-doux); color: var(--texte); margin: 0 0 1rem; }
.en-attente .ic { flex: none; margin-top: .15rem; color: var(--ambre); }

.frais { display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 999px; font: 800 .7rem/1.4 var(--police); margin-left: .35rem; white-space: nowrap; }
.frais-rouge { background: var(--rouge-doux); color: var(--rouge); }
.frais-ambre { background: var(--ambre-doux); color: var(--ambre); }
.frais-doux { background: var(--surface-2); color: var(--texte-doux); }
.a-finir-liste { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .4rem; }
.a-finir-liste .puce.frais { margin: 0; padding: .45rem .8rem; font-size: .85rem; gap: .4rem; }
.a-finir-liste .puce.frais b { font-weight: 800; }
.ligne-frigo .sauve { color: var(--ambre); font-weight: 800; display: inline-flex; gap: .2rem; align-items: center; }
.ligne-frigo .sauve .ic { width: .85rem; height: .85rem; }

.bon-etoiles { display: flex; gap: .4rem; justify-content: center; }
.bon-etoiles button { border: 0; background: none; padding: .2rem; cursor: pointer; color: var(--bord); }
.bon-etoiles button .ic { width: 2.2rem; height: 2.2rem; }
.bon-etoiles button.on { color: var(--citron, #ffd23f); }
.bon-etoiles button.on .ic { fill: currentColor; }
.bon-membres { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.bon-membres li { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: var(--rayon-petit); background: var(--surface-2); }
.bon-membres li span { flex: 1; font-weight: 700; }
.bon-membres .oui { color: var(--vert); background: var(--vert-doux); }
.bon-membres .non { color: var(--rouge); background: var(--rouge-doux); }

.toujours-la { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.toujours-la p { margin: 0; flex: 1 1 16rem; }

@media (min-width: 901px) {
  :root { --barre-laterale: 15.5rem; }
  body.connecte { padding-left: var(--barre-laterale); }
  body.connecte main { max-width: 1180px; padding: 2.2rem 2.5rem 4rem !important; }

  body.connecte .entete { position: fixed !important; left: 0; top: 0; bottom: 0; width: var(--barre-laterale); padding: 1.6rem 1rem 1.2rem !important; background: var(--surface) !important;
    border-right: 1px solid var(--bord) !important; display: flex; flex-direction: column; align-items: stretch; gap: 1.2rem; z-index: 40; pointer-events: auto; }
  .entete .logo, body:not([data-page="accueil"]) .entete .logo { display: block !important; color: var(--encre) !important; font-size: 1.9rem !important; padding: 0 .7rem; }
  body[data-page="accueil"] .entete .logo em, .entete .logo em { color: var(--accent); }
  .entete .profil-lien, body:not([data-page="accueil"]) .entete .profil-lien { display: flex !important; order: 9; margin: auto 0 0 !important; width: auto !important; height: auto !important; align-items: center; gap: .7rem; padding: .5rem .7rem !important; border-radius: 16px; text-decoration: none; color: var(--texte); }
  .entete .profil-lien:hover { background: var(--surface-2); }
  .entete #nav-prenom { display: inline !important; font-weight: 800; }
  .entete .scanner-lien, body:not([data-page="accueil"]) .entete .scanner-lien { display: none !important; }

  body.connecte .nav, body.connecte[data-page="recette"] .nav { display: flex !important; position: static !important; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: .2rem;
    background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; overflow-y: auto; }
  .nav a, .nav a.nav-pc { display: flex !important; flex: none !important; flex-direction: row !important; align-items: center; gap: .85rem !important; padding: .7rem .85rem !important;
    border-radius: 14px; font: 700 .98rem var(--police) !important; color: var(--texte-doux) !important; }
  .nav a .ic { width: 1.35rem !important; height: 1.35rem !important; }
  .nav a:hover { background: var(--surface-2); color: var(--texte) !important; }
  .nav a.actif { background: var(--accent-doux) !important; color: var(--accent) !important; }
  .nav a.nav-assistant { order: -1; margin: 0 0 .6rem; background: var(--accent) !important; color: #fff !important; padding: .85rem 1rem !important; box-shadow: 0 8px 20px rgb(255 90 54 / 30%); }
  .nav a.nav-assistant .ic { margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; width: 1.35rem !important; height: 1.35rem !important; color: #fff; }
  .nav a.nav-assistant.actif, .nav a.nav-assistant:hover { background: var(--accent-fonce) !important; color: #fff !important; }
  .nav a.nav-pc { margin-top: 0; }
  .nav a.nav-pc:first-of-type, .nav a[href="#/livres"] { margin-top: .8rem; }

  #toasts { bottom: 1.5rem !important; }
  .guide-pastille { left: calc(var(--barre-laterale) + 1.5rem) !important; }
  .saisie-chat { left: var(--barre-laterale) !important; bottom: 0 !important; }
  .fiche-actions { left: var(--barre-laterale) !important; }

  .grille { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important; gap: 1.1rem !important; }
  .accueil .bloc .carte { flex-basis: 21%; }
  .mosaique { columns: 4; column-gap: 1rem; }
  .accueil .carrousel { margin-top: 0 !important; }
  .accueil .carrousel-piste { border-radius: 30px !important; }
  .accueil .carrousel .banniere { height: 26rem !important; }
  .fiche-img { margin: 0 !important; border-radius: 30px; overflow: hidden; }

  .page-tete > h1, .tete-mobile h1, .ep-tete h1 { font-size: 2.6rem !important; }
  .page-tete .actions > .btn, .page-tete .actions > a.btn, .page-tete .actions > label.btn { width: 2.9rem; height: 2.9rem; }
}
@media (min-width: 901px) {
  .jour { grid-template-columns: 3.3rem repeat(var(--cols, 1), minmax(0, 1fr)); column-gap: 1rem; }
  .jour > .repas { grid-column: auto; }
  .repas + .repas { margin-top: 0; }
  .repas h3 { display: block; margin: 0 0 .35rem .2rem; font: 800 .72rem var(--police); text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); }
  .case, .case-lien { min-height: 8.5rem !important; }
  .case-lien > div { right: 3.4rem; }

  .page.fiche, .fiche { max-width: 860px; margin: 0 auto; }
  .fiche-tete, .fiche-corps { grid-template-columns: minmax(0, 1fr) !important; }
  .fiche-img { height: 27rem; }
  .fiche-actions { left: calc(var(--barre-laterale) + max(1rem, (100vw - var(--barre-laterale) - 860px) / 2)) !important; right: max(1rem, (100vw - var(--barre-laterale) - 860px) / 2) !important; }
  .saisie-chat { left: calc(var(--barre-laterale) + max(1rem, (100vw - var(--barre-laterale) - 860px) / 2)) !important; right: max(1rem, (100vw - var(--barre-laterale) - 860px) / 2) !important; }
}

@media (min-width: 901px) {
  body:not(.connecte) main { max-width: none; padding: 0 !important; }
  .arrivee-accueil { margin: 0; min-height: 100vh; }
  .arrivee-accueil .aa-texte { margin: 0 0 8vh 8vw; max-width: 34rem; padding: 2rem; }
  .arrivee-accueil .aa-texte .auth-marque { font-size: 3.6rem; }
  .arrivee-accueil .aa-texte h1 { font-size: 2.4rem; }
  .arrivee-accueil .aa-photo::after { background: linear-gradient(to right, rgb(10 18 13 / 92%) 25%, rgb(10 18 13 / 20%) 70%); }
  .arrivee-auth { margin: 0 auto; padding: 0 0 2rem; }
  .arrivee-auth .aa-bandeau { margin: 0; border-radius: 0 0 28px 28px; overflow: hidden; }
}

.frigo-page .page-tete .aide { display: none; }
.fr-resume { justify-content: space-around; text-align: center; }
.fr-resume > div { align-items: center; }
.fr-resume b { font: 800 1.6rem/1 var(--police-titre); }
.fr-resume small { opacity: .75; font-weight: 700; font-size: .78rem; }
.fr-ajout { margin: 0 0 1rem; }
.fr-ajout .selecteur-puces { display: none !important; }
.fr-ajout .selecteur-saisie { flex: 1 1 100% !important; }
.fr-ajout .selecteur-saisie input, form.fr-ajout .selecteur-saisie input { width: 100% !important; background: var(--surface) !important; color: var(--texte) !important; border: 1.5px dashed #d7cfc3 !important; border-radius: 16px !important; padding: .85rem 1rem !important; font-weight: 600 !important; }
.fr-ajout .selecteur-saisie input::placeholder { color: var(--texte-doux) !important; }
.fr-vers-idees { display: inline-flex; gap: .4rem; align-items: center; font-weight: 800; color: var(--accent); text-decoration: none; margin-top: .3rem; }
.fr-vers-idees .ic { width: 1rem; height: 1rem; }
.etageres-frigo { display: grid; gap: 1rem; margin: 0 0 1.4rem; }
@media (min-width: 901px) { .etageres-frigo { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.fr-etagere { background: var(--surface); border-radius: 22px; box-shadow: var(--ombre); padding: .9rem .9rem .5rem; }
.fr-etagere h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin: 0 0 .4rem .2rem; }
.fr-etagere h2 .ic { width: 1.1rem; height: 1.1rem; color: var(--accent); }
.fr-etagere h2 small { margin-left: auto; font: 700 .8rem var(--police); color: var(--texte-doux); background: var(--surface-2); border-radius: 999px; padding: .1rem .55rem; }
.fr-congelo { background: #eef5fa; }
.fr-congelo h2 .ic { color: #3f7fb5; }
.fr-etagere ul { list-style: none; margin: 0; padding: 0; }
.fr-ligne { display: flex; align-items: center; gap: .4rem; border-top: 1px solid var(--bord); min-height: 2.9rem; }
.fr-ligne:first-child { border-top: 0; }
.fr-ligne.part { opacity: .35; }
.fr-nom { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; border: 0; background: none; padding: .55rem .2rem; font: 700 .95rem var(--police); color: var(--texte); text-align: left; cursor: pointer; }
.fr-nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-nom small { flex: none; font: 800 .7rem var(--police); padding: .1rem .45rem; border-radius: 999px; }
.fr-point { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: #9cc9a5; }
.fr-rouge .fr-point { background: var(--rouge); } .fr-rouge .fr-nom small { background: var(--rouge-doux); color: var(--rouge); }
.fr-ambre .fr-point { background: #e7a521; } .fr-ambre .fr-nom small { background: var(--ambre-doux); color: var(--ambre); }
.fr-vieux .fr-point { background: #cfc6b8; }
.fr-congelo .fr-point { background: #7fb2d9; }
.fr-qte { flex: none; border: 0; background: var(--accent-doux); color: var(--accent-fonce); border-radius: 999px; padding: .3rem .7rem; font: 800 .82rem var(--police); cursor: pointer; }
.fr-qte.vide { background: none; color: var(--texte-doux); font-weight: 700; text-decoration: underline dotted; }
.fr-retirer { flex: none; width: 2rem !important; height: 2rem !important; border: 0 !important; background: none !important; color: var(--texte-doux); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.fr-retirer .ic { width: 1rem; height: 1rem; }
.toujours-la { display: block !important; }
.toujours-la p { margin: 0 0 .6rem !important; }
.tl-liste { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.tl-liste label { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: .88rem; cursor: pointer; }
.tl-liste input { accent-color: var(--accent); }

.frigo-page .a-finir-liste .puce.frais { padding: .3rem .7rem; font-size: .8rem; }
.frigo-page .a-finir h2 { font-size: 1.35rem; }
.frigo-page > form.toujours-la { background: var(--surface) !important; box-shadow: var(--ombre) !important; padding: 1rem 1.1rem !important; border-radius: 22px; margin: 0 0 1.4rem; }
.tl-liste label { white-space: nowrap; }
.tl-liste input { flex: none; width: 1rem !important; height: 1rem !important; margin: 0; padding: 0; }

.case .finit-menu { position: absolute; left: .55rem; top: 2.75rem; z-index: 3; display: block; max-width: calc(100% - 3.4rem);
  background: #fff3cc; color: #7a5200; border-radius: 999px; padding: .2rem .6rem; font: 800 .74rem/1.3 var(--police); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case .finit-menu .ic { width: .85rem; height: .85rem; vertical-align: -2px; margin-right: .15rem; }
.case:not(:has(.case-etat)) .finit-menu { top: .55rem; }
.case:has(.finit-menu) .a-decongeler { top: 2.75rem; }
.case:has(.case-etat):has(.finit-menu) .a-decongeler { top: 4.95rem; }
.case .case-lien { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 2.7rem; }
.case .case-lien > div { position: relative; inset: auto; margin: 0 .85rem .65rem; }
.case:has(.case-etat):has(.finit-menu, .a-decongeler) .case-lien, .case:has(.finit-menu):has(.a-decongeler) .case-lien { padding-top: 4.9rem; }
.case:has(.case-etat):has(.finit-menu):has(.a-decongeler) .case-lien { padding-top: 7.1rem; }
@media (min-width: 901px) { .case .case-lien > div { margin-right: 3.4rem; } }

@keyframes luire { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.carrousel .banniere-attente { background: linear-gradient(100deg, #16251b 30%, #24392b 50%, #16251b 70%); background-size: 220% 100%; animation: luire 1.6s linear infinite; }
.carrousel .banniere-attente::after { content: none; }
.squelette { border-radius: var(--rayon); background: linear-gradient(100deg, var(--bord) 30%, var(--surface-2, #f4f7f2) 50%, var(--bord) 70%); background-size: 220% 100%; animation: luire 1.6s linear infinite; }
.squelette-bandeau { height: 4.2rem; margin: 1rem 0 .4rem; }
.squelette-titre { height: 1.5rem; width: 42%; margin: 1.6rem 0 .9rem; border-radius: 8px; }
.squelette-rangee { display: flex; gap: .8rem; overflow: hidden; }
.squelette-carte { flex: 0 0 min(42%, 13rem); height: 13.5rem; border-radius: 26px; }
@media (prefers-reduced-motion: reduce) { .squelette, .carrousel .banniere-attente { animation: none; } }
.banniere-attente .attente-lignes { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 3.6rem; display: flex; flex-direction: column; gap: .7rem; }
.banniere-attente .attente-lignes i { display: block; height: 1.9rem; border-radius: 10px; background: rgb(255 255 255 / 9%); }
.banniere-attente .attente-lignes i:nth-child(1) { width: 7.5rem; height: 1.6rem; border-radius: 999px; background: rgb(255 90 54 / 55%); }
.banniere-attente .attente-lignes i:nth-child(2) { width: 85%; }
.banniere-attente .attente-lignes i:nth-child(3) { width: 60%; }
.banniere-attente .attente-lignes i:nth-child(4) { width: 9rem; height: 2.6rem; border-radius: 999px; background: rgb(255 255 255 / 16%); margin-top: .3rem; }

@media all { .fiche-corps > .ingredients { position: static !important; max-height: none !important; overflow: visible !important; padding-right: 0; } }

@media (min-width: 901px) {
  .page.fiche, .fiche { max-width: 1180px; }
  body[data-page="recette"] .fiche-img, .fiche-img { aspect-ratio: auto !important; width: 100%; }
  .fiche-actions, .saisie-chat { left: calc(var(--barre-laterale) + max(1rem, (100vw - var(--barre-laterale) - 1180px) / 2)) !important; right: max(1rem, (100vw - var(--barre-laterale) - 1180px) / 2) !important; }
  .fiche[data-vue] .fiche-corps, .fiche .fiche-corps { display: grid !important; grid-template-columns: 22rem minmax(0, 1fr) !important; grid-template-areas: none; grid-template-rows: none; column-gap: 3rem; row-gap: 0; align-items: start; }
  .fiche .fiche-corps > * { grid-area: auto; grid-column: 2; margin-bottom: 1.8rem; }
  .fiche .fiche-corps > .etapes-recette { order: -1; }
  .fiche .fiche-corps > .ingredients { grid-column: 1; grid-row: 1 / span 12; align-self: start; position: sticky !important; top: 1.5rem; max-height: calc(100vh - 9rem) !important; overflow-y: auto !important; overscroll-behavior: contain; scrollbar-width: thin; background: var(--surface); border-radius: 22px; padding: 1.2rem 1.3rem; box-shadow: 0 2px 14px rgb(22 37 27 / 7%); box-sizing: border-box; }
}

.entete-recherche, .nav-foyer, .rayons-nav, .courses-cote, .une, .filtres-une, .sur-titre, .bilan-tete, .bm-foyer { display: none; }
@media (min-width: 901px) {
  html.pc-d { --barre-laterale: 0px; --pc-largeur: 1328px; --pc-marge: max(2.5rem, calc((100vw - var(--pc-largeur)) / 2)); }
  html.pc-d body.connecte { padding-left: 0 !important; }
  html.pc-d body.connecte main { max-width: none !important; padding: 2.4rem var(--pc-marge) 5rem !important; margin: 0 !important; }

  html.pc-d body.connecte .entete, html.pc-d body.connecte[data-page] .entete { position: sticky !important; top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 5.2rem; z-index: 40;
    display: flex !important; flex-direction: row; align-items: center; gap: 2.2rem; padding: 0 var(--pc-marge) !important; background: color-mix(in srgb, var(--fond) 94%, transparent) !important;
    backdrop-filter: blur(12px); border: 0 !important; border-bottom: 1px solid var(--bord) !important; pointer-events: auto; }
  html.pc-d body.connecte .entete .logo { display: block !important; font-size: 1.9rem !important; padding: 0 !important; color: var(--encre) !important; flex: none; }
  html.pc-d body.connecte .nav, html.pc-d body.connecte[data-page] .nav { display: flex !important; position: static !important; flex-direction: row !important; align-items: center; gap: 1.5rem !important;
    background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; overflow: visible; box-shadow: none !important; }
  html.pc-d body.connecte .nav a, html.pc-d body.connecte .nav a.nav-pc { display: block !important; padding: .4rem 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    font: 800 .95rem var(--police) !important; color: var(--texte-doux) !important; margin: 0 !important; white-space: nowrap; }
  html.pc-d body.connecte .nav a .ic { display: none !important; }
  html.pc-d body.connecte .nav a b { font: inherit !important; }
  html.pc-d body.connecte .nav a:hover { color: var(--texte) !important; }
  html.pc-d body.connecte .nav a.actif { color: var(--texte) !important; box-shadow: 0 2px 0 var(--accent) !important; }
  html.pc-d body.connecte .nav a.nav-assistant, html.pc-d body.connecte .nav a[href="/blog"] { display: none !important; }
  html.pc-d .entete-recherche { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex: 0 1 26rem; min-width: 12rem; background: var(--surface); border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--bord); padding: .3rem .35rem .3rem 1.1rem; color: var(--texte-doux); }
  html.pc-d .entete-recherche:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
  html.pc-d .entete-recherche > .ic { width: 1.1rem; height: 1.1rem; flex: none; }
  html.pc-d .entete-recherche input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: .45rem 0 !important; font: 600 .95rem var(--police); color: var(--texte); outline: none; }
  html.pc-d .entete-recherche .er-ia { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
  html.pc-d .entete-recherche .er-ia:hover { background: var(--accent-fonce); }
  html.pc-d .entete-recherche .er-ia .ic { width: 1.05rem; height: 1.05rem; }
  html.pc-d body.connecte .entete .profil-lien, html.pc-d body.connecte[data-page] .entete .profil-lien { display: flex !important; order: 0; margin: 0 !important; padding: 0 !important; width: auto !important; height: auto !important; gap: .55rem; align-items: center; background: none !important; }
  html.pc-d body.connecte .entete #nav-prenom { display: inline !important; font-weight: 800; }
  html.pc-d body.connecte .entete .scanner-lien, html.pc-d body.connecte[data-page] .entete .scanner-lien { display: none !important; }

  html.pc-d .guide-pastille { left: calc(var(--pc-marge) + 1rem) !important; }
  html.pc-d .saisie-chat { left: var(--pc-marge) !important; right: var(--pc-marge) !important; }

  html.pc-d .page-tete > h1, html.pc-d .tete-mobile h1, html.pc-d .ep-tete h1 { font: 800 3.3rem/1 var(--police-titre) !important; letter-spacing: -.03em; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  html.pc-d body.connecte .entete, html.pc-d body.connecte[data-page] .entete { gap: 1.4rem; }
  html.pc-d body.connecte .nav, html.pc-d body.connecte[data-page] .nav { gap: 1.1rem !important; }
  html.pc-d body.connecte .entete #nav-prenom { display: none !important; }
}

@media (min-width: 901px) {
  html.pc-d .accueil .carrousel { margin: 0 0 2.2rem !important; }
  html.pc-d .accueil .carrousel-piste { border-radius: 0 !important; background: none !important; }
  html.pc-d .accueil .carrousel .banniere { display: grid !important; grid-template-columns: 5fr 7fr; gap: 3.2rem; align-items: center; height: auto !important; min-height: 0 !important; background: none !important; color: var(--texte) !important; text-decoration: none; padding: 0 !important; }
  html.pc-d .accueil .carrousel .banniere::after { display: none !important; }
  html.pc-d .accueil .carrousel .banniere img { position: static !important; order: 2; width: 100% !important; height: 27rem !important; object-fit: cover; border-radius: 12px; inset: auto !important; }
  html.pc-d .accueil .carrousel .banniere-texte { position: static !important; max-width: none !important; padding: 0 !important; gap: 1rem !important; justify-content: center !important; color: var(--texte) !important; }
  html.pc-d .accueil .carrousel .banniere-texte small { font: 800 .78rem var(--police) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--accent) !important; background: none !important; padding: 0 !important; }
  html.pc-d .accueil .carrousel .banniere-texte b { font: 800 3.6rem/.98 var(--police-titre) !important; letter-spacing: -.035em; color: var(--texte) !important; text-shadow: none !important; }
  html.pc-d .accueil .carrousel .banniere-texte em { align-self: flex-start; font: 800 .95rem var(--police) !important; font-style: normal !important; background: var(--accent) !important; color: #fff !important; border-radius: 999px; padding: .85rem 1.4rem !important; margin-top: .6rem; }
  html.pc-d .accueil .carrousel .banniere-texte em .suite-court { display: none !important; }
  html.pc-d .accueil .carrousel .banniere-texte em .suite-long { display: inline !important; }
  html.pc-d .accueil .carrousel-points { position: static !important; justify-content: flex-start !important; margin: 1rem 0 0 !important; transform: none !important; }
  html.pc-d .accueil .carrousel-points button { background: var(--bord) !important; }
  html.pc-d .accueil .carrousel-points button.on { background: var(--accent) !important; }
  html.pc-d .accueil .banniere-attente { height: 27rem !important; border-radius: 12px; }

  html.pc-d .accueil .hero { background: none !important; padding: 0 !important; border-radius: 0 !important; margin: 0 0 2.4rem !important; overflow: visible; }
  html.pc-d .accueil .hero::before, html.pc-d .accueil .hero::after { display: none !important; }
  html.pc-d .accueil .hero .salut { font: 800 1.9rem var(--police-titre) !important; letter-spacing: -.02em; margin: 0 0 .9rem !important; color: var(--texte) !important; }
  html.pc-d .accueil .hero-ia { display: none !important; }
  html.pc-d .accueil .suggestions-ia { flex-wrap: wrap !important; overflow: visible !important; gap: .5rem !important; }
  html.pc-d .accueil .suggestions-ia .puce { background: var(--surface) !important; box-shadow: inset 0 0 0 1.5px var(--bord) !important; border: 0 !important; color: var(--texte) !important; font: 700 .9rem var(--police) !important; padding: .6rem 1rem !important; border-radius: 999px !important; }
  html.pc-d .accueil .suggestions-ia .puce:hover { box-shadow: inset 0 0 0 1.5px var(--texte) !important; }
  html.pc-d .accueil .suggestions-ia .puce-reprendre { background: var(--encre) !important; color: #fff !important; box-shadow: none !important; }

  html.pc-d .accueil .bloc-menu { background: none !important; box-shadow: none !important; border-radius: 0 !important; border-top: 3px solid var(--texte); padding: 1rem 0 !important; margin: 0 0 2.4rem !important; }
  html.pc-d .accueil .bloc-menu strong { font: 800 1.5rem var(--police-titre) !important; letter-spacing: -.02em; }
  html.pc-d .accueil .bandeau-filtre { margin-bottom: 1.6rem; }

  html.pc-d .accueil .bloc { margin: 0 0 2.8rem !important; }
  html.pc-d .accueil .bloc > header { align-items: baseline; margin-bottom: 1rem !important; }
  html.pc-d .accueil .bloc > header h2 { font: 800 1.8rem var(--police-titre) !important; letter-spacing: -.025em; display: flex; align-items: center; gap: .55rem; }
  html.pc-d .accueil .bloc > header h2 .ic { width: 1.4rem; height: 1.4rem; color: var(--accent); }
  html.pc-d .accueil .bloc > header a { font-weight: 800; color: var(--accent); }
  html.pc-d .accueil .bloc .grille { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: minmax(calc((100% - 5 * 1.1rem) / 6), 1fr); gap: 1.1rem !important; overflow-x: auto; scrollbar-width: thin; padding-bottom: .4rem; }
  html.pc-d .accueil .bloc .carte, html.pc-d .grille .carte { background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
  html.pc-d .grille .carte .carte-img { aspect-ratio: auto !important; height: auto !important; overflow: visible !important; border-radius: 0 !important; background: none !important; display: block; }
  html.pc-d .grille .carte .carte-img::after { display: none !important; }
  html.pc-d .grille .carte .carte-img > img, html.pc-d .grille .carte .carte-img > .img-vide { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover; border-radius: 12px !important; display: block; }
  html.pc-d .grille .carte .carte-dessus { position: static !important; padding: .65rem .1rem 0 !important; background: none !important; color: var(--texte) !important; }
  html.pc-d .grille .carte .carte-dessus h3 { color: var(--texte) !important; font: 800 1rem/1.25 var(--police) !important; text-shadow: none !important; white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.pc-d .grille .carte .carte-meta { color: var(--texte-doux) !important; text-shadow: none !important; margin-top: .3rem !important; }
  html.pc-d .grille .carte .carte-meta .ic { color: var(--texte-doux) !important; }
  html.pc-d .grille .carte .carte-corps { padding: .25rem .1rem 0 !important; }
  html.pc-d .grille .carte .jauge { top: .6rem !important; bottom: auto !important; left: .6rem !important; }
  html.pc-d .grille .carte .coeur-carte { top: .6rem !important; right: .6rem !important; }
  html.pc-d .grille .carte:hover .carte-img > img { filter: brightness(1.04); }
}


@media (min-width: 901px) {
  html.pc-d .accueil .hero .suggestions-ia { display: flex !important; margin: 0 !important; padding: 0 !important; -webkit-mask-image: none !important; mask-image: none !important; }
  html.pc-d .grille .carte .jauge { top: 2.5rem !important; }
  html.pc-d .accueil .bloc .grille { grid-auto-columns: calc((100% - 5 * 1.1rem) / 6) !important; }
}


@media (min-width: 901px) {
  html.pc-d body[data-page="menus"] .page.large { max-width: none !important; }
  html.pc-d body[data-page="menus"] .page-tete { display: grid !important; grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; row-gap: .6rem; margin-bottom: 1.4rem !important; }
  html.pc-d body[data-page="menus"] .page-tete > h1 { grid-column: 1; }
  html.pc-d body[data-page="menus"] .page-tete > .aide { grid-column: 1; margin: 0 !important; font-size: 1.02rem; }
  html.pc-d body[data-page="menus"] .page-tete > .actions { grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; gap: .5rem !important; margin-top: .6rem !important; }
  html.pc-d body[data-page="menus"] .page-tete .actions .btn { width: auto !important; height: auto !important; border-radius: 999px !important; padding: .65rem 1.1rem !important; }
  html.pc-d body[data-page="menus"] .semaines { margin: 0 0 1rem !important; }
  html.pc-d body[data-page="menus"] .bilan-menu { display: flex !important; gap: .5rem !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 1.4rem !important; }
  html.pc-d body[data-page="menus"] .bilan-menu span { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--bord); border-radius: 999px; padding: .45rem .9rem; font-size: .92rem; flex: none !important; display: inline-block !important; }
  html.pc-d body[data-page="menus"] .planning { display: block !important; gap: 0 !important; }
  html.pc-d body[data-page="menus"] .jour { display: grid !important; grid-template-columns: 9.5rem repeat(var(--cols, 1), minmax(0, 1fr)) !important; column-gap: 2rem !important; align-items: center;
    padding: 1.3rem 0 !important; margin: 0 !important; border: 0 !important; border-top: 1px solid var(--bord) !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
  html.pc-d body[data-page="menus"] .jour > h2 { margin: 0 !important; display: block !important; }
  html.pc-d body[data-page="menus"] .jour .date-pastille { display: flex !important; flex-direction: column-reverse; align-items: flex-start; background: none !important; box-shadow: none !important; width: auto !important; height: auto !important; padding: 0 !important; border-radius: 0 !important; color: var(--texte) !important; }
  html.pc-d body[data-page="menus"] .jour .date-pastille b { font: 800 2.8rem/1 var(--police-titre) !important; letter-spacing: -.03em; color: var(--texte) !important; }
  html.pc-d body[data-page="menus"] .jour .date-pastille small { font: 800 1.05rem var(--police-titre) !important; text-transform: capitalize; color: var(--texte) !important; opacity: 1 !important; letter-spacing: 0 !important; }
  html.pc-d body[data-page="menus"] .jour.auj .date-pastille b, html.pc-d body[data-page="menus"] .jour.auj .date-pastille small { color: var(--accent) !important; }
  html.pc-d body[data-page="menus"] .jour .date-longue { display: none !important; }
  html.pc-d body[data-page="menus"] .repas { margin: 0 !important; min-width: 0; }
  html.pc-d body[data-page="menus"] .repas > h3 { display: block !important; font: 800 .72rem var(--police) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux) !important; margin: 0 0 .5rem !important; }
  html.pc-d body[data-page="menus"] .case { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; min-height: 0 !important; padding: 0 !important; position: relative; }
  html.pc-d body[data-page="menus"] .case + .case { margin-top: .9rem !important; }
  html.pc-d body[data-page="menus"] .case .case-lien { position: static !important; display: grid !important; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; min-height: 0 !important; padding: 0 !important; color: var(--texte) !important; }
  html.pc-d body[data-page="menus"] .case .case-lien::after { display: none !important; }
  html.pc-d body[data-page="menus"] .case .case-img { position: static !important; width: 9.5rem !important; height: 6.3rem !important; border-radius: 8px !important; object-fit: cover; inset: auto !important; }
  html.pc-d body[data-page="menus"] .case .case-lien > div { position: static !important; margin: 0 !important; right: auto !important; padding: 0 2.8rem 0 0 !important; background: none !important; color: var(--texte) !important; display: flex; flex-direction: column; gap: .25rem; }
  html.pc-d body[data-page="menus"] .case .case-lien strong { font: 800 1.18rem/1.15 var(--police-titre) !important; letter-spacing: -.015em; color: var(--texte) !important; text-shadow: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important; }
  html.pc-d body[data-page="menus"] .case .case-lien small { color: var(--texte-doux) !important; text-shadow: none !important; font-weight: 700; }
  html.pc-d body[data-page="menus"] .case .case-lien small.pourquoi { color: var(--vert) !important; }
  html.pc-d body[data-page="menus"] .case .case-lien small.service { color: var(--accent) !important; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
}


@media (min-width: 901px) {
  html.pc-d body[data-page="menus"] .page-tete h1 .titre-court { display: none !important; }
  html.pc-d body[data-page="menus"] .page-tete h1 .titre-long { display: inline !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions { position: static !important; transform: none !important; inset: auto !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > .btn { display: inline-flex !important; font-size: .92rem !important; font-weight: 800 !important; gap: .5rem; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > .btn.plier { padding: .65rem .8rem !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions.ouvert > .btn, html.pc-d body[data-page="menus"] .page-tete > .actions[data-ouvert] > .btn { display: inline-flex !important; }
  html.pc-d body[data-page="menus"] .bilan-menu { justify-content: flex-start !important; }
  html.pc-d body[data-page="menus"] .bilan-menu span b { color: var(--texte) !important; }
  html.pc-d body[data-page="menus"] .jour::before, html.pc-d body[data-page="menus"] .jour::after, html.pc-d body[data-page="menus"] .jour > h2::before, html.pc-d body[data-page="menus"] .jour > h2::after { display: none !important; }
  html.pc-d body[data-page="menus"] .case .case-lien > .img-vide { display: none !important; }
  html.pc-d body[data-page="menus"] .case .case-lien > div { padding-right: 0 !important; }
  html.pc-d body[data-page="menus"] .case { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: .8rem; align-items: center; }
  html.pc-d body[data-page="menus"] .case .case-actions { position: static !important; inset: auto !important; opacity: 1 !important; display: flex !important; gap: .15rem; align-self: start; background: none !important; box-shadow: none !important; }
  html.pc-d body[data-page="menus"] .case .case-etat { position: static !important; inset: auto !important; grid-column: 1; display: flex !important; gap: .4rem; margin: .5rem 0 0 10.6rem !important; }
  html.pc-d body[data-page="menus"] .case .case-etat .case-cuisine { position: static !important; }
}
@media (min-width: 901px) {
  html.pc-d body[data-page="menus"] .page-tete > h1 { grid-row: 1 !important; }
  html.pc-d body[data-page="menus"] .page-tete > .aide { grid-row: 2 !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions { grid-row: 3 !important; justify-content: flex-start !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > * { order: 0 !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > .plier { order: 9 !important; }
}


@media (min-width: 901px) {
  html.pc-d body.connecte .entete .profil-lien #nav-profil, html.pc-d body.connecte .entete #nav-prenom { display: none !important; }
  html.pc-d .nav-foyer { display: flex !important; align-items: center; padding-left: .5rem; }
  html.pc-d .nav-foyer i { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; margin-left: -.55rem; border: 2.5px solid var(--fond); font: 800 .82rem var(--police); font-style: normal; color: var(--encre); background: var(--menthe); transition: transform .15s; }
  html.pc-d .nav-foyer i.nf-0 { background: var(--accent); color: #fff; }
  html.pc-d .nav-foyer i.nf-1 { background: var(--citron); }
  html.pc-d .nav-foyer i.nf-2 { background: var(--menthe); }
  html.pc-d .nav-foyer i.nf-3 { background: var(--accent-doux); }
  html.pc-d .nav-foyer i.nf-4 { background: #d9e6f5; }
  html.pc-d .nav-foyer i.nf-plus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--bord); font-size: .72rem; }
  html.pc-d .profil-lien:hover .nav-foyer i { transform: translateY(-2px); }
}


@media (min-width: 901px) {
  html.pc-d .page.courses { max-width: none !important; display: grid !important; grid-template-columns: 14rem minmax(0, 1fr) 19rem; column-gap: 2.6rem; align-items: start; }
  html.pc-d .page.courses > .page-tete { grid-column: 3; grid-row: 1 / span 4; position: sticky; top: 6.6rem; display: flex !important; flex-direction: column; gap: 1rem; margin: 0 !important; }
  html.pc-d .page.courses > .page-tete > h1 { display: none !important; }
  html.pc-d .page.courses > .rayons-nav { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 6.6rem; display: flex !important; flex-direction: column; gap: .15rem; }
  html.pc-d .page.courses > .rayons-nav::before { content: 'Les courses'; font: 800 2.6rem/1 var(--police-titre); letter-spacing: -.03em; color: var(--texte); margin: 0 0 1.2rem; }
  html.pc-d .page.courses > .rayons-nav button { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 0; background: none; border-radius: 10px; padding: .6rem .8rem; font: 800 .95rem var(--police); color: var(--texte-doux); cursor: pointer; text-align: left; }
  html.pc-d .page.courses > .rayons-nav button:hover { background: var(--surface); color: var(--texte); box-shadow: 0 0 0 1px var(--bord); }
  html.pc-d .page.courses > .rayons-nav button small { font-weight: 800; color: var(--texte-doux); }
  html.pc-d .page.courses > .ajout-article { grid-column: 2; grid-row: 1; margin: 0 0 1.2rem !important; }
  html.pc-d .page.courses > .rayons { grid-column: 2; grid-row: 2; background: #fffdf8; border-radius: 8px; box-shadow: 0 20px 50px rgb(22 37 27 / 9%); padding: 1.8rem 2.2rem; column-count: 2; column-gap: 2.6rem; }
  html.pc-d .page.courses > .aide { grid-column: 2; grid-row: 3; }
  html.pc-d .page.courses .rayon { break-inside: avoid; margin: 0 0 1.6rem !important; scroll-margin-top: 7rem; }
  html.pc-d .page.courses .rayon h2 { font: 800 1.35rem var(--police-titre) !important; letter-spacing: -.02em; text-transform: none !important; color: var(--texte) !important; margin: 0 0 .3rem !important; }
  html.pc-d .page.courses .rayon ul { background: none !important; box-shadow: none !important; border-radius: 0 !important; }
  html.pc-d .page.courses .rayon li { border-bottom: 1px dashed #ddd3c4 !important; padding: .55rem .1rem !important; background: none !important; }
  html.pc-d .page.courses .rayon li .article { font-size: 1rem; font-weight: 600; }
  html.pc-d .page.courses .rayon li .qte { font-weight: 800; color: var(--texte); }
  html.pc-d .page.courses .rayon li > small { flex-basis: 100%; max-width: none !important; order: 9; margin: -.2rem 0 0 1.9rem; color: var(--texte-doux); font-size: .78rem; }
  html.pc-d .page.courses .rayon li { flex-wrap: wrap; }
  html.pc-d .page.courses .rayon li .ranger-article, html.pc-d .page.courses .rayon li .retirer-article { opacity: 0; transition: opacity .15s; }
  html.pc-d .page.courses .rayon li:hover .ranger-article, html.pc-d .page.courses .rayon li:hover .retirer-article, html.pc-d .page.courses .rayon li :focus-visible { opacity: 1; }
  html.pc-d .page.courses .avancement { background: var(--encre) !important; color: #fff !important; border-radius: 18px !important; padding: 1.3rem 1.4rem !important; display: grid !important; grid-template-columns: 1fr auto; gap: .9rem 1rem; box-shadow: none !important; margin: 0 !important; }
  html.pc-d .page.courses .avancement > div:first-child b { font: 800 2rem var(--police-titre) !important; color: #fff !important; }
  html.pc-d .page.courses .avancement small { color: rgb(255 255 255 / 70%) !important; }
  html.pc-d .page.courses .avancement .jauge-courses { grid-column: 1 / -1; grid-row: 2; height: .5rem; background: rgb(255 255 255 / 15%) !important; }
  html.pc-d .page.courses .avancement .av-prix { text-align: right; }
  html.pc-d .page.courses .avancement .av-prix b { color: #fff !important; font-size: 1.15rem; }
  html.pc-d .page.courses > .page-tete > .actions { position: static !important; display: flex !important; flex-direction: column; gap: .5rem !important; margin: 0 !important; inset: auto !important; transform: none !important; }
  html.pc-d .page.courses > .page-tete > .actions > * { order: 0 !important; }
  html.pc-d .page.courses > .page-tete > .actions > .btn { display: flex !important; width: 100% !important; height: auto !important; justify-content: flex-start; gap: .6rem; border-radius: 999px !important; padding: .7rem 1.1rem !important; font: 800 .92rem var(--police) !important; }
  html.pc-d .page.courses > .page-tete > .actions > .btn.plier { display: none !important; }
}


@media (min-width: 901px) {
  html.pc-d body[data-page="recette"] main { padding: 0 !important; }
  html.pc-d .page.fiche, html.pc-d .fiche { max-width: none !important; margin: 0 !important; display: grid !important; grid-template-columns: 5fr 7fr; align-items: start; }
  html.pc-d .fiche > .fiche-tete { display: contents !important; }
  html.pc-d .fiche .fiche-img { grid-column: 1; grid-row: 1 / span 20; position: sticky !important; top: 5.2rem; height: calc(100vh - 5.2rem) !important; max-height: none !important; width: 100% !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; aspect-ratio: auto !important; }
  html.pc-d .fiche .fiche-img::after { display: none !important; }
  html.pc-d .fiche .fiche-img > img { width: 100%; height: 100% !important; object-fit: cover; }
  html.pc-d .fiche .fiche-img .photo-titre { display: none !important; }
  html.pc-d .fiche .fiche-img .rond-photo, html.pc-d .fiche .fiche-img .coeur-photo { top: 1.4rem !important; }
  html.pc-d .fiche > :not(.fiche-tete), html.pc-d .fiche .fiche-intro { grid-column: 2; min-width: 0; margin-left: 3.2rem !important; margin-right: var(--pc-marge) !important; }
  html.pc-d .fiche .fiche-intro { padding: 2.4rem 0 0 !important; display: flex !important; flex-direction: column; gap: .9rem; }
  html.pc-d .fiche .fiche-intro > .fil { order: -3; margin: 0 !important; font: 800 .78rem var(--police) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--accent) !important; }
  html.pc-d .fiche .fiche-intro > .fil a { color: var(--accent) !important; }
  html.pc-d .fiche .fiche-intro > .fil .ic { display: none; }
  html.pc-d .fiche .fiche-intro > h1 { order: -2; display: block !important; font: 800 3.2rem/1 var(--police-titre) !important; letter-spacing: -.035em; margin: 0 !important; }
  html.pc-d .fiche .fiche-intro > .description { order: -1; display: block !important; font-size: 1.08rem; color: var(--texte-doux); margin: 0 !important; }
  html.pc-d .fiche .fiche-intro .chiffres { display: flex !important; gap: 2.2rem !important; border-top: 3px solid var(--texte); border-bottom: 1px solid var(--bord); border-radius: 0 !important; background: none !important; box-shadow: none !important; padding: .8rem 0 !important; margin: .3rem 0 0 !important; }
  html.pc-d .fiche .fiche-intro .chiffres span { border: 0 !important; padding: 0 !important; align-items: flex-start !important; text-align: left !important; flex: none !important; }
  html.pc-d .fiche .fiche-intro .chiffres b { font: 800 1.15rem var(--police-titre) !important; }
  html.pc-d .fiche .fiche-intro .fiche-actions { position: static !important; left: auto !important; right: auto !important; bottom: auto !important; display: flex !important; flex-wrap: wrap; gap: .5rem !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: .2rem 0 0 !important; border: 0 !important; grid-template-columns: none !important; }
  html.pc-d .fiche .fiche-intro .fiche-actions > .btn, html.pc-d .fiche .fiche-intro .fiche-actions .plus > summary { grid-row: auto !important; flex-direction: row !important; width: auto !important; height: auto !important; border-radius: 999px !important; padding: .65rem 1.1rem !important; font: 800 .92rem var(--police) !important; gap: .5rem !important; background: var(--surface) !important; box-shadow: inset 0 0 0 1.5px var(--bord) !important; color: var(--texte) !important; }
  html.pc-d .fiche .fiche-intro .fiche-actions > .btn:not(.secondaire) { background: var(--accent) !important; color: #fff !important; box-shadow: none !important; order: -1; }
  html.pc-d .fiche .fiche-intro .fiche-actions .lib-court, html.pc-d .fiche .fiche-intro .fiche-actions .mc-court { display: none !important; }
  html.pc-d .fiche .fiche-intro .fiche-actions .lib-long, html.pc-d .fiche .fiche-intro .fiche-actions .mc-long { display: inline !important; }
  html.pc-d .fiche > .alerte { margin-top: 1.2rem !important; }
  html.pc-d .fiche > .lien-infos { margin-top: .8rem !important; }
  html.pc-d .fiche .fiche-corps { margin-top: 1.4rem !important; grid-template-columns: 18rem minmax(0, 1fr) !important; column-gap: 2.6rem !important; padding-bottom: 4rem; }
  html.pc-d .fiche .fiche-corps > .ingredients { top: 6.6rem !important; max-height: calc(100vh - 8rem) !important; background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
  html.pc-d .fiche .fiche-corps > .etapes-recette h2, html.pc-d .fiche .fiche-corps > .ingredients h2 { font: 800 1.45rem var(--police-titre) !important; }
}


@media (min-width: 901px) {
  html.pc-d .fiche > .lien-infos, html.pc-d .fiche > .alerte { width: auto !important; }
  html.pc-d .fiche .fiche-intro > .fil { display: block !important; }
  html.pc-d .fiche .fiche-intro .fiche-actions > * { flex: none !important; }
  html.pc-d .fiche .fiche-intro .fiche-actions .lib-long, html.pc-d .fiche .fiche-intro .fiche-actions .mc-long { font-size: .92rem !important; position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important; }
  html.pc-d .fiche .fiche-intro .fiche-actions .plus > summary .lib-long { font-size: 1.1rem !important; }
  html.pc-d .page.courses { grid-template-columns: 12.5rem minmax(0, 1fr) 17rem !important; column-gap: 2.2rem !important; }
  html.pc-d .page.courses > .rayons { padding: 1.6rem 1.8rem !important; column-gap: 2.2rem !important; }
  html.pc-d .page.courses .rayon li { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: .4rem; align-items: center; }
  html.pc-d .page.courses .rayon li > label { min-width: 0; align-items: flex-start !important; }
  html.pc-d .page.courses .rayon li > label input { margin-top: .2rem; }
  html.pc-d .page.courses .rayon li .article { min-width: 0; }
  html.pc-d .page.courses .rayon li .article .au-frigo { display: block; margin-top: .1rem; font-size: .76rem; }
  html.pc-d .page.courses .rayon li .qte { max-width: none !important; overflow: visible !important; text-overflow: clip !important; text-align: right; white-space: nowrap; }
  html.pc-d .page.courses .rayon li > small { grid-column: 1 / -1; margin: 0 0 0 1.9rem !important; }
}


@media (min-width: 901px) {
  html.pc-d .page.courses .rayon li .article .au-frigo { white-space: normal !important; overflow: visible !important; max-width: none !important; text-overflow: clip !important; }
  html.pc-d .page.courses > .rayons-nav::before { font-size: 2.1rem !important; white-space: nowrap; }
  html.pc-d .fiche .fiche-intro { padding-top: 3rem !important; }
}


@media (min-width: 901px) {
  html.pc-d .page-tete { column-gap: 2rem !important; margin-bottom: 1.6rem !important; }
  html.pc-d .page-tete .actions { flex-wrap: wrap !important; justify-content: flex-end; max-width: 46rem; }
  html.pc-d .page-tete .actions > .btn, html.pc-d .page-tete .actions > a.btn, html.pc-d .page-tete .actions > label.btn { font-size: .92rem !important; font-weight: 800 !important; width: auto !important; height: 2.8rem !important; padding: 0 1.15rem !important; border-radius: 999px !important; gap: .5rem !important; display: inline-flex !important; align-items: center; box-shadow: inset 0 0 0 1.5px var(--bord) !important; }
  html.pc-d .page-tete .actions > .btn:not(.secondaire) { box-shadow: none !important; }
  html.pc-d .page-tete .actions.a-plier > :nth-child(n+3):not(.plier) { display: inline-flex !important; position: static !important; width: auto !important; }
  html.pc-d .page-tete .actions .plier { display: none !important; }
  html.pc-d .page-tete > .aide { font-size: 1.02rem; color: var(--texte-doux); }

  html.pc-d .page.etroite:not(.courses), html.pc-d .page.page-legale { max-width: none !important; margin: 0 !important; display: grid !important; grid-template-columns: 21rem minmax(0, 52rem); column-gap: 4.5rem; align-items: start; }
  html.pc-d .page.etroite:not(.courses) > *, html.pc-d .page.page-legale > * { grid-column: 2; min-width: 0; }
  html.pc-d .page.etroite:not(.courses) > .page-tete, html.pc-d .page.page-legale > .page-tete, html.pc-d .page.page-legale > h1:first-child { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 7.2rem; display: block !important; }
  html.pc-d .page.etroite:not(.courses) > .page-tete > h1 { font-size: 3rem !important; margin-bottom: .8rem !important; }
  html.pc-d .page.etroite:not(.courses) > .page-tete .actions { justify-content: flex-start; margin-top: 1.2rem !important; }

  html.pc-d body[data-page="menus"] .liste-menus, html.pc-d body[data-page="menus"] .menus-liste { gap: 0 !important; }

  html.pc-d .mosaique { columns: 5 !important; column-gap: 1.1rem !important; }
  html.pc-d .mosaique .carte { background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; margin-bottom: 1.3rem !important; }
  html.pc-d .mosaique .carte .carte-img { overflow: visible !important; border-radius: 0 !important; background: none !important; height: auto !important; aspect-ratio: auto !important; }
  html.pc-d .mosaique .carte .carte-img::after { display: none !important; }
  html.pc-d .mosaique .carte .carte-img > img, html.pc-d .mosaique .carte .carte-img > .img-vide { border-radius: 12px !important; width: 100%; display: block; }
  html.pc-d .mosaique .carte .carte-dessus { position: static !important; padding: .6rem .1rem 0 !important; background: none !important; }
  html.pc-d .mosaique .carte .carte-dessus h3 { color: var(--texte) !important; text-shadow: none !important; font: 800 1rem/1.25 var(--police) !important; }
  html.pc-d .mosaique .carte .carte-meta, html.pc-d .mosaique .carte .carte-meta .ic { color: var(--texte-doux) !important; text-shadow: none !important; }
}


@media (min-width: 1200px) {
  html.pc-d .etageres-frigo { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 901px) {
  html.pc-d .page.etroite:not(.courses) { padding-bottom: 5rem; }
}


@media (min-width: 901px) {
  html.pc-d .page.courses { grid-template-columns: 14rem minmax(0, 1fr) 19rem !important; column-gap: 2.6rem !important; }
  html.pc-d .page.courses > .page-tete { display: none !important; }
  html.pc-d .page.courses > .rayons-nav { grid-row: 1 !important; }
  html.pc-d .page.courses > .rayons-nav::before { display: none !important; content: none !important; }
  html.pc-d .page.courses .cp-sur { margin: 0; font: 800 .74rem var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  html.pc-d .page.courses .cp-titre { margin: .55rem 0 .3rem; font: 800 2.7rem/1 var(--police-titre); letter-spacing: -.035em; color: var(--texte); white-space: nowrap; }
  html.pc-d .page.courses .cp-sous { margin: 0 0 1.3rem; font-weight: 700; color: var(--texte-doux); }
  html.pc-d .page.courses > .rayons-nav button.actif { background: var(--surface); color: var(--texte); box-shadow: 0 0 0 1px var(--bord); }
  html.pc-d .page.courses > .rayons-nav button.actif small { color: var(--texte); }
  html.pc-d .page.courses > .ajout-article { grid-column: 1 !important; grid-row: 2 !important; margin: 1.2rem 0 0 !important; position: sticky; top: calc(6.6rem + 26rem); }
  html.pc-d .page.courses > .rayons { grid-row: 1 / span 3 !important; }
  html.pc-d .page.courses > .aide { grid-column: 2; grid-row: 4 !important; }
  html.pc-d .page.courses > .courses-cote { grid-column: 3; grid-row: 1 / span 4; position: sticky; top: 6.6rem; display: flex !important; flex-direction: column; gap: 1rem; }
  html.pc-d .courses-cote .cc-drive { background: var(--encre); color: #fff; border-radius: 18px; padding: 1.2rem; }
  html.pc-d .courses-cote .cc-drive > b { display: block; font: 800 1rem var(--police-titre); margin-bottom: .8rem; }
  html.pc-d .courses-cote .cc-drive > div { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  html.pc-d .courses-cote .cc-drive a { background: rgb(255 255 255 / 8%); border-radius: 10px; padding: .7rem .4rem; text-align: center; font: 800 .85rem var(--police); color: #fff; text-decoration: none; }
  html.pc-d .courses-cote .cc-drive a:hover { background: rgb(255 255 255 / 16%); }
  html.pc-d .courses-cote .cc-envoyer { width: 100%; justify-content: center; border-radius: 999px !important; padding: .7rem 1rem !important; font-weight: 800; }
  html.pc-d .courses-cote .cc-recettes > b { display: block; font: 800 .95rem var(--police); margin: .4rem 0 .5rem; }
  html.pc-d .courses-cote .cc-recettes a { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; color: var(--texte); text-decoration: none; }
  html.pc-d .courses-cote .cc-recettes a > img, html.pc-d .courses-cote .cc-recettes a > .img-vide { width: 2.9rem; height: 2.9rem; border-radius: 9px; object-fit: cover; flex: none; }
  html.pc-d .courses-cote .cc-recettes a > span { min-width: 0; display: flex; flex-direction: column; }
  html.pc-d .courses-cote .cc-recettes a b { font: 800 .85rem var(--police); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.pc-d .courses-cote .cc-recettes a small { font-size: .76rem; color: var(--texte-doux); }
  html.pc-d .courses-cote .cc-recettes a:hover b { color: var(--accent); }
  html.pc-d .courses-cote .cc-plus { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: .4rem 0 0; }
  html.pc-d .courses-cote .cc-plus .btn { padding: 0 !important; font-size: .82rem !important; color: var(--texte-doux) !important; gap: .35rem; }
  html.pc-d .courses-cote .cc-plus .btn .ic { width: .95rem; height: .95rem; }
  html.pc-d .page.courses > .rayons { padding: 2rem 2.4rem !important; }
  html.pc-d .page.courses .rayon li { grid-template-columns: minmax(0, 1fr) auto auto auto !important; border-bottom: 1px dashed #e2d9ca !important; padding: .62rem 0 !important; }
  html.pc-d .page.courses .rayon li > small { display: none !important; }
  html.pc-d .page.courses .rayon li > label { display: flex !important; align-items: baseline !important; gap: .75rem !important; }
  html.pc-d .page.courses .rayon li > label::after { content: ''; flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 1.5px dotted #cfc5b5; transform: translateY(-.25rem); margin-right: .2rem; }
  html.pc-d .page.courses .rayon li > label input { appearance: none; -webkit-appearance: none; width: 1.15rem !important; height: 1.15rem !important; border-radius: 50%; border: 1.5px solid #cfc5b5; background: var(--surface); margin: 0 !important; align-self: center; flex: none; cursor: pointer; display: grid; place-items: center; }
  html.pc-d .page.courses .rayon li > label input:checked { background: #9fd3ae; border-color: #9fd3ae; }
  html.pc-d .page.courses .rayon li > label input:checked::after { content: ''; width: .32rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
  html.pc-d .page.courses .rayon li .article { flex: 0 1 auto; font-size: 1rem !important; font-weight: 600 !important; }
  html.pc-d .page.courses .rayon li .qte { font-weight: 800 !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--texte) !important; }
  html.pc-d .page.courses .rayon li.coche { opacity: .45; }
  html.pc-d .page.courses .rayon li.coche .article, html.pc-d .page.courses .rayon li.coche .qte { text-decoration: line-through; }
  html.pc-d .page.courses .rayon li .ranger-article, html.pc-d .page.courses .rayon li .retirer-article { width: 1.7rem; height: 1.7rem; padding: 0; }
}


@media (min-width: 901px) {
  html.pc-d .page.courses .rayon li:not(:hover):not(:focus-within) .ranger-article, html.pc-d .page.courses .rayon li:not(:hover):not(:focus-within) .retirer-article { display: none !important; }
}


@media (min-width: 901px) {
  html.pc-d .accueil .une:not([hidden]) { display: grid !important; grid-template-columns: 5fr 7fr; gap: 3.4rem; align-items: center; margin: .4rem 0 2.6rem; }
  html.pc-d .accueil .une + .filtres-une + .carrousel[hidden] { display: none !important; }
  html.pc-d .accueil .une-sur { margin: 0; font: 800 .78rem var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  html.pc-d .accueil .une h1 { margin: .9rem 0 1rem; font: 800 3.6rem/.98 var(--police-titre); letter-spacing: -.035em; color: var(--texte); }
  html.pc-d .accueil .une-desc { margin: 0 0 1.5rem; font-size: 1.1rem; line-height: 1.5; color: var(--texte-doux); max-width: 30rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  html.pc-d .accueil .une-boutons { display: flex; gap: .7rem; }
  html.pc-d .accueil .une-boutons .btn { border-radius: 999px !important; padding: .9rem 1.5rem !important; font-weight: 800; }
  html.pc-d .accueil .une-boutons .btn.secondaire { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--bord); }
  html.pc-d .accueil .une-chiffres { display: flex; gap: 2.2rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--bord); }
  html.pc-d .accueil .une-chiffres b { display: block; font: 800 2rem/1 var(--police-titre); color: var(--texte); }
  html.pc-d .accueil .une-chiffres small { font-weight: 700; color: var(--texte-doux); font-size: .88rem; }
  html.pc-d .accueil .une-photo { position: relative; display: block; }
  html.pc-d .accueil .une-photo > img, html.pc-d .accueil .une-photo > .img-vide { width: 100%; height: 30rem; object-fit: cover; border-radius: 12px; display: block; }
  html.pc-d .accueil .une-etiquette { position: absolute; left: -1.8rem; bottom: 2rem; background: var(--citron); color: var(--encre); padding: .8rem 1.1rem; border-radius: 6px; font: 800 1rem var(--police-titre); transform: rotate(-3deg); box-shadow: 0 8px 20px rgb(22 37 27 / 15%); }
  html.pc-d .accueil .filtres-une { display: flex !important; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.2rem; }
  html.pc-d .accueil .filtres-une a { padding: .6rem 1.05rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--bord); font: 800 .9rem var(--police); color: var(--texte); text-decoration: none; }
  html.pc-d .accueil .filtres-une a:hover { box-shadow: inset 0 0 0 1.5px var(--texte); }
  html.pc-d .accueil .filtres-une a.actif { background: var(--encre); color: #fff; box-shadow: none; }
  html.pc-d .accueil .hero, html.pc-d .accueil .bloc-menu { display: none !important; }
  html.pc-d .accueil .bloc > header h2 { align-items: baseline !important; }
  html.pc-d .accueil .bloc-sous { font: 700 .9rem var(--police); color: var(--texte-doux); letter-spacing: 0; margin-left: .4rem; }
}


@media (min-width: 901px) {
  html.pc-d .accueil .carrousel { display: none !important; }
  html.pc-d body[data-page="menus"] .page-tete { display: grid !important; grid-template-columns: auto 1fr auto !important; align-items: end !important; column-gap: 1.6rem !important; row-gap: .7rem !important; }
  html.pc-d body[data-page="menus"] .page-tete > .sur-titre { display: block !important; grid-column: 1 / -1; grid-row: 1 !important; margin: 0; font: 800 .78rem var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  html.pc-d body[data-page="menus"] .page-tete > h1 { grid-column: 1 !important; grid-row: 2 !important; }
  html.pc-d body[data-page="menus"] .page-tete > .bilan-tete { display: flex !important; grid-column: 2 !important; grid-row: 2 !important; margin: 0 0 .45rem !important; align-self: end; }
  html.pc-d body[data-page="menus"] .page-tete > .bilan-tete .bm-foyer { display: inline-block !important; background: var(--vert-doux) !important; color: var(--vert) !important; box-shadow: none !important; font-weight: 800; }
  html.pc-d body[data-page="menus"] .page-tete > .aide { display: none !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions { grid-column: 3 !important; grid-row: 2 !important; margin: 0 0 .3rem !important; position: relative !important; flex-wrap: nowrap !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > .btn:not([data-action="courses-menu"]):not([data-action="regenerer-menu"]):not(.plier) { display: none !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > .plier { display: inline-flex !important; width: 2.8rem !important; padding: 0 !important; justify-content: center; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > [data-action="regenerer-menu"] { order: 1 !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions > .plier { order: 2 !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions .regen-detail { display: none; }
  html.pc-d body[data-page="menus"] .page-tete > .actions.ouvert > .btn:not([data-action="courses-menu"]):not([data-action="regenerer-menu"]):not(.plier) { display: flex !important; position: absolute !important; right: 0; width: 15rem !important; z-index: 30; justify-content: flex-start; background: var(--surface) !important; box-shadow: 0 10px 30px rgb(22 37 27 / 15%) !important; border-radius: 12px !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions.ouvert > [data-action="batch-menu"] { top: 3.4rem; }
  html.pc-d body[data-page="menus"] .page-tete > .actions.ouvert > a.btn { top: 6.4rem; }
  html.pc-d body[data-page="menus"] .page-tete > .actions.ouvert > [data-action="imprimer"] { top: 9.4rem; }
  html.pc-d body[data-page="menus"] .page-tete > .actions.ouvert > [data-action="supprimer-menu"] { top: 12.4rem; }
  html.pc-d body[data-page="menus"] .bilan-menu:not(.bilan-tete) { display: none !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions .btn[data-action="regenerer-menu"] { background: var(--accent) !important; color: #fff !important; box-shadow: none !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions .btn[data-action="courses-menu"] { background: var(--surface) !important; color: var(--texte) !important; box-shadow: inset 0 0 0 1.5px var(--bord) !important; }
}


@media (min-width: 901px) {
  html.pc-d .page.courses .rayon li { display: flex !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: .4rem !important; }
  html.pc-d .page.courses .rayon li > label { flex: 1 1 auto !important; min-width: 0 !important; align-items: flex-start !important; }
  html.pc-d .page.courses .rayon li > label input { align-self: flex-start !important; margin-top: .2rem !important; }
  html.pc-d .page.courses .rayon li > label::after { align-self: flex-start; margin-top: 1rem; }
  html.pc-d .page.courses .rayon li .article { flex: 0 0 auto !important; max-width: 72% !important; min-width: 0; }
  html.pc-d .page.courses .rayon li > label:has(.au-frigo)::after { display: none !important; }
  html.pc-d .page.courses .rayon li > label:has(.au-frigo) .article { flex: 1 1 auto !important; max-width: none !important; }
  html.pc-d .page.courses .rayon li .article .au-frigo { display: block !important; max-width: none !important; white-space: normal !important; line-height: 1.35; margin-top: .15rem; }
  html.pc-d .page.courses .rayon li .qte { flex: none !important; align-self: flex-start; margin-top: .05rem !important; }
  html.pc-d body[data-page="menus"] .page-tete > .bilan-tete { flex-wrap: nowrap !important; gap: .4rem !important; }
  html.pc-d body[data-page="menus"] .page-tete > .bilan-tete span { font-size: .85rem !important; padding: .4rem .8rem !important; white-space: nowrap; }
  html.pc-d body[data-page="menus"] .page-tete > .bilan-tete span:nth-child(3) { display: none !important; }
}


@media (min-width: 901px) {
  html.pc-d .page.fiche, html.pc-d .fiche { grid-template-columns: minmax(16rem, 32%) minmax(0, 1fr) !important; }
  html.pc-d .fiche > :not(.fiche-tete), html.pc-d .fiche .fiche-intro { margin-left: 2.6rem !important; margin-right: max(2rem, var(--pc-marge)) !important; }
  html.pc-d .fiche .fiche-corps { grid-template-columns: 17.5rem minmax(0, 1fr) !important; column-gap: 2.4rem !important; }
  html.pc-d .fiche .ingredients li label > span { grid-template-columns: 4.4rem minmax(0, 1fr) !important; }
  html.pc-d .fiche .fiche-intro > h1 { font-size: clamp(2.3rem, 3.2vw, 3.2rem) !important; }
  html.pc-d body[data-page="menus"] .page-tete { grid-template-columns: minmax(0, 1fr) auto !important; }
  html.pc-d body[data-page="menus"] .page-tete > h1 { grid-column: 1 !important; grid-row: 2 !important; white-space: nowrap; }
  html.pc-d body[data-page="menus"] .page-tete > .bilan-tete { grid-column: 1 !important; grid-row: 3 !important; margin: .2rem 0 0 !important; }
  html.pc-d body[data-page="menus"] .page-tete > .actions { grid-column: 2 !important; grid-row: 2 / span 2 !important; align-self: end; }
  html.pc-d body[data-page="menus"] .case .a-decongeler { left: .35rem !important; top: .35rem !important; right: auto !important; max-width: 8.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem !important; padding: .2rem .45rem !important; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  html.pc-d .page.fiche, html.pc-d .fiche { grid-template-columns: minmax(14rem, 28%) minmax(0, 1fr) !important; }
  html.pc-d .fiche .fiche-corps { grid-template-columns: 16rem minmax(0, 1fr) !important; }
}


@media (min-width: 901px) {
  html.pc-d .etageres-frigo { display: block !important; columns: 2; column-gap: 1.2rem; }
  html.pc-d .etageres-frigo > * { break-inside: avoid; display: inline-block !important; width: 100%; margin: 0 0 1.2rem !important; vertical-align: top; }
}
@media (min-width: 1200px) { .etageres-frigo { columns: 3 !important; } }


@media (min-width: 901px) {
  html.pc-d .page.courses .rayon li > label { padding-right: 0 !important; flex: 1 1 0% !important; }
  html.pc-d .page.courses .rayon li .qte { position: static !important; transform: none !important; }
  html.pc-d .page.courses .rayon li .ranger-article, html.pc-d .page.courses .rayon li .retirer-article { position: static !important; transform: none !important; }
}


@media (min-width: 1200px) { .etageres-frigo { columns: 2 !important; column-gap: 1.4rem !important; } }


@media (min-width: 901px) {
  html.pc-d .fiche .etapes-recette ol { list-style: none !important; padding: 0 !important; margin: 0 !important; counter-reset: etape; }
  html.pc-d .fiche .etapes-recette ol > li:not(.section) { counter-increment: etape; display: grid !important; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: .4rem; margin: 0 0 1.4rem !important; padding: 0 !important; }
  html.pc-d .fiche .etapes-recette ol > li:not(.section)::marker { content: none; }
  html.pc-d .fiche .etapes-recette ol > li:not(.section)::before { content: counter(etape, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 6; font: 800 2rem/1 var(--police-titre); letter-spacing: -.03em; color: var(--accent); }
  html.pc-d .fiche .etapes-recette ol > li:not(.section) > * { grid-column: 2; }
  html.pc-d .fiche .etapes-recette ol > li:not(.section) > p:first-child { margin: .1rem 0 0 !important; font-size: 1.04rem; line-height: 1.55; }
  html.pc-d .fiche .etapes-recette ol > li.section { margin: .4rem 0 .6rem 3.8rem !important; padding: 0 !important; font: 800 .74rem var(--police) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux) !important; list-style: none; }
  html.pc-d .fiche .etapes-recette ol > li.section::marker { content: none; }
  html.pc-d .fiche .etapes-recette ol > li.section + li:not(.section) { margin-top: 0 !important; }
}


@media (min-width: 901px) {
  html.pc-d .page.courses .rayon li > label::after { display: none !important; }
  html.pc-d .page.courses .rayon li .article { flex: 1 1 auto !important; max-width: none !important; }
  html.pc-d .page.courses .rayon li { border-bottom: 1px solid #efe8dc !important; }
}


@media (min-width: 901px) {
  .page.courses .rayon li .ranger-article, .page.courses .rayon li .retirer-article,
  html.pc-d .page.courses .rayon li:not(:hover):not(:focus-within) .ranger-article, html.pc-d .page.courses .rayon li:not(:hover):not(:focus-within) .retirer-article { display: grid !important; place-items: center; flex: none !important; width: 1.6rem !important; height: 1.6rem !important; margin: 0 !important; padding: 0 !important; opacity: 0; transition: opacity .12s; }
  html.pc-d .page.courses .rayon li:hover .ranger-article, html.pc-d .page.courses .rayon li:hover .retirer-article, html.pc-d .page.courses .rayon li:focus-within .ranger-article, html.pc-d .page.courses .rayon li:focus-within .retirer-article { opacity: 1; }
  html.pc-d .page.courses .rayon li .ranger-article .ic, html.pc-d .page.courses .rayon li .retirer-article .ic { width: .95rem; height: .95rem; }
  html.pc-d .page.courses .rayon li[data-basique] .retirer-article { margin-left: 1.6rem !important; }
}


@media (min-width: 901px) {
  html.pc-d .page.foyer { max-width: none !important; display: grid !important; grid-template-columns: 21rem minmax(0, 1fr); column-gap: 4rem; align-items: start; }
  html.pc-d .page.foyer > * { grid-column: 2; min-width: 0; }
  html.pc-d .page.foyer > .foyer-bandeau { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 7.2rem; background: none !important; color: var(--texte) !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
  html.pc-d .page.foyer > .foyer-bandeau::before { content: 'Le foyer'; display: block; font: 800 .78rem var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
  html.pc-d .page.foyer > .foyer-bandeau::after { display: none !important; }
  html.pc-d .page.foyer > .foyer-bandeau h1 { font: 800 3.2rem/1 var(--police-titre) !important; letter-spacing: -.035em; color: var(--texte) !important; margin: 0 0 .5rem !important; }
  html.pc-d .page.foyer > .foyer-bandeau > p { color: var(--texte-doux) !important; font-weight: 700; margin: 0 0 1.2rem !important; opacity: 1 !important; }
  html.pc-d .page.foyer > .foyer-bandeau .visages { margin: 0 0 1.6rem !important; }
  html.pc-d .page.foyer > .foyer-bandeau .visages > * { border-color: var(--fond) !important; }
  html.pc-d .page.foyer > .foyer-bandeau .visages button { background: var(--surface) !important; color: var(--texte) !important; box-shadow: inset 0 0 0 1.5px var(--bord) !important; }
  html.pc-d .page.foyer .chiffres-foyer { display: flex !important; flex-direction: column; gap: 0 !important; border-top: 3px solid var(--texte); }
  html.pc-d .page.foyer .chiffres-foyer > * { background: none !important; box-shadow: none !important; border-radius: 0 !important; padding: .9rem 0 !important; border-bottom: 1px solid var(--bord); color: var(--texte) !important; display: flex !important; align-items: baseline; gap: .8rem; }
  html.pc-d .page.foyer .chiffres-foyer b, html.pc-d .page.foyer .chiffres-foyer strong { font: 800 2rem/1 var(--police-titre) !important; color: var(--texte) !important; }
  html.pc-d .page.foyer .chiffres-foyer small, html.pc-d .page.foyer .chiffres-foyer span { color: var(--texte-doux) !important; font-weight: 700; }
  html.pc-d .page.foyer .foyer-titre { font: 800 1.7rem var(--police-titre) !important; letter-spacing: -.02em; margin: 0 0 1rem !important; }
  html.pc-d .page.foyer .foyer-titre small { font: 700 .9rem var(--police); color: var(--texte-doux); margin-left: .5rem; letter-spacing: 0; }
  html.pc-d .page.foyer .membres-cartes { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)) !important; gap: 1rem !important; overflow: visible !important; margin: 0 0 2.2rem !important; padding: 0 !important; }
  html.pc-d .page.foyer .membre-carte { width: auto !important; min-height: 9.5rem; background: var(--surface) !important; box-shadow: 0 0 0 1px var(--bord) !important; border-radius: 16px !important; padding: 1.2rem !important; align-items: flex-start !important; text-align: left !important; }
  html.pc-d .page.foyer .membre-carte:hover { box-shadow: 0 0 0 1.5px var(--texte) !important; }
  html.pc-d .page.foyer .membre-carte b { font: 800 1.15rem var(--police-titre) !important; }
  html.pc-d .page.foyer .membre-carte.ajout { background: none !important; box-shadow: none !important; border: 1.5px dashed var(--bord) !important; }
  html.pc-d .page.foyer .raccourcis { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem !important; margin: 0 0 2.2rem !important; }
  html.pc-d .page.foyer .raccourcis a { padding: 1.1rem 1.2rem !important; border-radius: 16px !important; box-shadow: 0 0 0 1px var(--bord) !important; }
  html.pc-d .page.foyer .raccourcis a:hover { box-shadow: 0 0 0 1.5px var(--texte) !important; }
  html.pc-d .page.foyer .reglages-liste { border-radius: 16px !important; box-shadow: 0 0 0 1px var(--bord) !important; }

  html.pc-d .espace-programme { max-width: none !important; margin: 0 !important; display: grid !important; grid-template-columns: 21rem minmax(0, 52rem); column-gap: 4rem; align-items: start; }
  html.pc-d .espace-programme > * { grid-column: 2; min-width: 0; }
  html.pc-d .espace-programme > .ep-tete { grid-column: 1; grid-row: 1; position: sticky; top: 7.2rem; margin: 0 !important; padding: 0 !important; background: none !important; display: block !important; }
  html.pc-d .espace-programme > .ep-tete::before { content: 'Le programme'; display: block; font: 800 .78rem var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
  html.pc-d .espace-programme > .ep-tete h1 { font: 800 3.2rem/1 var(--police-titre) !important; margin: 0 0 1rem !important; }
  html.pc-d .espace-programme > .ep-tete .ep-retour { display: none !important; }
  html.pc-d .espace-programme > .ep-tete .ep-personnes { display: flex !important; flex-wrap: wrap; gap: .4rem !important; margin: 0 0 .8rem !important; }
  html.pc-d .espace-programme > .ep-tete .ep-sous { color: var(--texte-doux); font-weight: 700; margin: 0 !important; }
  html.pc-d .espace-programme > .ep-onglets { grid-column: 1; grid-row: 2; position: sticky; top: 19rem; display: flex !important; flex-direction: column; gap: .15rem !important; background: none !important; padding: 0 !important; margin: 1.6rem 0 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  html.pc-d .espace-programme > .ep-onglets a { justify-content: flex-start !important; text-align: left !important; padding: .65rem .9rem !important; border-radius: 10px !important; font: 800 .98rem var(--police) !important; color: var(--texte-doux) !important; background: none !important; box-shadow: none !important; flex: none !important; }
  html.pc-d .espace-programme > .ep-onglets a:hover { background: var(--surface) !important; color: var(--texte) !important; }
  html.pc-d .espace-programme > .ep-onglets a.actif { background: var(--surface) !important; color: var(--texte) !important; box-shadow: 0 0 0 1px var(--bord) !important; }
  html.pc-d .espace-programme > .ep-corps { grid-row: 1 / span 3; }
  html.pc-d .espace-programme > .ep-avertissement { grid-row: 4; }
}


@media (min-width: 901px) {
  html.pc-d .assistant { max-width: none !important; margin: 0 !important; display: grid !important; grid-template-columns: 21rem minmax(0, 52rem); column-gap: 4rem; align-items: start; min-height: calc(100vh - 10rem); }
  html.pc-d .assistant > .page-tete { grid-column: 1; grid-row: 1 / span 2; position: sticky !important; top: 7.2rem; display: block !important; margin: 0 !important; padding: 0 !important; background: none !important; transform: none !important; opacity: 1 !important; visibility: visible !important; height: auto !important; }
  html.pc-d .assistant > .page-tete::before { content: 'L’assistant'; display: block; font: 800 .78rem var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
  html.pc-d .assistant > .page-tete > h1 { display: block !important; font: 800 3.2rem/1 var(--police-titre) !important; letter-spacing: -.035em; margin: 0 0 1rem !important; position: static !important; }
  html.pc-d .assistant > .page-tete > .aide { display: block !important; font-size: .98rem !important; line-height: 1.55; color: var(--texte-doux) !important; margin: 0 0 1.2rem !important; }
  html.pc-d .assistant > .page-tete .actions { position: static !important; display: flex !important; justify-content: flex-start !important; }
  html.pc-d .assistant > .page-tete .actions .btn { width: auto !important; height: 2.8rem !important; padding: 0 1.15rem !important; border-radius: 999px !important; font-size: .92rem !important; font-weight: 800 !important; gap: .5rem !important; }
  html.pc-d .assistant > .fil-chat { grid-column: 2; grid-row: 1; padding: 0 0 1rem !important; margin: 0 !important; max-width: none !important; }
  html.pc-d .assistant > .bas-chat { grid-column: 2; grid-row: 2; position: sticky !important; bottom: 0; left: auto !important; right: auto !important; width: auto !important; transform: none !important; background: linear-gradient(to top, var(--fond) 80%, transparent) !important; padding: 1.2rem 0 1.4rem !important; margin: 0 !important; z-index: 5; box-shadow: none !important; border: 0 !important; }
  html.pc-d .assistant .bas-chat .saisie-chat { position: static !important; left: auto !important; right: auto !important; bottom: auto !important; width: auto !important; margin: 0 !important; }
  html.pc-d .assistant .bas-chat .suggestions-chat { flex-wrap: wrap !important; overflow: visible !important; margin: 0 0 .7rem !important; padding: 0 !important; -webkit-mask-image: none !important; mask-image: none !important; }
}


@media (min-width: 901px) {
  html.pc-d .assistant > .fil-chat { min-height: calc(100vh - 19rem); display: flex !important; flex-direction: column; justify-content: flex-end; }
}


@media (min-width: 901px) {
  html.pc-d .assistant > .fil-chat { background: var(--surface) !important; border-radius: 22px 22px 0 0 !important; box-shadow: 0 0 0 1px var(--bord), 0 18px 40px rgb(22 37 27 / 6%) !important; padding: 0 1.6rem 1.2rem !important; min-height: calc(100vh - 17.5rem) !important; gap: .9rem; }
  html.pc-d .assistant > .fil-chat::before { content: 'ChowMe · votre assistant cuisine'; order: -1; margin: 0 -1.6rem auto !important; padding: 1rem 1.6rem 1rem 3.6rem; border-bottom: 1px solid var(--bord); font: 800 .98rem var(--police); color: var(--texte);
    background: radial-gradient(circle at 2.1rem 50%, var(--vert) 0 .32rem, transparent .34rem), var(--surface); border-radius: 22px 22px 0 0; position: sticky; top: 5.2rem; z-index: 3; }
  html.pc-d .assistant > .fil-chat .bulle.ia { background: var(--fond) !important; box-shadow: none !important; border-radius: 4px 18px 18px 18px !important; }
  html.pc-d .assistant > .bas-chat { background: var(--surface) !important; border-radius: 0 0 22px 22px !important; box-shadow: 0 0 0 1px var(--bord), 0 18px 40px rgb(22 37 27 / 6%) !important; padding: .9rem 1.6rem 1.2rem !important; bottom: 1.2rem !important; border-top: 1px solid var(--bord) !important; clip-path: inset(0 -3rem -3rem -3rem); }
  html.pc-d .assistant .bas-chat .suggestions-chat .puce { background: var(--fond) !important; box-shadow: none !important; }
  html.pc-d .assistant .bas-chat .saisie-chat { background: var(--fond) !important; box-shadow: none !important; border-radius: 999px !important; }
  html.pc-d .assistant .bas-chat .saisie-chat textarea { background: none !important; }
}


@media (min-width: 901px) {
  html.pc-d body[data-page="assistant"] { overflow: hidden !important; height: 100vh; }
  html.pc-d body[data-page="assistant"] main { padding-bottom: 1.4rem !important; }
  html.pc-d .assistant { height: calc(100vh - 5.2rem - 2.4rem - 1.4rem) !important; min-height: 0 !important; grid-template-rows: minmax(0, 1fr) auto; }
  html.pc-d .assistant > .page-tete { position: static !important; align-self: start; }
  html.pc-d .assistant > .fil-chat { min-height: 0 !important; height: 100%; overflow-y: auto !important; overscroll-behavior: contain; justify-content: flex-start !important; scrollbar-width: thin; }
  html.pc-d .assistant > .fil-chat::before { top: 0 !important; margin-bottom: 0 !important; }
  html.pc-d .assistant > .fil-chat > .salut-chat { margin-top: auto !important; }
  html.pc-d .assistant > .bas-chat { position: static !important; bottom: auto !important; }
}


@media (min-width: 901px) {
  html.pc-d .courses-cote .cc-remplir { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; border: 0; border-radius: 999px; background: var(--accent); color: #fff; padding: .75rem 1rem; font: 800 .92rem var(--police); cursor: pointer; margin: 0 0 .5rem; }
  html.pc-d .courses-cote .cc-remplir:hover { background: var(--accent-fonce); }
  html.pc-d .courses-cote .cc-installer { display: block; width: 100%; border: 0; background: none; color: rgb(255 255 255 / 70%); font: 700 .8rem var(--police); text-decoration: underline; cursor: pointer; margin: 0 0 .9rem; }
}


@media (min-width: 901px) {
  html.pc-d .page.courses > .rayons-nav { grid-row: 1 / span 3 !important; }
  html.pc-d .page.courses > .ajout-article { grid-column: 2 !important; grid-row: 1 !important; position: static !important; top: auto !important; margin: 0 0 1rem !important; }
  html.pc-d .page.courses > .rayons { grid-row: 2 !important; }
  html.pc-d .page.courses > .aide { grid-row: 3 !important; }
}

