/* Hallmark · genre: modern-minimal · macrostructure: Espaces (bespoke : rail, bannière, instrument) · design-system: design.md · designed-as-app
 * theme: custom, un thème complet par réseau · display: Avenir Next · body: system-ui · nav: N3 side-rail · footer: aucun · enrichment: E5 SVG (logos)
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5
 * Les jetons vivent ici : le serveur ne sert que quatre fichiers et la politique de sécurité interdit les polices externes.
 */

/* ---------- Jetons communs ---------- */
:root {
  /* Les couleurs de marque ne changent jamais : une tuile Instagram reste Instagram dans tous les espaces. */
  --marque-x: oklch(13% 0 0);
  --marque-x-filet: oklch(38% 0 0);
  --marque-instagram: linear-gradient(45deg, oklch(86% 0.14 90) 0%, oklch(72% 0.18 55) 28%, oklch(58% 0.21 355) 58%, oklch(47% 0.2 320) 80%, oklch(46% 0.17 285) 100%);
  --marque-tiktok: oklch(13% 0.01 265);
  --marque-facebook: oklch(53% 0.23 261);
  --marque-riposte: #06158C;
  --tt-cyan: oklch(88% 0.14 195);
  --tt-rouge: oklch(64% 0.25 18);
  --blanc: oklch(100% 0 0);
  --color-point: oklch(84% 0.19 150);
  --voile: oklch(100% 0 0 / .3);
  --marque-instagram-bande: linear-gradient(100deg, oklch(42% 0.17 285) 0%, oklch(47% 0.2 320) 50%, oklch(50% 0.2 355) 100%);

  --font-display: "Avenir Next", Avenir, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-3xs: .25rem; --space-2xs: .5rem; --space-xs: .75rem; --space-sm: 1rem;
  --space-md: 1.5rem; --space-lg: 2rem; --space-xl: 3rem; --space-2xl: 4.5rem;
  --gouttiere: 1rem;

  --text-2xs: .6875rem; --text-xs: .75rem; --text-sm: .8125rem; --text-md: .9375rem;
  --text-lg: 1.125rem; --text-xl: 1.5rem;
  --text-titre: clamp(2.25rem, 3.5vw + 1rem, 3.75rem);
  --text-compteur: clamp(4rem, 8vw + 1rem, 7.5rem);

  --radius-input: .5rem; --radius-panneau: .875rem; --radius-tuile: .75rem; --radius-pill: 999px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-court: 140ms;
  --hauteur-rail: 4.25rem;
  --hauteur-onglets: 3rem;
  --z-table: 1; --z-onglets: 10; --z-rail: 20;
}

