/* Le Trait d’Union : identité visuelle (vert sapin, brun des toits de fermes ; design/DESIGN.md). Polices hébergées ici.
   Une couleur par rôle : VERT = action et « c'est bon » ; BRUN = information, à noter ; ROUGE = erreur, attention. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("../fonts/fredoka-600.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("../fonts/caveat-700.woff2") format("woff2"); }
:root {
    color-scheme: light;
    --fond: #F7F1E3; --carte: #FFFDF7; --texte: #22301F; --discret: #45523F; --bordure: #E3D9C2; --trait: #BFB394;
    --accent: #2F5233; --accent-fonce: #24402A; --lien: #2F5233; --accent-doux: #E3EEDD; --texte-sur-accent: #FFFDF7;
    --chaud: #9C5B3B; --chaud-doux: #F6EBDD;
    --succes: #E3EEDD; --erreur: #fbe4e1; --erreur-texte: #a12622; --lancement: #F6EBDD; --lancement-bord: #9C5B3B;   /* information = brun (plus de jaune à part) */
    --serie-ofs: #2a78d6; --serie-fp: #c4610f; --grille: #E8E1D0;
    --ombre: 0 1px 2px rgb(0 0 0 / .05), 0 4px 12px rgb(0 0 0 / .04);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --fond: #161A15; --carte: #1E231D; --texte: #ecefe9; --discret: #a9b3ad; --bordure: #333a31; --trait: #4d5649;
    --accent: #4F7A4A; --accent-fonce: #5E8C58; --lien: #9BBF7A; --accent-doux: #1F2A1E; --texte-sur-accent: #ffffff;
    --chaud: #D49A72; --chaud-doux: #2A2018;
    --succes: #1d2e22; --erreur: #3a1f1d; --erreur-texte: #f19a93; --lancement: #2A2018; --lancement-bord: #D49A72;
    --serie-ofs: #3987e5; --serie-fp: #d06f22; --grille: #2a2f2c;
    --ombre: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1.0625rem;
    color: var(--texte); background: var(--fond); line-height: 1.55; }
a { color: var(--lien); text-underline-offset: .15em; }
a:hover { color: var(--lien); text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1, h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; letter-spacing: 0; color: var(--accent); }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2 { color: var(--texte); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .2em 0 .5em; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
:focus-visible { outline: 3px solid var(--chaud); outline-offset: 2px; }
code { font-size: .95em; }

/* Bandeau de phase de test */
.bandeau-test { margin: 0; padding: .5rem 1rem; text-align: center; font-size: .9rem; background: var(--chaud); color: #fff; }

/* En-tête et pied */
.entete { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem;
    padding: .75rem 1rem; background: var(--carte); border-bottom: 1px solid var(--bordure); }
.entete nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; }
.entete form { margin: 0; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--texte); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font-weight: 500; font-size: .75rem; color: var(--discret); letter-spacing: 0; }
.logo:hover { color: var(--texte); }
.contenu { max-width: 50rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.contenu.large { max-width: 72rem; }
.pied { background: var(--carte); border-top: 1px solid var(--bordure); margin-top: 2rem; }
.pied-interieur { max-width: 50rem; margin: 0 auto; padding: 1.5rem 1rem; font-size: .9rem; color: var(--discret); }
.pied-interieur nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .75rem; }

/* Accueil */
.points-forts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.points-forts li { background: var(--accent-doux); border-radius: .6rem; padding: .8rem 1rem; }
.points-forts strong { display: block; }
.etapes { counter-reset: etape; list-style: none; padding: 0; display: grid; gap: .75rem; }
.etapes li { counter-increment: etape; position: relative; padding: .85rem 1rem .85rem 3.4rem; background: var(--carte);
    border: 1px solid var(--bordure); border-radius: .6rem; }
