﻿/* BuzzerQuiz - même identité iOS Glass que Voting */
.bq-page {
    min-height: 100vh;
    padding: 90px 24px 70px;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

    .bq-page::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(ellipse at 10% 15%, rgba(0, 0, 0, 0.35), transparent 55%), radial-gradient(ellipse at 90% 25%, rgba(25, 25, 30, 0.30), transparent 55%), radial-gradient(ellipse at 50% 90%, rgba(0, 0, 0, 0.40), transparent 60%), rgba(0, 0, 0, 0.20);
        -webkit-mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, black 35%, transparent 100%);
    }

.bq-shell {
    max-width: 1000px;
    margin: auto;
    position: relative;
    z-index: 1;
    text-align: center
}

.bq-heading {
    margin-bottom: 25px
}

.bq-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    color: rgba(255,255,255,.75)
}

    .bq-eyebrow span {
        width: 38px;
        height: 1px;
        background: linear-gradient(90deg,transparent,rgba(255,255,255,.65))
    }

        .bq-eyebrow span:last-child {
            transform: rotate(180deg)
        }

.bq-heading h1 {
    margin: 0 0 15px;
    font-size: clamp(32px,5vw,58px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #fff;
    font-weight: 750
}

.bq-heading p, .bq-player-card p, .bq-waiting p {
    color: rgba(255,255,255, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 25px;
}

.bq-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 40px;
    background: rgba(255,255,255,.1);
    margin-bottom: 30px;
    font-size: 13px
}

.bq-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffbc74
}

.bq-dot-open {
    background: #8dffc2;
    box-shadow: 0 0 12px rgba(141,255,194,.6)
}

.bq-player-card, .bq-waiting {
    max-width: 510px;
    margin: 10px auto 35px;
    padding: 35px 30px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 30px;
    background: linear-gradient(135deg,rgba(255,255,255,.23),rgba(255,255,255,.07));
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    box-shadow: 0 18px 48px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.28)
}

.bq-player-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 22px;
    padding: 4px;
    box-sizing: border-box;
    background: conic-gradient( from 0deg, #00d9ff 0%, #007bff 20%, #6535ff 40%, #ff00d4 60%, #ff274c 80%, #00d9ff 100% );
    box-shadow: 0 0 5px rgba(0, 200, 255, 0.3), 0 0 10px rgba(255, 0, 180, 0.2);
}

    .bq-player-photo img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block
    }

.bq-player-card h2, .bq-waiting h2 {
    font-size: 30px;
    margin: 0 0 8px;
    color: #fff
}

.bq-waiting-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.18);
    font-size: 40px
}

.bq-remote-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 27px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50px;
    background: rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer
}

    .bq-remote-trigger:hover {
        background: rgba(255,255,255,.3)
    }

.bq-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(12,10,28,.65);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px)
}

.bq-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 45px 30px 30px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 32px;
    background: linear-gradient(145deg,rgba(109,107,118,.92),rgba(79,53,42,.94));
    box-shadow: 0 30px 100px rgba(0,0,0,.35);
    text-align: center;
    color: #fff
}

.bq-modal-close {
    position: absolute;
    right: 18px;
    top: 17px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer
}

.bq-modal h2 {
    margin: 0 0 28px;
    font-size: 28px;
    color: #fff
}

.bq-remote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.bq-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 112px;
    padding: 16px 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s,background .2s
}

    .bq-action i {
        font-size: 28px
    }

    .bq-action:hover:not(:disabled) {
        transform: translateY(-2px);
        background: rgba(255,255,255,.27)
    }

    .bq-action:disabled {
        opacity: .4;
        cursor: not-allowed
    }

.bq-action-open i {
    color: #a9ffd1
}

.bq-action-close i {
    color: #ffe2a1
}

.bq-action-good i {
    color: #a9ffd1
}

.bq-action-bad i {
    color: #ffc0c0
}

