/* Espace client Oubliance. Charte : docs/charte-graphique.html (tricolore : bleu, blanc, rouge ;
   Fraunces pour les titres, Atkinson Hyperlegible pour le texte). Aucune ressource tierce (CSP). */

@font-face { font-family: "Fraunces"; src: url("polices/fraunces.9a1814381455.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("polices/atkinson-400.f1f8a8210104.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("polices/atkinson-700.13a58e05dfd2.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --fond: #f5f7fb;
  --surface: #ffffff;
  --sur-accent: #ffffff;  /* texte posé sur la couleur d'accent */
  --texte: #14213d;
  --doux: #5b6478;
  --accent: #1d3c8f;
  --accent-fonce: #142b66;
  --accent-clair: #e8edf8;
  --rouge: #d7263d;
  --rouge-clair: #fbe4e7;
  --bord: #dce1ec;
  --alerte: #a3172b;
  --rayon: 14px;
  --ombre: 0 1px 2px rgb(20 33 61 / .05), 0 8px 24px rgb(20 33 61 / .06);
  --titres: "Fraunces", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0d1428;
    --surface: #151e38;
    --texte: #eef1f8;
    --doux: #a0a9c0;
    --accent: #8fa8f0;
    --sur-accent: #0d1428;  /* accent clair en sombre : texte foncé (contraste ≈ 8:1) */
    --accent-fonce: #b3c4f5;
    --accent-clair: #1C2850;
    --rouge-clair: #3d1c24;
    --bord: #2a3556;
    --alerte: #f28b97;
    --ombre: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.6 "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }

.entete, .pied, main { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.entete { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.marque { display: inline-flex; text-decoration: none; }
.marque img { height: 44px; width: auto; display: block; }
.entete nav { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.entete nav a { color: var(--texte); text-decoration: none; }
.entete nav a:hover { color: var(--accent); }
.entete nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.entete nav button.lien { color: var(--texte); text-decoration: none; }  /* comme les autres liens du menu */
.entete form { margin: 0; }

main { padding-bottom: 56px; }

/* Fraunces sans ses lettres « fantaisie » (axe WONK), comme le logo. */
h1, h2, h3, .choix .titre, .chiffres strong, .etapes li::before { font-variation-settings: "WONK" 0, "SOFT" 0; }
h1, h2, h3 { font-family: var(--titres); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; margin: 8px 0 12px; }
h2 { font-size: 1.35rem; margin: 36px 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
.chapo { font-size: 1.1rem; color: var(--doux); margin: 0 0 24px; }

/* En-tête de page avec illustration */
.tete-page { display: grid; grid-template-columns: 1fr 200px; gap: 20px; align-items: center; margin-bottom: 8px; }
.tete-page .illustration { width: 200px; height: auto; }
.tete-page .chapo { margin-bottom: 0; }

/* Barre des étapes du parcours */
.progression { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: etape; }
.progression li { counter-increment: etape; font-size: .8rem; color: var(--doux); padding-top: 10px; border-top: 4px solid var(--bord); }
.progression li::before { content: counter(etape) ". "; font-weight: 700; }
.progression li.faite { border-top-color: var(--accent); }
.progression li.active { border-top-color: var(--accent); color: var(--texte); font-weight: 700; }

/* Cartes */
.carte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 24px;
  margin: 18px 0;
}
.carte > h2:first-child, .carte > h3:first-child { margin-top: 0; }
.carte.accent { border-color: var(--accent); background: var(--accent-clair); box-shadow: none; }
.doux { color: var(--doux); }
.petit { font-size: .9rem; }

/* Pastille de prix */
.prix { display: inline-block; background: var(--rouge-clair); color: var(--texte); font-weight: 700; border-radius: 999px; padding: 4px 14px; margin: 4px 0 8px; }
.prix.inclus { background: var(--accent-clair); color: var(--accent-fonce); }
.prix-complement { margin: 0 0 0 8px; padding: 2px 10px; font-size: .85rem; white-space: nowrap; }

/* Boutons */
.bouton, button {
  display: inline-block;
  background: var(--accent);
  color: var(--sur-accent);
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.bouton:hover, button:hover { background: var(--accent-fonce); }
.bouton.secondaire, button.secondaire { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 11px 24px; }
.bouton.secondaire:hover, button.secondaire:hover { background: var(--accent-clair); }
button.lien { background: none; color: var(--accent); padding: 0; font-weight: 400; text-decoration: underline; border-radius: 0; }
/* Œil « afficher le mot de passe » (mot-de-passe.js) : zone de 44 px, dans le champ, à droite */
.mdp { position: relative; display: block; }
.mdp input { padding-right: 52px; }
button.mdp-oeil { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: none; color: var(--doux); border-radius: 10px; }
button.mdp-oeil:hover { background: none; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.bouton-large { width: 100%; text-align: center; }

/* Formulaires */
form > div, .champ { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="date"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bord);
  border-radius: 10px;
  background: var(--surface);
  color: var(--texte);
  font: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-clair); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; margin: 2px 10px 0 0; flex: none; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 700; padding: 0; margin-bottom: 6px; font-size: .95rem; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
fieldset label { font-weight: 400; display: flex; align-items: flex-start; margin: 4px 0; }
/* Case à cocher seule (acceptation) : la case avant le texte, sur la même ligne. */
form > div:has(> input[type="checkbox"]), .champ:has(> input[type="checkbox"]) {
  display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start;
}
form > div:has(> input[type="checkbox"]) label, .champ:has(> input[type="checkbox"]) label { font-weight: 400; }
.helptext { display: block; color: var(--doux); font-size: .9rem; margin-top: 6px; font-weight: 400; }
button:disabled { opacity: .45; cursor: not-allowed; }
.errorlist { color: var(--alerte); padding: 0; list-style: none; margin: 4px 0; }

label.case { display: flex; align-items: flex-start; font-weight: 400; margin: 6px 0; cursor: pointer; }

/* Comptes : grille de cases, une « puce » par site */
.grille-comptes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.grille-comptes label {
  margin: 0; padding: 10px 12px; border: 1.5px solid var(--bord); border-radius: 10px;
  background: var(--surface); cursor: pointer; align-items: center;
}
.grille-comptes label:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); font-weight: 700; }

/* Choix sous forme de grandes cartes (formule) */
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 8px 0 4px; }
.choix label {
  display: block; margin: 0; padding: 20px; border: 2px solid var(--bord); border-radius: var(--rayon);
  background: var(--surface); cursor: pointer; font-weight: 400; position: relative;
}
.choix label:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); }
.choix input { position: absolute; top: 20px; right: 16px; margin: 0; }
.choix .titre { display: block; font-family: var(--titres); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; padding-right: 30px; }
.choix .montant { display: inline-block; font-size: 2.2rem; font-weight: 700; color: var(--accent); margin: 6px 0; line-height: 1.1; }
.choix .apres-prix { display: inline-block; margin-left: 8px; font-weight: 700; color: var(--doux); }
.choix .par-mois { display: inline-block; margin: 0 0 10px; background: var(--rouge); color: #fff; font-weight: 700; border-radius: 999px; padding: 3px 12px; font-size: .9rem; }
.choix .petit { display: block; margin-top: 8px; }
.choix .sous-titre { display: block; font-weight: 700; color: var(--accent); margin-bottom: 2px; }

/* Les deux options côte à côte : leur prix se voit sans défiler ; la liste se déplie */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.options .carte { margin: 0; }
.numero-option { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sur-accent); background: var(--accent); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.option details { margin: 10px 0 0; }
.option .grille-comptes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* Recherche dans les listes de comptes (formule.js) */
.recherche-comptes { margin: 10px 0 4px; }
.recherche-comptes label { display: block; font-weight: 700; margin-bottom: 4px; }
.recherche-comptes input { width: 100%; }
.recherche-comptes [data-aucun] { margin: 8px 0 0; }
.recherche-comptes[hidden], .recherche-comptes [hidden], .option fieldset[hidden], .grille-comptes label[hidden] { display: none; }

/* Total en direct (formule.js), collé en bas de l'écran tant qu'on remplit la page */
.total-direct {
  position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 20px -8px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--rayon); box-shadow: 0 -6px 20px rgb(20 33 61 / .08);
}
.total-direct [data-total] { white-space: nowrap; font-family: var(--titres); font-size: 1.8rem; color: var(--accent); margin: 0 4px; font-variation-settings: "WONK" 0, "SOFT" 0; }

/* Prix des options selon la formule cochée (formule.js) */
form[data-formule="abonnement"] .si-ponctuel, form[data-formule="ponctuel"] .si-abonnement { display: none; }

/* Listes à saisir (autres emails et numéros) : un champ par ligne, bouton « + Ajouter » */
.ligne-saisie { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ligne-saisie input, .ligne-saisie textarea { flex: 1; }
.ligne-adresse { align-items: flex-start; }
.petit-bouton { padding: 7px 16px; font-size: .9rem; }
.supplement { flex: none; min-width: 4.5em; font-weight: 700; color: var(--accent); font-size: .9rem; }

/* Repliables */
details { border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--surface); margin: 14px 0; }
details > summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] > summary::after { content: "–"; }
details > .contenu { padding: 0 20px 18px; }
summary .doux { font-weight: 400; }

/* Liste « ce que nous faisons » */
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px solid var(--bord); }
.liste-coches li:last-child { border-bottom: 0; }
.liste-coches li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

