/* Espace setters E.T.D projects.
   Registre PRODUIT : le design sert l'outil. Strategie de couleur Retenue : neutres legerement
   teintes de vert, un seul accent, les couleurs vives reservees aux etiquettes de statut.
   Scene : un independant chez lui, telephone a la main ou ordinateur portable, en journee,
   qui enchaine les appels pendant une heure ou deux et veut voir toute sa liste d'un coup. */
:root {
  --fond: #f3f4f1;
  --surface: #fbfbf9;
  --ligne-survol: #f0f2ee;
  --texte: #1d211f;
  --doux: #5e6661;
  --trait: #dfe2dc;
  --trait-fort: #c9cec6;
  --accent: #1f5f5b;
  --accent-texte: #ffffff;
  --accent-doux: #e2edea;
  --appel: #1e7446;
  --alerte: #b42318;
  --alerte-doux: #fbeae8;
  --attention: #8a5300;
  --attention-doux: #fcefd9;
  --ombre-fenetre: 0 24px 64px rgba(16, 24, 20, .22), 0 2px 8px rgba(16, 24, 20, .08);
  --rayon: 10px;
  /* Etiquettes (fond, texte), facon listes de choix d'un tableur. */
  --e-gris: #eceeea;   --e-gris-t: #48504b;
  --e-ambre: #fcebc8;  --e-ambre-t: #7a4a00;
  --e-vert: #d8f0df;   --e-vert-t: #1b5e34;
  --e-rouge: #fadcd8;  --e-rouge-t: #962015;
  --e-bleu: #dbe8f7;   --e-bleu-t: #1d4f86;
  --e-rose: #f6e0ea;   --e-rose-t: #7d2a52;
  --e-sable: #efe6d6;  --e-sable-t: #5f4a26;
  --e-menthe: #d7efec; --e-menthe-t: #1c5a54;
  --e-lilas: #e6e3f3;  --e-lilas-t: #4a3f80;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #121513;
    --surface: #191d1b;
    --ligne-survol: #202522;
    --texte: #e8ebe7;
    --doux: #9aa39d;
    --trait: #2a302c;
    --trait-fort: #3a423d;
    --accent: #6cc0b5;
    --accent-texte: #0d1513;
    --accent-doux: #1c2c29;
    --appel: #2f9d62;
    --alerte: #f0877c;
    --alerte-doux: #3a1d1a;
    --attention: #eab45a;
    --attention-doux: #33281a;
    --ombre-fenetre: 0 24px 64px rgba(0, 0, 0, .6);
    --e-gris: #2a2f2c;   --e-gris-t: #c3cac5;
    --e-ambre: #3d2f14;  --e-ambre-t: #f1c77a;
    --e-vert: #1d3626;   --e-vert-t: #8fd6a8;
    --e-rouge: #3f1f1b;  --e-rouge-t: #f3a49a;
    --e-bleu: #1d2c3f;   --e-bleu-t: #9cc2ee;
    --e-rose: #3a2230;   --e-rose-t: #eaa6c6;
    --e-sable: #352d20;  --e-sable-t: #dcc59b;
    --e-menthe: #1b3330; --e-menthe-t: #8fd3c9;
    --e-lilas: #2a2740;  --e-lilas-t: #bdb3ee;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------ pages d'entree */
.entree { max-width: 400px; margin: 0 auto; padding: 56px 16px; }
.entree .marque { font-weight: 700; color: var(--accent); margin-bottom: 32px; }
.entree h1 { font-size: 1.7rem; margin-bottom: 8px; }
.entree p.intro { color: var(--doux); margin: 0 0 24px; }
.entree .aide { margin-top: 20px; font-size: .9rem; }

.champ { display: block; margin-bottom: 16px; }
.champ > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.champ small { display: block; color: var(--doux); font-size: .82rem; margin-top: 4px; }
input[type="email"], input[type="password"], input[type="text"], input[type="search"], input[type="datetime-local"], input[type="date"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--trait-fort);
  border-radius: 8px;
  background: var(--surface);
  min-height: 44px;
}
textarea { min-height: 88px; resize: vertical; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid transparent; border-radius: 8px;
  background: var(--accent); color: var(--accent-texte);
  font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bouton.plein { width: 100%; }
.bouton.secondaire { background: var(--surface); color: var(--texte); border-color: var(--trait-fort); }
.bouton.danger { background: var(--alerte); color: #fff; }
.bouton:disabled { opacity: .55; cursor: default; }
.lien-bouton { background: none; border: 0; color: var(--accent); padding: 8px 0; cursor: pointer; font-weight: 600; }

.message { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: .93rem; }
.message.erreur { background: var(--alerte-doux); color: var(--alerte); }
.message.info { background: var(--accent-doux); color: var(--texte); }

/* ------------------------------------------------ barre du haut */
.barre {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  height: 56px; padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--trait);
}
.marque-app { font-weight: 750; white-space: nowrap; }
.marque-app span { font-weight: 500; color: var(--doux); margin-left: 6px; }
.onglets { display: flex; gap: 4px; height: 100%; }
.onglets button {
  height: 100%; padding: 0 12px; border: 0; background: none; cursor: pointer;
  color: var(--doux); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.onglets button[aria-current="page"] { color: var(--texte); border-bottom-color: var(--accent); }
.onglets .compte { font-weight: 600; color: var(--doux); margin-left: 2px; }
.onglets .compte.alerte:not(:empty) {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--alerte); color: #fff; font-size: .75rem; line-height: 20px; text-align: center;
}
.qui { margin-left: auto; color: var(--doux); white-space: nowrap; }

/* ------------------------------------------------ espace de travail */
.espace { padding: 16px 20px 40px; }
.outils {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px;
}
.outils input[type="search"] { width: 280px; max-width: 100%; }
.outils select { width: auto; min-width: 160px; }
.outils .nombre { color: var(--doux); font-size: .9rem; }
.outils .pousse { margin-left: auto; }
.bandeau {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 8px;
  background: var(--attention-doux); color: var(--attention); font-weight: 600;
}
.bandeau button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* ------------------------------------------------ tableau */
.cadre-tableau {
  overflow: auto; max-height: calc(100vh - 170px);
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
}
table.grille { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1080px; font-size: .92rem; }
.grille th, .grille td {
  height: 42px; padding: 0 12px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--trait); border-right: 1px solid var(--trait);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.grille th:last-child, .grille td:last-child { border-right: 0; }
.grille thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--fond); color: var(--doux); font-weight: 650; font-size: .82rem;
}
.grille thead th button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; width: 100%;
}
.grille thead th button:focus-visible { outline: 2px solid var(--accent); }
.grille thead th[aria-sort] button::after { content: ""; border: 4px solid transparent; }
.grille thead th[aria-sort="ascending"] button::after { border-bottom-color: currentColor; margin-top: -4px; }
.grille thead th[aria-sort="descending"] button::after { border-top-color: currentColor; margin-top: 4px; }
.grille th.n, .grille td.n { width: 48px; min-width: 48px; text-align: right; color: var(--doux); font-variant-numeric: tabular-nums; }
/* Premiere colonne utile figee, pour garder le nom en vue quand on glisse vers la droite. */
.grille .fige { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.grille thead .fige { z-index: 3; background: var(--fond); }
.grille tbody tr { cursor: pointer; }
.grille tbody tr:hover td { background: var(--ligne-survol); }
.grille tbody tr:last-child td { border-bottom: 0; }
.grille td.entreprise { font-weight: 650; max-width: 240px; }
.grille td.tel a { font-variant-numeric: tabular-nums; font-weight: 600; text-decoration: none; }
.grille td.tel a:hover { text-decoration: underline; }
.grille td.date { font-variant-numeric: tabular-nums; }
.grille td.retard { color: var(--alerte); font-weight: 650; }
.grille td.long { max-width: 320px; }
.grille td.long.coupe { cursor: zoom-in; }
.grille .vide-cellule { color: var(--trait-fort); }

.etiquette {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
  padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 650; line-height: 1.5;
  background: var(--e-gris); color: var(--e-gris-t);
}
.etiquette.ambre { background: var(--e-ambre); color: var(--e-ambre-t); }
.etiquette.vert { background: var(--e-vert); color: var(--e-vert-t); }
.etiquette.rouge { background: var(--e-rouge); color: var(--e-rouge-t); }
.etiquette.bleu { background: var(--e-bleu); color: var(--e-bleu-t); }
.etiquette.rose { background: var(--e-rose); color: var(--e-rose-t); }
.etiquette.sable { background: var(--e-sable); color: var(--e-sable-t); }
.etiquette.menthe { background: var(--e-menthe); color: var(--e-menthe-t); }
.etiquette.lilas { background: var(--e-lilas); color: var(--e-lilas-t); }

.rien { padding: 48px 16px; text-align: center; color: var(--doux); }
.rien strong { display: block; color: var(--texte); font-size: 1.1rem; margin-bottom: 6px; }
.chargement { color: var(--doux); text-align: center; padding: 40px 0; }

/* ------------------------------------------------ fenetre au centre */
.voile {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(14, 20, 17, .42);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.fenetre {
  position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 48px); overflow: auto;
  background: var(--surface); border-radius: 14px; box-shadow: var(--ombre-fenetre);
  padding: 24px 24px 28px;
}
.fenetre.etroite { max-width: 520px; }
.fermer {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--doux); display: grid; place-items: center;
}
.fermer:hover { background: var(--ligne-survol); color: var(--texte); }
.fermer svg { width: 20px; height: 20px; }
.fenetre h2 { font-size: 1.4rem; margin-bottom: 4px; overflow-wrap: anywhere; padding-right: 8px; }
.fenetre h3 { font-size: 1rem; margin: 22px 0 10px; }
.fenetre .sous { color: var(--doux); margin: 0 0 16px; }
.texte-long { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.55; margin: 0; }

