/**
 * Marathon France – Feuille de style principale
 * Structure : Variables | Base | Video/Fond | Hero | Boutons | Audio | Nav | Sections | FAQ | Lore | CTA | Footer | Guide | Media queries
 */

@font-face {
    font-family: 'Maratype';
    src: url('../assets/fonts/Maratype.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --neon-yellow: #baec33;
    --glitch-red: #ff00c1;
    --glitch-blue: #00fff9;
    --dark-bg: #0a0a0a;
}

/* Lien "Aller au contenu" – visible au focus clavier */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10001;
    padding: 12px 20px;
    background: var(--neon-yellow);
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    border: 2px solid #000;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 12px;
    outline: 3px solid var(--glitch-red);
    outline-offset: 3px;
}

/* Page 404 */
.error-section {
    min-height: 80vh;
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.error-section__tag {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.error-section__title {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    color: #fff;
}
.error-section__sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 28px 0;
    max-width: 420px;
}
.error-section .btn-discord {
    margin-top: 0;
}

/* Focus visible (accessibilité clavier) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible {
    outline: 2px solid var(--neon-yellow);
    outline-offset: 3px;
}
.main-nav__toggle:focus-visible,
.clips-lightbox__close:focus-visible {
    outline: 2px solid var(--neon-yellow);
    outline-offset: 3px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: #fff;
    font-family: 'Inter', -apple-system, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* FOND : image Background (fixe, plein écran). Avec body.has-yt-bg, seule la surcouche dégradé est gardée (la vidéo YouTube est derrière). */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../assets/images/Background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -9;
}
body.has-yt-bg::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

/* Fond vidéo YouTube (plein écran, derrière tout) – affiché seulement si un data-youtube-id est renseigné */
/* Hauteur légèrement > viewport pour supprimer la barre noire en bas au chargement (fixed = pas de scroll) */
.hero-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: calc(100vh + 30px);
    min-height: calc(100dvh + 30px);
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}
/* Couvre tout l'écran (équivalent background-size: cover) : 16:9, déborde en hauteur pour supprimer toute barre noire */
.hero-bg-video__iframe-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 177.78vh);
    height: max(56.25vw, calc(100vh + 40px));
    height: max(56.25vw, calc(100dvh + 40px));
    transform: translate(-50%, -50%) scale(1.05, 1.15);
}
.hero-bg-video__iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* LIGNES DE BALAYAGE (HUD) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
    opacity: 0.3;
}

/* --- SECTION HERO --- */
.hero {
    height: 100vh;
    padding-top: 120px; /* sous menu + barre audio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

/* TAG DU HAUT */
.france-tag {
    display: block;
    font-family: 'Courier New', monospace;
    color: #baec33;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;

    /* TA DEMANDE : MARGE À 40PX */
    margin-bottom: 40px;

    opacity: 0;
    text-shadow: 0 0 8px rgba(186, 236, 51, 0.6);
    animation: fadeInTag 1.5s forwards, signalFlicker 6s infinite 1.5s;
}

/* TITRE PRINCIPAL */
.main-title {
    font-family: 'Maratype', 'Courier New', monospace;
    /* Clamp gère la taille entre PC et Mobile automatiquement */
    font-size: clamp(3.5rem, 13vw, 11rem);
    font-weight: normal;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-top: 0;
    margin-bottom: 30px;
    text-transform: uppercase;
    white-space: nowrap;
    /* Empêche le titre de se casser sur PC */
}

/* Tablette : interface PC mais titre réduit pour ne pas être trop gros */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-title {
        font-size: clamp(2.75rem, 7vw, 4.5rem);
    }
}

/* Téléphone + tablette : fond collé à la barre verte du menu (pas d’espace noir) */
@media (max-width: 1024px) {
    body::before {
        top: -40px;
        height: calc(100vh + 40px);
        height: calc(100dvh + 40px);
        min-height: calc(100% + 40px);
    }
    body.has-yt-bg .hero-bg-video {
        top: -40px;
        min-height: calc(100vh + 40px);
        min-height: calc(100dvh + 40px);
    }
}

/* Tablette : bloc hero au centre, scroll indicator juste sous le bouton Discord */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        justify-content: center;
        padding-bottom: 0;
    }
    .hero .content {
        padding-top: 0;
    }
    .hero .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 28px;
    }
}

/* Mobile : bloc en haut, scroll indicator juste sous le bouton Discord */
@media (max-width: 768px) {
    .hero {
        justify-content: flex-start;
        padding-bottom: 14vh;
    }
    .hero .content {
        padding-top: 4vh;
    }
    .hero .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 28px;
    }
}

.title-line {
    display: block;
}

.title-line:first-child {
    margin-bottom: 0.15em;
}

