/* KetoPresto : site de recettes grand public. Fond blanc, police Nunito (arrondie), accent orange, photos en grand. */

@font-face { font-family: "Nunito"; src: url("polices/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; ascent-override: 104%; descent-override: 34%; line-gap-override: 0%; }
@font-face { font-family: "Nunito"; src: url("polices/nunito-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; ascent-override: 104%; descent-override: 34%; line-gap-override: 0%; }
@font-face { font-family: "Nunito"; src: url("polices/nunito-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; ascent-override: 104%; descent-override: 34%; line-gap-override: 0%; }
@font-face { font-family: "Nunito"; src: url("polices/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; ascent-override: 104%; descent-override: 34%; line-gap-override: 0%; }

:root {
  --blanc: #fff;
  --fond: #f4f3f0;
  --encre: #22201d;
  --encre-2: #6b665f;
  --trait: #e8e4dd;
  --accent: #e2572e;
  --accent-fonce: #c2461f;
  --accent-clair: #fdebe4;
  --vert: #2f6b4f;
  --vert-clair: #e3f0e8;
  --beurre: #e2a92e;
  --rayon: 12px;
  --ombre: 0 2px 12px rgba(40, 30, 20, .1);
  --police: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --large: 1140px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 1.0625rem/1.6 var(--police); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.cadre { width: min(100% - 32px, var(--large)); margin-inline: auto; }
.discret { color: var(--encre-2); font-weight: 400; font-size: .92em; }
h2 .discret, h1 .discret { font-size: .58em; font-weight: 500; letter-spacing: 0; }
.visuellement-cache, .piege { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--blanc); padding: .5rem 1rem; z-index: 20; }
.evitement:focus { left: 1rem; }
.surtitre, .petites-caps { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.surtitre a { text-decoration: none; }
.chapo { font-size: 1.12rem; color: var(--encre-2); max-width: 46rem; }
.icone { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

/* Boutons et liens d'action */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .98rem/1 var(--police); padding: .85rem 1.35rem; background: var(--accent); color: var(--blanc); border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bouton:hover { background: var(--accent-fonce); }
.bouton-sobre { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.bouton-sobre:hover { background: var(--accent-clair); }
.lien-fleche { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; font-size: .96rem; }
.lien-fleche::after { content: "→"; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent); color: var(--blanc); display: grid; place-content: center; font-size: .8rem; }
.lien-fleche:hover { color: var(--accent-fonce); }

/* En-tête : marque, recherche, menu du jeudi, rubriques */
.entete { background: var(--blanc); box-shadow: 0 2px 14px rgba(40, 30, 20, .07); position: sticky; top: 0; z-index: 10; }
.entete-ligne { display: flex; align-items: center; gap: 1.4rem; padding: .7rem 0; }
.marque { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font: 700 1.45rem/1 var(--police); letter-spacing: -.035em; color: var(--accent); flex: none; }
.marque b { color: var(--encre); font-weight: 700; }
.marque-pastille { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--blanc); display: grid; place-content: center; }
.marque-pastille svg { width: 21px; height: 21px; }
.recherche { flex: 1; display: flex; align-items: center; gap: .6rem; background: var(--fond); border-radius: 999px; padding: 0 .4rem 0 1.1rem; min-width: 0; }
.recherche:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.recherche .icone { color: var(--encre-2); }
.recherche input[type="search"] { flex: 1; border-radius: 0; min-width: 0; border: 0; background: transparent; font: 400 1rem var(--police); color: var(--encre); padding: .72rem 0; outline: none; }
.recherche input[type="search"]::placeholder { color: var(--encre-2); }
.recherche button { border: 0; background: var(--accent); color: var(--blanc); font: 600 .88rem var(--police); padding: .5rem .95rem; border-radius: 999px; cursor: pointer; }
.rubriques { display: flex; justify-content: center; padding: 0 0 .55rem; overflow-x: auto; scrollbar-width: none; }
.rubriques::-webkit-scrollbar { display: none; }
.rubriques a { font-weight: 600; color: var(--accent); padding: .2rem 1.25rem; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.rubriques a + a { border-left: 1px solid var(--trait); }
.rubriques a:hover, .rubriques a[aria-current="page"] { color: var(--encre); }
@media (max-width: 760px) {
  .entete-ligne { flex-wrap: wrap; gap: .6rem 1rem; }
  .recherche { order: 3; flex-basis: 100%; }
  .bouton-menu-jeudi { padding: .6rem .9rem; font-size: .88rem; margin-left: auto; }
  .rubriques { justify-content: flex-start; }
  .rubriques a { padding: .2rem .9rem; }
  .rubriques a:first-child { padding-left: 0; }
}

/* Blocs génériques */
.bloc { padding: 1.4rem 0 2.2rem; }
.bloc-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bloc-tete h2 { margin: 0; }
.page-tete { padding: clamp(1.6rem, 4vw, 2.6rem) 0 1.2rem; }
.page-tete h1 { margin-bottom: .35em; }
.page-simple { padding: 3.5rem 0 4rem; max-width: 40rem; }

/* Tuiles de catégories, encadrées */
.tuiles-cat { list-style: none; margin: 1.4rem 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.tuiles-cat a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; text-decoration: none; }
.tuiles-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tuiles-cat a:hover img { transform: scale(1.05); }
.tuiles-cat a::before { content: ""; position: absolute; inset: 9px; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 6px; z-index: 1; }
.tuiles-cat span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; background: var(--blanc); color: var(--encre); padding: .45rem .85rem; border-radius: 4px; white-space: nowrap; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tuiles-cat a:hover span { color: var(--accent); }
@media (max-width: 860px) { .tuiles-cat { grid-template-columns: repeat(5, 42%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .tuiles-cat li { scroll-snap-align: start; } }

/* Ouverture de l'accueil : la recette du jour et trois autres */
.ouverture { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.3rem; margin-bottom: 2.4rem; }
.une-carte { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; min-height: 400px; color: var(--blanc); text-decoration: none; }
.une-carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.une-carte:hover img { transform: scale(1.03); }
.une-carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgba(0, 0, 0, .74)); }
.une-texte { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.3rem; z-index: 1; }
.pastille-une { display: inline-block; background: var(--accent); color: var(--blanc); font-weight: 600; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .6rem; }
.une-texte h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); margin: 0 0 .4rem; }
.une-texte .infos { color: var(--blanc); font-weight: 600; }
.empile { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; align-content: start; }
.mini-carte a { display: grid; grid-template-columns: 108px 1fr; gap: .9rem; align-items: center; text-decoration: none; }
.mini-carte img { width: 108px; height: 108px; object-fit: cover; border-radius: 10px; }
.mini-carte .petites-caps { margin: 0; font-size: .7rem; }
.mini-carte h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.25; margin: .15rem 0 .3rem; }
.mini-carte a:hover h3 { color: var(--accent); }
.infos { display: flex; flex-wrap: wrap; gap: .2rem .9rem; color: var(--encre-2); font-size: .9rem; margin: 0; }
.infos span { display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 860px) { .ouverture { grid-template-columns: 1fr; } .une-carte { min-height: 330px; } }

/* Cartes de recettes : hautes, titre sur la photo */
.cartes-recettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.carte-recette a { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 4; color: var(--blanc); text-decoration: none; background: var(--fond); }
.carte-recette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.carte-recette a:hover img { transform: scale(1.04); }
.carte-recette a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .76)); }
.carte-bas { position: absolute; left: .9rem; right: .9rem; bottom: .8rem; z-index: 1; }
.carte-recette h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.22; margin: 0 0 .35rem; }
.carte-recette .infos { color: rgba(255, 255, 255, .92); font-size: .86rem; }
.pastille-glucides { position: absolute; top: .7rem; left: .7rem; z-index: 1; background: var(--vert); color: var(--blanc); font-weight: 600; font-size: .82rem; padding: .22rem .62rem; border-radius: 999px; }
.carte-recette[hidden] { display: none; }
@media (max-width: 960px) { .cartes-recettes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cartes-recettes { grid-template-columns: 1fr 1fr; gap: .7rem; } .carte-recette h3 { font-size: .98rem; } }

/* Cartes à légende sous la photo (guides, exemple de menu) */
.cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.2rem; }
.carte a { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; }
.carte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); margin-bottom: .5rem; }
.carte-titre { font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.carte a:hover .carte-titre { color: var(--accent); }
.carte-texte { color: var(--encre-2); font-size: .95rem; }
.carte-chiffres { color: var(--encre-2); font-size: .9rem; }
.carte-chiffres b { color: var(--encre); font-weight: 600; }
.carte-chiffres .sep { margin: 0 .25rem; color: var(--trait); }
@media (max-width: 860px) { .cartes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cartes { grid-template-columns: 1fr; } }

/* Inspiration : pastilles à icônes */
.inspiration { text-align: center; padding: .6rem 0 2.4rem; }
.inspiration h2 { margin-bottom: 1rem; }
.pastilles { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.pastilles a { width: 98px; padding: .85rem .3rem .65rem; border-radius: 14px; background: var(--blanc); box-shadow: var(--ombre); font-weight: 600; font-size: .82rem; display: grid; justify-items: center; gap: .45rem; text-decoration: none; }
.pastilles .icone { width: 32px; height: 32px; color: var(--accent); }
.pastilles a:hover { background: var(--accent-clair); }

/* Liste à vignettes (guides de l'accueil) */
.liste-vignettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.8rem; }
.liste-vignettes a { display: grid; grid-template-columns: 116px 1fr; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--trait); text-decoration: none; }
.liste-vignettes img { width: 116px; height: 116px; object-fit: cover; border-radius: 10px; }
.liste-vignettes h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.3; margin: .1rem 0 .35rem; }
.liste-vignettes a:hover h3 { color: var(--accent); }
.liste-vignettes p { margin: 0; color: var(--encre-2); font-size: .92rem; }
@media (max-width: 760px) { .liste-vignettes { grid-template-columns: 1fr; } .liste-vignettes a { grid-template-columns: 90px 1fr; } .liste-vignettes img { width: 90px; height: 90px; } }