.bq-modal-note {
    margin: 22px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,.7)
}

.bq-error {
    margin: 20px auto;
    color: #ffd5d5;
    font-size: 13px
}

@media(max-width:600px) {
    .bq-page {
        padding: 65px 18px 45px
    }

    .bq-player-card, .bq-waiting {
        padding: 26px 20px;
        border-radius: 25px
    }

    .bq-player-photo {
        width: 145px;
        height: 145px
    }

    .bq-player-card h2 {
        font-size: 25px
    }

    .bq-modal {
        padding: 42px 20px 25px;
        border-radius: 27px
    }

    .bq-action {
        min-height: 100px;
        font-size: 13px
    }
}

@media(prefers-reduced-motion:reduce) {
    .bq-action {
        transition: none
    }
}


/* Télécommande
================================================== */
.bq-modal {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* Question
================================================== */
.bq-remote-question {
    margin: 28px 0 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
    text-align: left;
}

.bq-remote-question-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(36, 24, 76, .28);
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 600;
}

    .bq-remote-question-label i {
        font-size: 19px;
    }

.bq-remote-question-text {
    margin: 16px 0 22px;
    color: #fff;
    font-size: clamp(18px, 2.5vw, 25px);
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Bonne réponse
================================================== */
.bq-remote-answer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 14px;
    border: 1.5px solid rgba(85, 255, 155, .9);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(35, 190, 105, .25), rgba(35, 190, 105, .07));
    box-shadow: inset 0 0 20px rgba(65, 255, 145, .04);
}

.bq-remote-answer-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 30px;
    background: rgba(16, 135, 65, .6);
    color: #b8ffd0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

    .bq-remote-answer-label i {
        font-size: 18px;
        color: #8dffb4;
    }

.bq-remote-answer-text {
    color: #d5ffe3;
    font-size: clamp(19px, 2.6vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Responsive
================================================== */
@media (max-width: 600px) {
    .bq-modal {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .bq-remote-question {
        margin: 20px 0;
        padding: 16px;
        border-radius: 20px;
    }

    .bq-remote-question-text {
        margin: 14px 0 18px;
    }

    .bq-remote-answer {
        gap: 10px;
        padding: 10px;
    }

    .bq-remote-answer-label {
        font-size: 13px;
    }
}

/* Gagnant
================================================== */
.bq-winner-text {
    color: #a5ffca;
    font-weight: 500;
}

    .bq-winner-text i {
        margin-right: 8px;
        color: #e8b547;
        background: linear-gradient(120deg, #b77b20 0%, #dca33c 20%, #f5d477 42%, #ffe9a2 55%, #f0c35b 72%, #c68a29 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 1px 1px rgba(100, 60, 10, 0.2));
        text-shadow: none;
    }


/* Question suivante
================================================== */
.bq-next-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 18px;
    padding: 19px 24px;
    border: 1px solid rgba(167, 255, 203, .65);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 180, 110, .32), rgba(30, 180, 110, .60));
    color: #c5ffdc;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

    .bq-next-question:hover:not(:disabled) {
        background: linear-gradient(135deg, rgba(30, 200, 120, .48), rgba(30, 180, 110, .2));
        transform: translateY(-2px);
    }

    .bq-next-question:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

    .bq-next-question i {
        font-size: 18px;
    }

@media (max-width: 600px) {
    .bq-next-question {
        padding: 16px;
        font-size: 15px;
    }
}

/* Télécommande flottante
================================================== */
.bq-remote-floating {
    position: fixed;
    top: 50%;
    right: 12px;
    z-index: 1000;
    width: 42px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: none;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Silhouette de la télécommande
================================================== */
.bq-remote-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    box-sizing: border-box;
    background: linear-gradient( 145deg, rgba(226, 225, 226, 0.92), rgba(79, 48, 42, 0.94));
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Grand cercle supérieur
================================================== */
.bq-remote-circle {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #19191b;
}

/* Zone des commandes
================================================== */
.bq-remote-controls {
    width: 28px;
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
}

/* Colonne gauche
================================================== */
.bq-remote-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-left: 1px;
}

.bq-remote-dot {
    width: 8px;
    height: 8px;
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    background: #19191b;
}

/* Colonne droite
================================================== */
.bq-remote-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-right: 1px;
}

.bq-remote-pill {
    width: 8px;
    height: 17px;
    display: block;
    flex-shrink: 0;
    border-radius: 6px;
    background: #19191b;
}



/* BUZZER QUIZ : Page joueur
================================================== */
.bqp-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
    position: relative;
    isolation: isolate;
    color: #ffffff;
    overflow-x: hidden;
}

