/* =========================================== VARIABLES GLOBALES =========================================== */
:root {
    --accent: #ff8a3c;
    --accent-light: #ffb06b;
    --bg-dark: #0a0a0f;
    --text-light: #f1f1f1;
    --neon: 0 0 12px rgba(255, 138, 60, 0.7), 0 0 25px rgba(255, 138, 60, 0.4);
    --radius: 20px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}
.hero-frame {
    position: relative;
    display: inline-block;
    padding: 25px 40px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: radial-gradient(circle at top, rgba(255, 138, 60, 0.25), rgba(10, 10, 15, 0.9));
    border: 2px solid rgba(255, 138, 60, 0.6);
    box-shadow: 0 0 30px rgba(255, 138, 60, 0.8), inset 0 0 25px rgba(255, 138, 60, 0.4), inset 0 0 60px rgba(255, 138, 60, 0.2);
    overflow: hidden;
    backdrop-filter: blur(8px);
}
/* ======================================================= HERO – TITRE HOLOGRAPHIQUE AVEC SCAN & CADRE NÉON ======================================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    backdrop-filter: blur(12px);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 138, 60, 0.35);
    box-shadow: 0 0 20px rgba(255, 138, 60, 0.35);
}

/* SCAN LUMINEUX IDENTIQUE À LA CONSOLE */
.hero-scan {
    content: "";
    position: absolute;
    left: -40%;
    top: -120%;
    width: 80%;
    height: 300%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    opacity: 0.5;
    transform: rotate(8deg);
    animation: heroScanMove 6s linear infinite;
}

@keyframes heroScanMove {
    0% {
        transform: translateX(-100%) rotate(8deg);
    }

    100% {
        transform: translateX(200%) rotate(8deg);
    }
}

/* TITRE HOLOGRAPHIQUE */
.hero-title {
    position: relative;
    z-index: 2;
    font-family: "Orbitron";
    font-size: 2.6rem;
    color: var(--accent-light);
    text-shadow: 0 0 20px rgba(255, 138, 60, 0.8), 0 0 40px rgba(255, 138, 60, 0.6);
    letter-spacing: 2px;
}

/* =========================================== FOND ANIMÉ =========================================== */
#bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* =========================================== HEADER GÉNÉRAL (HOME + AUTRES PAGES) =========================================== */
.header {
    /* ... tes autres propriétés ... */
    -webkit-backdrop-filter: blur(12px); /* AJOUTE CETTE LIGNE */
    backdrop-filter: blur(12px);
}

.hero-frame, .holo-console, .card-front.neon {
    -webkit-backdrop-filter: blur(8px); /* AJOUTE CETTE LIGNE */
    backdrop-filter: blur(8px);
}

/* Logo texte CWDB (home + formations) */
.header-logo,
.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.header-logo .of-small,
.logo .of-small {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.header-logo .cwdb,
.logo .cwdb {
    font-family: "Orbitron", system-ui;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--accent-light);
    text-shadow: var(--neon);
}

/* NAVIGATION (version boutons néon + version liste) */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Boutons type "holo-btn" (home) */
.holo-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: rgba(255, 138, 60, 0.1);
    color: var(--accent-light);
    font-family: "Orbitron";
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255, 138, 60, 0.6), inset 0 0 8px rgba(255, 138, 60, 0.3);
    transition: 0.25s ease;
    font-size: 0.9rem;
}

.holo-btn:hover {
    background: var(--accent);
    color: #000;
}

/* Version nav avec ul/li (formations.html) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-login {
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--accent);
    color: #000;
}

/* Style du Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Supprimer la navigation sur tablette et téléphone */
@media (max-width: 1024px) {
    .nav, .nav-links, .burger {
        display: none !important;
    }
    
}

/* =========================================== HERO =========================================== */
.hero {
    padding-top: 160px;
    /* pour dégager le header fixe */
    text-align: center;
    padding-inline: 20px;
}

.hero.small-hero {
    padding-top: 140px;
}

.hero h1 {
    font-size: 2.8rem;
    font-family: "Orbitron";
    color: var(--accent-light);
    text-shadow: var(--neon);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-top: 15px;
}

