* {
    box-sizing: border-box;
}

:root {
    --blue: #00509d;
    --blue-dark: #003d79;
    --blue-light: #eaf4ff;
    --gold: #e5b438;
    --text: #1c2733;
    --muted: #667788;
    --surface: #ffffff;
    --background: #eef3f8;
    --success: #17834d;
    --danger: #b4232d;
    --warning: #a66300;
    --border: #d9e2ec;
    --shadow: 0 18px 50px rgba(21, 48, 76, 0.15);
}

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

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(238, 243, 248, 0.92), rgba(238, 243, 248, 0.96)),
        url("../images/hotel-de-ville.jpg") center / cover fixed;
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

button,
input {
    font: inherit;
}

button,
.primary-link {
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

button:hover,
.primary-link:hover {
    background: var(--blue-dark);
    box-shadow: 0 8px 22px rgba(0, 80, 157, 0.25);
    transform: translateY(-1px);
}

.public-shell {
    width: min(100% - 28px, 820px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 34px 0;
}

.public-card {
    width: 100%;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    text-align: center;
}

.public-logo {
    width: min(250px, 72%);
    height: auto;
    margin-bottom: 22px;
}

.public-logo.compact {
    width: min(190px, 58%);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    overflow-wrap: anywhere;
}

.public-card h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 5vw, 2.55rem);
    line-height: 1.15;
}

.welcome-copy p,
.quiz-description,
.public-help {
    color: var(--muted);
    line-height: 1.65;
}

.pin-form,
.identity-form {
    margin-top: 28px;
}

.pin-form {
    width: min(100%, 420px);
    margin-right: auto;
    margin-left: auto;
}

label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    font-weight: 700;
}

input[type="text"] {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 80, 157, 0.12);
}

.pin-form input {
    min-height: 70px;
    text-align: center;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.28em;
}

.pin-form button,
.identity-form button,
.answers-form button {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    padding: 13px 18px;
}

.public-alert {
    margin: 18px 0;
    padding: 13px 16px;
    border-radius: 10px;
    text-align: left;
}

.public-alert.error {
    background: #fff0f1;
    color: var(--danger);
    border: 1px solid #f1bdc1;
}

.public-alert.success {
    background: #ebf9f1;
    color: var(--success);
    border: 1px solid #b8e4ca;
}

.category-badge,
.result-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 0.88rem;
    font-weight: 800;
}

.quiz-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.quiz-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--muted);
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.secondary-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.button-like {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.quiz-topbar,
.correction-topbar {
    min-height: 78px;
    padding: 13px clamp(18px, 4vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(20, 50, 80, 0.08);
}

.quiz-topbar > div:first-child,
.correction-topbar > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quiz-topbar span,
.correction-topbar span {
    color: var(--muted);
    font-size: 0.9rem;
}

.timer-box {
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 11px;
    background: var(--blue-light);
    color: var(--blue-dark);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.timer-box strong {
    display: block;
    margin-top: 2px;
    font-size: 1.32rem;
}

.quiz-shell {
    width: min(100% - 26px, 900px);
    margin: 0 auto;
    padding: 32px 0 50px;
}

.question-card {
    padding: clamp(22px, 5vw, 42px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.question-header,
.correction-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 10px;
    margin: 16px 0 28px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf3;
}

.progress-fill {
    height: 100%;
    min-width: 2%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), #2b83d4);
}

.question-card h1 {
    margin: 0 0 28px;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    line-height: 1.3;
}

.question-image {
    display: block;
    width: min(100%, 620px);
    max-height: 390px;
    margin: 0 auto 26px;
    object-fit: contain;
    border-radius: 14px;
}

.answers-list {
    display: grid;
    gap: 13px;
}

.answer-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    align-items: center;
    min-height: 64px;
    margin: 0;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.answer-option:hover {
    border-color: #8ab7df;
    background: #f8fbff;
    transform: translateY(-1px);
}

.answer-option:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(0, 80, 157, 0.1);
}

.answer-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-marker {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9eef4;
    color: var(--blue-dark);
    font-weight: 900;
}

.answer-option:has(input:checked) .answer-marker {
    background: var(--blue);
    color: #fff;
}

.answer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1.03rem;
}

.answer-content img {
    width: 88px;
    height: 62px;
    object-fit: cover;
    border-radius: 9px;
}

.feedback-card {
    max-width: 650px;
}

.feedback-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 900;
}

.correct-answer-box,
.explanation-text,
.explanation-box {
    margin: 20px 0;
    padding: 15px 17px;
    border-radius: 12px;
    background: #f5f8fb;
    text-align: left;
    line-height: 1.55;
}

