/* Polices hébergées localement (Montserrat & Rajdhani — SIL Open Font License) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/montserrat-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/montserrat-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/montserrat-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/montserrat-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/rajdhani-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/rajdhani-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/rajdhani-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/rajdhani-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/rajdhani-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/rajdhani-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Couleurs de la charte Shinunze (logo) */
  --bg: #15181b;
  --brand-dark: #1f2326;
  --panel: rgba(31, 35, 38, 0.78);
  --line: rgba(0, 198, 255, 0.20);
  --cyan: #00c6ff;
  --cyan-soft: #29b2dd;
  --white: #ffffff;
  --text: #eef6fa;
  --muted: #8fa3ad;
  --radius: 14px;
}

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

html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.25; /* fixe : la mise en page ne bouge pas quand les polices arrivent */
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  overflow-x: hidden;
}

/* ---------- Fond ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  overflow: hidden;
}
.bg-grid { background-image: none; }
.bg-grid::before {
  content: ""; position: absolute; top: -48px; left: -48px; right: 0; bottom: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridmove 20s linear infinite; will-change: transform;
}
@keyframes gridmove { to { transform: translate(48px, 48px); } }

.bg-glow {
  position: fixed; inset: -20%; z-index: -2;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 198, 255, .20), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .06), transparent 45%);
  filter: blur(40px);
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Carte principale ---------- */
.card {
  width: 100%; max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(0,198,255,.10);
  overflow: hidden;
  padding-bottom: 20px;
  animation: rise .6s ease-out both;
}
@keyframes rise { from { opacity: .01; transform: translateY(20px); } } /* .01 et pas 0 : Google compte l’affichage dès le début */

.banner {
  height: 140px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(0,198,255,.35), transparent 60%), var(--brand-dark);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.bicons {
  position: absolute; left: -25%; right: -25%; top: -120%; bottom: -120%;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  transform: rotate(-14deg); /* rangées en diagonale */
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brow { overflow: hidden; --s: 1; height: calc(var(--th) * var(--s) * 1px); flex: 0 0 auto; }
/* piste = 4 fois le motif, décalée d'un motif (25 %) : boucle sans coupure */
.btrack {
  height: 100%; width: calc(var(--tw) * var(--s) * 4px);
  background-repeat: repeat-x; background-size: calc(var(--tw) * var(--s) * 1px) 100%;
  animation: bscroll 53.3s linear infinite; will-change: transform;
}
.brow:nth-child(even) .btrack { animation-direction: reverse; animation-duration: 63.3s; }
.brow:nth-child(3n) .btrack { animation-duration: 46.7s; }
@keyframes bscroll { to { transform: translateX(-25%); } }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
}