/* =========================================== AVATAR MARTINE FLOTTANTE (HOME) =========================================== */
.martine-floating {
    position: fixed;
    top: 180px;
    /* assez bas pour ne pas toucher le header */
    right: 30px;
    /* bien à droite */
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 8px;
    border: 3px solid var(--accent);
    background: rgba(255, 138, 60, 0.15);
    box-shadow: 0 0 20px rgba(255, 138, 60, 0.9), 0 0 40px rgba(255, 138, 60, 0.5), inset 0 0 12px rgba(255, 138, 60, 0.4);
    overflow: hidden;
    z-index: 500;
    animation: floatMartine 5s ease-in-out infinite;
}

.martine-floating img {
    width: 100%;
    height: 100%;
    display: block;
    /* âÂÂÂÂÂÂÂÂÂÂ Correction : on "zoom" légèrement l'image pour que ses coins ne puissent jamais apparaître dans le rond (même avec le glow / l'animation). */
    object-fit: cover;
    object-position: center;
    transform: scale(1.15);
    transform-origin: center;
}

@keyframes floatMartine {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Petit avatar Martine (autres pages éventuelles) */
#martine-avatar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 400;
}

#martine-avatar img {
    width: 180px;
    filter: drop-shadow(0 0 20px rgba(255, 138, 60, 0.6));
}

/* =========================================== HOLOGRAMME NAV SIMPLE (HOME ACTUEL) =========================================== */
.holo-center {
    margin-top: 40px;
    text-align: center;
    padding-inline: 20px;
}

.holo-link {
    display: inline-block;
    margin: 10px 20px;
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--accent);
    color: var(--accent-light);
    font-family: "Orbitron";
    text-decoration: none;
    box-shadow: var(--neon);
    transition: var(--transition);
    font-size: 0.9rem;
}

.holo-link:hover {
    background: var(--accent);
    color: #000;
}

/* ======================================================= BOUTONS NAVIGATION STYLE "PUPITRE HOLOGRAPHIQUE" ======================================================= */
.holo-btn {
    position: relative;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: radial-gradient(circle, rgba(255, 138, 60, 0.25), rgba(0, 0, 0, 0.7));
    color: var(--accent-light);
    font-family: "Orbitron";
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255, 138, 60, 0.6), inset 0 0 8px rgba(255, 138, 60, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}

/* liseré interne */
.holo-btn::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.6;
}

/* effet survol */
.holo-btn:hover {
    background: radial-gradient(circle, rgba(255, 138, 60, 0.85), rgba(0, 0, 0, 0.85));
    color: #000;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 0 25px var(--accent), 0 0 60px rgba(255, 138, 60, 0.9);
}

.holo-btn:hover::before {
    border-color: rgba(255, 255, 255, 0.45);
}

/* =========================================== (PRÊT POUR PLUS TARD) HOLOGRAMME CERCLE A — tu pourras l’utiliser ensuite =========================================== */
.holo-section-A {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    z-index: 5;
}

.holo-center-A {
    position: relative;
    width: 500px;
    height: 500px;
    margin: auto;
    /* IMPORTANT POUR LE CENTRAGE */
}

.holo-core-A {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 60, 0.9), rgba(255, 138, 60, 0.25), rgba(0, 0, 0, 0));
    border: 2px solid rgba(255, 138, 60, 0.6);
    box-shadow: 0 0 60px rgba(255, 138, 60, 1), inset 0 0 35px rgba(255, 138, 60, 0.4);
    animation: corePulseA 4s ease-in-out infinite;
}

@keyframes corePulseA {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.07);
    }
}

.holo-btn-A {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle)) translate(210px) rotate(calc(var(--angle) * -1));
    padding: 12px 24px;
    font-family: "Orbitron";
    color: var(--accent-light);
    text-decoration: none;
    border-radius: 12px;
    background: rgba(255, 138, 60, 0.16);
    border: 2px solid var(--accent);
    box-shadow: 0 0 18px rgba(255, 138, 60, 0.9), inset 0 0 14px rgba(255, 138, 60, 0.4);
    transition: 0.25s ease;
    font-size: 0.9rem;
    /* ESSENTIEL : PREVENT MATRIX MEMORISATION */
    transform-origin: center;
}

