/* ==========================================================================
   STUDIO EIKO — panneau privé
   --------------------------------------------------------------------------
   Fusion de deux identités :
     · eikocreation.fr  → le néon (vert #8ef000, magenta), les lettrages
                          Bangers, les contours francs, le côté « sticker »
     · badking-tattoo.fr → l'encre noire, les filets d'or #d4a825, le cadre
                          ciselé, la typo Special Elite / Cinzel / gothique

   Règle de composition : l'or et l'encre tiennent la structure (cadres,
   filets, labels), le néon ne sert qu'à pointer (état actif, liens, accents).
   ========================================================================== */

/* --------------------------------------------------------------- 1. POLICES */

@font-face {
  font-family: 'Bangers';
  src: url('../fonts/bangers-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Special Elite';
  src: url('../fonts/specialelite-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/spacemono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/spacemono-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'UnifrakturCook';
  src: url('../fonts/unifrakturcook-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- 2. JETONS */

:root {
  /* encre — la nuit de badking */
  --void: #050407;
  --ink: #0a0710;
  --panel: #0e0a15;
  --panel-2: #130e1c;
  --panel-3: #191123;

  /* or — la structure de badking */
  --gold: #d4a825;
  --gold-hot: #f5d442;
  --gold-dim: #8f7119;
  --gold-line: rgba(212, 168, 37, 0.2);
  --gold-line-2: rgba(212, 168, 37, 0.4);
  --gold-mist: rgba(212, 168, 37, 0.07);
  --cream: #ede5cc;
  --cream-70: rgba(237, 229, 204, 0.7);
  --cream-45: rgba(237, 229, 204, 0.45);
  --cream-20: rgba(237, 229, 204, 0.2);
  --ash: #8a8576;

  /* néon — l'énergie d'eiko */
  --green: #8ef000;
  --green-soft: rgba(142, 240, 0, 0.12);
  --green-line: rgba(142, 240, 0, 0.36);
  --magenta: #ff00d4;
  --magenta-soft: rgba(255, 0, 212, 0.12);
  --yellow: #ffe93b;
  --cyan: #3ee8ff;
  --danger: #ff6a5e;

  /* typo */
  --f-display: 'Bangers', 'Impact', 'Arial Narrow', sans-serif;
  --f-raw: 'Special Elite', 'Courier New', monospace;
  --f-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
  --f-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --f-serif: 'Cinzel', Georgia, serif;
  --f-gothic: 'UnifrakturCook', 'Times New Roman', serif;

  /* géométrie : angles vifs, comme un cadre doré */
  --r: 2px;
  --r-lg: 3px;
  --sidebar-w: 266px;
  --topbar-h: 62px;

  /* textures */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(237, 229, 204, 0.07) 1px, transparent 1.4px);
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10c38-6 74-8 112-5 27 2 55 5 102 1' stroke='%238ef000' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- 3. SOCLE */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--void);
  background-image:
    radial-gradient(900px 620px at 6% -8%, rgba(142, 240, 0, 0.075), transparent 62%),
    radial-gradient(760px 560px at 102% 0%, rgba(255, 0, 212, 0.07), transparent 58%),
    radial-gradient(1100px 760px at 50% 118%, rgba(212, 168, 37, 0.06), transparent 62%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

/* le focus reprend le pointillé magenta de eikocreation.fr */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px dashed var(--magenta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* grain + trames : le fond ne doit jamais être un aplat mort */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 160px 160px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--dots);
  background-size: 22px 22px;
  opacity: 0.55;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--green);
  border: 1px solid var(--green-line);
  font-family: var(--f-raw);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus {
  top: 12px;
}

code {
  padding: 1px 5px;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  background: rgba(212, 168, 37, 0.06);
  font-family: var(--f-mono);
  font-size: 0.88em;
  color: var(--gold);
  white-space: nowrap;
}

/* --------------------------------------------------- 4. PRIMITIVES DE TYPO */

.display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--cream);
}

.neon {
  position: relative;
  display: inline-block;
  color: var(--green);
  text-shadow:
    3px 3px 0 rgba(255, 0, 212, 0.5),
    0 0 38px rgba(142, 240, 0, 0.38);
}

.neon::after {
  content: '';
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: -0.16em;
  height: 0.14em;
  background: var(--swoosh) center / 100% 100% no-repeat;
  transform: rotate(-0.6deg);
  opacity: 0.9;
}

.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--f-raw);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow .sq {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-line);
  flex: none;
}

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream-45);
}

