/* ════════════════════════════════════════════════════════════════
 *  POLAR UI — style « launcher Minecraft » (inspiré de WaterLandCraft),
 *  partagé par tout le site.
 *
 *  Chargée en fin de <head>, après la feuille de chaque page : à specificité
 *  égale, elle l'emporte. Elle redéfinit aussi les variables de couleur des
 *  pages (--bg, --surface…), ce qui éclaircit d'un coup tous les fonds.
 *
 *  Repères :
 *    - fond bleu marine (#13213d), pas noir ; cartes en verre bleuté ;
 *    - gros arrondis : 18 px pour les boutons, 22–24 px pour les cartes ;
 *    - bouton principal « gélule » brillant : dégradé bleu, reflet blanc en
 *      haut, liseré sombre en bas, ombre colorée douce ;
 *    - texte des boutons en casse normale, gras, sans interlettrage ;
 *    - titres très gras (Montserrat 900), texte courant en Roboto.
 * ════════════════════════════════════════════════════════════════ */

/* Polices hébergées sur le site et préchargées par chaque page : le texte de
   la barre s'affiche directement dans la bonne police, sans saut quand une
   police Google arrive après coup. Noms propres (« Polar … ») pour ne pas se
   mêler aux déclarations Google que chargent encore certaines pages. */
