/* =====================================================
   CLUB DE CULTURE GÉNÉRALE
   STYLE PRINCIPAL
   ===================================================== */


/* =====================================================
   BASE
   ===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(170, 45, 255, 0.28),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(0, 220, 255, 0.22),
            transparent 35%
        ),
        #08090d;

    color: #f5f3ea;

    overflow-x: hidden;
}


/* =====================================================
   PAGES
   ===================================================== */

.page {
    display: none !important;
    width: 100%;
    min-height: 100vh;
    padding: 50px;
    pointer-events: none !important;
}

.page.active {
    display: flex !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1000;
}

.page.active button,
.page.active input,
.page.active a {
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
}


/* =====================================================
   ACCUEIL
   ===================================================== */

#accueil {
    align-items: center;
    justify-content: center;

    text-align: center;
}

.accueil-contenu {
    width: min(900px, 100%);
}

.logo {
    width: 110px;
    height: 110px;

    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #d946ef,
            #22d3ee
        );

    color: white;

    font-size: 34px;
    font-weight: 900;

    box-shadow:
        0 0 50px rgba(168, 85, 247, 0.35);
}

.sur-titre {
    margin-bottom: 15px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 4px;

    opacity: 0.7;
}

.accueil-contenu h1 {
    font-size: clamp(42px, 7vw, 82px);

    line-height: 0.98;

    font-weight: 900;

    letter-spacing: -3px;

    margin-bottom: 25px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #ddd6fe,
            #67e8f9
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.description {
    max-width: 550px;

    margin: 0 auto 40px;

    font-size: 18px;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.65);
}


/* =====================================================
   BOUTONS PRINCIPAUX
   ===================================================== */

button {
    font: inherit;
    color: inherit;
}

.bouton-principal {
    border: none;

    padding: 16px 42px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #d946ef,
            #22d3ee
        );

    color: white;

    font-size: 18px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.bouton-principal:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(34, 211, 238, 0.22);
}

.bouton-principal:active {
    transform: translateY(0);
}

.bouton-secondaire {
    margin-top: 15px;

    padding: 13px 30px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);

    cursor: pointer;
}


/* =====================================================
   CONTENU DES PAGES
   ===================================================== */

.page-contenu {
    width: min(1250px, 100%);

    margin: auto;
}

.entete-page {
    margin-bottom: 55px;
}

.petit-titre {
    margin-bottom: 10px;

    color: #67e8f9;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 3px;
}

.entete-page h2,
.fin-contenu h2 {
    margin-bottom: 15px;

    font-size: clamp(42px, 6vw, 70px);

    line-height: 1;

    letter-spacing: -2px;
}

.entete-page p:last-child {
    color: rgba(255, 255, 255, 0.55);

    font-size: 17px;
}


/* =====================================================
   CATÉGORIES
   ===================================================== */

.categories-grille {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.categorie-btn {
    min-height: 180px;

    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.025)
        );

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.categorie-btn:hover {
    transform: translateY(-7px);

    border-color: rgba(103, 232, 249, 0.65);

    background:
        linear-gradient(
            145deg,
            rgba(217, 70, 239, 0.16),
            rgba(34, 211, 238, 0.08)
        );
}

.categorie-btn span {
    display: block;

    margin-bottom: 12px;

    font-size: 27px;
    font-weight: 850;
}

.categorie-btn small {
    display: block;

    color: rgba(255, 255, 255, 0.55);

    line-height: 1.5;
}


/* =====================================================
   DIFFICULTÉ
   ===================================================== */

.difficulte-grille {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.difficulte-btn {
    min-height: 210px;

    padding: 35px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.difficulte-btn:hover {
    transform: translateY(-8px);

    border-color: rgba(255, 255, 255, 0.55);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.difficulte-btn span {
    display: block;

    margin-bottom: 12px;

    font-size: 32px;
    font-weight: 850;
}

.difficulte-btn small {
    color: rgba(255, 255, 255, 0.55);

    font-size: 15px;
}


/* =====================================================
   QUIZ
   ===================================================== */

.quiz-conteneur {
    width: min(1300px, 100%);

    margin: auto;
}


/* Barre supérieure */

.quiz-haut {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 30px;

    margin-bottom: 22px;
}

.etiquette {
    display: inline-block;

    margin-bottom: 8px;

    padding: 8px 14px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #d946ef,
            #22d3ee
        );

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2px;
}

#progression {
    font-size: 18px;
    font-weight: 750;
}

.chrono {
    display: flex;

    align-items: center;
    gap: 9px;

    padding: 13px 20px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chrono strong {
    min-width: 25px;

    text-align: center;

    font-size: 20px;
}

.score {
    justify-self: end;

    text-align: right;
}

.score span {
    display: block;

    margin-bottom: 4px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 13px;
}

.score strong {
    font-size: 24px;
}


/* =====================================================
   PROGRESSION
   ===================================================== */

.progression {
    width: 100%;
    height: 7px;

    margin-bottom: 35px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
}

.progression-interieure {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #d946ef,
            #22d3ee
        );

    transition: width 0.3s ease;
}


/* =====================================================
   QUESTION
   ===================================================== */

.question-zone {
    min-height: 230px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    padding: 50px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.025)
        );

    text-align: center;
}

#question {
    max-width: 1000px;

    font-size: clamp(25px, 3vw, 42px);

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -1px;
}


/* =====================================================
   RÉPONSES
   ===================================================== */

.reponses {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.reponse-btn {
    min-height: 100px;

    padding: 24px 28px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.055);

    text-align: left;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.reponse-btn:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.35);
}