/* ---------- Un thème par réseau : fond, bannière, boutons, liens ---------- */
[data-reseau="x"] {
  color-scheme: dark;
  --color-paper: oklch(13% 0 0);
  --color-surface: oklch(19% 0 0);
  --color-survol: oklch(17% 0 0);
  --color-rule: oklch(30% 0.005 240);
  --color-ink: oklch(96% 0 0);
  --color-ink-2: oklch(74% 0.008 240);
  --color-accent: oklch(96% 0 0);
  --color-accent-ink: oklch(13% 0 0);
  --color-lien: oklch(72% 0.15 245);
  --color-focus: oklch(72% 0.15 245);
  --color-sur: oklch(93% 0 0);
  --color-probable: oklch(58% 0.012 240);
  --color-monte: oklch(82% 0.14 155);
  --color-baisse: oklch(74% 0.16 25);
  --color-alerte: oklch(84% 0.09 25);
  --color-alerte-fond: oklch(27% 0.07 25);
  --color-ok: oklch(82% 0.14 155);
  --color-rail: oklch(9% 0 0);
  --color-rail-ink: oklch(96% 0 0);
  --banniere-fond: oklch(13% 0 0);
  --banniere-encre: oklch(97% 0 0);
  --banniere-filet: oklch(30% 0.005 240);
  --filigrane: .1;
}
[data-reseau="instagram"] {
  color-scheme: light;
  --color-paper: oklch(97.5% 0.012 350);
  --color-surface: oklch(100% 0 0);
  --color-survol: oklch(95% 0.018 350);
  --color-rule: oklch(89% 0.022 350);
  --color-ink: oklch(24% 0.05 330);
  --color-ink-2: oklch(46% 0.04 330);
  --color-accent: oklch(53% 0.2 355);
  --color-accent-ink: oklch(100% 0 0);
  --color-lien: oklch(48% 0.19 355);
  --color-focus: oklch(46% 0.17 285);
  --color-sur: oklch(53% 0.2 355);
  --color-probable: oklch(64% 0.17 48);
  --color-monte: oklch(45% 0.12 155);
  --color-baisse: oklch(50% 0.18 25);
  --color-alerte: oklch(42% 0.15 25);
  --color-alerte-fond: oklch(93% 0.04 25);
  --color-ok: oklch(45% 0.12 155);
  --color-rail: oklch(24% 0.06 335);
  --color-rail-ink: oklch(97% 0.01 350);
  --banniere-fond: linear-gradient(100deg, oklch(42% 0.17 285) 0%, oklch(47% 0.2 320) 30%, oklch(53% 0.2 355) 68%, oklch(70% 0.18 55) 90%, oklch(86% 0.14 90) 100%);
  --banniere-encre: oklch(100% 0 0);
  --banniere-filet: transparent;
  --filigrane: .22;
}
[data-reseau="tiktok"] {
  color-scheme: dark;
  --color-paper: oklch(15% 0.012 265);
  --color-surface: oklch(21% 0.016 265);
  --color-survol: oklch(19% 0.014 265);
  --color-rule: oklch(33% 0.02 265);
  --color-ink: oklch(97% 0.004 265);
  --color-ink-2: oklch(76% 0.02 265);
  --color-accent: oklch(59% 0.23 18);
  --color-accent-ink: oklch(100% 0 0);
  --color-lien: oklch(88% 0.14 195);
  --color-focus: oklch(88% 0.14 195);
  --color-sur: oklch(77% 0.13 195);
  --color-probable: oklch(66% 0.24 18);
  --color-monte: oklch(88% 0.14 195);
  --color-baisse: oklch(72% 0.2 18);
  --color-alerte: oklch(84% 0.09 18);
  --color-alerte-fond: oklch(27% 0.08 18);
  --color-ok: oklch(88% 0.14 195);
  --color-rail: oklch(10% 0.012 265);
  --color-rail-ink: oklch(97% 0.004 265);
  --banniere-fond: linear-gradient(100deg, oklch(33% 0.09 195) 0%, oklch(15% 0.012 265) 46%, oklch(15% 0.012 265) 60%, oklch(36% 0.15 18) 100%);
  --banniere-encre: oklch(98% 0 0);
  --banniere-filet: oklch(33% 0.02 265);
  --filigrane: .6;
}
[data-reseau="facebook"] {
  color-scheme: light;
  --color-paper: oklch(96.5% 0.009 260);
  --color-surface: oklch(100% 0 0);
  --color-survol: oklch(94% 0.014 260);
  --color-rule: oklch(88% 0.016 260);
  --color-ink: oklch(23% 0.02 260);
  --color-ink-2: oklch(46% 0.02 260);
  --color-accent: oklch(53% 0.23 261);
  --color-accent-ink: oklch(100% 0 0);
  --color-lien: oklch(48% 0.22 261);
  --color-focus: oklch(40% 0.2 261);
  --color-sur: oklch(53% 0.23 261);
  --color-probable: oklch(66% 0.14 250);
  --color-monte: oklch(45% 0.12 155);
  --color-baisse: oklch(50% 0.18 25);
  --color-alerte: oklch(42% 0.15 25);
  --color-alerte-fond: oklch(93% 0.04 25);
  --color-ok: oklch(45% 0.12 155);
  --color-rail: oklch(27% 0.08 262);
  --color-rail-ink: oklch(97% 0.01 260);
  --banniere-fond: oklch(53% 0.23 261);
  --banniere-encre: oklch(100% 0 0);
  --banniere-filet: transparent;
  --filigrane: .17;
}