/* Fond dégradé rouge - même effet que Host
================================================== */
    .bqp-page::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(ellipse at 10% 15%, rgba(0, 0, 0, 0.35), transparent 55%), radial-gradient(ellipse at 90% 25%, rgba(25, 25, 30, 0.30), transparent 55%), radial-gradient(ellipse at 50% 90%, rgba(0, 0, 0, 0.40), transparent 60%), rgba(0, 0, 0, 0.20);
        -webkit-mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, black 35%, transparent 100%);
    }

.bqp-container {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Conteneur principal
================================================== */
.bqp-container {
    width: 100%;
    max-width: 430px;
    max-height: 760px;
    min-height: 0;
    margin: 0 auto;
    padding: 18px 18px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    isolation: isolate;
    background: transparent;
}

    .bqp-container::before,
    .bqp-container::after {
        display: none;
    }

/* En-tête
================================================== */
.bqp-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Titre centré avec traits blancs
================================================== */
.bqp-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 0;
    box-sizing: border-box;
    background: transparent;
}

.bqp-brand-line {
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65));
}

    .bqp-brand-line:last-child {
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25) );
    }

.bqp-brand-name {
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Bandeau joueur glacé
================================================== */
.bqp-player-info {
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    box-sizing: border-box;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 25px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Icône ou photo du joueur
================================================== */
.bqp-player-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 17px;
    color: #ffffff;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 5px 12px rgba(0, 0, 0, 0.04);
}

.bqp-player-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Nom complet du joueur
================================================== */
.bqp-player-details {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bqp-player-name {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Carte de question
================================================== */
.bqp-question-card {
    width: 100%;
    min-height: 170px;
    padding: 17px 16px 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 35px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.bqp-question-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.bqp-question-number,
.bqp-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 5px 12px rgba(0, 0, 0, 0.05);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

    .bqp-question-number i,
    .bqp-status-badge i {
        font-size: 16px;
    }

.bqp-status-open {
    color: #d8ffeb;
    background: rgba(26, 160, 105, 0.25);
    border-color: rgba(190, 255, 220, 0.5);
}

.bqp-status-closed {
    color: #ffffff;
}

.bqp-status-finished {
    color: #d8ffeb;
    background: rgba(26, 160, 105, 0.60);
    border-color: rgba(190, 255, 220, 0.45);
}

.bqp-question-content {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 4px 0;
    text-align: center;
}

    .bqp-question-content h1 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(23px, 5.5vw, 30px);
        line-height: 1.28;
        font-weight: 800;
        letter-spacing: -0.8px;
        overflow-wrap: anywhere;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .bqp-question-content .bqp-question-placeholder {
        font-size: 20px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
    }

/* Zone du buzzer
================================================== */
.bqp-buzzer-area {
    width: 100%;
    min-height: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px 0;
    box-sizing: border-box;
}

.bqp-buzzer-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 32, 42, 0.14);
    filter: blur(30px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.bqp-buzzer-glow-active {
    background: rgba(255, 0, 25, 0.28);
    filter: blur(35px);
    animation: bqp-glow-pulse 2s ease-in-out infinite;
}

/* Buzzer rouge
================================================== */
.bqp-buzzer {
    width: min(58vw, 220px);
    height: min(58vw, 220px);
    max-width: 220px;
    max-height: 220px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 7px solid #f4f8ff;
    padding: 0;
    outline: none;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(ellipse at 35% 18%, rgba(255, 255, 255, 0.62) 0%, transparent 24%), radial-gradient(ellipse at 50% 25%, #ff6d70 0%, #ff242b 35%, #e4000e 72%, #a9000d 100%);
    box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.9), inset 0 -12px 18px rgba(125, 0, 0, 0.35), inset 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 0 5px #e90012, 0 0 0 9px rgba(138, 185, 244, 0.8), 0 18px 30px rgba(194, 17, 33, 0.24), 0 25px 40px rgba(31, 96, 169, 0.18);
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

    .bqp-buzzer::before {
        content: "";
        position: absolute;
        top: 7%;
        left: 11%;
        right: 11%;
        height: 31%;
        border-radius: 50%;
        background: linear-gradient( 180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.18) 45%, transparent 100% );
        transform: rotate(-8deg);
        pointer-events: none;
    }

    .bqp-buzzer::after {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.35);
        pointer-events: none;
    }

.bqp-buzzer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    text-shadow: 0 2px 5px rgba(114, 0, 0, 0.2);
}

    .bqp-buzzer-inner i {
        font-size: 48px;
        font-weight: 400;
    }

    .bqp-buzzer-inner span {
        font-size: 22px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: 0.5px;
    }

/* États du buzzer
================================================== */
.bqp-buzzer-active {
    animation: bqp-buzzer-pulse 2s ease-in-out infinite;
}

    .bqp-buzzer-active:active {
        transform: scale(0.94);
        animation: none;
        filter: brightness(0.92);
    }

.bqp-buzzer-disabled {
    cursor: not-allowed;
    filter: saturate(0.75);
}

.bqp-buzzer-pressed {
    background: radial-gradient(ellipse at 35% 18%, rgba(255, 255, 255, 0.75) 0%, transparent 24%), radial-gradient(ellipse at 50% 25%, #dce3eb 0%, #aebbc9 42%, #77889b 100%);
    border-color: #edf2f7;
    box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.9), inset 0 -12px 18px rgba(47, 62, 82, 0.22), 0 0 0 5px #8c9cad, 0 0 0 9px rgba(190, 205, 221, 0.5), 0 14px 28px rgba(52, 72, 100, 0.15);
    color: #ffffff;
    cursor: not-allowed;
    filter: none;
    animation: none;
}

.bqp-buzzer-correct {
    background: radial-gradient(ellipse at 35% 18%, rgba(255, 255, 255, 0.65) 0%, transparent 24%), radial-gradient(ellipse at 50% 25%, #71f2b2 0%, #17c97c 40%, #07945b 100%);
    box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.9), inset 0 -12px 18px rgba(0, 95, 50, 0.3), 0 0 0 5px #0aab68, 0 0 0 9px rgba(138, 185, 244, 0.8), 0 20px 35px rgba(0, 140, 85, 0.25);
}

.bqp-buzzer-incorrect {
    filter: grayscale(0.45) saturate(0.65);
}

/* Question terminée : buzzer gris
================================================== */
.bqp-buzzer.bqp-buzzer-finished {
    background: radial-gradient(ellipse at 35% 18%, rgba(255, 255, 255, 0.75) 0%, transparent 24%), radial-gradient(ellipse at 50% 25%, #dce3eb 0%, #aebbc9 42%, #77889b 100%);
    border-color: #edf2f7;
    box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.9), inset 0 -12px 18px rgba(47, 62, 82, 0.22), 0 0 0 5px #8c9cad, 0 0 0 9px rgba(190, 205, 221, 0.5), 0 14px 28px rgba(52, 72, 100, 0.15);
    color: #ffffff;
    cursor: not-allowed;
    filter: none;
    animation: none;
}

    .bqp-buzzer.bqp-buzzer-finished:active {
        transform: none;
    }

.bqp-buzzer-area:has(.bqp-buzzer-finished) .bqp-buzzer-glow {
    opacity: 0;
    animation: none;
}

/* Message de statut glacé
================================================== */
.bqp-message {
    width: 100%;
    min-height: 72px;
    padding: 15px 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-radius: 24px;
    color: #ffffff;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 25px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

    .bqp-message > i {
        flex-shrink: 0;
        font-size: 25px;
        color: #ffffff;
    }

.bqp-message-text {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

    .bqp-message-text strong {
        display: inline-block;
        margin-left: 5px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 900;
    }

.bqp-message-open {
    background: rgba(26, 160, 105, 0.2);
    border-color: rgba(190, 255, 220, 0.45);
}

.bqp-message-success {
    background: rgba(26, 160, 105, 0.60);
    border-color: rgba(190, 255, 220, 0.5);
}

.bqp-message-error {
    background: rgba(210, 40, 65, 0.2);
    border-color: rgba(255, 190, 200, 0.45);
}

/* Erreurs
================================================== */
.bqp-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 15px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    background: rgba(210, 40, 65, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

    .bqp-error i {
        font-size: 17px;
    }

/* Pied de page avec traits blancs
================================================== */
.bqp-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-shrink: 0;
    margin: 0;
    padding: 0 10px;
}

.bqp-footer-line {
    height: 1px;
    flex: 1;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.85) );
}

    .bqp-footer-line:last-child {
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0.85), transparent );
    }