.seo-intro {
    max-width: 700px;
    margin: 15px auto 0 auto;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* RETOUR AU VERT (SOFT GLITCH) */
.main-title:hover {
    color: var(--neon-yellow);
    /* La couleur verte demandée */
    /* Petite lueur douce pour l'effet "écran" */
    text-shadow: 0 0 8px rgba(186, 236, 51, 0.4);
    /* Animation fluide et légère */
    animation: soft-interference 2.5s infinite;
}

@keyframes soft-interference {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1);
    }

    52% {
        opacity: 0.8;
        transform: skewX(-2deg);
    }

    /* Petit saut discret */
    54% {
        opacity: 0.9;
        transform: skewX(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- BOUTON DISCORD --- */
.btn-discord {
    position: relative;
    display: inline-block;
    padding: 22px 50px;
    font-family: 'Maratype', 'Courier New', monospace;
    font-weight: normal;
    font-size: 1.3rem;
    color: var(--neon-yellow);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 2px solid var(--neon-yellow);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 35px;
    z-index: 10;
}

.btn-discord::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--neon-yellow);
    z-index: -1;
    transform: skewX(-20deg);
    transform-origin: left;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-discord::after {
    content: 'SECURE_LINK_V4';
    position: absolute;
    bottom: 4px;
    right: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.45rem;
    color: var(--neon-yellow);
    opacity: 0.7;
    letter-spacing: 1px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.btn-discord:hover {
    color: #000;
    box-shadow: 0 0 25px rgba(186, 236, 51, 0.5);
}

.btn-discord:hover::before {
    width: 150%;
}

.btn-discord:hover::after {
    color: #000;
    opacity: 1;
}

/* --- AUDIO PLAYER (sous le menu, a droite) --- */
.audio-control {
    position: fixed;
    top: 62px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border: 1px solid rgba(186, 236, 51, 0.4);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.audio-control:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(186, 236, 51, 0.2);
}

.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 15px;
}

.audio-wave span {
    width: 3px;
    background: var(--neon-yellow);
    height: 100%;
    animation: wave-anim 1s ease-in-out infinite;
    animation-play-state: paused;
}

.audio-wave span:nth-child(2) {
    animation-delay: 0.2s;
    height: 60%;
}

.audio-wave span:nth-child(3) {
    animation-delay: 0.4s;
    height: 80%;
}

.audio-status {
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

#audio-state {
    color: var(--neon-yellow);
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 0.9rem;
}

.playing span {
    animation-play-state: running;
}

/* =========================================
   MENU PRINCIPAL (NAV) – DA Terminal
   ========================================= */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    min-height: 60px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-yellow);
    box-shadow: 0 0 20px rgba(186, 236, 51, 0.1);
    font-family: 'Courier New', monospace;
}

.main-nav__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav__brand {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s, text-shadow 0.2s;
}

.main-nav__brand:hover {
    color: var(--glitch-red);
    text-shadow: 0 0 12px rgba(255, 0, 193, 0.5);
}

.main-nav__links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav__links li {
    margin: 0;
}

.main-nav__links a {
    display: block;
    padding: 18px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-left: 1px solid rgba(186, 236, 51, 0.2);
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.main-nav__links li:first-child a {
    border-left: none;
}

.main-nav__links a:hover {
    color: var(--glitch-red);
    background: rgba(255, 0, 193, 0.08);
    border-left-color: var(--glitch-red);
    box-shadow: inset 0 0 20px rgba(255, 0, 193, 0.1);
}

.main-nav__links a.nav-active {
    color: var(--neon-yellow);
    border-bottom: 2px solid var(--neon-yellow);
}

/* Sous-menu CLASSES (dropdown) */
.main-nav__item--classes {
    position: relative;
}

.main-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0;
    margin: 0;
    list-style: none;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--neon-yellow);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.main-nav__item--classes:hover .main-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav__dropdown a {
    padding: 14px 20px;
    border-left: none;
    border-bottom: 1px solid rgba(186, 236, 51, 0.15);
    font-size: 0.8rem;
}

.main-nav__dropdown a:hover {
    border-left: 3px solid var(--glitch-red);
    border-bottom-color: rgba(186, 236, 51, 0.15);
}

.main-nav__dropdown a:last-child {
    border-bottom: none;
}

/* Mobile: bouton burger */
.main-nav__toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--neon-yellow);
    cursor: pointer;
    color: var(--neon-yellow);
}

.main-nav__toggle span {
    width: 22px;
    height: 2px;
    background: currentColor;
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0 15px;
        min-height: 56px;
        justify-content: flex-start;
    }
    .main-nav__inner {
        flex: 1;
    }
    /* Mobile : petit bouton musique seul, en haut à droite sous la barre (comme sur PC) */
    .audio-control {
        top: 56px;
        right: 15px;
        left: auto;
        width: auto;
        padding: 8px 10px;
        min-height: 0;
        gap: 0;
    }
    .audio-control .audio-status {
        display: none;
    }
    .audio-control .audio-wave {
        height: 14px;
    }
    .audio-control .audio-wave span {
        width: 2.5px;
    }
    .hero {
        padding-top: 112px;
    }
    .main-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 2px solid var(--neon-yellow);
        border-left: none;
    }
    .main-nav__links.is-open {
        display: flex;
    }
    .main-nav__links a {
        border-left: none;
        border-bottom: 1px solid rgba(186, 236, 51, 0.2);
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .main-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-top: 1px solid rgba(186, 236, 51, 0.3);
        box-shadow: none;
        display: none;
    }
    .main-nav__item--classes:hover .main-nav__dropdown,
    .main-nav__item--classes.is-open .main-nav__dropdown {
        display: block;
    }
    .main-nav__toggle {
        display: flex;
    }
}

@keyframes wave-anim {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 100%;
    }
}

/* --- SECTION COMMUNAUTÉ --- */
.community-section {
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 100px 20px;
    border-top: 1px solid var(--neon-yellow);
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 50px;
    text-align: left;
    text-transform: uppercase;
}

.yellow {
    color: var(--neon-yellow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--neon-yellow);
    padding: 30px;
    transition: 0.3s;
}

.card:hover {
    background: rgba(251, 255, 0, 0.05);
    transform: translateX(10px);
}

.card h3 {
    font-family: 'Maratype', 'Courier New', monospace;
    color: var(--neon-yellow);
    font-size: 1.8rem;
    margin-top: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #bbb;
}