/* Bonne réponse */

.reponse-btn.correct {
    background: #ffffff;

    color: #08090d;

    border-color: #ffffff;
}


/* Mauvaise réponse */

.reponse-btn.incorrect {
    background: #000000;

    color: #ffffff;

    border-color: #333333;
}


/* Bouton désactivé */

.reponse-btn:disabled {
    cursor: default;
}


/* =====================================================
   MESSAGE RÉSULTAT
   ===================================================== */

.message-resultat {
    min-height: 35px;

    margin-top: 20px;

    text-align: center;

    font-size: 18px;
    font-weight: 800;
}


/* =====================================================
   FIN
   ===================================================== */

#fin {
    align-items: center;
    justify-content: center;

    text-align: center;
}

.fin-contenu {
    width: min(700px, 100%);
}

.fin-contenu h2 {
    margin-bottom: 35px;
}

.score-final {
    padding: 40px;

    margin-bottom: 25px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.025)
        );
}

.score-final span {
    display: block;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.5);
}

.score-final strong {
    display: block;

    font-size: 70px;
    font-weight: 900;

    background:
        linear-gradient(
            90deg,
            #d946ef,
            #22d3ee
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

#messageFinal {
    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 18px;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

    .page {
        padding: 30px 20px;
    }

    .categories-grille {
        grid-template-columns: repeat(2, 1fr);
    }

    .difficulte-grille {
        grid-template-columns: 1fr;
    }

    .quiz-haut {
        grid-template-columns: 1fr auto;
    }

    .score {
        display: none;
    }

}


@media (max-width: 650px) {

    .categories-grille {
        grid-template-columns: 1fr;
    }

    .reponses {
        grid-template-columns: 1fr;
    }

    .question-zone {
        min-height: 260px;

        padding: 30px 20px;
    }

    .quiz-haut {
        gap: 15px;
    }

    .chrono {
        padding: 10px 15px;
    }

    .accueil-contenu h1 {
        letter-spacing: -2px;
    }

}


/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes apparition {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.page.active > * {
    animation: apparition 0.45s ease;
}
/* ==========================================
   MODES DE JEU
========================================== */

.modes-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 45px auto 0;
}

.mode-btn {
    min-height: 180px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;

    background: rgba(20, 20, 25, 0.75);
    color: white;

    text-align: left;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.mode-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(35, 35, 42, 0.9);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.mode-titre {
    font-size: 30px;
    font-weight: 700;
}

.mode-description {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.75;
}

@media (max-width: 750px) {

    .modes-grille {
        grid-template-columns: 1fr;
    }

}
#retourAccueil {
    display: inline-block !important;
}
/* ==========================================
   MODE DUEL — STRUCTURE GÉNÉRALE
========================================== */

#duel-creation,
#duel-format,
#duel-parametres,
#duel-confirmation,
#duel-countdown,
#duel-jeu,
#duel-revelation,
#duel-fin,
#duel-sudden-death {
    min-height: 100vh;
    width: 100%;
}

#duel-creation .page-content,
#duel-format .page-content,
#duel-parametres .page-content,
#duel-confirmation .page-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px;
}


/* ==========================================
   CRÉATION DU DUEL
========================================== */

.duel-creation-contenu {
    width: 100%;
    max-width: 850px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.duel-joueur {
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    text-align: center;
}

.duel-label {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 15px;
}

.duel-joueur h3 {
    margin: 0;
    font-size: 28px;
}

.duel-vs {
    font-size: 28px;
    font-weight: 800;
    opacity: 0.65;
}

#duel-joueur2-nom {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;

    background: transparent;
    color: inherit;

    font-size: 17px;
    text-align: center;
    outline: none;
}

#duel-joueur2-nom:focus {
    border-color: rgba(255, 255, 255, 0.7);
}

#duel-continuer {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 220px;
}


/* ==========================================
   CHOIX DU FORMAT
========================================== */

.duel-formats {
    width: 100%;
    max-width: 900px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.duel-format-btn {
    min-height: 220px;
    padding: 35px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;

    background: rgba(20, 20, 25, 0.7);
    color: inherit;

    cursor: pointer;
    text-align: left;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.duel-format-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(35, 35, 42, 0.9);
}

.duel-format-titre {
    font-size: 27px;
    font-weight: 800;
}

.duel-format-description {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.65;
}


/* ==========================================
   PARAMÈTRES DU DUEL
========================================== */

.duel-choix {
    width: 100%;
    max-width: 850px;
    margin: 45px auto 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.duel-option-btn {
    min-height: 90px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;

    background: rgba(20, 20, 25, 0.7);
    color: inherit;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.duel-option-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.7);
}

#duel-chrono-choix {
    display: none;
}


/* ==========================================
   CONFIRMATION
========================================== */

.duel-regles {
    width: 100%;
    max-width: 600px;
    margin: 35px auto;

    padding: 25px;

    border-radius: 20px;
    background: rgba(20, 20, 25, 0.7);

    text-align: center;
}

.duel-joueurs-confirmation {
    width: 100%;
    max-width: 850px;
    margin: 30px auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.duel-confirmation-joueur {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    text-align: center;
}

.duel-confirmation-joueur span {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.6;
}

.duel-confirmation-joueur h3 {
    font-size: 25px;
    margin: 12px 0;
}

.duel-confirmation-joueur p {
    margin-bottom: 20px;
}

#duel-message-confirmation {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 750px) {

    .duel-creation-contenu {
        grid-template-columns: 1fr;
    }

    .duel-vs {
        display: none;
    }

    .duel-formats {
        grid-template-columns: 1fr;
    }

    .duel-choix {
        grid-template-columns: repeat(2, 1fr);
    }

    .duel-joueurs-confirmation {
        grid-template-columns: 1fr;
    }

}
/* ==========================================
   MODE DUEL — ÉCRAN DE COMBAT
========================================== */