/* ---------- Socle ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Aucune couleur d'un autre réseau ne passe à l'écran avant que le script ait choisi l'espace. */
html:not([data-reseau]) body { visibility: hidden; }
body { margin: 0; overflow-x: clip; background: var(--color-paper); color: var(--color-ink); font: var(--text-md)/1.45 var(--font-body); }
a { color: var(--color-lien); text-underline-offset: .15em; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; overflow-wrap: anywhere; min-width: 0; margin: 0; }
h2 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Le rail : les quatre espaces, toujours visibles ---------- */
.app { min-height: 100dvh; }
.rail {
  position: sticky; top: 0; z-index: var(--z-rail); display: flex; align-items: center; gap: var(--space-xs);
  min-height: var(--hauteur-rail); padding: var(--space-3xs) var(--gouttiere); background: var(--color-rail); color: var(--color-rail-ink);
}
.marque { display: block; flex: none; color: inherit; text-decoration: none; }
.logo { display: block; width: 3rem; height: auto; background: var(--blanc); border-radius: .3rem; padding: .125rem .25rem; }
.marque-nom { display: none; }
.espaces { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3xs); }
.espace-bouton {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2xs); min-width: 0; padding: 0;
  font: inherit; color: inherit; background: none; border: 0; border-radius: var(--radius-input); cursor: pointer;
  opacity: .72; transition: opacity var(--dur-court) var(--ease-out);
}
.espace-bouton:hover, .espace-bouton[aria-current] { opacity: 1; }
.tuile {
  position: relative; display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-tuile); color: var(--blanc);
}
.tuile svg { width: 58%; height: 58%; }
.tuile[data-r="x"] { background: var(--marque-x); box-shadow: inset 0 0 0 1px var(--marque-x-filet); }
.tuile[data-r="instagram"] { background: var(--marque-instagram); }
.tuile[data-r="tiktok"] { background: var(--marque-tiktok); box-shadow: inset 0 0 0 1px var(--marque-x-filet); }
.tuile[data-r="facebook"] { background: var(--marque-facebook); }
.tuile[data-r="riposte"] { background: var(--marque-riposte); box-shadow: inset 0 0 0 1px var(--voile); }
.espace-bouton[aria-current] .tuile { outline: 2px solid var(--color-rail-ink); outline-offset: 2px; }
.espace-nom { font-size: var(--text-2xs); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.espace-bouton[aria-current] .espace-nom { font-weight: 700; }
.espace-nombre { display: none; margin-top: calc(var(--space-3xs) * -1); font-size: var(--text-2xs); opacity: .78; font-variant-numeric: tabular-nums; }
.point {
  position: absolute; top: calc(var(--space-2xs) * -1); right: calc(var(--space-2xs) * -1); width: .75rem; height: .75rem; border-radius: 50%;
  z-index: 1; background: var(--color-point); box-shadow: 0 0 0 2px var(--color-rail); animation: battement 1.6s var(--ease-out) infinite;
}
@keyframes battement { 50% { opacity: .35; } }
.tt-cyan { fill: var(--tt-cyan); }
.tt-rouge { fill: var(--tt-rouge); }

/* ---------- Une relève sur un autre réseau : à ses couleurs, sur tous les écrans ---------- */
.espace { min-width: 0; }
.alerte-releve {
  display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; padding: var(--space-2xs) var(--gouttiere); color: var(--blanc); font-size: var(--text-sm);
}
.alerte-releve[hidden] { display: none; }
.alerte-releve[data-r="x"] { background: var(--marque-x); box-shadow: inset 0 -1px 0 var(--marque-x-filet); }
.alerte-releve[data-r="instagram"] { background: var(--marque-instagram-bande); }
.alerte-releve[data-r="tiktok"] { background: var(--marque-tiktok); box-shadow: inset 0 -1px 0 var(--marque-x-filet); }
.alerte-releve[data-r="facebook"] { background: var(--marque-facebook); }
.alerte-releve .tuile { width: 2rem; height: 2rem; border-radius: var(--space-2xs); box-shadow: inset 0 0 0 1px var(--voile); }
.alerte-texte { flex: 1 1 12rem; min-width: 0; }
.alerte-texte .barre { max-width: 28rem; background: var(--voile); }
.alerte-texte .barre i { background: var(--blanc); }
.alerte-releve button.bouton { min-height: 2.25rem; color: var(--blanc); border-color: var(--blanc); }
.alerte-releve button.bouton:hover { background: var(--voile); }

/* ---------- La bannière : le réseau en grand ---------- */
.banniere {
  position: relative; overflow: hidden; isolation: isolate; padding: var(--space-sm) var(--gouttiere) var(--space-md);
  background: var(--banniere-fond); color: var(--banniere-encre); border-bottom: 1px solid var(--banniere-filet);
}
.banniere h1 { font-size: var(--text-titre); font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.banniere p { margin-top: var(--space-2xs); max-width: 17rem; font-size: var(--text-sm); line-height: 1.35; }
.banniere a { color: inherit; font-weight: 600; white-space: nowrap; }
.filigrane {
  position: absolute; z-index: -1; top: 50%; right: -1.5rem; width: 11rem; height: 11rem; transform: translateY(-50%);
  fill: currentColor; opacity: var(--filigrane); pointer-events: none;
}

/* ---------- Les sections ---------- */
.onglets {
  position: sticky; top: var(--hauteur-rail); z-index: var(--z-onglets); display: flex; gap: var(--space-sm); height: var(--hauteur-onglets);
  padding-inline: var(--gouttiere); overflow-x: auto; background: var(--color-paper); border-bottom: 1px solid var(--color-rule); scrollbar-width: none;
}
.onglets a {
  display: inline-flex; align-items: center; padding-inline: .125rem; white-space: nowrap; color: var(--color-ink-2); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--dur-court) var(--ease-out);
}
.onglets a:hover { color: var(--color-ink); }
.onglets a[aria-current] { color: var(--color-ink); font-weight: 700; border-bottom-color: var(--color-accent); }

main { max-width: 84rem; padding: var(--space-md) var(--gouttiere) var(--space-2xl); outline: none; }
.tete { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.tete h2 { font-size: var(--text-xl); }
.sous { color: var(--color-ink-2); margin-top: .125rem; }
.pale { color: var(--color-ink-2); }
.fort { font-weight: 700; }
.aide { max-width: 72ch; color: var(--color-ink-2); font-size: var(--text-sm); }
.aide[role="status"] { min-height: 1lh; margin-top: var(--space-2xs); }
.vide { padding: var(--space-lg) 0; color: var(--color-ink-2); }

/* ---------- Boutons ---------- */
button.bouton, a.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .5rem 1.125rem; font: inherit; font-weight: 600; white-space: nowrap;
  color: var(--color-ink); background: transparent; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); cursor: pointer; text-decoration: none;
  transition: background-color var(--dur-court) var(--ease-out), transform 100ms var(--ease-out);
}
.bouton:hover { background: var(--color-survol); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: .55; cursor: not-allowed; transform: none; background: transparent; }
button.principal { color: var(--color-accent-ink); background: var(--color-accent); border-color: var(--color-accent); }
button.principal:hover { background: var(--color-accent); opacity: .88; }
button.principal:disabled { background: var(--color-accent); opacity: .55; }
button.danger { color: var(--color-baisse); }
.segment button:active, .ligne-reseau:active, .espace-bouton:active { transform: translateY(1px); }
.actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; }

