:root {
    --bs-font-sans-serif: 'Rubik', sans-serif;
}

[data-bs-theme=dark] {
    --bs-body-bg: #2e2c47;
    --bs-body-bg-rgb: 46, 44, 71;
    --bs-primary-color-contrast: #2e2c47!important;
}

body {
    background: #d1d0d6;
}

h1 {
    color: #2e2c47;
    background-color: #989fc1;
    text-align: center;
    padding: 1rem 0;
    font-weight: 700;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
}

.btn {
    font-weight: bold;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.4);
}
.btn-primary {
    background-color: #989fc1;
}


.content {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.home {
    min-height: 100vh;
    padding-bottom: 5.5rem;
}

.home .navbar {
    margin-bottom: 5rem;
}

.home::after {
    position: absolute;
    z-index: 0;
    bottom: 1px;
    height: 240px;
    left: 0;
    right: 0;
    content: "";
    /* background: url(../svg/header_shape.svg) center / cover no-repeat; */
}

.top-header,
.home {
    position: relative;
}

.top-header .logo {
    max-height: 175px;
}

.home .logo {
    max-height: 275px;
}

.home::before,
.top-header::after {
    position: absolute;
    background-color: rgba(44, 66, 71, 0.44);
    content: "";
    z-index: 0;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.navbar .nav-item {
    margin-right: 0.25rem;
    margin-left: 0.25rem;
}

.navbar .nav-item .nav-link {
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active,
.navbar .dropdown-toggle::after {
    color: var(--bs-primary);
}

.footer {
    position: relative;
    margin-top: 350px;
}

.home-footer {
    background-color: #34324b !important;
}

.footer .logo {
    max-height: 200px;
}

.footer .text-bg-primary a {
    color: #2e2c47;
}

.footer-links .list-inline-item:not(:last-child)::after {
    margin-left: 0.5rem;
    font-weight: bolder;
    content: "-";
}

.footer::before {
    position: absolute;
    z-index: -1;
    height: 280px;
    top: -275px;
    left: 0;
    right: 0;
    content: "";
    background: url('../svg/footer_shape.svg') center;
}

.flyffu-center{

}

.flyffu-flex{
    display: flex;
    justify-content: space-between;
}

.flyffu-flex-vertical{
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
}


.shadow__btn {
    padding: 15px 30px;
    border: none;
    font-size: 20px;
    color: #fff;
    border-radius: 7px;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.5s;
    transition-property: background;
  }
  
  .shadow__btn {
    background: none;
    border : 2px solid white;
  }
  
  .shadow__btn:hover {
    background: #404872
  }

@media (max-width: 1200px) { 
    .flyffu-flex {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .flyffu-padding-vertical{
        margin-bottom: 40px;
        margin-top: 40px;
    }
}

/* Solde d'Upoints et bouton de recharge dans la navbar */
.navbar .upoints,
.navbar .upoints-action {
    display: flex;
    align-items: center;
}

.navbar .upoints-balance {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.navbar .upoints-balance .upoints-icon {
    height: 1.25rem;
    width: 1.25rem;
    object-fit: contain;
    margin-left: 0.25rem;
    vertical-align: text-bottom;
}

/*
 * Bouton de recharge : fond --bs-body-bg. La barre est en mode clair (#fff), le bouton porte
 * data-bs-theme="dark" pour récupérer le bleu nuit du thème (#2e2c47), comme les cartes du site.
 */
.navbar .upoints-buy.btn-primary {
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: var(--bs-body-bg);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-body-bg);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-body-bg);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-transform: uppercase;
    white-space: nowrap;
}

.navbar .upoints-buy.btn-primary:hover,
.navbar .upoints-buy.btn-primary:focus {
    background-color: var(--bs-body-bg);
    color: #fff;
    filter: brightness(1.3);
}

.navbar .upoints-buy .bi {
    margin-right: 0.25rem;
}

/* Liens légaux du pied de page : discrets */
.footer .footer-links {
    margin-bottom: 0.25rem;
}

.footer .footer-links a {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.6;
    text-decoration: none;
}

.footer .footer-links a:hover,
.footer .footer-links a:focus {
    opacity: 1;
    text-decoration: underline;
}

/* Case de renonciation au droit de rétractation (page de recharge) */
.withdrawal-consent {
    color: #2e2c47;
    font-weight: 500;
}

.withdrawal-consent a {
    color: var(--bs-primary);
    text-decoration: underline;
}

.withdrawal-consent .form-check-input {
    border-color: #2e2c47;
    background-color: #fff;
}

.withdrawal-consent .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Widget Discord : coins propres, sans fond blanc */
.discord-widget {
    border: 0;
    border-radius: 8px;
    color-scheme: normal;
    background: transparent;
}

/* ---------------------------------------------------------------- Accueil : sections défilantes */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #d1d0d6;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-cue .bi {
    font-size: 1.25rem;
    animation: scroll-cue-bounce 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
    color: #fff;
}

@keyframes scroll-cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue .bi {
        animation: none;
    }
}

.home-band {
    padding: 5rem 0;
}

.home-band--tight {
    padding: 3.5rem 0;
}

.home-band--light {
    background: #d1d0d6;
    color: #2e2c47;
}

.home-band--dark {
    background: #2e2c47;
    color: #d1d0d6;
}

.home-title {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2e2c47;
    background-color: #989fc1;
}

.home-kicker {
    margin-bottom: 1.75rem;
    text-align: center;
    font-size: 0.875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: #d1d0d6;
}

.home-note {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #989fc1;
}

.feature-card {
    padding: 1.75rem 1.25rem;
    text-align: center;
    background: #2e2c47;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #989fc1;
}

.feature-card .bi {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    color: #989fc1;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #d1d0d6;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #989fc1;
}

.home-stat {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    color: #2e2c47;
}

.home-stat-label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: #2b377a;
}