/* Outils de l'accueil */
.outils { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.outil { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: center; text-decoration: none; background: var(--fond); border-radius: var(--rayon); padding: 1.2rem 1.4rem; }
.outil:hover { background: var(--accent-clair); }
.outil-titre { font-weight: 700; font-size: 1.15rem; display: block; }
.outil-texte { color: var(--encre-2); font-size: .94rem; display: block; }
@media (max-width: 760px) { .outils { grid-template-columns: 1fr; } }
.bols { display: flex; }
.bols img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blanc); box-shadow: var(--ombre); }
.bols img + img { margin-left: -14px; }
.trois-colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.trois-colonnes p { background: var(--fond); border-radius: var(--rayon); padding: 1.1rem 1.2rem; margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .trois-colonnes { grid-template-columns: 1fr; } }

/* Encart du menu de la semaine */
.encart-menu { margin: 1.5rem auto 3rem; }
.encart-grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 3rem; align-items: center; background: var(--vert-clair); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.2rem); }
@media (max-width: 860px) { .encart-grille { grid-template-columns: 1fr; } }
.encart-menu .surtitre { color: var(--vert); }
.encart-menu h2 { margin-bottom: .4rem; }
.encart-menu p { color: var(--encre-2); }
.formulaire-menu label { display: block; font-weight: 600; margin-bottom: .45rem; }
.champ-bouton { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.champ-bouton input { flex: 1 1 14rem; min-width: 0; }
input[type="email"], input[type="search"], input[type="number"], select { font: 400 1.02rem var(--police); color: var(--encre); background: var(--blanc); border: 1.5px solid #d6d1c8; border-radius: 999px; padding: .75rem 1.1rem; }
select { border-radius: 10px; }
.encart-menu input[type="email"] { border-color: transparent; }
.menu-inscription { padding-bottom: 1rem; }
.formulaire-large { max-width: 38rem; }
.annonce { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; }
.annonce p { margin: 0; }
.annonce-ok { background: var(--vert-clair); border-left: 4px solid var(--vert); max-width: 38rem; }
.annonce-erreur { background: var(--accent-clair); border-left: 4px solid var(--accent); }

/* Liste des recettes : filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: flex-end; margin-top: 1.2rem; }
.filtres fieldset, .choix-segment { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.filtres legend, .choix-segment legend { width: 100%; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-bottom: .45rem; padding: 0; float: left; }
.filtres label, .choix-segment label { position: relative; cursor: pointer; padding: .45rem .85rem; border: 1.5px solid var(--trait); border-radius: 999px; font-size: .92rem; font-weight: 600; line-height: 1.2; }
.filtres input, .choix-segment input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.filtres label:has(input:checked), .choix-segment label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--blanc); }
.filtres label:has(input:focus-visible), .choix-segment label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.filtres-compte { margin: 0 0 .5rem; color: var(--encre-2); font-size: .93rem; }
.ardoises { padding-bottom: 1rem; }
.ardoise-bloc { margin-bottom: 2.4rem; }
.ardoise-bloc h2 { margin-bottom: 1rem; }
.ardoise-bloc[hidden] { display: none; }
.aucun { padding: 2rem 0; color: var(--encre-2); }
.resultats-recherche { margin-bottom: 2.4rem; }

/* Page recette */
.fil { font-size: .84rem; color: var(--encre-2); padding-top: 1.2rem; margin: 0; }
.fil a { text-decoration: none; } .fil a:hover { color: var(--accent); }
.recette { max-width: 860px; margin: 0 auto; }
.recette-tete { text-align: center; padding: 1.2rem 0 .4rem; }
.recette-tete .petites-caps { display: block; margin-bottom: .45rem; }
.recette-tete h1 { margin-bottom: .55rem; }
.badges { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.badges li { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .84rem; padding: .28rem .75rem; border-radius: 999px; background: var(--vert-clair); color: var(--vert); }
.badges .badge-regime { background: var(--accent-clair); color: var(--accent-fonce); }
.galerie-principale { margin: 0; border-radius: var(--rayon); overflow: hidden; background: var(--fond); }
.galerie-principale img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vignettes { list-style: none; padding: 0; margin: .6rem 0 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.vignettes a { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.vignettes img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .8; transition: opacity .2s; }
.vignettes a:hover img, .vignettes a[aria-current="true"] img { opacity: 1; }
.vignettes a[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--accent); box-shadow: inset 0 0 0 3px var(--blanc); border-radius: inherit; pointer-events: none; }
.mesures { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 2rem; padding: .9rem 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); margin: 0 0 1.1rem; }
.mesures span { display: inline-flex; align-items: center; gap: .45rem; }
.mesures .icone { color: var(--accent); width: 1.3em; height: 1.3em; }
.mesures b { font-weight: 700; }
.actions { display: flex; justify-content: center; gap: .7rem; margin-bottom: 1.6rem; }
.actions[hidden] { display: none; }
.rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; border: 0; background: none; box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); cursor: pointer; }
.rond:hover { background: var(--accent-clair); }
.rond .icone { width: 20px; height: 20px; }
.recette-chapo { text-align: center; color: var(--encre-2); font-size: 1.08rem; max-width: 40rem; margin: 0 auto 2.4rem; }
.titre-trait { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.1rem; }
.titre-trait .icone { color: var(--accent); width: 1.15em; height: 1.15em; }
.titre-trait::after { content: ""; flex: 1; height: 1px; background: var(--encre); opacity: .2; }
.titre-trait .discret { white-space: nowrap; }
.tuiles-ingredients { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1.1rem .9rem; }
.tuiles-ingredients label { position: relative; display: block; text-align: center; font-size: .92rem; line-height: 1.3; cursor: pointer; }
.tuiles-ingredients input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tuile-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: var(--ombre); margin-bottom: .5rem; background: var(--fond); }
.tuile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tuile-photo .icone { position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); color: #c9c3b8; }
.tuiles-ingredients b { display: block; font-weight: 700; font-size: .96rem; }
.tuiles-ingredients input:checked + .tuile-photo img, .tuiles-ingredients input:checked + .tuile-photo .icone { opacity: .4; }
.tuiles-ingredients input:checked + .tuile-photo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.tuiles-ingredients input:checked ~ .tuile-texte { color: var(--encre-2); text-decoration: line-through; opacity: .45; }
.tuiles-ingredients input:focus-visible + .tuile-photo { outline: 2px solid var(--accent); outline-offset: 5px; }
.aide-coche { font-size: .86rem; color: var(--encre-2); margin: 0 0 1rem; }
.allergenes { font-size: .93rem; color: var(--encre-2); margin-bottom: 2.4rem; }
.temps-recette { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: var(--fond); border-radius: var(--rayon); padding: .9rem; margin-bottom: 1.2rem; font-size: .9rem; color: var(--encre-2); }
.temps-recette b { display: block; font-size: 1.15rem; color: var(--encre); }
.temps-recette div + div { border-left: 1px solid var(--trait); }
.etapes ol { list-style: none; counter-reset: etape; margin: 0 0 1.4rem; padding: 0; }
.etapes li { counter-increment: etape; padding: .95rem 0; border-bottom: 1px solid var(--trait); }
.etapes li::before { content: "Étape " counter(etape); display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
/* Étapes à cocher : un rond à gauche, vert coché quand l'étape est faite */
.etapes-cochables li:not(.photo-cuisson) { position: relative; padding-left: 3rem; }
.etapes-cochables label { display: block; cursor: pointer; }
.etapes-cochables input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etapes-cochables .coche-etape { position: absolute; left: 0; top: 1.05rem; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--trait); background: var(--blanc); transition: background-color .15s, border-color .15s; }
.etapes-cochables label:hover .coche-etape { border-color: var(--vert); }
.etapes-cochables input:checked + .coche-etape { border-color: var(--vert); background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 64% no-repeat; }
.etapes-cochables input:focus-visible + .coche-etape { outline: 2px solid var(--accent); outline-offset: 2px; }
.etapes-cochables li:has(input:checked)::before { color: var(--encre-2); opacity: .55; }
.etapes-cochables input:checked ~ .etape-texte { color: var(--encre-2); opacity: .55; }
.etapes li.photo-cuisson { counter-increment: none; padding: 1rem 0; border-bottom: 0; }
.etapes li.photo-cuisson::before { content: none; }
.photo-cuisson img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--rayon); }
.astuce { background: var(--accent-clair); border-radius: var(--rayon); padding: 1rem 1.2rem; margin-bottom: 1.1rem; }
.astuce p:last-child { margin: 0; }
.astuce-titre { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-fonce); margin-bottom: .3rem !important; }
.variante { color: var(--encre-2); margin-bottom: 2.4rem; }
.nutrition { padding: 0 0 2rem; }
.nutri-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1rem; }
.nutri-cases div { background: var(--fond); border-radius: var(--rayon); padding: .9rem .5rem; text-align: center; font-size: .9rem; color: var(--encre-2); }
.nutri-cases b { display: block; font-size: 1.55rem; font-weight: 700; color: var(--encre); line-height: 1.15; }
.nutri-cases .fort { background: var(--vert-clair); color: var(--vert); } .nutri-cases .fort b { color: var(--vert); }
@media (max-width: 560px) { .nutri-cases { grid-template-columns: 1fr 1fr; } }
.repartition { margin: 0 0 1rem; }
.repartition figcaption { font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.repartition svg { width: 100%; height: 14px; display: block; border-radius: 999px; overflow: hidden; }
.r-lipides, .l-lipides { fill: var(--beurre); background: var(--beurre); }
.r-proteines, .l-proteines { fill: var(--vert); background: var(--vert); }
.r-glucides, .l-glucides { fill: var(--accent); background: var(--accent); }
.legende { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; font-size: .9rem; }
.legende i { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .35rem; vertical-align: -.05em; }
.source { font-size: .92rem; color: var(--encre-2); }
.source a { color: var(--accent); font-weight: 600; }
.detail summary { cursor: pointer; font-weight: 600; padding: .4rem 0; color: var(--accent); }
.suite { padding: 1rem 0 1rem; }
.suite h2 { margin-bottom: 1rem; }
@media (max-width: 640px) { .vignettes { gap: .4rem; } .mesures { gap: .4rem 1.2rem; font-size: .95rem; } .temps-recette { font-size: .82rem; } }

/* Tableaux */
.defile { overflow-x: auto; }
.tableau-detail, .tableau-aliments { width: 100%; border-collapse: collapse; font-size: .94rem; margin: .6rem 0; }
.tableau-detail th, .tableau-detail td, .tableau-aliments th, .tableau-aliments td { text-align: left; padding: .5rem .8rem .5rem 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau-detail thead th, .tableau-aliments thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); font-weight: 600; border-bottom: 2px solid var(--encre); white-space: nowrap; }
.tableau-detail td + td, .tableau-aliments td + td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau-aliments .fort, .tableau-detail .fort td { font-weight: 600; }
.tableau-nutrition { width: 100%; border-collapse: collapse; }
.tableau-nutrition th, .tableau-nutrition td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--trait); font-weight: 400; }
.tableau-nutrition td { text-align: right; }