.lead {
  margin: 0;
  max-width: 46ch;
  color: var(--cream-70);
  font-size: 15.5px;
  line-height: 1.65;
}

.gothic-seal {
  font-family: var(--f-gothic);
  font-weight: 700;
  color: var(--gold);
}

/* étiquettes / pastilles */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--gold-line-2);
  border-radius: 999px;
  font-family: var(--f-raw);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.tag--green {
  border-color: var(--green-line);
  color: var(--green);
  background: var(--green-soft);
}
.tag--magenta {
  border-color: rgba(255, 0, 212, 0.42);
  color: #ff7ae8;
  background: var(--magenta-soft);
}
.tag--cream {
  border-color: var(--cream-20);
  color: var(--cream-70);
}
.tag--sticker {
  transform: rotate(-2.4deg);
  border-width: 1.5px;
  font-size: 10px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  font-family: var(--f-raw);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.25s ease;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0705;
  font-weight: 400;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 26px -12px rgba(212, 168, 37, 0.75);
}
.btn--gold:hover {
  background: var(--gold-hot);
  border-color: var(--gold-hot);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 14px 30px -12px rgba(245, 212, 66, 0.8);
}
.btn--gold:active {
  transform: translateY(0);
}

.btn--ghost {
  border-color: var(--gold-line-2);
  color: var(--cream-70);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
  background: var(--gold-mist);
}

.btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
}

/* cadre à coins dorés, réutilisé partout */
.frame-corners {
  position: relative;
}
.frame-corners::before {
  content: '';
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2))),
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2))),
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2))),
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2))),
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2))),
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2))),
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2))),
    linear-gradient(var(--frame, var(--gold-line-2)), var(--frame, var(--gold-line-2)));
  background-position:
    left top,
    left top,
    right top,
    right top,
    left bottom,
    left bottom,
    right bottom,
    right bottom;
  background-size:
    15px 1px,
    1px 15px,
    15px 1px,
    1px 15px,
    15px 1px,
    1px 15px,
    15px 1px,
    1px 15px;
  background-repeat: no-repeat;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   5. LA PORTE — page de connexion
   ========================================================================== */

.gate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 100dvh;
}

/* ---- colonne de gauche : l'affiche ---- */

.gate-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 4.4vw, 62px) clamp(26px, 4.6vw, 74px);
  border-right: 1px solid var(--gold-line);
  overflow: hidden;
  isolation: isolate;
}

.gate-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(237, 229, 204, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 229, 204, 0.028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(80% 80% at 20% 20%, #000 20%, transparent 78%);
}

.gate-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 46% at 12% 18%, rgba(142, 240, 0, 0.11), transparent 70%),
    radial-gradient(56% 44% at 82% 78%, rgba(255, 0, 212, 0.11), transparent 70%),
    radial-gradient(70% 60% at 46% 108%, rgba(212, 168, 37, 0.09), transparent 70%);
}

/* filigrane gothique : la signature de badking, en très grand */
.gate-watermark {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: 5%;
  font-family: var(--f-gothic);
  font-size: clamp(210px, 27vw, 360px);
  line-height: 0.72;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(212, 168, 37, 0.2);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.gate-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gate-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: auto 0;
}

.gate-title .display {
  font-size: clamp(62px, 8.6vw, 128px);
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
}

.gate-title .display span {
  display: block;
}

.gate-title .display .neon {
  width: max-content;
}

.gate-title .neon {
  margin-top: -0.06em;
  transform: rotate(-2deg) translateX(0.04em);
}

.gate-kicker {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold-line-2);
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.gate-lead {
  max-width: 40ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-70);
}

.gate-lead strong {
  color: var(--cream);
  font-weight: 600;
}

