/* RTS Network — feuille de style.
   Palette volontairement différente des autres réseaux : gris chaud profond,
   texte ivoire, un seul accent doré. Rien de criard. */

:root {
  --fond: #0d0e10;
  --rail: #121316;
  --carte: #16181c;
  --carte-haute: #1b1e23;
  --trait: #262a31;
  --trait-clair: #31363f;
  --texte: #edeae4;
  --texte-doux: #9aa0ab;
  --texte-faible: #6b7280;
  --or: #d9a94a;
  --or-clair: #f0c874;
  --or-voile: rgba(217, 169, 74, 0.10);
  --vert: #5fbf8a;
  --rouge: #e2695e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------- structure */
.pose { display: flex; min-height: 100vh; }

.rail {
  width: 232px;
  flex: 0 0 232px;
  background: var(--rail);
  border-right: 1px solid var(--trait);
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail-tete {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 26px;
}

.logo {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--texte);
}

/* La marque : un point d'or devant RTS. C'est la signature du réseau. */
.logo-mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--or-clair), var(--or));
  box-shadow: 0 0 0 1px rgba(217, 169, 74, .28), 0 0 14px rgba(217, 169, 74, .55);
  animation: marque-entree .7s cubic-bezier(.2, .8, .3, 1) both;
  flex: 0 0 auto;
}

@keyframes marque-entree {
  from { opacity: 0; transform: scale(.4) rotate(-25deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.logo-barre {
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent, var(--or), transparent);
  opacity: .75;
}

.logo-suite {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--texte-faible);
  padding-top: 3px;
}

.rail nav { display: flex; flex-direction: column; gap: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--texte-doux);
  font-size: 14px;
  transition: background .12s, color .12s;
}

.nav:hover { background: var(--carte); color: var(--texte); }

.nav.actif {
  background: var(--carte-haute);
  color: var(--texte);
  box-shadow: inset 2px 0 0 var(--or);
}

.nav-ic { width: 14px; text-align: center; color: var(--texte-faible); font-size: 12px; }
.nav.actif .nav-ic { color: var(--or); }

.nav-sep {
  margin: 20px 0 6px;
  padding: 0 11px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.rail-pied { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--trait); }

.moi { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--or-voile);
  border: 1px solid var(--trait-clair);
  color: var(--or-clair);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}

.moi-txt { display: flex; flex-direction: column; line-height: 1.25; }
.moi-txt strong { font-size: 13px; font-weight: 600; }
.moi-txt small { font-size: 11px; color: var(--texte-faible); }

.deco { font-size: 12px; color: var(--texte-faible); padding: 0 6px; }
.deco:hover { color: var(--rouge); }

/* ----------------------------------------------------------------- contenu */
.champ {
  flex: 1;
  padding: 44px 48px 80px;
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.entete { margin-bottom: 26px; }

.sur-titre {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.entete h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------- cartes */
.grille-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}

.kpi {
  background: var(--carte);
  padding: 30px 22px 24px;
  text-align: center;
}

.kpi-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--texte);
}

.kpi-lab {
  margin-top: 8px;
  font-size: 12px;
  color: var(--texte-doux);
}

.kpi.accent { background: linear-gradient(180deg, rgba(217,169,74,.07), transparent 70%), var(--carte); }
.kpi.accent .kpi-val { color: var(--or-clair); }

/* ------------------------------------------------------------------- blocs */
.bloc {
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.bloc h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bloc p { margin: 0 0 10px; color: var(--texte-doux); font-size: 13px; }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* lien à copier */
.copie {
  display: flex;
  gap: 10px;
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: 9px;
  padding: 6px 6px 6px 14px;
  align-items: center;
}

.copie code {
  flex: 1;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--texte);
  overflow-x: auto;
  white-space: nowrap;
}

.copie button {
  background: var(--or);
  color: #1a1408;
  border: 0;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
}

.copie button:hover { background: var(--or-clair); }