.feedback-card .primary-link,
.result-actions .primary-link {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
}

.result-status.success {
    background: #e7f7ee;
    color: var(--success);
}

.result-status.warning {
    background: #fff3dc;
    color: var(--warning);
}

.result-status.neutral {
    background: #edf1f5;
    color: #506070;
}

.result-quiz-title {
    color: var(--muted);
}

.score-circle {
    width: 205px;
    height: 205px;
    display: grid;
    place-content: center;
    margin: 28px auto;
    border: 12px solid #dcecff;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #edf6ff);
    box-shadow: inset 0 0 0 2px #fff;
}

.score-circle strong {
    color: var(--blue-dark);
    font-size: 2.55rem;
}

.score-circle span {
    margin-top: 5px;
    color: var(--muted);
    font-weight: 700;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.result-grid > div {
    padding: 18px 10px;
    border-radius: 13px;
    background: #f4f7fa;
}

.result-grid strong,
.result-grid span {
    display: block;
}

.result-grid strong {
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 1.42rem;
}

.result-grid span {
    color: var(--muted);
    font-size: 0.84rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.correction-topbar a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.correction-shell {
    width: min(100% - 26px, 940px);
    margin: 0 auto;
    padding: 30px 0 50px;
}

.correction-card {
    margin-bottom: 20px;
    padding: clamp(20px, 4vw, 32px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(30, 55, 80, 0.12);
}

.correction-card h2 {
    margin: 18px 0 22px;
    line-height: 1.35;
}

.correction-state {
    padding: 5px 9px;
    border-radius: 999px;
}

.correction-state.correct {
    background: #e8f8ef;
    color: var(--success);
}

.correction-state.incorrect {
    background: #fff0f1;
    color: var(--danger);
}

.correction-answers {
    display: grid;
    gap: 9px;
}

.correction-answer {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.correction-answer span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.correction-answer.is-correct {
    border-color: #84d0a8;
    background: #edf9f2;
}

.correction-answer.is-selected-wrong {
    border-color: #ed9ba1;
    background: #fff1f2;
}

.explanation-box p {
    margin-bottom: 0;
}

@media (max-width: 680px) {
    .form-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .quiz-topbar,
    .correction-topbar {
        align-items: flex-start;
    }

    .quiz-topbar {
        flex-direction: column;
    }

    .timer-box {
        width: 100%;
    }

    .answer-content {
        font-size: 0.98rem;
    }

    .correction-answer {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* Version participant V2 */
.pin-validated {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 560px);
    margin: 24px auto 18px;
    padding: 13px 16px;
    border: 1px solid #b8e4ca;
    border-radius: 13px;
    background: #ebf9f1;
    color: var(--success);
    text-align: left;
}

.pin-validated strong,
.pin-validated small {
    display: block;
}

.pin-validated small {
    margin-top: 2px;
    color: #48715b;
}

.pin-check {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}

.quiz-presentation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 650px);
    margin: 22px auto 28px;
    text-align: left;
}

.quiz-presentation-grid > div {
    min-height: 84px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #f7fafc;
}

.quiz-presentation-grid span,
.quiz-presentation-grid strong {
    display: block;
}

.quiz-presentation-grid span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quiz-presentation-grid strong {
    color: var(--blue-dark);
    line-height: 1.35;
}

.identity-form {
    width: min(100%, 650px);
    margin-right: auto;
    margin-left: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.identity-form button,
.pin-form button,
.answers-form button {
    min-height: 60px;
    font-size: 1.04rem;
}

.answer-option {
    min-height: 72px;
}

@media (max-width: 680px) {
    .quiz-presentation-grid {
        grid-template-columns: 1fr;
    }

    .public-shell {
        width: min(100% - 18px, 820px);
        padding: 14px 0;
    }

    .public-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .pin-form input {
        min-height: 76px;
    }

    .answer-option {
        min-height: 76px;
        padding: 14px;
    }

    .answers-form button {
        min-height: 64px;
        font-size: 1.08rem;
    }
}


/* CambraiQuiz V5 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.welcome-card {
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -150px;
    right: -120px;
    border-radius: 50%;
    background: rgba(229, 180, 56, 0.17);
    pointer-events: none;
}

.public-admin-link {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 2;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.public-admin-link:hover {
    border-color: var(--blue);
    background: var(--blue-light);
}

.public-city-logo {
    width: min(225px, 64%);
    height: auto;
    margin: 18px auto 18px;
}

.cambrai-quiz-wordmark {
    display: block;
    width: min(100%, 540px);
    height: auto;
    margin: 0 auto 8px;
}

.welcome-lead {
    max-width: 520px;
    margin: 6px auto 0;
    font-size: 1.04rem;
}

.pin-form label {
    text-align: center;
    color: var(--blue-dark);
}

.pin-form input {
    border-width: 2px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.pin-form button {
    background: linear-gradient(135deg, var(--blue), #1674c5);
}

.participant-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.participant-brand-row .public-logo {
    width: min(170px, 42%);
    margin: 0;
}

.participant-wordmark {
    width: min(270px, 52%);
    height: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .welcome-card {
        animation: cambraiquiz-card-in 0.5s ease both;
    }

    .cambrai-quiz-wordmark {
        animation: cambraiquiz-logo-in 0.65s 0.08s ease both;
    }

    @keyframes cambraiquiz-card-in {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes cambraiquiz-logo-in {
        from { opacity: 0; transform: scale(0.97); }
        to { opacity: 1; transform: scale(1); }
    }
}

@media (max-width: 560px) {
    .public-admin-link {
        position: static;
        display: table;
        margin: 0 0 16px auto;
    }

    .public-city-logo {
        margin-top: 0;
    }

    .participant-brand-row {
        gap: 10px;
    }

    .participant-brand-row .public-logo,
    .participant-wordmark {
        width: min(230px, 78%);
    }
}

/* V5.1 refinements */
.public-city-logo{width:min(150px,45%)!important;margin-bottom:10px!important;}
.cambrai-quiz-wordmark{width:min(430px,88%)!important;margin-bottom:18px!important;}
.visually-hidden+h1{}
.welcome-copy h1{display:none!important;}
.public-admin-link{top:16px;right:18px;background:#00509d;color:#fff;border:none;padding:10px 16px;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.public-admin-link:hover{background:#003d78}
.welcome-lead{font-size:1.1rem;margin-bottom:18px}
.pin-form label{text-align:left;font-weight:700}


/* CambraiQuiz V6.2 — podium de fin de quiz */
.result-podium-section {
    margin: 34px 0 28px;
    padding: 25px;
    border: 1px solid #dce6ef;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0, rgba(229, 180, 56, 0.15), transparent 36%),
        linear-gradient(180deg, #fbfdff, #f3f7fb);
    text-align: left;
}

.result-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 24px;
    text-align: left;
}

.result-section-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff4c9;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(167, 119, 0, 0.12);
}

.result-section-heading h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.result-section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

.result-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.podium-card {
    position: relative;
    min-width: 0;
    padding: 20px 12px 17px;
    overflow: hidden;
    border: 2px solid #dce5ed;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(24, 55, 83, 0.1);
}

.podium-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -45px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.13;
}

.podium-rank-1 {
    min-height: 238px;
    padding-top: 25px;
    border-color: #e1b129;
    background: linear-gradient(180deg, #fff9df, #fff);
    order: 2;
    transform: translateY(-13px);
}

.podium-rank-1::after {
    background: #e1b129;
}

.podium-rank-2 {
    min-height: 214px;
    border-color: #aebac6;
    background: linear-gradient(180deg, #f3f6f8, #fff);
    order: 1;
}

.podium-rank-2::after {
    background: #93a2b0;
}

.podium-rank-3 {
    min-height: 202px;
    border-color: #c88250;
    background: linear-gradient(180deg, #fff0e4, #fff);
    order: 3;
}

.podium-rank-3::after {
    background: #b86d37;
}

.podium-card.is-current-participant {
    box-shadow:
        0 0 0 4px rgba(0, 80, 157, 0.13),
        0 13px 28px rgba(0, 80, 157, 0.18);
}

.podium-medal,
.podium-position,
.podium-name,
.podium-score,
.podium-details,
.podium-you {
    position: relative;
    z-index: 1;
    display: block;
}

.podium-medal {
    margin-bottom: 5px;
    font-size: 2.45rem;
}

.podium-position {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.podium-name {
    min-height: 44px;
    color: var(--text);
    line-height: 1.3;
}

.podium-score {
    margin: 10px 0 4px;
    color: var(--blue-dark);
    font-size: 1.55rem;
    font-weight: 900;
}

.podium-details {
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.45;
}

.podium-you {
    width: fit-content;
    margin: 11px auto 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 0.73rem;
    font-weight: 900;
}

.personal-ranking {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 22px;
    padding: 15px 18px;
    border: 1px solid #bbd7ef;
    border-radius: 13px;
    background: #eaf4ff;
    color: var(--blue-dark);
    text-align: center;
}

.personal-ranking.is-podium {
    border-color: #e3bd48;
    background: #fff6d7;
    color: #725000;
}

.personal-ranking b {
    font-size: 1.15em;
}

@media (prefers-reduced-motion: no-preference) {
    .podium-card {
        animation: podium-card-in 0.45s ease both;
    }

    .podium-rank-1 {
        animation-delay: 0.08s;
    }

    .podium-rank-2 {
        animation-delay: 0.16s;
    }

    .podium-rank-3 {
        animation-delay: 0.24s;
    }

    @keyframes podium-card-in {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
        }
    }

    .podium-rank-1 {
        animation-name: podium-first-in;
    }

    @keyframes podium-first-in {
        from {
            opacity: 0;
            transform: translateY(0);
        }

        to {
            opacity: 1;
            transform: translateY(-13px);
        }
    }
}

@media (max-width: 720px) {
    .result-podium {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .podium-card,
    .podium-rank-1,
    .podium-rank-2,
    .podium-rank-3 {
        min-height: 0;
        order: initial;
        transform: none;
    }

    .podium-rank-1 {
        order: 1;
    }

    .podium-rank-2 {
        order: 2;
    }

    .podium-rank-3 {
        order: 3;
    }

    .podium-card {
        display: grid;
        grid-template-columns: 54px 1fr auto;
        grid-template-areas:
            "medal name score"
            "medal details details"
            "medal you you";
        gap: 3px 12px;
        align-items: center;
        padding: 15px;
        text-align: left;
    }

    .podium-medal {
        grid-area: medal;
        margin: 0;
        text-align: center;
    }

    .podium-position {
        display: none;
    }

    .podium-name {
        grid-area: name;
        min-height: 0;
    }

    .podium-score {
        grid-area: score;
        margin: 0;
        white-space: nowrap;
    }

    .podium-details {
        grid-area: details;
    }

    .podium-you {
        grid-area: you;
        margin: 5px 0 0;
    }

    @keyframes podium-first-in {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

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

@media (max-width: 480px) {
    .result-podium-section {
        padding: 19px 14px;
    }

    .result-section-heading {
        align-items: flex-start;
    }

    .podium-card {
        grid-template-columns: 46px 1fr;
        grid-template-areas:
            "medal name"
            "medal score"
            "medal details"
            "medal you";
    }

    .podium-score {
        white-space: normal;
    }
}


/* CambraiQuiz V9 — certificat */
.certificate-download-link {
    background: linear-gradient(135deg, #9a7000, #e0ad1c);
    box-shadow: 0 8px 21px rgba(154, 112, 0, 0.24);
}

.certificate-download-link:hover {
    background: linear-gradient(135deg, #805d00, #c9960c);
}


/* CambraiQuiz V11 — responsive public renforcé */
html {
    -webkit-text-size-adjust: 100%;
}

img,
svg,
canvas,
video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 560px) {
    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }

    button,
    .primary-link,
    .secondary-link {
        min-height: 44px;
    }

    .public-shell,
    .quiz-shell,
    .result-shell {
        max-width: 100%;
    }
}


/* CambraiQuiz V13 — téléphone événement */
.event-question-countdown {
    display: grid;
    place-items: center;
    gap: 7px;
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid #b7d5ef;
    border-radius: 17px;
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(0, 80, 157, 0.13),
            transparent 45%
        ),
        #edf7ff;
    color: #17324d;
    text-align: center;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.event-question-countdown span {
    color: #00509d;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-question-countdown strong {
    font-size: clamp(4rem, 20vw, 8rem);
    line-height: 0.95;
    color: #00509d;
}

.event-question-countdown small {
    color: #687989;
}

.event-question-countdown.is-finished {
    opacity: 0;
    transform: scale(0.96);
}

.event-award-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 25px 0;
    padding: 20px;
    border: 2px solid #e3bd48;
    border-radius: 17px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(227, 189, 72, 0.23),
            transparent 48%
        ),
        #fff9df;
    color: #6b5000;
    box-shadow: 0 12px 28px rgba(113, 82, 0, 0.12);
}

.event-award-banner[hidden] {
    display: none;
}

.event-award-medal {
    flex: 0 0 auto;
    font-size: 3.4rem;
}

.event-award-banner strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.event-award-banner p {
    margin: 0 0 12px;
}

@media (max-width: 560px) {
    .event-award-banner {
        align-items: flex-start;
    }

    .event-award-medal {
        font-size: 2.5rem;
    }
}