.gate-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.gate-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.gate-foot a {
  color: var(--cream-45);
  transition: color 0.2s ease;
}
.gate-foot a:hover {
  color: var(--green);
}
.gate-foot .x {
  color: var(--gold-dim);
}

/* ---- colonne de droite : la carte ---- */

.gate-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  isolation: isolate;
}

.gate-side::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(60% 50% at 50% 42%, rgba(142, 240, 0, 0.06), transparent 72%);
  pointer-events: none;
}

/* le disque qui tourne, signature d'eikocreation.fr, en filigrane */
.gate-side::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(62vw, 600px);
  aspect-ratio: 1;
  background: url('../img/swirl-disc-360.webp') center / contain no-repeat;
  opacity: 0.11;
  animation: spin 90s linear infinite;
  pointer-events: none;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 428px;
  padding: 38px 34px 30px;
  background:
    linear-gradient(168deg, rgba(24, 17, 34, 0.96), rgba(8, 6, 12, 0.98) 62%),
    var(--panel);
  border: 1px solid var(--gold-line-2);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 0 rgba(237, 229, 204, 0.07) inset,
    0 30px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6);
  animation: card-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.gate-card::after {
  /* halo néon qui frôle le cadre */
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(120px 60px at 0% 0%, rgba(142, 240, 0, 0.16), transparent 70%),
    radial-gradient(120px 60px at 100% 100%, rgba(255, 0, 212, 0.14), transparent 70%);
  opacity: 0.8;
}

.gate-card > * {
  position: relative;
  z-index: 1;
}

.gate-sticker {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: 18px;
  transform: rotate(3.2deg);
  background: var(--void);
}

.gate-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--gold-line-2);
  background: radial-gradient(circle at 50% 40%, rgba(142, 240, 0, 0.12), transparent 70%);
  box-shadow:
    0 0 0 6px rgba(212, 168, 37, 0.045),
    0 0 44px -10px rgba(142, 240, 0, 0.45);
  animation: avatar-pulse 5.5s ease-in-out infinite;
}

.gate-avatar img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 50%;
}

.gate-card-head {
  text-align: center;
  margin-bottom: 26px;
}

.gate-card-head .kicker {
  justify-content: center;
  margin-bottom: 12px;
  font-size: 9.5px;
  letter-spacing: 0.3em;
}

.gate-card-head h2 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.gate-card-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-45);
}

/* formulaire */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.field-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #08060c;
  border: 1px solid var(--gold-line-2);
  border-radius: var(--r);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  letter-spacing: 0.18em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease;
}

.field-input::placeholder {
  color: rgba(237, 229, 204, 0.22);
  letter-spacing: 0.3em;
}

.field-input:focus {
  outline: none;
  border-color: var(--green);
  background: #0a0812;
  box-shadow:
    0 0 0 3px rgba(142, 240, 0, 0.12),
    0 0 26px -6px rgba(142, 240, 0, 0.5);
}

.field-input[aria-invalid='true'] {
  border-color: rgba(255, 106, 94, 0.6);
}

.gate-submit {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.3em;
}

.gate-submit[data-loading='true'] {
  pointer-events: none;
  opacity: 0.75;
}

.gate-submit[data-loading='true'] span::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.1s steps(4) infinite;
}

.gate-error {
  display: none;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 106, 94, 0.42);
  border-left-width: 3px;
  background: rgba(255, 106, 94, 0.08);
  color: #ffb3ab;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: left;
}

.gate-error[data-show='true'] {
  display: flex;
}

.gate-error svg {
  flex: none;
  margin-top: 1px;
}

.gate-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-line);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.gate-card-foot .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-dim);
}