.holo-btn-A:hover {
    /* âÂÂÂÂÂÂÂÂÂÂÂÂ On utilise translateX pour allonger le rayon */
    transform: rotate(var(--angle)) translate(230px) rotate(calc(var(--angle) * -1)) scale(1.15);
    background: var(--accent);
    color: black;
    box-shadow: 0 0 40px var(--accent), 0 0 90px rgba(255, 138, 60, 1);
}

/* =========================================== PUPITRE HOLOGRAPHIQUE CWDB =========================================== */
.holo-console-section {
    margin-top: 150px;
    display: flex;
    justify-content: center;
    padding: 40px 20px 80px;
    position: relative;
    z-index: 5;
}

.holo-console {
    position: relative;
    max-width: 900px;
    width: 100%;
    padding: 40px 30px 50px;
    border-radius: 30px;
    background: radial-gradient(circle at top, rgba(255, 138, 60, 0.25), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(255, 138, 60, 0.6);
    box-shadow: 0 0 30px rgba(255, 138, 60, 0.7), 0 0 80px rgba(255, 138, 60, 0.4);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

/* scan holographique */
.holo-console::before {
    content: "";
    position: absolute;
    left: -30%;
    top: -100%;
    width: 60%;
    height: 300%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    opacity: 0.5;
    transform: rotate(8deg);
    animation: holoScan 6s linear infinite;
}

@keyframes holoScan {
    0% {
        transform: translateX(-100%) rotate(8deg);
    }

    100% {
        transform: translateX(200%) rotate(8deg);
    }
}

.console-title {
    font-family: "Orbitron";
    font-size: 1.8rem;
    text-align: center;
    color: var(--accent-light);
    text-shadow: 0 0 18px var(--accent);
}

.console-subtitle {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* grille des boutons */
.console-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.console-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: "Orbitron";
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--accent-light);
    border: 1px solid var(--accent);
    background: radial-gradient(circle, rgba(255, 138, 60, 0.25), rgba(0, 0, 0, 0.7));
    box-shadow: 0 0 12px rgba(255, 138, 60, 0.6), inset 0 0 8px rgba(255, 138, 60, 0.5);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* petit liseré lumineux interne */
.console-btn::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.6;
}

/* effet survol : bouton qui remonte + flash */
.console-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background: radial-gradient(circle, rgba(255, 138, 60, 0.85), rgba(0, 0, 0, 0.8));
    color: #000;
    box-shadow: 0 0 25px var(--accent), 0 0 60px rgba(255, 138, 60, 0.8);
}

.console-btn:hover::before {
    border-color: rgba(255, 255, 255, 0.5);
}

/* =========================================== QUI SUIS-JE (HOME) =========================================== */
/* ======================================================= SECTION QUI SUIS-JE ULTIME ======================================================= */
.about-ultimate {
    margin-top: 140px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    padding: 40px 20px 0;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

/* ========= PHOTO HOLOGRAPHIQUE ========= */
.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-holo-frame {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle, rgba(255, 138, 60, 0.5), rgba(255, 138, 60, 0.15), rgba(0, 0, 0, 0));
    border: 2px solid rgba(255, 138, 60, 0.6);
    box-shadow: 0 0 50px rgba(255, 138, 60, 0.8), inset 0 0 30px rgba(255, 138, 60, 0.3);
}

/* Scanner holographique */
.about-holo-scan {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scanMove 3s ease-in-out infinite;
}

@keyframes scanMove {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    30% {
        opacity: 0.6;
    }

    50% {
        transform: translateY(260px);
        opacity: 0.4;
    }

    100% {
        opacity: 0;
    }
}

.about-photo-ultimate {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 0 20px rgba(255, 138, 60, 0.6));
}

/* ========= BADGES ========= */
.about-badges {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.badge-item {
    background: rgba(255, 138, 60, 0.08);
    border-left: 3px solid var(--accent);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 138, 60, 0.45);
}

.badge-title {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    font-family: "Orbitron";
}

.badge-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
}

/* ========= TEXTE ========= */
.about-right {
    max-width: 580px;
}

.about-title {
    font-family: "Orbitron";
    font-size: 2.4rem;
    color: var(--accent-light);
    margin-bottom: 25px;
    text-shadow: var(--neon);
}