/* ---------- Hub : la relève ---------- */
.releve { padding: var(--space-sm); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-panneau); margin-bottom: var(--space-lg); }
.releve-tete { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.releve p.pale { margin-top: .125rem; font-size: var(--text-sm); }
.releve .aide { margin-top: var(--space-xs); }
.bandeau { margin-top: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-survol); }
.bandeau.erreur { color: var(--color-alerte); background: var(--color-alerte-fond); }
.bandeau.ok { color: var(--color-ok); }
.barre { height: 6px; margin-top: var(--space-2xs); background: var(--color-rule); border-radius: 3px; overflow: hidden; }
.barre i { display: block; height: 100%; background: var(--color-accent); border-radius: 3px; }

/* ---------- Hub : le compteur ---------- */
.hub-haut, .hub-bas { display: grid; gap: var(--space-xl); }
.hub-bas { margin-top: var(--space-xl); }
.compteur-nombre {
  font-family: var(--font-display); font-size: var(--text-compteur); font-weight: 700; line-height: .95; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.compteur-libelle { margin-top: var(--space-2xs); font-size: var(--text-lg); color: var(--color-ink-2); }
.empilee { display: flex; gap: 2px; height: .875rem; margin-top: var(--space-md); max-width: 38rem; }
.empilee i { display: block; flex: 1 1 0; min-width: .25rem; }
.empilee i:first-child { border-radius: 4px 0 0 4px; }
.empilee i:last-child { border-radius: 0 4px 4px 0; }
.empilee i:only-child { border-radius: 4px; }
.sur { background: var(--color-sur); }
.probable { background: var(--color-probable); }
.legende { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-2xs); font-size: var(--text-sm); }
.legende li { display: flex; align-items: center; gap: var(--space-2xs); }
.legende b { font-variant-numeric: tabular-nums; }
.puce { flex: none; display: inline-block; width: .625rem; height: .625rem; border-radius: 2px; }