#duel-jeu {
    padding: 25px;
    box-sizing: border-box;
}

.duel-jeu-conteneur {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* BARRE SUPÉRIEURE */

.duel-barre {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;

    margin-bottom: 30px;
}

.duel-info-joueur {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px 22px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;

    background: rgba(20, 20, 25, 0.75);
}

.duel-info-joueur strong {
    font-size: 26px;
}

.duel-info-joueur span:last-child {
    margin-left: auto;
    opacity: 0.8;
}

.duel-joueur2 {
    justify-content: flex-end;
}

.duel-info-central {
    text-align: center;
    min-width: 150px;
}

.duel-info-central span {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.55;
    margin-bottom: 8px;
}

.duel-info-central strong {
    font-size: 28px;
}


/* QUESTION */

.duel-question {
    max-width: 1000px;
    margin: 0 auto 35px;

    padding: 35px 45px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;

    background: rgba(20, 20, 25, 0.8);

    text-align: center;
}

.duel-question-label {
    margin: 0 0 15px;

    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.5;
}

.duel-question h2 {
    margin: 0;

    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.3;
}


/* ZONES DES JOUEURS */

.duel-joueurs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;
}

.duel-zone-joueur {
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;

    background: rgba(20, 20, 25, 0.7);

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.duel-zone-joueur h3 {
    margin: 0;

    font-size: 24px;
}

.duel-zone-joueur input {
    width: 100%;
    box-sizing: border-box;

    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;

    background: transparent;
    color: inherit;

    font-size: 18px;

    outline: none;
}

.duel-zone-joueur input:focus {
    border-color: rgba(255, 255, 255, 0.75);
}

.duel-zone-joueur button {
    min-height: 52px;
}

.duel-zone-joueur p {
    margin: 0;

    text-align: center;

    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.55;
}

.duel-separation {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;

    font-size: 20px;
    font-weight: 800;

    opacity: 0.45;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .duel-barre {
        grid-template-columns: 1fr 1fr;
    }

    .duel-info-central {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .duel-joueurs {
        grid-template-columns: 1fr;
    }

    .duel-separation {
        width: 100%;
        height: 30px;
    }

}
/* ==========================================
   MODE DUEL — RÉVÉLATION
========================================== */

#duel-revelation {
    min-height: 100vh;
    padding: 40px 25px;
    box-sizing: border-box;
}

.duel-revelation-contenu {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.duel-revelation-contenu > h2 {
    font-size: clamp(22px, 3vw, 34px);
    margin: 20px auto 40px;
    max-width: 850px;
}

.duel-resultats-joueurs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.duel-resultat-joueur {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(20, 20, 25, 0.75);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.duel-resultat-joueur h3 {
    margin: 0;
    font-size: 24px;
}

.duel-resultat-joueur p {
    margin: 0;
    min-height: 28px;
    font-size: 18px;
    opacity: 0.75;
}

.duel-resultat-joueur strong {
    font-size: 34px;
}

.duel-resultat-joueur span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.duel-bonne-reponse {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 22px 30px;

    border-radius: 18px;
    background: rgba(20, 20, 25, 0.75);

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duel-bonne-reponse span {
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.55;
}

.duel-bonne-reponse strong {
    font-size: 24px;
}

#duel-revelation-message {
    min-height: 30px;
    font-size: 18px;
    font-weight: 700;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .duel-resultats-joueurs {
        grid-template-columns: 1fr;
    }

}
/* ==========================================
   MODE DUEL — ÉCRAN FINAL
========================================== */

#duel-fin {
    min-height: 100vh;
    padding: 50px 25px;
    box-sizing: border-box;
}

.duel-fin-contenu {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

#duel-fin-titre {
    margin: 20px 0 35px;
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 900;
    letter-spacing: 2px;
}

.duel-vainqueur {
    margin: 0 auto 40px;
    padding: 35px;

    max-width: 550px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;

    background: rgba(20, 20, 25, 0.8);
}

.duel-vainqueur span {
    display: block;

    font-size: 12px;
    letter-spacing: 3px;

    opacity: 0.55;
}

.duel-vainqueur h2 {
    margin: 15px 0 10px;

    font-size: 38px;
}

.duel-vainqueur strong {
    font-size: 30px;
}


/* SCORES */

.duel-scores-fin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    max-width: 750px;
    margin: 0 auto 45px;
}

.duel-score-final {
    padding: 25px;

    border-radius: 20px;

    background: rgba(20, 20, 25, 0.7);

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.duel-score-final span {
    font-size: 13px;
    opacity: 0.55;
}

.duel-score-final strong {
    font-size: 42px;
}


/* STATISTIQUES */

.duel-statistiques {
    max-width: 950px;
    margin: 0 auto 45px;
}

.duel-statistiques h3 {
    margin-bottom: 25px;

    font-size: 14px;
    letter-spacing: 3px;

    opacity: 0.6;
}

.duel-stats-grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.duel-stats-grille > div {
    padding: 18px 22px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    background: rgba(20, 20, 25, 0.55);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.duel-stats-grille span {
    font-size: 14px;
    opacity: 0.65;
}

.duel-stats-grille strong {
    font-size: 18px;
}


/* ACTIONS */

.duel-fin-actions {
    display: flex;
    justify-content: center;
    gap: 18px;

    margin-top: 35px;
}

.duel-fin-actions button {
    min-width: 190px;
    min-height: 55px;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .duel-scores-fin {
        grid-template-columns: 1fr;
    }

    .duel-stats-grille {
        grid-template-columns: 1fr;
    }

    .duel-fin-actions {
        flex-direction: column;
        align-items: stretch;
    }

}
/* ==========================================
   MODE DUEL — SUDDEN DEATH
========================================== */

#duel-sudden-death {
    min-height: 100vh;
    padding: 35px 25px;
    box-sizing: border-box;
}

.sudden-death-contenu {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.sudden-death-contenu h1 {
    margin: 10px 0;

    font-size: clamp(45px, 8vw, 90px);
    font-weight: 900;
    letter-spacing: 4px;
}

.sudden-death-intro {
    margin: 0 0 35px;

    font-size: 18px;
    opacity: 0.65;
}


/* SCORES */

.sudden-death-scores {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 30px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;
}

.sudden-death-scores > div {
    padding: 25px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;

    background: rgba(20, 20, 25, 0.75);

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sudden-death-scores span {
    font-size: 14px;
    opacity: 0.6;
}

.sudden-death-scores strong {
    font-size: 40px;
}

.sudden-death-vs {
    font-size: 20px;
    font-weight: 900;
    opacity: 0.5;
}


/* COMPTE À REBOURS */

.sudden-death-countdown {
    min-height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 80px;
    font-weight: 900;
}


/* QUESTION */

.sudden-death-question {
    max-width: 950px;
    margin: 0 auto 35px;

    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;

    background: rgba(20, 20, 25, 0.8);
}

.sudden-death-question p {
    margin: 0 0 15px;

    font-size: 12px;
    letter-spacing: 3px;

    opacity: 0.5;
}

.sudden-death-question h2 {
    margin: 0;

    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.3;
}


/* ZONES JOUEURS */

.sudden-death-joueurs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: stretch;
    gap: 20px;

    max-width: 1100px;
    margin: 0 auto;
}

.sudden-death-joueur {
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;

    background: rgba(20, 20, 25, 0.75);

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sudden-death-joueur h3 {
    margin: 0;
    font-size: 25px;
}

.sudden-death-joueur input {
    width: 100%;
    box-sizing: border-box;

    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;

    background: transparent;
    color: inherit;

    font-size: 18px;

    outline: none;
}

.sudden-death-joueur input:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.sudden-death-joueur button {
    min-height: 52px;
}

.sudden-death-joueur p {
    margin: 0;

    font-size: 13px;
    letter-spacing: 1px;

    opacity: 0.55;
}

.sudden-death-separation {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;

    font-size: 35px;
    font-weight: 900;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .sudden-death-scores {
        grid-template-columns: 1fr;
    }

    .sudden-death-vs {
        display: none;
    }

    .sudden-death-joueurs {
        grid-template-columns: 1fr;
    }

    .sudden-death-separation {
        width: 100%;
        height: 25px;
    }

}
/* ==========================================
   MODE DUEL — COMPTE À REBOURS
========================================== */

#duel-countdown {
    min-height: 100vh;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.duel-countdown-contenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#duel-countdown-chiffre {
    font-size: clamp(110px, 20vw, 220px);
    line-height: 1;
    font-weight: 900;
}

#duel-countdown-message {
    margin: 0;

    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: 2px;
}
/* =========================================================
   DUEL — ÉCRAN FINAL PREMIUM
========================================================= */

#duel-resultat {
    position: relative;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 25%, rgba(0, 242, 254, 0.12), transparent 35%),
        radial-gradient(circle at 15% 80%, rgba(255, 60, 172, 0.14), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(120, 80, 255, 0.14), transparent 35%);
}

