/* ==========================================================================
   Autour du Four — direction visuelle « Four et jardin »
   Une couleur par valeur : terre cuite = partage, ocre = inclusion, sauge = respect.
   Polices hébergées localement (RGPD) : Bricolage Grotesque (titres),
   Atkinson Hyperlegible (texte, conçue pour la lisibilité).
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
    /* Partage — terre cuite */
    --terre: #b4532a;
    --terre-fonce: #a9481f;   /* boutons : texte blanc lisible (AA) */
    --terre-texte: #7c3415;
    --terre-pale: #f6dccb;
    /* Inclusion — ocre */
    --ocre: #e3a535;
    --ocre-clair: #f4d99a;
    --ocre-pale: #f7e6bf;
    --ocre-texte: #6b4a0e;
    /* Respect — sauge */
    --sauge: #5e7a55;
    --sauge-fonce: #3e5538;
    --sauge-pale: #e3eadf;
    /* Neutres chauds */
    --creme: #f7f3ea;
    --papier: #fffdf8;
    --encre: #2a2420;
    --encre-douce: #5a4e46;
    --trait: #e4dccd;

    --titre: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
    --texte: "Atkinson Hyperlegible", Verdana, sans-serif;
    --rayon: 18px;
    --rayon-grand: 32px;
    --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--creme);
    color: var(--encre);
    font-family: var(--texte);
    font-size: 1.125rem;      /* 18 px : confortable, y compris sur téléphone */
    line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terre-texte); text-underline-offset: .2em; }
a:hover { color: var(--terre); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h1.titre-long { font-size: clamp(2rem, 4vw, 3rem); } /* titre d'accueil long : les boutons restent visibles */
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: .6rem 1rem; z-index: 100; }
.lien-evitement:focus { left: 1rem; top: 1rem; }

/* Surlignage « coup de marqueur » : *texte* dans les titres */
.surligne { background: linear-gradient(transparent 12%, var(--ocre-clair) 12%, var(--ocre-clair) 88%, transparent 88%); padding: 0 .18em; border-radius: .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.bouton:hover { transform: translateY(-2px); }
.bouton--principal { background: var(--terre-fonce); color: #fff; }
.bouton--principal:hover { background: var(--terre-texte); color: #fff; }
.bouton--secondaire { background: var(--sauge-pale); color: var(--sauge-fonce); }
.bouton--secondaire:hover { background: #d3dfcd; color: var(--sauge-fonce); }
.bouton--clair { background: var(--papier); color: var(--terre-texte); }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--creme) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { flex: none; white-space: nowrap; display: flex; align-items: center; gap: .6rem; font-family: var(--titre); font-weight: 800; font-size: 1.3rem; color: var(--encre); text-decoration: none; }
.logo img { width: 52px; height: 52px; }
.logo span { color: var(--terre); }
.nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: .5rem .6rem; border-radius: 999px; color: var(--encre); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ocre-pale); color: var(--ocre-texte); }
.nav .nav__connexion { background: var(--sauge-pale); color: var(--sauge-fonce); margin-left: .4rem; }
.nav .nav__membre { background: var(--terre-fonce); color: #fff; margin-left: .4rem; }
.nav .nav__membre:hover, .nav .nav__membre[aria-current="page"] { background: var(--terre-texte); color: #fff; }
.menu-mobile { display: none; }

/* Menu compact dès que les 8 liens ne tiennent plus sur une ligne */
@media (max-width: 1440px) {
    .nav { display: none; }
    .menu-mobile { display: block; position: relative; }
    .menu-mobile summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: var(--papier); border: 1px solid var(--trait); font-weight: 700; }
    .menu-mobile summary::-webkit-details-marker { display: none; }
    .menu-mobile ul { position: absolute; right: 0; top: calc(100% + .5rem); width: min(80vw, 300px); list-style: none; margin: 0; padding: .6rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: 0 16px 40px rgba(42, 36, 32, .14); }
    .menu-mobile a { display: block; padding: .8rem 1rem; border-radius: 12px; color: var(--encre); text-decoration: none; font-weight: 700; }
    .menu-mobile a:hover { background: var(--ocre-pale); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--papier { background: var(--papier); }
.section--sauge { background: var(--sauge-pale); }
.section__intro { max-width: 46rem; color: var(--encre-douce); font-size: 1.2rem; }
.surtitre { display: inline-block; font-weight: 700; font-size: .95rem; letter-spacing: .04em; color: var(--terre-texte); background: var(--terre-pale); padding: .25rem .8rem; border-radius: 999px; margin-bottom: 1rem; }

/* Accueil : grand bandeau */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero__grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__texte p { font-size: 1.3rem; color: var(--encre-douce); max-width: 34rem; }
.hero__image { position: relative; padding-bottom: 3rem; }
.hero__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 60%; border-radius: var(--rayon-grand) var(--rayon-grand) var(--rayon-grand) 120px; }
.hero__vignette { position: absolute; left: -1.5rem; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: .4rem; border-radius: var(--rayon); border: 6px solid var(--papier); box-shadow: 0 18px 40px rgba(42, 36, 32, .22); transform: rotate(-4deg); }
@media (max-width: 820px) {
    .hero__grille { grid-template-columns: 1fr; }
    .hero__image { order: -1; padding-bottom: 2rem; }
    .hero__photo { aspect-ratio: 4 / 3; border-radius: var(--rayon-grand) var(--rayon-grand) var(--rayon-grand) 80px; }
    .hero__vignette { left: .5rem; width: 38%; }
}

/* Valeurs : une couleur par valeur */
.valeurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.valeur { border-radius: var(--rayon-grand); padding: 2rem 1.8rem; }
.valeur h3 { margin-top: 1rem; }
.valeur p { margin: 0; }
.valeur--terre { background: var(--terre-pale); color: var(--terre-texte); }
.valeur--ocre { background: var(--ocre-pale); color: var(--ocre-texte); }
.valeur--sauge { background: var(--sauge-pale); color: var(--sauge-fonce); }
.pictogramme { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--papier); }
.pictogramme svg { width: 30px; height: 30px; }

/* Texte + image, en alternance */
.texte-image { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.texte-image--inverse .texte-image__image { order: 2; }
.texte-image__image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--rayon-grand); }
.texte-image__texte { font-size: 1.15rem; }
.texte-image__image--entiere img { aspect-ratio: auto; max-width: 30rem; margin-inline: auto; display: block; box-shadow: 0 18px 40px rgba(42, 36, 32, .18); }
@media (max-width: 820px) { .texte-image { grid-template-columns: 1fr; } .texte-image--inverse .texte-image__image { order: 0; } }

/* Photo avec un petit commentaire : étiquette ocre posée de biais, façon post-it */
.photo-commentee { position: relative; margin: 0 0 1.6rem; }
.etiquette { position: absolute; right: -.8rem; bottom: -1.4rem; max-width: 70%; padding: .7rem 1rem; background: var(--ocre-clair); color: var(--ocre-texte); font-family: var(--titre); font-weight: 600; font-size: 1.05rem; line-height: 1.3; border-radius: 6px; box-shadow: 0 10px 24px rgba(42, 36, 32, .2); transform: rotate(-3deg); }
@media (max-width: 820px) { .photo-commentee { margin-bottom: 2.4rem; } .etiquette { right: .4rem; bottom: -2rem; max-width: 78%; font-size: .95rem; padding: .55rem .85rem; } }

/* Mosaïque de photos : une grande en haut, les autres en dessous */
.mosaique { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mosaique img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.mosaique .mosaique__grande { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: var(--rayon-grand); }
/* Petites photos sous la grande photo d'un bloc texte + image (laisse la place à l'étiquette) */
.vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 2.2rem; }
.vignettes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vignettes--1 { grid-template-columns: 1fr; }
.texte-image__photos-texte { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; margin: 1.2rem 0 .4rem; }
.texte-image__photos-texte figure { margin: 0; }
.texte-image__photos-texte figcaption { margin-top: .4rem; font-size: .9rem; color: var(--encre-douce); }
.texte-image__photos-texte img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
/* Petite photo d'exemple à côté d'un palier de chauffe (page Recettes) */
.palier__exemple { float: right; width: min(260px, 40%); margin: 0 0 1rem 1.5rem; }
.palier__exemple img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.palier__exemple figcaption { margin-top: .4rem; font-size: .9rem; color: var(--encre-douce); }
.palier::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) { .palier__exemple { float: none; width: 100%; margin: 0 0 1rem; } }
.vignettes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
/* Deux photos seulement : la seconde prend aussi toute la largeur */
.mosaique img:nth-child(2):last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
/* Illustration avec du texte dedans : affichée en entier, sans recadrage (sélecteur renforcé pour passer devant la règle « deux photos ») */
.mosaique img.mosaique__entiere:nth-child(n):nth-child(n) { aspect-ratio: 1; width: 80%; height: auto; object-fit: contain; justify-self: center; }