.etapes li::before { content: counter(etape); position: absolute; left: 1rem; top: .85rem; width: 1.7rem; height: 1.7rem;
    border-radius: 50%; background: var(--accent); color: var(--texte-sur-accent); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.tournee-carte { border-left: 4px solid var(--chaud); }
.faq details { background: var(--carte); border: 1px solid var(--bordure); border-radius: .6rem; padding: .75rem 1rem; margin-bottom: .5rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: .5rem; }
/* Ouverture en douceur (navigateurs récents ; ailleurs, elle s'ouvre simplement) */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
.etapes-cases { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .etapes-cases { grid-template-columns: repeat(2, 1fr); } }

/* Accueil épuré */
.accueil { text-align: center; max-width: 48rem; margin: 0 auto; }
.accueil h1 { margin-top: .5rem; }
.accueil .chapeau { font-size: 1.15rem; color: var(--discret); margin: 0 auto 1.25rem; }
.accueil .points-forts { text-align: left; margin: 1rem 0 2rem; font-size: .95rem; }
@media (min-width: 44rem) { .accueil .points-forts { grid-template-columns: repeat(3, 1fr); } }
.accueil h2 { margin: 1.5rem 0 .75rem; }
.tournee-date { font-size: 1.3rem; font-weight: 750; }
.bouton.grand { padding: .8rem 1.5rem; font-size: 1.1rem; }

.confirmation-inscription { text-align: center; background: var(--succes); border: 2px solid var(--accent); border-radius: .8rem;
    padding: 1.25rem 1.25rem 1rem; margin-bottom: 1.5rem; }
.confirmation-inscription .coche { width: 3rem; height: 3rem; margin: 0 auto .25rem; border-radius: 50%; background: var(--accent);
    color: var(--texte-sur-accent); font-size: 1.8rem; line-height: 3rem; font-weight: 700; }
.confirmation-inscription h1 { margin: .2rem 0; }
.confirmation-inscription .suite { font-size: 1.1rem; margin: .4rem 0 1rem; }
.details-confirmation { margin-top: .5rem; text-align: left; }
.details-confirmation summary { text-align: center; cursor: pointer; color: var(--lien); }
.details-confirmation ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.details-confirmation li { margin: .3rem 0; }

.resume-erreurs:focus, .confirmation-inscription:focus { outline: none; }

/* Composants */
.carte { background: var(--carte); border: 1px solid var(--bordure); border-radius: .6rem; padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--ombre); }
.carte h2, .carte h3 { margin-top: 0; }
.bouton { display: inline-block; padding: .65rem 1.2rem; background: var(--accent); color: var(--texte-sur-accent); border: 0;
    border-radius: .45rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.3; }
.bouton:hover { background: var(--accent-fonce); color: var(--texte-sur-accent); }
.bouton.secondaire { background: transparent; color: var(--lien); box-shadow: inset 0 0 0 1.5px var(--lien); }
.bouton.secondaire:hover { background: var(--accent-doux); color: var(--lien); }
.bouton.danger { background: transparent; color: var(--erreur-texte); box-shadow: inset 0 0 0 1.5px var(--erreur-texte); }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--lien); text-decoration: underline; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.actions form { margin: 0; }
.message { padding: .75rem 1rem; border-radius: .45rem; background: var(--carte); border: 1px solid var(--bordure); }
.message.succes { background: var(--succes); }
.message.erreur { background: var(--erreur); }
.aide, .choix small { color: var(--discret); font-size: .92rem; }
.reference { font-size: .8rem; color: var(--discret); word-break: break-all; }
.statut { font-weight: 650; }
.prix-cle { font-size: 1.45rem; font-weight: 750; margin: .2rem 0; }
.prix-cle small { font-size: .95rem; font-weight: 500; color: var(--discret); }
.avis-lancement { background: var(--lancement); border: 1px solid var(--bordure); border-left: 5px solid var(--lancement-bord); border-radius: .6rem; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.avis-lancement h2 { margin-top: 0; font-size: 1.2rem; }
.avance { margin: .75rem 0; padding-top: .75rem; border-top: 1px dashed var(--bordure); }
.avance small { display: block; margin-top: .3rem; }

/* Formulaires */
.formulaire fieldset { border: 1px solid var(--bordure); border-radius: .6rem; background: var(--carte); margin: 0 0 1rem; padding: 1rem 1.25rem; }
.formulaire legend { font-weight: 700; padding: 0 .3rem; }
.formulaire fieldset.question { border: 0; padding: 0; margin: 0 0 1rem; background: none; }
.formulaire fieldset.question legend { font-weight: 600; padding: 0; margin-bottom: .25rem; }
.champ { margin-bottom: 1rem; }
.champ label, .champ .label { display: block; font-weight: 600; margin-bottom: .25rem; }
.champ input, .champ select, .champ textarea { width: 100%; padding: .6rem; font: inherit; color: var(--texte);
    border: 1px solid var(--bordure); border-radius: .4rem; background: var(--fond); }
.choix { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-weight: normal; cursor: pointer; }
.choix input { flex: none; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--erreur-texte) !important; }
.erreur-champ { color: var(--erreur-texte); margin: .25rem 0 0; font-size: .92rem; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.resume-erreurs { background: var(--erreur); border: 2px solid var(--erreur-texte); border-radius: .6rem; padding: .75rem 1.25rem; margin-bottom: 1rem; }
.resume-erreurs h2 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--erreur-texte); }
.resume-erreurs ul { margin: .25rem 0; padding-left: 1.2rem; }
.resume-erreurs a { color: var(--texte); }