.mesures > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); }
.mesures > div:first-child { padding-top: 0; }
.mesures dt { color: var(--color-ink-2); }
.mesures dd { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.mesures { margin: 0; }
section > h2 { margin-bottom: var(--space-xs); }

.podium li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) 0; border-bottom: 1px solid var(--color-rule); }
.podium .rang { color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.podium .valeur { font-weight: 700; font-variant-numeric: tabular-nums; }
.tout-voir { display: inline-block; margin-top: var(--space-xs); font-weight: 600; }

.ligne-reseau {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs); width: 100%; padding: var(--space-2xs) var(--space-3xs);
  font: inherit; color: inherit; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--color-rule); cursor: pointer;
  transition: background-color var(--dur-court) var(--ease-out);
}
.ligne-reseau:hover { background: var(--color-survol); }
.ligne-reseau[aria-current] { font-weight: 700; }
.ligne-reseau .tuile { width: 2rem; height: 2rem; border-radius: .5rem; }
.ligne-reseau .detail { font-size: var(--text-sm); color: var(--color-ink-2); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ligne-reseau .detail b { color: var(--color-ink); font-weight: 700; }

/* ---------- Classement et posts ---------- */
.filtres { display: flex; gap: var(--space-2xs); flex-wrap: wrap; align-items: center; margin-bottom: var(--space-sm); }
input { font: inherit; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-input); padding: .5rem .75rem; min-height: 2.5rem; }
input::placeholder { color: var(--color-ink-2); }
input[type="search"] { flex: 1 1 100%; min-width: 0; }
.segment { display: inline-flex; max-width: 100%; overflow-x: auto; padding: var(--space-3xs); gap: var(--space-3xs); background: var(--color-survol); border-radius: var(--radius-pill); scrollbar-width: none; }
.segment button {
  padding: var(--space-3xs) var(--space-xs); font: inherit; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; color: var(--color-ink-2);
  background: none; border: 0; border-radius: var(--radius-pill); cursor: pointer; transition: color var(--dur-court) var(--ease-out);
}
.segment button:hover { color: var(--color-ink); }
.segment button[aria-pressed="true"] { color: var(--color-accent-ink); background: var(--color-accent); font-weight: 600; }