/* Page Guide / Classes : effet glitch-red au survol des cartes */
.guide-classes .card:hover {
    border-left-color: var(--glitch-red);
    box-shadow: 0 0 20px rgba(255, 0, 193, 0.25);
}
.guide-classes .card:hover h3 {
    color: var(--glitch-red);
    text-shadow: 0 0 10px rgba(255, 0, 193, 0.4);
}

/* Bloc détail d'une classe (page Guide) */
.class-detail {
    margin-bottom: 60px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(186, 236, 51, 0.3);
    border-left: 4px solid var(--neon-yellow);
    overflow: hidden;
    transition: border-left-color 0.25s, box-shadow 0.25s;
}
.class-detail:hover {
    border-left-color: var(--glitch-red);
    box-shadow: 0 0 25px rgba(255, 0, 193, 0.15);
}
.class-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(186, 236, 51, 0.08);
    border-bottom: 1px solid rgba(186, 236, 51, 0.25);
    font-family: 'Courier New', monospace;
}
.class-detail__title {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 1.8rem;
    color: var(--neon-yellow);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.class-detail__role {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
}
.class-detail__body {
    padding: 28px 30px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.65;
}
.class-detail__body p {
    margin: 0 0 1em 0;
}
.class-detail__skills {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(186, 236, 51, 0.2);
}
.class-detail__skills h4 {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--neon-yellow);
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.class-detail__skills ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}
.class-detail__skills li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 18px;
}
.class-detail__skills li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-yellow);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.terminal-text {
    background: #000;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #00ff00;
    border: 1px solid #333;
    text-align: left;
    opacity: 0.8;
}

/* SCROLL INDICATOR – aligné sur le bas de la zone hero / vidéo */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
    text-transform: uppercase;
    text-align: center;
}

.scroll-indicator .line {
    width: 2px;
    height: 50px;
    background: var(--neon-yellow);
    margin: 10px auto;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ANIMATIONS */
@keyframes fadeInTag {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes signalFlicker {

    0%,
    100% {
        opacity: 0.9;
    }

    92% {
        opacity: 0.9;
    }

    93% {
        opacity: 0.3;
    }

    94% {
        opacity: 0.9;
    }

    95% {
        opacity: 0.5;
    }

    96% {
        opacity: 1;
    }

    97% {
        opacity: 0.2;
    }

    98% {
        opacity: 0.9;
    }
}

/* =========================================
   PIED DE PAGE (FOOTER)
   ========================================= */
.footer {
    background-color: #050505;
    /* Presque noir */
    border-top: 2px solid var(--neon-yellow);
    /* La ligne jaune de séparation */
    padding: 60px 20px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-family: 'Maratype', 'Courier New', monospace;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.status-indicator {
    display: inline-block;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    color: var(--neon-yellow);
    font-size: 0.8rem;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* LIENS */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-yellow);
    padding-left: 5px;
    /* Petit mouvement au survol */
}

/* DISCLAIMER LÉGAL (Petit et discret) */
.disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 20px;
}

.copyright {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--neon-yellow);
    opacity: 0.6;
}

/* SECTION FAQ */
.faq-section {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.9);
    /* Plus sombre */
    border-top: 1px solid #333;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border: 1px solid rgba(186, 236, 51, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--neon-yellow);
}

.faq-item[open] {
    background: rgba(186, 236, 51, 0.1);
    /* Fond jaune très léger quand ouvert */
}

summary {
    padding: 20px;
    font-family: 'Maratype', 'Courier New', monospace;
    /* Ta police titre */
    color: #fff;
    list-style: none;
    /* Cache la petite flèche moche par défaut */
    font-size: 1.2rem;
    position: relative;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    color: var(--neon-yellow);
    font-weight: bold;
}

details[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 20px 20px 20px;
    font-family: 'Inter', sans-serif;
    color: #ccc;
    line-height: 1.6;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    /* On retire l'effet sur mobile */
}

/* SECTION LORE : HACK STYLE */
.lore-section {
    padding: 80px 20px;
    background: transparent;
    /* On laisse voir la vidéo/fond derrière */
    position: relative;
    z-index: 2;
}

.hack-interface {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.95);
    /* Noir très profond */
    border: 1px solid #333;
    border-left: 4px solid var(--neon-yellow);
    /* La touche Bungie */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    position: relative;
}

/* En-tête du terminal */
.hack-header {
    background: rgba(186, 236, 51, 0.1);
    /* Fond vert très léger */
    padding: 10px 20px;
    border-bottom: 1px solid rgba(186, 236, 51, 0.3);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--neon-yellow);
    letter-spacing: 2px;
}

.blink {
    animation: blink-anim 1s infinite;
    color: #ff003c;
    /* Rouge erreur */
}