/* Tableaux */
.defilement { overflow-x: auto; } .defilement:not(:last-child) { margin-bottom: 1rem; }
/* Tableaux à coins arrondis comme les cartes : cadre sur le tableau, traits intérieurs sur les cellules */
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; background: var(--carte);   /* fond blanc : lignes bien visibles */
    border: 1px solid var(--trait); border-radius: .6rem; overflow: hidden; }
th, td { border: 0; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); padding: .45rem .55rem; text-align: left; vertical-align: top; }
tr > :last-child { border-right: 0; }
table > :last-child > tr:last-child > * { border-bottom: 0; }
thead th { background: var(--accent-doux); }
.grille input { width: 6rem; padding: .35rem; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bordure); border-radius: .3rem; }
.ligne { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem; }
.ligne input { width: 7rem; padding: .35rem; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bordure); border-radius: .3rem; }

/* Graphique des prix */
.graphique { position: relative; margin: 0; }
.graphique figcaption { margin-bottom: .25rem; }
.graphique svg { width: 100%; height: auto; display: block; overflow: visible; }
.graphique .axe text { fill: var(--discret); font-size: 12px; }
.graphique .grille-ligne { stroke: var(--grille); stroke-width: 1; }
.graphique .serie-ofs { stroke: var(--serie-ofs); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.graphique .point-ofs { fill: var(--serie-ofs); stroke: var(--carte); stroke-width: 2; }
.graphique .point-fp { fill: var(--serie-fp); stroke: var(--carte); stroke-width: 2; }
.graphique .etiquette { fill: var(--texte); font-size: 12px; font-weight: 600; }
.graphique .cible { fill: transparent; cursor: pointer; }
.graphique .cible:focus { outline: none; }
.graphique .cible:focus + .anneau, .graphique .cible:hover + .anneau { stroke: var(--texte); stroke-width: 1.5; fill: none; }
.legende { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .5rem 0; font-size: .92rem; color: var(--discret); padding: 0; list-style: none; }
.legende li { display: flex; align-items: center; gap: .45rem; }
.cle-ligne { width: 18px; height: 2px; background: var(--serie-ofs); border-radius: 1px; }
.cle-point { width: 10px; height: 10px; border-radius: 50%; background: var(--serie-fp); }
.infobulle { position: absolute; pointer-events: none; background: var(--carte); color: var(--texte); border: 1px solid var(--bordure);
    border-radius: .4rem; padding: .35rem .55rem; font-size: .85rem; box-shadow: var(--ombre); white-space: nowrap; transform: translate(-50%, -115%); }

/* Admin */
.titre-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.titre-actions small { font-weight: normal; color: var(--discret); font-size: 1rem; }
.chiffres { columns: 2; }
.alerte { color: var(--erreur-texte); }
.qr svg { width: 220px; height: 220px; background: #fff; padding: .5rem; border-radius: .4rem; }
td.actions { white-space: nowrap; }
form.en-ligne { display: inline; margin-left: .5rem; }
.mois-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0 1rem; margin-bottom: 1rem; }

@media (max-width: 34rem) {
    .chiffres { columns: 1; }
    /* Le graphique est réduit de moitié sur mobile : textes agrandis en conséquence */
    .graphique .axe text, .graphique .etiquette { font-size: 21px; }
    .logo small { display: none; }
}
.fournisseur-retenu { background: var(--accent-doux); border-radius: .5rem; padding: .6rem .9rem; margin: .5rem 0; }
.fournisseur-retenu p { margin: .2rem 0; }
form.exclusion { display: flex; flex-wrap: wrap; gap: .4rem; }
form.exclusion select { max-width: 16rem; padding: .35rem; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bordure); border-radius: .3rem; }
.doublon-avec { margin-top: .4rem; padding: .3rem .5rem; border-left: 3px solid var(--chaud); background: var(--chaud-doux); font-size: .9rem; }
tr.a-verifier td { background: var(--chaud-doux); }
/* Choix de la livraison dans le formulaire : même style que les cartes de l'accueil */
.carte-livraison { display: flex; gap: .9rem; align-items: center; background: var(--carte); border: 1px solid var(--bordure);
    border-left: 5px solid var(--chaud); border-radius: .6rem; padding: .9rem 1.1rem; margin-bottom: .75rem; cursor: pointer;
    box-shadow: var(--ombre); }