.about-text-ultimate {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ========= CTA ========= */
.about-cta {
    margin-top: 30px;
}

.btn-explore {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-family: "Orbitron";
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--neon);
    transition: 0.3s ease;
}

.btn-explore:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px var(--accent);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 950px) {
    .about-ultimate {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .about-right {
        max-width: 100%;
    }
}

/* ====== PHOTO PLUS GRANDE ====== */
.about-holo-frame {
    width: 420px;
    height: 420px;
}

/* ====== FINANCEMENTS (CPF / OPCO / AUTOFINANCEMENT) ====== */
.financement-logos-ultimate {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fin-logo {
    background: rgba(255, 138, 60, 0.08);
    padding: 12px 18px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 18px rgba(255, 138, 60, 0.4);
    border: 1px solid rgba(255, 138, 60, 0.5);
    width: 130px;
}

.fin-logo img {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 138, 60, 0.7));
    margin-bottom: 8px;
}

.fin-logo span {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-family: "Orbitron";
}

/* ======================================================= PHOTO RECTANGULAIRE QUI SUIS-JE ======================================================= */
.about-photo-rect {
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 138, 60, 0.6);
}

.about-photo-rect img {
    width: 100%;
    height: auto;
    display: block;
}

/* ======================================================= LOGOS FINANCEMENT PLEINE LARGEUR ======================================================= */
.about-full-logos {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 20px 10px;
}

.about-logo-item {
    text-align: center;
    background: rgba(255, 138, 60, 0.1);
    padding: 20px 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 138, 60, 0.4);
    box-shadow: 0 0 20px rgba(255, 138, 60, 0.4);
    min-width: 220px;
}

.about-logo-item img {
    width: 140px;
    /* LOGOS PLUS GRANDS */
    height: auto;
    filter: drop-shadow(0 0 12px rgba(255, 138, 60, 0.7));
    margin-bottom: 10px;
}

.about-logo-item span {
    display: block;
    font-family: "Orbitron";
    font-size: 1.1rem;
    color: var(--accent-light);
}

/* version responsive */
@media (max-width:900px) {
    .about-full-logos {
        gap: 30px;
    }

    .about-logo-item img {
        width: 120px;
    }
}

/* =========================================== TITRES PRINCIPAUX (style formations) =========================================== */
.section-title {
    text-align: center;
    font-family: "Orbitron";
    font-size: 2.3rem;
    color: var(--accent);
    margin-top: 120px;
    margin-bottom: 40px;
    text-shadow: 0 0 12px rgba(255, 138, 60, 0.7), 0 0 25px rgba(255, 138, 60, 0.4);
}

.about-logo-item img {
    width: 140px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    box-shadow: 0 0 18px rgba(255, 138, 60, 0.6);
}

/* =========================================== FORMATIONS (HOME + FORMATIONS.HTML) =========================================== */
.formations h2 {
    text-align: center;
    font-family: "Orbitron";
    font-size: 2.3rem;
    margin-top: 120px;
    margin-bottom: 40px;
    color: var(--accent);
    text-shadow: var(--neon);
}

/* Grille de cartes */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    /* au lieu de 40px */
    justify-items: center;
}

.formations .grid {
    max-width: 1200px;
    /* largeur contrôlée */
    margin: 0 auto;
    /* centrage horizontal parfait */
}

.formations .grid {
    max-width: 1050px;
}

/* CONTAINER DE LA CARTE */
.card {
    perspective: 1000px;
    cursor: pointer;
}

/* L'INTÉRIEUR QUI TOURNE */
.card-inner {
    width: 260px;
    height: 260px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* ROTATION AU SURVOL */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* RECTO ET VERSO — BASE */
.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    padding: 25px 18px;
}