.bqp-footer-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 5px 15px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Animations
================================================== */
@keyframes bqp-glow-pulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes bqp-buzzer-pulse {
    0%, 100% {
        box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.9), inset 0 -12px 18px rgba(125, 0, 0, 0.35), 0 0 0 5px #e90012, 0 0 0 9px rgba(138, 185, 244, 0.8), 0 18px 30px rgba(194, 17, 33, 0.24);
    }

    50% {
        box-shadow: inset 0 5px 8px rgba(255, 255, 255, 0.9), inset 0 -12px 18px rgba(125, 0, 0, 0.35), 0 0 0 5px #e90012, 0 0 0 12px rgba(255, 77, 88, 0.22), 0 20px 42px rgba(255, 0, 25, 0.4);
    }
}

/* Responsive smartphone
================================================== */
@media (max-width: 375px) {
    .bqp-page {
        padding: 12px;
    }

    .bqp-container {
        padding: 14px 10px 20px;
        gap: 14px;
    }

    .bqp-header {
        gap: 14px;
    }

    .bqp-brand {
        gap: 12px;
        padding: 10px 0;
    }

    .bqp-brand-name {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .bqp-player-info {
        min-height: 66px;
        padding: 10px 13px;
        border-radius: 23px;
    }

    .bqp-player-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 22px;
        border-radius: 14px;
    }

    .bqp-player-name {
        font-size: 15px;
    }

    .bqp-question-card {
        min-height: 150px;
        padding: 14px 12px 18px;
        border-radius: 24px;
    }

    .bqp-question-number,
    .bqp-status-badge {
        padding: 9px 10px;
        font-size: 12px;
    }

    .bqp-question-content h1 {
        font-size: 23px;
    }

    .bqp-buzzer-area {
        padding: 15px 0;
    }

    .bqp-buzzer {
        width: min(55vw, 205px);
        height: min(55vw, 205px);
    }

    .bqp-buzzer-inner i {
        font-size: 44px;
    }

    .bqp-buzzer-inner span {
        font-size: 25px;
    }
}