.tableau { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: var(--space-2xs); text-align: left; border-bottom: 1px solid var(--color-rule); white-space: nowrap; }
th { font-size: var(--text-xs); font-weight: 600; color: var(--color-ink-2); background: var(--color-paper); }
th.nb, td.nb { text-align: right; }
tbody tr:hover { background: var(--color-survol); }
td.rang { color: var(--color-ink-2); width: 2.5rem; }
.compte a { color: var(--color-ink); font-weight: 600; text-decoration: none; }
.compte a:hover { text-decoration: underline; }
td.compte { width: 100%; max-width: 0; }
.compte a, .compte-nom { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-nom { color: var(--color-ink-2); font-size: var(--text-xs); }
td.texte { width: 100%; max-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
td.texte a { color: var(--color-ink); text-decoration: none; }
td.texte a:hover { text-decoration: underline; }
.cache-mobile, .cache-tablette { display: none; }
.seul-mobile { display: block; color: var(--color-ink-2); font-size: var(--text-xs); }
.jauge { display: none; height: 4px; margin-top: .25rem; margin-left: auto; width: 5rem; background: var(--color-rule); border-radius: 2px; overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--color-sur); border-radius: 2px; }
.etat { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-sm); }
.etat .puce { border-radius: 50%; }
.monte { color: var(--color-monte); }
.baisse { color: var(--color-baisse); }