/* Lumières décoratives */

#duel-resultat::before,
#duel-resultat::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    pointer-events: none;
}

#duel-resultat::before {
    background: #ff3cac;
    top: -250px;
    left: -200px;
}

#duel-resultat::after {
    background: #00f2fe;
    bottom: -250px;
    right: -200px;
}


/* =========================================================
   CARTE PRINCIPALE
========================================================= */

.duel-resultat-conteneur {
    position: relative;
    z-index: 2;
    width: min(900px, 90%);
    padding: 55px 60px;
    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.035)
        );

    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 35px;

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 35px 100px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.12);

    animation: duelResultatApparition 0.7s ease forwards;
}


/* Ligne lumineuse supérieure */

.duel-resultat-conteneur::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #ff3cac,
        #00f2fe,
        transparent
    );

    box-shadow:
        0 0 20px rgba(0,242,254,0.7),
        0 0 35px rgba(255,60,172,0.5);
}


/* =========================================================
   PETIT TITRE
========================================================= */

.duel-resultat-conteneur .petit-titre {
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 6px;

    background: linear-gradient(
        90deg,
        #ff3cac,
        #00f2fe
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* =========================================================
   TITRE
========================================================= */

.duel-resultat-conteneur h2 {
    margin: 0 0 35px;

    font-size: clamp(38px, 6vw, 62px);
    font-weight: 900;
    letter-spacing: -2px;

    color: white;

    text-shadow:
        0 0 25px rgba(255,255,255,0.12);
}


/* =========================================================
   TROPHÉE
========================================================= */

.duel-resultat-gagnant {
    margin-bottom: 45px;
}

#duel-resultat-trophee {
    display: inline-flex;

    width: 105px;
    height: 105px;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    font-size: 55px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,0.16),
            rgba(255,255,255,0.03)
        );

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow:
        0 0 35px rgba(255,200,50,0.25),
        inset 0 0 25px rgba(255,255,255,0.06);

    animation: trophéeFlottant 2.5s ease-in-out infinite;
}