.carte-livraison input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--accent); }
.carte-livraison-texte { display: flex; flex-direction: column; gap: .15rem; }
.carte-livraison-texte small { color: var(--discret); }
.carte-livraison:has(input:checked) { border-color: var(--accent); border-left-color: var(--accent); background: var(--accent-doux); }
.carte-livraison.urgente { border-left-color: var(--bordure); box-shadow: none; }
.carte-livraison.urgente .carte-livraison-texte strong { font-weight: 650; }
/* Liste de localités du formulaire */
.combo { position: relative; }
.combo ul { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: .2rem 0 0; padding: .25rem 0; list-style: none;
    background: var(--carte); border: 1px solid var(--bordure); border-radius: .5rem; box-shadow: 0 6px 20px rgb(0 0 0 / .12);
    max-height: 18rem; overflow-y: auto; }
.combo li { padding: .6rem .9rem; font-size: 1.05rem; cursor: pointer; display: block; line-height: 1.3; border-bottom: 1px solid var(--bordure); }
.combo li:last-child { border-bottom: 0; }
.combo li strong { display: block; }
.combo li span { display: block; color: var(--discret); font-size: .85rem; }
.combo li[hidden] { display: none; }
.combo li:hover, .combo li.active { background: var(--accent-doux); }
/* Fenêtre de confirmation du site */
.dialogue { border: 0; border-radius: .8rem; padding: 1.5rem; max-width: 26rem; width: calc(100% - 2rem); background: var(--carte);
    color: var(--texte); box-shadow: 0 10px 40px rgb(0 0 0 / .25); }
.dialogue::backdrop { background: rgb(0 0 0 / .45); }
.dialogue p { font-size: 1.1rem; margin: 0 0 1.25rem; }
.urgences { border-left: 5px solid var(--erreur-texte); }
/* Sections repliables de l'admin */
details.repli > summary { cursor: pointer; font-size: 1.05rem; padding: .2rem 0; list-style-position: outside; }
details.repli[open] > summary { margin-bottom: .75rem; }
details.repli .formulaire fieldset { border: 0; padding: 0; background: none; }
.changer-numero { margin-top: .75rem; }
.changer-numero summary { cursor: pointer; color: var(--lien); text-decoration: underline; }
.non-livree { margin: .5rem 0; }
.non-livree summary { cursor: pointer; color: var(--lien); text-decoration: underline; }
.partenaires { margin: 1rem 0 0; font-size: .95rem; color: var(--discret); }
.partenaires p { margin: .2rem 0; }
.recherche-entete { margin: 0; }
.recherche-entete input { padding: .35rem .6rem; font: inherit; font-size: .9rem; border: 1px solid var(--bordure); border-radius: .4rem;
    background: var(--fond); color: var(--texte); width: 13rem; }
.recherche-grande input { flex: 1; min-width: 14rem; padding: .6rem; font: inherit; border: 1px solid var(--bordure); border-radius: .4rem;
    background: var(--fond); color: var(--texte); }
.modification { margin-top: .4rem; padding: .3rem .5rem; border-left: 3px solid var(--accent); background: var(--accent-doux); font-size: .9rem; }
.modification ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.modification del { color: var(--erreur-texte); } .modification ins { text-decoration: none; font-weight: 600; }
.ligne-demande { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
    border-top: 1px solid var(--bordure); padding-top: .6rem; margin-top: .6rem; }
