/* ==================================================
   F1QUIZ - CSS GLOBAL
   Groupe Paddock
   Noir / Beige premium / Rouge accent
================================================== */

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf')
        format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ==================================================
   VARIABLES GLOBALES
================================================== */

:root {
    --f1q-bg: #050505;
    --f1q-box: #080808;
    --f1q-box-light: #111111;

    --f1q-gold: #D4B483;
    --f1q-red: #D71920;

    --f1q-white: #F5F5F5;
    --f1q-grey: #C8C8C8;

    --f1q-border: rgba(212, 180, 131, 0.20);
    --f1q-border-strong: rgba(212, 180, 131, 0.40);

    --f1q-font: 'Montserrat', sans-serif;

    --f1q-container: 1300px;
}


/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: var(--f1q-font);
    color: var(--f1q-white);

    background-color: var(--f1q-bg);

    background-image:
        radial-gradient(
            ellipse at 80% 10%,
            rgba(214, 177, 112, 0.18),
            transparent 45%
        ),
        repeating-linear-gradient(
            120deg,
            transparent 0px,
            transparent 88px,
            rgba(214, 177, 112, 0.09) 89px,
            rgba(214, 177, 112, 0.09) 91px
        );

    background-attachment: fixed;
    background-position: 0 0;

    line-height: 1.6;
}


/* ==================================================
   ÉLÉMENTS HTML GLOBAUX
================================================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* ==================================================
   TYPOGRAPHIE
================================================== */

p,
li,
a,
button {
    font-family: var(--f1q-font);
}

h1,
h2,
h3,
h4 {
    font-family: var(--f1q-font);
    color: var(--f1q-white);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

p {
    color: var(--f1q-grey);
}


/* ==================================================
   CONTENEURS
================================================== */

.header-container,
.hero-container,
.section-container,
.footer-container {
    width: min(92%, var(--f1q-container));
    margin-left: auto;
    margin-right: auto;
}


/* ==================================================
   HEADER
================================================== */

.site-header {
    position: relative;
    z-index: 100;

    border-bottom: 1px solid var(--f1q-border);

    background: rgba(5, 5, 5, 0.92);

    backdrop-filter: blur(8px);
}

.header-container {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* Logo */

.site-logo {
    color: var(--f1q-white);

    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}


/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    position: relative;

    color: var(--f1q-white);

    font-size: 15px;
    font-weight: 500;

    transition: color 0.25s ease;
}

.main-navigation a:hover {
    color: var(--f1q-gold);
}


/* Petit trait rouge au survol */

.main-navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--f1q-red);

    transition: width 0.25s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}


/* Lien Cartes du Paddock */

/* Lien Cartes du Paddock */

.paddock-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border: 1px solid rgba(212, 180, 131, 0.35);
    border-radius: 999px;

    background:
        linear-gradient(
            110deg,
            rgba(212, 180, 131, 0.12) 0%,
            rgba(15, 13, 10, 0.88) 45%,
            rgba(5, 5, 5, 1) 100%
        );

    color: var(--f1q-white);

    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}

.paddock-link:hover {
    color: var(--f1q-gold);

    border-color: var(--f1q-gold);

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 14px rgba(212, 180, 131, 0.16);

    transform: translateY(-2px);

    filter: brightness(1.25);
}


/* ==================================================
   HERO
================================================== */

.hero {
    padding: 90px 0;

    border-bottom: 1px solid rgba(212, 180, 131, 0.12);
}

.hero-container {
    display: grid;

    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);

    align-items: center;

    gap: 70px;
}

.hero-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--f1q-gold);

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-label::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 10px;

    background: var(--f1q-red);
}

.hero-description {
    max-width: 650px;

    margin-top: 24px;
    margin-bottom: 30px;

    color: var(--f1q-grey);

    font-size: 1rem;
}


/* ==================================================
   BOUTON PRINCIPAL
================================================== */

.hero-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 13px 25px;

    border: 1px solid var(--f1q-red);
    border-radius: 5px;

    background: var(--f1q-red);

    color: #FFFFFF;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.4px;

    cursor: pointer;

    transition: all 0.25s ease;
}

.hero-button:hover {
    background: #B9141A;
    border-color: #B9141A;

    transform: translateY(-2px);
}


/* ==================================================
   PAGE D'ACCUEIL
================================================== */