.shake {
  animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================================================
   6. LE PANNEAU
   ========================================================================== */

.app {
  display: block;
}

/* ---- barre latérale ---- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  padding: 22px 0 0;
  background: linear-gradient(180deg, #08060c 0%, #0b0710 52%, #070509 100%);
  border-right: 1px solid var(--gold-line);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--gold-line-2) 22%,
    var(--gold-line-2) 78%,
    transparent
  );
  opacity: 0.65;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--gold-line);
}

.brand-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--gold-line-2);
  background: radial-gradient(circle at 50% 40%, rgba(142, 240, 0, 0.16), transparent 72%);
  box-shadow: 0 0 26px -8px rgba(142, 240, 0, 0.55);
}

.brand-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand-word b {
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.brand-word small {
  margin-top: 4px;
  font-family: var(--f-raw);
  font-size: 8.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--green);
}

.side-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-line-2) transparent;
}

.side-scroll::-webkit-scrollbar {
  width: 6px;
}
.side-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-line-2);
}

.nav-label {
  margin: 20px 0 8px;
  padding: 0 22px;
  font-family: var(--f-raw);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1px 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 2px 2px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-70);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.nav-item svg {
  flex: none;
  opacity: 0.8;
}

.nav-item:hover {
  background: rgba(237, 229, 204, 0.035);
  color: var(--cream);
}

.nav-item:hover svg {
  opacity: 1;
}

.nav-item.is-active {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(142, 240, 0, 0.11), rgba(142, 240, 0, 0) 78%);
  color: var(--cream);
}

.nav-item.is-active svg {
  color: var(--green);
  opacity: 1;
}

.nav-item .nav-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-line);
}

.nav-item .ext {
  margin-left: auto;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item:hover .ext {
  opacity: 0.9;
  transform: translate(1px, -1px);
}

.nav-item .nav-dot[data-accent='magenta'] {
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 0, 212, 0.6);
}
.nav-item .nav-dot[data-accent='gold'] {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 168, 37, 0.6);
}
.nav-item .nav-dot[data-accent='cyan'] {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(62, 232, 255, 0.6);
}
.nav-item .nav-dot[data-accent='yellow'] {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 233, 59, 0.6);
}

.nav-empty {
  margin: 2px 22px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ash);
  line-height: 1.6;
}

/* pied de la barre : session */
.side-foot {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--gold-line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.session b {
  color: var(--cream-70);
  font-weight: 700;
}

.side-foot .btn {
  width: 100%;
}

/* ---- colonne principale ---- */

.shell {
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar-w);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 clamp(16px, 3vw, 34px);
  background: rgba(7, 5, 10, 0.82);
  border-bottom: 1px solid var(--gold-line);
  backdrop-filter: blur(12px) saturate(1.1);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-raw);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
}

.crumbs .sep {
  color: var(--gold-dim);
}

.crumbs .here {
  color: var(--cream-70);
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(142, 240, 0, 0.7);
  animation: ping 2.4s ease-out infinite;
}

.clock {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cream-45);
  font-variant-numeric: tabular-nums;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.user-chip .avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold-line-2);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--gold);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line-2);
  background: transparent;
  cursor: pointer;
  color: var(--cream-70);
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 40px) clamp(16px, 3.4vw, 40px) 0;
}

/* ---- héro ---- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 6px 0 34px;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line-2), var(--gold-line) 30%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(46px, 6.8vw, 88px);
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.58);
}

.hero h1 .neon {
  text-shadow:
    4px 4px 0 rgba(255, 0, 212, 0.42),
    0 0 44px rgba(142, 240, 0, 0.32);
}

.hero .lead {
  max-width: 52ch;
  font-size: 14.5px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

/* sceau : la mascotte en sticker */
.hero-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 186px;
  height: 186px;
  margin-right: 6px;
  transform: rotate(4deg);
  animation: seal-in 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-seal::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--gold-line-2);
  opacity: 0.8;
}

.hero-seal::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(142, 240, 0, 0.2), transparent 66%),
    radial-gradient(circle at 72% 78%, rgba(255, 0, 212, 0.16), transparent 60%);
  filter: blur(2px);
}

.hero-seal img {
  position: relative;
  z-index: 1;
  width: 158px;
  height: 158px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: #0a0710;
}

.hero-seal .tag {
  position: absolute;
  z-index: 2;
  bottom: 4px;
  right: -6px;
  background: var(--void);
}