.messages { list-style: none; padding: 0; }
.messages li { padding: 14px 18px; border-radius: 10px; margin-bottom: 8px; background: var(--accent-clair); }
.messages li.error { color: var(--alerte); border: 1px solid var(--alerte); background: transparent; }

.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.offres .carte { margin: 0; }

/* Étapes du tableau de bord : en colonnes, comme la barre du parcours */
.etapes { list-style: none; padding: 0; margin: 8px 0 24px; counter-reset: etape; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.etapes li { counter-increment: etape; padding: 12px 4px 0; border-top: 4px solid var(--bord); font-size: .9rem; color: var(--doux); }
.etapes li::before { content: counter(etape); display: block; font-family: var(--titres); font-weight: 700; font-size: 1.3rem; color: var(--doux); }
.etapes li.faite { border-top-color: var(--accent); }
.etapes li.faite::before { content: "✓"; color: var(--accent); }
.etapes li.en_cours { border-top-color: var(--accent); color: var(--texte); font-weight: 700; }
.etapes li.en_cours::before { color: var(--accent); }
.carte.action h2 { margin-top: 0; }
/* Tableau de bord : ce que seul le client peut faire, à part du suivi. */
.carte.a-faire { border: 2px solid var(--rouge); }
.a-faire h2 { display: flex; align-items: center; gap: 10px; }
.compteur { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em; border-radius: 999px; background: var(--rouge); color: #fff; font: 700 .95rem/1 "Atkinson", sans-serif; }
.taches { list-style: none; padding: 0; margin: 12px 0 0; }
.tache { padding: 16px 0; border-top: 1px solid var(--bord); }
.tache h4 { margin: 6px 0 2px; font-size: 1.1rem; }
.groupe-taches { margin: 22px 0 0; font-size: 1.3rem; }  /* titre de rubrique, au-dessus des intertitres (2026-12-06) */
.groupe-taches .doux { font-weight: 400; }
.tache p { margin: 0 0 6px; }
.tache form { display: inline; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { font-size: .85rem; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.ligne-total th { font: 700 1.3rem/1.3 var(--titres); color: var(--texte); text-transform: none; letter-spacing: 0; border-bottom: 0; padding-top: 14px; }
.ligne-total th:last-child { color: var(--accent); }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--rouge-clair); color: var(--texte); }

.texte-mandat {
  white-space: pre-wrap;
  text-align: justify;
  hyphens: auto;
  font: .95rem/1.6 ui-serif, Georgia, serif;
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 24px;
}

.pied { padding-top: 24px; padding-bottom: 32px; color: var(--doux); font-size: .9rem; border-top: 1px solid var(--bord); }
.liens-pied { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pied p { margin: 8px 0 0; }

/* Visible sur téléphone seulement (voir le bloc mobile) */
.mobile-seul { display: none; }
.tableau-prix input[type="number"] { width: 5.5em; }  /* quantités de cartes cadeaux */
.carte-cadeau-saisie { background: var(--rouge-clair); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; }
.carte-cadeau-saisie p { margin: 8px 0 0; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.65rem; }
  .entete { flex-direction: column; align-items: flex-start; gap: 10px; }
  .progression li { font-size: 0; }
  .tete-page { grid-template-columns: 1fr; }
  .tete-page .illustration { width: 150px; order: -1; }
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .progression li::before { font-size: .8rem; }
  .carte { padding: 18px; }
  table:not(.tableau-prix), table:not(.tableau-prix) tbody, table:not(.tableau-prix) tr, table:not(.tableau-prix) td, table:not(.tableau-prix) th { display: block; }
  thead { display: none; }
  table:not(.tableau-prix) td { border: 0; padding: 4px 0; }
  table:not(.tableau-prix) tr { border-bottom: 1px solid var(--bord); padding: 8px 0; }
  table.tableau-prix td:last-child, table.tableau-prix th:last-child { text-align: right; white-space: nowrap; }
  .ligne-saisie { flex-wrap: wrap; }
  .ligne-saisie input, .ligne-saisie textarea { flex-basis: 100%; }
  td[data-label]::before { content: attr(data-label) " : "; color: var(--doux); }
  .actions button, .actions .bouton { width: 100%; }
  /* Zones à toucher d'au moins 44 px (audit mobile du 2026-11-15) */
  .entete nav a, .entete nav button { display: inline-block; padding: 10px 0; }
  button.lien { padding: 10px 0; min-height: 44px; }
  .petit-bouton { min-height: 44px; }
  table:not(.tableau-prix) td a { display: inline-block; padding: 10px 0; }
  .mobile-seul { display: inline; }
  label.contacter { display: flex; align-items: center; gap: 12px; min-height: 44px; }
  label.contacter input { width: 24px; height: 24px; }
  /* 2e passage mobile : étapes cliquables visibles (font-size:0 sur li les réduisait à 0 px), cases et liens seuls */
  .progression li a { display: block; font-size: .8rem; min-height: 44px; }
  label.case { min-height: 44px; align-items: center; }
  .liens-pied a, .actions a { display: inline-block; padding: 11px 0; }
  .champ:has(> input[type="checkbox"]) label, form > div:has(> input[type="checkbox"]) label { min-height: 44px; display: flex; align-items: center; }
  p > a:only-child, .petit > a:only-child { display: inline-block; padding: 12px 0; }
}

@media print {
  .entete, .pied, .ecran-seul, .messages, .progression { display: none; }
  body { background: #fff; color: #000; }
  .texte-mandat { border: 1px solid #999; break-inside: avoid-page; }
  a { color: #000; text-decoration: none; }
}

.jauge { display: block; width: 100%; height: 10px; border: 0; border-radius: 5px; background: var(--bord); overflow: hidden; margin: 8px 0 12px; appearance: none; }
.jauge::-webkit-progress-bar { background: var(--bord); }
.jauge::-webkit-progress-value { background: var(--accent); }
.jauge::-moz-progress-bar { background: var(--accent); }
/* Remplacent les attributs style= : la CSP n'autorise aucun style en ligne. */
.espace-haut { margin-top: 14px; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.chiffres div { border: 1px solid var(--bord); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.chiffres strong { display: block; font-size: 1.6rem; line-height: 1.2; font-family: var(--titres); }
.chiffres span { color: var(--doux); font-size: .9rem; }

.apercu { background: var(--accent-clair); border: 1px solid var(--accent); border-radius: var(--rayon); padding: 12px 16px; }
[data-signature] > p:first-of-type { margin-top: 0; }
/* Suivi des demandes : pastille d'état (vert terminé, bleu en cours, rouge à vous, gris clos sans suite). */
.etat { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; line-height: 1.5; }
.etat-vert { background: #e3f4ea; color: #17633a; }
.etat-bleu { background: var(--accent-clair); color: var(--accent-fonce); }
.etat-rouge { background: var(--rouge-clair); color: var(--alerte); }
.etat-gris { background: var(--bord); color: var(--doux); }
@media (prefers-color-scheme: dark) {
  .etat-vert { background: #173a28; color: #8fdcb0; }
}

/* Suivi regroupé par état (2026-11-09) : compteurs neutres, ce n'est pas une alerte */
.groupe-suivi .compteur { background: var(--accent); color: var(--sur-accent); }
.groupe-suivi summary .doux { margin-left: 8px; }

/* Logos des marques (2026-11-09) : servis par nous, jamais chargés chez un tiers */
.logo-marque { width: 28px; height: 28px; vertical-align: middle; margin-right: 8px; border-radius: 5px; }
.mention-marques { font-size: .8rem; color: var(--doux); margin-top: 8px; }

/* Pages d'erreur de l'espace (2026-11-09), même ton que la 404 du site vitrine */
.page-erreur { max-width: 640px; margin: 0 auto; padding: clamp(48px, 10vw, 110px) 20px; }
.code-erreur { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rouge); font-size: .85rem; }
.page-erreur .surligne { background: linear-gradient(transparent 62%, rgba(215, 38, 61, .22) 0); }

/* Texte justifié partout (décision du 2026-11-30) ; coupure des mots pour éviter les trous sur mobile. */
p, li, dd, blockquote { text-align: justify; hyphens: auto; }

/* Bouton présent pour la touche Entrée seulement (commande.html, confirmation des codes) : hors de l'écran. */
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* Confirmation des coordonnées (commande.html) : adresse validée gardée à l'écran, erreur du code sous son champ. */
.coordonnee-validee { margin: 4px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
input[aria-invalid="true"] { border-color: var(--alerte); }

/* « C'est envoyé » (tableau de bord, 2026-12-05) : en pointillés tant que ce n'est pas fait, vert clair une fois fait. */
button.secondaire.envoye-a-faire, a.bouton.secondaire.envoye-a-faire { border-style: dashed; }
.envoye-fait, button.secondaire.envoye-fait { background: #e3f4ea; color: #17633a; border-color: #9fd6b4; }
span.envoye-fait { cursor: default; }
.badge-vert { background: #e3f4ea; color: #17633a; }
@media (prefers-color-scheme: dark) {
  .envoye-fait, .badge-vert { background: #173a28; color: #8fdcb0; border-color: #2c6b48; }
}

/* « À faire par vous » (2026-12-05) : chaque groupe dans son cadre rouge ; une ligne envoyée entièrement en vert. */
/* Rubriques de « À faire par vous » : barre rouge à gauche seulement (essai du testeur, 2026-12-06). */
.bloc-taches { border: 0; border-radius: 0; background: none; padding: 0; margin-top: 18px; }
.bloc-taches > summary { border-bottom: 1px solid var(--bord); }
.bloc-taches .groupe-taches { margin-top: 12px; }
.bloc-taches .tache:first-child { border-top: 0; }
.tache-envoyee { background: #e3f4ea; border: 2px solid #9fd6b4; border-radius: 10px; padding: 14px 16px; margin: 8px 0; }
.tache-envoyee + .tache { border-top: 0; }
@media (prefers-color-scheme: dark) {
  .tache-envoyee { background: #173a28; border-color: #2c6b48; }
}

/* « Suivi de mes demandes » mis en avant (2026-12-05) : cadre bleu, titre plus grand, phrase d'accueil. */
.carte-suivi { border: 2px solid var(--accent); border-top-width: 6px; margin-top: 24px; }
.carte-suivi h2 { font-size: 1.8rem; margin-top: 4px; }
.chapo-suivi { color: var(--doux); margin: 0 0 14px; }
.carte-suivi .groupe-suivi { box-shadow: none; }

/* « À faire par vous » replié (2026-12-05) : le titre sert de bouton. */
.repli-a-faire > summary h2 { margin: 0; }
.repli-a-faire[open] > summary { margin-bottom: 8px; }

/* « Je passe ces formulaires » (2026-12-05) : bouton à droite du titre du groupe, confirmation dépliée dessous. */
.tete-groupe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tete-groupe .groupe-taches { flex: 1 1 18rem; }
.tete-groupe .passer { margin: 12px 0 0; flex: 0 0 auto; }
.tete-groupe .passer > summary { list-style: none; display: inline-block; padding: 8px 18px; }
.tete-groupe .passer > summary::after { content: none; }
.tete-groupe .passer > summary::-webkit-details-marker { display: none; }
.tete-groupe .passer[open] { flex-basis: 100%; }

/* Groupes de « À faire par vous » repliables (2026-12-05) : le titre du groupe sert de bouton. */
details.bloc-taches > summary { padding: 12px 0 8px; }
details.bloc-taches > summary h3 { margin: 0; }
details.bloc-taches:not([open]) { padding-bottom: 0; }
details.bloc-taches .tete-groupe { justify-content: flex-end; }

/* Mention du médiateur (CM2C), mot pour mot et dans les couleurs du CM2C, y compris en mode sombre (2026-12-05). */
.cadre-mediateur { border: 1px solid #0066cc; border-radius: 5px; background: #fff; color: #333333; padding: 1rem 1.25rem; max-width: 38rem; margin-block: 1rem }
.cadre-mediateur p { margin: 0; color: #333333 }
.cadre-mediateur .texte { text-align: justify }
.cadre-mediateur .coordonnees { text-align: center; font-weight: 700; margin-top: .25rem }
.cadre-mediateur a { color: #333333; text-decoration: none }
.cadre-mediateur .bleu { color: #467dce }
.cadre-mediateur .rouge { color: #c41a1a }

/* Formulaire envoyé par le client : relance à envoyer, ou plainte possible après la relance (2026-12-05). */
.badge-orange { background: #fdebd3; color: #8a4b08; }
.tache-relance { background: #fff4e5; border: 2px solid #f3c48a; border-radius: 10px; padding: 14px 16px; margin: 8px 0; }
.tache-relance + .tache { border-top: 0; }
.carte-relance { border: 2px solid #f3c48a; background: #fff8ee; }
@media (prefers-color-scheme: dark) {
  .badge-orange { background: #4a3214; color: #f5c98d; }
  .tache-relance, .carte-relance { background: #3a2a14; border-color: #7a5420; }
}

/* Marche à suivre d'un formulaire (retour du testeur, 2026-12-06) : le geste d'abord, encadré ; le reste en puces. */
.geste { background: var(--accent-pale, #e8edf8); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 0 0 14px; }
.titre-bon-a-savoir { font-weight: 700; color: var(--doux); margin: 0 0 4px; }
.bon-a-savoir { font-size: .92rem; color: var(--doux); padding-left: 1.2rem; margin: 0 0 12px; }
.bon-a-savoir li { margin: 4px 0; text-align: left; }
@media (prefers-color-scheme: dark) { .geste { background: #1c2a4a; } }

/* Intertitre des formulaires liés à l'activité d'entrepreneur, sous les autres revendeurs (2026-12-06). */
.intertitre-taches { list-style: none; border-top: 3px solid var(--accent); margin: 22px 0 0; padding: 16px 0 4px; }
.intertitre-taches h4 { margin: 0 0 2px; font-family: var(--titres); font-weight: 600; font-size: 1.1rem; }
.intertitre-taches p { margin: 0; }
.intertitre-taches + .tache { border-top: 0; }

/* Marge intérieure du bloc « À faire par vous », alignée sur son titre (2026-12-06). */
.repli-a-faire > :not(summary) { margin-left: 20px; margin-right: 20px; }
.repli-a-faire[open] { padding-bottom: 8px; }
.sous-titre-taches { list-style: none; font-weight: 700; color: var(--doux); font-size: .9rem; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--bord); }
.sous-titre-taches + .tache { border-top: 0; }

/* Confirmation au centre de l'écran, quelques secondes, puis estompée (2026-12-06) ; elle reste en haut de la page. */
.bulle-confirmation { position: fixed; left: 50%; top: calc(45% + var(--decalage, 0rem)); transform: translate(-50%, -50%);
  z-index: 1000; max-width: min(36rem, 90vw); padding: 18px 26px; border-radius: 14px; background: #1d3c8f; color: #fff;
  font-weight: 700; text-align: center; box-shadow: 0 10px 30px rgba(20, 33, 61, .25); opacity: 1; transition: opacity .8s ease; pointer-events: none; }
.bulle-confirmation.estompee { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bulle-confirmation { transition: none; } }

/* Emplacement à remplir par le client dans le texte à coller (2026-12-06) : flagrant. */
mark.a-completer { background: #fdf3c7; color: #14213d; font-weight: 700; padding: 4px 8px; border-radius: 4px; outline: 2px dashed #d7263d; outline-offset: 2px; }
/* « Pour aller plus loin » au-dessus de « À faire par vous », placé après le suivi (2026-12-06). */
.surtitre-a-faire { margin: 0 0 10px; font-weight: 700; color: var(--doux); }
.intro-bon-a-savoir { font-size: .92rem; color: var(--doux); margin: 0 0 12px; }
.pas-a-pas { padding-left: 1.6rem; margin: 0 0 12px; }
.pas-a-pas li { margin: 6px 0; padding-left: 4px; text-align: left; }
.pas-a-pas li::marker { font-weight: 700; color: var(--accent); }
