/* The OT War — landing. Direction : nuit industrielle, orange incandescent, typographie large. Mobile d'abord. */
/* Deux thèmes. Les couleurs ne sont jamais écrites en dur ailleurs : tout passe par ces jetons,
   pour qu'un seul bloc suffise à basculer l'application entière. `--surface-*` sont les reliefs
   posés sur le fond, `--sunken-*` les creux (champs, panneaux enfoncés). */
:root {
  --bg: #0b0f1a; --bg-2: #121829; --bg-3: #1a2236; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --surface-1: rgba(255,255,255,.035); --surface-2: rgba(255,255,255,.06); --surface-3: rgba(255,255,255,.1);
  --sunken: rgba(0,0,0,.28); --sunken-2: rgba(0,0,0,.45); --shadow: rgba(0,0,0,.5);
  /* Voiles posés sur les photos. En sombre ils assombrissent, en clair ils éclaircissent. */
  --voile: rgba(11,15,26,.82); --voile-fort: rgba(11,15,26,.96); --voile-doux: rgba(11,15,26,.55);
  --voile-tuile-haut: rgba(11,15,26,.05); --voile-tuile-bas: rgba(11,15,26,.92);
  --carte: rgba(18,24,41,.7);
  --on-accent: #140a02;
  --accent-soft: rgba(255,122,26,.12); --accent-line: rgba(255,122,26,.45);
  --good-soft: rgba(46,213,138,.12); --good-line: rgba(46,213,138,.45); --bad-soft: rgba(255,77,87,.12); --bad-line: rgba(255,77,87,.45);
  --text: #eef1f7; --muted: #9aa5c0; --accent: #ff7a1a; --accent-2: #ffb35c; --blue: #4c8dff; --green: #2ed58a; --red: #ff4d57;
  --display: "Sora", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1180px; --r: 18px;
}

/* Thème clair. `--accent-2` sert au texte et aux liens : en clair il doit être plus SOMBRE que
   `--accent`, l'inverse du thème sombre, sinon les liens deviennent illisibles sur blanc. */