#duel-resultat-gagnant {
    margin: 0;

    font-size: clamp(24px, 4vw, 34px);
    font-weight: 900;

    color: white;

    text-shadow:
        0 0 25px rgba(255,255,255,0.2);
}


/* =========================================================
   SCORES
========================================================= */

.duel-resultat-scores {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 25px;

    margin: 0 auto 45px;

    max-width: 700px;
}


/* Cartes joueurs */

.duel-resultat-joueur {
    position: relative;

    padding: 28px 20px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.09),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(255,255,255,0.10);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.07),
        0 15px 35px rgba(0,0,0,0.18);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.duel-resultat-joueur:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.25);
}


/* Nom */

.duel-resultat-joueur span {
    display: block;

    margin-bottom: 12px;

    font-size: 18px;
    font-weight: 700;

    color: rgba(255,255,255,0.75);
}


/* Score */

.duel-resultat-joueur strong {
    display: block;

    font-size: 64px;
    line-height: 1;

    font-weight: 900;

    background: linear-gradient(
        135deg,
        #ffffff,
        #b9faff
    );
   background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* "points" */

.duel-resultat-joueur small {
    display: block;

    margin-top: 8px;

    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255,255,255,0.45);
}


/* VS */

.duel-resultat-vs {
    display: flex;

    width: 55px;
    height: 55px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;

    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(255,60,172,0.22),
            rgba(0,242,254,0.22)
        );

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow:
        0 0 25px rgba(0,242,254,0.12);
}


/* =========================================================
   BOUTONS
========================================================= */

.duel-resultat-actions {
    display: flex;

    justify-content: center;

    gap: 15px;
}

.duel-resultat-actions button {
    position: relative;

    min-width: 190px;

    padding: 16px 28px;

    border: none;
    border-radius: 16px;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.duel-resultat-actions button:hover {
    transform: translateY(-3px);
}



/* QUITTER */

#duel-quitter {
    color: rgba(255,255,255,0.8);

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.12) !important;
}

#duel-quitter:hover {
    background: rgba(255,255,255,0.10);
    color: white;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes duelResultatApparition {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

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


@keyframes trophéeFlottant {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}


@keyframes gradientBouton {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .duel-resultat-conteneur {
        padding: 40px 20px;
        border-radius: 25px;
    }

    .duel-resultat-scores {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .duel-resultat-vs {
        margin: 0 auto;
        width: 42px;
        height: 42px;
    }

    .duel-resultat-actions {
        flex-direction: column;
    }

    .duel-resultat-actions button {
        width: 100%;
    }
}
/* =====================================================
   DUEL — RÉVÉLATION DE LA BONNE RÉPONSE
===================================================== */

.duel-revelation {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 60, 172, 0.12),
            transparent 45%
        ),
        rgba(5, 5, 15, 0.82);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.duel-revelation.active {
    display: flex;
    animation: revelationFond 0.3s ease forwards;
}

.duel-revelation-carte {
    width: min(600px, 90%);

    padding: 50px 40px;

    text-align: center;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.035)
        );

    border: 1px solid rgba(255,255,255,0.16);

    box-shadow:
        0 30px 90px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.12);

    animation: revelationCarte 0.45s cubic-bezier(.2,.8,.2,1);
}

.duel-revelation-icon {
    font-size: 55px;
    margin-bottom: 18px;

    animation: revelationIcon 0.6s ease;
}

.duel-revelation-titre {
    margin: 0;

    font-size: clamp(25px, 5vw, 38px);
    font-weight: 900;
    letter-spacing: 1px;

    color: white;
}

.duel-revelation-sous-titre {
    margin: 14px 0 18px;

    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255,255,255,0.55);
}

.duel-bonne-reponse {
    display: inline-block;

    max-width: 100%;

    padding: 18px 30px;

    border-radius: 18px;

    font-size: clamp(22px, 4vw, 32px);
    font-weight: 900;

    color: white;

    background:
        linear-gradient(
            100deg,
            rgba(255,60,172,0.18),
            rgba(0,242,254,0.18)
        );

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 0 30px rgba(0,242,254,0.12),
        inset 0 0 25px rgba(255,255,255,0.04);

    animation: bonneReponseApparition 0.55s 0.15s both;
}

@keyframes revelationFond {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes revelationCarte {

    from {
        opacity: 0;
        transform: scale(0.82) translateY(20px);
    }

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

@keyframes revelationIcon {

    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bonneReponseApparition {

    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
/* ==========================================
   DUEL — NOUVEL ÉCRAN DE PRÉPARATION
   ========================================== */

#duel-creation .duel-creation-contenu {
    width: 100%;
    max-width: 600px;
    margin: 70px auto 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;

    text-align: center;
}

#duel-creation .duel-creation-contenu .petit-titre {
    margin: 0;
}

#duel-creation .duel-creation-contenu h2 {
    margin: 0;
    font-size: 42px;
}

#duel-creation .duel-creation-contenu > p:not(.petit-titre) {
    margin: 0 0 15px;
    opacity: 0.7;
}

#duel-creation .duel-joueur {
    width: 100%;
    max-width: 420px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;

    text-align: left;
}

#duel-creation .duel-label {
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.65;
}

#duel-creation #duel-mon-nom {
    width: 100%;
    box-sizing: border-box;

    padding: 16px 18px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.06);
    color: inherit;

    font-size: 16px;
    outline: none;
}