/* ---- bandeau de chiffres ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 42px;
}

.stat {
  position: relative;
  padding: 15px 16px 14px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(19, 14, 28, 0.92), rgba(9, 7, 14, 0.92));
  overflow: hidden;
}

.stat[data-accent='green'] {
  --stat-accent: var(--green);
}
.stat[data-accent='gold'] {
  --stat-accent: var(--gold);
}
.stat[data-accent='cyan'] {
  --stat-accent: var(--cyan);
}
.stat[data-accent='magenta'] {
  --stat-accent: var(--magenta);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 1px;
  background: var(--stat-accent, var(--gold));
  box-shadow: 0 0 14px var(--stat-accent, var(--gold));
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}

.stat-label svg {
  color: var(--stat-accent, var(--gold));
  opacity: 0.85;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.stat-value small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cream-45);
}

.stat-sub {
  margin-top: 7px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- section outils ---- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
}

.section-hint {
  margin: 0 0 2px auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ash);
}

.section-hint code {
  padding: 1px 5px;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  background: rgba(212, 168, 37, 0.06);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--gold);
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.tool {
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  --accent-line: var(--green-line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 20px 18px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  background:
    linear-gradient(158deg, rgba(20, 14, 30, 0.92), rgba(8, 6, 13, 0.96) 72%),
    var(--panel);
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}

.tool::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 180px at 12% 0%, var(--accent-soft), transparent 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tool:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow:
    0 22px 44px -24px rgba(0, 0, 0, 0.95),
    0 0 0 1px var(--accent-line),
    0 0 34px -12px var(--accent);
}

.tool:hover::after {
  opacity: 0.75;
}

.tool:hover::before {
  opacity: 1;
}

.tool[data-accent='magenta'] {
  --accent: var(--magenta);
  --accent-soft: var(--magenta-soft);
  --accent-line: rgba(255, 0, 212, 0.4);
}
.tool[data-accent='gold'] {
  --accent: var(--gold);
  --accent-soft: rgba(212, 168, 37, 0.12);
  --accent-line: var(--gold-line-2);
}
.tool[data-accent='cyan'] {
  --accent: var(--cyan);
  --accent-soft: rgba(62, 232, 255, 0.12);
  --accent-line: rgba(62, 232, 255, 0.4);
}
.tool[data-accent='yellow'] {
  --accent: var(--yellow);
  --accent-soft: rgba(255, 233, 59, 0.12);
  --accent-line: rgba(255, 233, 59, 0.4);
}

.tool-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.tool:hover .tool-icon {
  transform: rotate(-4deg) translateY(-1px);
  box-shadow: 0 0 26px -8px var(--accent);
}

.tool-num {
  font-family: var(--f-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-dim);
  padding-top: 4px;
}

.tool-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.tool-name {
  margin: 0;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.tool-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(237, 229, 204, 0.07);
}

.tool-tag {
  padding: 2px 7px;
  border: 1px solid var(--cream-20);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

.tool-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--f-raw);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-45);
  transition: color 0.2s ease;
}

.tool:hover .tool-open {
  color: var(--accent);
}

.tool-open svg {
  transition: transform 0.22s ease;
}

.tool:hover .tool-open svg {
  transform: translate(2px, -2px);
}

/* carte « ajouter un outil » */
.tool-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 178px;
  padding: 22px;
  border: 1px dashed var(--gold-line-2);
  border-radius: var(--r);
  background: rgba(212, 168, 37, 0.022);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}

.tool-add:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 37, 0.05);
  transform: translateY(-2px);
}

.tool-add .plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-line-2);
  border-radius: 50%;
  color: var(--gold);
}

.tool-add b {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.tool-add span {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

/* état vide */
.empty {
  grid-column: 1 / -1;
  padding: 34px 26px;
  border: 1px dashed var(--gold-line-2);
  border-radius: var(--r);
  text-align: center;
  background: rgba(212, 168, 37, 0.02);
}

.empty b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
}

.empty p {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 13px;
  color: var(--cream-45);
}

.empty code {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold);
}

/* ---- pied de page ---- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 46px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--gold-line);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cream-45);
  transition: color 0.2s ease;
}

.foot a:hover {
  color: var(--green);
}

.foot .giallo {
  color: var(--gold);
}

/* ---- boîte de dialogue « ajouter un outil » ---- */