/* ==================================================
   QUESTION DU JOUR
================================================== */

.hero-quiz-preview {
    position: relative;

    overflow: hidden;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 180, 131, 0.06),
            rgba(8, 8, 8, 0.96) 40%
        );

    border: 1px solid var(--f1q-border-strong);
    border-radius: 16px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35);
}

/* Titre de la question du jour */

.hero-quiz-title {
    color: var(--f1q-gold);

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-quiz-title::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 10px;

    background: var(--f1q-red);
}

.daily-question-text {
    margin-top: 24px;
    margin-bottom: 22px;

    color: var(--f1q-white);

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}

.daily-answers {
    display: grid;
    gap: 10px;
}

.daily-answer {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 13px;

    padding: 11px 13px;

    color: var(--f1q-white);

    background: rgba(255, 255, 255, 0.015);

    border: 1px solid var(--f1q-border);
    border-radius: 7px;

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.daily-answer:hover:not(:disabled) {
    border-color: var(--f1q-gold);

    background: rgba(212, 180, 131, 0.07);

    transform: translateX(3px);
}

.daily-answer-letter {
    display: grid;

    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    place-items: center;

    color: var(--f1q-gold);

    border: 1px solid var(--f1q-border-strong);
    border-radius: 5px;

    font-size: 0.8rem;
    font-weight: 700;
}

.daily-answer-text {
    flex: 1;

    color: var(--f1q-white);

    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.daily-feedback {
    min-height: 22px;

    margin-top: 15px;

    color: var(--f1q-grey);

    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.daily-answer-correct {
    border-color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.15) !important;
}

.daily-answer-incorrect {
    border-color: #e63946 !important;
    background: rgba(230, 57, 70, 0.15) !important;
}

.daily-answer:disabled {
    cursor: default;
}

/* ==================================================
   SECTIONS
================================================== */

section {
    padding: 65px 0;
}

.section-container > h2 {
    margin-bottom: 32px;
}

.section-container > h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 11px;

    background: var(--f1q-red);
}

/* TITRES DE SECTIONS + LIENS */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 32px;
}

.section-heading h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 11px;

    background: var(--f1q-red);
}

.section-link {
    flex-shrink: 0;

    margin-bottom: 5px;

    color: var(--f1q-gold);

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.section-link:hover {
    color: var(--f1q-white);
    transform: translateX(3px);
}


/* ==================================================
   CARTES QUIZ
================================================== */

/* QUIZ POPULAIRES */

.quiz-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.quiz-grid > * {
    overflow: hidden;

    background: var(--f1q-box);

    border: 1px solid var(--f1q-border);
    border-radius: 16px;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.quiz-grid > *:hover {
    border-color: rgba(212, 180, 131, 0.40);

    background: var(--f1q-box-light);

    transform: translateY(-2px);
}

/* CARTE D'UN QUIZ */

.quiz-card {
    position: relative;
    display: flex;
    flex-direction: column;
    
    min-height: 280px;

    padding: 28px;
    cursor: pointer;
}

/* CATÉGORIE */

.quiz-card-category {
    display: block;

    margin-bottom: 14px;

    padding-right: 90px;

    color: var(--f1q-gold);

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quiz-card-difficulty {
    position: absolute;

    top: 24px;
    right: 24px;

    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 5px 9px;

    color: var(--f1q-white);

    background: rgba(212, 180, 131, 0.08);

    border: 1px solid var(--f1q-border);
    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* TITRE */

.quiz-card h2,
.quiz-card h3 {
    margin-bottom: 15px;

    font-size: 1.5rem;
    line-height: 1.25;
}

/* DESCRIPTION */

.quiz-card p {
    margin-bottom: 25px;

    color: var(--f1q-grey);

    font-size: 0.9rem;
    line-height: 1.6;
}

/* BAS DE LA CARTE */

.quiz-card-count {
    display: block;

    margin-top: auto;
    margin-bottom: 15px;

    color: var(--f1q-gold);

    font-size: 0.8rem;
    font-weight: 600;
}

/* LIEN JOUER */

.quiz-card-link {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    color: var(--f1q-white);

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.quiz-card:hover .quiz-card-link {
    color: var(--f1q-gold);
    transform: translateX(3px);
}

/* DERNIERS QUIZ - ACCUEIL */

.popular-quizzes .quiz-card {
    min-height: 300px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 180, 131, 0.025),
            rgba(8, 8, 8, 0.96)
        );
}

.popular-quizzes .quiz-card h2,
.popular-quizzes .quiz-card h3 {
    font-size: 1.35rem;
}

.popular-quizzes .quiz-card-link {
    padding-top: 3px;
}


/* ==================================================
   CATÉGORIES
================================================== */

.categories-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.categories-grid > * {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 120px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.015);

    border: 1px solid var(--f1q-border);
    border-radius: 16px;

    color: var(--f1q-white);

    font-weight: 700;

    transition: all 0.25s ease;
}

.categories-grid > *:hover {
    color: var(--f1q-gold);

    border-color: rgba(212, 180, 131, 0.40);

    background: rgba(212, 180, 131, 0.06);

    transform: translateY(-2px);
}

/* CATÉGORIES - ACCUEIL */

.categories .category-card {
    min-height: 125px;

    gap: 5px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 180, 131, 0.025),
            rgba(8, 8, 8, 0.92)
        );
}