.home-cta h2 {
    margin: 0;
    font-weight: 500;
    color: #d1d0d6;
}

.cta-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 7px;
    transition: background-color 0.25s ease;
}

.cta-btn:hover {
    color: #fff;
    background: #404872;
}

.cta-btn--solid {
    color: #2e2c47;
    background: #989fc1;
    border-color: #989fc1;
}

.cta-btn--solid:hover {
    color: #2e2c47;
    background: #b3b8d3;
}

.home-legal a {
    font-size: 0.75rem;
    color: #989fc1;
    opacity: 0.7;
}

.home-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.home-legal .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

/* Apparition au défilement (activée uniquement si le script tourne) */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Navigateur de classes : boutons à gauche, contenu à droite */
.class-browser {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.class-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.class-tab {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    text-align: left;
    color: #d1d0d6;
    background: transparent;
    border: 1px solid #4a4870;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.class-tab .bi {
    font-size: 1.25rem;
    color: #989fc1;
}

.class-tab-name {
    font-weight: 500;
}

.class-tab:hover {
    border-color: #989fc1;
    transform: translateX(3px);
}

.class-tab.is-active {
    color: #2e2c47;
    background: #989fc1;
    border-color: #989fc1;
}

.class-tab.is-active .bi,
.class-tab.is-active .class-tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.class-panels {
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #4a4870;
    border-radius: 8px;
}

.class-panel {
    display: grid;
    grid-template-columns: minmax(160px, 40%) minmax(0, 1fr);
    gap: 1.5rem;
    height: 100%;
    padding: 1.5rem;
    animation: class-panel-in 0.3s ease;
}

.class-panel[hidden] {
    display: none;
}

@keyframes class-panel-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: none; }
}

.class-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: #26243b;
    border-radius: 8px;
    overflow: hidden;
}

.class-art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.class-tab-img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

/* Emblème 64 px utilisé comme visuel du panneau : agrandi sans être étiré */
.class-art .class-art-emblem {
    width: 8rem;
    height: 8rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.class-art .bi {
    font-size: 5rem;
    color: #989fc1;
}

.class-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.class-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #989fc1;
}

.class-playstyle {
    padding: 0.15rem 0.6rem;
    color: #2e2c47;
    background: #989fc1;
    border-radius: 999px;
    font-weight: 500;
}

.class-info h3 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.class-text {
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
    color: #d1d0d6;
}

.class-link {
    align-self: flex-start;
    font-size: 0.875rem;
    font-weight: 500;
    color: #989fc1;
}

.class-link:hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .class-browser {
        grid-template-columns: minmax(0, 1fr);
    }

    .class-list {
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x proximity;
    }

    .class-tab {
        flex: 0 0 auto;
        width: auto;
        grid-template-columns: 1.5rem auto;
        scroll-snap-align: start;
    }

        .class-tab:hover {
        transform: none;
    }

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

    .class-art {
        min-height: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .class-panel {
        animation: none;
    }
}

/* ==========================================================================
   PROFONDEUR
   Un seul bloc : supprimer tout ce qui suit cette ligne pour revenir au rendu à plat.
   Principe : lumière en haut, ombres portées douces vers le bas, bandes qui se superposent.
   ========================================================================== */