/* Cartes (étapes, propositions) */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.4rem; counter-reset: etape; }
.cartes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cartes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cartes--4 { grid-template-columns: 1fr; } }
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-grand); padding: 2rem 1.8rem; }
.cartes--etapes .carte::before { counter-increment: etape; content: counter(etape); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ocre-clair); color: var(--ocre-texte); font-family: var(--titre); font-weight: 800; font-size: 1.4rem; margin-bottom: 1rem; }
.carte ul { padding-left: 1.2rem; margin: .5rem 0 0; }
/* Image en bas de carte : les images des cartes voisines restent alignées */
.carte:has(.carte__illustration) { display: flex; flex-direction: column; }
.carte__illustration { margin-top: auto; padding-top: 1.2rem; }
.carte__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.carte__image--entiere { object-fit: contain; }

/* Appel à l'action */
.appel { background: var(--terre-fonce); color: #fff; border-radius: var(--rayon-grand); padding: clamp(2.2rem, 5vw, 3.8rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.appel h2 { color: #fff; margin-bottom: .3em; }
.appel p { margin: 0; font-size: 1.15rem; opacity: .95; }
.appel--sauge { background: var(--sauge-fonce); }
@media (max-width: 720px) { .appel { grid-template-columns: 1fr; } }
/* Appel à l'action « deux choix » : une phrase et son bouton, côte à côte */
.appel--choix { grid-template-columns: 1fr 1fr; align-items: stretch; }
.appel__intro { grid-column: 1 / -1; }
.appel__choix { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 1.2rem; background: rgba(255, 255, 255, .1); border-radius: var(--rayon); padding: 1.4rem 1.6rem; }
.appel__choix strong { display: block; font-family: var(--titre); font-size: 1.35rem; }
@media (max-width: 720px) { .appel--choix { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 50rem; margin-top: 2rem; }
.faq details { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0 1.4rem; margin-bottom: .9rem; }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--titre); font-size: 1.6rem; line-height: 1; color: var(--terre); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { padding-bottom: 1.2rem; color: var(--encre-douce); }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 2rem; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon); }

/* Texte simple */
.prose { max-width: 46rem; font-size: 1.15rem; }
.prose ul { padding-left: 1.3rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--sauge-fonce); color: #eef2ea; padding-block: 3.5rem 2rem; margin-top: 0; }
.pied a { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.pied h2 { font-size: 1.2rem; color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .5rem; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.reseaux { display: flex; gap: .6rem; margin-top: 1rem; }
.reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.reseaux a:hover { background: rgba(255, 255, 255, .24); }
.reseaux svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .pied__grille { grid-template-columns: 1fr; } }

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Recettes (rubrique B)
   La fiche recette est présentée « dans le four » (croquis du porteur de projet) :
   voûte de briques fixe en haut, parois qui défilent avec la recette,
   bouche du four fixe en bas (cuisson, cliquable).
   ========================================================================== */

:root {
    /* Brique vue de face, étirée à la taille de la case */
    --brique: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' preserveAspectRatio='none'%3E%3Crect x='1.5' y='1.5' width='27' height='26' rx='2' fill='%23b4532a' stroke='%237c3415' stroke-width='1.5'/%3E%3C/svg%3E");
    --brique-couchee: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 20' preserveAspectRatio='none'%3E%3Crect x='1.5' y='1.5' width='45' height='17' rx='2' fill='%23b4532a' stroke='%237c3415' stroke-width='1.5'/%3E%3C/svg%3E");
    --paroi: 6.5%;                              /* = épaisseur de la voûte (26 sur 400) */
    --voute: clamp(7.5rem, 32vw, 10.5rem);      /* hauteur de la voûte fixe */
}

/* Sur la fiche recette, l'en-tête du site défile : l'écran reste au four */
.page-four .entete { position: static; }

/* ---------- Liste des recettes ---------- */
.paliers { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 1rem; }
.paliers a { padding: .5rem 1rem; border-radius: 999px; background: var(--terre-pale); color: var(--terre-texte); font-weight: 700; text-decoration: none; }
.paliers a:hover { background: var(--ocre-pale); color: var(--ocre-texte); }
.palier { margin-top: 3rem; scroll-margin-top: 90px; }
.palier h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.palier__temperature { font-family: var(--texte); font-size: 1rem; font-weight: 700; color: var(--terre-texte); background: var(--papier); border: 1px solid var(--trait); padding: .15rem .7rem; border-radius: 999px; }
.cartes-recettes { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
.carte-recette { position: relative; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 2.2rem 1.5rem 1.4rem; overflow: hidden; }
.carte-recette::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--brique-couchee) left top / 40px 14px repeat-x; }
.carte-recette h3 a { color: var(--encre); text-decoration: none; }
.carte-recette h3 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.carte-recette:hover { border-color: var(--terre); }
.carte-recette p { color: var(--encre-douce); font-size: 1.02rem; }
.carte-recette__infos { display: flex; gap: 1rem; font-weight: 700; color: var(--terre-texte) !important; margin-bottom: .4rem; }
.carte-recette__auteur { font-size: .95rem !important; margin: 0; font-style: italic; }
.recettes__appel { margin-top: 3.5rem; }

/* ---------- Fiche recette ---------- */
.recette { width: min(100% - 1.5rem, 36rem); margin-inline: auto; padding-block: 1rem 3rem; }
.recette__retour { margin-bottom: 1rem; font-weight: 700; }
.recette__entete { margin-bottom: 1.4rem; }
.recette__entete h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
.recette__resume { font-size: 1.15rem; color: var(--encre-douce); }
.recette__auteur { font-style: italic; color: var(--terre-texte); margin: 0; }
.recette__photo { margin-top: 1.2rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
/* Sur ordinateur, le four s'élargit : moins de retours à la ligne. Sur téléphone, il garde toute la largeur. */
@media (min-width: 900px) {
    .recette { width: min(100% - 3rem, 52rem); }
    .recette__photo { aspect-ratio: 16 / 9; }
    .four__voute-titre { font-size: 1.35rem; }
    .four__voute-infos { font-size: 1rem; }
}
/* Boutons sous l'en-tête : fiche à imprimer, partager */
.recette__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

.four { position: relative; }

/* Voûte : fixe en haut de l'écran */
.four__voute { position: sticky; top: 0; z-index: 3; height: var(--voute); background: var(--creme); }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arc .brique { fill: var(--terre); stroke: var(--terre-texte); stroke-width: 1.5; }
.arc--voute .arc__fond { fill: var(--papier); }
.four__voute-contenu { position: absolute; inset: 30% calc(var(--paroi) + .6rem) .2rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; gap: .1rem; }
.four__voute-titre { margin: 0; max-width: 78%; font-family: var(--titre); font-weight: 800; font-size: 1.05rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.four__voute-infos { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .9rem; font-size: .92rem; font-weight: 700; color: var(--terre-texte); }
.four__legende { margin: 0; display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--sauge-fonce); font-weight: 700; }
.brique-hachuree { width: 26px; height: 16px; flex: none; display: block; }

/* Corps : parois de briques qui défilent avec la recette */
.four__corps { position: relative; background: var(--papier); padding: 0 calc(var(--paroi) + .8rem) 1.2rem; }
.four__corps::before, .four__corps::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--paroi); background: var(--creme) var(--brique) left top / 100% 30px repeat-y; }
.four__corps::before { left: 0; }
.four__corps::after { right: 0; }