/* RECTO — (ton style fun WOW déjà correct) */
.card-front.neon {
    position: relative;
    background: rgba(255, 138, 60, 0.08);
    border: 2px solid rgba(255, 138, 60, 0.5);
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 138, 60, 0.6), inset 0 0 12px rgba(255, 138, 60, 0.4);
    backdrop-filter: blur(8px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* VERSO */
.card-back {
    background: rgba(0, 0, 0, 0.7);
    transform: rotateY(180deg);
    text-align: center;
}

/* IMAGE DU VERSO */
.card-back img {
    width: 140px;
    margin-top: 10px;
}

.btn.small {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

/* Recto */
/* ====================================================== RECTO DES CARTES – VERSION HOLOGRAPHIQUE FUN & WOW ====================================================== */
.card-front.neon {
    position: relative;
    background: rgba(255, 138, 60, 0.08);
    border: 2px solid rgba(255, 138, 60, 0.5);
    border-radius: 20px;
    padding: 25px 18px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 138, 60, 0.6), inset 0 0 12px rgba(255, 138, 60, 0.4);
    backdrop-filter: blur(8px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* SCAN LUMINEUX INTERNE */
.card-front.neon::before {
    content: "";
    position: absolute;
    top: -120%;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    animation: cardScan 5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes cardScan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translateY(260px);
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }
}

/* TEXTE DU RECTO */
.card-front.neon h3 {
    font-family: "Orbitron";
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(255, 138, 60, 0.8), 0 0 20px rgba(255, 138, 60, 0.5);
    letter-spacing: 1px;
}

.card-front.neon p {
    font-size: 1rem;
    opacity: 0.85;
    color: #fff;
    font-style: italic;
    text-shadow: 0 0 6px rgba(255, 138, 60, 0.4);
}

/* EFFET HOVER : léger zoom + glow supplémentaire */
.card:hover .card-front.neon {
    transform: scale(1.06);
    box-shadow: 0 0 35px rgba(255, 138, 60, 1), inset 0 0 20px rgba(255, 138, 60, 0.5);
}

/* Verso */
.card-back {
    background: rgba(0, 0, 0, 0.7);
    transform: rotateY(180deg);
}

.card-back img {
    
    margin-top: 10px;
}

.btn.small {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* =========================================== CONTACT (BLOC SIMPLE) =========================================== */
.contact {
    margin-top: 120px;
    text-align: center;
    padding-inline: 20px;
}

.contact h2 {
    font-family: "Orbitron";
    font-size: 2rem;
    color: var(--accent);
}

.contact-btn,
.btn.primary {
    padding: 14px 34px;
    border-radius: 50px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--neon);
}

.btn.secondary {
    padding: 12px 26px;
    border-radius: 50px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-light);
    text-decoration: none;
    margin-left: 10px;
}

/* ======================================================= FOOTER STYLE HOLO-CONSOLE (COHÉRENCE PARFAITE) ======================================================= */
.footer {
    margin-top: 150px;
    padding: 60px 30px 50px;
    position: relative;
    border-top: 1px solid rgba(255, 138, 60, 0.6);
    border-radius: 30px 30px 0 0;
    background: radial-gradient(circle at top, rgba(255, 138, 60, 0.25), rgba(10, 10, 15, 0.95));
    box-shadow: 0 0 30px rgba(255, 138, 60, 0.7), 0 0 80px rgba(255, 138, 60, 0.4);
    backdrop-filter: blur(12px);
    overflow: hidden;
    text-align: center;
}

/* SCAN HOLOGRAPHIQUE IDENTIQUE À LA CONSOLE */
.footer::before {
    content: "";
    position: absolute;
    left: -30%;
    top: -120%;
    width: 60%;
    height: 300%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    opacity: 0.5;
    transform: rotate(8deg);
    animation: footerScan 6s linear infinite;
}

@keyframes footerScan {
    0% {
        transform: translateX(-100%) rotate(8deg);
    }

    100% {
        transform: translateX(200%) rotate(8deg);
    }
}

/* CONTENU FOOTER */
.footer-content {
    position: relative;
    z-index: 3;
}

/* TITRE */
.footer-slogan h3 {
    font-family: "Orbitron";
    font-size: 1.8rem;
    color: var(--accent-light);
    text-shadow: 0 0 25px var(--accent);
    margin-bottom: 20px;
}

/* LIENS STYLE console-btn */
.footer-nav a,
.footer-legal a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: "Orbitron";
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--accent-light);
    border: 1px solid var(--accent);
    background: radial-gradient(circle, rgba(255, 138, 60, 0.25), rgba(0, 0, 0, 0.7));
    box-shadow: 0 0 12px rgba(255, 138, 60, 0.6), inset 0 0 8px rgba(255, 138, 60, 0.5);
    margin: 5px 10px;
    transition: 0.25s ease;
}