/* Recherche d'aliments */
.outil-recherche { background: var(--fond); padding: 1.3rem; border-radius: var(--rayon); margin-bottom: 2rem; }
.recherche-champs { display: grid; grid-template-columns: 1fr 9rem; gap: 1rem; }
.recherche-champs label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; }
.recherche-mot input { width: 100%; }
.avec-unite { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.avec-unite input { width: 100%; min-width: 0; }
@media (max-width: 520px) { .recherche-champs { grid-template-columns: 1fr; } .recherche-poids { max-width: 10rem; } }
.reperes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
@media (max-width: 860px) { .reperes { grid-template-columns: 1fr; } }
.repere { margin-bottom: 1.6rem; }
.repere-titre { display: flex; align-items: center; gap: .8rem; font-size: 1.2rem; margin-bottom: .2rem; }
.repere-titre img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: var(--ombre); border: 3px solid var(--blanc); }
.bols-tete { margin: 1rem 0 0; }

/* Calculateur */
.calculateur { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; align-items: start; padding-bottom: 1.5rem; }
@media (max-width: 860px) { .calculateur { grid-template-columns: 1fr; } }
.calcul-formulaire { display: flex; flex-direction: column; gap: 1.2rem; }
.calcul-formulaire > label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; }
.calcul-formulaire select { width: 100%; }
.champs-trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.champs-trois label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9rem; }
@media (max-width: 520px) { .champs-trois { grid-template-columns: 1fr 1fr; } }
.calcul-resultat { background: var(--vert); color: var(--blanc); padding: 1.5rem; border-radius: var(--rayon); position: sticky; top: 140px; }
.resultat-titre { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #cfe8d9; margin-bottom: .3rem; }
.resultat-energie { font-size: 1.1rem; margin-bottom: 1rem; }
.chiffre { font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.05; }
.resultat-energie .chiffre { font-size: clamp(2.6rem, 6vw, 3.4rem); }
.resultat-macros { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1rem; border-top: 1px solid rgba(255, 255, 255, .3); }
.resultat-macros div { padding-top: .7rem; display: flex; flex-direction: column-reverse; }
.resultat-macros dd { margin: 0; font-size: 1.55rem; font-weight: 700; }
.resultat-macros dt { font-size: .85rem; opacity: .85; }
.calcul-resultat .discret, .resultat-repas { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.resultat-repas { margin: 0; }
.erreur { color: var(--accent); font-weight: 600; }
.avertissement p { border: 1.5px solid var(--accent); padding: 1rem 1.2rem; border-radius: var(--rayon); max-width: 52rem; }

/* Guides */
.guide-tete { max-width: 52rem; }
.guide-image { margin: 0 auto 2rem; }
.guide-image img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--rayon); }
@media (max-width: 640px) { .guide-image img { aspect-ratio: 4 / 3; } }
.guide-grille { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 3.5rem; align-items: start; padding-bottom: 2rem; }
@media (max-width: 960px) { .guide-grille { grid-template-columns: 1fr; gap: 1rem; } }
.guide-plan { position: sticky; top: 140px; background: var(--fond); border-radius: var(--rayon); padding: 1rem 1.1rem; font-size: .93rem; }
@media (max-width: 960px) { .guide-plan { position: static; } }
.guide-plan ol { margin: 0; padding-left: 1.1rem; }
.guide-plan li { margin-bottom: .45rem; }
.guide-plan a { text-decoration: none; }
.guide-plan a:hover { color: var(--accent); }
.guide-plan-titre { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-bottom: .5rem; }
.guide-texte h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.guide-texte h2:first-child { margin-top: 0; }
.guide-texte ul { padding-left: 1.2rem; }
.guide-texte li { margin-bottom: .45rem; }
.guide-texte .astuce { margin: 1.4rem 0; }
.comparatif { margin: 1.4rem 0 1.6rem; }
.comparatif figcaption { font-weight: 600; margin-bottom: .2rem; }
.comparatif .discret { font-size: .82rem; margin-top: .4rem; }
.guide-recettes { margin: 1.6rem 0; }
.guide-recettes .cartes-recettes { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .guide-recettes .cartes-recettes { grid-template-columns: 1fr 1fr; } }
.guide-illustration { margin: 1.6rem 0 1.8rem; }
.guide-illustration img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); }
.grille-guides { margin-bottom: 3rem; row-gap: 2.2rem; }
.grille-guides .carte-une { grid-column: 1 / -1; }
.grille-guides .carte-une a { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 2rem; row-gap: .4rem; }
.grille-guides .carte-une img { grid-row: span 3; aspect-ratio: 16 / 9; margin: 0; }
.grille-guides .carte-une .carte-titre { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 700; margin-top: 1rem; }
@media (max-width: 860px) { .grille-guides .carte-une a { display: flex; } .grille-guides .carte-une img { margin-bottom: .5rem; } }