/* Titre de rubrique collé sous la voûte ; il est poussé par la rubrique suivante quand elle monte */
.four__entete-rubrique { position: sticky; top: var(--voute); z-index: 2; margin: 0 0 .4rem; padding: .55rem 0 .45rem; background: var(--papier); border-bottom: 2px solid var(--trait); font-family: var(--titre); font-size: 1.15rem; font-weight: 800; color: var(--terre-texte); }
.four__rubrique { padding-top: .4rem; }
.four__rang { height: 20px; margin: 1.2rem calc(-1 * (var(--paroi) + .8rem) - 1px); background: var(--creme) var(--brique-couchee) center top / 44px 20px repeat-x; position: relative; z-index: 1; }
.four__texte { padding-top: .3rem; }
.four__palier { font-size: 1rem; color: var(--encre-douce); background: var(--ocre-pale); padding: .7rem .9rem; border-radius: 12px; }

/* Ingrédients : case | étape | nom | quantité | commentaire | local */
.four__entete-rubrique--ingredients, .ingredient { display: grid; grid-template-columns: 30px 26px minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.2fr) 26px; column-gap: .55rem; align-items: center; }
.four__colonne-etape { font-size: .8rem; text-align: center; cursor: help; }
/* Numéro de l'étape où l'ingrédient entre en jeu : renvoie à l'étape */
.ingredient__etape a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ocre-clair); color: var(--ocre-texte); font-family: var(--titre); font-weight: 800; font-size: .9rem; line-height: 1; text-decoration: none; }
.ingredient__etape a:hover { background: var(--ocre); color: var(--encre); }
.etapes > li { scroll-margin-top: calc(var(--voute) + 3.5rem); }
.etapes > li:target .etape { background: var(--ocre-pale); border-radius: 12px; transition: background-color .3s; }
.four__entete-rubrique--ingredients { font-size: 1rem; }
.ingredients, .etapes { list-style: none; margin: 0; padding: 0; }
.ingredient { padding: .5rem 0; border-bottom: 1px dashed var(--trait); cursor: pointer; }
.ingredient__nom { font-weight: 700; }
.ingredient__quantite { color: var(--terre-texte); font-weight: 700; }
.ingredient__note { font-size: .95rem; color: var(--encre-douce); font-style: italic; }
@media (max-width: 560px) {
    /* Sur téléphone, le commentaire passe sous le nom */
    .four__entete-rubrique--ingredients, .ingredient { grid-template-columns: 30px 26px minmax(0, 1fr) auto 26px; column-gap: .45rem; }
    .four__colonne-note { display: none; }
    .ingredient__note { grid-column: 3 / 5; grid-row: 2; }
    .ingredient__local { grid-column: 5; grid-row: 1; }
    .ingredient__note:empty { display: none; }
}

/* Étapes */
.etape { display: grid; grid-template-columns: 30px 2rem minmax(0, 1fr); column-gap: .55rem; align-items: start; padding: .8rem 0; border-bottom: 1px dashed var(--trait); cursor: pointer; }
.etape .case-brique { margin-top: .3rem; }
.etape__numero { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ocre-clair); color: var(--ocre-texte); font-family: var(--titre); font-weight: 800; }

/* Case à cocher en forme de brique : on coche au fur et à mesure */
.case-brique { appearance: none; -webkit-appearance: none; margin: 0; width: 26px; height: 16px; border: 1.5px solid var(--terre-texte); border-radius: 2px; background: var(--papier); cursor: pointer; display: grid; place-items: center; }
.case-brique:checked { background: var(--terre); }
.case-brique:checked::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.ingredient:has(.case-brique:checked) .ingredient__nom,
.etape:has(.case-brique:checked) > span:last-child { text-decoration: line-through; text-decoration-color: var(--terre); opacity: .6; }

/* Bouche du four : fixe en bas de l'écran, cliquable */
.four__bouche { position: sticky; bottom: 0; z-index: 3; display: block; padding: .5rem calc(var(--paroi) + .8rem) 20px; text-decoration: none; color: #fff;
    background:
        var(--brique) left top / var(--paroi) 30px repeat-y,
        var(--brique) right top / var(--paroi) 30px repeat-y,
        var(--brique-couchee) center bottom / 44px 20px repeat-x,
        var(--papier); }