.categories .category-card-name {
    font-size: 1.25rem;
}

.categories .category-card-count {
    font-size: 0.8rem;
}


/* ==================================================
   CONTENU SEO - ACCUEIL
================================================== */

.home-seo {
    padding: 65px 0;
}

.home-seo-content {
    max-width: 100%;

    padding: clamp(28px, 4vw, 42px);

    background:
        linear-gradient(
            145deg,
            rgba(212, 180, 131, 0.035),
            rgba(8, 8, 8, 0.94)
        );

    border: 1px solid var(--f1q-border);
    border-radius: 16px;
}

.home-seo-label {
    margin-bottom: 12px;

    color: var(--f1q-gold);

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-seo-content h2 {
    max-width: 800px;

    margin-bottom: 24px;
}

.home-seo-content h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 11px;

    background: var(--f1q-red);
}

.home-seo-content p {
    max-width: 100%;

    margin-bottom: 16px;

    color: var(--f1q-grey);

    font-size: 0.95rem;
    line-height: 1.8;
    
    text-align: justify;
    hyphens: auto;
}

.home-seo-content p:last-child {
    margin-bottom: 0;
}

.home-seo-content a {
    color: var(--f1q-gold);

    font-weight: 600;

    transition: color 0.2s ease;
}

.home-seo-content a:hover {
    color: var(--f1q-white);
}

/* ==================================================
   GROUPE PADDOCK
================================================== */

.paddock-group {
    margin: 0;

    padding: 65px 0;

    background: transparent;

    border: none;
    border-radius: 0;
}

.paddock-group .section-container {
    padding: 32px 36px;

    background:
        linear-gradient(
            110deg,
            rgba(212, 180, 131, 0.07),
            rgba(8, 8, 8, 0.95) 45%
        );

    border: 1px solid var(--f1q-border);
    border-radius: 16px;
}

.paddock-group h2 {
    margin-bottom: 12px;
}

.paddock-group h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 11px;

    background: var(--f1q-red);
}

.paddock-group p {
    max-width: 650px;

    font-size: 0.9rem;
}

/* SITES DU GROUPE PADDOCK */

.paddock-sites {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 28px;
}

