/* ═══════════════════════════════════════════════════════════════
   StakeRecap — interface

   Même langage visuel que la page d'accueil : noir profond, une seule
   couleur d'accent, filets d'un pixel, beaucoup de vide, typographie
   technique condensée. Les surfaces ne sont plus des « cartes » posées
   sur un fond bleuté mais des zones délimitées par des filets, comme les
   panneaux d'un instrument de mesure.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --noir:    #07080b;
  --voile:   #0c0e13;
  --txt:     #eceef2;
  --gris:    #8b909c;
  --sourd:   #565b66;
  --trait:   rgba(255,255,255,.075);
  --trait-2: rgba(255,255,255,.15);

  --green:   #00e701;
  --green-d: #04a80a;
  --red:     #ff4d4d;
  --gold:    #ffc93c;
  --violet:  #a78bfa;

  /* alias conservés : d'anciennes règles et les thèmes d'overlay s'en servent */
  --ink: var(--noir);  --bg: var(--noir);
  --panel: var(--voile); --panel-2: #11141a;
  --edge: var(--trait); --edge-2: var(--trait-2);
  --text: var(--txt); --muted: var(--gris); --dim: var(--sourd);

  --display: "Bahnschrift", "DIN Alternate", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --mono:    "Cascadia Mono", "SF Mono", Menlo, "Consolas", ui-monospace, monospace;
  --ease:    cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--noir);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── atmosphère ──────────────────────────────────────────────── */

.ciel { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.grille {
  position: absolute; inset: -68px;
  background-image:
    linear-gradient(var(--trait) 1px, transparent 1px),
    linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 68px 68px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000, transparent 74%);
          mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000, transparent 74%);
  animation: derive 34s linear infinite;
}
@keyframes derive { to { background-position: 68px 68px; } }
.lueur { position: absolute; border-radius: 50%; filter: blur(100px); }
.l1 { width: 58vw; height: 58vw; left: -18vw; top: -26vw;
      background: radial-gradient(circle, rgba(0,231,1,.13), transparent 68%);
      animation: flot1 26s ease-in-out infinite; }
.l2 { width: 44vw; height: 44vw; right: -16vw; top: 18vw;
      background: radial-gradient(circle, rgba(70,130,255,.10), transparent 68%);
      animation: flot2 34s ease-in-out infinite; }