/* périodes */
.periodes {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--trait);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.periode {
  padding: 9px 14px 11px;
  font-size: 13px;
  color: var(--texte-doux);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.periode:hover { color: var(--texte); }
.periode.actif { color: var(--texte); border-bottom-color: var(--or); }

/* tableaux */
.tableau-enveloppe { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
  text-align: left;
  padding: 9px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
  border-bottom: 1px solid var(--trait);
  font-weight: 600;
  white-space: nowrap;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--trait);
  color: var(--texte-doux);
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--carte-haute); }

td.mono, .mono { font-family: ui-monospace, Menlo, monospace; color: var(--texte); }

.vide {
  text-align: center;
  color: var(--texte-faible);
  font-size: 13px;
  padding: 32px 0;
  margin: 0;
}

/* pastilles */
.pastille {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.pastille.valide { background: rgba(95,191,138,.14); color: var(--vert); }
.pastille.attente { background: rgba(217,169,74,.14); color: var(--or-clair); }
.pastille.annule { background: rgba(226,105,94,.14); color: var(--rouge); }

/* bandeaux */
.bandeau {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid var(--trait);
}

.bandeau.ok { background: rgba(95,191,138,.10); border-color: rgba(95,191,138,.35); color: var(--vert); }
.bandeau.erreur { background: rgba(226,105,94,.10); border-color: rgba(226,105,94,.35); color: var(--rouge); }
.bandeau.info { background: var(--or-voile); border-color: rgba(217,169,74,.35); color: var(--or-clair); }

/* formulaires */
label { display: block; font-size: 12px; color: var(--texte-doux); margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: 8px;
  color: var(--texte);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--or);
}

textarea { min-height: 110px; resize: vertical; }

.champ-form { margin-bottom: 16px; }

.bouton {
  display: inline-block;
  background: var(--or);
  color: #1a1408;
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bouton:hover { background: var(--or-clair); }

.bouton.discret {
  background: transparent;
  border: 1px solid var(--trait-clair);
  color: var(--texte-doux);
}

.bouton.discret:hover { border-color: var(--or); color: var(--or-clair); }

.bouton.petit { padding: 6px 12px; font-size: 12px; }

/* listes de règles */
.regles { list-style: none; margin: 0; padding: 0; }
.regles li { display: flex; gap: 9px; padding: 6px 0; font-size: 13px; color: var(--texte-doux); }
.regles li::before { content: "✓"; color: var(--vert); font-weight: 700; }
.regles.alertes li::before { content: "✗"; color: var(--rouge); }

/* tips */
.tip-onglets { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }

.tip-onglet {
  padding: 8px 15px;
  border: 1px solid var(--trait);
  border-radius: 20px;
  font-size: 12px;
  color: var(--texte-doux);
}

.tip-onglet.actif { border-color: var(--or); color: var(--or-clair); background: var(--or-voile); }

.tip {
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--carte);
}

.tip h3 { margin: 0 0 8px; font-size: 14px; }
.tip p { margin: 0 0 10px; font-size: 13px; color: var(--texte-doux); }
.tip .corps { font-size: 13px; color: var(--texte-doux); }
.tip .corps p { margin: 0 0 8px; }

.tip-actions { display: flex; gap: 8px; margin-top: 12px; }

/* connexion / inscription */
.mini-pose {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.mini-colonne { width: 100%; max-width: 420px; }

.mini-marque {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.mini-carte {
  width: 100%;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 26px 26px 30px;
}

.titre-panneau {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.aide { margin: 0 0 22px; font-size: 13px; color: var(--texte-faible); }

.pied-form {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--texte-faible);
}

.pied-form a { color: var(--or-clair); border-bottom: 1px solid rgba(217,169,74,.4); }

.mini-pied {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--texte-faible);
}

.pastille-age {
  display: inline-block;
  border: 1px solid var(--trait-clair);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  margin-right: 8px;
}

/* bascule connexion / inscription */
.bascule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.bascule-item {
  text-align: center;
  padding: 9px 0;
  border-radius: 7px;
  font-size: 13px;
  color: var(--texte-doux);
}

.bascule-item.actif { background: var(--carte-haute); color: var(--texte); font-weight: 600; }

.bouton.large { display: block; width: 100%; text-align: center; }

.note-form {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--texte-faible);
}