/* HOVER lumineux */
.footer-nav a:hover,
.footer-legal a:hover {
    background: radial-gradient(circle, rgba(255, 138, 60, 0.85), rgba(0, 0, 0, 0.8));
    color: #000;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 25px var(--accent), 0 0 60px rgba(255, 138, 60, 0.9);
}

/* LOGO QUALIOPI */
.footer-qualiopi img {
    width: 150px;
    margin-top: 20px;
    filter: drop-shadow(0 0 18px var(--accent));
}

.footer-copy {
    margin-top: 20px;
    color: var(--accent-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ======================================================= ANIMATION DE LA GRILLE HOLOGRAPHIQUE (FOOTER) ======================================================= */
/* On modifie ton ::before pour qu'il s'anime */
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 138, 60, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 138, 60, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.25;
    pointer-events: none;
    /* ANIMATION DE DÉPLACEMENT */
    animation: gridMove 18s linear infinite;
}

/* Animation lente et élégante */
@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}

/* =========================================== LOGIN / REGISTER (AUTH) =========================================== */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-container {
    background: rgba(0, 0, 0, 0.55);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: var(--neon);
    width: 380px;
    backdrop-filter: blur(12px);
}

.auth-title {
    text-align: center;
    font-family: "Orbitron";
    font-size: 1.9rem;
    margin-bottom: 30px;
    color: var(--accent);
    text-shadow: var(--neon);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form label {
    font-weight: 600;
}

.auth-form input {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-auth {
    background: var(--accent);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================== DASHBOARD FORMATEUR =========================================== */
.dashboard-body {
    display: flex;
    background: #0b0b10;
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.sidebar-title h2 {
    font-family: "Orbitron";
    text-align: center;
    color: var(--accent);
    text-shadow: var(--neon);
}

.sidebar-menu {
    list-style: none;
    margin-top: 40px;
    padding: 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px;
    margin: 10px 0;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 138, 60, 0.3);
    box-shadow: var(--neon);
}

.dashboard-main {
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--neon);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
}

.dashboard-table th {
    text-align: left;
    padding: 15px;
    font-family: "Orbitron";
    color: var(--accent);
}

.dashboard-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================== COURSE BUILDER DASHBOARD FORMATEUR =========================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    color: var(--accent);
}

.dashboard-header .subtitle {
    margin-top: 6px;
    color: #aaa;
    max-width: 500px;
}

.dashboard-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Boutons builder */
.builder-btn {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 15, 0.85);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.builder-btn.small {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.builder-btn.primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent-light);
    box-shadow: var(--neon);
}

.builder-btn.primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.builder-btn.secondary {
    background: rgba(255, 138, 60, 0.12);
    border-color: rgba(255, 138, 60, 0.5);
}

.builder-btn.secondary:hover {
    background: rgba(255, 138, 60, 0.22);
}

.builder-btn.ghost {
    background: transparent;
}

.builder-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.07);
}

.builder-btn.full-width {
    width: 100%;
    margin-top: 14px;
}

/* Mise en page du course builder */
.course-builder {
    margin-top: 30px;
    padding: 24px 22px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, rgba(255, 138, 60, 0.22), rgba(5, 5, 10, 0.98));
    border: 1px solid rgba(255, 138, 60, 0.5);
    box-shadow: 0 0 26px rgba(255, 138, 60, 0.45);
}

.course-builder-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.course-builder-header h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.4rem;
}

.course-builder-header p {
    color: #cfcfcf;
    max-width: 520px;
    font-size: 0.95rem;
}

.course-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
}

/* Colonne outline */
.course-outline {
    background: rgba(5, 5, 10, 0.9);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.outline-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.outline-select label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 4px;
}

.outline-select select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 8, 14, 0.95);
    color: #fff;
    font-size: 0.85rem;
}

/* Modules + leçons */
.module-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
}

/* <details> = module */
.module-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top left, rgba(255, 138, 60, 0.16), rgba(10, 10, 15, 0.96));
}

.module-card[open] {
    box-shadow: 0 0 18px rgba(255, 138, 60, 0.45);
}