dialog.sheet {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--gold-line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, #171022, #08060c 76%);
  color: var(--cream);
  box-shadow: 0 40px 120px -30px #000;
}

dialog.sheet::backdrop {
  background: rgba(3, 2, 5, 0.72);
  backdrop-filter: blur(6px);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--gold-line);
}

.sheet-head h3 {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--gold-line-2);
  border-radius: 2px;
  background: transparent;
  color: var(--cream-45);
  cursor: pointer;
}

.sheet-close:hover {
  color: var(--gold-hot);
  border-color: var(--gold);
}

.sheet-body {
  padding: 20px 24px 8px;
}

.sheet-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-steps li {
  position: relative;
  padding-left: 34px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream-70);
  counter-increment: step;
}

.sheet-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--f-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.sheet pre {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--gold);
  background: #060409;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--cream-70);
}

.sheet pre .c {
  color: var(--ash);
}
.sheet pre .k {
  color: var(--cyan);
}
.sheet pre .s {
  color: var(--green);
}

.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--gold-line);
}

.sheet-foot .mono {
  font-size: 9.5px;
}

/* ==========================================================================
   7. ANIMATIONS
   ========================================================================== */

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: rotate(14deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: rotate(4deg) scale(1);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 240, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(142, 240, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 240, 0, 0);
  }
}

@keyframes avatar-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(212, 168, 37, 0.045),
      0 0 34px -12px rgba(142, 240, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(212, 168, 37, 0.07),
      0 0 46px -8px rgba(142, 240, 0, 0.6);
  }
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  80% {
    transform: translateX(4px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-6px);
  }
  40%,
  60% {
    transform: translateX(6px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dots {
  0% {
    content: '';
  }
  25% {
    content: '.';
  }
  50% {
    content: '..';
  }
  75% {
    content: '...';
  }
}

/* ==========================================================================
   8. ADAPTATION

   Deux seuils : 1180px (la barre latérale se replie en tiroir) et 640px
   (tout passe sur une colonne).
   ========================================================================== */

@media (max-width: 1180px) {
  .gate {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  }
  .gate-brand {
    padding: 34px 30px;
  }
  .gate-title .display {
    font-size: clamp(54px, 7.4vw, 88px);
  }
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: 24px 0 60px -20px #000;
    width: 288px;
  }

  .sidebar.is-open {
    transform: none;
  }

  .shell {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-seal {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-hint {
    margin-left: 0;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(3, 2, 5, 0.66);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1080px) {
  .gate {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .gate-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 0 22px;
    padding: 26px 22px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--gold-line);
  }

  .gate-brand::before {
    mask-image: none;
    opacity: 0.5;
  }

  .gate-head {
    grid-column: 1 / -1;
    margin-bottom: 18px;
  }

  .gate-title {
    grid-column: 1 / -1;
    gap: 10px;
    margin: 0;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .gate-title .display {
    font-size: clamp(40px, 9vw, 62px);
    display: flex;
    gap: 0.16em;
  }

  .gate-title .neon {
    margin-top: 0;
    transform: rotate(-2deg);
  }

  .gate-kicker,
  .gate-lead,
  .gate-badges,
  .gate-watermark,
  .gate-foot {
    display: none;
  }

  .gate-brand {
    padding-bottom: 18px;
  }

  .gate-side {
    padding: 26px 20px 40px;
  }

  .gate-card {
    padding: 32px 24px 26px;
  }

  .gate-avatar {
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
  }

  .gate-avatar img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 10px;
    padding: 0 14px;
  }

  .crumbs .sep,
  .crumbs .home {
    display: none;
  }

  .clock,
  .user-chip span {
    display: none;
  }

  .live {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 22px 0 32px;
  }

  .stat {
    padding: 12px 13px;
  }

  .stat-value {
    font-size: 25px;
  }

  .tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-hint {
    display: none;
  }

  .foot {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .gate-card-head h2 {
    font-size: 34px;
  }
}

/* ==========================================================================
   9. MOUVEMENT RÉDUIT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