#duel-creation #duel-mon-nom:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

#duel-creation #duel-continuer {
    min-width: 220px;
    margin-top: 5px;
}
/* Bouton Continuer — préparation du Duel */

#duel-creation #duel-continuer {
    position: static;
    display: block;
    width: auto;
    min-width: 220px;
    margin: 10px auto 0;
}
/* ================================
   CORRECTION AFFICHAGE DES RÈGLES
   ================================ */

/* Les choix de nombre de questions sont cachés par défaut */
.choix-regles,
.choix-questions,
.questions-options {
    display: none !important;
}

/* Ils peuvent apparaître uniquement sur la page prévue */
#jeu .choix-regles,
#jeu .choix-questions,
#jeu .questions-options {
    display: grid !important;
}
/* BOUTONS REJOINDRE / RETOUR */

.duel-rejoindre-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.duel-rejoindre-actions button {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;

    font-size: 15px;
    font-weight: 800;
    cursor: pointer;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

#duel-rejoindre-confirmer {
    background: linear-gradient(90deg, #ff4fb3, #35d9ff);
    color: white;
}

#duel-rejoindre-retour {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
}

.duel-rejoindre-actions button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
#duel-salle {
    position: relative;
    z-index: 10;
}

#duel-salle button {
    position: relative;
    z-index: 20;
    pointer-events: auto !important;
    touch-action: manipulation;
    cursor: pointer;
}

#duel-salle-menu {
    position: relative;
    z-index: 20;
}
/* Correction tactile iPhone — Duel */
#duel-salle {
    position: relative;
    z-index: 9999 !important;
}

#duel-salle .page-content {
    position: relative;
    z-index: 10000 !important;
}

#duel-salle button {
    position: relative;
    z-index: 10001 !important;
    pointer-events: auto !important;
}
/* FIX DUEL MOBILE — priorité absolue aux boutons */
#duel-salle {
    position: relative !important;
    isolation: isolate !important;
}

#duel-salle .page-content {
    position: relative !important;
    z-index: 999999 !important;
}

#duel-salle .duel-salle-actions {
    position: relative !important;
    z-index: 1000000 !important;
}

#duel-salle .duel-salle-actions button {
    position: relative !important;
    z-index: 1000001 !important;
    pointer-events: auto !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   DUEL ONLINE — REFONTE VISUELLE + MOBILE
   ========================================================= */