.case {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 13px;
  color: var(--texte-doux);
  cursor: pointer;
}

.case input { width: auto; accent-color: var(--or); }

/* choix Telegram / Discord */
.choix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.choix-item { display: block; margin: 0; cursor: pointer; }

.choix-item input { position: absolute; opacity: 0; pointer-events: none; }

.choix-item span {
  display: block;
  text-align: center;
  padding: 9px 0;
  border: 1px solid var(--trait);
  border-radius: 8px;
  font-size: 13px;
  color: var(--texte-doux);
  background: var(--fond);
  transition: border-color .12s, color .12s, background .12s;
}

.choix-item:hover span { border-color: var(--trait-clair); color: var(--texte); }

.choix-item input:checked + span {
  border-color: var(--or);
  color: var(--or-clair);
  background: var(--or-voile);
  font-weight: 600;
}

.choix-item input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }

/* écran d'attente */
.attente-boite {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
}

.attente-temps {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--or-clair);
  font-variant-numeric: tabular-nums;
}

.attente-temps.fini { font-size: 18px; color: var(--vert); }

.attente-lab {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.ligne-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.ligne-form select { width: auto; min-width: 160px; }

/* petit écran */
@media (max-width: 900px) {
  .pose { flex-direction: column; }
  .rail {
    width: auto; flex: none; height: auto; position: static;
    border-right: 0; border-bottom: 1px solid var(--trait);
    padding: 16px;
  }
  .rail nav { flex-direction: row; flex-wrap: wrap; }
  .rail-pied { display: flex; justify-content: space-between; align-items: center;
                margin-top: 14px; padding-top: 12px; }
  .moi { padding: 0; }
  .champ { padding: 24px 18px 60px; }
  .grille-kpi { grid-template-columns: repeat(2, 1fr); }
  .deux-colonnes { grid-template-columns: 1fr; }
}

/* =========================================================== finitions
   Transitions entre pages, profondeur, états d'interaction. Rien qui bouge
   en permanence : uniquement à l'arrivée et au survol. */

/* fond : un halo très doux en haut de page, pour sortir du noir plat.
   On évite « background-attachment: fixed » sur le body : ça laisse la page
   précédente visible en fantôme pendant la navigation. Un calque fixe
   derrière le contenu donne le même rendu, sans ce défaut. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 26% -12%, rgba(217,169,74,.055), transparent 70%),
    radial-gradient(700px 380px at 88% -6%, rgba(217,169,74,.030), transparent 65%);
}

/* arrivée sur une page : le contenu monte doucement, en cascade */
@keyframes entree-page {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.champ > * {
  animation: entree-page .38s cubic-bezier(.2, .75, .3, 1) both;
}

.champ > *:nth-child(1) { animation-delay: 0s; }
.champ > *:nth-child(2) { animation-delay: .04s; }
.champ > *:nth-child(3) { animation-delay: .08s; }
.champ > *:nth-child(4) { animation-delay: .12s; }
.champ > *:nth-child(5) { animation-delay: .16s; }
.champ > *:nth-child(6) { animation-delay: .20s; }
.champ > *:nth-child(n+7) { animation-delay: .24s; }

/* le rail entre en fondu, et la barre active s'allume */
.rail { animation: entree-page .45s ease-out both; }

.nav.actif {
  box-shadow: inset 2px 0 0 var(--or), 0 0 0 1px rgba(217,169,74,.12);
}

.nav.actif .nav-ic {
  color: var(--or);
  text-shadow: 0 0 10px rgba(217,169,74,.5);
}

/* cartes : le bord s'éclaire au survol, sans bouger la mise en page */
.kpi, .bloc, .tip {
  transition: border-color .18s ease, background .18s ease;
}

.bloc:hover, .tip:hover { border-color: var(--trait-clair); }

.kpi.accent {
  background:
    radial-gradient(120% 140% at 80% 0%, rgba(217,169,74,.13), transparent 62%),
    var(--carte);
}

/* boutons : léger relief, enfoncement au clic */
.bouton {
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 6px 18px -10px rgba(217,169,74,.8);
  transition: background .14s, transform .08s, box-shadow .14s;
}

.bouton:hover { transform: translateY(-1px); }
.bouton:active { transform: translateY(0); box-shadow: none; }

.bouton.discret { box-shadow: none; }
.bouton.discret:hover { background: rgba(217,169,74,.06); }

/* titres de bloc : un petit trait d'or devant */
.bloc h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 11px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--or);
  vertical-align: -1px;
  opacity: .85;
}