.module-header {
    list-style: none;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.module-header::-webkit-details-marker {
    display: none;
}

.module-info h3 {
    font-size: 0.98rem;
}

.module-info p {
    font-size: 0.8rem;
    color: #c2c2c2;
}

.drag-handle {
    font-size: 1.2rem;
    opacity: 0.7;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-left: auto;
    white-space: nowrap;
}

.badge-published {
    background: rgba(46, 204, 113, 0.16);
    border-color: rgba(46, 204, 113, 0.7);
    color: #aef3c3;
}

.badge-draft {
    background: rgba(241, 196, 15, 0.12);
    border-color: rgba(241, 196, 15, 0.7);
    color: #ffe27a;
}

/* Leçons */
.lesson-list {
    list-style: none;
    padding: 8px 12px 10px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(8, 8, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.86rem;
}

.lesson-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(255, 138, 60, 0.6);
}

.lesson-text strong {
    display: block;
}

.lesson-meta {
    display: block;
    font-size: 0.77rem;
    color: #b5b5b5;
}

.lesson-type {
    margin-left: auto;
    font-size: 1.1rem;
}

.link-btn {
    margin: 8px 0 10px 26px;
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Panneau de détail */
.course-detail-panel {
    background: rgba(8, 8, 14, 0.96);
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.course-detail-panel h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.detail-helper {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 14px;
}

.detail-group {
    margin-bottom: 12px;
}

.detail-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #ddd;
}

.detail-group input,
.detail-group select,
.detail-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(3, 3, 8, 0.96);
    color: #fff;
    padding: 7px 10px;
    font-size: 0.85rem;
    resize: vertical;
}

.detail-group.two-cols {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10px;
}

/* Toggles (switch) */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* switch visuel */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: var(--accent);
    box-shadow: var(--neon);
}