.duel-flow-card,
.duel-flow-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(27,18,42,.94), rgba(10,18,24,.92));
    box-shadow: 0 28px 80px rgba(0,0,0,.35);
    text-align: center;
    box-sizing: border-box;
}
.duel-flow-card { max-width: 620px; margin-top: 8vh; }
.duel-flow-icon { font-size: 42px; margin-bottom: 12px; }
.duel-flow-card h2,
.duel-flow-shell h2 { font-size: clamp(32px, 5vw, 52px); margin: 8px 0 10px; }
.duel-flow-subtitle { opacity: .68; font-size: 16px; line-height: 1.55; }
.duel-name-field { display:block; text-align:left; margin:30px 0 18px; }
.duel-name-field span,
.duel-card-label { display:block; font-size:11px; letter-spacing:2px; opacity:.55; margin-bottom:9px; }
.duel-name-field input,
.duel-join-card input,
.duel-personal-zone input {
    width:100%; box-sizing:border-box; border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.055); color:inherit; border-radius:16px;
    padding:17px 18px; outline:none; font-size:18px;
}
.duel-name-field input:focus,
.duel-join-card input:focus,
.duel-personal-zone input:focus { border-color:rgba(34,211,238,.7); box-shadow:0 0 0 4px rgba(34,211,238,.08); }
.duel-input-erreur { border-color:#ef4444 !important; }
.duel-continue-btn {
    width:100%; border:0; border-radius:17px; padding:17px 20px; display:flex;
    justify-content:space-between; align-items:center; background:linear-gradient(135deg,#d946ef,#22d3ee);
    color:#fff; font-size:18px; font-weight:900; letter-spacing:.5px; cursor:pointer;
    box-shadow:0 14px 35px rgba(34,211,238,.16); transition:.2s ease;
}
.duel-continue-btn:hover { transform:translateY(-2px); box-shadow:0 20px 45px rgba(34,211,238,.23); }
.duel-salle-actions-clean { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:34px; }
.duel-action-card {
    min-height:150px; border:1px solid rgba(255,255,255,.14); border-radius:22px;
    background:rgba(255,255,255,.035); color:inherit; padding:25px; display:flex; gap:16px;
    align-items:center; text-align:left; cursor:pointer; transition:.2s ease;
}
.duel-action-card:hover { transform:translateY(-3px); border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.06); }
.duel-action-card strong { display:block; font-size:18px; }
.duel-action-card small { display:block; margin-top:7px; opacity:.55; }
.duel-action-icon { font-size:35px; width:50px; text-align:center; }
.duel-join-card { max-width:460px; margin:28px auto 0; padding:25px; border-radius:22px; background:rgba(255,255,255,.04); }
.duel-join-card .bouton-principal { width:100%; margin-top:12px; }
.duel-erreur { min-height:22px; margin:12px 0 0; color:#fca5a5; }
.duel-format-btn.selectionne,
.duel-param-btn.selectionne { border-color:#22d3ee !important; background:linear-gradient(145deg,rgba(217,70,239,.14),rgba(34,211,238,.12)) !important; box-shadow:0 0 0 2px rgba(34,211,238,.12),0 15px 40px rgba(0,0,0,.18); }
.duel-param-btn { min-height:105px; }
.duel-param-btn small { display:block; margin-top:6px; opacity:.48; font-size:10px; letter-spacing:2px; }
.duel-rules-continue { margin-top:28px; min-width:260px; }
.duel-rules-continue:disabled { opacity:.35; cursor:not-allowed; transform:none; box-shadow:none; }
.duel-regles { display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:760px; margin:28px auto; padding:18px; }
.duel-regles p { margin:0; padding:18px; border-radius:16px; background:rgba(255,255,255,.045); }
.duel-regles span { display:block; font-size:10px; letter-spacing:2px; opacity:.45; margin-bottom:7px; }
.duel-regles strong { display:block; font-size:16px; }
.duel-confirmation-joueur { background:rgba(255,255,255,.035); }
.duel-confirmation-joueur strong { display:block; margin-top:12px; font-size:12px; letter-spacing:1.5px; }
.duel-ready-btn { width:min(420px,100%); border:0; border-radius:18px; padding:19px; background:linear-gradient(135deg,#d946ef,#22d3ee); color:#fff; font-size:18px; font-weight:900; cursor:pointer; }
.duel-ready-btn:disabled { opacity:.45; cursor:not-allowed; }
.duel-confirmation-message { opacity:.62; min-height:24px; }
.duel-salle-attente { text-align:center; padding:30px; }
.duel-code-salle { margin:25px auto; width:min(360px,100%); padding:20px; border-radius:18px; font-size:35px; font-weight:900; letter-spacing:7px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.13); }
.duel-attente-ligne { opacity:.75; }
.duel-live-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:#22c55e; box-shadow:0 0 16px #22c55e; margin-right:8px; }
.duel-regles-mini { display:flex; flex-direction:column; gap:5px; margin:25px auto 0; max-width:520px; opacity:.75; }
.duel-regles-mini span { font-size:13px; }
.duel-online-game { max-width:1200px; }
.duel-question-online { min-height:220px; display:flex; flex-direction:column; justify-content:center; }
.duel-live-status { display:grid; grid-template-columns: .7fr 1.3fr; gap:18px; align-items:stretch; }
.duel-opponent-status { padding:22px; border-radius:20px; background:rgba(255,255,255,.04); text-align:center; display:flex; flex-direction:column; justify-content:center; }
.duel-opponent-status span { font-size:10px; letter-spacing:2px; opacity:.45; }
.duel-opponent-status strong { margin-top:8px; }
.duel-personal-zone { padding:20px; border-radius:20px; background:rgba(255,255,255,.045); display:grid; grid-template-columns:1fr auto; gap:10px; }
.duel-answer-btn { border:0; border-radius:15px; padding:0 28px; background:linear-gradient(135deg,#d946ef,#22d3ee); color:#fff; font-weight:900; cursor:pointer; min-width:150px; }
.duel-answer-btn:disabled { opacity:.45; cursor:not-allowed; }
.duel-personal-zone p { grid-column:1/-1; margin:0; text-align:left; font-size:12px; opacity:.55; }
.duel-reponse-label { display:block; font-size:12px; letter-spacing:2px; opacity:.5; margin-bottom:10px; }
.duel-reponse-value { display:block; font-size:clamp(26px,4vw,42px); }
#duel-compte-a-rebours { align-items:center; justify-content:center; }
#duel-compte-a-rebours.active { display:flex; }
#duel-compte { font-size:clamp(100px,18vw,180px); line-height:1; font-weight:900; margin:20px 0; background:linear-gradient(135deg,#d946ef,#22d3ee); -webkit-background-clip:text; background-clip:text; color:transparent; }
#duel-fin-titre { font-size:clamp(34px,6vw,68px); }
@media (max-width:750px) {
    .duel-flow-card,.duel-flow-shell { padding:26px 18px; width:min(100% - 18px,920px); border-radius:24px; }
    .duel-salle-actions-clean,.duel-regles,.duel-live-status { grid-template-columns:1fr; }
    .duel-formats { grid-template-columns:1fr; }
    .duel-choix { grid-template-columns:repeat(2,1fr); gap:10px; }
    .duel-format-btn { min-height:180px; padding:24px; }
    .duel-personal-zone { grid-template-columns:1fr; }
    .duel-answer-btn { min-height:52px; }
    .duel-code-salle { font-size:27px; letter-spacing:5px; }
    .duel-barre { gap:7px; }
    .duel-info-joueur strong { font-size:22px; }
}


/* =========================================================
   MODE MULTIJOUEUR
========================================================= */
.multi-card,.multi-game{width:min(760px,92vw);margin:0 auto;padding:32px;border-radius:24px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);box-sizing:border-box}.multi-wide{width:min(900px,94vw)}
.multi-card h2{margin:8px 0 10px}.multi-card p{line-height:1.5}.multi-input,.multi-select{width:100%;box-sizing:border-box;padding:15px 16px;margin:14px 0;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(0,0,0,.16);color:inherit;font:inherit;outline:none}.multi-code-input{text-transform:uppercase;text-align:center;letter-spacing:5px;font-weight:700}.multi-label{display:block;text-align:left;margin:18px 0 8px;font-weight:700}.multi-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.multi-btn{flex:1;min-width:180px;padding:14px 18px;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:rgba(255,255,255,.06);color:inherit;font:inherit;font-weight:700;cursor:pointer}.multi-btn:disabled{opacity:.45;cursor:not-allowed}.multi-primary{background:rgba(255,255,255,.14)}.multi-secondary{opacity:.85}.multi-format-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.multi-format-btn{padding:18px;border-radius:16px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.04);color:inherit;font:inherit;font-weight:800;cursor:pointer}.multi-format-btn.active{outline:2px solid currentColor;background:rgba(255,255,255,.12)}.multi-params{padding:14px;border-radius:16px;background:rgba(255,255,255,.035);margin-bottom:16px}.multi-param-options{display:flex;flex-wrap:wrap;gap:8px}.multi-param-options button{padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:inherit;font:inherit;cursor:pointer}.multi-param-options button.active{outline:2px solid currentColor}.multi-code{font-size:14px;letter-spacing:2px;margin:10px 0 14px}.multi-code strong{font-size:30px;letter-spacing:5px}.multi-rules{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.04);margin:12px 0}.multi-lobby-head{display:flex;justify-content:space-between;align-items:center}.multi-players{display:grid;gap:9px;margin:12px 0}.multi-player{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-radius:13px;background:rgba(255,255,255,.04)}.multi-player-name{font-weight:700}.multi-player-status{font-size:12px;opacity:.8}.multi-error{min-height:22px;color:#ff8a8a}.multi-status{min-height:22px;text-align:center;opacity:.85}.multi-count{text-align:center}.multi-count strong{display:block;font-size:96px;line-height:1.1;margin-top:20px}.multi-game-top{display:flex;justify-content:space-between;gap:12px;font-weight:800;margin-bottom:20px}.multi-question{min-height:170px;display:grid;place-items:center;text-align:center;padding:20px;border-radius:18px;background:rgba(255,255,255,.04)}.multi-question p{font-size:clamp(22px,4vw,34px);line-height:1.3}.multi-ranking{display:grid;gap:8px;margin:18px 0}.multi-rank{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:13px 15px;border-radius:13px;background:rgba(255,255,255,.04)}.multi-rank-pos{font-size:20px;font-weight:900}.multi-rank-name{font-weight:700}.multi-rank-score{font-weight:900}.multi-spectator-event{margin-top:10px;font-size:13px;opacity:.75}@media(max-width:600px){.multi-card,.multi-game{padding:22px}.multi-format-grid{grid-template-columns:1fr}.multi-game-top{font-size:13px}.multi-btn{min-width:100%}.multi-rank{grid-template-columns:40px 1fr auto}}


/* =====================================================
   POLISSAGE PREMIUM — ÉCRAN D'ACCUEIL
   ===================================================== */

body {
    background:
        radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.10), transparent 28%),
        radial-gradient(circle at 8% 85%, rgba(255, 255, 255, 0.035), transparent 24%),
        #070707;
}

#accueil {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 28px;
}

#accueil::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, transparent 0 46%, rgba(212, 175, 55, 0.035) 50%, transparent 54%),
        linear-gradient(295deg, transparent 0 48%, rgba(255, 255, 255, 0.018) 50%, transparent 52%);
    pointer-events: none;
}