.four__bouche::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: linear-gradient(transparent, rgba(255, 253, 248, .95)); pointer-events: none; }
.four__bouche > .arc, .four__bouche-contenu { width: 78%; margin-inline: auto; }
/* Hauteur explicite : un SVG ne s'étire pas avec top + bottom */
.four__bouche > .arc { position: absolute; left: 0; right: 0; top: .5rem; height: calc(100% - .5rem - 20px); }
.arc--bouche .arc__fond { stroke: none; }
.four__bouche-contenu { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 6.2rem; padding-bottom: .5rem; text-align: center; line-height: 1.2; }
.four__bouche-titre { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ocre-clair); }
.four__bouche-infos { font-family: var(--titre); font-weight: 800; font-size: 1.3rem; }
.four__bouche-action { font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.four__bouche:hover .four__bouche-infos { color: var(--ocre-clair); }
.four__bouche:focus-visible { outline-offset: -3px; }

/* ---------- Réseau des fours (page « Devenir membre ») ---------- */
.fours { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.four-carte { position: relative; display: flex; flex-direction: column; align-items: flex-start; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-grand) var(--rayon-grand) var(--rayon) var(--rayon); padding: 2.4rem 1.6rem 1.6rem; overflow: hidden; }
.four-carte::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--brique-couchee) left top / 40px 14px repeat-x; }
.four-carte h3 { margin-bottom: .2rem; }
.four-carte p { color: var(--encre-douce); font-size: 1.02rem; }
.four-carte__boutons { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.four-carte__badge { font-size: .85rem; font-weight: 700; padding: .15rem .7rem; border-radius: 999px; background: var(--terre-pale); color: var(--terre-texte); margin-bottom: .7rem; }
.four-carte--mobile .four-carte__badge { background: var(--ocre-pale); color: var(--ocre-texte); }
.four-carte__lieu { font-weight: 700; color: var(--terre-texte) !important; margin-bottom: .6rem; }
.four-carte__asso { font-size: .95rem !important; font-style: italic; }

/* ---------- Carte d'identité d'un four ---------- */
.carte-identite { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 1.6rem; margin-top: 2rem; align-items: start; }
.confort { background: var(--terre-pale); color: var(--terre-texte); border-radius: var(--rayon-grand); padding: 1.8rem 1.6rem; }
.confort__etoiles { margin: 0; font-size: 2.2rem; line-height: 1; letter-spacing: .1em; color: var(--terre); }
.confort__vide { color: rgba(124, 52, 21, .22); }
.confort__niveau { margin: .5rem 0 1rem; font-size: 1.15rem; }
.confort__criteres, .rubrique-four ul { list-style: none; margin: 0; padding: 0; }
.confort__suivant { margin: 1rem 0 0; font-size: .98rem; }
.critere { display: flex; gap: .55rem; padding: .3rem 0; }
.critere > span[aria-hidden] { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .15rem; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.critere--oui > span[aria-hidden] { background: var(--sauge); color: #fff; }
.critere--non > span[aria-hidden] { background: var(--trait); color: var(--encre-douce); }
.critere--non { color: var(--encre-douce); }
.critere--inconnu > span[aria-hidden] { background: var(--ocre-clair); color: var(--ocre-texte); }
.carte-identite__rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem 2rem; }
.carte-identite__chauffe, .carte-identite__membres { grid-column: 1 / -1; margin: 0; }
.carte-identite__membres { font-size: .98rem; font-style: italic; color: var(--encre-douce); }
/* Chaîne WhatsApp d'un four : bouton partout, QR code seulement sur grand écran */
.whatsapp-four { grid-column: 1 / -1; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; background: #e7f6ec; border: 1px solid #b9e2c6; border-radius: var(--rayon); padding: 1.2rem 1.4rem; }
.whatsapp-four h3 { font-size: 1.15rem; margin: 0 0 .3em; }
.whatsapp-four p { margin: 0 0 1rem; }
.bouton--whatsapp { background: #1f7a44; color: #fff; }
.bouton--whatsapp:hover { background: #17633a; }
.whatsapp-four__qr { margin: 0; text-align: center; flex: 0 0 auto; }
.whatsapp-four__qr svg { display: block; width: 150px; height: 150px; background: #fff; border-radius: 10px; padding: 6px; }
.whatsapp-four__qr .qr-data-dark { fill: var(--encre); }
.whatsapp-four__qr figcaption { font-size: .88rem; color: var(--encre-douce); margin-top: .4rem; max-width: 150px; }
@media (max-width: 820px), (hover: none) { .whatsapp-four__qr { display: none; } }
.rubrique-four { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.2rem 1.4rem; }
.rubrique-four h3 { font-size: 1.15rem; color: var(--terre-texte); }
.rubrique-four li:not(.critere) { padding: .3rem 0; }
.rubrique-four__libelle { color: var(--encre-douce); }
.rubrique-four em { color: var(--encre-douce); font-size: .95rem; }
@media (max-width: 820px) { .carte-identite { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.formulaire-page { max-width: 46rem; }
.formulaire { display: grid; gap: 1.4rem; margin-top: 2rem; }
.formulaire fieldset { border: 0; margin: 0; padding: 0; }
.formulaire legend, .champ label { font-weight: 700; margin-bottom: .5rem; display: block; }
.champ__requis { font-weight: 400; color: var(--encre-douce); font-size: .95rem; }
.champs-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.champ input, .champ textarea { width: 100%; font: inherit; color: var(--encre); background: var(--papier); border: 2px solid var(--trait); border-radius: 12px; padding: .75rem .9rem; min-height: 48px; }
.champ input:focus, .champ textarea:focus { border-color: var(--terre); outline: 3px solid var(--ocre-clair); outline-offset: 0; }
.choix { display: grid; gap: .6rem; }
.choix__option { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; background: var(--papier); border: 2px solid var(--trait); border-radius: 12px; cursor: pointer; }
.choix__option:has(input:checked) { border-color: var(--terre); background: var(--terre-pale); }
.choix__option input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--terre); flex: none; }
.choix__option--accord { font-size: 1rem; color: var(--encre-douce); }
.formulaire .bouton { justify-self: start; cursor: pointer; }
.message { border-radius: var(--rayon); padding: 1.4rem 1.6rem; margin-top: 1.6rem; }
.message ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.message--erreur { background: #fbe3dc; color: var(--terre-texte); border: 2px solid var(--terre); }
.message--merci { background: var(--sauge-pale); color: var(--sauge-fonce); }

/* ---------- Agenda ---------- */
.filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: 2rem 0 1rem; padding: 1.2rem 1.4rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); }
.filtres .champ label { font-weight: 700; display: block; margin-bottom: .4rem; }
.filtres select, .champ select { font: inherit; min-height: 48px; padding: .6rem 2.2rem .6rem .9rem; border: 2px solid var(--trait); border-radius: 12px; background: var(--papier); color: var(--encre); }
.filtres .bouton { cursor: pointer; }
.agenda-mois { margin-top: 2.6rem; }
.agenda-mois h2 { font-size: 1.6rem; }
.evenements { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.evenement { position: relative; display: flex; gap: 1.2rem; align-items: flex-start; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.2rem 1.4rem; }
.evenement:hover { border-color: var(--terre); }
.evenement__date { flex: none; width: 4.2rem; padding: .5rem 0; text-align: center; border-radius: 14px; background: var(--terre-fonce); color: #fff; line-height: 1.1; }
.evenement__jour { display: block; font-family: var(--titre); font-weight: 800; font-size: 1.7rem; }
.evenement__mois { display: block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.evenement__texte h3 { margin: .1rem 0 .3rem; }
.evenement__texte h3 a { color: var(--encre); text-decoration: none; }
.evenement__texte h3 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.evenement__texte p { margin: 0; color: var(--encre-douce); font-size: 1.02rem; }
.evenement__quand { font-weight: 700; color: var(--terre-texte) !important; }
.evenement__type { display: inline-block; font-size: .85rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; background: var(--terre-pale); color: var(--terre-texte) !important; }
.evenement__type--workshop { background: var(--ocre-pale); color: var(--ocre-texte) !important; }
.evenement__type--festive { background: var(--sauge-pale); color: var(--sauge-fonce) !important; }
.evenement--annule .evenement__texte h3 a { text-decoration: line-through; }
.agenda-vide, .agenda-membres { margin-top: 2rem; color: var(--encre-douce); }
.agenda-membres { font-style: italic; font-size: 1rem; }
.evenement-infos { display: grid; gap: .8rem; margin: 1.6rem 0; padding: 1.4rem 1.6rem; background: var(--terre-pale); border-radius: var(--rayon); }
.evenement-infos div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.evenement-infos dt { font-weight: 700; color: var(--terre-texte); }
.evenement-infos dd { margin: 0; }
@media (max-width: 560px) { .evenement-infos div { grid-template-columns: 1fr; gap: .1rem; } }

/* Formulaire « Poster une recette » */
.formulaire .bloc-saisie { display: grid; gap: 1.1rem; padding: 1.4rem 1.5rem; background: var(--papier); border: 2px solid var(--trait); border-radius: var(--rayon); }
.bloc-saisie legend, .bloc-saisie__titre { font-family: var(--titre); font-size: 1.3rem; font-weight: 800; margin: 0; padding: 0 .4rem; }
.bloc-saisie__titre { padding: 0; }
.champs-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.champ__etiquette { font-weight: 700; display: block; margin-bottom: .5rem; }
.champ__aide { margin: 0; font-size: .95rem; color: var(--encre-douce); }
.champ select { width: 100%; }
.etapes-saisie { display: grid; gap: 1rem; }
.formulaire .etape-saisie { position: relative; display: grid; gap: .9rem; margin: 0; padding: 1.2rem 1.2rem 1rem; background: var(--creme); border: 2px solid var(--trait); border-radius: var(--rayon); }
.etape-saisie__titre { display: flex; align-items: center; gap: .6rem; font-family: var(--titre); font-weight: 800; font-size: 1.1rem; padding: 0 .3rem; }
.etape-saisie__numero { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--terre); color: #fff; font-size: 1rem; }
.etape-saisie__retirer { position: absolute; top: .8rem; right: .9rem; background: none; border: 0; color: var(--terre-texte); font: inherit; font-size: .95rem; text-decoration: underline; cursor: pointer; }
.ingredients-saisie { display: grid; gap: .5rem; }
.ingredient-saisie { display: grid; grid-template-columns: minmax(80px, 8rem) minmax(0, 1fr) 2.6rem; gap: .5rem; }
.ingredient-saisie__retirer { border: 2px solid var(--trait); background: var(--papier); border-radius: 12px; font-size: 1.3rem; line-height: 1; color: var(--terre-texte); cursor: pointer; }
.bouton-lien { justify-self: start; margin-top: .5rem; background: none; border: 0; padding: .3rem 0; font: inherit; font-weight: 700; color: var(--terre-texte); text-decoration: underline; cursor: pointer; }
.champ input[type="file"] { padding: .55rem .6rem; }
/* Ustensiles sur la fiche recette */
.etape__ustensiles { display: block; margin-top: .3rem; font-size: .92rem; color: var(--encre-douce); }
.materiel { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.materiel li { padding: .3rem .8rem; border-radius: 999px; background: var(--sauge-pale); color: var(--sauge-fonce); font-size: .95rem; font-weight: 600; }

/* Connexion */
.formulaire-page--etroit { max-width: 30rem; }
.formulaire-page__note { margin-top: 1.6rem; }
.nav__deconnexion { font: inherit; font-weight: 700; color: var(--encre-douce); background: none; border: 0; padding: .5rem .7rem; cursor: pointer; text-decoration: underline; }
.nav form { margin: 0; }

/* Origine d'une recette */
.four__origine, .carte-recette__origine { margin: .3rem 0 0; font-size: .92rem; font-weight: 700; color: var(--sauge-fonce); }
.recette__apercu { margin-bottom: 1rem; }

/* Administration des recettes */
.admin__onglets { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1rem; }
.admin__onglets a { padding: .55rem 1rem; border-radius: 999px; border: 2px solid var(--trait); color: var(--encre); text-decoration: none; font-weight: 700; }
.admin__onglets a[aria-current="page"] { background: var(--terre); border-color: var(--terre); color: #fff; }
.admin__compteur { display: inline-block; min-width: 1.6rem; padding: 0 .45rem; margin-left: .3rem; border-radius: 999px; background: var(--ocre-pale); color: var(--ocre-texte); font-size: .9rem; text-align: center; }
.admin .filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.admin__case { align-self: flex-end; }
.admin__groupe { margin-top: 2rem; }
.admin__groupe h2 { font-size: 1.4rem; }
.admin__liste { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .7rem; }
.admin__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; padding: 1rem 1.2rem; background: var(--papier); border: 2px solid var(--trait); border-radius: var(--rayon); }
.admin__titre { font-family: var(--titre); font-weight: 800; font-size: 1.15rem; color: var(--encre); }
.admin__meta { margin: .2rem 0 0; font-size: .92rem; color: var(--encre-douce); }
.admin__origine { margin: .2rem 0 0; font-size: .92rem; font-weight: 700; color: var(--sauge-fonce); }
.admin__badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; max-width: 26rem; }
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.badge--ok { background: var(--sauge-pale); color: var(--sauge-fonce); }
.badge--attention { background: var(--ocre-pale); color: var(--ocre-texte); }
.badge--alerte { background: #fbe3dc; color: var(--terre-texte); }
.admin__vide { margin-top: 2rem; color: var(--encre-douce); }
.admin__retour { display: inline-block; margin-bottom: 1rem; font-weight: 700; color: var(--terre-texte); }
.admin__colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 22rem); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (max-width: 900px) { .admin__colonnes { grid-template-columns: 1fr; } }
.admin__principal, .admin__cote { display: grid; gap: 1.2rem; }
.admin__carte { padding: 1.3rem 1.4rem; background: var(--papier); border: 2px solid var(--trait); border-radius: var(--rayon); }
.admin__carte h2 { font-size: 1.25rem; margin-top: 0; }
.admin__carte h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.admin__carte form { margin: 0 0 .7rem; }
.admin__ressemblances { list-style: none; padding: 0; display: grid; gap: .5rem; }
.admin__alertes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.admin__alerte { padding: .55rem .8rem; border-radius: 10px; font-size: .95rem; }
.admin__alerte--alerte { background: #fbe3dc; color: var(--terre-texte); }
.admin__alerte--rappel { background: var(--ocre-pale); color: var(--ocre-texte); }
.admin__photo { display: block; max-width: 100%; max-height: 22rem; border-radius: var(--rayon); margin: .8rem 0; }
.formulaire--compact { gap: .9rem; margin-top: .5rem; }
.admin__entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin__entete form { margin: 0; }
.recette__histoire { margin: .4rem 0 0; font-style: italic; color: var(--encre-douce); }

/* Origine des recettes : bien visible (la cuisine fait se rencontrer tous les horizons) */
.origine { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; }
.origine__lieu, .origine__famille { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.origine__lieu { background: var(--sauge); color: #fff; }
.origine__lieu svg { width: 1.05em; height: 1.05em; }
.origine__famille { background: var(--ocre-pale); color: var(--ocre-texte); }
.origine--grande { margin: .6rem 0 .4rem; }
.origine--grande .origine__lieu, .origine--grande .origine__famille { font-size: 1.05rem; padding: .4rem 1rem; }
.palier__epingle svg { width: 1.1em; height: 1.1em; vertical-align: -.15em; color: var(--sauge-fonce); }
.vues { display: inline-flex; gap: .3rem; padding: .3rem; margin: 1.6rem 0 .4rem; background: var(--papier); border: 2px solid var(--trait); border-radius: 999px; }
.vues a { padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; color: var(--encre); text-decoration: none; }
.vues a[aria-current="page"] { background: var(--terre); color: #fff; }
.recettes__guide { margin: 1rem 0 0; padding: .9rem 1.2rem; border-radius: var(--rayon); background: var(--ocre-pale); color: var(--ocre-texte); font-weight: 600; }
.recettes__guide a { color: var(--terre-texte); font-weight: 800; }

/* Échelle des températures (page « Que faire dans un four à bois ? ») */
.thermometre { position: relative; list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.thermometre::before { content: ""; position: absolute; left: 1.15rem; top: .6rem; bottom: .6rem; width: .7rem; border-radius: 999px; background: linear-gradient(#b8401b, #e07a24 22%, #e3a535 45%, #8aa66f 72%, #6f8fa8); }
.thermometre__palier { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 22rem); gap: 1.2rem; align-items: start; }
.thermometre__repere { display: grid; place-items: center; padding-top: .3rem; }
.thermometre__repere span { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 4px solid var(--creme); background: hsl(calc(150 - var(--chaleur) * 1.4) 55% 42%); box-shadow: 0 0 0 2px hsl(calc(150 - var(--chaleur) * 1.4) 55% 42%); position: relative; z-index: 1; }
.thermometre__contenu { padding: 1.1rem 1.3rem; background: var(--papier); border: 2px solid var(--trait); border-left: 6px solid hsl(calc(150 - var(--chaleur) * 1.4) 55% 42%); border-radius: 0 var(--rayon) var(--rayon) 0; }
.thermometre__contenu h3 { margin: .1rem 0 .4rem; font-size: 1.3rem; }
.thermometre__contenu p { margin: 0 0 .5rem; }
.thermometre__temperature { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: hsl(calc(150 - var(--chaleur) * 1.4) 55% 42%); color: #fff; font-weight: 800; font-size: .95rem; }
.thermometre__exemples { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.thermometre__exemples li { padding: .2rem .65rem; border-radius: 999px; background: var(--creme); border: 1px solid var(--trait); font-size: .92rem; }
.thermometre__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.thermometre__photos figure { margin: 0; }
.thermometre__photos figure:only-child { grid-column: 1 / -1; }
.thermometre__photos figcaption { margin-top: .3rem; font-size: .88rem; font-weight: 700; color: var(--encre-douce); text-align: center; }
.thermometre__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
@media (max-width: 900px) {
    .thermometre__palier { grid-template-columns: 3rem minmax(0, 1fr); }
    .thermometre__photos { grid-column: 2; }
}

/* Régimes et allergènes */
.origine__regime { display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 700; background: var(--sauge-pale); color: var(--sauge-fonce); border: 1px solid var(--sauge); }
.origine--grande .origine__regime { font-size: 1.05rem; padding: .4rem 1rem; }
.allergenes { margin: .3rem 0 .6rem; font-size: .95rem; }
.allergenes span { display: block; font-size: .85rem; color: var(--encre-douce); }
.regimes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; }
.regimes a { padding: .35rem .9rem; border-radius: 999px; border: 2px solid var(--sauge); color: var(--sauge-fonce); font-weight: 700; font-size: .95rem; text-decoration: none; }
.regimes a[aria-current="page"] { background: var(--sauge); color: #fff; }
.cases-ligne { display: flex; flex-wrap: wrap; gap: .5rem; }
.cases-ligne .choix__option { padding: .5rem .8rem; }
.cases-ligne--petites .choix__option { font-size: .92rem; padding: .35rem .65rem; }
.cases-ligne--petites .choix__option input { width: 1.05rem; height: 1.05rem; margin-top: .15rem; }
.admin__carte fieldset { border: 0; padding: 0; margin: 0; }
.admin__carte legend { font-weight: 700; margin-bottom: .4rem; }

/* Courbe illustrée de refroidissement du four */
.courbe { margin: 2rem 0 0; padding: 0; border: 2px solid var(--trait); border-radius: 24px; overflow: hidden; background: var(--papier); }
.courbe svg { display: block; width: 100%; height: auto; }
/* Sur téléphone, la courbe garde une taille lisible : on la fait glisser de côté */
@media (max-width: 760px) { .courbe { overflow-x: auto; } .courbe svg { min-width: 760px; } }
.courbe-graduation { font-family: var(--texte); font-size: 15px; fill: #5a4e46; }
.courbe-axe { font-family: var(--titre); font-weight: 800; font-size: 18px; fill: #2a2420; }
.courbe-titre-point { font-family: var(--titre); font-weight: 800; font-size: 19px; fill: #7c3415; paint-order: stroke; stroke: #fffdf8; stroke-width: 5px; stroke-linejoin: round; }
.courbe-sous-titre { font-family: var(--texte); font-size: 14px; fill: #2a2420; paint-order: stroke; stroke: #fffdf8; stroke-width: 4px; stroke-linejoin: round; }
.courbe-axe-precision { font-family: var(--texte); font-weight: 400; font-size: 15px; fill: #5a4e46; }
.courbe-note { font-family: var(--texte); font-size: 14px; font-style: italic; fill: #5a4e46; }
.champ .label-logo { display: flex; align-items: center; gap: .45rem; } .champ .label-logo img { width: 26px; height: 26px; opacity: .9; }

/* Souvenirs des événements passés */
.souvenirs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.souvenir__lien { display: flex; flex-direction: column; height: 100%; background: var(--papier); border: 2px solid var(--trait); border-radius: var(--rayon); overflow: hidden; color: var(--encre); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.souvenir__lien:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(42, 36, 32, .14); }
.souvenir__lien img, .souvenir__sans-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.souvenir__sans-photo { display: grid; place-items: center; background: var(--ocre-pale); color: var(--terre); }
.souvenir__sans-photo svg { width: 3rem; height: 3rem; }
.souvenir__texte { display: grid; gap: .3rem; padding: 1rem 1.1rem 1.2rem; }
.souvenir__date { font-size: .9rem; font-weight: 700; color: var(--terre-texte); }
.souvenir__titre { font-family: var(--titre); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.souvenir__lieu, .souvenir__resume { font-size: .95rem; color: var(--encre-douce); }
.souvenir__photos { justify-self: start; margin-top: .2rem; padding: .15rem .65rem; border-radius: 999px; background: var(--sauge-pale); color: var(--sauge-fonce); font-size: .88rem; font-weight: 700; }
.evenement-passe { padding: .9rem 1.2rem; border-radius: var(--rayon); background: var(--sauge-pale); color: var(--sauge-fonce); font-weight: 600; }
.souvenirs__resume { margin-top: 1.6rem; }
.souvenirs__galerie { margin-top: 2.4rem; }
.galerie-souvenirs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.galerie-souvenirs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.galerie-souvenirs p { margin: .35rem 0 0; font-size: .92rem; color: var(--encre-douce); }
.souvenirs__contact { font-size: .95rem; color: var(--encre-douce); }

/* Boutons de partage */
.partage { margin-top: 2.4rem; padding: 1.3rem 1.4rem; border-radius: var(--rayon); background: var(--ocre-pale); }
.partage__titre { margin: 0 0 .8rem; font-family: var(--titre); font-weight: 800; font-size: 1.2rem; color: var(--ocre-texte); }
.partage__boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.partage__bouton { display: inline-flex; align-items: center; padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--terre); background: var(--papier); color: var(--terre-texte); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.partage__bouton:hover { background: var(--terre); color: #fff; }
.partage__bouton--facebook { border-color: #1b5fb4; color: #1b4f96; }
.partage__bouton--facebook:hover { background: #1b5fb4; color: #fff; }
.partage__bouton--whatsapp { border-color: #1f8a4c; color: #17693a; }
.partage__bouton--whatsapp:hover { background: #1f8a4c; color: #fff; }

/* Administration de l'agenda */
.admin__rubriques { display: flex; gap: .4rem; }
.admin__rubriques a { padding: .45rem .95rem; border-radius: 999px; font-weight: 700; color: var(--encre); text-decoration: none; border: 2px solid var(--trait); }
.admin__rubriques a[aria-current="page"] { background: var(--sauge); border-color: var(--sauge); color: #fff; }
.admin__entete { margin-bottom: 1.2rem; }
.admin__barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin__barre .admin__onglets { margin: 0; }
.admin__photos { margin-top: 2rem; }
.admin__galerie { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.admin__galerie li { position: relative; display: grid; gap: .4rem; }
.admin__galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.admin__couverture { position: absolute; top: .5rem; left: .5rem; }
.admin__legende { display: flex; gap: .4rem; margin: 0; }
.admin__legende input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: .4rem .6rem; border: 2px solid var(--trait); border-radius: 10px; }
.admin__actions-photo { display: flex; gap: 1rem; }
.admin__actions-photo form { margin: 0; }
.admin__legende .bouton-lien, .admin__actions-photo .bouton-lien { margin-top: 0; font-size: .9rem; }

/* Souvenirs proposés par les membres */
.partage-souvenirs { margin-top: 2.4rem; padding: 1.4rem 1.5rem; border: 2px dashed var(--sauge); border-radius: var(--rayon); background: var(--papier); }
.partage-souvenirs h2 { margin-top: 0; font-size: 1.35rem; }
.souvenirs__membres { margin-top: 2.4rem; }
.contribution { padding: 1rem 0; border-top: 1px dashed var(--trait); }
.contribution__auteur { margin: 0 0 .4rem; }
.contribution__message { margin: .6rem 0; padding: .7rem 1rem; border-left: 4px solid var(--ocre); background: var(--ocre-pale); border-radius: 0 12px 12px 0; font-style: italic; }
.contribution__message cite { display: block; margin-top: .3rem; font-style: normal; font-weight: 700; font-size: .92rem; color: var(--ocre-texte); }

/* Page d'installation */
.installation .admin__carte { margin-top: 1.4rem; }
.installation__verifs { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.installation__verifs li { display: grid; gap: .15rem; padding: .55rem .8rem; border-radius: 10px; }
.installation__verifs .ok { background: var(--sauge-pale); color: var(--sauge-fonce); }
.installation__verifs .ko { background: #fbe3dc; color: var(--terre-texte); }
.installation__details { max-height: 12rem; overflow: auto; white-space: pre-wrap; font-size: .85rem; background: var(--papier); padding: .6rem; border-radius: 8px; }
.page-erreur { padding-block: 2rem; }

/* Espace membre et adhésions */
.espace .admin__carte { margin-top: 1.4rem; }
.message--attention { background: var(--ocre-pale); color: var(--ocre-texte); }
.message--attention form { margin: .3rem 0 0; }
.adhesion { padding: .9rem 0; border-top: 1px dashed var(--trait); }
.adhesion:first-of-type { border-top: 0; }
.adhesion__titre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .4rem; }
.espace__plus { margin-top: 1rem; }
.espace__plus summary, .charte summary { cursor: pointer; font-weight: 700; color: var(--terre-texte); }
.charte { margin-bottom: .6rem; padding: .7rem 1rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--creme); }
.admin__actions-adhesion { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.admin__actions-adhesion select { font: inherit; padding: .45rem .6rem; border: 2px solid var(--trait); border-radius: 10px; background: var(--papier); }
.association-reglages { padding-top: 1rem; border-top: 1px dashed var(--trait); }
.association-reglages h3 { margin: 0; }

/* ---------- Fiche recette synthétique (à garder sous les yeux ou à imprimer) ---------- */
.page-fiche { background: var(--creme); }
.fiche__barre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; width: min(100% - 1.5rem, 60rem); margin: .8rem auto; font-weight: 700; }
.fiche__barre > a:first-child { margin-right: auto; }
.fiche__barre .bouton { min-height: 42px; padding: .45rem 1.1rem; font-size: 1rem; }
.fiche { width: min(100% - 1.5rem, 60rem); margin: 0 auto; background: var(--papier); border: 1px solid var(--trait); border-top: 10px solid var(--terre); border-radius: var(--rayon); padding: 1.2rem 1.4rem; font-size: 1rem; line-height: 1.45; }
.fiche h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 .2em; }
.fiche h2 { font-size: 1.1rem; color: var(--terre-texte); margin: .9rem 0 .4rem; padding-bottom: .2rem; border-bottom: 2px solid var(--trait); }
.fiche__entete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; align-items: flex-start; }
.fiche__site { margin: 0; font-size: .85rem; font-weight: 700; color: var(--sauge-fonce); text-transform: uppercase; letter-spacing: .04em; }
.fiche__etiquettes { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; font-size: .9rem; }
.fiche__etiquettes span { background: var(--ocre-pale); color: var(--ocre-texte); border-radius: 999px; padding: .05rem .6rem; font-weight: 700; }
.fiche__infos { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; font-size: .95rem; color: var(--encre-douce); }
.fiche__infos strong { color: var(--encre); }
.fiche__allergenes { margin: .6rem 0 0; font-size: .92rem; }
.fiche__colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 0 1.8rem; }
.fiche__ingredients ul { list-style: none; margin: 0; padding: 0; }
.fiche__ingredients li { padding: .15rem 0; border-bottom: 1px dashed var(--trait); }
.fiche__ingredients em { color: var(--encre-douce); font-size: .9em; }
.fiche__quantite { font-weight: 700; color: var(--terre-texte); }
.fiche__materiel { margin: 0; font-size: .95rem; }
.fiche__etapes ol { margin: 0; padding-left: 1.4rem; }
.fiche__etapes li { padding: .15rem 0 .35rem; }
.fiche__etapes li::marker { font-family: var(--titre); font-weight: 800; color: var(--terre-texte); }
.fiche__etapes p { margin: 0; }
.fiche__pied { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 2px solid var(--trait); font-size: .9rem; color: var(--encre-douce); }
.fiche__pied p { margin: 0; }
.fiche__qr { margin: 0; flex: none; }
.fiche__qr svg { display: block; width: 84px; height: 84px; }
.fiche__qr .qr-data-dark { fill: var(--encre); }
.fiche__lien { font-weight: 700; color: var(--terre-texte); word-break: break-all; }
.fiche__partage { width: min(100% - 1.5rem, 60rem); margin: 0 auto 2rem; }
@media (max-width: 700px) {
    .fiche { padding: 1rem; }
    .fiche__colonnes { grid-template-columns: 1fr; }
    .fiche__infos { grid-auto-flow: row; }
}

/* Impression : seulement la fiche, en noir sur blanc, sur une page A4 si possible */
@media print {
    @page { size: A4; margin: 12mm; }
    body, .page-fiche { background: #fff; color: #000; font-size: 10.5pt; }
    .fiche__barre, .fiche__partage, .lien-evitement { display: none !important; }
    .fiche { width: auto; margin: 0; border: 0; background: #fff; border-top: 6px solid var(--terre); border-radius: 0; padding: 0; font-size: 10.5pt; }
    .fiche__colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
    .fiche h2 { break-after: avoid; }
    .fiche__etapes li, .fiche__ingredients li { break-inside: avoid; }
    .fiche__etiquettes span { border: 1px solid #999; background: none; color: #000; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Agenda d'un four (membres) ---------- */
.agenda__semaines { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 1.6rem 0 1rem; }
.agenda__titre-semaine { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 1.2rem; }
.agenda__jours { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 1000px) { .agenda__jours { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; } }
.agenda__jour { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .6rem; align-items: start; }
@media (min-width: 1000px) { .agenda__jour { grid-template-columns: 1fr; } }
.agenda__date { margin: 0; font-size: 1rem; display: grid; line-height: 1.2; padding-top: .4rem; }
.agenda__date span { font-family: var(--texte); font-weight: 400; color: var(--encre-douce); font-size: .9rem; }
.agenda__jour--aujourdhui .agenda__date strong { color: var(--terre-texte); }
.agenda__creneaux { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
@media (min-width: 600px) and (max-width: 999px) { .agenda__creneaux { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.creneau { display: grid; gap: .05rem; min-height: 4.6rem; align-content: start; padding: .5rem .65rem; border-radius: 12px; text-decoration: none; color: var(--encre); font-size: .9rem; line-height: 1.3; border: 2px solid transparent; }
a.creneau:hover, a.creneau:focus-visible { border-color: var(--terre); }
.creneau__moment { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-douce); }
.creneau__quoi { font-weight: 700; }
.creneau__qui { font-size: .85rem; color: var(--encre-douce); }
.creneau--libre { border: 2px dashed var(--sauge); background: var(--papier); }
.creneau--libre .creneau__quoi { color: var(--sauge-fonce); }
.creneau--flambee { background: var(--ocre-pale); }
.creneau--flambee .creneau__qui strong { color: var(--ocre-texte); }
.creneau--attente { background: repeating-linear-gradient(-45deg, var(--ocre-pale) 0 10px, var(--papier) 10px 20px); }
.creneau--evenement { background: var(--sauge); color: #fff; }
.creneau--evenement .creneau__moment, .creneau--evenement .creneau__qui { color: #eef3ea; }
.creneau--passe { background: transparent; color: var(--encre-douce); opacity: .55; border: 2px solid var(--trait); }
.agenda__legende { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: 1.2rem; font-size: .95rem; color: var(--encre-douce); }
.creneau-pastille { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 4px; vertical-align: middle; }
.creneau-pastille--libre { border: 2px dashed var(--sauge); }
.creneau-pastille--flambee { background: var(--ocre-pale); border: 1px solid var(--ocre); }
.creneau-pastille--evenement { background: var(--sauge); }
.creneau-page h1 { margin-top: .6rem; }
.creneau-page__horaires { color: var(--encre-douce); font-weight: 700; }
.creneau-page .admin__carte { margin-top: 1.2rem; }
.flambee h2 { margin: .5rem 0 .3rem; }
.flambee__prevus { font-size: 1.15rem; }
.flambee__message { font-style: italic; color: var(--encre-douce); }
.flambee-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--trait); color: var(--encre); text-decoration: none; }
.flambee-ligne > span:nth-child(2) { grid-column: 1; color: var(--encre-douce); font-size: .95rem; }
.flambee-ligne .badge { grid-column: 2; grid-row: 1 / 3; }
.flambee-ligne__quand { font-weight: 700; }
.flambee-ligne:hover .flambee-ligne__quand { color: var(--terre-texte); text-decoration: underline; }
.espace__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Accueil et accords entre associations */
.accords { margin-top: 1.4rem; }
.choix-radio { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; font-weight: 400; }
.choix-radio input { width: 1.2rem; height: 1.2rem; accent-color: var(--terre); }
.accords__fours { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.accords__four p { margin: 0 0 .4rem; }
.accords__four .champ { margin-bottom: .6rem; }
.accords__liste { display: grid; gap: .6rem; margin-top: .6rem; }
.accords__ligne { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--trait); }
.accords__ligne select, .accords__ligne input { width: 100%; font: inherit; min-height: 44px; padding: .5rem .7rem; border: 2px solid var(--trait); border-radius: 12px; background: var(--papier); color: var(--encre); }
@media (max-width: 720px) { .accords__ligne { grid-template-columns: 1fr; } }
.flambee__acces { background: var(--sauge-pale); color: var(--sauge-fonce); border-radius: 12px; padding: .7rem .9rem; }
.rubrique-four--accueil { grid-column: 1 / -1; background: var(--sauge-pale); border-color: transparent; }
.rubrique-four__note { margin: .5rem 0 0; font-size: .95rem; color: var(--encre-douce); }

/* ---------- Ma session ---------- */
.session .admin__carte { margin-top: 1.2rem; }
.session__etapes { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; counter-reset: etape; }
.session__etapes li { counter-increment: etape; font-size: .8rem; font-weight: 700; line-height: 1.25; color: var(--encre-douce); border-top: 5px solid var(--trait); padding-top: .4rem; }
.session__etapes li::before { content: counter(etape) ". "; }
.session__etapes li.fait { border-top-color: var(--sauge); color: var(--sauge-fonce); }
.session__etapes li.en-cours { border-top-color: var(--terre); color: var(--terre-texte); }
@media (max-width: 520px) { .session__etapes li:not(.en-cours) { font-size: 0; } .session__etapes li:not(.en-cours)::before { font-size: .8rem; } }
.carte-ocre { background: var(--ocre-pale) !important; border-color: transparent !important; }
.carte-sauge { background: var(--sauge-pale) !important; border-color: transparent !important; }
.session__consignes { margin: 0; padding-left: 1.2rem; }
.session__codes { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.session__equipement { margin: 0 0 .3rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.code-molettes { display: flex; gap: .4rem; margin: 0; }
.code-molettes span { width: 3rem; height: 3.8rem; display: grid; place-items: center; background: var(--encre); color: var(--papier); border-radius: 10px; font-family: var(--titre); font-weight: 800; font-size: 2rem; font-variant-numeric: tabular-nums; }
.code-molettes--petit span { width: 2.2rem; height: 2.7rem; font-size: 1.4rem; }
.question-oui-non { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--trait); }
.question-oui-non legend { float: left; width: 100%; font-weight: 700; margin-bottom: .3rem; }
.question-oui-non label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; min-height: 44px; padding: 0 .9rem; border: 2px solid var(--trait); border-radius: 999px; cursor: pointer; }
.question-oui-non label:has(input:checked) { border-color: var(--terre); background: var(--terre-pale); color: var(--terre-texte); }
.question-oui-non input { accent-color: var(--terre); }
.session__liste { display: grid; gap: .7rem; }
.coche { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.coche .case-brique { margin-top: .35rem; flex: none; }
.session__procedure { margin: 0; padding-left: 1.4rem; display: grid; gap: .4rem; }
.session__serrure .code-molettes { margin: .3rem 0; }
.session__rappel-codes { margin-top: .8rem; }
.session__rappel-codes summary, .session__signaler summary { cursor: pointer; }
/* Passer la main */
.passation__carte { text-align: center; display: grid; justify-items: center; gap: .8rem; }
.passation__consigne { font-weight: 700; font-size: 1.1rem; }
.passation__qr { margin: 0; }
.passation__qr svg { display: block; width: min(260px, 70vw); height: auto; background: #fff; border-radius: 14px; padding: 10px; }
.passation__qr .qr-data-dark { fill: #2a2420; }
.code-molettes--lettres span { width: 2.6rem; }
.champ--code { font-family: var(--titre); font-size: 1.6rem !important; letter-spacing: .3em; text-transform: uppercase; }
.session__pret { margin: 1rem 0 0; font-weight: 700; color: var(--sauge-fonce); }
.session__pret--attente { color: var(--encre-douce); font-weight: 400; }
.session__liens { list-style: none; padding: 0; display: grid; gap: .6rem; }

/* ---------- Faire un don ---------- */
.dons__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.dons__carte { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.6rem; background: var(--papier); border: 2px solid var(--trait); border-radius: var(--rayon); }
.dons__carte h2 { margin: 0; font-size: 1.4rem; }
.dons__carte p { margin: 0; }
.dons__carte .bouton { margin-top: auto; }
.dons__qui { color: var(--terre-texte); }
.dons__helloasso { margin-top: 2rem; background: var(--ocre-pale); border-color: transparent; }
.dons__adherer { margin-top: 1.4rem; font-weight: 700; }
.rubrique-four--don { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; }
.rubrique-four--don p { margin: 0; }

/* ---------- Mes espaces ---------- */
.espaces__liste { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.espaces__carte { display: grid; gap: .3rem; padding: 1.3rem 1.5rem; border-radius: var(--rayon); border: 2px solid var(--trait); background: var(--papier); color: var(--encre); text-decoration: none; }
.espaces__carte:hover, .espaces__carte:focus-visible { border-color: var(--terre); }
.espaces__carte strong { font-family: var(--titre); font-size: 1.3rem; }
.espaces__carte span:last-child { color: var(--encre-douce); }
.espaces__type { justify-self: start; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .7rem; border-radius: 999px; background: var(--sauge-pale); color: var(--sauge-fonce); }
.espaces__carte--association .espaces__type { background: var(--ocre-pale); color: var(--ocre-texte); }
.espaces__carte--network .espaces__type { background: var(--terre-pale); color: var(--terre-texte); }
.connexion__espaces { margin-top: 2rem; } .connexion__espaces ul { margin: .4rem 0 .6rem; padding-left: 1.2rem; }

/* ---------- Administration d'une association ---------- */
.asso__abonnement { margin: .2rem 0 0; }
.asso__chiffres { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.asso__chiffres li { padding: 1rem 1.2rem; border-radius: var(--rayon); background: var(--papier); border: 2px solid var(--trait); }
.asso__chiffres strong { display: block; font-family: var(--titre); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.asso__chiffre--action { border-color: var(--ocre) !important; background: var(--ocre-pale) !important; }
.asso__four { margin-top: 1.2rem; }
.asso__alertes { list-style: none; margin: .4rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.asso__alerte { padding: .3rem .9rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.asso__alerte--ok { background: var(--sauge-pale); color: var(--sauge-fonce); }
.asso__alerte--action { background: var(--ocre-pale); color: var(--ocre-texte); }
.asso__alerte--urgent { background: #fbe3dc; color: var(--terre-texte); }
.asso__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem 1.2rem; margin: 0 0 .8rem; }
.asso__stats div { border-bottom: 1px dashed var(--trait); padding: .4rem 0; display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.asso__stats dt { color: var(--encre-douce); font-size: .95rem; }
.asso__stats dd { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.asso__membres { margin-top: 2.4rem; }
.asso__membres-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.asso__membres-entete h2 { margin: 0; }
.tableau-defilant { overflow-x: auto; margin-top: 1rem; }
.tableau-membres { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--papier); border-radius: var(--rayon); overflow: hidden; font-size: .97rem; }
.tableau-membres th, .tableau-membres td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau-membres th { background: var(--sauge-pale); color: var(--sauge-fonce); font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.tableau-membres .bouton-lien { margin: 0; }
.asso__role select { font: inherit; padding: .3rem .5rem; border: 2px solid var(--trait); border-radius: 10px; background: var(--papier); color: var(--encre); }
.badge--alerte { background: #fbe3dc; color: var(--terre-texte); }
.admin__liens { display: flex; align-items: center; gap: .4rem; margin: 0; } .admin__liens form { display: inline; } .admin__liens .bouton-lien { margin: 0; }