/* Petits écrans en hauteur
================================================== */
@media (max-height: 700px) {
    .bqp-page {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .bqp-container {
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .bqp-header {
        gap: 12px;
    }

    .bqp-brand {
        padding: 8px 0;
    }

    .bqp-player-info {
        min-height: 62px;
    }

    .bqp-question-card {
        min-height: 145px;
    }

    .bqp-question-content {
        min-height: 80px;
        padding-top: 12px;
    }

    .bqp-buzzer-area {
        padding: 12px 0;
    }

    .bqp-buzzer {
        width: min(50vw, 180px);
        height: min(50vw, 180px);
    }

    .bqp-buzzer-glow {
        width: 180px;
        height: 180px;
    }

    .bqp-message {
        min-height: 60px;
        padding: 12px;
    }
}

/* Accessibilité
================================================== */
@media (prefers-reduced-motion: reduce) {
    .bqp-buzzer,
    .bqp-buzzer-glow {
        animation: none !important;
    }
}

.bq-buzzer-counter {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 130px;
}

.bq-buzzer {
    position: relative;
    width: 108px;
    height: 96px;
}

.bq-buzzer-base {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 108px;
    height: 34px;
    border-radius: 14px 14px 20px 20px;
    background: linear-gradient(180deg, #dce0e5 0%, #8d939e 12%, #555b66 30%, #30343d 65%, #17191f 100%);
    border-bottom: 4px solid #101116;
    box-shadow: inset 0 4px 4px rgba(255,255,255,0.35), 0 8px 12px rgba(0,0,0,0.25);
    z-index: 1;
}

    .bq-buzzer-base::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 8px;
        width: 92px;
        height: 16px;
        border-radius: 50%;
        background: linear-gradient(180deg, #f1f2f5, #818894 55%, #383d46);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.bq-buzzer-top {
    position: absolute;
    top: 28px;
    left: 10px;
    width: 88px;
    height: 42px;
    border-radius: 50% 50% 30% 30% / 75% 75% 25% 25%;
    background: radial-gradient(ellipse at 32% 20%, #ffaaa0 0%, #ff4747 25%, #e50914 58%, #a6000a 100%);
    box-shadow: inset 0 4px 6px rgba(255,255,255,0.65), inset 0 -8px 10px rgba(90,0,0,0.35), 0 4px 10px rgba(0,0,0,0.25);
    z-index: 2;
}

    .bq-buzzer-top::after {
        content: "";
        position: absolute;
        top: 6px;
        left: 16px;
        width: 34px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        filter: blur(6px);
        transform: rotate(-20deg);
    }

.bq-buzzer-badge {
    position: absolute;
    top: 23px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 40px;
    background: linear-gradient(145deg, #ff4747, #c90012);
    border: 3px solid #fff;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.bq-start-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 220px;
    min-height: 155px;
    padding: 24px 18px;
    border: 1px solid rgba(166, 255, 207, .45);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .bq-start-button::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 20%, rgba(166, 255, 207, .2), transparent 65%);
        pointer-events: none;
    }

.bq-start-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(145deg, #b4ffda, #60e9ad);
    box-shadow: 0 6px 22px rgba(96, 233, 173, .35), inset 0 2px 2px rgba(255, 255, 255, .5);
    color: #234d3d;
    font-size: 26px;
    transition: transform .25s ease;
}

    .bq-start-icon i {
        margin-left: 4px;
    }

.bq-start-label {
    position: relative;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.3px;
    text-align: center;
}

.bq-start-button:hover:not(:disabled) {
    transform: translateY(-5px);
    border-color: #a6ffcf;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .24), 0 0 28px rgba(96, 233, 173, .22);
}

    .bq-start-button:hover:not(:disabled) .bq-start-icon {
        transform: scale(1.1);
    }

.bq-start-button:active:not(:disabled) {
    transform: translateY(0) scale(.97);
}

.bq-start-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.bq-start-button:focus-visible {
    outline: 3px solid #a6ffcf;
    outline-offset: 4px;
}

.bq-start-button {
    margin: 30px auto 0;
}

.bq-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.bq-start-button {
    margin: 30px auto 0;
}