.ligne-demande p { margin: 0; }
.alerte-offre { margin: .3rem 0 0; color: var(--erreur-texte); font-weight: 600; font-size: .9rem; }
.annuler-admin { margin-top: .3rem; font-size: .9rem; }
.annuler-admin summary { cursor: pointer; color: var(--erreur-texte); }
.localites { columns: 2 16rem; padding-left: 1.2rem; } .localites li { break-inside: avoid; margin-bottom: .25rem; }
.champ .libelle { font-weight: 700; display: block; } .champ input[type=file] { padding: .4rem 0; } .grille td small { display: block; color: var(--discret); }
.toutes-communes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.lien.lien-danger { color: var(--erreur-texte); font-weight: 700; }
/* Frise des étapes d'une tournée */
.frise { display: flex; gap: .25rem; list-style: none; padding: 0; margin: .75rem 0 1rem; counter-reset: none; }
.frise li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; font-size: .9rem; color: var(--discret); }
.frise li::before { content: ""; position: absolute; top: .85rem; left: -50%; width: 100%; height: 3px; background: var(--bordure); z-index: 0; }
.frise li:first-child::before { display: none; }
.frise-fait::before, .frise-en_cours::before { background: var(--accent) !important; }
.frise-point { position: relative; z-index: 1; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--carte); border: 3px solid var(--bordure); }
.frise-fait .frise-point { background: var(--accent); border-color: var(--accent); color: #fff; }
.frise-en_cours .frise-point { border-color: var(--chaud); color: var(--chaud); }
.frise-en_cours .frise-libelle { font-weight: 700; color: var(--texte); }
.frise-libelle { margin-top: .3rem; line-height: 1.2; }
.frise-courante { display: none; margin: 0 0 1rem; text-align: center; font-size: .95rem; }
.a-faire p { margin: .4rem 0; } .a-faire .alerte { color: var(--erreur-texte); font-weight: 700; }
.jauge { width: 100%; height: 1.1rem; accent-color: var(--accent); }
.prochaine-etape { padding: .6rem .8rem; border-radius: 6px; background: var(--accent-doux); } .prochaine-etape.a-vous { background: var(--chaud-doux); border-left: 4px solid var(--chaud); }
.ligne-commune { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--bordure); }
.tableau-de-bord { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; align-items: start; }
.tableau-de-bord .carte { margin: 0; }
.ligne-en-cours { padding: .4rem 0; border-bottom: 1px solid var(--bordure); } .ligne-en-cours:last-child { border-bottom: 0; }
.ligne-en-cours p { margin: 0 0 .3rem; }
.pastille { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 650; border: 1px solid transparent; }
.pastille-vert { background: var(--succes); color: var(--accent); border-color: var(--accent); }
.pastille-orange { background: var(--chaud-doux); color: var(--chaud); border-color: var(--chaud); }
.pastille-rouge { background: var(--erreur); color: var(--erreur-texte); border-color: var(--erreur-texte); }
.pastille-gris { background: transparent; color: var(--discret); border-color: var(--bordure); }
.grille-prix { margin: .75rem 0; } .grille-prix caption { text-align: left; font-size: .9rem; color: var(--discret); padding-bottom: .3rem; }
.grille-prix .palier-actuel td { background: var(--accent-doux); font-weight: 650; }
/* Résumé du prix : un grand prix, le détail sur demande */
.prix-simple { padding: .9rem 1rem; margin: .75rem 0 .4rem; border: 2px solid var(--accent); border-radius: 8px; background: var(--accent-doux); }
.prix-simple .case-titre { display: block; }
.prix-grand { display: block; font-size: 1.9rem; line-height: 1.2; margin: .15rem 0; } .prix-grand small { font-size: .9rem; font-weight: 500; white-space: nowrap; }
.prix-simple p { margin: 0 0 .6rem; } .prix-simple > small { color: var(--discret); }
.prix-simple .economie { font-weight: 650; color: var(--accent); }
.comparaison { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .2rem 0 .8rem; }
.comparaison div { padding: .5rem .6rem; border: 1px solid var(--trait); border-radius: 6px; background: var(--carte); }
.comparaison dt { font-size: .8rem; color: var(--discret); line-height: 1.25; }
.comparaison dd { margin: .15rem 0 0; }
.comparaison .montant { font-weight: 700; font-size: 1.2rem; }
.comparaison dd small { font-size: .72rem; white-space: nowrap; }
.comparaison .condition { font-size: .78rem; color: var(--discret); line-height: 1.25; }
.comparaison .seul-barre .montant { color: var(--discret); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--chaud); }
.comparaison .palier .montant { color: var(--accent); }
.prix-simple .jauge { display: block; width: 100%; }
.details-prix { margin: .4rem 0 .75rem; } .details-prix summary { cursor: pointer; color: var(--lien); }
.details-prix ul { margin: .5rem 0 0; padding-left: 1.2rem; } .details-prix li { margin: .35rem 0; }
.case-titre { font-size: .85rem; color: var(--discret); }
@media (max-width: 34rem) {
    .frise { margin-bottom: .4rem; }
    .frise-point { width: 1.6rem; height: 1.6rem; border-width: 2px; font-size: .85rem; }
    .frise li::before { top: .75rem; }
    /* libellés gardés pour les lecteurs d'écran, cachés à l'œil : l'étape en cours est écrite sous la frise */
    .frise .frise-libelle, .frise small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .frise-courante { display: block; }
    p.frise-courante:empty { display: none; }
    .frise li { cursor: pointer; }
    .frise-choisie .frise-point { box-shadow: 0 0 0 3px var(--accent-doux), 0 0 0 5px var(--accent); }
}
fieldset { min-width: 0; } /* sinon un tableau large dans un fieldset fait déborder la page sur téléphone */
.message + .tableau-de-bord, .message + .message { margin-top: 1rem; }