.switch input:checked+.slider:before {
    transform: translateX(18px);
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* Bas du dashboard : 2 colonnes */
.dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.bottom-column .section-title {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1100px) {
    .course-builder-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-builder-header {
        flex-direction: column;
    }

    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

/* =========================================== DRAG & DROP MODULES / LEÇONS =========================================== */
/* Élément qu’on est en train de déplacer */
.module-card.dragging,
.lesson-item.dragging {
    opacity: 0.6;
    transform: scale(0.98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* Conteneur pendant drag */
.module-list,
.lesson-list {
    scroll-behavior: smooth;
}

/* Petite surbrillance de la zone */
.module-list.drag-over,
.lesson-list.drag-over {
    background: linear-gradient(to bottom, rgba(255, 138, 60, 0.07), transparent);
    border-radius: 14px;
}

/* ============================= STYLE DES QUESTIONS DE QUIZ ============================= */
.quiz-question-card {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =============================== QUIZ BUILDER PREMIUM =============================== */
.quiz-list .question-card {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
}

.quiz-list .question-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.question-editor {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
}

.answer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.07);
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
}

.answer-card input[type="text"] {
    width: 75%;
}

.answer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.correct-flag {
    color: #3bffaf;
    font-weight: bold;
}

.answer-card.correct {
    border: 1px solid #3bffaf;
    background: rgba(59, 255, 175, 0.08);
}

/* =========================================== RESPONSIVE =========================================== */
@media (max-width: 900px) {
    .header {
        padding: 0 20px;
    }

    .nav {
        gap: 10px;
    }

    .holo-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .martine-floating {
        display: none;
        /* on la coupe en mobile pour éviter de gêner */
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
}

.hero-subtitle {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-align: center;
    color: #ffffff;
    /* → TEXTE BLANC */
    -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.35);
    /* → CONTOUR GRIS CLAIR */
    text-stroke: 0.6px rgba(255, 255, 255, 0.35);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 255, 255, 0.25);
    margin-top: 18px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================== PYRAMIDE DE CARTES CWDB ========================== */
.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    margin-top: 60px;
}

.pyramid-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
}

/* Décalage progressif pour créer la pyramide */
.row-1 {
    transform: translateY(0px);
}

.row-2 {
    transform: translateY(15px);
}

.row-3 {
    transform: translateY(30px);
}

.row-4 {
    transform: translateY(45px);
}

/* Effet holographique amélioré */
.pyramid-card .card-inner {
    width: 260px;
    height: 260px;
    transition: 0.6s ease;
}

.pyramid-card:hover .card-inner {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 0 40px rgba(255, 138, 60, 1), 0 0 80px rgba(255, 138, 60, 0.7);
    filter: brightness(1.2);
}

/* Apparition progressive */
.pyramid-card {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: pyrFade 0.8s forwards ease-out;
}

@keyframes pyrFade {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .pyramid-row {
        flex-wrap: wrap;
        transform: none !important;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .pyramid-card .card-inner {
        width: 230px;
        height: 230px;
    }
}

/* ============================ GRILLE SPÉCIALE FORMATIONS ============================ */
.formations-grid-line {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 40px;
    margin: 40px auto;
}

/* ============================ TITRES FORMATIONS – CENTRÉS ============================ */
.formation-section .cat-title {
    text-align: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ============================ BOUTON "EN SAVOIR PLUS" STYLE IDENTIQUE À LA NAV ============================ */
.holo-card-btn {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.85rem;
    /* Taille légèrement plus petite */
    padding: 10px 22px;
    /* Ajusté pour les cartes */
    text-align: center;
}

/* Alignement visuel dans le verso */
.card-back .holo-card-btn {
    position: relative;
    z-index: 3;
}

.lesson-nav {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lesson-nav .holo-btn {
    font-size: 0.9rem;
}

.lesson-complete-btn {
    margin-top: 18px;
}

.lesson-complete-label {
    margin-top: 18px;
    color: #3bffaf;
    font-weight: 600;
}

/* Séquence terminée dans la colonne de gauche */
.module-item.completed {
    opacity: 0.6;
    position: relative;
    padding-right: 32px;
}

.module-item.completed::after {
    content: "âÂÂÂÂÂÂÂÂÂÂ";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #3bffaf;
    font-size: 1.1rem;
}

/* === FIX CLIC BOUTON ACHETER === */
.buy-btn {
    position: relative;
    z-index: 50;
    pointer-events: auto !important;
}

.card-back,
.card-inner,
.card {
    pointer-events: auto;
}

@media (max-width: 768px) {


    .nav {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        align-items: center;
    }

    .nav a {
        width: 90%;
        text-align: center;
        padding: 14px 0;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-frame {
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .hero-title {
        text-align: center;
        font-size: 28px;
        line-height: 1.3;
        padding: 16px 18px;
    }

    .hero-subtitle {
        text-align: center;
        padding: 0 20px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .card {
        overflow: visible;
    }

    .card-inner {
        box-shadow: 0 0 25px rgba(255, 140, 0, 0.35);
    }
}

@media (max-width: 768px) {
    .card-back {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 14px;
        padding: 20px;
    }

    .card-back .holo-btn {
        margin-top: 10px;
        width: 80%;
        text-align: center;
    }
}
/* =======================================================
   OPTIMISATION RESPONSIVE : PAGE FORMATIONS
   ======================================================= */

/* 1. Gestion de la grille des formations */
@media (max-width: 1024px) {
    .formations-grid-line {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
        gap: 20px;
        padding: 20px;
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .formations-grid-line {
        grid-template-columns: 1fr; /* 1 seule colonne sur téléphone */
        gap: 30px;
    }

    /* Ajustement des titres de sections pour mobile */
    .cat-title {
        font-size: 1.6rem !important;
        margin-top: 60px !important;
        padding: 0 15px;
    }

    /* On réduit un peu la taille du Hero sur mobile pour gagner de la place */
    .hero.small-hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    /* On s'assure que les cartes ne dépassent pas de l'écran */
    .card-inner {
        width: 280px; 
        height: 280px;
    }
}

/* 2. Fix pour les boutons d'achat sur mobile */
@media (max-width: 480px) {
    .card-back .holo-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        width: 90%; /* Boutons plus larges pour cliquer facilement au doigt */
    }
    
    .card-back img {
        width: 80px; /* Image un peu plus petite pour laisser de la place aux boutons */
    }
}
.quiz-preview {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.quiz-question {
  background: #111;
  border: 1px solid #ff9f43;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.quiz-question h3 {
  margin: 0 0 10px;
  color: #ff9f43;
}

.quiz-answer {
  display: block;
  padding: 8px 10px;
  margin: 6px 0;
  background: #1a1a1a;
  border-radius: 8px;
  cursor: not-allowed;
}

.quiz-answer input {
  margin-right: 8px;
}