.fiche-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 16px; color: var(--doux); }
.disposition { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.appeler {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; border-radius: 10px;
  background: var(--appel); color: #fff; text-decoration: none;
  font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.appeler svg { width: 22px; height: 22px; }
.second-numero { display: block; text-align: center; margin-top: 8px; font-weight: 600; }
.infos { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .93rem; }
.infos dt { color: var(--doux); }
.infos dd { margin: 0; overflow-wrap: anywhere; }
.conseil { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--accent-doux); font-size: .9rem; }
.conseil strong { color: var(--accent); }
.provenance { margin-top: 12px; color: var(--doux); font-size: .8rem; }

details.script { margin-top: 14px; border-top: 1px solid var(--trait); padding-top: 6px; }
details.script summary { cursor: pointer; font-weight: 650; padding: 8px 0; color: var(--accent); }
details.script .contenu { font-size: .93rem; }
details.script .contenu p { margin: 8px 0; }

.resultats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.resultats button {
  min-height: 48px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--trait-fort); font-weight: 650; text-align: center;
}
.resultats button:hover { background: var(--ligne-survol); }
.resultats button.fort { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.resultats button.rouge { color: var(--alerte); border-color: currentColor; }
.resultats button.large { grid-column: span 3; }
.actions-fiche { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

.historique { list-style: none; padding: 0; margin: 0; }
.historique li { padding: 10px 0; border-top: 1px solid var(--trait); font-size: .92rem; }
.historique li:first-child { border-top: 0; padding-top: 0; }
.historique .quand { color: var(--doux); font-size: .8rem; }
.historique .quoi { font-weight: 650; }
.historique .note { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }

.boutons { display: flex; gap: 10px; margin-top: 8px; }
.boutons .bouton { flex: 1; }
.raccourcis { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.raccourcis button {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--surface);
  cursor: pointer; font-size: .86rem; font-weight: 600; min-height: 36px;
}
.raccourcis button[aria-pressed="true"] { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 14px; }
.choix label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--trait-fort); border-radius: 8px; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.choix input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex-shrink: 0; }
.case { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.avertissement { padding: 12px; border-radius: 8px; background: var(--alerte-doux); color: var(--alerte); margin-bottom: 14px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 60;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 8px;
  background: var(--texte); color: var(--fond); font-weight: 600;
}

/* ------------------------------------------------ Moi */
.colonne { max-width: 560px; }
.bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; margin-bottom: 14px; }
.bloc h2 { font-size: 1.15rem; margin-bottom: 4px; }
.bloc .sous { color: var(--doux); margin: 0 0 14px; }