/* ---------- Fiche ---------- */
.retour { display: inline-block; margin-bottom: var(--space-sm); color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); }
.retour:hover { color: var(--color-ink); }
.identite { display: flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap; margin-top: var(--space-3xs); color: var(--color-ink-2); }
.identite > * + *::before { content: "·"; margin-right: var(--space-2xs); color: var(--color-ink-2); }
.equation { display: flex; align-items: flex-start; gap: var(--space-sm); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.terme b { display: block; font-family: var(--font-display); font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.terme span { display: block; max-width: 13rem; margin-top: var(--space-3xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.terme.resultat b { font-weight: 700; color: var(--color-lien); }
.op { padding-top: .25rem; font-size: var(--text-xl); color: var(--color-ink-2); }
.bloc { margin-top: var(--space-xl); }
.action { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); }
.action small { color: var(--color-ink-2); font-size: var(--text-xs); }
.action p { margin-top: var(--space-3xs); max-width: 72ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.compacte li { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-2xs) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); }
.deux-colonnes { display: grid; gap: var(--space-xl); }

/* ---------- Réglages ---------- */
.reglage { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); }
.reglage label { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); font-weight: 500; }
.reglage input { width: 5.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.reglage .aide { margin-top: var(--space-3xs); }
.marge { margin-top: var(--space-sm); }
.note { margin-top: var(--space-sm); padding: var(--space-xs) var(--space-sm); background: var(--color-survol); border-radius: var(--radius-input); font-size: var(--text-sm); }

/* ---------- Appel à soutien ---------- */
.onglets a[hidden] { display: none; }
.appel-saisie { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-bottom: var(--space-2xs); }
.appel-saisie input { flex: 1 1 18rem; min-width: 0; }
.appel-resultat:not(:empty) { padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); margin-bottom: var(--space-md); }
.appel-post { margin-bottom: var(--space-sm); }
.appel-post p { margin: 0 0 var(--space-3xs); }
.appel-texte { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; max-width: 72ch; }
.appel-resultat label { display: block; margin: var(--space-sm) 0 var(--space-3xs); }
textarea { font: inherit; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-input); padding: .5rem .75rem; width: 100%; resize: vertical; line-height: 1.4; }
.appel-message { min-height: 12rem; margin-bottom: var(--space-2xs); }
.appel-lien { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; padding: var(--space-2xs) 0; border-top: 1px solid var(--color-rule); }
.appel-lien:last-child { border-bottom: 1px solid var(--color-rule); }
.appel-lien .fort { min-width: 6rem; }
.appel-lien code { flex: 1 1 16rem; min-width: 0; font-size: var(--text-sm); color: var(--color-ink-2); overflow-wrap: anywhere; }
.appel-historique h2 { margin-top: var(--space-md); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marque-appel { font-size: var(--text-xs); white-space: nowrap; }
.reglage-texte label { flex-direction: column; align-items: stretch; gap: var(--space-3xs); }
.reglage-texte input, .reglage-texte textarea { width: 100%; text-align: left; font-variant-numeric: normal; }
.reglage-texte textarea { font-size: var(--text-sm); min-height: 10rem; }

/* ---------- L'espace Riposte : charte Avec Édouard ---------- */
[data-reseau="riposte"] {
  color-scheme: light;
  --color-paper: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-survol: #EEF1FB;
  --color-rule: #D5D9EE;
  --color-ink: #0B1020;
  --color-ink-2: #565C74;
  --color-accent: #FE0106;
  --color-accent-ink: #FFFFFF;
  --color-lien: #06158C;
  --color-focus: #06158C;
  --color-sur: #06158C;
  --color-probable: #3F52C4;
  --color-monte: oklch(45% 0.12 155);
  --color-baisse: oklch(50% 0.18 25);
  --color-alerte: #9A0004;
  --color-alerte-fond: #FFF0F0;
  --color-ok: oklch(45% 0.12 155);
  --color-rail: #040F63;
  --color-rail-ink: #FFFFFF;
  --banniere-fond: #06158C;
  --banniere-encre: #FFFFFF;
  --banniere-filet: transparent;
  --filigrane: .14;
  --riposte-pale: #E7E9F7;
}
.onglets[hidden] { display: none; }
.espace-riposte { border-left: 1px solid var(--voile); border-radius: 0; }
.banniere-logo { display: block; width: 9rem; height: auto; margin-bottom: var(--space-xs); filter: brightness(0) invert(1); }
.riposte { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.riposte h2 { margin-bottom: var(--space-2xs); }
.riposte-etat { color: var(--color-ink-2); font-size: var(--text-sm); }
.riposte-etat.alerte { color: var(--color-alerte); font-weight: 600; }
.riposte-champ { margin-top: var(--space-sm); }
.riposte-champ label, .riposte-libelle { display: block; margin-bottom: var(--space-3xs); font-weight: 700; }
.riposte-champ small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2); }
.riposte select { width: 100%; min-height: 2.5rem; padding: .5rem .75rem; font: inherit; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-input); }
.riposte-chips { display: flex; flex-wrap: wrap; gap: var(--space-3xs); margin-bottom: var(--space-2xs); }
.riposte-chip { display: inline-flex; align-items: center; gap: var(--space-3xs); padding: .125rem .625rem; font-size: var(--text-sm); font-weight: 600; color: var(--color-lien); background: var(--riposte-pale); border-radius: var(--radius-pill); }
.riposte-chip.socle { color: var(--color-ink-2); background: var(--color-survol); font-weight: 500; }
.riposte-chip.manuel { color: var(--blanc); background: var(--color-lien); }
.riposte-chip button { padding: 0 .125rem; font: inherit; font-weight: 700; color: inherit; background: none; border: 0; cursor: pointer; }
.riposte-actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-md); margin-bottom: var(--space-2xs); }
.riposte-erreur { display: none; margin-top: var(--space-xs); padding: var(--space-2xs) var(--space-xs); color: var(--color-alerte); background: var(--color-alerte-fond); border-radius: var(--radius-input); }
.riposte-erreur.visible { display: block; }
.riposte-intensite { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); margin-bottom: var(--space-xs); font-size: var(--text-sm); }
.riposte-points { display: inline-flex; gap: var(--space-3xs); }
.riposte-points i { width: .75rem; height: .75rem; border-radius: 50%; background: var(--riposte-pale); }
.riposte-points i.plein { background: var(--color-lien); }
.reponse { padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.reponse p { margin-bottom: var(--space-2xs); font-size: var(--text-lg); line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.riposte-angle { margin-bottom: var(--space-3xs); font-size: var(--text-xs); font-weight: 700; color: var(--color-lien); }
.riposte-pied { padding-top: var(--space-xs); border-top: 1px solid var(--color-rule); font-size: var(--text-xs); }

/* ---------- L'app en ligne ---------- */
a.espace-bouton { text-decoration: none; }
.espaces-en-ligne { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.soutien-releve { margin-block: var(--space-2xs) var(--space-md); }
.soutien-rang { width: 2rem; font-variant-numeric: tabular-nums; }
.soutien-tel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); }
.soutien-tel input { width: 11rem; min-height: 2.5rem; padding: .5rem .75rem; }
.soutien-note { font-size: var(--text-sm); }
.soutien-fait { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-sm); }
[data-reseau="riposte"] input[type="url"] { width: 100%; min-height: 2.5rem; padding: .5rem .75rem; }
.en-ligne-sortie { justify-content: flex-end; }
.en-ligne-formulaire { max-width: 28rem; }
.en-ligne-formulaire input, .en-ligne-formulaire select { width: 100%; min-height: 2.5rem; padding: .5rem .75rem; font: inherit; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-input); }
.equipe-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); padding-block: var(--space-xs); border-bottom: 1px solid var(--color-rule); }
.equipe-qui { flex: 1 1 14rem; min-width: 0; }
.equipe-qui small { display: block; font-size: var(--text-sm); color: var(--color-ink-2); overflow-wrap: anywhere; }
.equipe-etat { font-size: var(--text-sm); color: var(--color-ink-2); }
.equipe-actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.en-ligne-etape { margin-top: var(--space-lg); }
.en-ligne-qr { display: block; width: 12rem; height: 12rem; margin-block: var(--space-2xs); background: var(--blanc); }
.en-ligne-secret { display: block; margin-top: var(--space-3xs); font-size: var(--text-sm); overflow-wrap: anywhere; }
.marge { margin-top: var(--space-lg); margin-bottom: var(--space-xs); }

