/* ==========================================================================
   BASE — variables, reset, typographie, utilitaires
   Breakpoints utilisés dans le projet :
     1080 / 1000 / 940 (menu burger) / 900 / 700 (carrousels + barre mobile) / 620 / 520 / 480 px
   ========================================================================== */

:root {
  /* Couleurs */
  --bg: #080B12;
  --bg2: #0C111B;
  --card: #111827;
  --card2: #162033;
  --line: #263449;
  --txt: #F5F7FA;
  --mut: #AAB6C8;
  --acc: #19D3A2;
  --acc2: #12A881;
  --blue: #6FA8FF;
  --gold: #FF9F43;
  --red: #FF5470;

  /* Typo */
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  /* Layout */
  --r: 18px;
  --nav-h: 68px;
}
@media (max-width: 480px) { :root { --nav-h: 58px; } }

/* Barres de défilement (page, modales, tableau…) aux couleurs du site */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--acc), var(--acc2));
  border-radius: 999px; border: 2px solid var(--bg2);
}
::-webkit-scrollbar-thumb:hover { background: var(--acc); box-shadow: 0 0 10px rgba(25,211,162,.5); }
::-webkit-scrollbar-corner { background: var(--bg2); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* Dans les blocs (modales, tableau, menu mobile), piste transparente et barre plus fine */
.panel::-webkit-scrollbar, .cmp-scroll::-webkit-scrollbar, .mnav-in::-webkit-scrollbar { width: 8px; height: 8px; }
.panel::-webkit-scrollbar-track, .cmp-scroll::-webkit-scrollbar-track, .mnav-in::-webkit-scrollbar-track { background: transparent; margin: 14px; }
/* Firefox (et navigateurs sans ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--acc) var(--bg2); }
}

/* Reset */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 4px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--txt);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* contrairement à hidden, ne casse pas la nav sticky */
}
body.no-scroll, body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select {
  font: inherit; color: var(--txt); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%; outline: none; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--acc); }
textarea { resize: vertical; min-height: 96px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* Typographie */
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.025em; }
h1 em {
  font-style: normal; color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--acc) 0%, #8CF0D6 25%, var(--acc) 50%, #8CF0D6 75%, var(--acc) 100%);
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; max-width: 760px; color: var(--txt); }
h3 { color: var(--txt); }
@media (max-width: 700px) { h2 { font-size: clamp(26px, 7.4vw, 34px); } }

/* Utilitaires */
.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.center { text-align: center; }
.center h2, .center .sub, .center-x { margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }

.kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.sub { color: var(--mut); font-size: 17px; max-width: 620px; margin-top: 12px; }
.note { font-size: 13px; color: var(--mut); margin-top: 8px; }
.note a { color: var(--blue); font-weight: 700; }
.disclaimer { font-size: 13px; color: #7F8BA0; margin-top: 14px; line-height: 1.5; }
.disclaimer::before { content: 'ⓘ '; color: var(--acc); }
.hint { font-size: 13px; color: var(--mut); background: rgba(111,168,255,.06); border: 1px solid rgba(111,168,255,.22); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 700px) { .sub { font-size: 16px; } }

/* Sections */
section { position: relative; padding: 64px 0; }
.alt { background: linear-gradient(180deg, transparent, rgba(17,24,39,.55) 20%, rgba(17,24,39,.55) 80%, transparent); }
@media (max-width: 700px) { section { padding: 48px 0; } }