/* Marque : deux fermes + « Le » manuscrit + « Trait d’Union » */
.logo svg.logo-fermes { width: 76px; height: 20px; }
.logo-nuit { display: none; }
:root[data-theme="dark"] .logo-jour { display: none; } :root[data-theme="dark"] .logo-nuit { display: block; }
.marque { display: flex; flex-direction: column; }
.marque-nom { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--accent); line-height: 1.1; }
.marque-le { font-family: "Caveat", cursive; font-weight: 700; color: var(--chaud); font-size: 1.15em; }
:root[data-theme="dark"] .marque-nom { color: var(--texte); }
/* Illustration de saison (accueil, sondage) */
.illustration-saison { border-radius: 18px; overflow: hidden; margin: 1rem auto .5rem; max-width: 560px; }
.illustration-saison img { display: block; width: 100%; height: auto; }

/* Choix de l'affichage (bas de page) : clair par défaut, sombre seulement si la personne le choisit sur cet appareil */
.choix-theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--bordure); background: var(--carte); color: var(--discret); cursor: pointer; padding: 0; }
.choix-theme:hover { color: var(--accent); border-color: var(--accent); }
.choix-theme .icone-lune { display: none; }
.choix-theme[aria-pressed="true"] .icone-soleil { display: none; }
.choix-theme[aria-pressed="true"] .icone-lune { display: block; }
.plus-options { margin-top: .75rem; border-top: 1px solid var(--bordure); padding-top: .5rem; } .plus-options summary { cursor: pointer; color: var(--lien); } .carte.commande h3 .statut { font-weight: 500; color: var(--discret); font-size: .95rem; }
/* Menu : bouton « Menu » sur téléphone, liens visibles sur ordinateur */
.bouton-menu { display: none; }
@media (max-width: 48rem) {
    .entete.menu-replie .bouton-menu { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 8px;
        border: 1.5px solid var(--accent); background: var(--carte); color: var(--accent); font: inherit; font-weight: 650; cursor: pointer; }
    .entete.menu-replie nav { display: none; }
    .entete.menu-replie.menu-ouvert nav { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; width: 100%; padding: .5rem 0 .25rem; }
    .entete.menu-replie.menu-ouvert nav a, .entete.menu-replie.menu-ouvert nav .lien { font-size: 1.1rem; }
}
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1rem; }
.annoncer { margin: .4rem 0; } .annoncer summary { cursor: pointer; color: var(--lien); }
.formulaire-annonce { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; margin: .5rem 0; }
.formulaire-annonce label { display: flex; flex-direction: column; font-size: .9rem; gap: .2rem; }
.date-agenda { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; } .date-agenda:hover { color: var(--lien); }
.formulaire-livree { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; } .formulaire-livree label { display: flex; flex-direction: column; font-size: .9rem; gap: .2rem; } .formulaire-livree input { max-width: 9rem; }
.logo-fournisseur { display: block; flex: none; box-sizing: content-box; height: 44px; width: auto; max-width: 120px; object-fit: contain;
    padding: 6px 8px; background: #fff; border: 1px solid var(--bordure); border-radius: 8px; }
.logo-fournisseur.centre { margin: 0 auto .5rem; }
.fournisseur-identite { display: flex; align-items: center; gap: .9rem; }
.fournisseur-identite p { margin: 0; }
.partenaires-grille .carte { text-align: center; }
.logo-fournisseur.petit { display: inline-block; height: 24px; max-width: 70px; padding: 2px 4px; vertical-align: middle; margin: 0 .3rem 0 0; }
/* Bouton clair / sombre : centré en bas de page */
.choix-theme { display: flex; margin: .75rem auto 0; }
/* Mode tournée du livreur (téléphone) */
.mode-entete { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.mode-client h1 { margin: .1rem 0; }
.mode-commune { margin: 0; color: var(--chaud); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.mode-adresse { font-size: 1.2rem; margin: .2rem 0; }
.mode-quantite { font-size: 1.5rem; font-weight: 750; margin: .3rem 0 .8rem; }
.mode-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .5rem 0 1rem; }
.mode-boutons .bouton { justify-content: center; text-align: center; }
.mode-infos { padding-left: 1.1rem; }
.mode-livree { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.mode-livree label { display: flex; flex-direction: column; gap: .2rem; }
.mode-livree input { max-width: 9rem; font-size: 1.2rem; }
.mode-navigation { display: flex; justify-content: space-between; gap: .75rem; }
.partenaires-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; }
.etape-progression { font-weight: 700; color: var(--accent); margin: .5rem 0 1rem; }
.etape-nav { display: flex; gap: .75rem; justify-content: space-between; flex-wrap: wrap; margin-top: 1rem; }
.etape-nav .bouton:only-child { margin-left: auto; }
[data-aller] { display: none; } .etapes-actives [data-aller] { display: inline-flex; }
.deja-inscrit { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; } .deja-inscrit p { margin: 0; flex: 1 1 16rem; }
/* Accueil épuré : une idée, un bouton */
.bouton-principal { margin: .75rem auto .25rem; min-width: 14rem; justify-content: center; }
.sous-bouton { margin: .3rem 0; color: var(--discret); }
.atouts-ligne { margin: 2rem 0 1rem; color: var(--discret); font-size: .95rem; letter-spacing: .01em; }
/* Pied de page sur une ligne : liens + soleil */
.pied-interieur { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem; padding: 1rem; }
.pied-interieur nav { margin: 0; justify-content: center; }
.pied-interieur p { margin: 0; }
.pied-interieur .choix-theme { margin: 0; width: 36px; height: 36px; }
/* Couleur seulement pour ce qui demande une action (« À faire ») et pour le prix : le reste reste sobre */
.points-forts li { background: var(--carte); border: 1px solid var(--bordure); }
.fournisseur-retenu { background: none; border-top: 1px solid var(--bordure); border-radius: 0; padding: .75rem 0 0; }
.prochaine-etape { background: none; padding: 0; border-radius: 0; }
.prochaine-etape.a-vous { padding: .6rem .8rem; border-radius: 6px; }
.partage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid var(--bordure); } .partage p { margin: 0; }
.message.succes { transition: opacity .6s ease, max-height .6s ease, margin .6s ease, padding .6s ease; max-height: 20rem; overflow: hidden; }
.message.succes.disparait { opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
@media (prefers-reduced-motion: reduce) { .message.succes { transition: none; } }
.repli-discret { margin: 2rem 0 1rem; } .repli-discret summary { cursor: pointer; color: var(--lien); }
.actions-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.accueil .partage { justify-content: center; border-top: 0; margin-top: .5rem; }
.deja-inscrit .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Admin : petit menu « Plus » pour les pages peu utilisées */
.menu-plus { position: relative; }
.menu-plus summary { cursor: pointer; color: var(--lien); text-decoration: underline; list-style: none; }
.menu-plus summary::-webkit-details-marker { display: none; }
.menu-plus summary::after { content: " ▾"; }
.menu-plus > div { position: absolute; right: 0; top: 1.8rem; z-index: 5; display: flex; flex-direction: column; gap: .6rem; min-width: 12rem;
    background: var(--carte); border: 1px solid var(--bordure); border-radius: 8px; padding: .75rem 1rem; box-shadow: var(--ombre); }
@media (max-width: 48rem) { .menu-plus > div { position: static; box-shadow: none; border: 0; padding: .5rem 0 0 .75rem; } }

/* Après la livraison : avis et réinscription */
.apres-livraison { margin: .75rem 0; padding-top: .75rem; border-top: 1px solid var(--bordure); }
.apres-livraison form + form { margin-top: .75rem; }
.apres-livraison details { margin-top: .5rem; } .apres-livraison summary { cursor: pointer; color: var(--lien); }
.apres-livraison textarea { width: 100%; margin-top: .3rem; }

/* Page du livreur : par commune, non livrés en rouge en bas */
.bloc-commune { background: var(--carte); border: 1px solid var(--bordure); border-radius: .6rem; margin: 0 0 .75rem; box-shadow: var(--ombre); }
.bloc-commune > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .6rem; align-items: center; padding: .9rem 1.1rem; }
.bloc-commune > summary::-webkit-details-marker { display: none; }
.bloc-commune > summary::before { content: "▸"; grid-row: 1; color: var(--accent); font-size: 1.2rem; }
.bloc-commune[open] > summary::before { content: "▾"; }
.bloc-commune-nom { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--accent); }
.bloc-commune-etat { font-weight: 650; color: var(--chaud); white-space: nowrap; } .bloc-commune-etat.fait { color: var(--accent); }
.bloc-commune-detail { grid-column: 2 / span 2; color: var(--discret); }
.bloc-commune[open] { padding-bottom: .5rem; } .bloc-commune[open] > summary { border-bottom: 1px solid var(--bordure); margin-bottom: .75rem; }
.bloc-commune > .carte, .bloc-commune > .outils-commune { margin: 0 .75rem .75rem; }
.outils-commune p { margin: .2rem 0 .5rem; }
.choix-clients { border: 1px solid var(--bordure); border-radius: .45rem; padding: .5rem .8rem; margin: .5rem 0; display: grid; gap: .35rem; }
.choix-clients label { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: start; }
.choix-clients input { margin-top: .3rem; } .choix-clients legend small { font-weight: 400; }
.litres-commune label { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.formulaire-annonce input { padding: .4rem; font: inherit; border: 1px solid var(--bordure); border-radius: .3rem; background: var(--fond); color: var(--texte); }
.aide.bloc { display: block; margin-top: .4rem; }
.litres-commune { display: grid; gap: .45rem; margin: .5rem 0 .8rem; }
.litres-commune span { flex: 1 1 14rem; } .litres-commune input { width: 7rem; padding: .35rem; font: inherit; border: 1px solid var(--bordure); border-radius: .3rem; background: var(--fond); color: var(--texte); }
.carte-non-livree { border-left: 5px solid var(--erreur-texte); background: var(--erreur); }
.statut-non-livree { color: var(--erreur-texte); font-weight: 700; font-size: .95rem; }
.mode-communes { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }
.mode-communes a { padding: .3rem .6rem; border: 1px solid var(--bordure); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.mode-communes a.actif { background: var(--accent); color: var(--texte-sur-accent); border-color: var(--accent); }
.mode-dates { margin: .3rem 0 .6rem; font-size: .95rem; }
.mode-quantite small { font-size: .9rem; font-weight: 500; color: var(--discret); }

/* Principe du prix : prix de votre quantité moins rabais de groupe, le même pour tous */
.principe-prix { background: var(--accent-doux); border-radius: .6rem; padding: .8rem 1rem; margin: 0 0 1.5rem; }
.principe-prix-court { font-size: .9rem; color: var(--discret); margin: -.3rem 0 .6rem; }

/* Impression : pas de boutons de navigation ni de bouton clair/sombre */
@media print {
    .bouton-menu, #menu-principal, .choix-theme, .pied-ligne { display: none !important; }
}