:root[data-theme="clair"] {
  --bg: #f4f6fb; --bg-2: #ffffff; --bg-3: #eaeef7; --line: rgba(16,21,42,.1); --line-2: rgba(16,21,42,.18);
  --surface-1: rgba(16,21,42,.03); --surface-2: rgba(16,21,42,.055); --surface-3: rgba(16,21,42,.09);
  --sunken: #ffffff; --sunken-2: rgba(16,21,42,.05); --shadow: rgba(16,21,42,.12);
  --voile: rgba(244,246,251,.88); --voile-fort: rgba(244,246,251,.97); --voile-doux: rgba(244,246,251,.8);
  --voile-tuile-haut: rgba(244,246,251,.1); --voile-tuile-bas: rgba(244,246,251,.94);
  --carte: rgba(255,255,255,.82);
  --on-accent: #ffffff;
  --accent-soft: rgba(226,98,10,.08); --accent-line: rgba(226,98,10,.4);
  --good-soft: rgba(13,122,76,.08); --good-line: rgba(13,122,76,.4); --bad-soft: rgba(198,38,51,.07); --bad-line: rgba(198,38,51,.4);
  --text: #10152a; --muted: #566080; --accent: #e2620a; --accent-2: #a8420a; --blue: #2456b8; --green: #0d7a4c; --red: #c62633;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-2); }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .4em; }
h1 { font-size: clamp(2.5rem, 7.2vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 22px; } }
.muted { color: var(--muted); }
.glow { background: linear-gradient(92deg, #ffb35c, #ff7a1a 55%, #ff4d57); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 760px; }
section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- barre ---- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: var(--voile); backdrop-filter: blur(12px); border-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { font-family: var(--display); font-weight: 800; letter-spacing: .06em; text-decoration: none; color: var(--text); font-size: .95rem; }
.brand b { color: var(--accent); }
.topbar nav { margin-left: auto; display: none; gap: 22px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; }
.topbar nav a:hover { color: var(--text); }
@media (min-width: 960px) { .topbar nav { display: flex; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: var(--line); }
.btn.primary { background: linear-gradient(95deg, #ff8a2a, #ff6a00); color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 30px rgba(255,122,26,.35); }
.btn.primary:hover { box-shadow: 0 14px 40px rgba(255,122,26,.5); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: .9rem; margin-left: auto; }
@media (min-width: 960px) { .btn.small { margin-left: 0; } }

/* ---- hero ---- */
.hero { padding: 132px 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 520px at 12% 20%, var(--accent-soft), transparent 65%); }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
.hero .lead { margin-bottom: 30px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.device { position: relative; margin: 0; border-radius: 18px; padding: 8px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 70px var(--shadow); }
.device img { border-radius: 12px; }

/* ---- principe : trois étapes ---- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { padding: 26px 24px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.step .num { font-family: var(--display); font-size: 1.1rem; font-weight: 800; color: var(--accent-2); margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .step, .band .plan { background: var(--bg); }

/* ---- secteurs : grille photo compacte ---- */
.sectors { display: grid; gap: 12px; margin-top: 36px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .sectors { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tile { position: relative; min-height: 120px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); text-decoration: none; color: var(--text); display: block; }
@media (min-width: 800px) { .tile { min-height: 150px; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.tile .veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--voile-tuile-haut) 10%, var(--voile-tuile-bas) 92%); }
.tile .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; }
.tile .tag { display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }
.tile h3 { font-size: 1rem; margin: 0; line-height: 1.2; }
.demo-tile { border-color: var(--accent-line); }
.demo-tile:hover img { filter: saturate(1); }

/* ---- MITRE ---- */
.tables { display: grid; gap: 16px; }
@media (min-width: 1000px) { .tables { grid-template-columns: 1.1fr .9fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--sunken); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { text-align: left; padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
th { border-top: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--surface-1); }
td .game { color: var(--text); font-weight: 700; }
td code { font-family: var(--mono); font-size: .8rem; color: var(--accent-2); background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.3); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---- pied ---- */
.credit { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 26px; background: #fff; color: #111; border-radius: var(--r); justify-self: center; }
.credit img { height: 48px; width: auto; }
.credit a { display: inline-block; border-radius: 8px; padding: 2px 6px; }
.credit a:hover { box-shadow: 0 0 0 2px rgba(10,102,194,.35); }
.photo-credits { font-size: .74rem; color: var(--muted); columns: 1; column-gap: 24px; max-width: 980px; justify-self: center; }
@media (min-width: 800px) { .photo-credits { columns: 2; } }
.photo-credits p { margin: 0 0 4px; break-inside: avoid; }

/* ---- Tarifs ---- */
.plans { display: grid; gap: 18px; margin-top: 40px; align-items: stretch; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.plan.featured { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--bg-2) 45%); box-shadow: 0 24px 60px var(--accent-soft); }
.ribbon { position: absolute; top: -12px; left: 22px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 5px 10px; border-radius: 999px; font-weight: 700; }
.plan-head h3 { font-size: 1.15rem; margin-bottom: 8px; }
.price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.per { color: var(--muted); font-size: .85rem; margin-top: 6px; min-height: 2.6em; }
.plan-for { color: var(--text); font-size: .93rem; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 22px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan .btn { margin-top: auto; }
/* ---- Dépassements et paiement ---- */
.seats { display: grid; gap: 8px; }
.seats label { font-size: .85rem; color: var(--muted); }
.seats-row { display: flex; gap: 6px; }
.seats-row button { width: 48px; height: 48px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 20px; font-weight: 700; }
.seats-row input { flex: 1; min-width: 0; height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: 700 1.2rem var(--display); text-align: center; }
.seats-row input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.total { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.total small { font-family: var(--body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.pay-note { margin: 0; font-size: .76rem; color: var(--muted); }
.pay-fallback { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bad-soft); border: 1px solid var(--bad-line); font-size: .84rem; }
.pay-fallback a { color: var(--accent-2); }
/* ---- page merci ---- */
.merci { min-height: 100svh; display: flex; align-items: center; padding: 100px 0 60px; }
.merci .card { max-width: 640px; margin: 0 auto; padding: 34px 30px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px var(--shadow); }
.merci .ok { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(46,213,138,.15); color: var(--green); font-size: 30px; margin-bottom: 16px; }
.merci dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; font-size: .95rem; }
.merci dt { color: var(--muted); }
.merci dd { margin: 0; font-weight: 600; }

/* ---- Formules : cartes courtes, détail au clic ---- */
.plan-top { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; flex: none; }
.plan-top li { position: relative; padding-left: 22px; color: var(--text); font-size: .93rem; }
.plan-top li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
details { border-radius: 12px; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent-2); padding: 8px 0; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; transition: transform .2s; }
details[open] > summary::before { content: "−"; }
.trust-line { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
/* ---- Confiance et FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { margin-bottom: 24px; }
.faq h3 { margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--line); border-radius: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--text); padding: 14px 0; }
.faq summary::before { border-color: var(--line-2); color: var(--accent-2); }
.faq p { margin: 0 0 14px 36px; color: var(--muted); font-size: .95rem; }

/* ---- Appel final ---- */
.final { padding-top: 0; }
.cta-box { display: grid; gap: 22px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); }
@media (min-width: 900px) { .cta-box { grid-template-columns: 1.4fr auto; } }
.cta-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.cta-box p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---- Pied de site : une marque, les liens légaux, un contact ---- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 0; }
.foot-main { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 900px) { .foot-main { grid-template-columns: 1.4fr 1.6fr auto; align-items: start; gap: 40px; } }
.foot-brand p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; max-width: 40ch; }
.foot-brand .foot-credit { margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .92rem; display: inline-flex; align-items: center; min-height: 44px; }
.foot-links a:hover { color: var(--text); }
.foot-contact .btn { margin: 0; }
.foot-contact { display: grid; gap: 8px; justify-items: start; font-size: .88rem; color: var(--muted); }
.foot-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
@media (min-width: 900px) { .foot-bottom { flex-direction: row; justify-content: space-between; gap: 24px; } }

/* ---- Commander : un formulaire, envoyé au serveur ---- */
.order-wrap { display: grid; gap: 32px; }
@media (min-width: 1000px) { .order-wrap { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } }
.order-form { display: grid; gap: 16px; grid-template-columns: 1fr; padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2); }
@media (min-width: 640px) { .order-form { grid-template-columns: 1fr 1fr; } }
.order-form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field label .muted { font-weight: 400; }
.order-form input:not([type=number]), .order-form select, .order-form textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
.order-form textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.seats-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.seats-line .seats-row { flex: 0 1 220px; }
.order-send { display: grid; gap: 12px; justify-items: start; }
.form-msg { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; border: 1px solid var(--line-2); background: var(--surface-1); }
.form-msg.good { background: var(--good-soft); border-color: var(--good-line); }
.form-msg.bad { background: var(--bad-soft); border-color: var(--bad-line); }
/* Le pot de miel : invisible pour les personnes, rempli par les robots. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- Pages légales et crédits ---- */
.legal { padding: 110px 0 60px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: .97rem; line-height: 1.6; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-2); }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 18px; margin: 12px 0; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 220px 1fr; } }
.legal dt { color: var(--muted); font-size: .85rem; }
.legal dd { margin: 0 0 8px; color: var(--text); }
.legal table { min-width: 0; font-size: .9rem; margin: 12px 0; }
.legal .table-wrap, .legal table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal th, .legal td { padding: 10px 12px; }
.todo { color: #ffb4b6; background: rgba(255,77,87,.12); border: 1px dashed rgba(255,77,87,.5); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.credits-list li { margin-bottom: 8px; }

/* ---- En-tête : connexion + démo ---- */
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (min-width: 960px) { .topbar-actions { margin-left: 0; } }
.btn.ghost { background: transparent; border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { margin-left: 0; }
@media (max-width: 420px) { .btn.ghost.small { padding: 0 12px; } .btn.primary.small { padding: 0 12px; } }
/* ---- Connexion ---- */
.login .wrap { max-width: 520px; }
.login-card { padding: 32px 30px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px var(--shadow); }
.login-card h1 { font-size: 2rem; }
.login-card form { display: grid; gap: 8px; margin-top: 18px; }
.login-card label { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.login-card input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
.login-card input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.login-card .btn { margin-top: 12px; }
.login-alt { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }

/* ---- Espace client ---- */
.space { padding: 100px 0 60px; }
.space-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.space-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.space-actions { display: flex; gap: 10px; }
.upsell { padding: 14px 18px; border-radius: 12px; background: rgba(255,122,26,.1); border: 1px solid rgba(255,122,26,.35); color: var(--muted); font-size: .93rem; margin-bottom: 20px; }
.upsell b { color: var(--accent-2); }
.panel { padding: 24px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 18px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.panel h2 { font-size: 1.3rem; margin: 0; }
.panel h3 { font-size: 1rem; margin: 22px 0 10px; color: var(--accent-2); }
.sectors-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sector-card { padding: 16px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.sector-card.locked { opacity: .55; }
.sector-card.done { border-color: rgba(46,213,138,.45); }
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sector-card h4 { margin: 0; font-size: .98rem; }
.sc-state { font-size: .84rem; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar.good span { background: var(--green); } .bar.warn span { background: #f5c542; } .bar.bad span { background: var(--red); } .bar.idle span { background: var(--muted); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { padding: 16px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); }
.kpi .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--display); font-size: 1.9rem; font-weight: 800; margin: 4px 0; }
.kpi .muted { font-size: .82rem; }
.dist { display: grid; gap: 8px; }
.dist-row { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; font-size: .88rem; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); }
.tag.good { background: rgba(46,213,138,.16); color: var(--green); }
.tag.warn { background: rgba(245,197,66,.16); color: #f5c542; }
.tag.bad { background: rgba(255,77,87,.16); color: #ff8a8e; }
.tag.idle { background: var(--surface-2); color: var(--muted); }
.flags, .risk { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.flags b { color: var(--accent-2); }
table.members { width: 100%; font-size: .9rem; min-width: 620px; }
table.members td { vertical-align: middle; }
table.members tr.off { opacity: .5; }
.flagcount { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,77,87,.18); color: #ff8a8e; font-weight: 700; font-size: .8rem; }
.invite-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.invite-row input { flex: 1; min-width: 220px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
#invite-result ul { margin: 8px 0 0; padding-left: 18px; }
#invite-result code { font-family: var(--mono); font-size: .76rem; color: var(--accent-2); word-break: break-all; }
.onboarding form { display: grid; gap: 8px; max-width: 460px; margin-top: 14px; }
.onboarding label { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.onboarding input, .onboarding select { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
.onboarding .btn { margin-top: 14px; justify-self: start; }
.back-to-game { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: .88rem; color: var(--muted); }
.back-to-game a { color: var(--accent-2); }

/* ---- Ajouter vos équipes : onglets, import, connecteurs ---- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: .88rem; }
.tab.on { background: rgba(255,122,26,.16); border-color: rgba(255,122,26,.5); color: var(--accent-2); }
.tabpane { display: none; }
.tabpane.on { display: block; }
.drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; margin-bottom: 10px; }
#paste { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font-family: var(--mono); font-size: .82rem; }
.opts { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0; font-size: .9rem; color: var(--muted); }
.opts label { display: flex; align-items: center; gap: 8px; }
.report { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--line); font-size: .9rem; line-height: 1.5; }
.report.good { background: rgba(46,213,138,.1); border-color: rgba(46,213,138,.4); }
.report.bad { background: rgba(255,77,87,.1); border-color: rgba(255,77,87,.4); color: #ff8a8e; }
.report b { color: var(--text); }

/* Volet « Mon compte » : une fiche de faits, puis des formulaires courts. Aucune couleur en dur,
   tout passe par les jetons — la fiche se lit pareil en clair et en sombre. */
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 14px; align-items: baseline; }
.fiche dt { font-size: .85rem; color: var(--muted); }
.fiche dd { margin: 0; }
.fiche dd .btn.small { margin-left: 8px; }
.form-inline { display: flex; flex-direction: column; gap: 4px; max-width: 460px; }
.form-inline label { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.form-inline input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
.form-inline input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-inline button { margin-top: 14px; align-self: flex-start; }
@media (max-width: 520px) {
  .fiche { grid-template-columns: 1fr; gap: 2px 0; }
  .fiche dd { margin-bottom: 10px; }
}
form.conn { display: grid; gap: 10px; max-width: 560px; }
form.conn label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
form.conn label.check { display: flex; align-items: center; gap: 8px; }
form.conn input[type=text], form.conn input[type=password], form.conn input:not([type]) { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
.steps-list { color: var(--muted); font-size: .92rem; padding-left: 20px; }
.cmd { margin: 6px 0; padding: 10px 12px; border-radius: 8px; background: var(--sunken-2); color: var(--accent-2); font-family: var(--mono); font-size: .78rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.agents { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: .9rem; }
.agents li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); }
.invite-link { font-family: var(--mono); font-size: .72rem; color: var(--accent-2); word-break: break-all; }
.small { font-size: .82rem; }
.sector-card .level-list summary { font-size: .82rem; padding: 6px 0; }
.sector-card .level-list ol { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 7px; font-size: .82rem; }
.sector-card .level-list li { color: var(--muted); line-height: 1.35; }
.sector-card .level-list li.done { color: var(--green); }
.sector-card .level-list li.done b::after { content: ' ✓'; }
.sector-card .level-list li.shut { opacity: .5; }
.sector-card .level-list li b { color: var(--text); font-weight: 600; }
.sector-card .level-list li.shut b { color: var(--muted); }
.mitre code { font-family: var(--mono); font-size: .66rem; color: var(--accent-2); background: rgba(255,122,26,.1); border: 1px solid rgba(255,122,26,.25); padding: 0 4px; border-radius: 4px; margin-right: 2px; }

/* ---- Test des scénarios (administration) ---- */
.scenarios { display: grid; gap: 16px; }
@media (min-width: 1000px) { .scenarios { grid-template-columns: repeat(2, 1fr); } }
.scen-sector { padding: 16px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); }
.scen-sector h3 { margin: 0 0 10px; font-size: 1rem; color: var(--text); }
.scen-sector ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scen-sector li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; font-size: .86rem; }
.scen-play { grid-row: span 2; display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; background: rgba(255,122,26,.14); border: 1px solid rgba(255,122,26,.45); color: var(--accent-2); text-decoration: none; font-weight: 700; font-size: .8rem; }
.scen-play:hover { background: var(--accent); color: var(--on-accent); }
.scen-name { line-height: 1.35; }
.scen-sector .mitre { grid-column: 2; }
.scen-sector .mitre code.ics { color: var(--blue); background: rgba(76,141,255,.1); border-color: rgba(76,141,255,.3); }

/* ---- Suppressions dans le back-office : bouton rouge, liste dépliable, confirmation écrite ---- */
.btn.danger { background: rgba(255,77,87,.14); border-color: rgba(255,77,87,.4); color: #ff8a8e; }
.btn.danger:hover { background: rgba(255,77,87,.24); border-color: var(--red); color: #fff; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.linky { background: none; border: 0; color: var(--accent-2); font: inherit; cursor: pointer; padding: 0; text-decoration: underline dotted; }
.members-box { padding: 10px 0 4px; }
table.members.inner { min-width: 540px; font-size: .85rem; background: var(--sunken); border-radius: 10px; }
table.members.inner th { color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.confirm-dialog { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--text); max-width: 520px; width: calc(100% - 32px); padding: 0; }
.confirm-dialog::backdrop { background: rgba(4,7,14,.72); backdrop-filter: blur(3px); }
.confirm { padding: 24px; display: grid; gap: 10px; }
.confirm h3 { margin: 0; font-size: 1.25rem; }
.confirm-what { margin: 0; color: var(--text); }
.confirm-note, .confirm-warn { margin: 0; font-size: .88rem; padding: 10px 12px; border-radius: 10px; }
.confirm-note { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.confirm-warn { color: #ff8a8e; background: rgba(255,77,87,.1); border: 1px solid rgba(255,77,87,.3); }
.confirm-final { margin: 0; font-size: .82rem; color: var(--muted); }
.confirm-opt { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.confirm-typed { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.confirm-typed b { color: var(--accent-2); }
.confirm-typed input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.confirm-actions .btn { margin: 0; }
.confirm-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---- Ouvrir une organisation depuis l'administration ---- */
.onboard-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: end; margin-top: 14px; }
.onboard-form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.onboard-form label.wide { grid-column: 1 / -1; }
.onboard-form input, .onboard-form select, .onboard-form textarea { min-width: 0; width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; }
.onboard-form textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.onboard-form .muted { font-weight: 400; }
.onboard-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.onboard-actions .btn { margin: 0; }
#onboard-result { display: grid; gap: 10px; margin-top: 14px; }
#onboard-result:empty { display: none; }
.invite-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.invite-links li { padding: 10px 12px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); font-size: .88rem; }
.invite-link { font-family: var(--mono); font-size: .76rem; color: var(--accent-2); word-break: break-all; }

/* ---- Mot de passe : bouton « Afficher » et jauge de force ---- */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 92px; }
.password-reveal { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; }
.password-reveal:hover { color: var(--text); border-color: var(--accent); }
.password-reveal[aria-pressed="true"] { color: var(--accent-2); border-color: rgba(255,122,26,.5); }
.password-strength { margin: 8px 0 4px; display: grid; gap: 6px; }
.ps-bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ps-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--red); transition: width .2s ease, background .2s ease; }
.password-strength[data-note="2"] .ps-bar span { background: #f5c542; }
.password-strength[data-note="3"] .ps-bar span { background: var(--green); }
.password-strength[data-note="4"] .ps-bar span { background: var(--green); }
.ps-text { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.password-strength[data-note="0"] .ps-text, .password-strength[data-note="1"] .ps-text { color: #ff8a8e; }

/* ---- Pastille de rôle ---- */
.role-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.role-pill.owner { background: rgba(255,122,26,.16); color: var(--accent-2); border: 1px solid rgba(255,122,26,.4); }
.role-pill.admin { background: rgba(76,141,255,.16); color: #9dc0ff; border: 1px solid rgba(76,141,255,.4); }
.role-pill.player { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.inv-role { margin: 0 0 14px; }
.inv-role .role-pill { font-size: .8rem; padding: 5px 14px; }

/* ---- Bouton de bascule clair / sombre ---- */
.theme-toggle { width: 44px; height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 1rem; line-height: 1; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---- Histogramme d'activité, sans bibliothèque ---- */
.histo { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin: 16px 0 4px; padding: 0 2px; }
.histo-bar { flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(255,122,26,.35)); }
.histo-axe { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); font-family: var(--mono); margin-bottom: 14px; }
.facture-statut { height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--sunken); color: var(--text); font: inherit; font-size: .85rem; }

/* ---- Tableaux de bord : navigation de premier niveau et périmètre ---- */
.dash-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 22px; padding: 5px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--line); }
.dash-nav button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.dash-nav button:hover { color: var(--text); }
.dash-nav button.on { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 3px var(--shadow); }
.dash-nav .nav-mark { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.dash-nav button.on .nav-mark { background: rgba(255,122,26,.16); color: var(--accent-2); }
.dashpane { display: none; }
.dashpane.on { display: block; }

/* Le bandeau qui dit, en une phrase, ce que cet espace permet et ce qu'il ne permet pas. */
.dash-scope { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 22px; padding: 14px 18px; border-radius: var(--r); background: var(--surface-1); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.dash-scope .scope-quoi { font-size: .92rem; line-height: 1.5; margin: 0; color: var(--muted); }
.dash-scope .scope-quoi b { color: var(--text); }
.dash-scope .scope-quoi a { color: var(--accent-2); }
.space-head .head-pills { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.role-pill.plateforme { background: rgba(155,89,182,.16); color: #c99ae0; border: 1px solid rgba(155,89,182,.45); }
:root[data-theme="clair"] .role-pill.plateforme { background: rgba(112,52,145,.1); color: #6b2f8c; border-color: rgba(112,52,145,.35); }

/* ---- Vérifier puis inviter : le bouton dit pourquoi il attend ---- */
.apply-why { margin: 8px 0 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.apply-why.ok { color: var(--green); font-weight: 600; }
.report .accepte { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }

/* ---- Un bouton désactivé doit se voir ----
   Il l'était déjà pour le navigateur — le clic ne partait pas — mais il gardait son dégradé, sa
   lueur et son effet de survol : rien ne disait qu'il attendait quelque chose. */
.btn[disabled], .btn:disabled, button[disabled]:not(.tab):not(.theme-toggle) {
  opacity: .5; filter: grayscale(.55); box-shadow: none; cursor: not-allowed; transform: none;
}
.btn[disabled]:hover, .btn:disabled:hover, button[disabled]:not(.tab):not(.theme-toggle):hover {
  transform: none; box-shadow: none; background: var(--surface-2); border-color: var(--line-2);
}
.btn.primary[disabled], .btn.primary:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line-2); }
.btn.primary[disabled]:hover, .btn.primary:disabled:hover { background: var(--surface-2); }
.progcell { min-width: 150px; }
.progcell .bar { margin-bottom: 5px; }
.progcell .muted { font-size: .8rem; }

/* ---- Sélecteur de langue ---- */
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 11px; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-2); }
.lang-flag { font-size: 1.05rem; line-height: 1; }
@media (max-width: 520px) { .lang-code { display: none; } }

/* ---- En-tête sur téléphone : la marque sur une ligne, la démo reste dans la page ---- */
.brand { white-space: nowrap; }
@media (max-width: 560px) {
  .topbar .wrap { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn.primary.small { display: none; }
  .theme-toggle { width: 44px; }
  .lang-toggle { padding: 0 10px; }
}

/* Les ancres ne passent pas sous l’en-tête fixe. */
section[id], #contact { scroll-margin-top: 76px; }
.pay-fallback.ok { background: var(--good-soft); border-color: var(--good-line); }