/* onglets de période : soulignement qui glisse */
.periode { transition: color .15s, border-color .15s; }

/* les liens du menu : icône qui s'allume */
.nav:hover .nav-ic { color: var(--or-clair); }

/* tableaux : entête discret, lignes qui respirent */
thead th { background: rgba(255,255,255,.012); }

tbody tr { transition: background .12s; }

/* focus clavier visible partout */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
  border-radius: 6px;
}

/* barres de défilement discrètes */
* { scrollbar-width: thin; scrollbar-color: #2b3038 transparent; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2b3038;
  border-radius: 8px;
  border: 2px solid var(--fond);
}
::-webkit-scrollbar-thumb:hover { background: #3a4048; }

/* l'écran d'attente : le cadre du compteur respire */
.attente-boite {
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(217,169,74,.10), transparent 65%),
    var(--fond);
  animation: entree-page .5s ease-out both;
}

.attente-temps { text-shadow: 0 0 24px rgba(217,169,74,.22); }

/* respect de "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- navigation sans rechargement ---------------------------------------
   Une barre d'or fine en haut pendant le chargement, et le contenu qui
   s'efface légèrement. Rien de brusque. */
.progression {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  box-shadow: 0 0 12px rgba(217, 169, 74, .55);
  opacity: 0;
  z-index: 60;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

.progression.actif {
  opacity: 1;
  transform: scaleX(.75);
  transition: transform 1.1s cubic-bezier(.12, .82, .2, 1), opacity .15s ease;
}

body.en-chargement .champ {
  opacity: .45;
  transition: opacity .12s ease;
}

.champ { transition: opacity .18s ease; }

@media (prefers-reduced-motion: reduce) {
  .progression, .progression.actif { transition: none; }
  body.en-chargement .champ { opacity: 1; }
}

/* ---- cloche et panneau de notifications -------------------------------- */
.rail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cloche {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--fond);
  border: 1px solid var(--trait);
  color: var(--texte-doux);
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}

.cloche:hover { border-color: var(--or); color: var(--or-clair); background: var(--or-voile); }

.cloche-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--or);
  color: #1a1408;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--rail);
}

.voile {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, .62);
  backdrop-filter: blur(2px);
  z-index: 40;
  animation: apparait .16s ease-out both;
}

@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

.panneau-notifs {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--carte);
  border: 1px solid var(--trait-clair);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px #000;
  z-index: 41;
  animation: monte .2s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes monte {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.panneau-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--trait);
}

.panneau-tete h2 { margin: 0; font-size: 15px; font-weight: 600; }