/* Fond des pages intérieures : léger dégradé plutôt qu'un aplat */
body {
    background: linear-gradient(180deg, #d8d7dd 0%, #cbcad2 100%) fixed;
}

/* En-tête des pages intérieures : posé au-dessus du contenu */
.top-header {
    box-shadow: 0 14px 30px -14px rgba(20, 18, 40, 0.55);
    z-index: 1;
}

/* Titres sur bandeau : léger relief */
h1,
.home-title {
    box-shadow: 0 10px 20px -12px rgba(20, 18, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Cartes du site (boutique, wiki, FAQ…) */
.card {
    box-shadow: 0 14px 28px -16px rgba(20, 18, 40, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:has(> a):hover,
a:hover > .card {
    transform: translateY(-4px);
    box-shadow: 0 22px 36px -16px rgba(20, 18, 40, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Tableaux (classement…) */
.content .table {
    box-shadow: 0 16px 32px -18px rgba(20, 18, 40, 0.55);
}

/* Boutons : légère élévation au survol */
.btn,
.shadow__btn,
.cta-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}

.btn:hover,
.shadow__btn:hover,
.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn--solid {
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6);
}

/* ---- Accueil : bandes superposées ---- */
.home-sections {
    position: relative;
}

.home-band {
    position: relative;
}

/* Chaque bande passe au-dessus de la précédente et lui projette une ombre */
.home-band + .home-band,
.home-sections > .home-band:first-child {
    box-shadow: 0 -12px 30px rgba(10, 8, 25, 0.28);
}

.home-band--dark {
    background: radial-gradient(120% 90% at 50% 0%, #3b3961 0%, #2e2c47 52%, #25233a 100%);
}

.home-band--light {
    background: linear-gradient(180deg, #dcdbe1 0%, #cfcdd5 100%);
}

/* Le héros « repose » au-dessus de la première bande */
.home {
    z-index: 2;
    box-shadow: 0 18px 40px -10px rgba(10, 8, 25, 0.55);
}

/* Cartes de features : relief et reflet haut */
.feature-card {
    background: linear-gradient(180deg, #373453 0%, #2a2842 100%);
    box-shadow: 0 18px 30px -18px rgba(20, 18, 40, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 38px -18px rgba(20, 18, 40, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Navigateur de classes : panneau posé, emplacement d'illustration en creux */
.class-panels {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.class-art {
    background: radial-gradient(circle at 50% 40%, #323050 0%, #26243b 70%);
    box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.55);
}

.class-tab {
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.class-tab.is-active {
    box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Widget Discord posé sur le décor */
.discord-widget {
    box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.75);
}

/* Barre de navigation : le bouton Top-up ressort légèrement */
.navbar .upoints-buy.btn-primary {
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .shadow__btn,
    .cta-btn,
    .feature-card {
        transition: none;
    }

    .card:has(> a):hover,
    a:hover > .card,
    .btn:hover,
    .shadow__btn:hover,
    .cta-btn:hover,
    .feature-card:hover {
        transform: none;
    }
}

/* Titres sur bandeau : mêmes coins arrondis que les cartes (8 px) */
h1,
.home-title {
    border-radius: 8px;
}

/* ---------------------------------------------------------------- Classes : visuel 16:9 + vidéo */
.class-panel {
    align-items: center;
}

.class-art {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

@media (min-width: 768px) {
    .class-panel {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    }
}

.class-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.class-video.is-ready {
    opacity: 1;
}

.class-video[hidden] {
    display: none;
}

.class-video-toggle {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: #fff;
    background: rgba(20, 18, 40, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.class-video-toggle[hidden] {
    display: none;
}

.class-art:hover .class-video-toggle,
.class-video-toggle:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .class-video-toggle {
        opacity: 1;
    }
}

/* ---------------------------------------------------------------- Classes : scène plein cadre (style « présentation produit »)
   La vidéo (ou l'emblème) remplit tout le panneau, le texte se superpose en bas à gauche. */
.class-panels {
    overflow: hidden;
}

.class-panel {
    position: relative;
    display: block;
    height: 100%;
    min-height: 22rem;
    padding: 0;
    overflow: hidden;
    border-radius: inherit;
}

/* Voile dégradé : garantit la lisibilité du texte sur n'importe quelle image */
.class-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(20, 18, 40, 0.88) 0%, rgba(20, 18, 40, 0.5) 32%, rgba(20, 18, 40, 0) 62%);
}

.class-panel .class-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Emblème de repli : plus grand, puisqu'il occupe toute la scène */
.class-art .class-art-emblem {
    width: 10rem;
    height: 10rem;
    margin-top: -2.5rem;
}

.class-art .bi {
    margin-top: -2.5rem;
}

.class-panel .class-info {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    max-width: min(34rem, 75%);
    padding: 1.5rem 1.75rem;
}

.class-info .class-meta {
    margin-bottom: 0.4rem;
}

.class-info .class-playstyle {
    font-size: 0.6875rem;
}

.class-info h3 {
    margin-bottom: 0.35rem;
    font-size: 1.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.class-info .class-text {
    margin-bottom: 0.6rem;
    font-size: 0.9375rem;
    color: #e4e3ea;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.class-info .class-link {
    font-size: 0.8125rem;
}

/* Le bouton pause passe en haut à droite, hors du voile */
.class-video-toggle {
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
}

@media (max-width: 767.98px) {
    /* Petits écrans : la vidéo en 16:9, le texte dessous (pas de recouvrement) */
    .class-panel {
        min-height: 0;
    }

    .class-panel::after {
        display: none;
    }

    .class-panel .class-art {
        position: relative;
        inset: auto;
        aspect-ratio: 16 / 9;
    }

    .class-panel .class-info {
        position: static;
        max-width: none;
        padding: 1rem 1.25rem 1.25rem;
    }

    .class-art .class-art-emblem,
    .class-art .bi {
        margin-top: 0;
    }
}

/* Cadre verrouillé en 16:9 : une vidéo 16:9 s'affiche sans être rognée.
   La liste de gauche se répartit sur la hauteur du cadre. */
@media (min-width: 768px) {
    .class-panels {
        aspect-ratio: 16 / 9;
        align-self: start;
    }

    .class-panel {
        min-height: 0;
    }

    .class-list {
        justify-content: space-between;
    }

    .class-tab {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
}

@media (min-width: 768px) {
    .class-tab {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* ---------------------------------------------------------------- Cartes « What changes » avec média 16:9 */
.feature-card.has-media {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.feature-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 50% 40%, #323050 0%, #26243b 70%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.feature-media img,
.feature-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-media video {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-media video.is-ready {
    opacity: 1;
}

.feature-media video[hidden] {
    display: none;
}

.feature-card.has-media .feature-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.feature-card.has-media h3 {
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
}

.feature-card.has-media p {
    font-size: 0.95rem;
}

/* Carte en mode média sans média : l'icône occupe la zone 16:9 */
.feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-media-icon {
    font-size: 4rem;
    color: #989fc1;
}

/* Bandeau de fin « Ready to log in? » : plus haut */
.home-band.home-cta {
    padding: 8rem 0;
}

.home-cta h2 {
    font-size: 2.25rem;
}

.home-cta .cta-btn {
    padding: 0.9rem 2.1rem;
}

/* Promesse sous les boutons du bandeau final : mise en avant sous forme de pastille */
.home-promise {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 2rem 0 0;
    padding: 0.7rem 1.4rem;
    font-size: 1.05rem;
    color: #d1d0d6;
    background: rgba(152, 159, 193, 0.1);
    border: 1px solid rgba(152, 159, 193, 0.45);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px -14px rgba(0, 0, 0, 0.7);
}

.home-promise .bi {
    font-size: 1.3rem;
    color: #989fc1;
}

.home-promise strong {
    font-weight: 700;
    color: #fff;
}

@media (max-width: 575.98px) {
    .home-promise {
        border-radius: 14px;
        text-align: left;
    }
}

/* ---------------------------------------------------------------- Stances (branches de sous-classe) */
.class-stances {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.class-stances-label {
    margin-right: 0.15rem;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b3b8d3;
}

.stance-chip {
    padding: 0.3rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #d1d0d6;
    background: rgba(20, 18, 40, 0.55);
    border: 1px solid rgba(152, 159, 193, 0.55);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.stance-chip:hover {
    color: #fff;
    border-color: #989fc1;
    transform: translateY(-1px);
}

.stance-chip.is-active {
    color: #2e2c47;
    background: #989fc1;
    border-color: #989fc1;
}

.stance-chip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .stance-chip {
        transition: none;
    }

    .stance-chip:hover {
        transform: none;
    }
}

/* Le chiffre « Playstyles » mène aux classes */
.home-stat-link {
    display: block;
    color: inherit;
}

.home-stat-link:hover .home-stat-label {
    color: #2e2c47;
}

.home-stat-link .home-stat-note .bi {
    vertical-align: -0.15em;
}

/* Une seule vidéo visible par panneau : celle de la stance active (ou de la classe) */
.class-video:not(.is-current) {
    display: none;
}

/* Sous-titre sous chaque chiffre du bandeau */
.home-stat-note {
    margin-top: 0.3rem;
    font-size: 0.8125rem;
    color: rgba(46, 44, 71, 0.65);
}

/* Au survol d'un chiffre cliquable, son sous-titre se renforce aussi */
.home-stat-link:hover .home-stat-note {
    color: #2e2c47;
}