/* ---------- Profil ---------- */
.profile { text-align: center; margin-top: -56px; padding: 0 22px 8px; position: relative; }
.avatar-wrap { display: block; width: fit-content; margin: 0 auto; position: relative; line-height: 0; }
.avatar-wrap .status { line-height: 1.25; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; background: #151226;
  background: var(--brand-dark);
  border: 3px solid var(--brand-dark);
  box-shadow: 0 0 0 2px var(--cyan), 0 0 24px rgba(0,198,255,.6), 0 0 60px rgba(0,198,255,.25);
}
.status {
  position: absolute; bottom: 4px; left: 50%; transform: translate(-50%, 50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-dark); border: 1px solid var(--line);
  padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3dff8b; box-shadow: 0 0 8px #3dff8b; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
/* couleurs de statut Discord */
.st-online  { --st: #3dff8b; }
.st-idle    { --st: #ffb020; }
.st-dnd     { --st: #ff4d5e; }
.st-offline { --st: #7d8a91; }
.status i { background: var(--st, #3dff8b) !important; box-shadow: 0 0 8px var(--st, #3dff8b) !important; }
.st-offline i { animation: none !important; }
.live-status { color: var(--st); font-weight: 700; }

.activity {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px; padding: 6px 14px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(0,198,255,.06);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.activity[hidden] { display: none; }
.activity em { color: var(--muted); font-style: normal; }
.activity .tag {
  font: 700 10px "Montserrat", sans-serif; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--cyan); padding: 2px 7px; border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,198,255,.6);
}

h1 {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: clamp(28px, 8.5vw, 42px);
  letter-spacing: .28em; margin-top: 12px; text-transform: uppercase; padding-left: .28em; /* compense le letter-spacing */
}
/* Effet tube néon : cœur clair + halos superposés */
h1 .shin { color: #1fcfff; text-shadow: 0 0 6px rgba(0,198,255,.6), 0 0 16px rgba(0,180,255,.4), 0 0 32px rgba(0,160,255,.2); }
h1 .unze { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,.35), 0 0 16px rgba(255,255,255,.15), 0 0 30px rgba(0,198,255,.15); }
.tagline { color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; margin-top: 4px; }

/* lettres néon : état éteint (géré en JS) */
h1 .l { display: inline-block; }
h1 .l.off { opacity: .14; text-shadow: none; }

/* ---------- Sections & liens ---------- */
section { padding: 18px 22px 0; }
section h2 {
  font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
section h2 { text-shadow: 0 0 8px rgba(0,198,255,.7), 0 0 18px rgba(0,198,255,.35); }
section h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); box-shadow: 0 0 6px var(--cyan); opacity: .6; }

.links { display: grid; gap: 10px; }

.link {
  --c: var(--cyan);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c); box-shadow: 0 0 12px var(--c);
}
.link:hover, .link:focus-visible {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 25%, transparent);
  outline: none;
}
.icon {
  flex: 0 0 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 12%, var(--brand-dark));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.icon svg { width: 22px; height: 22px; fill: var(--ic, var(--c)); filter: drop-shadow(0 0 4px var(--c)); transition: fill .18s; }
.link:hover .icon svg { fill: var(--c); }

.meta { flex: 1; min-width: 0; }
.meta b { display: block; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.meta small { display: block; color: var(--muted); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.copy {
  flex: 0 0 auto;
  background: transparent; color: var(--muted);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 6px 10px; font: 700 12px "Rajdhani", sans-serif; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: .15s; position: relative; z-index: 2;
}
.copy:hover { color: var(--c); border-color: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); }
.arrow { flex: 0 0 10px; text-align: center; color: var(--muted); font-size: 20px; transition: .18s; }
.arrow.none { visibility: hidden; } /* emplacement réservé : les boutons Copier restent alignés */
.link:hover .arrow { color: var(--c); transform: translateX(3px); }

footer small { display: block; font-size: 11px; margin-top: 4px; color: #7f939c; }
footer { text-align: center; color: #93a6b0; font-size: 13px; letter-spacing: .1em; margin-top: 26px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px);
  background: var(--brand-dark); border: 1px solid var(--cyan); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font-weight: 700; letter-spacing: .05em;
  box-shadow: 0 0 20px rgba(0,198,255,.35);
  opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* onglet masqué : tout est mis en pause (voir script.js) */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 420px) {
  body { padding: 24px 12px; }
  section { padding: 16px 16px 0; }
  .profile { padding: 0 16px 8px; }
}

/* ---------- Discord : avatar, appareils, cartes d'activité ---------- */

.status[hidden] { display: none; }

/* Bloc profil Discord */
.dcard {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px;
  text-align: left; text-decoration: none; color: var(--text);
  border: 1px solid rgba(0,198,255,.35); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,198,255,.10), rgba(0,198,255,.02));
  box-shadow: 0 0 18px rgba(0,198,255,.12);
  transition: box-shadow .18s, border-color .18s;
  animation: rise .4s ease-out both;
}
.dcard { height: 84px; } /* hauteur fixe même avec un statut perso */
.dcard[hidden] { display: none; }
.dcard:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0,198,255,.3); }
.dc-av { position: relative; flex: 0 0 52px; height: 52px; }
.dc-av img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--brand-dark); }
.dc-av img[hidden] { display: none; }
.dc-av i {
  position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--st); border: 3px solid #1d2225; box-shadow: 0 0 8px var(--st);
}
.dc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-name b { font-size: 18px; }
.dc-name small { color: var(--muted); font-weight: 600; font-size: 14px; }
.dc-st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st); }
.dc-custom { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-custom[hidden] { display: none; }
.dc-logo { flex: 0 0 22px; opacity: .55; }
.dc-logo svg { width: 22px; height: 22px; fill: var(--text); display: block; }
.dcard:hover .dc-logo { opacity: 1; }
.dcard:hover .dc-logo svg { fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }

.devices { display: inline-flex; gap: 5px; }
.devices:empty { display: none; }
.devices svg {
  width: 14px; height: 14px; fill: none; stroke: var(--muted);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Emplacement d'activité : hauteur FIXE, la page ne bouge plus */
.presence { position: relative; height: 136px; margin-top: 14px; text-align: left; }
.pslides { position: relative; height: 100%; }
.pslides .pcard {
  position: absolute; inset: 0; animation: none;
  opacity: 0; transform: translateX(14px); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.pslides .pcard.on { opacity: 1; transform: none; pointer-events: auto; }
.pdots { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.pdots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--cyan); background: transparent; transition: .2s;
}
.pdots button.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pempty {
  height: 100%; border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed rgba(0,198,255,.25); background: rgba(255,255,255,.02); text-align: center;
}
.pempty::before {
  content: ""; position: absolute; width: 150px; height: 150px; right: -30px; top: -10px;
  background: url("../assets/img/swirl.webp") center/contain no-repeat; opacity: .06;
}
.pempty b { font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.pempty small { font-size: 12px; color: var(--muted); opacity: .6; letter-spacing: .12em; text-transform: uppercase; }
.presence[hidden] { display: none; }
.presence > * { min-width: 0; }
.watch[hidden] { display: none; }
.pcard {
  display: flex; gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,198,255,.10), rgba(0,198,255,.02));
  border: 1px solid rgba(0,198,255,.35);
  box-shadow: 0 0 18px rgba(0,198,255,.12), inset 0 0 20px rgba(0,198,255,.05);
  animation: rise .4s ease-out both;
}
.art { position: relative; flex: 0 0 72px; height: 72px; }
.art img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--brand-dark); }
.art .mini {
  position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px;
  border-radius: 50%; border: 3px solid #1b1f22;
}
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pinfo .tag {
  align-self: flex-start; margin-bottom: 3px;
  font: 700 10px "Montserrat", sans-serif; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--cyan); padding: 2px 7px; border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,198,255,.6);
}
.pinfo b { font-size: 17px; line-height: 1.15; }
.pinfo b, .pinfo small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo small { font-size: 14px; font-weight: 600; color: var(--text); }
.pinfo small.dim { color: var(--muted); }
.clock { margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bar { margin-top: 7px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: width 1s linear; }
.times { display: flex; justify-content: space-between; margin-top: 3px; }
.times b { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.watch { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.emo { width: 18px; height: 18px; vertical-align: -4px; object-fit: contain; margin-right: 5px; }

/* ---------- Mise en page PC (écrans larges) : 2 colonnes ---------- */
@media (min-width: 960px) {
  body { padding: 40px 32px; align-items: center; min-height: 100vh; }
  .card {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-areas: "banner banner" "profile links" "profile footer";
    grid-template-rows: auto 1fr auto;
    padding-bottom: 28px;
  }
  .banner { grid-area: banner; height: 170px; }
  .brow { --s: 1.16; }
  .profile {
    grid-area: profile; align-self: start;
    padding: 0 28px 0; margin-top: -70px;
    position: sticky; top: 24px;
  }
  .avatar { width: 140px; height: 140px; }
  #sections { grid-area: links; padding: 24px 28px 0 8px; }
  section { padding: 18px 0 0; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { grid-area: footer; text-align: right; padding-right: 28px; }
}
@media (min-width: 1280px) {
  .card { max-width: 1240px; grid-template-columns: 420px 1fr; }
}

/* ---------- Mon setup ---------- */
.specs { display: grid; gap: 8px; }
.spec {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
  transition: border-color .18s, background .18s;
}
.spec:hover { border-color: rgba(0,198,255,.35); background: rgba(0,198,255,.05); }
.spec svg {
  flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--cyan);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(0,198,255,.5));
}
.spec span { min-width: 0; display: flex; flex-direction: column; }
.spec small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec b { font-size: 15px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec em { font-style: normal; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 560px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Boutons setup + fenêtre ---------- */
.setup-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.setup-btns:empty { min-height: 56px; } /* place réservée avant l'affichage des boutons */
#sections:empty ~ footer { visibility: hidden; } /* pied de page affiché une fois les liens en place */
.sbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font: 700 12px "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); background: rgba(255,255,255,.03); border: 1px solid rgba(0,198,255,.3);
  transition: .18s;
}
.sbtn svg { width: 18px; height: 18px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sbtn:hover, .sbtn:focus-visible { border-color: var(--cyan); background: rgba(0,198,255,.08); box-shadow: 0 0 16px rgba(0,198,255,.25); outline: none; }

.modal {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8,10,12,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadein .2s ease-out;
}
.modal[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.mbox {
  position: relative; width: 100%; max-width: 780px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px; border-radius: 18px; background: var(--brand-dark);
  border: 1px solid rgba(0,198,255,.35); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(0,198,255,.15);
  animation: rise .25s ease-out;
}
.mbox h2 {
  font: 700 13px "Montserrat", sans-serif; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan);
  margin: 0 40px 16px 0;
}
.mclose {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); background: transparent; border: 1px solid rgba(255,255,255,.12);
}
.mclose:hover, .mclose:focus-visible { color: var(--cyan); border-color: var(--cyan); outline: none; }
.mbox .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 559px) { .mbox .specs { grid-template-columns: 1fr; } }
body.noscroll { overflow: hidden; }

/* ---------- Accent néon ---------- */
.card { border-color: rgba(0,198,255,.35); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,198,255,.08), 0 0 50px rgba(0,198,255,.16), inset 0 0 40px rgba(0,198,255,.04); }
.banner { border-bottom-color: rgba(0,198,255,.5); box-shadow: 0 1px 12px rgba(0,198,255,.35); }
.link { border-color: rgba(0,198,255,.14); box-shadow: inset 0 0 18px rgba(0,198,255,.04); }
.link .icon { box-shadow: 0 0 10px rgba(0,198,255,.25); }
.dcard, .pcard { border-color: rgba(0,198,255,.5); box-shadow: 0 0 22px rgba(0,198,255,.18), inset 0 0 22px rgba(0,198,255,.06); }
.avatar { box-shadow: 0 0 0 2px var(--cyan), 0 0 14px var(--cyan), 0 0 34px rgba(0,198,255,.55), 0 0 70px rgba(0,198,255,.25); }
.sbtn { box-shadow: 0 0 10px rgba(0,198,255,.12); }

/* ---------- 3 boutons + onglets + codes ---------- */
.setup-btns { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.sbtn { padding: 10px 8px; gap: 6px; font-size: 11px; letter-spacing: .1em; }
.sbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbtn svg { flex: 0 0 18px; }
.mtabs { display: flex; gap: 8px; margin-bottom: 14px; }
.mtabs:empty { display: none; }
.mtabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font: 700 12px "Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid rgba(255,255,255,.1); transition: .18s;
}
.mtabs button svg { width: 16px; height: 16px; fill: currentColor; }
.mtabs button.on, .mtabs button:hover { color: var(--text); border-color: var(--cyan); background: rgba(0,198,255,.08); box-shadow: 0 0 12px rgba(0,198,255,.2); }
.mtabs button.on svg { fill: var(--cyan); }
.code { margin-top: 12px; }
.code small { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 9px 12px; border-radius: 8px;
  font: 600 13px ui-monospace, Consolas, monospace; color: var(--cyan);
  background: rgba(0,0,0,.25); border: 1px solid rgba(0,198,255,.2);
}
.code-row .copy { --c: var(--cyan); }
.sbtn { flex-direction: column; gap: 5px; padding: 9px 4px; font-size: 10px; letter-spacing: .06em; }
.sbtn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.sbtn span { max-width: 100%; }
@media (max-width: 420px) { .sbtn { font-size: 9.5px; letter-spacing: .01em; padding: 9px 2px; } }


/* espacements homogènes */
.setup-btns { margin-top: 14px; gap: 10px; }

/* ---------- Bouton FR / EN ---------- */
.card { position: relative; }
.lang-switch {
  position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; padding: 3px; gap: 2px;
  border-radius: 99px; background: rgba(21,24,27,.75); border: 1px solid rgba(0,198,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 12px rgba(0,198,255,.15);
}
.lang-switch button {
  padding: 4px 10px; border-radius: 99px; cursor: pointer; border: none; background: transparent;
  font: 700 11px "Montserrat", sans-serif; letter-spacing: .12em; color: var(--muted); transition: .18s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { color: var(--brand-dark); background: var(--cyan); box-shadow: 0 0 10px rgba(0,198,255,.6); }

/* ---------- Mentions légales ---------- */
.legal-link { background: none; border: none; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-link:hover { color: var(--cyan); }
.legal { font-size: 15px; line-height: 1.5; color: var(--text); }
.legal h3 { margin: 16px 0 4px; font: 700 12px "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.legal h3:first-child { margin-top: 0; }
.legal p { margin: 4px 0; color: #c9d6dc; }
.legal b { color: #fff; }
.legal a { color: var(--cyan); }