@keyframes blink-anim {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Contenu */
.hack-content {
    padding: 30px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.console-line {
    margin: 0 0 5px 0;
    opacity: 0.7;
    font-size: 0.8rem;
}

.prefix {
    color: var(--neon-yellow);
    margin-right: 10px;
}

.green {
    color: var(--neon-yellow);
}

.warning {
    color: #ff003c;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Le texte principal */
.log-text {
    margin-top: 20px;
    border-left: 1px solid #444;
    padding-left: 20px;
}

/* EFFET DE CRYPTAGE (Le mot caché) */
.glitch-text {
    background: #fff;
    color: #000;
    padding: 0 5px;
    cursor: help;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: all 0.2s;
}

/* Au survol, on "décrypte" le mot */
.glitch-text:hover {
    background: var(--neon-yellow);
    color: #000;
}

.glitch-text:hover::after {
    content: attr(data-text);
    /* Affiche le vrai texte caché dans le HTML */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Remplacement par la variable rose */
    background: var(--glitch-red);
    color: #fff;
    /* Passage en blanc pour que ce soit plus lisible sur du rose */
    text-align: center;
}

/* Scanline décorative qui descend */
.scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(186, 236, 51, 0.5);
    box-shadow: 0 0 10px var(--neon-yellow);
    animation: scan-down 4s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scan-down {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* BANDEAU DÉFILANT */
.news-ticker-container {
    background: var(--neon-yellow);
    color: #000;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 5;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 8px 0;
    font-size: 0.9rem;
}

.news-ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
}

.news-ticker span {
    display: inline-block;
}

.separator {
    margin: 0 30px;
    color: #000;
    /* Ou rouge si tu veux du contraste */
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* =========================================
   BANDEAU FINAL (CTA)
   ========================================= */
.cta-banner {
    background-color: var(--neon-yellow);
    /* Fond Jaune */
    color: #0a0a0a;
    /* Texte Noir */
    padding: 40px 20px;
    position: relative;
    z-index: 5;
    overflow: hidden;
    border-bottom: 4px solid #000;
}

.cta-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 2.5rem;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

/* BOUTON SPÉCIAL (NOIR SUR JAUNE) */
.btn-cta {
    background: #000;
    color: var(--neon-yellow);
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 1.2rem;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid #000;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
    /* Coin coupé */
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cta:hover {
    background: transparent;
    color: #000;
    border-color: #000;
    transform: translateX(-5px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2);
}

/* DÉCORATION DE FOND (LIGNES HACHURÉES) */
.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.05) 10px,
            rgba(0, 0, 0, 0.05) 20px);
    z-index: 1;
    pointer-events: none;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* =======================================================
   TABLETTE (max-width: 1024px)
   ======================================================= */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .community-section {
        padding: 70px 20px 60px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .guide-layout {
        max-width: 100%;
    }

    .faq-section,
    .lore-section {
        padding: 60px 20px;
    }

    .lore-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hack-interface {
        max-width: 100%;
    }
}

/* =======================================================
   MOBILE (max-width: 768px)
   ======================================================= */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-title {
        white-space: normal;
        font-size: clamp(2.75rem, 14vw, 4rem);
        line-height: 1.1;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .main-title span {
        display: block;
    }

    .france-tag {
        margin-bottom: 30px;
        font-size: 0.8rem;
    }

    .btn-discord {
        width: 100%;
        max-width: 350px;
        padding: 18px 20px;
        font-size: 1.1rem;
        margin-top: 20px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding-top: 112px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .community-section {
        padding: 60px 16px 50px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .faq-section,
    .lore-section {
        padding: 50px 16px;
    }

    .faq-section .container,
    .lore-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .faq-item summary {
        padding: 16px;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .faq-content {
        padding: 0 16px 16px;
    }

    .hack-interface {
        margin-left: 0;
        margin-right: 0;
    }

    .hack-header {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .hack-content,
    .log-text {
        padding: 16px;
    }

    .terminal-text {
        padding: 16px;
    }

    .news-ticker-container {
        padding: 10px 0;
    }

    .footer-col {
        min-width: 0;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cta-banner {
        padding: 40px 16px;
    }

    .cta-content {
        padding: 0 8px;
    }
}

/* Très petit écran : titre lisible mais pas trop gros */
@media (max-width: 480px) {
    .main-title {
        font-size: 3.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-cta {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* =========================================
   PAGE GUIDE – Layout terminal dynamique
   ========================================= */
.page-guide .hero-guide,
.page-guide .news-ticker-container,
.page-guide .guide-classes .section-title,
.page-guide .guide-classes .hack-interface.terminal-classes {
    display: none;
}

.page-guide .guide-classes {
    min-height: auto;
    padding: 40px 20px 80px;
    border-top: none;
    background: rgba(0, 0, 0, 0.75);
}

/* Bandeau terminal (remplace le hero) */
.guide-terminal-bar {
    margin-top: 0;
    padding: 18px 24px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--neon-yellow);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.guide-terminal-bar .prompt {
    color: var(--neon-yellow);
}

.guide-terminal-bar .cmd {
    color: #fff;
}

.guide-terminal-bar .cursor {
    width: 10px;
    height: 1.1em;
    background: var(--neon-yellow);
    animation: guide-cursor-blink 1s step-end infinite;
    display: inline-block;
    vertical-align: text-bottom;
}

@keyframes guide-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Layout deux colonnes */
.guide-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 60vh;
    border: 1px solid rgba(186, 236, 51, 0.3);
    border-left: 4px solid var(--neon-yellow);
    background: rgba(10, 10, 10, 0.9);
    overflow: hidden;
}

/* Sidebar : liste des classes */
.guide-sidebar {
    border-right: 1px solid rgba(186, 236, 51, 0.25);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.guide-sidebar__title {
    padding: 16px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(186, 236, 51, 0.2);
    text-transform: uppercase;
}

.guide-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-sidebar__item {
    margin: 0;
}

.guide-sidebar__item a,
.guide-sidebar__item button {
    display: block;
    width: 100%;
    padding: 20px 22px;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #aaa;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.guide-sidebar__item a:hover,
.guide-sidebar__item button:hover {
    color: var(--glitch-red);
    background: rgba(255, 0, 193, 0.06);
    border-left-color: var(--glitch-red);
}

.guide-sidebar__item.is-active a,
.guide-sidebar__item.is-active button {
    color: var(--neon-yellow);
    background: rgba(186, 236, 51, 0.08);
    border-left-color: var(--neon-yellow);
}

/* Panneau détail (droite) */
.guide-panel {
    padding: 0;
    overflow-y: auto;
    position: relative;
}

.guide-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-yellow), transparent);
    opacity: 0.4;
    animation: guide-scan 3s linear infinite;
    pointer-events: none;
}

@keyframes guide-scan {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { top: 100%; opacity: 0; }
}

.guide-panel__content {
    padding: 38px 42px 46px;
    animation: guide-panel-in 0.35s ease-out;
}

@keyframes guide-panel-in {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.guide-panel .class-detail {
    margin-bottom: 0;
    border: none;
    border-left: none;
}

.guide-panel .class-detail:hover {
    border-left-color: transparent;
    box-shadow: none;
}

.guide-panel .class-detail__header {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(186, 236, 51, 0.25);
    background: transparent;
}

.guide-panel .class-detail__body {
    padding: 0;
}

.guide-panel .class-detail__skills {
    margin-top: 24px;
    padding-top: 20px;
}

/* Masquer les blocs non sélectionnés (mode dynamique) */
.guide-panel [data-class-panel] {
    display: none;
}

.guide-panel [data-class-panel].is-visible {
    display: block;
}

@media (max-width: 1024px) {
    .guide-layout {
        margin: 0 16px;
        border-left-width: 3px;
    }
}

@media (max-width: 768px) {
    /* Décaler le bloc « Selectionner un cadre » pour ne pas être recouvert par le bouton audio */
    .page-guide .guide-classes {
        padding-top: 52px;
    }

    .guide-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        margin: 0 12px;
        border-radius: 6px;
        border-left-width: 3px;
        overflow: hidden;
    }

    /* Mobile : liste des cadres en vertical, tout visible sans scroll horizontal */
    .guide-sidebar {
        position: relative;
        z-index: 5;
        border-right: none;
        border-bottom: 1px solid rgba(186, 236, 51, 0.3);
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        background: rgba(8, 8, 8, 0.98);
    }

    .guide-sidebar__title {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.7rem;
        letter-spacing: 1px;
        color: rgba(186, 236, 51, 0.7);
        border-bottom: 1px solid rgba(186, 236, 51, 0.15);
    }

    .guide-sidebar__list {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow: visible;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .guide-sidebar__item {
        flex: 0 0 auto;
        min-width: 0;
        border-bottom: 1px solid rgba(186, 236, 51, 0.12);
    }

    .guide-sidebar__item:last-child {
        border-bottom: none;
    }

    .guide-sidebar__item a,
    .guide-sidebar__item button {
        width: 100%;
        min-height: 48px;
        padding: 14px 16px;
        font-size: 0.85rem;
        letter-spacing: 1px;
        white-space: nowrap;
        border-radius: 0;
        border-left-width: 3px;
        text-align: left;
    }

    .guide-sidebar__item.is-active a,
    .guide-sidebar__item.is-active button {
        box-shadow: none;
    }

    /* Panneau détail : plus lisible et aéré sur mobile */
    .guide-panel {
        padding: 0;
    }

    .guide-panel__content {
        padding: 20px 16px 28px;
    }

    .page-guide .guide-panel .class-detail__header {
        padding: 0 0 14px 0;
        margin-bottom: 16px;
        border-bottom-color: rgba(186, 236, 51, 0.2);
    }

    .page-guide .guide-panel .class-detail__title {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .page-guide .guide-panel .class-detail__role {
        font-size: 0.8rem;
        line-height: 1.45;
        display: block;
        margin-top: 6px;
    }

    .page-guide .guide-panel .class-detail__body {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .page-guide .guide-panel .class-detail__body p {
        margin-bottom: 16px;
    }

    .page-guide .guide-panel .class-detail__skills {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(186, 236, 51, 0.15);
    }

    .page-guide .guide-panel .class-detail__skills h4 {
        font-size: 0.85rem;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .page-guide .guide-panel .class-detail__skills ul {
        padding-left: 18px;
        margin: 0;
    }

    .page-guide .guide-panel .class-detail__skills li {
        margin-bottom: 12px;
        line-height: 1.5;
        font-size: 0.9rem;
    }

    .guide-terminal-bar {
        font-size: 0.8rem;
        padding: 14px 16px;
    }

    /* Transition plus marquée au changement de classe (mobile) */
    .page-guide .guide-panel__content {
        animation: guide-panel-in 0.3s ease-out;
    }
}

/* Très petits écrans : page Classes encore plus compacte */
@media (max-width: 480px) {
    .page-guide .guide-classes .guide-layout {
        margin: 0 10px;
    }

    .page-guide .guide-sidebar__item a,
    .page-guide .guide-sidebar__item button {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .page-guide .guide-panel__content {
        padding: 16px 14px 24px;
    }

    .page-guide .guide-panel .class-detail__title {
        font-size: 1.2rem;
    }

    .page-guide .guide-panel .class-detail__skills li {
        font-size: 0.85rem;
    }
}

/* ========== PAGE BUILDER (Loadout) – Maquette + fond par personnage ========== */
.builder-class-bg {
    position: fixed;
    inset: 0;
    z-index: -9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.4s ease;
}

.builder-class-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.75) 0%,
        rgba(10, 10, 10, 0.82) 40%,
        rgba(10, 10, 10, 0.88) 100%
    );
    pointer-events: none;
}

.page-builder .guide-terminal-bar {
    border-bottom-color: var(--neon-yellow);
}

.builder-section {
    padding: 2rem 1rem 3rem;
}

.builder-section .container {
    max-width: 720px;
    margin: 0 auto;
}

.builder-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.builder-header .section-title {
    margin: 0;
}

.builder-class-wrap {
    flex-shrink: 0;
}

.builder-label {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(200, 200, 200, 0.95);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.builder-select {
    padding: 8px 12px;
    background: rgba(28, 28, 28, 0.98);
    border: 1px solid rgba(120, 120, 120, 0.5);
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.builder-select:hover,
.builder-select:focus {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 10px rgba(186, 236, 51, 0.12);
    outline: none;
}

.builder-select option {
    background: #1a1a1a;
    color: #fff;
}

.builder-select--class {
    min-width: 160px;
}

.builder-loadout {
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(186, 236, 51, 0.25);
    border-left: 4px solid var(--neon-yellow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.builder-weapon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 520px;
}

.builder-weapon-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #b0b0b0;
    text-transform: uppercase;
    min-width: 5rem;
}

.builder-weapon-block {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex: 1;
}

.builder-mods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    width: 72px;
    flex-shrink: 0;
}

.builder-mod-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(35, 35, 35, 0.95);
    border: 1px solid rgba(100, 100, 100, 0.4);
    color: #a0a0a0;
    font-size: 1rem;
    font-weight: 300;
    transition: border-color 0.2s, color 0.2s;
}

.builder-mod-slot:hover {
    border-color: var(--neon-yellow);
    color: rgba(186, 236, 51, 0.9);
}

.builder-weapon-slot {
    position: relative;
    flex: 1;
    min-height: 56px;
    background: rgba(35, 35, 35, 0.95);
    border: 1px solid rgba(100, 100, 100, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.builder-weapon-slot:hover {
    border-color: var(--neon-yellow);
}

.builder-slot-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.builder-slot-icon {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.5rem;
}

.builder-weapon-slot .builder-slot-select:focus + .builder-slot-icon,
.builder-weapon-slot:hover .builder-slot-icon {
    color: rgba(186, 236, 51, 0.6);
}

.builder-slot-icon--weapon::before {
    content: '';
    width: 32px;
    height: 32px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 20l8-16 8 16M4 20h16'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 20l8-16 8 16M4 20h16'/%3E%3C/svg%3E") center/contain no-repeat;
}

.builder-center {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 0.5rem;
    min-height: 200px;
    width: 100%;
    max-width: 560px;
}

.builder-center-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.builder-center-col--left {
    justify-self: end;
}

.builder-center-col--right {
    justify-self: start;
}

.builder-block-title {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #b0b0b0;
    text-transform: uppercase;
}

.builder-slot-wrap {
    position: relative;
    width: 80px;
    height: 56px;
    background: rgba(35, 35, 35, 0.95);
    border: 1px solid rgba(100, 100, 100, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.builder-slot-wrap:hover {
    border-color: var(--neon-yellow);
}

.builder-center-col .builder-slot-wrap {
    width: 72px;
    height: 52px;
}

.builder-slot-icon--equipment::before {
    content: '';
    width: 28px;
    height: 28px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M20 8h-4V4H8v4H4l4 12h8L20 8zM6 6v2h2V6H6zm0 14v-2h2v2H6zm12 0v-2h2v2h-2zm0-14h-2v2h2V6z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M20 8h-4V4H8v4H4l4 12h8L20 8zM6 6v2h2V6H6zm0 14v-2h2v2H6zm12 0v-2h2v2h-2zm0-14h-2v2h2V6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.builder-slot-icon--core::before {
    content: '';
    width: 26px;
    height: 26px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 2px currentColor;
}

.builder-slot-icon--shield::before {
    content: '';
    width: 28px;
    height: 28px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 2L4 6v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V6l-8-4zm0 2.18l6 3v4.91c0 3.52-2.34 6.82-5.5 7.82-3.16-1-5.5-4.3-5.5-7.82V7.18l5 2.5-1 2-4-2 1-2 4 2-1-2-5-2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 2L4 6v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V6l-8-4zm0 2.18l6 3v4.91c0 3.52-2.34 6.82-5.5 7.82-3.16-1-5.5-4.3-5.5-7.82V7.18l5 2.5-1 2-4-2 1-2 4 2-1-2-5-2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.builder-silhouette-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.builder-silhouette-img {
    max-height: 180px;
    width: auto;
    height: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.builder-implants-row {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.builder-implants-row .builder-block-title {
    margin-bottom: 0.5rem;
}

.builder-implants-slots {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.builder-slot-wrap--implant {
    width: 72px;
    height: 72px;
}

.builder-slot-icon--implant {
    color: #888;
}

.builder-slot-wrap--implant:hover .builder-slot-icon--implant {
    color: rgba(186, 236, 51, 0.6);
}

.builder-slot-icon--head::before,
.builder-slot-icon--torso::before,
.builder-slot-icon--leg::before {
    content: '';
    width: 36px;
    height: 44px;
    background: currentColor;
}

.builder-slot-icon--head::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='4' fill='currentColor'/%3E%3Crect x='8' y='10' width='8' height='8' fill='currentColor' opacity='0.5'/%3E%3Crect x='9' y='18' width='3' height='4' fill='currentColor' opacity='0.5'/%3E%3Crect x='12' y='18' width='3' height='4' fill='currentColor' opacity='0.5'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='4' fill='currentColor'/%3E%3Crect x='8' y='10' width='8' height='8' fill='currentColor' opacity='0.5'/%3E%3Crect x='9' y='18' width='3' height='4' fill='currentColor' opacity='0.5'/%3E%3Crect x='12' y='18' width='3' height='4' fill='currentColor' opacity='0.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.builder-slot-icon--torso::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='4' fill='currentColor' opacity='0.4'/%3E%3Crect x='8' y='10' width='8' height='8' fill='currentColor'/%3E%3Crect x='9' y='18' width='3' height='4' fill='currentColor' opacity='0.4'/%3E%3Crect x='12' y='18' width='3' height='4' fill='currentColor' opacity='0.4'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='4' fill='currentColor' opacity='0.4'/%3E%3Crect x='8' y='10' width='8' height='8' fill='currentColor'/%3E%3Crect x='9' y='18' width='3' height='4' fill='currentColor' opacity='0.4'/%3E%3Crect x='12' y='18' width='3' height='4' fill='currentColor' opacity='0.4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.builder-slot-icon--leg::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='4' fill='currentColor' opacity='0.4'/%3E%3Crect x='8' y='10' width='8' height='8' fill='currentColor' opacity='0.4'/%3E%3Crect x='9' y='18' width='3' height='4' fill='currentColor'/%3E%3Crect x='12' y='18' width='3' height='4' fill='currentColor'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='4' fill='currentColor' opacity='0.4'/%3E%3Crect x='8' y='10' width='8' height='8' fill='currentColor' opacity='0.4'/%3E%3Crect x='9' y='18' width='3' height='4' fill='currentColor'/%3E%3Crect x='12' y='18' width='3' height='4' fill='currentColor'/%3E%3C/svg%3E") center/contain no-repeat;
}

.builder-summary {
    border: 1px solid rgba(255, 0, 193, 0.25);
    border-left: 4px solid var(--glitch-red);
    background: rgba(10, 10, 10, 0.9);
    width: 100%;
    max-width: 560px;
}

.builder-summary .hack-header {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 0, 193, 0.2);
}

.builder-summary .hack-header .cmd-title {
    color: var(--glitch-red);
}

.builder-summary-pre {
    margin: 0;
    padding: 1rem 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .builder-section .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .builder-center {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .builder-section {
        padding: 1.5rem 0 2rem;
    }

    .builder-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .builder-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .builder-loadout {
        padding: 1rem;
    }

    .builder-weapon-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .builder-weapon-block {
        width: 100%;
        max-width: 100%;
    }

    .builder-weapon-title {
        min-width: 0;
    }

    .builder-center {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .builder-center-col--left,
    .builder-center-col--right {
        justify-self: stretch;
        width: 100%;
    }

    .builder-silhouette-wrap {
        order: -1;
    }

    .builder-silhouette-img {
        max-height: 140px;
        max-width: 90px;
    }

    .builder-slot-wrap {
        width: 100%;
        max-width: 100%;
    }

    .builder-select--class {
        min-width: 0;
        width: 100%;
    }

    .builder-implants-slots {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .builder-summary .hack-content {
        padding: 12px;
    }

    .builder-summary-pre {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .builder-mods-grid {
        width: 56px;
    }

    .builder-weapon-slot {
        min-height: 48px;
    }
}

/* =======================================================
   PAGE CLIPS – Top 3 clips de la communauté
   ======================================================= */
.page-clips .guide-classes,
.page-clips .news-ticker-container {
    display: none;
}

.clips-terminal-bar {
    margin-top: 0;
    padding: 18px 24px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--neon-yellow);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.clips-terminal-bar .prompt { color: var(--neon-yellow); }
.clips-terminal-bar .cmd { color: #fff; }
.clips-terminal-bar .cursor {
    width: 10px;
    height: 1.1em;
    background: var(--neon-yellow);
    animation: guide-cursor-blink 1s step-end infinite;
    display: inline-block;
    vertical-align: text-bottom;
}

.clips-hero {
    padding: 80px 20px 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.clips-hero__tag {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.clips-hero__title {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: normal;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    color: #fff;
    text-shadow: 0 0 30px rgba(186, 236, 51, 0.3);
}

.clips-hero__sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

.clips-week-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    border: 2px solid var(--neon-yellow);
    background: rgba(0, 0, 0, 0.5);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.clips-week-label {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--neon-yellow);
    opacity: 0.9;
}

.clips-week-date {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 2px;
}

/* Podium : TOP 2 (gauche) | CHAMPION (centre, en haut) | TOP 3 (droite) */
.clips-podium-section {
    padding: 20px 20px 80px;
    position: relative;
    z-index: 2;
}

.clips-podium {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: end;
    max-width: 1400px;
    margin: 0 auto 50px;
}

/* Ordre visuel : TOP 2 (gauche) | CHAMPION (centre) | TOP 3 (droite) */
.clips-podium .clip-card--silver { order: 1; }
.clips-podium .clip-card--gold { order: 2; }
.clips-podium .clip-card--bronze { order: 3; }

.clip-card {
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(186, 236, 51, 0.4);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.clip-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.clip-card:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 25px rgba(186, 236, 51, 0.2);
}

.clip-card--gold { border-color: rgba(255, 193, 7, 0.6); }
.clip-card--gold:hover { border-color: #ffc107; box-shadow: 0 0 30px rgba(255, 193, 7, 0.25); }
.clip-card--silver { border-color: rgba(192, 192, 192, 0.5); }
.clip-card--silver:hover { border-color: #c0c0c0; box-shadow: 0 0 20px rgba(192, 192, 192, 0.2); }
.clip-card--bronze { border-color: rgba(205, 127, 50, 0.6); }
.clip-card--bronze:hover { border-color: #cd7f32; box-shadow: 0 0 20px rgba(205, 127, 50, 0.25); }

.clip-card--featured {
    align-self: stretch;
}

/* Bandeau rang au-dessus du cadre vidéo – style terminal Marathon */
.clip-card__rank-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(186, 236, 51, 0.25);
    border-bottom: none;
    border-left-width: 4px;
    font-family: 'Maratype', 'Courier New', monospace;
}
.clip-card--gold .clip-card__rank-strip {
    border-left-color: #ffc107;
    box-shadow: inset 0 0 20px rgba(255, 193, 7, 0.06);
}
.clip-card--silver .clip-card__rank-strip {
    border-left-color: #c0c0c0;
    box-shadow: inset 0 0 15px rgba(192, 192, 192, 0.04);
}
.clip-card--bronze .clip-card__rank-strip {
    border-left-color: #cd7f32;
    box-shadow: inset 0 0 15px rgba(205, 127, 50, 0.06);
}

.clip-card__rank-code {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}
.clip-card--gold .clip-card__rank-code { color: rgba(255, 193, 7, 0.9); }
.clip-card--silver .clip-card__rank-code { color: rgba(192, 192, 192, 0.9); }
.clip-card--bronze .clip-card__rank-code { color: rgba(205, 127, 50, 0.9); }

.clip-card__rank-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: auto;
}
.clip-card--gold .clip-card__rank-label { color: #ffc107; text-shadow: 0 0 10px rgba(255, 193, 7, 0.4); }
.clip-card--silver .clip-card__rank-label { color: #c0c0c0; }
.clip-card--bronze .clip-card__rank-label { color: #cd7f32; }

.clip-card__rank-strip--champion .clip-card__crown {
    font-size: 1rem;
    color: #ffc107;
    margin-right: 4px;
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.8);
    animation: clip-crown-pulse 2s ease-in-out infinite;
}
@keyframes clip-crown-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.1); }
}

/* Marche du podium sous la vidéo (1er = plus haute, 3e = plus basse) */
.clip-card__podium-step {
    height: 8px;
    background: linear-gradient(180deg, rgba(186, 236, 51, 0.15) 0%, transparent 100%);
    border-top: 1px solid rgba(186, 236, 51, 0.2);
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
}
.clip-card--gold .clip-card__podium-step--first {
    height: 14px;
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-top-color: rgba(255, 193, 7, 0.4);
}
.clip-card--silver .clip-card__podium-step { height: 10px; }
.clip-card--bronze .clip-card__podium-step--third { height: 6px; }

.clip-card__media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-top: 1px solid rgba(186, 236, 51, 0.15);
}

.clip-card__scan-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    animation: clip-scan 8s linear infinite;
}

@keyframes clip-scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.clip-card__video {
    position: absolute;
    inset: 0;
}

.clip-card__video--empty {
    background: #111;
}

.clip-card__video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}

.clip-card__play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

.clip-card__play-overlay:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.clip-card__play-overlay::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: rgba(186, 236, 51, 0.9);
    clip-path: polygon(20px 12px, 20px 52px, 52px 32px);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(186, 236, 51, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.clip-card__media-wrap:hover .clip-card__play-overlay::before {
    opacity: 1;
}

.clip-card__meta {
    padding: 16px 18px;
}

.clip-card__title {
    font-family: 'Maratype', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    color: var(--neon-yellow);
    line-height: 1.3;
}

.clip-card__author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.clip-card__author .author-name {
    color: var(--glitch-blue);
    font-weight: 600;
}

.clips-cta-block {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 20px 0;
    border-top: 1px solid rgba(186, 236, 51, 0.3);
}

.clips-cta-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.clips-cta-block .btn-discord {
    margin-top: 0;
}

/* Lightbox : lecture vidéo en grand */
.clips-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.clips-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.clips-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.clips-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    z-index: 1;
}

.clips-lightbox__video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid var(--neon-yellow);
    box-shadow: 0 0 40px rgba(186, 236, 51, 0.2);
}

.clips-lightbox__video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.clips-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--neon-yellow);
    color: var(--neon-yellow);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.clips-lightbox__close:hover {
    background: var(--neon-yellow);
    color: #000;
}

@media (max-width: 900px) {
    .clips-podium {
        grid-template-columns: 1fr;
        align-items: stretch;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .clips-podium .clip-card--gold,
    .clips-podium .clip-card--silver,
    .clips-podium .clip-card--bronze {
        order: unset;
    }

    .clips-podium .clip-card--featured {
        order: -1;
    }
}

@media (max-width: 768px) {
    .clips-podium-section {
        padding: 20px 16px 60px;
    }

    /* Image de fond qui touche la barre verte : fort débord en haut + fond body en secours pour supprimer l’espace noir */
    body.page-clips {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../assets/images/Background.jpg');
        background-size: cover;
        background-position: center top;
        background-attachment: fixed;
    }
    body.page-clips::before {
        top: -80px;
        left: 0;
        width: 100%;
        height: calc(100vh + 80px);
        height: calc(100dvh + 80px);
        min-height: calc(100% + 80px);
    }

    /* Une seule barre verte en haut (nav) : on retire celle du bandeau terminal */
    .clips-terminal-bar {
        font-size: 0.8rem;
        padding: 14px 16px;
        border-bottom: none;
    }

    .clips-hero {
        padding: 112px 16px 40px;
    }

    .clips-hero__title {
        font-size: 2.2rem;
    }

    .clips-week-badge {
        padding: 10px 18px;
    }

    .clips-week-date {
        font-size: 0.95rem;
    }

    .clips-cta-block {
        padding: 24px 16px 0;
    }
}

@media (max-width: 480px) {
    .clips-hero__title {
        font-size: 1.75rem;
    }

    .clip-card__rank-strip {
        padding: 8px 12px;
        gap: 8px;
    }

    .clip-card__rank-code {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .clip-card__rank-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .clip-card__podium-step { height: 6px; }
    .clip-card--gold .clip-card__podium-step--first { height: 10px; }
    .clip-card--bronze .clip-card__podium-step--third { height: 4px; }

    .clip-card__meta {
        padding: 12px 14px;
    }

    .clip-card__title {
        font-size: 0.9rem;
    }
}