/* Menu de la semaine */
.exemple-jour { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.cartes.exemple-cartes { margin-bottom: 2rem; }
.menu-courses { display: flex; align-items: center; gap: 1.4rem; max-width: 52rem; background: var(--fond); border-radius: var(--rayon); padding: 1rem 1.2rem; }
.menu-courses .bols { flex: none; }
.menu-courses p { margin: 0; }
@media (max-width: 600px) { .menu-courses { flex-direction: column; align-items: flex-start; } }

/* Méthode */
.methode-exemple { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.4rem; align-items: start; margin: 1.4rem 0 2rem; }
.methode-exemple img { width: 100%; border-radius: var(--rayon); }
.methode-exemple .tableau-detail { margin-top: 0; }
@media (max-width: 600px) { .methode-exemple { grid-template-columns: 1fr; } .methode-exemple img { max-width: 14rem; } }

/* Boutique des livres */
.couverture-livre { width: 100%; height: auto; aspect-ratio: 148 / 210; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 26px rgba(40, 30, 20, .22), inset 4px 0 0 rgba(0,0,0,.08); }
.livres { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2rem; }
.livre-carte a { display: flex; flex-direction: column; text-decoration: none; }
.livre-carte .couverture-livre { margin-bottom: 1rem; transition: transform .3s ease; }
.livre-carte a:hover .couverture-livre { transform: translateY(-4px); }
.livre-carte h2 { font-size: 1.3rem; margin: 0 0 .2rem; }
.livre-carte a:hover h2 { color: var(--accent); }
.livre-sous-titre { color: var(--encre-2); margin: 0 0 .5rem; font-weight: 500; }
.livre-prix { font-weight: 700; font-size: 1.2rem; color: var(--accent); margin: .4rem 0 0; }
@media (max-width: 860px) { .livres { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } }
.lot { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem 3rem; align-items: center; background: var(--fond); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.4rem); margin-bottom: 2.6rem; }
.lot-couvertures { display: flex; justify-content: center; padding: 1rem 0; }
.lot-couvertures img { width: 28%; aspect-ratio: 148 / 210; object-fit: cover; border-radius: 2px 6px 6px 2px; box-shadow: 0 8px 18px rgba(40, 30, 20, .25); }
.lot-couvertures img + img { margin-left: -12%; }
.lot-couvertures img:nth-child(odd) { transform: rotate(-4deg); } .lot-couvertures img:nth-child(even) { transform: rotate(3deg) translateY(6px); }
.lot h2 { margin-bottom: .4rem; }
@media (max-width: 860px) { .lot { grid-template-columns: 1fr; } }
.achat { margin: 1.2rem 0 1.6rem; }
.case-legale { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--encre-2); margin-bottom: .9rem; cursor: pointer; max-width: 34rem; }
.case-legale input { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .15rem; accent-color: var(--accent); }
.achat .bouton { font-size: 1.05rem; padding: 1rem 1.6rem; }
.achat-bientot { display: inline-block; padding: .8rem 1.3rem; border-radius: 999px; background: var(--fond); color: var(--encre-2); }
.achat-bientot b { color: var(--encre); }
.fiche-livre { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem 3.5rem; padding: 1.4rem 0 3rem; align-items: start; }
@media (max-width: 860px) { .fiche-livre { grid-template-columns: 1fr; } .fiche-images { max-width: 420px; } }
.fiche-images { position: sticky; top: 140px; }
@media (max-width: 860px) { .fiche-images { position: static; } }
.apercus { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.apercus img { width: 100%; aspect-ratio: 148 / 210; object-fit: cover; border: 1px solid var(--trait); border-radius: 3px; }
.fiche-texte h1 { margin-bottom: .3rem; }
.fiche-texte .livre-sous-titre { font-size: 1.15rem; }
.badges-gauche { justify-content: flex-start; margin-top: .8rem; }
.fiche-texte h2 { margin-top: 1.8rem; font-size: 1.3rem; }
.chapitres-livre { padding-left: 1.2rem; margin: 0 0 1rem; }
.chapitres-livre li { margin-bottom: .7rem; }
.chapitre-recettes { display: block; color: var(--encre-2); font-size: .92rem; }
.telechargements { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; }
.telechargements li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: center; background: var(--fond); border-radius: var(--rayon); padding: .8rem; }
.telechargements img { width: 70px; aspect-ratio: 148 / 210; object-fit: cover; border-radius: 2px 5px 5px 2px; }
.telechargements div { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.telechargements b { width: 100%; font-size: 1.05rem; }
.telechargements .bouton { margin-left: auto; padding: .6rem 1.1rem; }
.telechargements .bouton + .bouton { margin-left: 0; }

.bande-livres { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem 3rem; align-items: center; background: var(--accent-clair); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.2rem); margin: 0 0 2.2rem; }
.bande-livres h2 { margin-bottom: .5rem; }
.bande-livres-couvertures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .bande-livres { grid-template-columns: 1fr; } }