/* ---------- Plus large : le rail passe à gauche ---------- */
@media (min-width: 26rem) {
  .espace-nom { font-size: var(--text-xs); }
}
@media (min-width: 40rem) {
  :root { --gouttiere: 2rem; }
  input[type="search"] { flex: 1 1 16rem; }
  th, td { padding: var(--space-2xs) var(--space-xs); }
  .banniere { padding-block: var(--space-md) var(--space-lg); }
  .banniere p { max-width: none; font-size: var(--text-md); }
  .filigrane { width: 17rem; height: 17rem; right: 1rem; }
  td.compte, td.texte { width: auto; max-width: none; }
  .compte a, .compte-nom { max-width: 15rem; }
  .jauge { display: block; }
}
@media (min-width: 48rem) {
  th.cache-mobile, td.cache-mobile { display: table-cell; }
  .seul-mobile { display: none; }
}
@media (min-width: 60rem) {
  :root { --gouttiere: 2.5rem; --hauteur-rail: 0rem; }
  .app { display: grid; grid-template-columns: 6rem minmax(0, 1fr); }
  .rail { flex-direction: column; align-items: stretch; gap: var(--space-lg); height: 100dvh; padding: var(--space-sm) var(--space-2xs); overflow-y: auto; }
  .marque { text-align: center; }
  .logo { width: 4.75rem; margin-inline: auto; }
  .marque-nom { display: block; margin-top: var(--space-3xs); font-size: var(--text-2xs); font-weight: 600; white-space: nowrap; opacity: .85; }
  .espaces { flex: none; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .espace-riposte { padding-top: var(--space-sm); border-left: 0; border-top: 1px solid var(--voile); }
  .riposte { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .tuile { width: 3rem; height: 3rem; }
  .espace-nombre { display: block; }
  .hub-haut { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .hub-bas { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .filigrane { width: 22rem; height: 22rem; right: 3rem; }
}
@media (min-width: 75rem) {
  th.cache-tablette, td.cache-tablette { display: table-cell; }
  .deux-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Assez de place pour le tableau : pas de défilement interne, l'en-tête reste sous les onglets. */
  .tableau { overflow: visible; }
  th { position: sticky; top: var(--hauteur-onglets); z-index: var(--z-table); }
  td.texte { min-width: 24rem; }
}

@media (pointer: coarse) {
  .segment button { padding-block: var(--space-2xs); }
  button.bouton, a.bouton, input { min-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; }
  .point { animation: none; }
}