.lien-fin {
  background: none;
  border: 0;
  color: var(--texte-doux);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.lien-fin:hover { color: var(--or-clair); }

.panneau-corps { overflow-y: auto; padding: 12px 14px 16px; }

.notif {
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 13px 15px;
  margin-bottom: 9px;
  background: var(--carte-haute);
}

.notif-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.notif-tete strong { font-size: 13px; color: var(--or-clair); }
.notif-quand { font-size: 11px; color: var(--texte-faible); white-space: nowrap; }
.notif p { margin: 6px 0 0; font-size: 12.5px; color: var(--texte-doux); }

body.panneau-ouvert { overflow: hidden; }

/* ---- page deals --------------------------------------------------------- */
.deal {
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--carte);
  transition: border-color .16s;
}

.deal:hover { border-color: var(--trait-clair); }

.deal-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.deal-tete h3 { margin: 0 0 4px; font-size: 15px; }
.deal-sous { margin: 0; font-size: 12px; color: var(--texte-faible); }

.deal-total { text-align: right; white-space: nowrap; }
.deal-total span {
  display: block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 16px;
  color: var(--or-clair);
}
.deal-total small { font-size: 11px; color: var(--texte-faible); }

.deal-form { border-top: 1px solid var(--trait); padding-top: 14px; }

.deal-champs {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr auto auto;
  gap: 12px;
  align-items: end;
}

.deal-champs label { font-size: 11px; }

.deal-reste { text-align: right; padding-bottom: 4px; }
.deal-reste span {
  display: block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  color: var(--texte);
}
.deal-reste small { font-size: 10px; color: var(--texte-faible); }

@media (max-width: 900px) {
  .deal-champs { grid-template-columns: 1fr 1fr; }
  .deal-reste { text-align: left; }
}

/* l'attribut hidden doit gagner : sans ça, display:flex le neutralise */
.panneau-notifs[hidden], .voile[hidden], .cloche[hidden] { display: none !important; }
/* bandeau d'aperçu */
.bandeau.apercu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bandeau.apercu a { color: var(--or-clair); border-bottom: 1px solid rgba(217,169,74,.4); }

/* page liens de partage */
.lien-champs {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: end;
}

.lien-champs label { font-size: 11px; }
.lien-champs input[name="code"] { text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 780px) {
  .lien-champs { grid-template-columns: 1fr; }
}

.badge.valide, .badge.attente {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
}
.badge.valide { background: rgba(96, 200, 140, .12); color: #7fd6a2; }
.badge.attente { background: rgba(217, 169, 74, .12); color: var(--or-clair); }

/* liste des partenaires + œil */
.bloc-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bloc-tete h2 { margin: 0; }

.oeil {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--fond);
  border: 1px solid var(--trait);
  color: var(--texte-doux);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}
.oeil:hover { border-color: var(--or); color: var(--or-clair); background: var(--or-voile); }
.oeil[data-cache="1"] { border-color: var(--or); color: var(--or-clair); }

#bloc-partenaires .pseudo {
  display: inline-block;
  transition: filter .18s ease;
}
#bloc-partenaires.pseudos-caches .pseudo {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* ---- graphique de progression ------------------------------------------- */
.bloc-graphique { padding-bottom: 8px; }

.legende-graphique {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--texte-doux);
}

.legende-graphique span { display: inline-flex; align-items: center; gap: 7px; }

.pastille { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pastille.or { background: var(--or); }
.pastille.grise { background: #4a4e57; }

.legende-totaux {
  margin-left: auto;
  color: var(--texte-faible);
  font-variant-numeric: tabular-nums;
}

.graphique { width: 100%; }
.graphique svg { display: block; width: 100%; height: 210px; overflow: visible; }
.graphique .g-axe {
  font-size: 9.5px;
  fill: var(--texte-faible);
  font-family: ui-monospace, Menlo, monospace;
}

@media (max-width: 780px) {
  .graphique svg { height: 160px; }
  .legende-totaux { margin-left: 0; width: 100%; }
}

/* sur téléphone, la courbe garde sa forme mais on retire les libellés d'axe
   (trop petits une fois l'échelle réduite) */
@media (max-width: 780px) {
  .graphique .g-axe { display: none; }
}