/* Textes longs */
.texte-long { max-width: 46rem; padding: .5rem 0 2.5rem; }
.texte-long.cadre { margin-left: max(16px, calc((100% - var(--large)) / 2)); }
.texte-long h2 { margin-top: 2rem; font-size: 1.45rem; }
.texte-long ol, .texte-long ul { padding-left: 1.2rem; }
.texte-long li { margin-bottom: .5rem; }
.page-legale { padding-top: 2.5rem; }

/* Pied de page */
.pied { background: var(--fond); padding: 2.6rem 0 1.4rem; font-size: .95rem; margin-top: 1rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem 2.5rem; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; } }
.pied-grille a { display: block; text-decoration: none; padding: .2rem 0; color: var(--encre-2); }
.pied-grille a:hover { color: var(--accent); }
.pied-marque { font-weight: 700; font-size: 1.3rem; letter-spacing: -.035em; color: var(--accent); margin-bottom: .5rem; }
.pied-marque b { color: var(--encre); }
.pied-titre { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
.pied-grille p { color: var(--encre-2); }
.pied-note { font-size: .84rem; color: var(--encre-2); border-top: 1px solid var(--trait); padding-top: 1rem; margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .entete, .pied, .encart-menu, .suite, .vignettes, .actions, .detail, .fil, .tuile-photo, .photo-cuisson, .aide-coche, .etapes-cochables .coche-etape { display: none !important; }
  .etapes-cochables li:not(.photo-cuisson) { padding-left: 0; }
  body { background: #fff; color: #000; }
  .galerie-principale img { max-height: 9cm; }
  .tuiles-ingredients { display: block; } .tuiles-ingredients li { margin: 0 0 .2rem; } .tuiles-ingredients label { text-align: left; } .tuiles-ingredients b { display: inline; }
}

/* Mention de droits en petit, en bas à droite des grandes photos (posée sur l'image affichée, quel que soit le recadrage) */
.signee { position: relative; }
.signee img { display: block; }
.signee::after, .une-carte::before { content: "© KetoPresto 2026 · ketopresto.com"; position: absolute; right: .75rem; bottom: .6rem; z-index: 1; font-size: .68rem; font-weight: 600; letter-spacing: .01em; color: rgba(255, 255, 255, .9); text-shadow: 0 0 3px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .45); pointer-events: none; }
.etapes li.photo-cuisson.signee::after { bottom: calc(1rem + .6rem); }
.une-carte::before { z-index: 2; }
@media print { .signee::after, .une-carte::before { content: none; } }

/* Petits écrans (relecture avant mise en ligne) */
/* Une colonne de grille prend la largeur de son contenu : sans min-width, un tableau large pousse la page hors de l'écran */
.reperes > *, .guide-grille > *, .ouverture > *, .fiche-livre > * { min-width: 0; }
.carte-recette h3, .carte-recette .infos { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
@media (max-width: 860px) {
  .tuiles-cat span { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 28px); letter-spacing: .1em; line-height: 1.3; }
  .une-carte::before { top: .6rem; bottom: auto; }
}
@media (max-width: 640px) {
  .carte-recette a::after { background: linear-gradient(transparent 30%, rgba(0, 0, 0, .84)); }
}

/* Partage : liens simples vers les réseaux, copie du lien, partage du téléphone */
.partage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem; margin: 0 0 1.6rem; }
.partage-titre { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-right: .3rem; }
.partage .rond { text-decoration: none; }
.partage .rond[hidden] { display: none; }
.rond-whatsapp { box-shadow: inset 0 0 0 2px #1f9d55; color: #1f9d55; }
.rond-whatsapp:hover { background: #e4f5eb; }
.rond-facebook { box-shadow: inset 0 0 0 2px #1877f2; color: #1877f2; }
.rond-facebook:hover { background: #e7f0fd; }
.rond-pinterest { box-shadow: inset 0 0 0 2px #c8232c; color: #c8232c; }
.rond-pinterest:hover { background: #fbe9ea; }
.rond.copie { background: var(--vert-clair); box-shadow: inset 0 0 0 2px var(--vert); color: var(--vert); }
.partage-fin { margin: 2.4rem 0 1rem; padding: 1.4rem 1rem .4rem; border-radius: var(--rayon); background: var(--fond); text-align: center; }
.partage-fin p { margin: 0 0 .9rem; font-weight: 600; }
.envoyer-courses { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: .4rem 0 1rem; font-size: .92rem; }
.envoyer-courses span { color: var(--encre-2); }
.envoyer-courses a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--accent); text-decoration: none; padding: .35rem .75rem; border-radius: 999px; background: var(--accent-clair); }
.envoyer-courses a:hover { background: #fbd9cc; }
.envoyer-courses .icone { width: 1.05em; height: 1.05em; }
.selection-chiffres { justify-content: flex-start; margin-top: 1rem; }
.selections-recettes { margin-top: -.6rem; }
@media print { .partage, .partage-fin, .envoyer-courses { display: none !important; } }

/* Notes des recettes : moyenne en étoiles (demi-étoile près, sans style en ligne) et formulaire */
.note-moyenne { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.etoiles { position: relative; display: inline-block; width: 6rem; height: 1.2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e1ddd5' d='M12 3.5l2.6 5.4 5.9.8-4.3 4.1 1 5.8L12 16.8l-5.2 2.8 1-5.8-4.3-4.1 5.9-.8z'/%3E%3C/svg%3E") left center / 1.2rem 1.2rem repeat-x; }
.etoiles span { position: absolute; left: 0; top: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e2572e' d='M12 3.5l2.6 5.4 5.9.8-4.3 4.1 1 5.8L12 16.8l-5.2 2.8 1-5.8-4.3-4.1 5.9-.8z'/%3E%3C/svg%3E") left center / 1.2rem 1.2rem repeat-x; }
.etoiles .n-0 { width: 0%; }
.etoiles .n-1 { width: 10%; }
.etoiles .n-2 { width: 20%; }
.etoiles .n-3 { width: 30%; }
.etoiles .n-4 { width: 40%; }
.etoiles .n-5 { width: 50%; }
.etoiles .n-6 { width: 60%; }
.etoiles .n-7 { width: 70%; }
.etoiles .n-8 { width: 80%; }
.etoiles .n-9 { width: 90%; }
.etoiles .n-10 { width: 100%; }
.avis { margin-top: 2rem; }
.noter fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.noter legend { padding: 0; margin-bottom: .5rem; font-weight: 600; }
.etoiles-choix { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.etoiles-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etoiles-choix label { cursor: pointer; color: #d8d3ca; }
.etoiles-choix .icone { width: 2.3rem; height: 2.3rem; fill: currentColor; stroke: none; }
.etoiles-choix label:hover, .etoiles-choix label:hover ~ label, .etoiles-choix input:checked ~ label { color: var(--accent); }
.etoiles-choix input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media print { .avis { display: none !important; } }

/* Ancres (#avis, #etape-3…) : le titre visé reste sous l'en-tête collant */
[id] { scroll-margin-top: 9rem; }
