/* Acog — feuille de style commune (style « Net », choisi le 2026-10-13). Les couleurs viennent de
   l'association (variables CSS) : les teintes dérivées (bordures, texte doux, fonds teintés) en sont
   déduites, avec une valeur fixe pour les navigateurs qui ne connaissent pas color-mix. */
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/polices/nunito-sans.woff2) format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-style: italic; font-weight: 200 1000; font-display: swap;
  src: url(/polices/nunito-sans-italique.woff2) format("woff2");
}
:root {
  /* Palette d'un nouveau site (public/js/palette.js, PALETTE_DEFAUT). */
  --principale: #2f5d8a;
  --principale-fonce: #22476b;
  --fond: #f6f8fb;
  --surface: #ffffff;
  --texte: #1f2a36;
  --texte-doux: #4f5b68;
  --accent: #e0a32e;
  --bordure: #dde3ea;
  --teinte: #e8eef5;
  /* Couleurs d'état, les mêmes pour tous les sites : texte, fond et bordure de chaque état (messages,
     badges, cases à corriger). Contraste du texte sur son fond vérifié par test/palette.test.js. */
  --succes: #1e6b34;
  --succes-fond: #e6f4ea;
  --succes-bordure: #b4dcbf;
  --attention: #7a4a00;
  --attention-fond: #fff3df;
  --attention-bordure: #f2cf94;
  --erreur: #a8201a;
  --erreur-fond: #fdecea;
  --erreur-bordure: #f3bcb8;
  --info: #1d4f86;
  --info-fond: #e6effa;
  --info-bordure: #b9d2ee;
  /* Texte posé sur la couleur principale ou d'accent : blanc ou foncé, choisi par commun.js selon le
     contraste. */
  --principale-texte: #ffffff;
  --accent-texte: #1f2a36;
  --accent-fonce: #c18a1f;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(31, 42, 54, .10);
  --texte-doux: color-mix(in oklab, var(--texte) 74%, var(--fond));
  --bordure: color-mix(in oklab, var(--texte) 16%, var(--fond));
  --teinte: color-mix(in oklab, var(--principale) 10%, var(--surface));
  --ombre: 0 1px 2px color-mix(in oklab, var(--texte) 12%, transparent);
  --accent-fonce: color-mix(in oklab, var(--accent) 86%, #000);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.5;
}
a { color: var(--principale); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
h2 { color: var(--texte); font-weight: 800; }
h3 { font-weight: 700; }
/* Titre précédé d'une icône (public/js/icones.js) dans un carré teinté de la couleur principale. */
h1:has(> .icone), h2:has(> .icone), h3:has(> .icone) { display: flex; align-items: center; gap: .5em; }
.icone { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--teinte); color: var(--principale); }
.icone svg { width: 20px; height: 20px; }
h1 > .icone { width: 42px; height: 42px; border-radius: 11px; }
h1 > .icone svg { width: 24px; height: 24px; }
h3 > .icone { width: 28px; height: 28px; border-radius: 8px; }
h3 > .icone svg { width: 17px; height: 17px; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
[v-cloak] { display: none; }

/* En-tête, fixé en haut de l'écran sur toutes les pages ; réduit une fois la page défilée. */
.haut-page { position: sticky; top: 0; z-index: 100; }
html { scroll-padding-top: calc(var(--haut-entete, 0px) + 8px); }
.haut-page.compacte .entete-contenu { padding-top: 4px; padding-bottom: 4px; }
.haut-page.compacte .marque img { height: 28px; }
.haut-page.compacte .marque { font-size: 1rem; }
.haut-page.compacte .menu-bouton { padding: 3px 4px 3px 10px; }
.entete {
  background: var(--surface);
  border-bottom: 3px solid var(--principale);
  box-shadow: var(--ombre);
}
.entete-contenu {
  margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font-weight: 700; font-size: 1.15rem; min-width: 0; }
.marque img { height: 44px; width: auto; }
.marque span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: relative; }
/* Sélecteur de site, à côté du logo. */
.marque-zone { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; }
.marque-choix { border: 0; background: none; cursor: pointer; color: var(--texte-doux); font-size: 1rem; padding: 6px 8px; border-radius: 8px; }
.marque-choix:hover, .marque-choix[aria-expanded="true"] { background: var(--teinte); color: var(--principale); }
.menu-liste.choix-sites { left: 0; right: auto; }
.choix-sites img { height: 22px; width: 22px; object-fit: contain; }
.choix-sites button.actuel { font-weight: 700; }
.menu-bouton {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--bordure); border-radius: 999px; padding: 4px 6px 4px 12px;
  font: inherit; font-size: .9rem; color: var(--texte); cursor: pointer; max-width: 52vw; white-space: nowrap;
}
.menu-bouton .menu-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Trois traits : on voit que c'est un menu. */
.menu-bouton .menu-trois-traits { width: 28px; height: 28px; border-radius: 999px; }
.menu-bouton .menu-trois-traits svg { width: 18px; height: 18px; }
.menu-bouton:hover .menu-trois-traits, .menu-bouton[aria-expanded="true"] .menu-trois-traits { background: var(--principale); color: var(--principale-texte); }
.menu-liste {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 240px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: 0 6px 20px rgba(0,0,0,.12);
  list-style: none; margin: 0; padding: 6px 0;
}
.menu-liste a, .menu-liste button {
  display: block; width: 100%; text-align: left; padding: 10px 16px; color: var(--texte); text-decoration: none;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.menu-liste a:hover, .menu-liste button:hover { background: var(--fond); }
.menu-liste hr { border: 0; border-top: 1px solid var(--bordure); margin: 6px 0; }

/* Mise en page */
main { margin: 0 auto; padding: 20px 16px 48px; }
.pied { text-align: center; padding: 16px; border-top: 1px solid var(--bordure); color: var(--texte-doux); font-size: .88rem; }
.pied a { color: var(--texte-doux); }
.texte-riche h2, .texte-riche h3, .texte-riche h4 { margin-top: 1.1em; }
.texte-riche ul, .texte-riche ol { padding-left: 1.3em; }

/* Éditeur de texte commun (public/js/editeur.js) */
.editeur { margin-bottom: 8px; }
.editeur-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; }
.editeur-barre button { font: inherit; font-size: .85rem; padding: 3px 10px; border: 1px solid var(--bordure); border-radius: 6px; background: var(--surface); color: var(--texte); cursor: pointer; }
.editeur-barre button.actif { background: var(--principale); border-color: var(--principale); color: var(--principale-texte); }
.editeur-outils { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; }
.editeur textarea { width: 100%; font-family: inherit; }
.editeur-apercu { border: 1px dashed var(--bordure); border-radius: 8px; padding: 4px 14px; background: var(--surface); }
.editeur-aide { margin: 2px 0 0; font-size: .8rem; }
.editeur-conseils { position: relative; margin-left: auto; }
.editeur-conseils > button { border-color: var(--accent); color: var(--attention); }
.editeur-bulle { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(460px, 86vw); max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: 0 6px 20px rgba(0,0,0,.15);
  padding: 4px 16px; font-size: .9rem; line-height: 1.45; }
