/* Police de marque pour les titres : Kanit Black Italic (licence libre OFL, voir assets/fonts/OFL-Kanit.txt) */
@font-face {
  font-family: "Kanit";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/kanit-900-italic.woff2") format("woff2");
}

:root {
  --display: "Kanit", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --bg: #08080b;
  --surface: #131318;
  --surface-2: #1c1c24;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f6f6f8;
  --soft: #c9c9d6;
  --muted: #9a9aab;
  --brand: #c8ff3e;
  --brand-ink: #0a0a0d;
  --live: #ff3b4e;
  --radius: 20px;
  --tabbar-h: 64px;
  --shadow: 0 18px 40px -26px rgba(0, 0, 0, .95);
  --c: var(--brand);            /* couleur du portail affiché, sinon celle de la marque */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Lueurs d'ambiance fixes derrière tout le site */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 45% at 10% 0%, rgba(200, 255, 62, .09), transparent 70%),
    radial-gradient(55% 40% at 100% 18%, rgba(183, 123, 255, .08), transparent 70%),
    radial-gradient(70% 45% at 50% 112%, rgba(255, 120, 95, .07), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
section { scroll-margin-top: 72px; }
#accueil { scroll-margin-top: 400px; }   /* "Accueil" remonte tout en haut de la page */
.noscript { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 8, 11, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.wordmark { font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; }
.wordmark span { color: var(--brand); }
.topnav { display: none; }      /* liens du haut : ordinateur seulement */
.status {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-live { color: #fff; border-color: rgba(255, 59, 78, .5); background: rgba(255, 59, 78, .16); }
.status.is-live i { background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 59, 78, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 16px; border-radius: 15px;
  font-weight: 800; font-size: 15px; white-space: nowrap;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .12s ease, filter .15s ease, border-color .15s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn.primary {
  color: var(--brand-ink); border-color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 88%, #000));
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--c) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.disabled { color: var(--muted); border-style: dashed; background: transparent; box-shadow: none; }

/* ---------- Cartes ---------- */
.card {
  background: linear-gradient(180deg, #17171d, #111116);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--shadow);
}
a.card { transition: border-color .15s ease, transform .15s ease; }

/* ---------- Hero accueil ---------- */
.hero { position: relative; isolation: isolate; padding: 30px 0 6px; text-align: center; }
.hero::before {                /* halo de marque */
  content: ""; position: absolute; z-index: -1; left: 50%; top: -34px; height: 380px;
  width: min(380px, 100%);     /* jamais plus large que le contenu : sinon il dépasse de l'écran sur petit téléphone */
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 24%, transparent), transparent 62%);
  pointer-events: none;
}
.hero::after {                 /* quadrillage discret */
  content: ""; position: absolute; z-index: -1; left: -16px; right: -16px; top: -8px; height: 320px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px; background-position: center top;
  -webkit-mask-image: radial-gradient(62% 68% at 50% 34%, #000 18%, transparent 76%);
  mask-image: radial-gradient(62% 68% at 50% 34%, #000 18%, transparent 76%);
  pointer-events: none;
}
.avatar-wrap { position: relative; width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; }
.avatar-wrap::before {         /* anneau : vert au repos, animé rouge/vert en live */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--brand), color-mix(in srgb, var(--brand) 55%, #0b0b10), var(--brand));
}
.avatar-wrap.is-live::before {
  background: conic-gradient(var(--live), #ff9a3d, var(--brand), var(--live));
  animation: spin 5s linear infinite;
}
.avatar {
  position: absolute; inset: 4px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #23232d, #14141a); border: 4px solid var(--bg);
  font-weight: 900; font-style: italic; font-size: 36px; letter-spacing: -.04em;
}
.avatar-live {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 999px; border: 3px solid var(--bg);
  background: var(--live); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; white-space: nowrap;
}
.hero h1 { font-size: 44px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -.045em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.chips li {
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
  font-size: 12px; font-weight: 700; color: var(--soft);
}
.hero p { margin: 14px auto 0; max-width: 30ch; color: var(--muted); text-wrap: balance; }
.cta { display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px; margin-top: 24px; }   /* l'écart est porté par les boutons : il reste correct sans accroche ni étiquettes */
.cta.one { grid-template-columns: 1fr; }   /* un seul bouton disponible */

/* ---------- Titres de section ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.2; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.head h2::before { content: ""; flex: none; width: 5px; height: 18px; border-radius: 2px; background: var(--c); transform: skewX(-14deg); }
.head a { padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------- En ce moment / prochain live ---------- */
.next { display: flex; align-items: center; gap: 14px; padding: 14px; }
.next .when {
  flex: none; width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; text-align: center;
  background: var(--surface-2); line-height: 1.05;
}
.next .when b { display: block; font-size: 20px; font-weight: 900; }
.next .when small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next .when i { display: block; width: 10px; height: 10px; margin: 0 auto 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.next .what { flex: 1; min-width: 0; }
.next .what small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next .what strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; line-height: 1.25; }
.next .go { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); }
.next.is-live { border-color: rgba(255, 59, 78, .4); background: linear-gradient(180deg, #24141a, #141116); }
.next.is-live .when { background: rgba(255, 59, 78, .18); }
.next.is-live .when small { color: #fff; }
.next.is-live .what small { color: #ff8f9a; }
.next.is-live .go { background: var(--live); color: #fff; }

/* ---------- Dernière vidéo ---------- */
.video { display: block; overflow: hidden; }
.thumb {
  position: relative; aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(200, 255, 62, .30), transparent 55%),
    radial-gradient(90% 90% at 10% 100%, rgba(255, 92, 138, .28), transparent 60%),
    var(--surface-2);
  display: grid; place-items: center;
}
.play {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 12px 30px -10px rgba(200, 255, 62, .55);
}
.play svg { width: 26px; height: 26px; margin-left: 4px; }
.dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 7px; background: rgba(0, 0, 0, .78); font-size: 12px; font-weight: 700; }
.video .meta { padding: 14px 16px 16px; }
.video .meta strong { display: block; font-size: 16px; line-height: 1.3; }
.video .meta small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* ---------- Cartes portail ("affiches") ---------- */
.portals { display: grid; gap: 14px; }
a.portal { display: flex; flex-direction: column; overflow: hidden; }
.p-cover {                     /* bandeau à la couleur du portail, avec son logo */
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 108px; padding: 18px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 12px),
    linear-gradient(140deg, color-mix(in srgb, var(--c) 72%, #000), color-mix(in srgb, var(--c) 30%, #0b0b10));
}
.p-icon { flex: none; width: 52px; height: 52px; border-radius: 15px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.p-icon.free, .phero .p-icon.free { border-radius: 0; object-fit: contain; }   /* icône qui a déjà sa propre forme */
.p-initials { display: grid; place-items: center; background: #fff; color: #0a0a0d; font-weight: 900; font-style: italic; font-size: 19px; letter-spacing: -.04em; }
.p-logo-img { display: block; height: 24px; width: auto; min-width: 0; }
.p-logo-name { min-width: 0; font-size: clamp(20px, 6.6vw, 26px); line-height: 1.05; font-weight: 900; font-style: italic; letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.logo-text {
  font-family: Impact, "Haettenschweiler", "Arial Narrow", "Roboto Condensed", sans-serif;
  font-weight: 900; font-synthesis: none; font-style: normal; letter-spacing: -.01em;
  font-size: 34px; line-height: 1; white-space: nowrap; color: #fff;
}
.logo-text i { font-style: normal; color: var(--c); }
.p-cover .logo-text i, .phero .logo-text i { color: color-mix(in srgb, var(--c) 45%, #fff); }   /* sur le bandeau coloré, le point s'éclaircit pour rester lisible */
.p-chips { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.age {
  font-size: 10px; font-weight: 800; font-style: normal; letter-spacing: .03em; line-height: 1.3; white-space: nowrap;
  padding: 3px 7px; border-radius: 7px; border: 1px solid var(--c); color: var(--c);
}
.p-cover .age, .phero .age { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(0, 0, 0, .28); }
.p-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 6px; }
.p-tag { color: var(--soft); font-size: 15px; line-height: 1.4; }
.promo {
  display: inline-block; align-self: flex-start; max-width: 100%;
  padding: 5px 11px; border-radius: 999px;
  background: var(--c); color: #0a0a0d;
  font-size: 11px; font-weight: 900; font-style: normal; letter-spacing: .03em; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-go {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 800; color: var(--c);
}
.p-go svg { width: 18px; height: 18px; transition: transform .15s ease; }
.portal.soon {                 /* carte "à venir" */
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none;
}
.soon-plus { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 22px; font-weight: 700; }
.portal.soon strong { display: block; font-size: 17px; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.portal.soon div span { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Actu ---------- */
.news { list-style: none; display: grid; gap: 10px; }
.news .card { display: block; height: 100%; padding: 14px 16px 16px; }
.n-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tag {
  padding: 3px 8px; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent);
}
.tag:not([style]) { --c: var(--brand); }
.news strong { display: block; font-size: 16px; line-height: 1.35; }
.news small { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- Réseaux ---------- */
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px 14px; text-align: center; }
.s-ico {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 15%, var(--surface-2)); color: var(--c);
  transition: background .15s ease, color .15s ease;
}
.s-ico b { font-size: 14px; font-weight: 900; }
.social strong { font-size: 14px; line-height: 1.2; }
.social small { display: none; color: var(--muted); font-size: 12px; }

footer { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
footer .wordmark { display: inline-block; margin-bottom: 10px; font-size: 20px; color: var(--text); }
footer p + p { margin-top: 6px; }

/* ---------- Page portail ---------- */
.back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 48px; margin: 6px 0 2px -6px; padding: 0 8px 0 0;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.phero {                       /* grand bandeau à la couleur du portail */
  position: relative; overflow: hidden; padding: 30px 20px 24px; border-radius: 24px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(255, 255, 255, .24), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 12px),
    linear-gradient(150deg, color-mix(in srgb, var(--c) 74%, #000), color-mix(in srgb, var(--c) 34%, #0b0b10) 70%, #121218);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 60px -36px color-mix(in srgb, var(--c) 70%, transparent);
}
.phero .p-icon { display: block; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; }
.phero .p-initials { display: grid; font-size: 28px; }
.phero h1 { line-height: 1; font-size: 0; }      /* le titre est le logo ; font-size 0 évite un espace parasite */
.phero .p-logo-img { height: 32px; margin: 0 auto; }
.phero .p-emblem { display: block; height: 168px; width: auto; margin: -8px auto -6px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); }
.phero .logo-text { font-size: 50px; }
.phero .p-logo-name { font-size: 38px; }
.ph-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.phero .age { font-size: 12px; padding: 4px 9px; }
.phero .promo { align-self: auto; padding: 5px 13px; font-size: 13px; background: #fff; }
.phero p { margin: 16px auto 22px; max-width: 32ch; color: rgba(255, 255, 255, .86); text-wrap: balance; }
.phero .btn { max-width: 360px; margin: 0 auto; }
.phero .btn.primary { background: #fff; color: #0a0a0d; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .8); }
.phero .btn.disabled { border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .85); }
.about { padding: 18px; }
.about p { color: var(--soft); }
.points { list-style: none; }
.points li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; }
.points li + li { border-top: 1px solid var(--line); }
.points svg { flex: none; color: var(--c); }
.empty { padding: 72px 0 24px; text-align: center; }
.empty h1 { font-size: 32px; line-height: 1.1; font-weight: 900; font-style: italic; letter-spacing: -.03em; }
.empty p { margin: 12px auto 24px; max-width: 32ch; color: var(--muted); }
.empty .btn { max-width: 320px; margin: 0 auto; }

/* ---------- Barrière 18+ ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; margin-bottom: calc(-1 * (var(--tabbar-h) + 24px)); }
.gate-box { width: 100%; max-width: 400px; padding: 30px 20px 22px; text-align: center; display: grid; gap: 12px; }
.gate-badge {
  width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--c); color: var(--c);
  font-size: 26px; font-weight: 900;
}
.gate h1 { font-size: 26px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.gate p { color: var(--muted); margin-bottom: 8px; text-wrap: balance; }
.gate small { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* ---------- Barre d'onglets (téléphone, zone du pouce) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(13, 13, 17, .9);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 560px; margin: 0 auto; height: var(--tabbar-h); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.tab-ico { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 999px; transition: background .2s ease; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on .tab-ico { background: color-mix(in srgb, var(--brand) 16%, transparent); }

/* ---------- Décors propres à un portail ----------
   Chaque carte porte la classe "portal--<id>" et la page d'un portail porte data-portal="<id>" sur <body>. */

/* LibertyCards : ciel violet, soleil couchant rose et orange, ombres dures façon BD (reprend la DA de son site) */
.portal--libertycards .p-cover {
  background:
    radial-gradient(circle at 86% 132%, #ffd9a0 0, #ff9a3c 16%, #ff4fa3 34%, rgba(255, 79, 163, 0) 58%),
    linear-gradient(168deg, #160c33 0%, #34197a 48%, #7c2fb6 82%, #b93a9c 100%);
}
.portal--libertycards .p-logo-name { color: #fff1d9; text-shadow: 2px 3px 0 #050507; }
[data-portal="libertycards"] .phero {
  border-color: rgba(255, 255, 255, .2);
  background:
    radial-gradient(130% 62% at 50% 118%, rgba(255, 79, 163, .6), rgba(255, 79, 163, 0) 70%),
    linear-gradient(170deg, #160c33 0%, #34197a 52%, #6d2aa8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 60px -36px rgba(138, 77, 255, .8);
}
[data-portal="libertycards"] .phero .btn.primary {
  background: linear-gradient(95deg, #ff806c, #ff4fa3); color: #0b0b0d;
  box-shadow: 5px 5px 0 #050507;
}

/* ---------- Tous les titres utilisent la police de marque ---------- */
.wordmark, .avatar, .hero h1, .head h2, .p-initials, .p-logo-name, .portal.soon strong, .empty h1, .gate h1 {
  font-family: var(--display); font-weight: 900; font-style: italic; letter-spacing: -.01em;
}
.head h2, .portal.soon strong { letter-spacing: .015em; }   /* un peu d'air : cette police est dense en petite taille */

/* Très petits téléphones : les deux boutons du haut passent l'un sous l'autre */
@media (max-width: 349px) {
  .cta { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}

/* ---------- Survol (souris uniquement) ---------- */
@media (hover: hover) {
  a.card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-3px); }
  a.portal:hover .p-go svg { transform: translateX(4px); }
  a.social:hover .s-ico { background: var(--c); color: #0a0a0d; }
  a.btn:hover, button.btn:hover { filter: brightness(1.08); }
  a.btn:not(.primary):hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .09); }
  .head a:hover, .back:hover { color: var(--text); }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 56px; }
  .wrap { max-width: 1120px; padding: 0 24px; }
  .wrap.narrow { max-width: 808px; }
  section { scroll-margin-top: 88px; }
  #accueil { scroll-margin-top: 400px; }

  /* Navigation dans la barre du haut, plus de barre d'onglets en bas */
  .topbar .wrap { height: 64px; }
  .wordmark { font-size: 24px; }
  .topnav { display: flex; gap: 4px; }
  .topnav a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .15s ease, background .15s ease; }
  .topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
  .topnav a.on { color: var(--brand); }
  .tabbar { display: none; }

  /* Haut de page : présentation et live à gauche, dernière vidéo à droite */
  .top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; }
  .hero { padding: 0; text-align: left; }
  .hero::before { left: 0; top: -150px; width: min(460px, 100%); height: 460px; transform: translateX(-38%); }
  .hero::after {
    left: -24px; right: -24px; top: -56px; height: 420px;
    -webkit-mask-image: radial-gradient(70% 70% at 22% 36%, #000 16%, transparent 76%);
    mask-image: radial-gradient(70% 70% at 22% 36%, #000 16%, transparent 76%);
  }
  .avatar-wrap { margin: 0 0 22px; }
  .hero h1 { font-size: 76px; }
  .chips { justify-content: flex-start; margin-top: 18px; }
  .chips li { font-size: 13px; padding: 6px 14px; }
  .hero p { margin: 18px 0 0; max-width: 40ch; font-size: 18px; }
  .cta { max-width: 420px; margin-top: 30px; }
  .top-main .head { margin-top: 34px; }
  .top-side .head { margin-top: 0; }
  /* Sans dernière vidéo : la présentation occupe seule le haut de page, centrée */
  .top.solo { grid-template-columns: minmax(0, 1fr); padding-top: 72px; }
  .top.solo .top-main { width: 100%; max-width: 560px; margin: 0 auto; }
  .top.solo .hero { text-align: center; }
  .top.solo .hero::before { left: 50%; transform: translateX(-50%); }
  .top.solo .hero::after {
    -webkit-mask-image: radial-gradient(62% 68% at 50% 34%, #000 18%, transparent 76%);
    mask-image: radial-gradient(62% 68% at 50% 34%, #000 18%, transparent 76%);
  }
  .top.solo .avatar-wrap { margin: 0 auto 22px; }
  .top.solo .chips { justify-content: center; }
  .top.solo .hero p { margin-left: auto; margin-right: auto; }
  .top.solo .cta { margin-left: auto; margin-right: auto; }
  .top.solo .cta.one { max-width: 280px; }

  .head { margin: 64px 0 18px; }
  .head h2 { font-size: 26px; }
  .head h2::before { height: 22px; width: 6px; }

  /* Portails en colonnes */
  .portals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .p-cover { min-height: 136px; padding: 22px; }
  .p-icon { width: 60px; height: 60px; border-radius: 17px; }
  .p-logo-img { height: 27px; }
  .logo-text { font-size: 40px; }
  .p-body { padding: 20px 22px 8px; gap: 14px; }
  .p-tag { font-size: 16px; }
  .promo { font-size: 12px; padding: 5px 12px; }
  .p-go { min-height: 50px; font-size: 15px; }
  /* Carte "à venir" : en colonne quand elle partage sa ligne, en bandeau quand elle est seule sur sa ligne */
  .portal.soon { padding: 18px 22px; }
  .portal.soon:nth-child(odd) { grid-column: 1 / -1; }
  .portal.soon:nth-child(even) { flex-direction: column; justify-content: center; text-align: center; padding: 28px; }

  /* Actu en colonnes */
  .news { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .news .card { padding: 18px 20px 20px; }
  .news strong { font-size: 17px; }
  .wrap.narrow .news { grid-template-columns: 1fr; gap: 10px; }

  /* Réseaux sur une ligne */
  .socials { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .social { padding: 22px 8px 18px; }
  .s-ico { width: 52px; height: 52px; border-radius: 17px; }
  .social strong { font-size: 15px; }
  .social small { display: block; margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* Page portail */
  .phero { padding: 48px 32px 38px; border-radius: 28px; }
  .phero .p-icon { width: 88px; height: 88px; border-radius: 25px; margin-bottom: 22px; }
  .phero .p-logo-img { height: 44px; }
  .phero .p-emblem { height: 220px; margin: -14px auto -8px; }
  .phero .logo-text { font-size: 68px; }
  .phero .p-logo-name { font-size: 52px; }
  .phero .promo { font-size: 14px; }
  .phero p { font-size: 18px; max-width: 40ch; margin: 18px auto 26px; }
  .about { padding: 24px; }
  .about p { font-size: 17px; }
  .points li { padding: 17px 24px; }
  .gate { margin-bottom: -56px; }
  .gate-box { padding: 36px 28px 26px; }
  footer { margin-top: 72px; }
}

/* ---------- Grand écran : portails sur trois colonnes ---------- */
@media (min-width: 1024px) {
  .wrap:not(.narrow) .portals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wrap:not(.narrow) .portal.soon:nth-child(n) { grid-column: auto; flex-direction: column; justify-content: center; text-align: center; padding: 28px; }
  .wrap:not(.narrow) .portal.soon:nth-child(3n + 1) { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: left; padding: 18px 22px; }
  .wrap:not(.narrow) .portal.soon:nth-child(3n + 2) { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
