/* ════════════════════════════════════════════════════════════════
 * AIMCOACH · aim-ui.css : interface commune « verre cosmique 2.0 » (2026-10-27)
 * Chargée EN DERNIER dans le <head> de chaque page. Toutes les règles commencent
 * par « html » : le CDN Tailwind réinjecte ses styles après cette feuille.
 * Contenu : palette noir violet, cartes de verre (.plate), boutons (.btn-p / .btn-s),
 * champs, petits composants (étiquettes, onglets), barre du haut, titres Anton,
 * états chargement / vide / erreur (.aim-state), calques (toasts, cookies, guide),
 * focus visible, contraste des petits libellés, chargeur planète (.aim-orbit).
 * RÈGLE : ne jamais toucher à `position` sur .plate (des éléments position:absolute
 * ou fixed portent aussi la classe .plate). Le liseré ::before s'appuie sur le
 * position:relative posé par la recette .plate de chaque page.
 * Animations : uniquement transform et opacity, sauf le reflet au survol (une seule
 * passe) et le liseré qui tourne sur la carte survolée (ordinateur seulement).
 * ════════════════════════════════════════════════════════════════ */

/* ───── 1. Palette : plus aucun gris carbone, des noirs violets ───── */
html:root{
  --radius:12px;
  --carbon:#0A0814;
  --carbon-2:#110E21;
  --carbon-3:#17132B;
  --steel:#2C2648;
  --line:rgba(200,190,255,.14);
  --line-soft:rgba(200,190,255,.085);
  --muted:#A29CB5;
  --aim-lav:#B9A8FF;
  --aim-ease:cubic-bezier(.22,1,.36,1);
  --glass-edge:linear-gradient(150deg, rgba(175,155,255,.44), rgba(255,255,255,.07) 38%, rgba(255,255,255,.04) 62%, rgba(255,70,85,.36));
  /* Couches du verre (une image par variable, pour pouvoir les changer par variante) */
  --aim-glass:linear-gradient(180deg, rgba(30,25,56,.52) 0%, rgba(13,11,30,.66) 100%);
  --aim-glow:radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.055), transparent 55%);
  --aim-sheen:linear-gradient(105deg, transparent 40%, rgba(255,255,255,.05) 46%, rgba(214,200,255,.12) 50%, rgba(255,255,255,.04) 54%, transparent 60%);
  --aim-dust:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='240'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='338' cy='18' r='.9' opacity='.55'/%3E%3Ccircle cx='301' cy='44' r='.6' opacity='.38'/%3E%3Ccircle cx='352' cy='66' r='.5' opacity='.32'/%3E%3Ccircle cx='268' cy='14' r='.55' opacity='.3'/%3E%3Ccircle cx='318' cy='98' r='.7' opacity='.3'/%3E%3Ccircle cx='238' cy='60' r='.5' opacity='.24'/%3E%3Ccircle cx='346' cy='142' r='.6' opacity='.26'/%3E%3Ccircle cx='204' cy='24' r='.6' opacity='.26'/%3E%3Ccircle cx='280' cy='130' r='.5' opacity='.2'/%3E%3Ccircle cx='178' cy='88' r='.5' opacity='.18'/%3E%3Ccircle cx='330' cy='206' r='.5' opacity='.18'/%3E%3Ccircle cx='150' cy='42' r='.5' opacity='.16'/%3E%3Ccircle cx='224' cy='172' r='.6' opacity='.14'/%3E%3Ccircle cx='108' cy='14' r='.5' opacity='.14'/%3E%3Ccircle cx='96' cy='112' r='.5' opacity='.1'/%3E%3Ccircle cx='58' cy='66' r='.5' opacity='.1'/%3E%3Ccircle cx='262' cy='226' r='.5' opacity='.12'/%3E%3C/g%3E%3Cg fill='%23cfc2ff'%3E%3Ccircle cx='290' cy='72' r='.8' opacity='.4'/%3E%3Ccircle cx='190' cy='136' r='.6' opacity='.2'/%3E%3Ccircle cx='356' cy='104' r='.6' opacity='.3'/%3E%3C/g%3E%3Ccircle cx='252' cy='34' r='.7' fill='%23ff8a95' opacity='.3'/%3E%3C/svg%3E");
  /* Boutons */
  --aim-red-fill:linear-gradient(180deg, #ff6470 0%, #ff4655 55%, #e93a49 100%);
  --aim-red-sheen:linear-gradient(105deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  --aim-glass-sheen:linear-gradient(105deg, transparent 38%, rgba(214,200,255,.16) 50%, transparent 62%);
  scrollbar-color:#2C2648 #0A0814;
}
/* Fond de page : noir violet (la galaxie 3D est transparente et passe au-dessus) */
html body.bg-\[\#0B0E11\]{ background-color:var(--carbon); }
html ::-webkit-scrollbar-track{ background:var(--carbon); }
html ::-webkit-scrollbar-thumb{ background:#2C2648; border-radius:8px; }
html ::-webkit-scrollbar-thumb:hover{ background:#3A3260; }

/* ───── 2. Cartes : verre 2.0 (liseré violet vers rouge, poussière d'étoiles, profondeur) ───── */
html .plate{
  border:1px solid transparent;
  border-radius:18px;
  background:
    var(--aim-sheen) 110% 0 / 250% 100% no-repeat padding-box,
    var(--aim-glow) 0 0 / 100% 100% no-repeat padding-box,
    var(--aim-dust) right top / 360px 240px no-repeat padding-box,
    var(--aim-glass) 0 0 / 100% 100% no-repeat padding-box,
    var(--glass-edge) 0 0 / 100% 100% no-repeat border-box;
  box-shadow:
    0 26px 60px -30px rgba(0,0,0,.85),
    0 22px 56px -36px rgba(98,64,214,.55),
    inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(16px) saturate(1.35);
  backdrop-filter:blur(16px) saturate(1.35);
  transition:transform .35s var(--aim-ease), box-shadow .35s, background-position 0s;
}
html .plate:hover{
  box-shadow:
    0 30px 66px -30px rgba(0,0,0,.88),
    0 26px 64px -34px rgba(110,74,230,.62),
    0 0 70px -26px rgba(255,70,85,.28),
    inset 0 1px 0 rgba(255,255,255,.1);
}
/* Carte imbriquée dans une carte : pas de seconde couche d'étoiles */
html .plate .plate{ --aim-dust:none; }

/* Variantes : mise en avant (rouge), prestige (laiton), verrouillée */
html .plate--red{
  --glass-edge:linear-gradient(150deg, rgba(255,120,130,.8), rgba(255,255,255,.08) 45%, rgba(175,155,255,.3) 75%, rgba(255,70,85,.5));
  --aim-glow:radial-gradient(90% 70% at 100% 0%, rgba(255,70,85,.13), transparent 62%);
  box-shadow:
    0 26px 60px -30px rgba(0,0,0,.85),
    0 22px 56px -36px rgba(98,64,214,.5),
    0 0 90px -34px rgba(255,70,85,.55),
    inset 0 1px 0 rgba(255,255,255,.09);
}
html .plate--red:hover{
  box-shadow:
    0 30px 66px -30px rgba(0,0,0,.88),
    0 26px 64px -34px rgba(110,74,230,.55),
    0 0 100px -30px rgba(255,70,85,.7),
    inset 0 1px 0 rgba(255,255,255,.12);
}
html .plate--brass{
  --glass-edge:linear-gradient(150deg, rgba(232,204,140,.8), rgba(255,255,255,.07) 45%, rgba(201,169,97,.42));
  box-shadow:
    0 26px 60px -30px rgba(0,0,0,.85),
    0 22px 56px -36px rgba(98,64,214,.45),
    0 0 70px -34px rgba(201,169,97,.45),
    inset 0 1px 0 rgba(255,255,255,.08);
}
html .plate--locked{
  background:
    repeating-linear-gradient(-45deg, rgba(200,190,255,.03) 0 8px, transparent 8px 16px),
    rgba(12,11,26,.66);
  border:1px dashed rgba(200,190,255,.16);
  box-shadow:none;
}
html .plate--locked:hover{ transform:none; box-shadow:none; }

/* Listes longues (classement, historiques, admin) : verre plus dense, pas de flou ligne par ligne */
html .lb-row.plate, html .row-line.plate, html .row.plate{
  -webkit-backdrop-filter:none; backdrop-filter:none; border-radius:14px;
  --aim-glass:linear-gradient(180deg, rgba(22,19,42,.86), rgba(12,11,27,.9));
  --aim-dust:none;
}
html #usersTable .btn-s{ -webkit-backdrop-filter:none; backdrop-filter:none; }

/* Fiche de l'accueil : les rangées verdict passent du carbone au verre profond (filet rouge gardé) */
html .mock-row.plate{
  border-radius:12px;
  background:
    var(--aim-glow) padding-box,
    linear-gradient(180deg, rgba(18,15,36,.78), rgba(10,9,22,.86)) padding-box,
    var(--glass-edge) border-box;
}
html .mock-row.plate:hover{ border-top-color:transparent; border-right-color:transparent; border-bottom-color:transparent; }

/* Survol : les pages remettaient un contour gris par-dessus le liseré (leur .plate:hover est plus spécifique) */
html .plate:not(.plate--locked):hover{ border-top-color:transparent; border-right-color:transparent; border-bottom-color:transparent; }
html .plate:not(.plate--locked):not(.verdict):not(.info-box):not(.aim-toast):not(.aim-confirm):not(.aim-exit-card):not(.aim-gate-card):not(.aim-cookie-banner):not(.is-me):hover{ border-left-color:transparent; }
/* Classement : la ligne « c'est moi » garde son filet rouge, y compris au survol */
html .lb-row.is-me, html .lb-row.is-me:hover{ box-shadow:inset 2px 0 0 var(--red), 0 18px 40px -22px rgba(0,0,0,.6), 0 0 40px -18px rgba(255,70,85,.35); }

/* Les repères d'angle carrés n'ont plus de sens sur une carte arrondie */
html .plate > .ck, html .lb-row.plate > .cnr{ display:none; }
html .plate.sight > i.tl, html .plate.sight > i.tr, html .plate.sight > i.bl, html .plate.sight > i.br{ display:none; }
html .plate.corners::before, html .plate.corners::after, html .plate.corners > .c::before, html .plate.corners > .c::after{ display:none; }
html .auth-form.card::before, html .auth-form.card::after, html .auth-form.card > .vis::before, html .auth-form.card > .vis::after{ display:none; }

/* ───── 3. Verre 2.0 au survol (souris uniquement) : liseré vivant + reflet qui balaie ───── */
@property --aim-a{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
@keyframes aimEdgeSpin{ from{ --aim-a:300deg; } to{ --aim-a:660deg; } }
@media (hover:hover) and (pointer:fine){
  /* Liseré : anneau de 1 px posé dans le bord, éteint au repos */
  html .plate:not(:is(.plate--locked, .feat-cta, .row, .aim-toast, .aim-cookie-banner, .aim-tour-popup, .aim-confirm, .aim-exit-card, .aim-gate-card, .aim-fb-card))::before{
    content:''; display:block; position:absolute; top:0; right:0; bottom:0; left:0; width:auto; height:auto; margin:0; border:0; transform:none;
    border-radius:inherit; padding:1px; pointer-events:none; box-sizing:border-box;
    --aim-a:300deg;
    background:conic-gradient(from var(--aim-a), rgba(185,168,255,0) 0deg, rgba(185,168,255,.85) 38deg, rgba(255,255,255,.95) 64deg, rgba(255,92,108,.85) 92deg, rgba(255,70,85,0) 132deg, rgba(185,168,255,0) 360deg);
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity:0; transition:opacity .45s ease;
  }
  /* Grandes cartes de contenu : le liseré s'allume doucement */
  html .plate:not(:is(.plate--locked, .feat-cta, .row, .aim-toast, .aim-cookie-banner, .aim-tour-popup, .aim-confirm, .aim-exit-card, .aim-gate-card, .aim-fb-card)):hover::before{ opacity:.55; }
  /* Cartes cliquables : le dégradé glisse lentement le long du bord, et un reflet balaie la carte une fois */
  html :is(a, button, label, details).plate:not(.feat-cta):hover::before,
  html .plate:is([onclick], [role="button"], [data-tilt], .price, .lb-row):hover::before,
  html .card.vise.plate:hover::before{
    opacity:1; animation:aimEdgeSpin 6s linear infinite; will-change:transform;
  }
  html :is(a, button, label, details).plate:not(.plate--locked):hover,
  html .plate:is([onclick], [role="button"], [data-tilt], .price, .lb-row):not(.plate--locked):hover,
  html .card.vise.plate:hover{
    background-position:-10% 0, 0 0, right top, 0 0, 0 0;
    transition:transform .35s var(--aim-ease), box-shadow .35s, background-position 1.3s cubic-bezier(.45,.05,.25,1);
  }
}

/* ───── 4. Boutons : rouge lumineux pour l'action principale, verre pour le secondaire ─────
   (Le bandeau cookies, le guide et la fenêtre « Parle au staff » ont leurs propres boutons, même recette :
   ils sont stylés par translations.js, tour.js et beta-feedback.js, pas ici.) */
html .btn-p, html .btn-s, html .btn-g{ clip-path:none; border-radius:12px; }
html .btn-p, html .price-btn.primary, html #newsletterBtn, html .aim-confirm__confirm, html .aim-exit-btn{
  clip-path:none; border-radius:12px;
  background:var(--aim-red-sheen) 110% 0 / 250% 100% no-repeat, var(--aim-red-fill);
  box-shadow:0 12px 30px -12px rgba(255,70,85,.75), inset 0 1px 0 rgba(255,255,255,.3);
  transition:background-position 0s, box-shadow .3s, transform .3s var(--aim-ease), color .2s;
}
html .btn-p:hover, html .price-btn.primary:hover, html #newsletterBtn:hover, html .aim-confirm__confirm:hover, html .aim-exit-btn:not(:disabled):hover{
  background:var(--aim-red-sheen) -10% 0 / 250% 100% no-repeat, var(--aim-red-fill);
  box-shadow:0 16px 40px -12px rgba(255,70,85,.95), 0 0 34px -8px rgba(255,70,85,.5), inset 0 1px 0 rgba(255,255,255,.34);
  transition:background-position .9s cubic-bezier(.45,.05,.25,1), box-shadow .3s, transform .3s var(--aim-ease), color .2s;
}
html .btn-p:active, html .price-btn.primary:active, html #newsletterBtn:active{ transform:translateY(0) scale(.98); }
html .btn-p:disabled, html .btn-p[aria-disabled="true"]{ box-shadow:none; opacity:.6; cursor:not-allowed; }
html .btn-p:disabled:hover{ background:var(--aim-red-sheen) 110% 0 / 250% 100% no-repeat, var(--aim-red-fill); box-shadow:none; transform:none; }

html .btn-s, html .btn-g, html .price-btn.ghost, html .aim-confirm__cancel{
  clip-path:none; border-radius:12px;
  background:var(--aim-glass-sheen) 110% 0 / 250% 100% no-repeat, rgba(255,255,255,.04);
  border:1px solid rgba(200,190,255,.18);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  transition:background-position 0s, border-color .25s, box-shadow .3s, color .2s;
}
html .btn-s:hover, html .btn-g:hover, html .price-btn.ghost:hover, html .aim-confirm__cancel:hover{
  background:var(--aim-glass-sheen) -10% 0 / 250% 100% no-repeat, rgba(255,255,255,.07);
  border-color:rgba(200,190,255,.36);
  box-shadow:0 10px 28px -14px rgba(110,74,230,.7);
  transition:background-position 1s cubic-bezier(.45,.05,.25,1), border-color .25s, box-shadow .3s, color .2s;
}
/* Accueil (tarifs, newsletter, menu mobile) et liens de la barre : mêmes arrondis */
html .price-btn, html #newsletterBtn, html .mm-trial{ clip-path:none; border-radius:12px; }
html #navAuth a{ border-radius:12px !important; }

/* ───── 5. Champs de saisie : verre partout (connexion, comparaison, post-match, classement, réglages…) ───── */
html .field, html .inp, html .input, html .input-brief, html .aim-exit-input, html #newsletterEmail{
  background:rgba(255,255,255,.035);
  border:1px solid rgba(200,190,255,.15);
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:border-color .2s, box-shadow .25s, background-color .2s;
}
html .field:hover, html .inp:hover, html .input:hover, html .input-brief:hover, html .aim-exit-input:hover, html #newsletterEmail:hover{ border-color:rgba(200,190,255,.26); }
html .field:focus, html .inp:focus, html .input:focus, html .input-brief:focus, html .aim-exit-input:focus, html #newsletterEmail:focus{
  outline:none;
  border-color:rgba(185,168,255,.85);
  background-color:rgba(255,255,255,.055);
  box-shadow:0 0 0 4px rgba(150,120,255,.2), 0 0 26px -6px rgba(150,120,255,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
html :is(.field, .inp, .input, .input-brief)[aria-invalid="true"]{ border-color:rgba(255,70,85,.75); }
html .field::placeholder, html .inp::placeholder, html .input::placeholder, html .input-brief::placeholder, html .aim-exit-input::placeholder, html #newsletterEmail::placeholder{ color:var(--muted); opacity:1; }
html select.field option, html select.inp option, html select.input option{ background:#141126; color:#EDEAE3; }
/* (La fenêtre « Parle au staff » a ses champs en verre dans beta-feedback.js : .aim-fb-input.) */
/* Remplissage automatique de Chrome : violet nuit, texte et curseur clairs, halo gardé au focus */
html input:-webkit-autofill, html textarea:-webkit-autofill{ -webkit-box-shadow:inset 0 0 0 1000px #221D3A !important; -webkit-text-fill-color:#EDEAE3; caret-color:#EDEAE3; }
html input:-webkit-autofill:focus{ -webkit-box-shadow:inset 0 0 0 1000px #221D3A, 0 0 0 4px rgba(150,120,255,.2) !important; }
/* Format « pseudo#tag » : du code écrit en mono lavande, sans capsule (règle du 29/10) */
html .code-chip{ background:none; border:0; border-radius:0; padding:0; font-family:'JetBrains Mono', monospace; color:#B9AEFF; }

/* ───── 6. Petits composants : étiquettes typographiques, onglets, interrupteurs ─────
   Règle du 29/10 : plus aucun pictogramme ni emoji dans une boîte, plus aucune pastille.
   Une étiquette est du texte : JetBrains Mono en majuscules espacées, en couleur (rouge : Pro, SAISON, l'urgent ;
   lavande : Starter ; vert : gratuit et états OK), précédée au besoin d'un point lumineux de 5 à 6 px, sans fond ni contour.
   Recette partagée .ix-lbl (la même que l'accueil, le tableau de bord, la comparaison), posée ici sans poids (:where) :
   une page qui la définit elle-même garde la main. */
:where(.ix-lbl){ display:inline-flex; align-items:center; gap:7px; font-family:'JetBrains Mono', monospace; font-size:10px; font-weight:600; line-height:1.2; letter-spacing:.18em; text-transform:uppercase; white-space:nowrap; color:var(--chalk-dim, #B5B1A6); }
:where(.ix-lbl)::before{ content:''; width:5px; height:5px; border-radius:1px; background:currentColor; box-shadow:0 0 9px currentColor; flex:none; }
:where(.ix-lbl--red){ color:var(--red, #FF4655); }
:where(.ix-lbl--lav){ color:#B9AEFF; }
:where(.ix-lbl--go){ color:var(--go, #2FBF71); }
:where(.ix-lbl--lg){ font-size:11px; font-weight:700; letter-spacing:.16em; }
/* Anciennes étiquettes encore posées par une page ou un script : la boîte disparaît, le texte reste */
html :is(.tag, .tag-red, .tag-go, .tier-badge, .tb, .fc-tag, .price-badge){ background:none; border:0; border-radius:0; box-shadow:none; padding-left:0; padding-right:0; }
/* Vrai contrôle (lien « Connexion » / « Mon compte » de la barre du coach) : verre arrondi.
   « Voir les offres » (.tag-link) est un lien texte nu depuis le 29/10 : plus de verre ici, sinon il repasserait devant le style de la page. */
html .chip{ border-radius:8px; background-color:rgba(255,255,255,.03); }
/* Interrupteurs et barres d'onglets : verre arrondi, segment intérieur arrondi
   (le sélecteur FR / EN .aim-lang-switcher a son curseur glissant dans translations.js) */
html .lang-switch, html .billing-toggle, html .tab-wrap{
  border-radius:12px; background:rgba(255,255,255,.035); border:1px solid rgba(200,190,255,.15); padding:3px; gap:2px;
}
html #metricTabs{ border-radius:12px; background:rgba(255,255,255,.035); border-color:rgba(200,190,255,.15); padding:3px; }
html .lang-pref, html .billing-toggle button, html .metric-tab, html .tab-btn, html .riot-id-tab, html .auth-tabs__btn{ border-radius:9px; }
html .metric-tab.is-active, html .lang-pref.on{ background:rgba(175,155,255,.16); border-color:rgba(200,190,255,.2); }
/* Onglet actif : verre lavande + petit trait rouge centré (au lieu d'un soulignement qui suit l'arrondi) */
html .tab-btn.is-active, html .metric-tab.is-active{
  color:#EDEAE3; border-bottom-color:transparent; box-shadow:none;
  background:linear-gradient(#FF4655, #FF4655) center bottom 3px / 14px 2px no-repeat, rgba(175,155,255,.15);
}
/* Tableau de bord : restes « rounded-[2px] » (roue, Déconnexion, menu, onglets, filtres, croix).
   Les petits carrés à initiale (w-5 h-5) ont disparu le 29/10 : plus de règle pour eux. */
html .rounded-\[2px\]{ border-radius:10px; }
html .bg-\[\#161B22\]{ background-color:rgba(255,255,255,.05); }
html .bg-\[\#10141A\]\/95{ background-color:rgba(17,14,33,.95); }
html .border-\[rgba\(237\,234\,227\,\.10\)\]{ border-color:rgba(200,190,255,.15); }
html .border-\[rgba\(237\,234\,227\,\.06\)\]{ border-color:rgba(200,190,255,.09); }
/* Fenêtres des scripts communs sans styles à jour : sortie (exit-intent.js) et plan requis (tier-gate.js).
   (Le guide, le bouton et la fenêtre « Parle au staff » sont stylés par tour.js et beta-feedback.js.) */
html .aim-exit-backdrop{ background:radial-gradient(120% 90% at 50% 0%, rgba(70,48,140,.28), transparent 60%), rgba(6,5,16,.78); }
html .aim-exit-close, html .aim-exit-perks{ border-radius:12px; }
html .aim-exit-perks{ background:rgba(255,255,255,.035); border-color:rgba(200,190,255,.12); }
/* Croix de la fenêtre de sortie : nue, comme celles du toast, du guide et de « Parle au staff » (zone de 44 px, fond léger au survol seulement) */
html .aim-exit-close{ background:none; border-color:transparent; width:44px; height:44px; top:8px; right:8px; }
html .aim-exit-close:hover{ background:rgba(255,255,255,.05); border-color:transparent; color:#EDEAE3; }
/* Point lumineux de 6 px devant le petit libellé (plus d'anneau autour : ce n'est pas une cible) */
html .aim-exit-kicker::before{ border-radius:1.5px; box-shadow:0 0 10px rgba(255,70,85,.85); }
html .aim-gate-card a{ border-radius:12px !important; clip-path:none !important; }
html .aim-gate-card a[href="pricing"]{ background:var(--aim-red-fill) !important; box-shadow:0 12px 30px -12px rgba(255,70,85,.75), inset 0 1px 0 rgba(255,255,255,.3); }
/* « PLAN PRO » / « PLAN STARTER » de la fenêtre de plan requis : tier-gate.js pose lui-même l'étiquette typographique
   (.aim-gate-plan : rouge pour Pro, lavande pour Starter, point de 6 px). Filet de sécurité pour une ancienne version
   en cache du script, dont le style en ligne posait bordure et rembourrage (d'où les !important) */
html .aim-gate-card > div:first-of-type:not(.aim-gate-plan){ display:inline-flex !important; align-items:center; gap:10px; border:0 !important; border-radius:0; padding:0 !important; background:none; }
html .aim-gate-card > div:first-of-type:not(.aim-gate-plan)::before{ content:''; width:6px; height:6px; border-radius:1.5px; background:currentColor; box-shadow:0 0 10px currentColor; flex:none; }
html .aim-gate-ghost{ color:rgba(190,175,255,.06); }
html #aimGateModal{ background:radial-gradient(120% 90% at 50% 0%, rgba(70,48,140,.28), transparent 60%), rgba(6,5,16,.8) !important; }
/* Leur filet rouge de 2 px (ancienne charte) devient le liseré rouge de la carte mise en avant */
html .aim-exit-card.plate, html .aim-gate-card.plate{
  border-left:1px solid transparent;
  --glass-edge:linear-gradient(150deg, rgba(255,120,130,.8), rgba(255,255,255,.08) 45%, rgba(175,155,255,.3) 75%, rgba(255,70,85,.5));
  --aim-glow:radial-gradient(90% 70% at 100% 0%, rgba(255,70,85,.13), transparent 62%);
  --aim-glass:linear-gradient(180deg, rgba(26,22,48,.94), rgba(12,11,27,.96));
  box-shadow:0 34px 80px -34px rgba(0,0,0,.95), 0 0 70px -30px rgba(140,110,255,.55), 0 0 60px -30px rgba(255,70,85,.45), inset 0 1px 0 rgba(255,255,255,.08);
}

/* ───── 7. Barre du haut et menu mobile : noir violet, filet de nébuleuse ───── */
html body > nav:not(#nav), html .nav-bar, html .nav-brief, html #nav.solid{
  background:rgba(12,10,26,.8) !important;
  border-bottom:1px solid transparent !important;
  border-image:linear-gradient(90deg, rgba(175,155,255,0), rgba(175,155,255,.3) 18%, rgba(255,70,85,.26) 50%, rgba(120,140,255,.26) 82%, rgba(175,155,255,0)) 1 !important;
}
html body > nav #mobileMenu, html #nav #mobileMenu{
  background:rgba(12,10,26,.96) !important;
  border-top:1px solid rgba(175,155,255,.12) !important;
}
/* Même taille de bouton rouge dans toutes les barres (environ 37 px) */
html body > nav > div:first-child .btn-p, html #nav .nav-cta .btn-p{ padding:10px 18px; font-size:.8rem; line-height:1.2; }
/* Séparateurs : filet dégradé de nébuleuse au lieu du trait gris */
html [style*="border-top:1px solid var(--line-soft)"], html footer.border-t{
  border-top-color:transparent !important;
  border-image:linear-gradient(90deg, rgba(175,155,255,0), rgba(175,155,255,.24) 20%, rgba(255,70,85,.2) 50%, rgba(120,140,255,.2) 80%, rgba(175,155,255,0)) 1;
}

/* ───── 8. Titres Anton : craie vers lavande, le point rouge reste lumineux ───── */
html :is(h1, h2, h3):is(.f-display, .f-anton, .anton, .h-card),
html .prose h1, html .aim-state__title, html .aim-exit-title,
html :is(.shead h2, .cta-box h2, .news-box h2):not([data-split]),
html :is(.hero h1, .shead h2, .cta-box h2, .news-box h2) .word > i:not(.dot){
  background-image:linear-gradient(180deg, #F7F4EE 0%, #EDEAE3 42%, #CDC3F2 100%);
  background-size:100% 1lh;
  background-repeat:repeat-y;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
html :is(h1, h2, h3):is(.f-display, .f-anton, .anton, .h-card) .dot,
html .prose h1 .dot, html .aim-state__title .dot, html .aim-exit-title .dot,
html :is(.hero h1, .shead h2, .cta-box h2, .news-box h2) .dot{
  color:#FF4655; -webkit-text-fill-color:#FF4655; text-shadow:0 0 16px rgba(255,70,85,.75), 0 0 4px rgba(255,70,85,.5);
}
/* Accents des capitales (É, À) et cédilles : un dégradé découpé dans le texte ne se peint que dans la boîte
   du titre, et sur un interligne serré (.92 à 1) ces signes en sortent : « LE DÉBRIEF » s'affichait « LE DEBRIEF ».
   Deux pseudo-blocs vides agrandissent la boîte (0,2 em au-dessus, une ligne en dessous) ; leurs marges négatives
   fusionnent avec celles du titre, donc ni le texte ni la page ne bougent (contrôlé sur 10 pages, ordinateur et
   mobile : 0 texte déplacé). Les bandes du dégradé partent du bas pour rester calées sur les lignes.
   Sans effet sur un titre qui a déjà son propre padding (ces pages gardent leur réglage) ni sur un titre en flex. */
html :is(h1, h2, h3):is(.f-display, .f-anton, .anton, .h-card):where(:not(.flex, .inline-flex, .grid, .inline-grid, .inline, .contents)),
html .prose h1, html .aim-state__title, html .aim-exit-title,
html :is(.shead h2, .cta-box h2, .news-box h2):not([data-split]){ background-position:0 100%; }
html :is(h1, h2, h3):is(.f-display, .f-anton, .anton, .h-card):where(:not(.flex, .inline-flex, .grid, .inline-grid, .inline, .contents))::before,
html .prose h1::before, html .aim-state__title::before, html .aim-exit-title::before,
html :is(.shead h2, .cta-box h2, .news-box h2):not([data-split])::before{
  content:''; display:block; height:.2em; margin-top:-.2em; pointer-events:none;
}
html :is(h1, h2, h3):is(.f-display, .f-anton, .anton, .h-card):where(:not(.flex, .inline-flex, .grid, .inline-grid, .inline, .contents))::after,
html .prose h1::after, html .aim-state__title::after, html .aim-exit-title::after,
html :is(.shead h2, .cta-box h2, .news-box h2):not([data-split])::after{
  content:''; display:block; height:1lh; margin-bottom:-1lh; pointer-events:none;
}

/* ───── 9. États chargement / vide / erreur : une seule recette (.aim-state) ───── */
html .aim-state{ text-align:center; padding:40px 24px; }
html .aim-state__visual{ display:flex; justify-content:center; margin:0 auto 18px; }
html .aim-state__visual:empty{
  position:relative; width:52px; height:52px; border-radius:50%;
  background:radial-gradient(circle at 34% 30%, #D9CEFF 0%, #8F74F2 30%, #3C2A86 64%, #120C2A 100%);
  box-shadow:0 0 30px -4px rgba(140,110,255,.6), inset -7px -9px 14px rgba(0,0,0,.55);
}
html .aim-state__visual:empty::after{
  content:''; position:absolute; left:50%; top:50%; width:84px; height:24px; margin:-12px 0 0 -42px;
  border-radius:50%; border:1.5px solid rgba(200,190,255,.4); transform:rotate(-16deg);
}
html .aim-state--error .aim-state__visual:empty{
  background:radial-gradient(circle at 32% 28%, #ffb0b7 0%, #ff4655 28%, #8e2232 62%, #24080f 100%);
  box-shadow:0 0 30px -4px rgba(255,70,85,.6), inset -7px -9px 14px rgba(0,0,0,.55);
}
html .aim-state--error .aim-state__visual:empty::after{ border-color:rgba(255,160,170,.4); }
html .aim-state--empty .aim-state__visual:empty{ opacity:.75; }
html .aim-state__label{
  display:inline-flex; align-items:center; gap:8px;
  font:500 .72rem/1 'JetBrains Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
}
html .aim-state__label::before{ content:''; width:6px; height:6px; border-radius:2px; background:var(--aim-lav); box-shadow:0 0 8px rgba(185,168,255,.7); flex:none; }
html .aim-state--error .aim-state__label{ color:#FF7A85; }
html .aim-state--error .aim-state__label::before{ background:#FF4655; box-shadow:0 0 8px rgba(255,70,85,.8); }
html .aim-state__title{ font-family:'Anton', sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:.01em; font-size:1.6rem; line-height:1.05; margin:12px 0 8px; }
html .aim-state__text{ font-size:.9rem; line-height:1.6; color:#B5B1A6; max-width:42ch; margin:0 auto; }
html .aim-state__label + :where(.aim-state__text){ margin-top:10px; } /* libellé suivi du texte, sans titre entre les deux */
html .aim-state__actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:22px; }
html .aim-state--loading .aim-state__title{ font-size:1.35rem; }
/* Squelettes (toast.js : window.aimSkeleton) : violet, arrondis, reflet qui glisse */
html .aim-skel[style*="border-radius:2px"]{ border-radius:8px !important; }

/* ───── 10. Calques posés au-dessus du contenu (toasts, cookies, guide, fenêtres) ───── */
html .aim-toast.plate, html .aim-cookie-banner.plate, html .aim-tour-popup.plate{
  --aim-glass:linear-gradient(180deg, rgba(26,22,48,.94), rgba(12,11,27,.96));
  --aim-dust:none;
  border-radius:18px;
}
html :is(.aim-confirm, .aim-exit-card, .aim-gate-card, .aim-fb-card).plate{ border-radius:20px; --aim-dust:none; }
html :is(.aim-toast, .aim-cookie-banner, .aim-tour-popup, .aim-confirm, .aim-exit-card, .aim-gate-card, .aim-fb-card).plate:hover{ transform:none; }
html .aim-cookie-banner.plate{ border-left:1px solid transparent; }
/* Petits libellés gris des fenêtres de sortie et de plan requis (le gris #7A766C passait sous 4,5:1) */
html .aim-exit-kicker, html .aim-exit-skip{ color:var(--muted); }
html .aim-exit-skip:hover{ color:#EDEAE3; }
html #aimGateClose{ color:var(--muted) !important; }
/* Sur mobile et tablette : la pastille FR/EN flottante disparaît quand le menu ☰ contient déjà FR/EN
   (seuil du lg:hidden des boutons ☰). Ailleurs, translations.js la masque dès qu'un autre sélecteur
   FR/EN est affiché. Effacement au défilement : translations.js et beta-feedback.js. */
@media (max-width:1023px){
  html body:has(#mobileMenu [data-lang-toggle]) #langSwitcherFloat{ display:none !important; }
}

/* ───── 11. Focus clavier : anneau lumineux violet, partout ───── */
html :focus-visible{ outline:2px solid rgba(196,180,255,.95); outline-offset:3px; }
html .plate:focus-visible{ outline-offset:4px; }
html :is(.btn-p, .btn-s, .btn-g, .price-btn, #newsletterBtn, .aim-confirm__btn, .aim-exit-btn, .aim-exit-close, .aim-exit-skip, .aim-toast__close):focus-visible{
  outline:2px solid #D2C6FF; outline-offset:3px;
  box-shadow:0 0 0 6px rgba(150,120,255,.22), 0 12px 30px -12px rgba(110,74,230,.7);
}
html :is(.field, .inp, .input, .input-brief, .aim-exit-input, #newsletterEmail):focus-visible{ outline:none; }
html :is(.tab-btn, .metric-tab, .lang-pref, .riot-id-tab, .billing-toggle button):focus-visible{ outline-offset:1px; }
/* (Bandeau cookies, guide, bouton et fenêtre « Parle au staff », FR/EN : même anneau violet, posé par leurs scripts.) */

/* ───── 12. Lisibilité : petits libellés gris et rouges au-dessus de 4,5:1 sur le verre ───── */
html .plate{ --muted:#ACA6C2; }
html .plate--red{ --muted:#BDB6CC; }
html .text-\[\#7A766C\]{ color:var(--muted); }
html .plate .v-label, html .plate .field-label, html .plate .mono.uppercase, html .price-tier, html .step-n, html .price-promo{ --red:#FF7A85; }
/* Sur le verre rouge (halo rouge derrière) le rouge doit être plus clair : mesuré 3,9:1 avec #FF7A85, 4,8:1 ici */
html .plate--red :is(.v-label, .field-label, .mono.uppercase, .price-tier, .price-promo){ --red:#FF9AA2; }
html .plate--red{ --red-soft:#FF9AA2; }
html .text-\[9px\]{ font-size:10px; }
html .text-\[10px\]{ font-size:11px; }
/* Badges verrouillés : libellé lisible, c'est le code géant qui s'efface (hachures + pointillés suffisent) */
html .plate--locked.opacity-40{ opacity:1; }
html .plate--locked .badge-code{ opacity:.3; }

/* ───── 13. Performance : sur mobile, verre dense sans flou (le cosmos passe encore) ; navigateurs sans flou : verre plus dense ───── */
@media (max-width:880px){
  html .plate, html .btn-s, html .btn-g{ -webkit-backdrop-filter:none; backdrop-filter:none; }
  /* Une seule valeur partout, lignes du classement et pages légales comprises : planète, anneau et nébuleuse
     se voient à travers les cartes, les petits libellés gris et rouges restent à 4,5:1 même sur le liseré de la planète.
     .lb-row.plate est nommé car la règle des listes longues (section 2) l'emporte sur « html .plate » ;
     main.plate (carte des pages légales) l'est aussi pour garder ce verre même si une règle de page s'ajoute. */
  html .plate, html .lb-row.plate, html main.plate{ --aim-glass:linear-gradient(180deg, rgba(24,20,46,.78), rgba(12,11,28,.86)); }
  html .plate--locked{ background:repeating-linear-gradient(-45deg, rgba(200,190,255,.03) 0 8px, transparent 8px 16px), rgba(12,11,26,.9); }
  /* Calques par-dessus le contenu : verre opaque (plus de texte fantôme), liseré gardé */
  html .aim-toast.plate, html .aim-cookie-banner.plate, html .aim-tour-popup.plate{ --aim-glass:linear-gradient(180deg, #191630, #0D0C1E); }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html .plate{ --aim-glass:linear-gradient(180deg, rgba(22,19,42,.94), rgba(12,11,26,.96)); }
}
/* Mouvement réduit : décor intact, mais ni liseré qui tourne, ni reflet qui balaie, ni glissement */
@media (prefers-reduced-motion: reduce){
  html:root{ --aim-sheen:none; --aim-red-sheen:none; --aim-glass-sheen:none; }
  html .plate::before{ animation:none !important; }
}

/* ───── 14. Chargeur planète : planète rouge, anneau, lune en orbite ─────
   Uniquement transform et opacity : le bras (.aim-orbit__sys) tourne dans le plan aplati de l'anneau,
   la lune contre-tourne et contre-aplatit (elle reste ronde), la lueur de la planète respire en opacité.
   Balisage inchangé : .aim-orbit > __ring, __planet, __ring--front, __sys > __moon. */
html .aim-orbit{ position:relative; width:104px; height:104px; margin:0 auto; }
html .aim-orbit__planet{
  position:absolute; left:50%; top:50%; width:40px; height:40px; margin:-20px 0 0 -20px; border-radius:50%; z-index:2;
  background:radial-gradient(circle at 32% 28%, #ffb0b7 0%, #ff4655 26%, #8e2232 60%, #24080f 100%);
  box-shadow:0 0 22px rgba(255,70,85,.38), inset -7px -9px 14px rgba(0,0,0,.6);
}
html .aim-orbit__planet::after{
  content:''; position:absolute; top:0; right:0; bottom:0; left:0; border-radius:50%; pointer-events:none;
  box-shadow:0 0 34px rgba(255,70,85,.5); opacity:0;
  animation:aimPlanetGlow 2.4s ease-in-out infinite;
}
html .aim-orbit__ring{
  position:absolute; left:50%; top:50%; width:92px; height:30px; margin:-15px 0 0 -46px; border-radius:50%;
  border:1.5px solid rgba(214,204,255,.3); transform:rotate(-16deg); z-index:1;
}
html .aim-orbit__ring--front{ z-index:3; clip-path:inset(50% 0 0 0); border-color:rgba(214,204,255,.45); }
html .aim-orbit__sys{
  position:absolute; left:50%; top:50%; width:0; height:0; z-index:3;
  transform:rotate(-16deg) scaleY(.326) rotate(180deg);
  animation:aimOrbitArm 1.8s linear infinite, aimOrbitZ 1.8s linear infinite;
}
html .aim-orbit__moon{
  position:absolute; left:0; top:0; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%;
  background:#EDEAE3; box-shadow:0 0 12px rgba(255,255,255,.9), 0 0 3px #fff;
  transform:translateX(46px) rotate(-180deg) scaleY(3.0675) scale(1.15);
  animation:aimOrbitMoon 1.8s linear infinite;
}
html .aim-orbit--sm{ transform:scale(.62); margin:-20px auto; }
html .aim-orbit--lg{ transform:scale(1.25); margin:12px auto; }
@keyframes aimOrbitArm{ from{ transform:rotate(-16deg) scaleY(.326) rotate(180deg); } to{ transform:rotate(-16deg) scaleY(.326) rotate(-180deg); } }
@keyframes aimOrbitMoon{
  0%{ transform:translateX(46px) rotate(-180deg) scaleY(3.0675) scale(1.15); }
  25%{ transform:translateX(46px) rotate(-90deg) scaleY(3.0675) scale(1.25); }
  50%{ transform:translateX(46px) rotate(0deg) scaleY(3.0675) scale(1); }
  75%{ transform:translateX(46px) rotate(90deg) scaleY(3.0675) scale(.75); }
  100%{ transform:translateX(46px) rotate(180deg) scaleY(3.0675) scale(1.15); }
}
@keyframes aimOrbitZ{ 0%, 49.9%{ z-index:3; } 50%, 100%{ z-index:1; } }
@keyframes aimPlanetGlow{ 0%, 100%{ opacity:0; } 50%{ opacity:1; } }
@media (prefers-reduced-motion: reduce){
  html .aim-orbit__moon, html .aim-orbit__sys, html .aim-orbit__planet::after{ animation:none; }
  html .aim-orbit__sys{ transform:rotate(-16deg) scaleY(.326) rotate(136.8deg); }
  html .aim-orbit__moon{ transform:translateX(46px) rotate(-136.8deg) scaleY(3.0675) scale(1.2); }
  html .aim-orbit__planet::after{ opacity:.5; }
}

/* ───── 15. Pied commun : la même police sur toutes les pages ─────
   Plusieurs pages posent « * { font-family:'Inter' } », qui remplaçait la mono du pied sur les liens et le ©.
   Le logo .foot-brand est exclu et garde Anton, son point rouge aussi. */
html :is(.foot-row, .foot-links) > :not(.foot-brand),
html .e404-links > *{ font-family:'JetBrains Mono',monospace; }
html .foot-brand .dot{ font-family:inherit; }

/* ───── 16. Guide du coach : le bandeau cookies s'efface le temps du guide (classe html.aim-touring posée par tour.js) ─────
   visibility:hidden et pas seulement opacity:0 : le guide ne libère la place du bandeau que s'il est masqué ainsi. */
html.aim-touring .aim-cookie-banner{ visibility:hidden; opacity:0; pointer-events:none; }