.etroit { max-width: 520px; }
.carte {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 18px; margin-bottom: 18px;
}
.grille { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grille.deux { grid-template-columns: 1fr 1fr; } }
/* Trois volets : un par ligne sur téléphone, autant que la largeur le permet ailleurs. */
.grille.trois { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
/* Grille « en mur de briques » (v-maconnerie, composants.js) : lignes de 2 px, chaque carte placée
   par le script ; l'écart vertical est compris dans la hauteur de chaque carte. */
.maconnee { grid-auto-rows: 2px; row-gap: 0 !important; align-items: start; }
.maconnee > * { margin-top: 0 !important; margin-bottom: 0 !important; }
/* Une carte par saison (adhésions passées, toutes mes commandes) : plusieurs par ligne ; mise en
   avant quand sa saison est survolée dans le graphique (et inversement). */
.grille.cartes-saisons { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.grille.cartes-saisons > .carte { margin-bottom: 0; }
.carte-survolable { transition: border-color .15s, box-shadow .15s; }
.carte-survolable.en-avant { border-color: var(--principale); box-shadow: 0 0 0 1px var(--principale), var(--ombre); }
.gras { font-weight: 700; }
/* Lien vers un producteur ou une commande au milieu d'un texte : il garde l'apparence du texte,
   souligné au survol. */
a.lien-discret { color: inherit; text-decoration: none; }
a.lien-discret:hover, a.lien-discret:focus-visible { color: var(--principale); text-decoration: underline; }
.doux { color: var(--texte-doux); font-size: .92rem; }
.bandeau-demo { background: var(--accent); color: var(--accent-texte); text-align: center; font-weight: 600; padding: 6px 16px; font-size: .9rem; }

/* Boutons et formulaires */
.bouton {
  display: inline-block; background: var(--principale); color: var(--principale-texte); border: 1.5px solid var(--principale); border-radius: 8px;
  padding: 7px 15px; font: inherit; font-size: .93rem; font-weight: 700; line-height: 1.35; text-decoration: none; cursor: pointer; text-align: center;
}
.bouton:hover { background: var(--principale-fonce); border-color: var(--principale-fonce); }
.bouton:focus-visible, .lien-bouton:focus-visible, .onglets button:focus-visible { outline: 2px solid var(--principale-fonce); outline-offset: 2px; }
.bouton:disabled { opacity: .6; cursor: wait; }
.bouton.secondaire { background: transparent; color: var(--principale); border: 1.5px solid var(--principale); }
.bouton.secondaire:hover { background: var(--teinte); color: var(--principale-fonce); }
.bouton.large { display: block; width: 100%; padding: 11px 18px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
label { display: block; font-weight: 600; margin: 10px 0 3px; }
label.choix-simple { font-weight: 400; margin: 6px 0; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 7px 10px; font: inherit; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; color: var(--texte);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--principale); outline-offset: 1px; border-color: var(--principale); }
/* Cases à cocher, boutons radio, curseurs : dans la couleur de l'association (accent-color). */
:root { accent-color: var(--principale); }
input[type=checkbox], input[type=radio] { width: 1.1em; height: 1.1em; margin: 0 .4em 0 0; vertical-align: -.15em; cursor: pointer; }
/* Listes de choix : flèche dessinée (la liste ouverte reste celle du système). */
select:not([multiple]) {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
}
select:not([multiple]):hover { border-color: var(--principale); }
select[multiple] option:checked { background: var(--teinte); color: var(--texte); }
.champs-deux { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 520px) { .champs-deux { grid-template-columns: 1fr 1fr; } }
.message { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.message.erreur { background: var(--erreur-fond); color: var(--erreur); }
.message.succes { background: var(--succes-fond); color: var(--succes); }
.message.attention { background: var(--attention-fond); color: var(--attention); }
.message.info { background: var(--info-fond); color: var(--info); }

/* Listes */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding: 12px 0; border-top: 1px solid var(--bordure); }
.liste > li:first-child { border-top: 0; }
.ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  background: var(--fond); color: var(--texte); border: 1px solid var(--bordure); white-space: nowrap;
}
.badge.ouverte { background: var(--principale); color: var(--principale-texte); border-color: var(--principale); }
.badge.distribuee { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.badge.commandee { background: var(--teinte); color: var(--principale-fonce); }
.badge.preparation { background: var(--info-fond); color: var(--info); border-color: var(--info-bordure); }
.badge.distribution { background: var(--info); color: #fff; border-color: var(--info); }
.badge.attente { background: var(--attention-fond); color: var(--attention); border-color: var(--attention-bordure); }
.badge.erreur { background: var(--erreur-fond); color: var(--erreur); border-color: var(--erreur-bordure); }
.membres { margin: 8px 0 0; padding-left: 18px; }
.montant { font-weight: 700; white-space: nowrap; }

textarea { min-height: 90px; resize: vertical; }
input.petit { width: 6em; padding: 8px; text-align: right; }
.badge.brouillon { background: color-mix(in oklab, var(--texte) 7%, var(--surface)); color: var(--texte-doux); }
.badge.publiee, .badge.prevue { background: var(--teinte); color: var(--principale); border-color: var(--principale); }
.badge.soldee { background: var(--succes-fond); color: var(--succes); border-color: var(--succes-bordure); }
/* Petits boutons, avec ou sans texte, partout à la même hauteur (28 px). */
.bouton.petit { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 28px; padding: 3px 11px; font-size: .86rem; line-height: 1.3; border-radius: 7px; }
/* Action directe mise en avant (Commander) : la couleur 2 de l'association. */
.bouton.accent { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.bouton.accent:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton.danger { background: var(--erreur); border-color: var(--erreur); color: #fff; }
.bouton.danger:hover { filter: brightness(.9); }
/* Petit bouton d'action secondaire (modifier, retirer, annuler…), avec son icône. */
.lien-bouton {
  display: inline-flex; align-items: center; gap: 4px; background: transparent; color: var(--principale); border: 1.5px solid var(--principale); text-decoration: none;
  border-radius: 7px; padding: 3px 9px; font: inherit; font-size: .84rem; font-weight: 700; line-height: 1.3; cursor: pointer; white-space: nowrap; vertical-align: middle;
  box-sizing: border-box; min-height: 28px;
}
.lien-bouton:hover { background: var(--teinte); color: var(--principale-fonce); }
.lien-bouton:disabled { opacity: .6; cursor: wait; }
/* Nom cliquable dans une liste (ouvre le détail) : un lien. */
.lien-texte { background: none; border: 0; padding: 0; color: var(--principale); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.lien-texte:focus-visible { outline: 2px solid var(--principale-fonce); outline-offset: 2px; }
/* Icône dans un bouton : à la taille du texte, sans pastille. */
.bouton .icone, .lien-bouton .icone { width: 1.1em; height: 1.1em; background: none; border-radius: 0; color: inherit; vertical-align: -.18em; }
.bouton .icone { margin-right: 5px; }
.bouton .icone svg, .lien-bouton .icone svg { width: 100%; height: 100%; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.onglets button { background: var(--surface); border: 1px solid var(--bordure); border-radius: 999px; padding: 5px 13px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; color: var(--texte); }
.onglets button.actif { background: var(--principale); color: var(--principale-texte); border-color: var(--principale); }

/* Tableaux */
.defilement { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Plusieurs téléphones : un numéro par ligne, le principal coché. */
.champ-telephones .ligne-telephone { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.champ-telephones .ligne-telephone input[type="tel"] { flex: 1; min-width: 0; margin: 0; }
.champ-telephones .principal-telephone { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; font-size: .88rem; white-space: nowrap; }
.champ-telephones .principal-telephone input { width: auto; margin: 0; }
/* Colonnes cachées : ombre sur le bord (à côté des colonnes fixes) et flèche pour défiler d'une page. */
.defilement-cadre { position: relative; }
.defilement-cadre::before, .defilement-cadre::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18px; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .2s; }
.defilement-cadre::before { left: var(--fixe-gauche, 0); background: linear-gradient(to right, rgba(0,0,0,.14), transparent); }
.defilement-cadre::after { right: var(--fixe-droite, 0); background: linear-gradient(to left, rgba(0,0,0,.14), transparent); }
.defilement-cadre.cache-gauche::before, .defilement-cadre.cache-droite::after { opacity: 1; }
.defiler-fleche { position: absolute; top: min(50%, 120px); transform: translateY(-50%); z-index: 5; width: 32px; height: 32px; padding: 6px; border-radius: 50%; border: 1px solid var(--principale); background: var(--surface); color: var(--principale); box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.defiler-fleche .icone { width: 18px; height: 18px; margin: 0; }
.defiler-fleche:hover { background: var(--principale); color: var(--principale-texte); }
.defiler-fleche.gauche { left: calc(var(--fixe-gauche, 0px) + 4px); }
.defiler-fleche.droite { right: calc(var(--fixe-droite, 0px) + 4px); }
@media print { .defiler-fleche, .defilement-cadre::before, .defilement-cadre::after { display: none; } }
table.tableau { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tableau th, .tableau td { border-bottom: 1px solid var(--bordure); padding: 8px 6px; text-align: left; vertical-align: top; }
.tableau th { font-size: .82rem; color: var(--texte-doux); font-weight: 700; }
.tableau td.nombre, .tableau th.nombre { text-align: right; white-space: nowrap; }
.tableau tfoot td { font-weight: 700; border-top: 2px solid var(--texte); }
.tableau .anomalie { background: var(--attention-fond); color: var(--attention); font-weight: 700; }
/* Récapitulatif d'une commande : quantité corrigée (orange) ou inhabituelle (bleu), détail au survol. */
.tableau .vide { color: color-mix(in oklab, var(--texte) 30%, var(--surface)); }
.tableau tr.sans-commande td { color: var(--texte-doux); }
.tableau tr.sans-commande strong { font-weight: 600; }
.tableau tr.archive td { opacity: .55; }
.vignette { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--fond); display: block; }

/* Saisie des quantités : grosses cibles au doigt */
.quantite { display: flex; align-items: center; gap: 4px; }
.quantite button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--surface); font-size: 1.3rem; cursor: pointer; color: var(--principale); }
.quantite input { width: 3.4em; text-align: center; padding: 10px 4px; font-size: 1.1rem; }
.lien-bouton + .lien-bouton { margin-left: 6px; }

/* Impression (bilan, facturettes) : sans l'en-tête ni le pied de page. */
@media print {
  .entete, .pied, .bandeau-demo, .sans-impression { display: none !important; }
  main { padding: 0; }
  .carte { box-shadow: none; }
}

/* Menu du compte : titre d'un groupe de liens (« Mes autres sites »). */
.menu-liste .menu-titre { padding: 4px 14px; font-size: .8rem; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .04em; }

/* Annonce d'une action réussie (« Cotisation remboursée »…) : flottante en bas de l'écran, elle
   disparaît d'elle-même et ne décale pas la page. */
.message.annonce { position: fixed; left: 50%; bottom: 20px; z-index: 1100; margin: 0; width: max-content; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 6px 20px rgba(0,0,0,.18); pointer-events: none; animation: annonce 5s forwards; }
@keyframes annonce { 0% { opacity: 0; transform: translate(-50%, 10px); } 6%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); visibility: hidden; } }
/* Une erreur reste plus longtemps à lire. */
.message.erreur.annonce { animation-duration: 12s; }
@media (prefers-reduced-motion: reduce) { .message.annonce { animation-name: annonce-sans-mouvement; } }
@keyframes annonce-sans-mouvement { 0%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); visibility: hidden; } }
/* Bulle « Un problème ? » : en bas à droite de chaque page (remarque sur le site, question). */
.remarque { position: fixed; right: 16px; bottom: 16px; z-index: 50; }
.remarque-bouton { display: flex; align-items: center; gap: 6px; border: 1px solid var(--bordure); border-radius: 999px; padding: 4px 14px 4px 4px; background: var(--surface); color: var(--texte); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.remarque-bouton .icone { width: 30px; height: 30px; border-radius: 999px; }
.remarque-bouton .icone svg { width: 17px; height: 17px; }
.remarque-panneau { width: min(390px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 12px 14px; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.remarque-panneau textarea { margin: 6px 0 8px; }
.remarque-panneau input, .remarque-panneau select { margin: 4px 0; }
.remarque-panneau label { margin-top: 6px; }
.remarque-panneau .onglets { margin: 8px 0 6px; flex-wrap: nowrap; }
.remarque-panneau .onglets button { flex: 1; font-size: .82rem; padding: 4px 10px; white-space: nowrap; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.remarque-panneau p { margin: 6px 0; font-size: .9rem; }
@media print { .remarque { display: none; } }

/* Action rapide : une étiquette discrète (« à confirmer ») qui laisse place à de petits boutons au
   survol, ou au toucher et au clavier (focus), sans clic préalable. */
/* Les boutons se posent par-dessus l'étiquette, qui garde sa place : rien ne bouge autour. */
.action-rapide { position: relative; display: inline-flex; align-items: center; vertical-align: middle; border-radius: 999px; outline-offset: 2px; }
.action-rapide-boutons { display: none; gap: 4px; position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; z-index: 5; }
.action-rapide:hover .action-rapide-etiquette, .action-rapide:focus-within .action-rapide-etiquette, .action-rapide.ouvert .action-rapide-etiquette { visibility: hidden; }
.action-rapide:hover .action-rapide-boutons, .action-rapide:focus-within .action-rapide-boutons, .action-rapide.ouvert .action-rapide-boutons { display: inline-flex; }
.bouton-mini { font: inherit; font-size: .78rem; font-weight: 700; line-height: 1.5; padding: 1px 10px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--principale); background: var(--principale); color: var(--principale-texte); }
.bouton-mini.non { background: var(--surface); border-color: var(--erreur); color: var(--erreur); }
.bouton-mini:hover { filter: brightness(.92); }

/* Icônes du menu du compte : petites, sans fond. */
.menu-liste a, .menu-liste button { display: flex; align-items: center; gap: 10px; }
.menu-liste .icone { width: 18px; height: 18px; background: none; border-radius: 0; color: var(--principale); }
.menu-liste .icone svg { width: 18px; height: 18px; }

/* Icône d'un producteur devant son nom. */
.icone.carotte.petite { width: 20px; height: 20px; background: none; border-radius: 0; vertical-align: -4px; margin-right: 6px; }
.icone.carotte.petite svg { width: 18px; height: 18px; }
.liste-producteurs .icone.carotte { width: 56px; height: 56px; border-radius: 8px; }
.liste-producteurs .icone.carotte svg { width: 30px; height: 30px; }
.icone-producteur { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; vertical-align: -4px; margin-right: 6px; }

/* Liste des producteurs (public/js/producteurs.js). */
.liste-producteurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; }
.liste-producteurs a { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.liste-producteurs a:hover, .liste-producteurs li.en-avant a { border-color: var(--couleur-producteur, var(--principale)); box-shadow: 0 0 0 1px var(--couleur-producteur, var(--principale)); }
.liste-producteurs li { position: relative; }
.liste-producteurs li:has(.bouton-archiver) a { padding-right: 46px; }
.liste-producteurs li.archive a { opacity: .55; border-style: dashed; }
.liste-producteurs .bouton-archiver { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: var(--teinte); color: var(--principale); cursor: pointer; }
.liste-producteurs .bouton-archiver:hover { border-color: var(--principale); }
.liste-producteurs .bouton-archiver .icone { width: 18px; height: 18px; background: none; }
.liste-producteurs .bouton-archiver .icone svg { width: 16px; height: 16px; }
.liste-producteurs .vignette { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: contain; background: #fff; }
.liste-producteurs .vignette.photo { object-fit: cover; }
.liste-producteurs strong { color: var(--principale); display: block; }
.liste-producteurs .doux { font-size: .88rem; }

/* Boîte de dialogue (public/js/dialogue.js), à la place de confirm() et prompt(). */
.dialogue { border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); color: var(--texte); padding: 18px 20px 14px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.dialogue::backdrop { background: rgba(0,0,0,.35); }
.dialogue p { margin: 0 0 10px; white-space: pre-line; }
.dialogue input, .dialogue textarea { width: 100%; margin-bottom: 4px; }
.dialogue .actions { margin-top: 12px; }

/* Images envoyées dès leur choix (composant choix-image) : logos, icônes. */
.images-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.choix-image { border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; }
.choix-image .vignette { height: 68px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; margin: 8px 0; }
.choix-image .vignette img { max-height: 60px; max-width: 100%; }
.choix-image .vignette span { white-space: nowrap; }
.choix-image label.bouton { display: inline-block; margin: 0; }
.choix-image .lien-bouton { margin-left: 10px; }

/* Refus avec message (composant formulaire-refus). */
.formulaire-refus { margin: 4px 0 10px; padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; }
.formulaire-refus label { margin-top: 0; }

/* Navigation principale (grand écran) et pastille « à faire » du menu. */
.nav-principale { display: none; gap: 4px; margin-left: auto; }
.nav-principale a { padding: 7px 12px; border-radius: 999px; color: var(--texte); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-principale a:hover { background: var(--fond); }
.nav-principale a[aria-current="page"] { background: var(--teinte); color: var(--principale-fonce); }
@media (min-width: 900px) { .nav-principale { display: flex; } }
.pastille { display: inline-block; min-width: 1.5em; padding: 1px 6px; margin-right: 6px; border-radius: 999px; background: var(--accent); color: var(--accent-texte); font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.4; }
.menu-liste .pastille { margin: 0 0 0 8px; }
/* Élément de liste cliquable en entier (commun.js, elementsLiens). */
.element-lien { cursor: pointer; }
.a-faire-liste li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-faire-liste .a-faire-texte { flex: 1; min-width: 180px; }
/* Petit écran : une icône à la place de l'email dans le bouton du menu, pour laisser le nom du site. */
.menu-bouton .menu-icone { display: none; }
@media (max-width: 520px) {
  .menu-bouton { gap: 2px; padding: 3px 4px 3px 6px; }
  .menu-bouton .menu-icone { display: inline-grid; width: 28px; height: 28px; background: none; }
  .menu-bouton .menu-email { display: none; }
}

/* Chargement en cours (composant chargement). */
.chargement { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--texte-doux); padding: 24px 0; }
.chargement .roue { width: 20px; height: 20px; border: 3px solid var(--bordure); border-top-color: var(--principale); border-radius: 50%; animation: tourner .8s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chargement .roue { animation-duration: 2.4s; } }
/* La bulle « Un problème ? » ne cache pas le pied de page. */
.remarque ~ .pied, .pied:has(~ .remarque) { padding-bottom: 76px; }

/* Commande du groupe et souhaits (public/js/commande-groupe/). */
.compteur { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.compteur button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--surface); color: var(--principale); font-size: 1.05rem; line-height: 1; cursor: pointer; padding: 0; }
.compteur button:disabled { opacity: .35; cursor: default; }
.compteur output { min-width: 2.6em; text-align: center; font-weight: 700; }
.tableau-souhaits { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tableau-souhaits th, .tableau-souhaits td { padding: 6px 8px; border-bottom: 1px solid var(--bordure); text-align: center; vertical-align: top; white-space: nowrap; }
.tableau-souhaits th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; white-space: normal; min-width: 120px; }
.tableau-souhaits thead th { font-size: .85rem; color: var(--texte-doux); font-weight: 600; }
.tableau-souhaits .passee { background: var(--teinte); }
.tableau-souhaits .total { font-weight: 600; }
.tableau-souhaits .anomalie { color: var(--attention); background: var(--attention-fond); }
.tableau-souhaits .manque { font-size: .8rem; font-weight: 400; }
.compteur input { width: 3.6em; text-align: center; font-weight: 700; padding: 4px 2px; }
.bulle { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teinte); color: var(--principale); font-weight: 800; font-size: .8rem; cursor: help; outline-offset: 2px; }
.bulle-flottante { position: fixed; z-index: 1000; width: max-content; max-width: min(320px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 8px; background: var(--texte); color: var(--surface); font-weight: 400; font-size: .85rem; line-height: 1.4; text-align: left; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 6px 20px rgba(0,0,0,.2); pointer-events: none; }
.present { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--succes); margin-right: 5px; vertical-align: 1px; box-shadow: 0 0 0 2px var(--succes-fond); }
.mode-cellule { font-size: .78rem; margin-left: 2px; }
.tableau-souhaits input.part { width: 4.2em; text-align: center; padding: 4px; }
.tableau-souhaits input.part.invalide { border-color: var(--erreur); background: var(--erreur-fond); }

/* Tableau unique des souhaits : produit et ma colonne fixes à gauche, total fixe à droite. */
.tableau-groupe { --col-produit: 140px; --col-moi: 132px; }
@media (max-width: 560px) { .tableau-groupe { --col-produit: 84px; --col-moi: 108px; } .tableau-groupe .fixe-produit { font-size: .88rem; } }
.tableau-groupe .tableau-souhaits { width: auto; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.tableau-groupe .tableau-souhaits th, .tableau-groupe .tableau-souhaits td { background: var(--surface); }
.tableau-groupe .fixe-produit { position: sticky; left: 0; z-index: 5; width: var(--col-produit); min-width: var(--col-produit); max-width: var(--col-produit); text-align: left; white-space: normal; }
.tableau-groupe .tableau-souhaits .passee { background: var(--teinte); }
/* Les souhaits (dont le mien, saisi) en discret ; la deuxième ligne, ce que chacun aura, en avant. */
.tableau-groupe thead tr.commentaires th { border-bottom: 0; padding-bottom: 0; vertical-align: bottom; font-weight: 400; }
.tableau-groupe #mon-commentaire { width: 100%; min-width: 9em; font: inherit; font-size: .8rem; line-height: 1.3; padding: 3px 6px; resize: none; display: block; min-height: 0; height: calc(2.6em + 8px); overflow-y: auto; }
.tableau-groupe .etat { font-size: .72rem; font-weight: 400; min-height: 1em; }
.tableau-groupe .taux-souhaits { font-size: .72rem; font-weight: 400; white-space: nowrap; }
.tableau-groupe tfoot th, .tableau-groupe tfoot td { font-size: .88rem; border-bottom: 0; border-top: 1px solid var(--bordure); }
.ma-saisie { display: inline-flex; align-items: center; gap: 4px; }
.ma-saisie input { width: 3.6em; text-align: center; font-size: .85rem; color: var(--texte-doux); padding: 3px 2px; }
.ma-saisie .mode { border: 1px solid var(--bordure); border-radius: 999px; background: var(--surface); font: inherit; font-size: .75rem; padding: 3px 7px; cursor: pointer; color: var(--texte-doux); min-width: 3.6em; }
.ma-saisie .mode.max, .ma-saisie .mode.min { border-color: var(--principale); color: var(--principale); font-weight: 700; }
/* Commentaire court au-dessus du nom ; le texte entier en bulle au survol ou au toucher. */
.commentaire { position: relative; display: inline-block; max-width: 11em; vertical-align: bottom; font-size: .78rem; font-style: italic; color: var(--texte-doux); cursor: help; }
/* Commentaire sur deux lignes au plus ; le texte entier en bulle. */
.commentaire .texte-court { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; white-space: normal; line-height: 1.3; }
.legende { font-size: .85rem; margin-top: 6px; }
.tableau-groupe .tableau-souhaits th:first-child { min-width: 0; }
/* Petit écran : seuls le produit et ma colonne restent fixes, le total défile avec les autres. */
/* Étapes des souhaits d'un groupe. */
.etapes-souhaits { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.etapes-souhaits span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: color-mix(in oklab, var(--texte) 6%, var(--surface)); color: var(--texte-doux); }
.etapes-souhaits span.actuelle { background: var(--principale); color: var(--principale-texte); font-weight: 700; }
/* Produit indisponible : barré, grisé, en lecture seule. */
.indisponible, tr.indisponible > * { opacity: .55; }
tr.indisponible th, tr.indisponible td:first-child strong, th.indisponible { text-decoration: line-through; }
.etapes-souhaits button.retour { font: inherit; font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--principale); background: var(--surface); color: var(--principale); cursor: pointer; }
.nom-produit { position: relative; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; font-weight: 700; }
.produit-colonne .conditionnement { font-size: .75rem; font-weight: 400; color: var(--texte-doux); white-space: normal; max-width: 9em; line-height: 1.2; margin: 1px auto 0; text-align: center; }
.tableau-groupe tbody.indisponible th, .tableau-groupe tbody.indisponible td { opacity: .5; }
.tableau-groupe tbody.indisponible .nom-produit { text-decoration: line-through; }
.change { position: relative; cursor: help; color: var(--attention); font-weight: 700; }
/* Petits boutons en forme de badge, avec une icône (Rôles : retirer, écrire). */
.badge-icone { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--surface); color: var(--texte-doux); font: inherit; font-size: .78rem; padding: 1px 7px; cursor: pointer; line-height: 1.5; }
.badge-icone .icone { width: auto; height: auto; background: none; color: inherit; }
.badge-icone .icone svg { width: 13px; height: 13px; }
.badge-icone.retirer { color: var(--erreur); border-color: var(--erreur-bordure); background: var(--erreur-fond); padding: 1px 4px; }
.badge-icone.ecrire:hover { color: var(--principale); border-color: var(--principale); }
.badge-icone.confirmer { color: var(--succes); border-color: var(--succes-bordure); background: var(--succes-fond); padding: 1px 4px; font-weight: 700; }
/* Réglages du groupe pour une commande, dans la première carte de la page de la commande. */
.reglages-rapides { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bordure); }
.reglages-rapides .inactif { color: var(--texte-doux); }
.reglages-rapides label { margin: 0; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.reglages-rapides .fin-souhaits input { width: auto; padding: 3px 6px; }

/* Récupération chez le référent (commande distribuée, sans répartition sur le site) : grille compacte. */
.liste.recuperations { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 18px; }
.liste.recuperations li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0; }
.liste.recuperations label { margin: 0; font-weight: 400; }
.liste.recuperations .doux { font-size: .82rem; white-space: nowrap; }

/* Mon compte : un sujet de notification par ligne, email et notification en colonnes. */
.tableau-notifications { width: 100%; border-collapse: collapse; }
.tableau-notifications th, .tableau-notifications td { padding: 6px 4px; border-bottom: 1px solid var(--bordure); vertical-align: top; text-align: left; }
.tableau-notifications th:not(:first-child), .tableau-notifications td:not(:first-child) { text-align: center; width: 1%; white-space: nowrap; }
.tableau-notifications thead th { font-size: .82rem; color: var(--texte-doux); font-weight: 600; }

/* Temporaire : « Se connecter en tant que » (menu) et bandeau quand on voit le site en tant qu'un autre. */
.bandeau-incarnation { background: var(--attention-fond); color: var(--attention); text-align: center; padding: 6px 12px; font-size: .9rem; }
.menu-liste .en-tant-que { padding: 4px 14px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 260px; }
.menu-liste .en-tant-que input { font-size: .9rem; padding: 5px 8px; }

/* Code couleur des statuts d'une commande, le même partout (étiquettes, pastille du menu) :
   brouillon gris · prévue contour · OUVERTE orange (à agir) · commandée bleu pâle · en préparation
   bleu clair · distribution bleu · en attente de paiement couleur principale · terminée vert pâle. */
.statut-brouillon { background: color-mix(in oklab, var(--texte) 7%, var(--surface)) !important; color: var(--texte-doux) !important; border-color: transparent !important; }
.statut-prevue { background: var(--surface) !important; color: var(--principale) !important; border: 1px solid var(--principale) !important; }
.statut-ouverte { background: var(--accent) !important; color: var(--accent-texte) !important; border-color: var(--accent) !important; }
.statut-commandee { background: color-mix(in oklab, var(--info) 8%, var(--surface)) !important; color: var(--info) !important; border-color: transparent !important; }
.statut-preparation { background: var(--info-fond) !important; color: var(--info) !important; border: 1px solid var(--info-bordure) !important; }
.statut-distribution { background: var(--info) !important; color: #fff !important; border-color: var(--info) !important; }
.statut-distribuee { background: var(--principale) !important; color: var(--principale-texte) !important; border-color: var(--principale) !important; }
.statut-soldee { background: var(--succes-fond) !important; color: var(--succes) !important; border: 1px solid var(--succes-bordure) !important; }

/* Mon compte : notifications de ce navigateur, sur la ligne de sa session. */
.badge-icone.notif-active { color: var(--succes); border-color: var(--succes-bordure); background: var(--succes-fond); }
.bulle-badge { position: relative; display: inline-block; cursor: help; }

/* État du rapprochement bancaire (commande, groupes, paiements), détail des virements au survol. */
.etat-banque { position: relative; display: inline-block; padding: 0 7px; border-radius: 999px; font-size: .78rem; font-weight: 700; cursor: help; white-space: nowrap; border: 1px solid transparent; }
.banque-complet { background: var(--succes-fond); color: var(--succes); border-color: var(--succes-bordure); }
.banque-manque, .banque-trop { background: var(--attention-fond); color: var(--attention); border-color: var(--attention-bordure); }
.banque-rien { background: color-mix(in oklab, var(--texte) 7%, var(--surface)); color: var(--texte-doux); }
.banque-benefice { background: var(--info-fond); color: var(--info); border-color: var(--info-bordure); }
.banque-perte { background: var(--erreur-fond); color: var(--erreur); border-color: var(--erreur-bordure); }
.etat-finance { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* Souhaits affichés par personne (essai) : une ligne par personne, une colonne par produit, le
   souhait au-dessus de la part dans chaque case. */
.par-membre { --col-produit: 128px; }
@media (max-width: 560px) { .par-membre { --col-produit: 100px; } }
.par-membre .tableau-souhaits th.produit-colonne { white-space: normal; min-width: 64px; max-width: 96px; vertical-align: bottom; line-height: 1.2; }
.par-membre .tableau-souhaits tbody th.fixe-produit { font-weight: 600; font-size: .88rem; color: var(--texte); vertical-align: top; }
.par-membre .case-souhait { font-size: .8rem; color: var(--texte-doux); min-height: 1.2em; }
.par-membre .case-part { font-weight: 700; color: var(--texte); margin-top: 2px; }
.par-membre tfoot .case-part strong { font-size: 1.1rem; }
.par-membre .une-ligne .case-souhait { font-size: inherit; color: var(--texte); min-height: 0; }
.par-membre td.indisponible, .par-membre th.indisponible { opacity: .5; }
.par-membre .ma-saisie { flex-direction: column; gap: 2px; }
.par-membre .ma-saisie input { width: 3.2em; }
.par-membre #mon-commentaire { margin-top: 4px; min-width: 0; }
.par-membre td.montant { font-weight: 600; }
.par-membre .colonne-commentaire { white-space: normal; text-align: left; font-size: .8rem; }
.par-membre td.unites { color: var(--texte); }

/* Téléphone en portrait : les cartes prennent toute la largeur de l'écran, sans cadre latéral ni
   arrondi, séparées par une fine bande du fond de la page ; les grands tableaux vont d'un bord à
   l'autre. */
@media (max-width: 600px) {
  .carte { margin: 0 -16px 10px; padding: 16px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .grille { gap: 10px; }
  .grille > .carte { margin-bottom: 0; }
  .carte .defilement-cadre:has(> .tableau-groupe), .carte > .defilement-cadre { margin-left: -16px; margin-right: -16px; }
  .carte .tableau-groupe tr > :first-child, .carte > .defilement-cadre tr > :first-child { padding-left: 8px; }
  .carte .tableau-groupe tr > :last-child, .carte > .defilement-cadre tr > :last-child { padding-right: 8px; }
  /* Tableau de commande : cases resserrées, colonne des noms plus étroite. */
  .tableau-groupe .tableau-souhaits th, .tableau-groupe .tableau-souhaits td { padding: 5px 4px; }
  .par-membre { --col-produit: 88px; }
  .par-membre .tableau-souhaits th.produit-colonne { min-width: 56px; }
}
/* Choix de la vue (Mon groupe / L'association) dans la première case d'en-tête du tableau. */
.choix-vue { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.choix-vue button { width: 100%; font: inherit; font-size: .74rem; font-weight: 600; padding: 3px 4px; border-radius: 999px; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte-doux); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.choix-vue button.actif { background: var(--principale); border-color: var(--principale); color: var(--principale-texte); }
/* Titre de la carte de commande et avancement (étape d'avant, actuelle, suivante) sur une ligne. */
.titre-commande { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.titre-commande h2 { margin: 0; }
.titre-commande .etapes-souhaits { margin: 0; }
/* Ma ligne et l'en-tête, gardés en haut de l'écran en défilant (mixin ligneFixe). */
.tableau-groupe tr.fixee > :not(.fixe-produit) { position: relative; z-index: 4; }
.tableau-groupe tr.fixee > .fixe-produit { z-index: 6; }
.tableau-groupe tr.ligne-fixe.fixee > * { box-shadow: 0 2px 0 var(--bordure); }
/* Cases décalées au défilement : sur une couche à part, le navigateur les déplace sans redessiner. */
.tableau-groupe thead th, .tableau-groupe tr.ligne-fixe > * { will-change: transform; }
/* Fond teinté : commande passée (groupe, ou personne qui a donné ses souhaits) ; blanc sinon. */
.par-membre tbody tr.passee > *, .tableau-groupe tr.passee > * { background: var(--teinte); }
.etapes-souhaits .etape-fleche { background: none; padding: 0 1px; color: var(--texte-doux); font-weight: 700; align-self: center; }
/* Déroulé de la commande (première carte de sa page) : 1. souhaits, 2. limite, 3. distribution. */
.deroule-commande { margin: 14px 0 0; padding-left: 1.4em; }
.deroule-commande > li { padding: 8px 0; border-top: 1px solid var(--bordure); }
.deroule-commande > li::marker { font-weight: 800; color: var(--principale); }
.deroule-commande input[type=datetime-local], .deroule-commande input[type=date] { width: auto; display: inline-block; margin: 4px 0; }
.deroule-commande .reglages-rapides p { margin: 2px 0 6px; }
.deroule-commande .reglages-rapides { margin-top: 4px; padding-top: 0; border-top: 0; gap: 2px; }
.deroule-commande .reglages-rapides label { margin: 6px 0 0; }
.deroule-commande .fin-souhaits { flex-wrap: wrap; }
/* Mêmes colonnes d'une vue à l'autre : noms et commentaires à largeur fixe. */
.par-membre .colonne-commentaire { width: 120px; min-width: 120px; max-width: 120px; }
@media (max-width: 600px) { .par-membre .colonne-commentaire { width: 104px; min-width: 104px; max-width: 104px; } }
/* Rien dans la case ne l'élargit : champ (bordure et marges comprises) et commentaire tiennent
   dedans. Même champ dans les deux vues (mon commentaire au groupe, message du groupe à
   l'association) : toute la largeur, trois lignes. */
.par-membre .colonne-commentaire textarea, .par-membre .colonne-commentaire #mon-commentaire { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 0; height: calc(3.9em + 8px); line-height: 1.3; font: inherit; font-size: .8rem; padding: 3px 6px; resize: none; overflow-y: auto; }
.par-membre .colonne-commentaire .commentaire { max-width: 100%; overflow-wrap: anywhere; }
/* Icônes (rôles, page ouverte) sur une deuxième ligne, sous le nom. */
.ligne-icones { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 2px; }
.ligne-icones .icone-role, .personne-nom .ligne-icones .icone-role { margin: 0; }
.ligne-icones .present { margin-right: 2px; }
/* Pseudo d'une personne ou d'un groupe : le nom complet au survol ou au toucher. */
.nom-personne { position: relative; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--bordure); text-underline-offset: 3px; }

/* Champs côte à côte, l'un sous l'autre sur un écran étroit. */
.ligne-champs { display: flex; flex-wrap: wrap; gap: 0 12px; }
.ligne-champs > label { flex: 1 1 140px; }

/* Tableau empilé sur un téléphone en portrait : une ligne devient un bloc, ses cases l'une sous
   l'autre (data-titre : rappel de la colonne devant la valeur), sans colonne coupée hors de
   l'écran. */
@media (max-width: 600px) {
  .tableau.empilable thead { display: none; }
  .tableau.empilable tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--bordure); }
  .tableau.empilable td { display: block; border: 0; padding: 1px 0; }
  .tableau.empilable td.nombre { text-align: left; white-space: normal; }
  .tableau.empilable td:empty { display: none; }
  .tableau.empilable td[data-titre]::before { content: attr(data-titre) " : "; color: var(--texte-doux); font-weight: 400; }
  .tableau.empilable .anomalie { background: none; }
  .carte > .defilement-cadre:has(.tableau.empilable) { margin-left: 0; margin-right: 0; }
  .carte > .defilement-cadre .tableau.empilable td { padding-left: 0; padding-right: 0; }
  .tableau.empilable td.nombre:last-child { white-space: normal; }
}

/* Gestion d'une commande sur sa page (commande-gestion.js) */
.gestion-commande { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bordure); }
.formulaire-gestion, .formulaire-produit { background: var(--fond); border: 1px solid var(--bordure); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.case-paiement { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.case-paiement input { width: auto; margin: 0; }
@media (max-width: 600px) { .produits-commande td.nombre:last-child { text-align: left; } .produits-commande input.petit { width: 7em; display: inline-block; } }
.tableau-souhaits .paiement-groupe { text-align: left; }
.tableau-souhaits .fixe-produit .badge { margin: 3px 3px 0 0; font-size: .75rem; }
input:disabled, select:disabled, textarea:disabled { background: color-mix(in oklab, var(--texte) 5%, var(--surface)); color: var(--texte-doux); cursor: not-allowed; }

/* Pages et documents, apparence : dans l'Administration (gestion-pages.js, gestion-apparence.js) */
.gestion-pages tr.choisi td { background: var(--teinte); }
.gestion-pages .documents li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--bordure); }
.couleurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px 18px; }
.couleur { display: flex; align-items: center; gap: 8px; }
.couleur input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 8px; flex: none; }
.couleur input[type=text] { width: 7.5em; font-family: ui-monospace, monospace; }
.apercu { border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; background: var(--a-fond); color: var(--a-texte); }
.apercu .barre { background: var(--a-surface); border-bottom: 3px solid var(--a-principale); padding: 10px 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.apercu .barre img { height: 30px; }
.apercu .corps { padding: 14px; }
.apercu .carte-a { background: var(--a-surface); border: 1px solid color-mix(in oklab, var(--a-texte) 16%, var(--a-fond)); border-radius: 10px; padding: 12px 14px; }
.apercu .titre { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.apercu a { color: var(--a-principale); }
.apercu .b { display: inline-block; padding: 6px 14px; border-radius: 8px; font-weight: 700; margin: 8px 8px 0 0; border: 1.5px solid transparent; }
.apercu .b.p { background: var(--a-principale); color: var(--a-principale-texte); }
.apercu .b.a { background: var(--a-accent); color: var(--a-accent-texte); }
.apercu .b.s { border-color: var(--a-principale); color: var(--a-principale); }
.deroule-commande .sous-reglages { padding-left: 1.6em; display: flex; flex-direction: column; gap: 2px; }
.deroule-commande .fin-souhaits { display: flex; align-items: center; gap: 4px 8px; }
/* Tableau de l'association : estimation des groupes en souhaits, historique des saisies */
.tableau-souhaits .estimee { font-style: italic; color: var(--texte-doux); }
.tableau-souhaits .ligne-historique { display: block; font-size: .75rem; line-height: 1.5em; height: 1.5em; color: var(--texte-doux); white-space: nowrap; }
.tableau-souhaits .ligne-historique.actuelle { color: var(--texte); font-weight: 600; }
.tableau-souhaits .bouton-historique { font-size: .8rem; }
.deroule-commande .sous-etapes { padding-left: 1.4em; margin: 4px 0 0; }
.deroule-commande .sous-etapes > li { padding: 4px 0; }
.deroule-commande .sous-etapes > li::marker { font-weight: 700; color: var(--principale); }
.deroule-commande .ligne-reglage { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 0; font-weight: 400; }
.deroule-commande .ligne-reglage input[type=text] { width: auto; flex: 1 1 14em; max-width: 28em; }
.deroule-commande .ligne-reglage select, .deroule-commande select.duree { width: auto; display: inline-block; }
.deroule-commande .case-heure { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-weight: 400; }
.producteur-commande { margin-bottom: 10px; }
.producteur-commande .ligne-reglage { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.producteur-commande .ligne-reglage input { width: 10em; }
.actions-titre { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* Gestion d'un groupe (groupe-gestion.js) */
.decision { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 8px; background: var(--fond); }
.decision label { margin-top: 0; }
/* Boutons d'un membre (onglets de la page Groupes) : chacun à sa place, alignés d'une ligne à
   l'autre ; le texte (cotisations du groupe, même foyer que…) à leur gauche. */
.actions-membre { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 30px) 44px 30px; gap: 4px; align-items: center; justify-items: center; }
.actions-membre > * { grid-row: 1; }
.actions-membre .info-membre { grid-column: 1; justify-self: end; text-align: right; font-size: .9rem; padding-right: 4px; }
.actions-membre .place-cotisation { grid-column: 2; }
.actions-membre .place-foyer { grid-column: 3; }
.actions-membre .place-modifier { grid-column: 4; }
.actions-membre .place-role { grid-column: 5; }
.actions-membre .place-sortie { grid-column: 6; }
@media (max-width: 600px) { .actions-membre { grid-template-columns: repeat(3, 30px) 44px 30px; justify-content: start; } .actions-membre > * { grid-row: 2; } .actions-membre .info-membre { grid-row: 1; grid-column: 1 / -1; justify-self: start; text-align: left; } .actions-membre .place-cotisation { grid-column: 1; } .actions-membre .place-foyer { grid-column: 2; } .actions-membre .place-modifier { grid-column: 3; } .actions-membre .place-role { grid-column: 4; } .actions-membre .place-sortie { grid-column: 5; } }
/* Cotisation payée au référent : un bouton pièces, plein quand c'est payé. */
/* Comptes d'un membre avec le référent : vert à jour, orange s'il manque un paiement. */
.bouton-comptes.a-jour { background: var(--succes-fond); border-color: var(--succes-bordure); color: var(--succes); }
.bouton-comptes.manque { background: var(--attention-fond); border-color: var(--attention-bordure); color: var(--attention); }
.bouton-comptes.inerte { cursor: default; }
.bouton-comptes:hover { filter: brightness(.95); }
.email-refuse { color: var(--erreur); font-size: .85rem; }
.liste-comptes { list-style: none; margin: 0; padding: 0; }
.liste-comptes li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bordure); }
.liste-comptes label { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 400; }
.liste-comptes input { width: auto; margin: 3px 0 0; }
.liste-comptes .montant { text-align: right; white-space: nowrap; }
.liste-comptes .quand { grid-column: 1 / -1; padding-left: 24px; font-size: .85rem; }
/* Sous les onglets de la page Groupes : une zone de même hauteur, pour que le tableau commence au
   même endroit d'un onglet à l'autre. */
.zone-onglet { min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-bottom: 8px; }
.case-cotisation { display: inline-flex; gap: 5px; align-items: center; margin: 0; font-weight: 400; font-size: .9rem; white-space: nowrap; }
.case-cotisation input { width: auto; margin: 0; }
.lien-bouton.icone-seule { justify-content: center; min-width: 30px; padding: 3px 6px; }
.lien-bouton.icone-seule .icone { margin: 0; width: 16px; height: 16px; }
/* Icône d'un rôle (composants.js, IconeRole) : petite, dans le texte, rang du suppléant en chiffre. */
.icone-role { position: relative; display: inline-flex; vertical-align: -3px; margin: 0 6px 0 2px; cursor: help; }
.icone-role .icone { width: 18px; height: 18px; background: none; border-radius: 0; color: var(--couleur-role, var(--principale)); }
.icone-role .icone svg { width: 18px; height: 18px; }
.icone-role.role-referent .icone { color: var(--accent-fonce, var(--accent)); }
.icone-role .rang-role { position: static; margin-left: 1px; font-size: .68rem; font-weight: 800; line-height: 1; color: var(--principale-fonce); vertical-align: super; font-variant-numeric: tabular-nums; }
/* Suppléant : icône plus petite que celle du titulaire. */
.icone-role.suppleant .icone, .icone-role.suppleant .icone svg { width: 14px; height: 14px; }
.icone-role.suppleant { align-items: flex-start; }
/* Nom d'une personne (composants.js, NomPersonne) : pseudo, puis les icônes de ses rôles. */
.personne-nom { display: inline; }
.personne-nom .icone-role { margin: 0 0 0 5px; }
.personne-nom .icone-role + .icone-role { margin-left: 3px; }
.personne-nom .pseudo { margin-left: 6px; font-weight: 400; }
.resultats-personnes .personne-nom > .prenom, .resultats-personnes .personne-nom > .nom-famille { font-weight: 700; }
/* Icône composée dans un bouton : rang (+1, 2…) en bas à droite, ou barrée (retirer le rôle). */
.icone-composee { position: relative; display: inline-flex; }
.icone-composee .rang-role { position: static; margin-left: 1px; font-size: .62rem; font-weight: 800; line-height: 1; vertical-align: super; }
.icone-composee.barree::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: currentColor; transform: rotate(-35deg); border-radius: 1px; box-shadow: 0 0 0 1px var(--surface); }
.reglees { color: var(--succes); font-weight: 600; }
.a-regler { color: var(--attention); font-weight: 600; }
/* Recherche d'une personne (composants.js, RecherchePersonne) */
.recherche-personne { display: grid; gap: 4px; min-width: 0; }
.resultats-personnes { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--bordure); border-radius: 8px; background: var(--surface); display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.resultats-personnes button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 5px 8px; font: inherit; color: inherit; cursor: pointer; }
.resultats-personnes button.actif, .resultats-personnes button:hover { background: var(--teinte); }
.resultats-personnes .nom-ligne { display: inline-flex; flex-wrap: wrap; align-items: center; }
.resultats-personnes .doux { font-size: .8rem; overflow-wrap: anywhere; }
.menu-liste .recherche-personne input { font-size: .9rem; padding: 5px 8px; }
.deroule-commande .ajout-personne { max-width: 28em; margin-top: 4px; }
.bascule-notif .action { display: none; }
.bascule-notif:hover .etat, .bascule-notif:focus-visible .etat { display: none; }
.bascule-notif:hover .action, .bascule-notif:focus-visible .action { display: inline; }
.badge-icone + .badge-icone { margin-left: 4px; }
.actions-agenda { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.aide-agenda { flex-basis: 100%; margin: 4px 0 0; font-size: .85rem; }
/* Couronne barrée : le rang en bas à droite, à l'écart du trait. */
.icone-composee.barree .rang-role { position: absolute; right: -11px; bottom: -2px; vertical-align: baseline; }
.lien-bouton.icone-seule:has(.barree .rang-role) { padding-right: 15px; }
/* Import des souhaits d'un tableur (commande-groupe/import-souhaits.js) */
.import-souhaits { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 8px; background: var(--fond); display: grid; gap: 8px; }
.import-souhaits h4 { margin: 6px 0 0; font-size: .95rem; }
.choix-import { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 6px 18px; }
.choix-import label { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 8px; align-items: center; margin: 0; font-weight: 400; }
.choix-import label > span { overflow-wrap: anywhere; font-size: .9rem; }
.choix-import label.a-choisir > span { color: var(--attention); font-weight: 700; }
.choix-import label.ignoree > span { color: var(--texte-doux); text-decoration: line-through; }
.choix-import select { width: 100%; }
.apercu-import li { padding: 3px 0; font-size: .9rem; }
/* Choix du contenant d'un produit (« Caisse » de « 12 » kg), et un nouveau contenant sur place. */
.choix-contenant .ligne-contenant { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.choix-contenant .ligne-contenant + .ligne-contenant { margin-top: 6px; }
.choix-contenant select { flex: 1 1 10em; width: auto; }
.choix-contenant input.petit { width: 5.5em; }
.choix-contenant input[aria-label="Nom du contenant"] { flex: 1 1 8em; width: auto; }
.choix-contenant .erreur { margin: 4px 0 0; }

/* Commande d'une liste mise en avant (survolée, ou survolée dans le graphique de la page), dans la
   couleur de son producteur. */
.liste li.commande-survolable { transition: background-color .15s; border-radius: 6px; }
.liste li.commande-survolable.en-avant { background: color-mix(in srgb, var(--couleur-producteur, var(--principale)) 14%, transparent); }

/* Édition d'une commande : prix saisi (virgule, deux décimales), nom et détails d'un produit. */
.produits-commande input.prix { width: 6.5em; text-align: right; }
.produits-commande .edition-produit input { display: block; width: 100%; margin-bottom: 6px; }
.produits-commande .edition-produit .message { margin: 4px 0; font-size: .85rem; }
.produits-commande td strong + .lien-bouton { margin-left: 6px; vertical-align: -2px; }
.procuration-pour { margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
/* Copier les produits : deux boutons (par colonne, par ligne), chacun deux icônes côte à côte. */
.copier-produits { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.copier-produits .lien-bouton.icone-seule { gap: 2px; padding: 3px 4px; min-width: 0; }
.outils-commande { display: flex; gap: 4px; margin-top: 4px; }
.outils-commande .lien-bouton.icone-seule { padding: 3px 4px; min-width: 0; }
.outils-etape { align-items: center; flex-wrap: wrap; margin-top: 6px; }

/* Mon compte : emails du compte (principal, ajout confirmé par lien). */
.liste-emails { list-style: none; padding: 0; margin: 4px 0 8px; }
.liste-emails li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 3px 0; }
.ajout-email { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ajout-email input { flex: 1 1 14em; width: auto; margin: 0; }
/* Lieu d'une personne (page Groupes) : l'adresse complète au survol. */
.lieu-personne.avec-adresse { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* Date d'une commande (gestion) : boutons Enregistrer et Annuler à côté du champ modifié. */
.champ-date { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; vertical-align: middle; }
.champ-date-ok { color: var(--succes); font-size: .9rem; font-weight: 600; }
.ma-recuperation { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.ma-recuperation .recuperee { color: var(--succes); font-weight: 600; }
.part-offerte { color: var(--succes); }
.etat-produits { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--succes); }
.champ-date-echec { color: var(--erreur, #b42318); font-size: .9rem; flex-basis: 100%; }

/* Facture PDF et archivage d'une commande (gestion). */
.facture-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facture-pdf a { display: inline-flex; align-items: center; gap: 4px; }
.facture-pdf a .icone { width: 22px; height: 22px; background: none; }
.archivage .fait { color: var(--succes); }
.archivage .manque { color: var(--attention); }