@font-face {
    font-family: 'Polar Montserrat';
    src: url('/fonts/montserrat-latin.woff2') format('woff2');
    font-weight: 300 900; font-style: normal; font-display: block;
    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: 'Polar Roboto';
    src: url('/fonts/roboto-latin.woff2') format('woff2');
    font-weight: 400 900; font-style: normal; font-display: block;
    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 {
    --pui-bg: #13213d;
    --pui-bg-2: #172848;
    --pui-surface: #1b2d50;
    --pui-card: linear-gradient(180deg, rgba(40,64,110,0.55) 0%, rgba(28,46,84,0.55) 100%);
    --pui-card-solid: #1d3157;
    --pui-line: rgba(255,255,255,0.09);
    --pui-line-2: rgba(255,255,255,0.16);
    --pui-text-2: #a9bbd8;
    --pui-blue: #4c9dff;
    /* Échelle d'arrondis : tout le site n'utilise que ces cinq valeurs (plus
       50 % pour les cercles). xs = petits éléments (pastilles, vignettes,
       barres), sm = champs, onglets, petites tuiles, btn = boutons et blocs
       moyens, card = cartes et panneaux, pill = gélules. */
    --pui-r-xs: 12px;   /* 8 px donnait des boutons presque carrés */
    --pui-r-sm: 14px;
    --pui-r-btn: 18px;
    --pui-r-card: 24px;
    --pui-r-pill: 999px;

    /* Ombres : une pour détacher une carte du fond, une pour ce qui flotte
       (aperçus, modales). Pas de halo coloré autour des blocs. */
    --pui-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 30px rgba(5,12,30,0.25);
    --pui-shadow-lg: 0 24px 60px rgba(5,12,30,0.5);

    /* Variables des pages, éclaircies (chaque page les déclare dans son <style>). */
    --bg: #13213d;
    --surface: #1b2d50;
    --surface-2: #213760;
    --surface-3: #182a4a;
    --muted: #8fa3c4;
    --muted-2: #b9c8e0;
    --glass: rgba(255,255,255,0.06);
    --glass-strong: rgba(255,255,255,0.09);
    --glass-border: rgba(255,255,255,0.1);
}

body {
    font-family: 'Polar Roboto', 'Roboto', 'Polar Montserrat', 'Montserrat', sans-serif;
    background: radial-gradient(1200px 700px at 50% -10%, #1d3560 0%, transparent 70%), var(--pui-bg);
    background-attachment: fixed;
}
h1, h2, h3, .section-heading, .hero-brand-name, .logo-text { font-family: 'Polar Montserrat', 'Montserrat', sans-serif; }

/* La barre de défilement réserve toujours sa place : une page courte et une
   page longue ont la même largeur utile, donc la barre ne glisse pas. */
html { scrollbar-gutter: stable; }

/* Navigation entre pages sans « rechargement » visible : le navigateur garde
   l'ancienne page à l'écran jusqu'à ce que la nouvelle soit prête, puis fond
   le contenu. La barre, nommée à part, reste immobile (Chrome/Edge/Safari
   récents ; ailleurs, navigation classique). */
@view-transition { navigation: auto; }
.navbar { view-transition-name: polar-navbar; }
::view-transition-group(polar-navbar) { animation: none; }
::view-transition-old(polar-navbar) { display: none; }
::view-transition-new(polar-navbar) { animation: none; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.18s; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ─────────────── BARRE DE NAVIGATION ─────────────── */
/* Posée en haut de la page et qui défile avec elle (pas de barre collante
   translucide). Toute sa mise en page est ici, en CSS statique : elle est
   identique dès le premier affichage, sur toutes les pages. */
.navbar,
.navbar.scrolled {
    position: absolute;
    top: 0; left: 0; right: 0; width: auto;
    background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transition: none;
}
.nav-container,
.navbar .nav-container {
    max-width: 1400px;
    height: 76px;
    margin: 0 auto;
    padding: 0 32px;
    /* Trois colonnes : logo et compte à leur taille, les liens centrés dans
       la place qui reste. Le bloc de droite étant plus large que le logo, les
       liens se décalent un peu à gauche au lieu de passer sous Download. */
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    column-gap: 14px;
}
/* Toute la barre dans la police préchargée (les <i> d'icônes gardent la leur). */
.navbar :where(a, span, button, div, li) { font-family: 'Polar Montserrat', 'Montserrat', sans-serif; }
.nav-container > .logo { justify-self: start; }
.nav-container > .nav-right { justify-self: end; }
.logo-img, .nav-container > .logo .logo-img { width: 34px; height: 34px; }
.logo-text { font-size: 0.95rem; font-weight: 900; letter-spacing: 1px; }

/* Liens : texte simple, la page active sur une pastille. Même graisse
   partout : un lien actif en gras serait plus large et décalerait les autres. */
.nav-links,
.nav-container > .nav-links {
    position: static;
    left: auto;
    transform: none;
    justify-self: center;
    display: flex;
    gap: 4px;
}
.nav-links a {
    padding: 9px 14px;
    border-radius: var(--pui-r-sm);
    color: rgba(225,234,250,0.65);
    font-family: 'Polar Montserrat', 'Montserrat', sans-serif;
    font-size: 0.86rem; font-weight: 700; letter-spacing: 0;
    transition: background 0.15s, color 0.15s;
}
.nav-links a i { display: none; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active,
.nav-links a.current { color: #fff; background: rgba(255,255,255,0.1); }
.login-btn { white-space: nowrap; }
/* Six liens + Download/panier/compte : on resserre sur les écrans moyens
   plutôt que de laisser les liens passer sous le bouton Download. */
@media (max-width: 1300px) {
    .nav-container, .navbar .nav-container { grid-template-columns: auto minmax(0,1fr) auto; padding: 0 20px; }
    .nav-links a { padding: 8px 10px; font-size: 0.82rem; }
}
@media (max-width: 1100px) {
    .nav-links a { padding: 8px 7px; font-size: 0.78rem; }
    .btn-nav-download { padding: 0 14px; }
}

/* Pastilles de compte (profil, Discord) : carrés arrondis en verre. */
.profile-btn,
.discord-icon {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--pui-r-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: background 0.15s, border-color 0.15s;
}
.profile-btn { padding: 6px 14px 6px 6px; height: 44px; }
.profile-btn img { width: 30px; height: 30px; border-radius: var(--pui-r-xs); }
.profile-btn span { font-size: 0.86rem; font-weight: 700; }
.profile-btn:hover,
.discord-icon:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); color: #fff; }
.discord-icon { width: 44px; height: 44px; }

/* Bases du bouton profil et du menu : définies ICI pour toutes les pages
   (certaines, comme la page compte, n'en avaient aucune). */
.profile-dropdown { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; cursor: pointer; }
.profile-btn img { flex-shrink: 0; }
.dropdown-menu {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; z-index: 1200;
    opacity: 0; visibility: hidden;
}
.dropdown-menu.active { opacity: 1; visibility: visible; }
.dropdown-username { font-weight: 700; font-size: 0.9rem; color: #fff; margin-bottom: 2px; }
.dropdown-tag { font-size: 0.76rem; color: #a9bbd8; }
.dropdown-item { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }

/* Menu du compte : panneau en verre très arrondi, comme dans le launcher. */
.dropdown-menu {
    background: rgba(27,45,80,0.92);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--pui-r-btn);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(5,10,25,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(-6px) scale(0.97);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.dropdown-menu.active { transform: none; }
.dropdown-header {
    padding: 10px 12px; margin-bottom: 6px;
    background: rgba(255,255,255,0.05); border: none; border-radius: var(--pui-r-sm);
}
.dropdown-item { border-radius: var(--pui-r-sm); padding: 10px 12px; font-size: 0.86rem; color: rgba(232,240,255,0.8); }
.dropdown-item i { width: 14px; text-align: center; color: rgba(255,255,255,0.45); }
.dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dropdown-item.danger { color: #ff8a8a; }
.dropdown-item.danger i { color: rgba(255,138,138,0.7); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.12); color: #ffb0b0; }

/* ─────────────── BOUTONS ─────────────── */
/* Principal : gélule bleue brillante. */
.btn-nav-download,
.btn-yellow,
.btn-primary,
.dl-btn,
.checkout-btn,
.join-btn,
.faq-btn,
.tab-btn.primary,
.gate-btn.primary,
.btn-apply.blue,
.btn-view-category:not(.ghost),
.purchase-btn.solid,
.btn-submit {
    background: radial-gradient(130% 160% at 50% 0%, #86c8ff 0%, #4597ff 42%, #2468ee 100%);
    border: none;
    border-radius: var(--pui-r-btn);
    color: #fff;
    font-family: 'Polar Montserrat', 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(10,40,120,0.35);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.35),
        inset 0 -3px 0 rgba(8,40,130,0.35),
        0 8px 22px rgba(47,128,255,0.35);
    filter: none;
    transition: filter 0.15s, transform 0.12s, box-shadow 0.15s;
}
.btn-nav-download:hover,
.btn-yellow:hover,
.btn-primary:hover,
.dl-btn:hover,
.checkout-btn:hover:not(:disabled),
.join-btn:hover,
.faq-btn:hover,
.tab-btn.primary:hover,
.gate-btn.primary:hover,
.btn-apply.blue:hover,
.btn-view-category:not(.ghost):hover,
.purchase-btn.solid:hover,
.btn-submit:hover {
    background: radial-gradient(130% 160% at 50% 0%, #86c8ff 0%, #4597ff 42%, #2468ee 100%);
    filter: brightness(1.08);
    transform: none;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.4),
        inset 0 -3px 0 rgba(8,40,130,0.35),
        0 10px 28px rgba(47,128,255,0.45);
}
.btn-nav-download:active,
.btn-yellow:active,
.btn-primary:active,
.dl-btn:active,
.checkout-btn:active:not(:disabled),
.join-btn:active,
.faq-btn:active,
.tab-btn.primary:active,
.gate-btn.primary:active,
.btn-apply.blue:active,
.btn-view-category:not(.ghost):active,
.purchase-btn.solid:active,
.btn-submit:active {
    transform: scale(0.97);
    filter: brightness(0.96);
}
.btn-nav-download { height: 44px; padding: 0 22px; border-radius: var(--pui-r-sm); font-size: 0.86rem; }
.btn-yellow { height: 58px; padding: 0 36px; font-size: 1rem; }
.dl-btn { min-height: 50px; font-size: 0.95rem; }

/* Secondaire : gélule en verre bleuté. */
.btn-discord,
.btn-ghost,
.btn-secondary,
.tab-btn.ghost,
.gate-btn.ghost,
.btn-view-category.ghost,
.btn-apply.cyan,
.btn-more,
.btn-back,
.purchase-btn:not(.solid) {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--pui-r-btn);
    color: #fff;
    font-family: 'Polar Montserrat', 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 6px 18px rgba(5,12,30,0.25);
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.btn-discord:hover,
.btn-ghost:hover,
.btn-secondary:hover,
.tab-btn.ghost:hover,
.gate-btn.ghost:hover,
.btn-view-category.ghost:hover,
.btn-apply.cyan:hover,
.btn-more:hover,
.btn-back:hover,
.purchase-btn:not(.solid):hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    transform: none;
}
.btn-discord:active,
.btn-ghost:active,
.btn-secondary:active,
.tab-btn.ghost:active,
.gate-btn.ghost:active,
.btn-view-category.ghost:active,
.btn-apply.cyan:active,
.btn-more:active,
.btn-back:active,
.purchase-btn:not(.solid):active { transform: scale(0.97); }
.btn-discord { height: 58px; padding: 0 30px; font-size: 1rem; }

/* Discord : gélule violette brillante. */
.btn-discord:hover,
.tab-btn.discord-btn,
.gate-btn.discord {
    background: radial-gradient(130% 160% at 50% 0%, #9aa3ff 0%, #6570f5 45%, #4652d8 100%);
    border: none;
    color: #fff;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), inset 0 -3px 0 rgba(30,30,120,0.35), 0 8px 22px rgba(88,101,242,0.35);
}
.tab-btn.discord-btn:hover,
.gate-btn.discord:hover { transform: none; opacity: 1; filter: brightness(1.08); }

/* « Log in » : bouton du site (verre bleuté + icône), plus le violet Discord. */
.login-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: var(--pui-r-sm);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff; text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 6px 16px rgba(5,12,30,0.25);
    font-family: 'Polar Montserrat', 'Montserrat', sans-serif; font-size: 0.86rem; font-weight: 800;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.login-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.24); transform: none; opacity: 1; }
.login-btn:active { transform: scale(0.97); }

/* Panier : carré arrondi en verre, pastille de compteur bleue. */
.navbar .cart-btn {
    position: relative; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--pui-r-sm);
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    color: #fff; font-size: 1.1rem; text-decoration: none; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.navbar .cart-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.navbar .cart-badge {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    display: none; align-items: center; justify-content: center; border-radius: var(--pui-r-sm);
    background: radial-gradient(130% 160% at 50% 0%, #86c8ff 0%, #4597ff 45%, #2468ee 100%);
    color: #fff; font-family: 'Polar Montserrat', 'Montserrat', sans-serif; font-size: 0.68rem; font-weight: 800;
    box-shadow: 0 0 0 2px #13213d;
}
.navbar .cart-badge.show { display: flex; }

/* Icônes Lucide (police) : alignées sur le texte, taille du texte. */
[class^="icon-"], [class*=" icon-"] { line-height: 1; vertical-align: -0.12em; }
.btn-nav-download [class^="icon-"], .login-btn [class^="icon-"] { font-size: 1.05em; }
.profile-btn .icon-chevron-down { font-size: 0.8rem; opacity: 0.7; }
.dropdown-item [class^="icon-"] { width: 16px; text-align: center; font-size: 1rem; color: rgba(255,255,255,0.55); }
.dropdown-item.danger [class^="icon-"] { color: rgba(255,138,138,0.8); }

.gate-btn { border-radius: var(--pui-r-sm); text-transform: none; letter-spacing: 0; }

button:disabled,
.checkout-btn:disabled { box-shadow: none !important; transform: none !important; filter: grayscale(0.4) !important; }

/* ─────────────── CARTES ─────────────── */
/* La carte n'est pas cliquable (seul son bouton l'est) : aucune réaction au
   survol, sinon elle promet un clic qui ne fait rien. */
.platform-card {
    background: var(--pui-card);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--pui-line);
    border-radius: var(--pui-r-card);
    box-shadow: var(--pui-shadow);
}
.platform-card .version { color: var(--pui-text-2); }

/* Champs : gros arrondis, fond clair translucide, comme le formulaire de connexion. */
.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.07);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--pui-r-btn);
    padding: 15px 18px;
}
.form-group input:focus,
.form-group textarea:focus { background: rgba(255,255,255,0.1); border-color: rgba(120,180,255,0.6); }

/* ─────────────── TITRES DE SECTION ─────────────── */
.section-eyebrow {
    display: table; margin: 0 auto 16px;
    padding: 6px 14px; border-radius: var(--pui-r-sm);
    font-family: 'Polar Montserrat', 'Montserrat', sans-serif;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px;
    color: #fff;
    background: rgba(76,157,255,0.25);
    border: 1px solid rgba(120,180,255,0.3);
}
.section-heading { font-weight: 900; letter-spacing: -0.5px; }
.section-desc { color: var(--pui-text-2); }

.download-hero {
    background: none;
}
.download-hero h1 {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    letter-spacing: -1px;
}

/* ─────────────── ACCUEIL ─────────────── */
/* Image de fond franche, voile bleu marine à gauche pour le texte. */
.particles,
.hero-bg,
.hero-preview-frame,
.scroll-hint { display: none; }
/* Image floutée : le décor reste lisible sans voler la vedette au texte.
   Elle déborde de 40 px pour que le flou ne laisse pas de bords clairs. */
.hero-bg-image { filter: blur(10px) brightness(0.8) saturate(1.05); transform: none; inset: -40px; }
.hero-bg-blur {
    background: linear-gradient(to right, rgba(19,33,61,0.92) 0%, rgba(19,33,61,0.6) 45%, rgba(19,33,61,0.15) 80%, rgba(19,33,61,0.05) 100%);
}
.hero::after { background: linear-gradient(to bottom, transparent 0%, var(--pui-bg) 100%); }
.hero-brand-logo { filter: none; }
/* Logo animé (planche 10 × 8 de 256 px, pilotée par le script de l'accueil).
   Position par défaut = dernière image (colonne 3, ligne 8), l'état final. */
.hl-sprite {
    flex-shrink: 0;
    background: url('/images/logo-anim.webp') no-repeat;
    background-size: 1000% 800%;
    background-position: 22.2222% 100%;
}
.hero-tagline { color: #fff; font-weight: 500; font-size: 1.05rem; }
.hero-brand { margin-bottom: 34px; }
.hero-btns { gap: 14px; }

/* Hero : le texte part vers la gauche, l'aperçu du launcher vers la droite.
   Toutes les tailles suivent la largeur d'écran (vw) pour que les deux blocs
   ne se chevauchent jamais : à gauche ~33vw, à droite 40vw, 6vw d'écart. */
.hero-split {
    max-width: none;
    padding: 80px clamp(24px, 4vw, 72px);
    gap: clamp(32px, 6vw, 120px);
    justify-content: space-between;
}
.hero-left { flex: 0 1 auto; }
.hero-brand { gap: clamp(14px, 1.6vw, 26px); }
.hero-brand-logo { width: clamp(96px, 10vw, 200px); }
.hero-brand-name { font-size: clamp(2.4rem, 4.4vw, 5.2rem); }
.hero-right { width: clamp(300px, 40vw, 720px); flex-shrink: 0; }
@media (max-width: 860px) {
    .hero-split { justify-content: center; }
    .hero-brand-logo { width: 110px; }
    .hero-brand-name { font-size: clamp(2.4rem, 9vw, 3.6rem); }
    .hero-right { width: 100%; max-width: 520px; }
}

.hero-right { animation: puiFadeIn 0.5s ease 0.2s both; }
.hero-preview-card,
.hero-preview-card:hover {
    transform: none;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--pui-r-card);
    box-shadow: 0 24px 60px rgba(5,12,30,0.5);
}
@keyframes puiFadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal { transform: none; transition: opacity 0.5s ease; }

/* Barres FPS : pistes plus épaisses et rondes. */
.fps-cm-track { height: 12px; background: rgba(255,255,255,0.08); }
.fps-cm-bar { background: rgba(255,255,255,0.25); }
.fps-cm-row.polar .fps-cm-bar {
    background: linear-gradient(180deg, #86c8ff, #2468ee);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.fps-cm-logo-wrap { border-radius: var(--pui-r-btn); background: rgba(255,255,255,0.08); }
.fps-cm-logo-wrap img { border-radius: var(--pui-r-sm); }

.gameplay-section { background: none; }
.gameplay-section::before { display: none; }
.gameplay-frame { border: 1px solid rgba(255,255,255,0.14); border-radius: var(--pui-r-card); box-shadow: 0 24px 60px rgba(5,12,30,0.5); }
.gameplay-inner .gameplay-subtitle { color: #8cc6ff; }

/* ─────────────── PIED DE PAGE ─────────────── */
footer { background: rgba(14,25,48,0.7); border-top: 1px solid rgba(255,255,255,0.06); }
footer::before { display: none; }
/* Réseaux : tuiles carrées arrondies colorées, comme en bas du launcher. */
.footer-social-link {
    background: rgba(255,255,255,0.08);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--pui-r-sm);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.footer-social-link.discord { background: radial-gradient(130% 160% at 50% 0%, #9aa3ff 0%, #5865f2 60%); border-color: transparent; }
.footer-bottom { background-image: none; border-top: 1px solid rgba(255,255,255,0.06); }

/* Entrée du hero : fondu court. */
.hero-brand, .hero-tagline, .hero-btns { animation: puiFadeIn 0.45s ease both; }
.hero-tagline { animation-delay: 0.08s; }
.hero-btns { animation-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
    .hero-right, .hero-brand, .hero-tagline, .hero-btns { animation: none; }
}

/* ─────────────── TÉLÉCHARGEMENT ─────────────── */
/* Boutons des cartes Windows / macOS / Linux : gélule bleue brillante au
   lieu du contour blanc en majuscules. */
.download-button,
.download-buttons.split {
    background: radial-gradient(130% 160% at 50% 0%, #86c8ff 0%, #4597ff 42%, #2468ee 100%);
    border: none;
    border-radius: var(--pui-r-btn);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -3px 0 rgba(8,40,130,0.35), 0 8px 22px rgba(47,128,255,0.35);
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.download-button {
    text-transform: none; letter-spacing: 0;
    font-size: 0.95rem; font-weight: 800;
    text-shadow: 0 1px 0 rgba(10,40,120,0.35);
    transition: filter 0.15s, transform 0.12s;
}
.download-button:hover { background: radial-gradient(130% 160% at 50% 0%, #86c8ff 0%, #4597ff 42%, #2468ee 100%); color: #fff; filter: brightness(1.08); transform: none; box-shadow: inset 0 2px 0 rgba(255,255,255,0.4), inset 0 -3px 0 rgba(8,40,130,0.35), 0 10px 28px rgba(47,128,255,0.45); }
.download-button:active { transform: scale(0.97); }
.download-buttons.split .download-button { background: transparent; box-shadow: none; }
.download-buttons.split .download-button:hover { background: rgba(255,255,255,0.12); box-shadow: none; filter: none; }
.download-buttons.split .download-button + .download-button { border-left: 1px solid rgba(255,255,255,0.3); }
.platform-card .version-info { letter-spacing: 0.3px; font-style: normal; text-transform: none; }

/* Têtes Minecraft en 3D (mc-heads.net/head) partout sur le site : rendu
   isométrique à fond transparent. On retire coins arrondis, fonds et cadres
   pensés pour les anciennes têtes plates, qui découpaient le cube. */
img[src*="mc-heads.net/head/"] {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}