/* ------------------------------------------------ telephone */
@media (max-width: 760px) {
  body.appli { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .barre { height: 52px; padding: 0 16px; }
  .marque-app span { display: none; }
  .onglets {
    position: fixed; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--trait); gap: 0;
  }
  .onglets button { flex: 1; padding: 0 4px; font-size: .8rem; border-bottom: 0; border-top: 2px solid transparent; white-space: normal; line-height: 1.2; }
  .onglets button[aria-current="page"] { border-top-color: var(--accent); }
  .espace { padding: 12px 16px 24px; }
  .outils input[type="search"] { width: 100%; }
  .outils select { flex: 1; min-width: 0; }
  .outils .pousse { margin-left: 0; width: 100%; }
  .cadre-tableau { max-height: calc(100vh - 250px); }
  .voile { padding: 0; align-items: stretch; }
  .fenetre { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 16px 16px 32px; }
  .disposition { grid-template-columns: 1fr; }
  .resultats { grid-template-columns: 1fr 1fr; }
  .resultats button.large { grid-column: span 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .fenetre { animation: apparait .2s ease-out; }
  @keyframes apparait { from { transform: scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ------------------------------------------------ administration */
.resume { margin: 0 0 14px; color: var(--doux); }
.resume strong { color: var(--texte); }
.section h2 { font-size: 1.05rem; margin: 26px 0 2px; }
.section .sous { color: var(--doux); margin: 0 0 10px; font-size: .9rem; }
.tete-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tete-section .section h2 { margin-top: 8px; }
.bascule { display: inline-flex; border: 1px solid var(--trait-fort); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.bascule button { border: 0; background: var(--surface); padding: 8px 14px; cursor: pointer; font-weight: 600; color: var(--doux); }
.bascule button[aria-pressed="true"] { background: var(--accent-doux); color: var(--texte); }
.groupe-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.suites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.suites .bouton.choisi { border-color: var(--accent); background: var(--accent-doux); }
.correspondances { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
.correspondances .champ { margin-bottom: 10px; }
.liste-courte { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; max-height: 240px; overflow: auto; }
.lien-acces { display: flex; gap: 8px; margin: 8px 0 14px; }
.lien-acces input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.pile { display: grid; gap: 8px; }
.pile .bouton { width: 100%; }
.pile .avertissement .bouton { margin-top: 10px; }
.bloc.large { max-width: 760px; }
.rangee { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
@media (max-width: 760px) {
  .suites { grid-template-columns: 1fr 1fr; }
  .lien-acces { flex-direction: column; }
}

/* ------------------------------------------------ Moi : chiffres et graphiques */
.tableau-moi { max-width: 980px; }
.tableau-moi .bloc { margin-bottom: 14px; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.chiffre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 18px; display: grid; gap: 4px; }
.chiffre .libelle { color: var(--doux); font-size: .88rem; font-weight: 600; }
.chiffre strong { font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.chiffre .precision { color: var(--doux); font-size: .85rem; }
.chiffre.accent { background: var(--accent-doux); border-color: transparent; }
.chiffre.accent strong { color: var(--accent); }

.entonnoir { display: grid; gap: 10px; }
.etape { display: grid; grid-template-columns: 170px minmax(0, 1fr) 48px 56px; align-items: center; gap: 12px; font-size: .93rem; }
.etape .nom { color: var(--doux); }
.piste { height: 14px; background: var(--fond); border-radius: 999px; overflow: hidden; display: block; }
.jauge { display: block; height: 100%; width: var(--l, 0%); background: var(--trait-fort); border-radius: 999px; }
.jauge.fin { background: var(--accent); }
.etape .nb { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.etape .taux { color: var(--doux); font-size: .85rem; text-align: right; font-variant-numeric: tabular-nums; }

.puce-legende { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 6px 0 0; vertical-align: baseline; }
.puce-legende.commission-l { margin-left: 14px; }
.chiffre-l { background: var(--trait-fort); }
.commission-l { background: var(--accent); }
.evolution { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; padding-top: 8px; }
.mois-colonne { all: unset; cursor: pointer; display: grid; grid-template-rows: 18px 1fr 20px; height: 100%; border-radius: 8px; text-align: center; }
.mois-colonne:hover { background: var(--ligne-survol); }
.mois-colonne:focus-visible { outline: 2px solid var(--accent); }
.mois-colonne .valeur { font-size: .72rem; color: var(--accent); font-weight: 700; white-space: nowrap; overflow: hidden; }
.mois-colonne .colonnes { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.mois-colonne .col { display: block; width: 38%; max-width: 18px; height: var(--h, 0%); min-height: 2px; border-radius: 3px 3px 0 0; }
.mois-colonne .etiquette-mois { font-size: .75rem; color: var(--doux); }

.calcul { list-style: none; margin: 0 0 8px; padding: 0; }
.calcul li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--trait); }
.calcul li strong { font-variant-numeric: tabular-nums; }
.calcul small.doux { color: var(--doux); font-size: .82rem; }
.palier { background: var(--attention-doux); color: var(--attention); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.objectif { margin-bottom: 10px; }
.objectif .piste { height: 16px; }
.objectif .jauge { background: var(--accent); }
.objectif p { margin: 6px 0 0; }
.ligne-champ { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ligne-champ label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
input.court { width: 90px; }
@media (max-width: 760px) {
  .chiffres { grid-template-columns: 1fr; }
  .etape { grid-template-columns: 1fr 40px 48px; }
  .etape .piste { grid-column: 1 / -1; grid-row: 2; }
  .evolution { gap: 2px; height: 180px; }
  .mois-colonne .valeur { display: none; }
}

fieldset { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
legend { font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; padding: 0; }
.ventes-rdv .rangee { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ------------------------------------------------ Reponses */
.colonne-large { max-width: 860px; }
.intro-reponses h2 { font-size: 1.2rem; margin-bottom: 4px; }
.panneau-reponses input[type="search"] { margin-bottom: 10px; }
.themes { margin-bottom: 12px; }
.liste-reponses { display: grid; gap: 8px; }
.reponse { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); }
.reponse summary { cursor: pointer; padding: 12px 14px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.reponse summary::-webkit-details-marker { display: none; }
.reponse summary::after { content: "+"; color: var(--doux); font-weight: 700; }
.reponse[open] summary::after { content: "−"; }
.reponse > div, .reponse > p { padding: 0 14px; }
.reponse > :last-child { padding-bottom: 14px; }
.a-dire { background: var(--accent-doux); border-radius: 8px; margin: 0 14px 10px; padding: 10px 12px !important; }
.a-dire p { margin: 4px 0 0; font-size: 1.02rem; line-height: 1.5; }
.plus p, .rebond p { margin: 4px 0 10px; }
.etiquette-dire { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.etiquette-dire.doux { color: var(--doux); }
.attention-reponse { color: var(--attention); font-size: .9rem; margin: 0; }
.panneau-reponses.compact .liste-reponses { max-height: 360px; overflow: auto; }
.liste-reponses .rien { text-align: left; padding: 12px 0; }

.video textarea { margin: 6px 0 10px; font-size: .92rem; background: var(--fond); }
.video h2 { font-size: 1.05rem; }

/* Resume du mois en tete de « A appeler » */
.resume-mois {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  padding: 12px 16px; margin-bottom: 12px; border-radius: var(--rayon);
  background: var(--accent-doux); color: var(--texte); font-size: .95rem;
}
.resume-mois:hover { filter: brightness(.98); }
.resume-mois:focus-visible { outline: 2px solid var(--accent); }
.resume-mois .mois { font-weight: 700; text-transform: capitalize; }
.resume-mois strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.resume-mois .voir { margin-left: auto; color: var(--accent); font-weight: 650; }
.report { margin: 4px 0 24px; }