.paddock-site {
    display: flex;
    flex-direction: column;

    min-height: 210px;

    padding: 24px;

    background: rgba(255, 255, 255, 0.015);

    border: 1px solid var(--f1q-border);
    border-radius: 12px;

    transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.paddock-site-linkable {
    cursor: pointer;
}

.paddock-site-linkable:hover {
    border-color: rgba(212, 180, 131, 0.40);
    background: var(--f1q-box-light);
    transform: translateY(-2px);
}

.paddock-site-label {
    margin-bottom: 8px;

    color: var(--f1q-gold);

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.paddock-site h2,
.paddock-site h3 {
    margin-bottom: 10px;

    font-size: 1.2rem;
}

.paddock-site p {
    margin-bottom: 22px;

    font-size: 0.85rem;
    line-height: 1.6;
}

.paddock-site-current,
.paddock-site-link {
    margin-top: auto;

    width: fit-content;

    font-size: 0.8rem;
    font-weight: 700;
}

.paddock-site-current {
    color: var(--f1q-grey);
}

.paddock-site-link {
    color: var(--f1q-gold);

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.paddock-site-linkable:hover .paddock-site-link {
    color: var(--f1q-white);
    transform: translateX(3px);
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
    margin-top: 50px;

    background: #080808;

    border-top: 1px solid var(--f1q-border);
}

.footer-container {
    padding-top: 50px;
    padding-bottom: 35px;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 50px;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand .site-logo {
    display: inline-block;

    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--f1q-grey);

    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-links a {
    color: var(--f1q-grey);

    font-size: 14px;

    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--f1q-gold);
}

.footer-bottom {
    width: min(92%, var(--f1q-container));

    margin: 0 auto;

    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: rgba(245, 245, 245, 0.55);

    font-size: 12px;
}

/* ========================================
   PAGE QUIZ
======================================== */

.quiz-page {
    min-height: 100vh;
    padding: 60px 20px 80px;
}

.quiz-page-container {
    width: min(900px, 100%);
    margin: 0 auto;
}

.quiz-back-link {
    display: inline-block;
    margin-bottom: 35px;
    color: var(--f1q-gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.quiz-back-link:hover {
    color: var(--f1q-white);
}


/* HEADER DU QUIZ */

.quiz-page-header {
    margin-bottom: 40px;
}

.quiz-page-category {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--f1q-gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quiz-page-header h1 {
    max-width: 750px;
    margin-bottom: 15px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
}

.quiz-page-header p {
    max-width: 650px;
    color: var(--f1q-grey);
    line-height: 1.7;
}


/* BLOC PRINCIPAL */

.quiz-game {
    padding: 35px;
    background: rgba(8, 8, 8, 0.92);
    border: 1px solid var(--f1q-border-strong);
    border-radius: 14px;
}

.quiz-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.quiz-question-count {
    color: var(--f1q-gold);
    font-weight: 700;
}

.quiz-score {
    color: var(--f1q-grey);
}


/* PROGRESSION */

.quiz-progress {
    width: 100%;
    height: 4px;
    margin-bottom: 35px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.quiz-progress-bar {
    width: 10%;
    height: 100%;
    background: var(--f1q-red);
}


/* QUESTION */

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.4;
}


/* RÉPONSES */

.quiz-answers {
    display: grid;
    gap: 12px;
}

.quiz-answer {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 16px 18px;
    color: var(--f1q-white);
    background: transparent;
    border: 1px solid var(--f1q-border-strong);
    border-radius: 7px;
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.quiz-answer-letter {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;

    color: var(--f1q-gold);

    border: 1px solid var(--f1q-border-strong);
    border-radius: 5px;

    font-weight: 700;
}

.quiz-answer span:not(.quiz-answer-letter) {
    flex: 1;
    width: auto;
    height: auto;

    color: var(--f1q-white);

    border: none;

    font-weight: 600;
}

.quiz-answer:hover {
    background: rgba(201, 163, 92, 0.08);
    border-color: var(--f1q-gold);
    transform: translateX(3px);
}

.quiz-answer-correct {
    border-color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.15) !important;
}

.quiz-answer-incorrect {
    border-color: #e63946 !important;
    background: rgba(230, 57, 70, 0.15) !important;
}

.quiz-answer:disabled {
    cursor: default;
}

/* FEEDBACK */

.quiz-feedback {
    min-height: 25px;
    margin-top: 20px;
}


/* BOUTON SUIVANT */

.quiz-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.quiz-next-button {
    padding: 13px 22px;
    color: var(--f1q-white);
    background: var(--f1q-red);
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}


/* INFORMATIONS SOUS LE QUIZ */

.quiz-page-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 25px;
    border: 1px solid var(--f1q-border-strong);
    border-radius: 10px;
}

.quiz-page-bottom > div {
    padding: 22px;
    text-align: center;
}

.quiz-page-bottom > div:not(:last-child) {
    border-right: 1px solid var(--f1q-border-strong);
}

.quiz-page-bottom span {
    display: block;
    margin-bottom: 4px;
    color: var(--f1q-gold);
    font-size: 1.2rem;
    font-weight: 700;
}

.quiz-page-bottom p {
    margin: 0;
    color: var(--f1q-grey);
    font-size: 0.85rem;
}

/* ========================================
   CONTENU ÉDITORIAL DU QUIZ
======================================== */

.quiz-content {
    width: 100%;

    margin-top: 35px;
    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 180, 131, 0.035),
            rgba(8, 8, 8, 0.94)
        );

    border: 1px solid var(--f1q-border);
    border-radius: 14px;
}

.quiz-content h2 {
    margin-bottom: 24px;

    font-size: clamp(1.5rem, 3vw, 2rem);
}

.quiz-content h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 11px;

    background: var(--f1q-red);
}

.quiz-content p {
    width: 100%;

    margin-bottom: 16px;

    color: var(--f1q-grey);

    font-size: 0.95rem;
    line-height: 1.8;

    text-align: justify;
    hyphens: auto;
}

.quiz-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   RÉSULTAT DU QUIZ
======================================== */

.quiz-result {
    padding: 35px 20px;
    text-align: center;
}

.quiz-result-label {
    display: inline-block;
    margin-bottom: 12px;

    color: var(--f1q-gold);

    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quiz-result-label::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin: 10px auto 0;

    background: var(--f1q-red);
}

.quiz-result h2 {
    margin-bottom: 25px;
}

.quiz-result-score {
    display: flex;
    align-items: baseline;
    justify-content: center;

    margin-bottom: 20px;
}

.quiz-result-score-number {
    color: var(--f1q-gold);

    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
}

.quiz-result-score-total {
    margin-left: 8px;

    color: var(--f1q-grey);

    font-size: 1.5rem;
    font-weight: 600;
}

.quiz-result-message {
    margin-bottom: 30px;

    color: var(--f1q-grey);

    font-size: 1rem;
}

.quiz-result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quiz-result-replay,
.quiz-result-other {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 12px 22px;

    border-radius: 5px;

    font-size: 0.85rem;
    font-weight: 700;

    cursor: pointer;
}

.quiz-result-replay {
    color: #FFFFFF;

    background: var(--f1q-red);
    border: 1px solid var(--f1q-red);
}

.quiz-result-other {
    color: var(--f1q-white);

    background: transparent;
    border: 1px solid var(--f1q-border-strong);
}

.quiz-result-replay:hover {
    background: #B9141A;
    border-color: #B9141A;
}

.quiz-result-other:hover {
    color: var(--f1q-gold);
    border-color: var(--f1q-gold);
}

/* ========================================
   PAGE LISTE DES QUIZ
======================================== */

.quiz-list-page {
    min-height: 70vh;
}

.quiz-list-intro {
    width: 100%;

    margin-top: 24px;
}

.quiz-list-intro p {
    margin-bottom: 12px;

    color: var(--f1q-grey);

    font-size: 0.95rem;
    line-height: 1.8;

    text-align: justify;
    hyphens: auto;
}

.quiz-list-intro p:last-child {
    margin-bottom: 0;
}

.quiz-list-intro a {
    color: var(--f1q-gold);

    font-weight: 600;

    transition: color 0.2s ease;
}

.quiz-list-intro a:hover {
    color: var(--f1q-white);
}

/* FILTRES DES QUIZ */

.quiz-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 35px;
    padding: 22px;

    background: rgba(8, 8, 8, 0.92);

    border: 1px solid var(--f1q-border);
    border-radius: 12px;
}

.quiz-filter-group {
    display: flex;
    flex-direction: column;

    gap: 7px;

    min-width: 220px;
}

.quiz-filter-group label {
    color: var(--f1q-gold);

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.quiz-filter-group select,
.quiz-filter-group input {
    width: 100%;
    min-height: 44px;

    padding: 0 13px;

    color: var(--f1q-white);

    background-color: var(--f1q-box-light);

    border: 1px solid var(--f1q-border-strong);
    border-radius: 6px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.quiz-filter-group select {
    padding-right: 38px;
    cursor: pointer;
}

.quiz-filter-group input::placeholder {
    color: rgba(200, 200, 200, 0.65);
}

.quiz-filter-group select:hover,
.quiz-filter-group select:focus,
.quiz-filter-group input:hover,
.quiz-filter-group input:focus {
    border-color: var(--f1q-gold);
}

.quiz-filter-submit {
    min-height: 44px;

    padding: 0 20px;

    color: #FFFFFF;

    background: var(--f1q-red);

    border: 1px solid var(--f1q-red);
    border-radius: 6px;

    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.quiz-filter-submit:hover {
    background: #B9141A;
    border-color: #B9141A;
}

.quiz-filter-reset {
    display: inline-flex;
    align-items: center;

    min-height: 44px;

    padding: 0 5px;

    color: var(--f1q-grey);

    font-size: 0.8rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.quiz-filter-reset:hover {
    color: var(--f1q-gold);
}

.quiz-list-page .quiz-grid {
    margin-top: 40px;
}

.quiz-empty {
    margin-top: 40px;
    padding: 35px;

    background: rgba(8, 8, 8, 0.92);

    border: 1px solid var(--f1q-border);
    border-radius: 12px;
}

/* PAGINATION DES QUIZ */

.quiz-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 40px;
}

.quiz-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    color: var(--f1q-white);

    background: rgba(8, 8, 8, 0.92);

    border: 1px solid var(--f1q-border);
    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.quiz-pagination-link:hover {
    color: var(--f1q-gold);

    border-color: var(--f1q-gold);

    background: rgba(212, 180, 131, 0.06);
}

.quiz-pagination-current {
    color: #FFFFFF;

    background: var(--f1q-red);

    border-color: var(--f1q-red);

    cursor: default;
}

.quiz-pagination-current:hover {
    color: #FFFFFF;

    background: var(--f1q-red);

    border-color: var(--f1q-red);
}

.quiz-empty h2 {
    margin-bottom: 10px;

    font-size: 1.4rem;
}

.quiz-empty p {
    margin-bottom: 18px;
}

.quiz-empty a {
    color: var(--f1q-gold);

    font-size: 0.85rem;
    font-weight: 700;
}

.quiz-empty a:hover {
    color: var(--f1q-white);
}

.quiz-filter-search {
    flex: 1;
    min-width: 280px;
}

/* ========================================
   PAGE CATÉGORIES
======================================== */

.category-card {
    flex-direction: column;
    gap: 8px;
}

.category-card-name {
    color: var(--f1q-white);
    font-size: 1.8rem;
    font-weight: 700;
}

.category-card-count {
    color: var(--f1q-gold);
    font-size: 1rem;
    font-weight: 600;
}

.category-card:hover .category-card-name {
    color: var(--f1q-gold);
}

/* ========================================
   CONTENU ÉDITORIAL DES CATÉGORIES
======================================== */

.category-content {
    width: 100%;

    margin-top: 28px;
    margin-bottom: 10px;
    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 180, 131, 0.035),
            rgba(8, 8, 8, 0.94)
        );

    border: 1px solid var(--f1q-border);
    border-radius: 14px;
}

.category-content h2 {
    margin-bottom: 24px;

    font-size: clamp(1.5rem, 3vw, 2rem);
}

.category-content h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 3px;

    margin-top: 11px;

    background: var(--f1q-red);
}

.category-content p {
    width: 100%;

    margin-bottom: 16px;

    color: var(--f1q-grey);

    font-size: 0.95rem;
    line-height: 1.8;

    text-align: justify;
    hyphens: auto;
}

.category-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   PAGE 404
======================================== */

.error-page {
    min-height: 70vh;

    display: flex;
    align-items: center;

    padding: 80px 0;
}

.error-page-content {
    width: 100%;

    padding: clamp(35px, 6vw, 70px);

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(212, 180, 131, 0.045),
            rgba(8, 8, 8, 0.96)
        );

    border: 1px solid var(--f1q-border);
    border-radius: 16px;
}

.error-page-code {
    display: block;

    margin-bottom: 6px;

    color: var(--f1q-gold);

    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 1;
}

.error-page-label {
    margin-bottom: 18px;

    color: var(--f1q-red);

    font-size: 0.8rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.error-page h1 {
    margin-bottom: 20px;

    font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-page-description {
    max-width: 700px;

    margin: 0 auto 32px;

    color: var(--f1q-grey);

    font-size: 1rem;
    line-height: 1.8;
}

.error-page-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 14px;
}

.error-page-primary,
.error-page-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 13px 23px;

    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.error-page-primary {
    color: #FFFFFF;

    background: var(--f1q-red);

    border: 1px solid var(--f1q-red);
}

.error-page-primary:hover {
    background: #B9141A;
    border-color: #B9141A;

    transform: translateY(-2px);
}

.error-page-secondary {
    color: var(--f1q-white);

    background: transparent;

    border: 1px solid var(--f1q-border-strong);
}

.error-page-secondary:hover {
    color: var(--f1q-gold);

    border-color: var(--f1q-gold);

    transform: translateY(-2px);
}