@keyframes flot1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6vw,4vw); } }
@keyframes flot2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-5vw,-3vw); } }
.grain {
  position: absolute; inset: 0; opacity: .38; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

main, header.top { position: relative; z-index: 1; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── barre du haut ───────────────────────────────────────────── */

header.top {
  border-bottom: 1px solid var(--trait);
  background: rgba(7,8,11,.72);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
  animation: tombe .8s var(--ease) both;
}
@keyframes tombe { from { opacity: 0; transform: translateY(-14px); } }
header.top .in {
  max-width: 1120px; margin: 0 auto; padding: 0 26px;
  min-height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.marque {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-size: 19px; font-weight: 600;
  letter-spacing: .16em; color: var(--txt); text-decoration: none;
}
.marque:hover { text-decoration: none; }
.marque b { color: var(--green); font-weight: 600; }
.marque .barre { display: none; }   /* l'ancien liseré, remplacé par le mot en deux tons */

nav.liens { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
nav.liens a, nav.liens button {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  color: var(--gris); text-transform: uppercase;
  padding: 8px 13px; border-radius: 100px; border: 1px solid transparent;
  background: transparent; cursor: pointer; text-decoration: none;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
nav.liens a:hover, nav.liens button:hover {
  color: var(--txt); border-color: var(--trait);
  background: rgba(255,255,255,.04); text-decoration: none;
}
nav.liens a.actif {
  color: var(--green); border-color: rgba(0,231,1,.28);
  background: rgba(0,231,1,.07);
}

/* ── mise en page ────────────────────────────────────────────── */

main { max-width: 1120px; margin: 0 auto; padding: 44px 26px 90px; }
main.etroit { max-width: 440px; padding-top: 76px; }

h1.titre {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05;
  letter-spacing: -.012em; margin-bottom: 6px;
}
p.sous { color: var(--gris); font-size: 14px; margin-bottom: 30px; }

/* Les sections apparaissent en cascade au chargement : la page se pose
   au lieu de surgir d'un bloc. */
section.carte {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--trait);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -40px #000, inset 0 1px 0 rgba(255,255,255,.05);
  animation: pose .8s var(--ease) both;
}
section.carte:nth-of-type(1) { animation-delay: .05s; }
section.carte:nth-of-type(2) { animation-delay: .12s; }
section.carte:nth-of-type(3) { animation-delay: .19s; }
section.carte:nth-of-type(4) { animation-delay: .26s; }
section.carte:nth-of-type(n+5) { animation-delay: .32s; }
@keyframes pose { from { opacity: 0; transform: translateY(20px); } }
section.carte::before { content: none; }   /* le liseré vert d'angle a sauté */

h2.cap {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  color: var(--sourd); text-transform: uppercase; margin-bottom: 18px;
}

/* ── formulaires ─────────────────────────────────────────────── */

label { display: block; color: var(--gris); font-size: 11.5px;
        letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; }
input[type=text], input[type=password] {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--trait); border-radius: 10px;
  background: rgba(0,0,0,.35); color: var(--txt);
  font-size: 15px; font-family: var(--mono);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
input:focus { outline: none; border-color: rgba(0,231,1,.55);
              box-shadow: 0 0 0 3px rgba(0,231,1,.09); }
input.mono { font-family: var(--mono); font-size: 13.5px; }
.champ { margin-bottom: 15px; }

button, .bouton {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--display); font-size: 15px; letter-spacing: .1em;
  background: var(--green); color: #04120a;
  text-decoration: none; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
button:hover, .bouton:hover {
  transform: translateY(-2px); text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(0,231,1,.55);
}
/* balayage lumineux au survol, comme sur l'appel à l'action de l'accueil */
button::after, .bouton::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
button:hover::after, .bouton:hover::after { left: 130%; }
button.large { width: 100%; }
button.fant, .bouton.fant {
  background: transparent; color: var(--gris);
  border: 1px solid var(--trait); box-shadow: none;
}
button.fant:hover, .bouton.fant:hover { color: var(--txt); border-color: var(--trait-2);
                    background: rgba(255,255,255,.04); box-shadow: none; }
.bouton.fant::after, button.fant::after { content: none; }
button.danger {
  background: transparent; color: var(--red);
  border: 1px solid rgba(255,77,77,.35); padding: 8px 15px; font-size: 13.5px;
  box-shadow: none;
}
button.danger:hover { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
button.danger::after { content: none; }
button.mini, .bouton.mini { padding: 8px 15px; font-size: 13.5px; }

.message { margin-top: 12px; font-size: 13px; min-height: 20px; }
.message.ok { color: var(--green); }
.message.ko { color: var(--red); }

.alerte {
  border-radius: 12px; padding: 15px 17px; margin-bottom: 20px;
  font-size: 13.5px; border: 1px solid; border-left-width: 2px;
}
.alerte.ok   { background: rgba(0,231,1,.06);    border-color: rgba(0,231,1,.28);    color: #b6ffb7; }
.alerte.ko   { background: rgba(255,77,77,.06);  border-color: rgba(255,77,77,.3);   color: #ffc2c2; }
.alerte.info { background: rgba(167,139,250,.06);border-color: rgba(167,139,250,.28);color: #ddd2ff; }
.alerte b { color: #fff; }

/* ── état en direct ──────────────────────────────────────────── */

.direct { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.led { width: 7px; height: 7px; border-radius: 50%; background: #303640;
       flex: none; position: relative; }
.led.on { background: var(--green); box-shadow: 0 0 12px var(--green); }
/* onde plutôt que clignotement : plus calme sur une page qu'on regarde longtemps */
.led.on::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--green); animation: onde 2.4s ease-out infinite;
}
@keyframes onde { 0% { transform: scale(.6); opacity: .85; } 100% { transform: scale(2.6); opacity: 0; } }
.direct .quoi { font-family: var(--mono); font-size: 11px; letter-spacing: .17em;
                text-transform: uppercase; color: var(--gris); }
.direct .quoi.on { color: var(--green); }

/* Tuiles de chiffres : filets partagés, comme le bandeau de l'accueil. */
.tuiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1px; background: var(--trait);
  border: 1px solid var(--trait); border-radius: 12px; overflow: hidden;
}
.tuile { background: var(--noir); padding: 16px 18px; }
.tuile .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .17em;
            text-transform: uppercase; color: var(--sourd); }
.tuile .v {
  font-family: var(--display); font-size: 27px; line-height: 1.2; margin-top: 3px;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.v.pos { color: var(--green); } .v.neg { color: var(--red); } .v.gold { color: var(--gold); }

/* ── liens OBS ───────────────────────────────────────────────── */

.obs { display: grid; gap: 8px; }
.obs .ligne {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: rgba(0,0,0,.3); border: 1px solid var(--trait);
  border-radius: 11px; padding: 13px 16px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.obs .ligne:hover { border-color: var(--trait-2); background: rgba(255,255,255,.03); }
.obs .ligne > div { min-width: 0; }
.obs .nom {
  font-family: var(--display); font-size: 16px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.obs .taille { font-family: var(--mono); font-size: 10.5px; color: var(--sourd);
               letter-spacing: .08em; }
.obs .quoi { font-size: 12.5px; color: var(--gris); margin-top: 2px; }
.obs .url {
  font-family: var(--mono); font-size: 11px; color: var(--sourd); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── tableaux ────────────────────────────────────────────────── */

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .17em; text-transform: uppercase; color: var(--sourd);
  font-weight: 400; padding-bottom: 13px;
}
td { padding: 14px 0; border-top: 1px solid var(--trait); vertical-align: middle; }
td.qui b { font-family: var(--display); font-size: 16px; }
td.qui .id { font-family: var(--mono); font-size: 11px; color: var(--sourd); }
td.actions { text-align: right; white-space: nowrap; }
td.actions form { display: inline-block; margin-left: 7px; }
.etiq {
  display: inline-block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; margin-left: 8px;
  background: rgba(167,139,250,.13); color: var(--violet);
  border: 1px solid rgba(167,139,250,.25);
}

th.d, td.d { text-align: right; }
td.muted { color: var(--gris); }
.gain { color: var(--green); }
.perte { color: var(--red); }

table.cliquable tbody tr { cursor: pointer; transition: background .2s var(--ease); }
table.cliquable tbody tr:hover { background: rgba(255,255,255,.035); }

a.retour {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gris); margin-bottom: 18px;
  transition: color .3s var(--ease);
}
a.retour:hover { color: var(--green); text-decoration: none; }

/* ── tutoriel ────────────────────────────────────────────────── */

ol.etapes { list-style: none; counter-reset: e; }
ol.etapes li {
  counter-increment: e; position: relative;
  padding: 0 0 26px 48px; border-left: 1px solid var(--trait); margin-left: 15px;
}
ol.etapes li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.etapes li::before {
  content: counter(e, decimal-leading-zero);
  position: absolute; left: -16px; top: -3px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--noir); border: 1px solid var(--trait-2);
  color: var(--green); font-family: var(--mono); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
ol.etapes li h3 { font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
ol.etapes li p { color: var(--gris); font-size: 13.5px; }
ol.etapes li p + p { margin-top: 8px; }

code.bloc {
  display: block; font-family: var(--mono); font-size: 12px;
  background: rgba(0,0,0,.4); border: 1px solid var(--trait);
  border-radius: 9px; padding: 11px 13px; margin-top: 10px;
  color: var(--txt); word-break: break-all;
}
kbd {
  font-family: var(--mono); font-size: 11.5px;
  background: rgba(255,255,255,.06); border: 1px solid var(--trait-2);
  border-radius: 6px; padding: 2px 7px; color: var(--txt);
}

/* ── page publique ───────────────────────────────────────────── */

/* Sur une page publique le nom du streamer tient lieu de marque, avec une
   pastille aux couleurs de son thème. */
.marque.pub-nom { gap: 12px; letter-spacing: .06em; text-transform: none; }
.marque.pub-nom .point {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: linear-gradient(92deg, var(--acc1, var(--green)), var(--acc2, #7bff5e));
  box-shadow: 0 0 14px var(--acc1, var(--green));
}
body.pub header.top .direct { margin: 0; }
.hero-pub .resultat { margin-bottom: 18px; }

.wager-pub .wp-haut, .wager-pub .wp-bas {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; color: var(--gris);
}
.wager-pub .wp-haut { margin-bottom: 10px; letter-spacing: .16em; text-transform: uppercase; }
.wager-pub .wp-haut b {
  font-family: var(--display); font-size: 21px; letter-spacing: 0;
  background: linear-gradient(92deg, var(--acc1, var(--green)), var(--acc2, #7bff5e));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wager-pub .wp-piste {
  position: relative; height: 10px; border-radius: 100px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.wager-pub .wp-piste i {
  display: block; height: 100%; border-radius: 100px; overflow: hidden;
  background: linear-gradient(90deg, var(--acc2, #7bff5e), var(--acc1, var(--green)));
  box-shadow: 0 0 16px rgba(0,231,1,.45);
  transition: width 1.1s var(--ease);
}
/* rayures animées confinées au remplissage, jamais peintes sur la piste vide */
.wager-pub .wp-piste i::before {
  content: ""; position: absolute; left: -70px; right: -70px; top: 0; bottom: 0;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.2) 0 9px, transparent 9px 20px);
  animation: glisse 3.4s linear infinite;
}
@keyframes glisse { to { transform: translateX(22.65px); } }
.wager-pub .wp-bas { margin-top: 11px; }
.wager-pub .wp-bas b { color: var(--txt); font-family: var(--display); font-size: 16px; margin-left: 5px; }

.raw-pub {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--display); font-size: 36px;
  text-transform: uppercase; letter-spacing: .02em;
  background: linear-gradient(92deg, var(--acc1, var(--green)), var(--acc2, #7bff5e));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.raw-pub span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--gris); -webkit-text-fill-color: var(--gris);
}

.pied {
  margin-top: 30px; text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--sourd); line-height: 1.95;
}
.pied span { display: block; max-width: 620px; margin: 8px auto 0; }
.pied b { color: var(--gris); }

/* ── résultat et courbe ──────────────────────────────────────── */

.resultat {
  font-family: var(--display); font-size: clamp(42px, 5.4vw, 58px);
  line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.resultat.gain { color: var(--green); }
.resultat.perte { color: var(--red); }

.courbe-boite {
  background: rgba(0,0,0,.3); border: 1px solid var(--trait);
  border-radius: 11px; padding: 12px;
}
svg.courbe { width: 100%; height: 155px; display: block; }
.vide-courbe {
  height: 155px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sourd);
}
.bornes {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gris);
}
.bornes b { font-family: var(--display); font-size: 18px; margin-left: 7px;
            letter-spacing: 0; text-transform: none; }

/* ── choix de thème et de devise ─────────────────────────────── */

.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 9px; }
.theme {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  background: rgba(0,0,0,.3); border: 1px solid var(--trait);
  border-radius: 11px; padding: 13px 15px; margin: 0;
  /* Les cases d une meme rangee gardent la meme hauteur meme si un nom passe
     sur deux lignes : sans ca la grille prend un air de dents cassees. */
  min-width: 0; min-height: 54px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.theme:hover { border-color: var(--trait-2); transform: translateY(-1px); }
.theme.choisi { border-color: rgba(0,231,1,.5); background: rgba(0,231,1,.06); }
.theme input { position: absolute; opacity: 0; pointer-events: none; }
.theme .pastille {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  box-shadow: 0 0 10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.15);
}
/* Un element flex ne se reduit jamais sous la largeur de son mot le plus long :
   sans min-width, « DOLLAR AUSTRALIEN » depassait de sa case. */
.theme .nom {
  font-family: var(--display); font-size: 15px; line-height: 1.2;
  /* break-word et non anywhere : on ne coupe un mot que sil ne tient
     vraiment pas, sinon « AUSTRALIEN » se scindait en « AUSTRALIE / N ». */
  min-width: 0; overflow-wrap: break-word; hyphens: none;
}
.theme .pastille.sym {
  background: rgba(255,255,255,.06); border: 1px solid var(--trait-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 13px; color: var(--txt); box-shadow: none;
}

.secret {
  font-family: var(--mono); font-size: 18px; letter-spacing: .05em;
  background: rgba(0,231,1,.05); border: 1px dashed rgba(0,231,1,.45);
  border-radius: 11px; padding: 16px 18px; margin: 12px 0;
  color: var(--green); word-break: break-all; text-align: center;
}

/* ── connexion par Google / Discord ──────────────────────────── */

.fournisseurs { display: grid; gap: 10px; }
.fournisseur {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 18px; border-radius: 100px;
  background: rgba(255,255,255,.045); border: 1px solid var(--trait);
  color: var(--txt); font-family: var(--display); font-size: 16px;
  letter-spacing: .04em; text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.fournisseur:hover {
  background: rgba(255,255,255,.08); border-color: var(--trait-2);
  transform: translateY(-2px); text-decoration: none;
}
.fournisseur svg { flex: none; }

/* séparateur « ou » : un filet interrompu par le mot */
.ou {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; color: var(--sourd);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .17em;
  text-transform: uppercase;
}
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--trait); }

.liens-fournisseurs { display: grid; gap: 9px; }
.ligne-fournisseur {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 15px; border: 1px solid var(--trait); border-radius: 11px;
  background: rgba(0,0,0,.3);
}
.ligne-fournisseur .qui { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ligne-fournisseur .qui > div { display: grid; min-width: 0; }
.ligne-fournisseur b { font-family: var(--display); font-size: 16px; }
.ligne-fournisseur .sous {
  font-size: 11.5px; margin: 0; color: var(--gris);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ligne-fournisseur form { margin: 0; }

/* ── restes de l'ancienne page d'accueil ─────────────────────── */

.heros { padding: 34px 0 30px; text-align: center; }
.heros h1 { font-family: var(--display); font-size: clamp(38px, 5vw, 54px);
            line-height: 1.05; letter-spacing: -.012em; margin-bottom: 18px; }
.heros p { color: var(--gris); font-size: 15px; max-width: 620px; margin: 0 auto 26px; }
.heros .bouton { font-size: 16px; padding: 14px 30px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.trio .carte { margin-bottom: 16px; }

/* ── adaptations ─────────────────────────────────────────────── */

@media (max-width: 760px) {
  .obs .ligne { grid-template-columns: 1fr; gap: 8px; }
  main { padding: 30px 18px 60px; }
  header.top .in { padding: 12px 18px; min-height: 0; }
  nav.liens a, nav.liens button { padding: 7px 10px; font-size: 11px; }
}
@media (max-width: 520px) {
  .ligne-fournisseur { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: .001s !important;
  }
}

/* fournisseur relié, signalé dans la liste des comptes de l'admin */
.etiq.lie {
  margin-left: 6px; background: rgba(0,231,1,.1);
  color: var(--green); border-color: rgba(0,231,1,.25);
}

/* ── barre de session et onglets de période ──────────────────── */

.barre-session {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.barre-session .direct { margin: 0; }
.fin-session { display: flex; align-items: center; gap: 12px; }
.fin-session .message { margin: 0; min-height: 0; }

nav.periodes { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
nav.periodes a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gris);
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--trait); background: rgba(0,0,0,.3);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
nav.periodes a:hover { color: var(--txt); border-color: var(--trait-2); text-decoration: none; }
nav.periodes a.actif {
  color: var(--green); border-color: rgba(0,231,1,.35); background: rgba(0,231,1,.08);
}

.etiq.neutre {
  margin-left: 0; background: rgba(255,255,255,.05);
  color: var(--gris); border-color: var(--trait);
}
.etiq.lie { margin-left: 0; }

/* lien de service : présent, mais qui ne réclame pas l'attention */
.discret { text-align: center; margin-top: 18px; }
.discret a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sourd);
}
.discret a:hover { color: var(--gris); text-decoration: none; }

/* Clé d'overlay masquée par défaut : elle traîne dans chaque URL, et un
   partage d'écran suffirait à la livrer. Le flou reste sélectionnable au
   clavier mais illisible à l'œil et à la caméra. */
.obs .url.secrete { filter: blur(5px); user-select: none; transition: filter .25s var(--ease); }
.obs.nu .url.secrete { filter: none; user-select: text; }

/* ── bandeau de mise à jour ──────────────────────────────────── */
/* Rouge assumé : une extension périmée envoie des chiffres faux, ce n'est pas
   une suggestion. Il vit au-dessus de l'en-tête, donc sur toutes les pages. */
.bandeau-maj {
  position: relative; z-index: 11;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px clamp(18px, 3vw, 26px);
  background: linear-gradient(180deg, #3a1210, #2a0d0b);
  border-bottom: 1px solid rgba(255,90,70,.4);
  color: #ffd9d2; font-size: 13px; line-height: 1.5; text-decoration: none;
  transition: background .3s var(--ease);
}
.bandeau-maj:hover { background: linear-gradient(180deg, #46160f, #33100c); text-decoration: none; }
.bandeau-maj b { color: #fff; }
.bandeau-maj .fleche {
  margin-left: auto; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #ff8a70;
}
.pastille-maj {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #ff5a46; box-shadow: 0 0 12px #ff5a46;
  animation: battement 1.9s ease-in-out infinite;
}
@keyframes battement { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* La clé d'overlay est masquée partout où elle s'affiche : sur /compte comme
   dans les liens OBS. Copier ne demande pas de la révéler. */
.secret.secrete { filter: blur(7px); user-select: none; transition: filter .25s var(--ease); }
.secret.secrete.nu { filter: none; user-select: all; }
.actions-secret {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}

/* ── boîte de dialogue ───────────────────────────────────────── */
/* <dialog> natif : fond modal, Échap, piège au clavier et retour du focus
   sont gérés par le navigateur. On ne redessine que l'apparence. */

.sr-dialogue {
  border: 0; padding: 0; background: transparent;
  color: var(--txt);
  /* Centrage posé à la main : le « margin:auto » du navigateur ne survit pas
     toujours aux réinitialisations globales de marge. */
  position: fixed; inset: 0; margin: auto;
  width: min(440px, calc(100vw - 32px)); max-width: none;
  height: fit-content; max-height: calc(100vh - 32px);
}
.sr-dialogue::backdrop {
  background: rgba(4,5,7,.72);
  backdrop-filter: blur(6px);
  animation: srFond .3s var(--ease) both;
}
@keyframes srFond { from { opacity: 0; } }

.sr-boite {
  background: linear-gradient(180deg, #14171d, #0d0f14);
  border: 1px solid var(--trait-2);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 40px 90px -30px #000, inset 0 1px 0 rgba(255,255,255,.06);
  animation: srEntre .4s var(--ease) both;
}
@keyframes srEntre { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.sr-titre {
  font-family: var(--display); font-weight: 600; font-size: 24px;
  line-height: 1.15; letter-spacing: -.01em; margin-bottom: 10px;
}
.sr-dialogue.danger .sr-titre { color: var(--red); }
.sr-texte { color: var(--gris); font-size: 14px; }
.sr-detail { color: var(--sourd); font-size: 12.5px; margin-top: 10px; }

.sr-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 24px; flex-wrap: wrap;
}
.sr-actions button { flex: 0 0 auto; }

/* message fugace, en bas au centre : il informe sans rien bloquer */
.sr-message {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  transform: translate(-50%, 16px);
  padding: 12px 20px; border-radius: 100px;
  background: #14171d; border: 1px solid rgba(0,231,1,.35);
  color: var(--txt); font-size: 13px;
  box-shadow: 0 20px 50px -18px #000;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 32px);
}
.sr-message.vu { opacity: 1; transform: translate(-50%, 0); }
.sr-message.ko { border-color: rgba(255,77,77,.45); }

/* ── bascule de langue ───────────────────────────────────────── */
header.top .cote { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.langues { display: flex; align-items: center; gap: 2px; margin: 0; }
.langues button, .langues span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  padding: 6px 9px; border-radius: 100px; border: 1px solid transparent;
  background: transparent; color: var(--sourd); cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.langues button::after { content: none; }
.langues button:hover { color: var(--txt); border-color: var(--trait); box-shadow: none; transform: none; }
.langues span.actif { color: var(--txt); border-color: var(--trait); cursor: default; }

/* ── visite guidée ───────────────────────────────────────────── */
/* Le trou dans le voile est une ombre portée démesurée autour de la cible :
   pas de découpe SVG, pas de second calque, et le halo suit l'élément. */

body.visite-ouverte { overflow: hidden; }

.visite-voile {
  position: fixed; z-index: 300; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(4,5,7,.78), 0 0 0 1px rgba(0,231,1,.45),
              0 0 30px rgba(0,231,1,.25);
  pointer-events: none;
  transition: top .35s var(--ease), left .35s var(--ease),
              width .35s var(--ease), height .35s var(--ease);
}
/* Étape sans cible : le voile couvre tout, la bulle se centre. */
.visite-voile.plein {
  inset: 0; width: auto; height: auto; border-radius: 0;
  box-shadow: none; background: rgba(4,5,7,.78);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.visite-bulle {
  position: fixed; z-index: 301;
  width: min(370px, calc(100vw - 24px));
  background: linear-gradient(180deg, #14171d, #0d0f14);
  border: 1px solid var(--trait-2);
  border-radius: 16px; padding: 20px 22px 18px;
  box-shadow: 0 40px 90px -30px #000, inset 0 1px 0 rgba(255,255,255,.06);
  animation: visiteEntre .4s var(--ease) both;
}
.visite-bulle.centre {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(430px, calc(100vw - 24px));
}
@keyframes visiteEntre { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.visite-bulle.centre { animation-name: visiteEntreCentre; }
@keyframes visiteEntreCentre {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.98); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.visite-compte {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: var(--sourd); margin-bottom: 8px;
}
.visite-titre {
  font-family: var(--display); font-weight: 600; font-size: 21px;
  line-height: 1.15; letter-spacing: -.01em; margin-bottom: 8px;
}
.visite-texte { color: var(--gris); font-size: 13.5px; }
.visite-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 20px; flex-wrap: wrap;
}
.visite-droite { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .visite-voile { transition: none; }
}
