/* ═══════════════════════════════════════════════════════════════
   NiKilaWeb — style.css
   Design premium · futuriste · responsive
   01. Variables & reset        07. Sections & cartes
   02. Fond animé               08. Gaming / Entreprises
   03. Boutons & badges         09. Tarifs & hébergement
   04. Navigation               10. Devis (calculateur)
   05. Hero                     11. Contact / FAQ / Footer
   06. Marquee                  12. Reveal, responsive, a11y
   ═══════════════════════════════════════════════════════════════ */

/* ─── 01. VARIABLES & RESET ─────────────────────────────────── */
:root {
  --bg: #05070f;
  --bg2: #090d1a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --txt: #eef1fb;
  --muted: #98a2c3;

  --accent: #3b6cff;
  --accent-2: #8b5cf6;
  --cyan: #22d3ee;
  --magenta: #e879f9;

  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-neon: linear-gradient(135deg, var(--cyan), var(--magenta));

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 74px;

  --shadow-accent: 0 12px 40px -12px rgba(59, 108, 255, .45);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(59, 108, 255, .35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 8px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container.narrow { width: min(860px, 92%); }

.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

.grad {
  background: linear-gradient(120deg, #6f92ff, var(--accent-2), #6f92ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-move 6s linear infinite;
}
@keyframes grad-move { to { background-position: 200% center; } }

.neon-grad {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 10px; transition: top .25s;
}
.skip-link:focus { top: 12px; }

.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: var(--grad); z-index: 200;
  box-shadow: 0 0 12px rgba(139, 92, 246, .8);
}

/* ─── 02. FOND ANIMÉ ────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

.orb {
  position: fixed; z-index: -2; pointer-events: none;
  border-radius: 50%; filter: blur(110px); opacity: .5;
  animation: orb-float 18s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; top: -140px; left: -120px; background: rgba(59, 108, 255, .35); }
.orb-2 { width: 420px; height: 420px; top: 30%; right: -160px; background: rgba(139, 92, 246, .30); animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; bottom: -140px; left: 30%; background: rgba(34, 211, 238, .16); animation-delay: -12s; }

@keyframes orb-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 40px, 0) scale(1.12); }
}

#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ─── 03. BOUTONS & BADGES ──────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  letter-spacing: .01em; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.full { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -10px rgba(59, 108, 255, .6); }
.btn-primary:hover::after { left: 130%; }

.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--txt); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .6); background: var(--surface-2); box-shadow: 0 12px 32px -14px rgba(139, 92, 246, .4); }

.btn-neon {
  background: rgba(34, 211, 238, .08); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .45);
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, .5), inset 0 0 18px -10px rgba(34, 211, 238, .5);
}
.btn-neon:hover { transform: translateY(-3px); background: rgba(34, 211, 238, .14); box-shadow: 0 0 40px -6px rgba(34, 211, 238, .7); }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: .8rem; color: var(--muted);
  backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}

.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: .85rem;
  color: var(--accent); margin-bottom: 14px; letter-spacing: .02em;
}
.kicker.neon { color: var(--cyan); }

/* ─── 04. NAVIGATION ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 15, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }

.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; display: inline-flex; align-items: center; gap: 8px; }
.logo-code {
  font-family: var(--font-mono); font-size: .95rem; font-weight: 500;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative; font-size: .93rem; color: var(--muted);
  padding: 6px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--txt); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: .82rem;
  transition: border-color .25s, background .25s;
}
.lang-btn:hover { border-color: rgba(139, 92, 246, .6); background: var(--surface-2); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn .chev { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.lang.open .lang-btn .chev { transform: rotate(180deg); }

.lang-list {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 176px;
  background: rgba(10, 14, 26, .95); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 8px;
  backdrop-filter: blur(16px); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.lang.open .lang-list { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: .9rem; transition: background .2s;
}
.lang-list li:hover { background: rgba(59, 108, 255, .14); }
.lang-list li[aria-selected="true"] { background: rgba(59, 108, 255, .2); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--txt); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 6px;
  padding: 18px 5%; border-top: 1px solid var(--line);
  background: rgba(5, 7, 15, .97); backdrop-filter: blur(16px);
  max-height: 0; overflow: hidden; transition: max-height .45s var(--ease), padding .45s;
  padding-top: 0; padding-bottom: 0;
}
.mobile-menu.open { max-height: 480px; padding-top: 18px; padding-bottom: 22px; }
.mobile-menu a { padding: 11px 4px; font-size: 1rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: none; margin-top: 8px; color: #fff; }

/* ─── 05. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 90px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}
.hero-copy .badge { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 36px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .85rem; color: var(--muted); }

/* Fenêtre de code */
.hero-visual { position: relative; }
.code-window {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(9, 13, 26, .85);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(59, 108, 255, .35);
  backdrop-filter: blur(12px);
  transition: transform .2s ease-out;
}
.cw-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.cw-title { margin-left: 10px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }

.cw-body {
  padding: 26px 24px; font-family: var(--font-mono);
  font-size: .88rem; line-height: 1.8; overflow-x: auto;
}
.c-kw { color: #c792ea; } .c-var { color: #82aaff; } .c-key { color: #7dd3fc; }
.c-str { color: #a5e6a1; } .c-num { color: #f7b573; } .c-bool { color: #f07178; }
.c-fn { color: #ffcb6b; } .c-cm { color: #5a678c; }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Puces flottantes */
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(10, 14, 26, .9); border: 1px solid var(--line-2);
  font-size: .8rem; font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .8);
  animation: chip-float 6s ease-in-out infinite;
}
.chip svg { width: 15px; height: 15px; color: var(--accent); }
.chip-1 { top: -22px; right: 8%; animation-delay: 0s; }
.chip-1 svg { color: #f7b573; }
.chip-2 { bottom: 16%; left: -34px; animation-delay: -2s; }
.chip-2 svg { color: var(--cyan); }
.chip-3 { bottom: -20px; right: 14%; animation-delay: -4s; }
.chip-3 svg { color: var(--accent-2); }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: .74rem; color: var(--muted);
  transition: color .25s;
}
.scroll-hint svg { width: 17px; height: 17px; animation: hint 1.8s ease-in-out infinite; }
.scroll-hint:hover { color: var(--txt); }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ─── 06. MARQUEE ───────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0; overflow: hidden;
  background: rgba(255, 255, 255, .015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span {
  font-family: var(--font-mono); font-size: .86rem; color: var(--muted);
  white-space: nowrap; position: relative;
}
.marquee-track span::after { content: "·"; position: absolute; right: -32px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── 07. SECTIONS & CARTES ─────────────────────────────────── */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .lead { margin: 16px auto 0; }

.grid { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; padding: 34px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 108, 255, .12), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(59, 108, 255, .45); box-shadow: 0 26px 60px -24px rgba(59, 108, 255, .4); }
.card:hover::before { opacity: 1; }

.icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(59, 108, 255, .18), rgba(139, 92, 246, .18));
  border: 1px solid rgba(139, 92, 246, .3);
}
.icon svg { width: 24px; height: 24px; color: #a5b8ff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Offres */
.offers { grid-template-columns: repeat(4, 1fr); }
.offer {
  position: relative; padding: 28px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.offer:hover { transform: translateY(-8px); border-color: rgba(139, 92, 246, .5); box-shadow: 0 24px 56px -24px rgba(139, 92, 246, .45); }
.offer .icon { width: 46px; height: 46px; margin-bottom: 16px; }
.offer .icon svg { width: 21px; height: 21px; }
.offer h3 { font-size: 1.08rem; margin-bottom: 8px; }
.offer p { color: var(--muted); font-size: .88rem; flex: 1; }
.from { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.from b { color: var(--txt); font-family: var(--font-display); font-size: 1.02rem; margin-left: 4px; }

/* ─── 08. GAMING & ENTREPRISES ──────────────────────────────── */
.gaming-panel {
  position: relative; border-radius: 26px; padding: 64px 54px;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(34, 211, 238, .1), transparent 55%),
    radial-gradient(600px circle at 85% 80%, rgba(232, 121, 249, .09), transparent 55%),
    rgba(8, 11, 22, .85);
  border: 1px solid rgba(34, 211, 238, .22);
  box-shadow: 0 0 90px -40px rgba(34, 211, 238, .5), inset 0 0 120px -60px rgba(34, 211, 238, .18);
  overflow: hidden;
}
.gaming-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.gaming-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.gaming-copy h2 { margin-bottom: 16px; }
.gaming-copy .lead { margin-bottom: 30px; }
.gaming-copy .btn-neon { margin-top: 32px; }

.checks { display: flex; flex-direction: column; gap: 18px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--cyan); margin-top: 2px; }
#pro .checks svg { color: var(--accent); }
.checks b { display: block; font-family: var(--font-display); font-size: 1rem; }
.checks span { color: var(--muted); font-size: .9rem; }

/* Faux tableau de bord serveur */
.dash {
  border-radius: var(--radius); padding: 24px;
  background: rgba(5, 8, 16, .9);
  border: 1px solid rgba(34, 211, 238, .3);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85), 0 0 50px -20px rgba(34, 211, 238, .4);
  font-family: var(--font-mono);
  transition: transform .2s ease-out;
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--cyan); letter-spacing: .08em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
.dash-title { font-size: .78rem; color: var(--muted); }

.dash-row { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 8px; }
.dash-label { color: var(--muted); }
.dash-val { color: var(--txt); }
.dash-val.up { color: #4ade80; }

.bar { height: 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); margin-bottom: 20px; overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: 0 0 12px rgba(34, 211, 238, .6);
  transition: width 1.4s var(--ease) .3s;
}
.bar-fill.alt { background: linear-gradient(90deg, var(--accent-2), var(--magenta)); box-shadow: 0 0 12px rgba(232, 121, 249, .5); }
.visible .bar-fill, .dash.animated .bar-fill { width: var(--w); }

.dash-foot { display: flex; gap: 10px; margin-top: 4px; }
.tagm {
  font-size: .68rem; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .3); color: var(--cyan);
  background: rgba(34, 211, 238, .06);
}

/* Entreprises */
.pro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.pro-copy .checks { margin-bottom: 34px; }
.pro-copy h2 { margin-bottom: 16px; }
.pro-copy .lead { margin-bottom: 30px; }

.browser {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(9, 13, 26, .85);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 70px -30px rgba(139, 92, 246, .35);
  transition: transform .2s ease-out;
}
.br-head { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.br-url {
  flex: 1; margin-left: 12px; padding: 6px 14px;
  background: rgba(255, 255, 255, .05); border-radius: 8px;
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
}
.br-body { padding: 28px; }
.sk { background: rgba(255, 255, 255, .07); border-radius: 8px; animation: shimmer 2.4s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.sk-nav { height: 12px; width: 45%; margin-bottom: 26px; }
.sk-title { height: 26px; width: 70%; margin-bottom: 14px; background: linear-gradient(90deg, rgba(59,108,255,.35), rgba(139,92,246,.35)); }
.sk-line { height: 10px; width: 90%; margin-bottom: 10px; }
.sk-line.short { width: 62%; margin-bottom: 24px; }
.sk-btns { display: flex; gap: 12px; margin-bottom: 26px; }
.sk-btn { height: 34px; width: 120px; border-radius: 999px; }
.sk-btn.accent { background: var(--grad); opacity: .85; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk-card { height: 74px; }

/* Fonctionnalités */
.feats { grid-template-columns: repeat(4, 1fr); }
.feat {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.feat:hover { transform: translateY(-5px); border-color: rgba(59, 108, 255, .4); background: var(--surface-2); }
.feat svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.feat h4 { margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: .84rem; line-height: 1.5; }

/* ─── 09. TARIFS & HÉBERGEMENT ──────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }

.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 32px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.price-card:hover { transform: translateY(-8px); border-color: rgba(59, 108, 255, .45); }

.price-card.featured {
  background: linear-gradient(180deg, rgba(59, 108, 255, .12), rgba(139, 92, 246, .06));
  border-color: rgba(59, 108, 255, .55);
  box-shadow: 0 30px 80px -30px rgba(59, 108, 255, .55);
}
.price-card.featured:hover { transform: translateY(-10px) scale(1.01); }

.tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 18px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  box-shadow: var(--shadow-accent);
}

.price-card h3 { font-size: 1.15rem; color: var(--muted); margin-bottom: 10px; }
.price {
  font-family: var(--font-display); font-size: 2.7rem; font-weight: 700;
  margin-bottom: 8px;
}
.unit { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price-tag { color: var(--muted); font-size: .9rem; margin-bottom: 26px; }

.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.price-card li { position: relative; padding-left: 28px; font-size: .92rem; color: #c6cdea; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.price-card.featured li::before { color: var(--accent-2); }

.price-example {
  text-align: center; margin-top: 34px;
  font-family: var(--font-mono); font-size: .86rem; color: var(--muted);
}

/* Hébergement */
.hosting {
  margin-top: 64px; border-radius: 22px; padding: 44px 46px;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 44px; align-items: center;
  background: linear-gradient(120deg, rgba(59, 108, 255, .1), rgba(139, 92, 246, .07));
  border: 1px solid rgba(59, 108, 255, .3);
}
.hosting h3 { font-size: 1.45rem; margin-bottom: 12px; }
.hosting-copy > p { color: var(--muted); margin-bottom: 22px; max-width: 60ch; }
.hosting-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.hosting-list li { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.hosting-list svg { width: 17px; height: 17px; color: var(--cyan); flex-shrink: 0; }

.hosting-price {
  text-align: center; padding: 30px 22px; border-radius: var(--radius);
  background: rgba(5, 7, 15, .6); border: 1px solid var(--line-2);
}
.hp-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-amount span { font-size: 1rem; -webkit-text-fill-color: var(--muted); margin-left: 4px; }
.hosting-price p { font-size: .82rem; color: var(--muted); margin-top: 8px; }

.tva { margin-top: 26px; text-align: center; font-size: .78rem; color: var(--muted); }

/* ─── 10. DEVIS (CALCULATEUR) ───────────────────────────────── */
.quote-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }

.calc {
  padding: 38px 34px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
  backdrop-filter: blur(8px);
}

.field label, .flabel {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; margin-bottom: 12px;
}
.field output { color: var(--accent); font-family: var(--font-mono); }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; appearance: none; padding: 14px 44px 14px 18px;
  background: rgba(5, 7, 15, .6); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); color: var(--txt);
  transition: border-color .25s, box-shadow .25s; cursor: pointer;
}
.select-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 108, 255, .2); }
.select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.select-wrap option { background: #0a0e1c; }

.pills { display: flex; gap: 10px; }
.pills.wrap { flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: rgba(5, 7, 15, .6); border: 1px solid var(--line-2);
  font-size: .86rem; color: var(--muted); cursor: pointer;
  transition: all .25s var(--ease);
}
.pill input:checked + span {
  background: linear-gradient(135deg, rgba(59, 108, 255, .25), rgba(139, 92, 246, .25));
  border-color: var(--accent); color: #fff;
  box-shadow: 0 0 20px -6px rgba(59, 108, 255, .5);
}
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill span:hover { border-color: rgba(139, 92, 246, .5); color: var(--txt); }

input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 7px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 15%), rgba(255, 255, 255, .1) var(--fill, 15%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 0 16px rgba(59, 108, 255, .7);
  transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
  box-shadow: 0 0 16px rgba(59, 108, 255, .7);
}

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: .93rem; }
.switch input { position: absolute; opacity: 0; }
.track {
  position: relative; width: 52px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2);
  transition: background .3s, border-color .3s;
}
.thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff;
  transition: transform .3s var(--ease);
}
.switch input:checked + .track { background: var(--grad); border-color: transparent; box-shadow: 0 0 18px -4px rgba(59, 108, 255, .6); }
.switch input:checked + .track .thumb { transform: translateX(24px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Récapitulatif */
.summary {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 38px 34px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(59, 108, 255, .14), rgba(139, 92, 246, .07));
  border: 1px solid rgba(59, 108, 255, .45);
  box-shadow: 0 30px 80px -30px rgba(59, 108, 255, .5);
}
.sum-label { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.sum-from { margin-top: 16px; font-size: .85rem; color: var(--muted); }
.sum-total {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.2; margin-bottom: 6px;
}
.sum-month { font-size: .95rem; color: var(--cyan); margin-bottom: 12px; }
.sum-break {
  margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 8px;
  font-size: .84rem; color: var(--muted); text-align: left;
}
.sum-break li { display: flex; justify-content: space-between; gap: 12px; }
.sum-break li b { color: var(--txt); font-weight: 500; white-space: nowrap; }
.sum-note { font-size: .78rem; color: var(--muted); margin: 16px 0 22px; }

/* ─── 11. CONTACT / FAQ / FOOTER ────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }

.contact-form {
  padding: 38px 34px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
  backdrop-filter: blur(8px);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 18px;
  background: rgba(5, 7, 15, .6); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); color: var(--txt);
  transition: border-color .25s, box-shadow .25s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(152, 162, 195, .5); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 108, 255, .2);
}
.form-note { font-size: .78rem; color: var(--muted); text-align: center; }
.form-status { font-size: .85rem; text-align: center; color: var(--cyan); margin-top: 4px; }
.form-status.is-error { color: #ff8fa3; }
.form-status[hidden] { display: none !important; }
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.contact-info {
  display: flex; flex-direction: column; gap: 18px;
  padding: 38px 34px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci svg {
  width: 40px; height: 40px; padding: 10px; flex-shrink: 0;
  border-radius: 12px; color: #a5b8ff;
  background: linear-gradient(135deg, rgba(59, 108, 255, .18), rgba(139, 92, 246, .18));
  border: 1px solid rgba(139, 92, 246, .3);
}
.ci b { display: block; font-family: var(--font-display); font-size: .95rem; }
.ci a, .ci span { color: var(--muted); font-size: .9rem; transition: color .25s; }
.ci a:hover { color: var(--accent); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.social {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(5, 7, 15, .6); border: 1px solid var(--line-2);
  font-size: .84rem; color: var(--muted);
  transition: all .25s var(--ease);
}
.social svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.social:hover { color: var(--txt); border-color: var(--accent); box-shadow: 0 0 16px -6px rgba(59, 108, 255, .5); }
.social:hover svg { transform: translate(2px, -2px); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s;
}
.faq-item.open { border-color: rgba(59, 108, 255, .45); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  transition: color .25s;
}
.faq-q:hover { color: #c3cdff; }
.faq-q svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--accent); transition: transform .35s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: .94rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: rgba(3, 5, 10, .6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 54px; }
.f-brand p { margin-top: 16px; color: var(--muted); font-size: .9rem; max-width: 34ch; }
.f-col { display: flex; flex-direction: column; gap: 11px; }
.f-col h4 { font-size: .92rem; margin-bottom: 6px; color: var(--txt); }
.f-col a { color: var(--muted); font-size: .88rem; width: fit-content; transition: color .25s, transform .25s; }
.f-col a:hover { color: var(--accent); transform: translateX(3px); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}

.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: var(--shadow-accent);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ─── SECTION LÉGALE (accordéons) ───────────────────────────── */
.legal-section .section-head { margin-bottom: 44px; }
.legal-block {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 16px; transition: border-color .3s;
}
.legal-block[open] { border-color: rgba(59, 108, 255, .45); }
.legal-block summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  transition: color .25s;
}
.legal-block summary::-webkit-details-marker { display: none; }
.legal-block summary:hover { color: #c3cdff; }
.legal-block summary svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); transition: transform .35s var(--ease); }
.legal-block[open] summary svg { transform: rotate(45deg); }
.legal-num { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); margin-right: 12px; }
.legal-body { padding: 0 26px 28px; }
.legal-body h3 { font-size: 1rem; margin: 20px 0 8px; color: #c3cdff; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .92rem; }
.legal-body strong { color: var(--txt); }
.legal-body ul { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ─── 12. REVEAL, RESPONSIVE & ACCESSIBILITÉ ────────────────── */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.visible) { opacity: 0; transform: translateY(34px); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal[data-delay="6"] { transition-delay: .48s; }
.reveal.visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .offers { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero { min-height: auto; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .gaming-grid, .pro-grid { grid-template-columns: 1fr; gap: 46px; }
  .pro-visual { order: 2; }
  .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .hosting { grid-template-columns: 1fr; text-align: center; }
  .hosting-copy > p, .hosting-list { margin-inline: auto; }
  .hosting-list { width: fit-content; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 78px 0; }
  .cards-3, .offers, .feats { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-stats { gap: 26px; }
  .gaming-panel { padding: 44px 26px; }
  .hosting { padding: 34px 24px; }
  .hosting-list { grid-template-columns: 1fr; }
  .calc, .summary, .contact-form, .contact-info { padding: 28px 22px; }
  .chip-2 { left: -8px; }
  .chip-1 { right: 2%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .js .reveal:not(.visible) { opacity: 1; transform: none; }
  #particles { display: none; }
}

/* ─── 12. ESPACE CLIENT (connexion Google) ──────────────────── */
.nav-login[hidden], .user-chip[hidden], #mobileLogin[hidden],
.auth-overlay[hidden], .auth-error[hidden], #userAvatar[hidden], .user-initial[hidden] { display: none !important; }

.user-chip { position: relative; }
.user-chip-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 7px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--txt);
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.user-chip-btn:hover { border-color: rgba(139, 92, 246, .6); background: var(--surface-2); transform: translateY(-2px); }
.user-chip-btn img, .user-initial {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-2); object-fit: cover;
}
.user-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: .82rem; border: none;
}
.user-chip-btn .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.user-chip.open .user-chip-btn .chev { transform: rotate(180deg); }

.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px;
  padding: 10px; border-radius: var(--radius-sm);
  background: rgba(9, 13, 26, .96); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.user-chip.open .user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-email {
  display: block; padding: 6px 10px 10px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .74rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu button, .user-menu a {
  display: block; width: 100%; margin-top: 6px; padding: 9px 10px; text-align: left;
  border-radius: 8px; color: var(--txt); font-family: var(--font-body); font-size: .88rem;
  transition: background .25s, color .25s; box-sizing: border-box;
}
.user-menu button:hover, .user-menu a:hover { background: rgba(232, 121, 249, .12); color: var(--magenta); }

.auth-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(3, 5, 10, .72); backdrop-filter: blur(10px);
  animation: authFade .3s var(--ease);
}
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
.auth-modal {
  position: relative; width: min(430px, 100%);
  padding: 40px 36px 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02)) , var(--bg2);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .85), var(--shadow-accent);
  animation: authPop .35s var(--ease);
}
@keyframes authPop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-overlay, .auth-modal { animation: none; } }
.auth-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.auth-close:hover { color: var(--txt); border-color: var(--line-2); transform: rotate(90deg); }
.auth-close svg { width: 16px; height: 16px; }
.auth-kicker { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); letter-spacing: .04em; }
.auth-modal h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 10px 0 8px; }
.auth-sub { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: 24px; }
.auth-slot { display: flex; justify-content: center; min-height: 44px; margin-bottom: 18px; }
.auth-loading { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); animation: pulseTxt 1.4s ease-in-out infinite; }
@keyframes pulseTxt { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.auth-error { color: #ff8fa3; font-size: .85rem; text-align: center; margin-bottom: 14px; }
.auth-note { color: var(--muted); font-size: .76rem; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 900px) { .user-chip .user-name { display: none; } .user-chip-btn { padding: 5px 10px 5px 6px; } }
@media (max-width: 640px) { .nav-login { display: none; } .nav-login[hidden] { display: none !important; } }

/* ─── 13. ROUTEUR : VUE & TRANSITIONS ───────────────────────── */
#view { min-height: 62vh; }
.page-enter { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-enter { animation: none; } }

/* ─── 14. PAGES ESPACE CLIENT & ADMIN ───────────────────────── */
.pg { padding: calc(var(--nav-h) + 46px) clamp(18px, 5vw, 48px) 80px; max-width: 1120px; margin: 0 auto; }
.pg [hidden] { display: none !important; }
.pg h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 8px 0 6px; }
.pg input, .pg select {
  font: inherit; color: var(--txt); background: var(--bg2);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; width: 100%;
}
.pg input:focus, .pg select:focus { outline: none; border-color: var(--accent-2); }

.pg-screen { min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.pg-screen p { color: var(--muted); max-width: 440px; }
.pg-kicker { font-family: var(--font-mono); font-size: .8rem; color: var(--cyan); }
.pg-sub { color: var(--muted); margin-bottom: 34px; }
.pg-sectitle { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; }
.pg-sectitle h2 { font-size: 1.3rem; }
.pg-sectitle span { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-bottom: 40px; }
.pg-card {
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
}
.pg-card h3 { font-size: 1.02rem; margin: 12px 0 4px; }
.pg-meta { font-family: var(--font-mono); font-size: .73rem; color: var(--muted); margin-bottom: 12px; }
.pg-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.pg-price small { font-size: .8rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.pg-link { display: inline-block; margin-top: 10px; font-size: .82rem; color: var(--cyan); }
.pg-link:hover { text-decoration: underline; }

.pg-badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .67rem; letter-spacing: .03em; border: 1px solid;
}
.pg-b-ok   { color: #4ade80; border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); }
.pg-b-warn { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.pg-b-off  { color: var(--muted); border-color: var(--line-2); background: var(--surface); }

.pg-tablebox { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.pg-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pg-table th, .pg-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.pg-table th { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pg-table tr:hover td { background: var(--surface); }
.pg-num { font-family: var(--font-mono); font-size: .82rem; }
.pg-amount { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.pg-print { color: var(--cyan); font-size: .82rem; background: none; border: none; cursor: pointer; font-family: var(--font-body); }
.pg-print:hover { text-decoration: underline; }
.pg-empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: .92rem; }

/* ── Admin ── */
.pg-admin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.pg-clients { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: calc(var(--nav-h) + 20px); max-height: 74vh; overflow-y: auto; }
.pg-clients input { margin-bottom: 12px; }
.pg-client {
  display: block; width: 100%; text-align: left; padding: 12px 13px; border-radius: var(--radius-sm);
  border: 1px solid transparent; margin-bottom: 6px; background: none; color: inherit; cursor: pointer; font: inherit;
  transition: background .2s, border-color .2s;
}
.pg-client:hover { background: var(--surface); }
.pg-client.active { background: var(--surface-2); border-color: var(--line-2); }
.pg-cname { display: block; font-weight: 600; font-size: .92rem; }
.pg-cmail { display: block; font-family: var(--font-mono); font-size: .71rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-cinfo { display: block; font-size: .69rem; color: var(--muted); margin-top: 4px; }

.pg-editor { min-height: 40vh; }
.pg-placeholder { color: var(--muted); padding-top: 50px; text-align: center; }
.pg-edhead { margin-bottom: 24px; }
.pg-edhead h2 { font-size: 1.35rem; }
.pg-edmail { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); }
.pg-edstats { font-size: .77rem; color: var(--muted); margin-top: 6px; }
.pg-block { margin-bottom: 32px; }
.pg-blockhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pg-blockhead h3 { font-size: 1.04rem; }
.pg-rows { display: flex; flex-direction: column; gap: 10px; }
.pg-row {
  display: grid; gap: 8px; align-items: end;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.pg-row-service { grid-template-columns: 105px 1fr 88px 92px 118px 118px minmax(120px,1fr) 32px; }
.pg-row-invoice { grid-template-columns: 128px 128px 1fr 100px 118px 128px 32px; }
.pg-del { color: #ff8fa3; font-size: 1rem; background: none; border: none; cursor: pointer; padding-bottom: 8px; }
.pg-del:hover { transform: scale(1.2); }
.pg-f { display: block; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; }
.pg-savebar { display: flex; align-items: center; gap: 14px; }
.pg-savemsg { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); }
.pg-savemsg.err { color: #ff8fa3; }

@media (max-width: 980px) {
  .pg-admin-layout { grid-template-columns: 1fr; }
  .pg-clients { position: static; max-height: 300px; }
  .pg-row-service, .pg-row-invoice { grid-template-columns: 1fr 1fr; }
}

/* ─── 15. FACTURE IMPRIMABLE ────────────────────────────────── */
#printSheet { display: none; }
@media print {
  body > *:not(#printSheet) { display: none !important; }
  body { background: #fff; }
  #printSheet {
    display: block; color: #111; font-family: "Inter", sans-serif;
    padding: 40px; max-width: 720px; margin: 0 auto;
  }
  #printSheet .ph { display: flex; justify-content: space-between; margin-bottom: 40px; }
  #printSheet .ph h2 { font-size: 26px; color: #111; }
  #printSheet .ph .pnum { text-align: right; font-size: 13px; color: #555; }
  #printSheet .blocks { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 36px; font-size: 13px; line-height: 1.6; }
  #printSheet .blocks b { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #888; }
  #printSheet table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 26px; }
  #printSheet th { text-align: left; border-bottom: 2px solid #111; padding: 8px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
  #printSheet td { padding: 12px 6px; border-bottom: 1px solid #ddd; }
  #printSheet .total { text-align: right; font-size: 17px; font-weight: 700; }
  #printSheet .pfoot { margin-top: 46px; font-size: 11px; color: #777; line-height: 1.7; border-top: 1px solid #ddd; padding-top: 14px; }
}