#accueil::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 90px rgba(212, 175, 55, 0.018),
        0 0 0 180px rgba(212, 175, 55, 0.010);
    z-index: -1;
    pointer-events: none;
}

#accueil .accueil-contenu {
    position: relative;
    max-width: 760px;
    padding: 34px 28px 40px;
    animation: accueilPremiumIn 0.7s ease both;
}

#accueil .logo {
    width: 116px;
    height: 116px;
    margin: 0 auto 30px;
    border: 1px solid rgba(255, 215, 110, 0.45);
    border-radius: 32px;
    background:
        linear-gradient(145deg, #181818, #0c0c0c);
    color: #f4d47a;
    font-size: 32px;
    letter-spacing: 2px;
    box-shadow:
        0 0 0 8px rgba(212, 175, 55, 0.025),
        0 18px 55px rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(212, 175, 55, 0.055);
    position: relative;
}

#accueil .logo::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 25px;
}

#accueil .sur-titre {
    margin-bottom: 18px;
    color: #c7a94a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 5px;
    opacity: 1;
}

#accueil .accueil-contenu h1 {
    max-width: 720px;
    margin: 0 auto 22px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -2.8px;
    background: linear-gradient(180deg, #ffffff 10%, #e7e2d5 62%, #bca96b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#accueil .description {
    max-width: 520px;
    margin: 0 auto 38px;
    color: rgba(245, 243, 234, 0.58);
    font-size: 16px;
    letter-spacing: 0.2px;
}

#accueil #boutonJouer {
    min-width: 190px;
    padding: 16px 38px;
    border: 1px solid rgba(255, 220, 130, 0.45);
    border-radius: 12px;
    background: linear-gradient(135deg, #e4c35f, #a98327);
    color: #0b0b0b;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(212, 175, 55, 0.10);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

#accueil #boutonJouer:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.52),
        0 0 34px rgba(212, 175, 55, 0.18);
}

#accueil #boutonJouer:active {
    transform: translateY(0);
}

@keyframes accueilPremiumIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    #accueil {
        padding: 20px;
    }

    #accueil .accueil-contenu {
        padding: 20px 10px 30px;
    }

    #accueil .logo {
        width: 92px;
        height: 92px;
        margin-bottom: 24px;
        border-radius: 26px;
        font-size: 27px;
    }

    #accueil .logo::before {
        border-radius: 20px;
    }

    #accueil .sur-titre {
        font-size: 9px;
        letter-spacing: 3.5px;
    }

    #accueil .accueil-contenu h1 {
        font-size: clamp(38px, 12vw, 58px);
        letter-spacing: -2px;
    }

    #accueil .description {
        font-size: 15px;
        margin-bottom: 32px;
    }

    #accueil #boutonJouer {
        width: min(100%, 260px);
    }
}
