/* =========================================================
DISCRÉDIT 125
Feuille de styles principale
========================================================= */


/* =========================================================
VARIABLES
========================================================= */

:root {
    --noir: #111111;
    --noir-nav: #1c1c1c;

    --bleu-discredit: #1976d2;

    --fond: #f2f2f2;
    --blanc: #ffffff;

    --texte: #222222;
    --gris: #666666;
    --bordure: #dddddd;

    /* Couleurs des partis */
    --caq: #0055a4;
    --plq: #d71920;
    --pq: #4b9cd3;
    --qs: #f58220;
    --pcq: #183b70;
    --autre: #777777;
}


/* =========================================================
RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}


/* =========================================================
HEADER / NAVIGATION
========================================================= */

.site-header {
    width: 100%;
    background: var(--noir);
    color: var(--blanc);
    padding: 20px 30px;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: block;
    flex: 0 0 auto;

    color: var(--bleu-discredit);
    text-decoration: none;

    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;

    white-space: nowrap;
}

.logo:hover {
    color: var(--bleu-discredit);
}

.logo span {
    color: var(--blanc);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 22px;
    margin-left: auto;

    flex: 0 1 auto;

    white-space: nowrap;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-desktop a {
    display: block;
    flex: 0 0 auto;

    color: var(--blanc);
    text-decoration: none;

    font-size: 15px;
    font-weight: bold;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--bleu-discredit);
}

.nav-mobile {
    display: none;
}


/* =========================================================
STRUCTURE GÉNÉRALE
========================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
}

.page-header {
    margin-bottom: 35px;
}

.page-header h1 {
    margin: 0 0 10px;

    font-size: 42px;
    line-height: 1.1;
}

.page-header p {
    margin: 0 0 10px;

    color: var(--gris);
    font-size: 18px;
}

.page-header p:last-child {
    margin-bottom: 0;
}


/* =========================================================
HERO / ACCUEIL
========================================================= */

.hero {
    background: var(--noir);
    color: var(--blanc);

    padding: 80px 50px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    margin: 0 0 20px;

    font-size: 56px;
    line-height: 1.05;
    font-weight: 900;
}

.hero p {
    max-width: 750px;
    margin: 0;

    color: #dddddd;
    font-size: 20px;
}


/* =========================================================
SECTIONS
========================================================= */

.section {
    margin-bottom: 55px;
}

.section-title {
    margin: 0 0 25px;

    font-size: 28px;
    font-weight: 800;
}


/* =========================================================
STATISTIQUES
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
    margin-bottom: 45px;
}

.stat-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 8px;

    padding: 25px;

    text-align: center;
}

.stat-number {
    margin-bottom: 5px;

    color: var(--bleu-discredit);
    font-size: 38px;
    font-weight: 900;
}

.stat-label {
    color: var(--gris);

    font-size: 14px;
    font-weight: bold;
}


/* =========================================================
GRAPHIQUES / BLOCS
========================================================= */

.chart-container {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 8px;

    padding: 25px;
    margin-bottom: 30px;
}


/* =========================================================
BOUTONS
========================================================= */

.button,
.submit-button {
    display: inline-block;

    padding: 12px 20px;

    background: var(--bleu-discredit);
    color: var(--blanc);

    border: none;
    border-radius: 5px;

    text-decoration: none;

    font-family: inherit;
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.button:hover,
.submit-button:hover {
    background: #125ea8;
}

.button:active,
.submit-button:active {
    transform: translateY(1px);
}

.button-secondary,
.secondary-button {
    display: inline-block;

    padding: 12px 20px;

    background: #e5e5e5;
    color: var(--texte);

    border: none;
    border-radius: 5px;

    text-decoration: none;

    font-family: inherit;
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.button-secondary:hover,
.secondary-button:hover {
    background: #d5d5d5;
}

.button-secondary:active,
.secondary-button:active {
    transform: translateY(1px);
}


/* =========================================================
FILTRES
========================================================= */

.badge-controls {
    display: flex;
    align-items: center;

    gap: 15px;
    margin-bottom: 20px;
}

.badge-controls input,
.badge-controls select {
    min-height: 44px;

    padding: 10px 12px;

    background: var(--blanc);
    color: var(--texte);

    border: 1px solid var(--bordure);
    border-radius: 5px;

    font-family: inherit;
    font-size: 15px;
}

.badge-controls input {
    flex: 1;
}

.badge-controls select {
    min-width: 210px;
}

.badge-controls input:focus,
.badge-controls select:focus {
    outline: none;
    border-color: var(--bleu-discredit);
}


/* =========================================================
FILTRE CANDIDATS
========================================================= */

.candidate-filter-row {
    margin-bottom: 20px;
}

.candidate-filter-checkbox {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--texte);

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}

.candidate-filter-checkbox input {
    width: 17px;
    height: 17px;

    cursor: pointer;
}


/* =========================================================
COMPTEURS
========================================================= */

.badge-count {
    margin-bottom: 20px;

    color: var(--gris);

    font-size: 14px;
    font-weight: bold;
}


/* =========================================================
GRILLE CANDIDATS
========================================================= */

.candidates-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


/* =========================================================
CARTE CANDIDAT
========================================================= */

.candidate-card {
    position: relative;

    overflow: hidden;

    background: var(--blanc);

    border: 1px solid var(--bordure);
    border-radius: 8px;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.candidate-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.10);
}


/* =========================================================
COULEUR DU PARTI
========================================================= */

.candidate-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 6px;

    background: var(--autre);

    z-index: 2;
}

.candidate-card.CAQ::before {
    background: var(--caq);
}

.candidate-card.PLQ::before {
    background: var(--plq);
}

.candidate-card.PQ::before {
    background: var(--pq);
}

.candidate-card.QS::before {
    background: var(--qs);
}

.candidate-card.PCQ::before {
    background: var(--pcq);
}

.candidate-card.AUTRE::before {
    background: var(--autre);
}


/* =========================================================
PHOTO CANDIDAT
========================================================= */

.candidate-photo {
    width: 180px;
    height: 180px;

    margin: 0 auto;

    background: #eeeeee;

    overflow: hidden;
}

.candidate-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.candidate-no-photo {
    width: 180px;
    height: 180px;

    margin: 0 auto;

    background: #eeeeee;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;
}

.candidate-no-photo .silhouette-head {
    position: absolute;

    width: 27%;
    aspect-ratio: 1 / 1;

    background: #aaaaaa;

    border-radius: 50%;

    top: 18%;
}

.candidate-no-photo .silhouette-body {
    position: absolute;

    width: 55%;
    height: 42%;

    background: #aaaaaa;

    border-radius: 50% 50% 0 0;

    bottom: 0;
}

.candidate-photo-placeholder {
    width: 180px;
    height: 180px;

    margin: 0 auto;

    background: #eeeeee;

    position: relative;

    overflow: hidden;
}

.candidate-photo-placeholder::before {
    content: "";

    position: absolute;

    width: 27%;
    aspect-ratio: 1 / 1;

    background: #aaaaaa;

    border-radius: 50%;

    top: 18%;
    left: 50%;

    transform: translateX(-50%);
}

.candidate-photo-placeholder::after {
    content: "";

    position: absolute;

    width: 55%;
    height: 42%;

    background: #aaaaaa;

    border-radius: 50% 50% 0 0;

    bottom: 0;
    left: 50%;

    transform: translateX(-50%);
}


/* =========================================================
PHOTO CANDIDAT + STATUT
========================================================= */

.candidate-photo-container {
    position: relative;

    width: 180px;
    height: 180px;

    margin: 0 auto;

    background: #eeeeee;

    overflow: hidden;
}

.candidate-photo-container .candidate-photo,
.candidate-photo-container .candidate-photo-placeholder {
    width: 180px;
    height: 180px;

    aspect-ratio: 1 / 1;
}

.candidates-grid .candidate-photo-container .candidate-status {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 48px;
    height: 48px;

    max-width: none;

    object-fit: contain;

    z-index: 5;

    margin: 0;
}


/* =========================================================
INFORMATIONS CANDIDAT
========================================================= */

.candidate-info {
    padding: 18px;

    min-width: 0;
}

.candidate-name {
    margin: 0 0 7px;

    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.candidate-party {
    margin-bottom: 3px;

    color: var(--gris);

    font-size: 14px;
    font-weight: bold;
}

.candidate-riding {
    color: var(--gris);

    font-size: 13px;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
STATUT CANDIDAT — PAGE INDIVIDUELLE
========================================================= */

.candidate-profile-info .candidate-status {
    margin-top: 12px;
}

.candidate-profile-info .candidate-status img {
    width: 100%;
    max-width: 120px;
    height: auto;
}


/* =========================================================
BADGES DU CANDIDAT — CARTES DE LA GRILLE
========================================================= */

.candidate-badges {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    min-width: 0;
}

.candidates-grid .candidate-badges img {
    width: 50px;
    height: 50px;

    object-fit: cover;

    border-radius: 3px;
}

.candidate-badge-card {
    width: 50px;

    background: var(--blanc);

    border: 1px solid var(--bordure);
    border-radius: 5px;

    padding: 2px;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.candidate-badge-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.10);
}

.candidate-badge-card img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 3px;
}

.candidate-badge-card h4,
.candidate-badge-card p {
    display: none;
}

.candidate-badge-count {
    margin-top: 7px;

    color: var(--bleu-discredit);

    font-size: 11px;
    font-weight: bold;
}

.candidate-link {
    display: inline-block;

    margin-top: 7px;

    color: var(--bleu-discredit);

    font-size: 11px;
    font-weight: bold;
}


/* =========================================================
PAGE DÉTAIL CANDIDAT
========================================================= */

.back-link {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--bleu-discredit);

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.candidate-profile {
    display: grid;

    grid-template-columns: 120px 1fr;

    gap: 25px;

    margin-bottom: 50px;

    align-items: start;
}

.candidate-profile-photo {
    width: 120px;
    height: 120px;

    background: #eeeeee;

    border-radius: 8px;

    overflow: hidden;
}

.candidate-profile-photo img {
    width: 120px;
    height: 120px;

    object-fit: cover;
}

.candidate-profile-photo .candidate-photo-placeholder {
    width: 120px;
    height: 120px;

    aspect-ratio: 1 / 1;

    margin: 0;
}

.candidate-profile-info {
    padding-top: 5px;
}

.candidate-profile-info h2 {
    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.15;

    overflow-wrap: anywhere;
}

.candidate-profile-info .candidate-party {
    font-size: 16px;
}

.candidate-profile-info .candidate-riding {
    font-size: 15px;
}


/* =========================================================
SECTION BADGES CANDIDAT — PAGE INDIVIDUELLE
========================================================= */

.candidate-section {
    margin-bottom: 45px;
}

.candidate-section h3 {
    margin: 0 0 20px;

    font-size: 25px;
}

.candidate-profile + .candidate-section .candidate-badges {
    gap: 10px;
}

.candidate-profile + .candidate-section .candidate-badge-card {
    width: 105px;

    background: var(--blanc);

    border: 1px solid var(--bordure);
    border-radius: 7px;

    padding: 4px;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.candidate-profile + .candidate-section .candidate-badge-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.10);
}

.candidate-profile + .candidate-section .candidate-badge-card img {
    width: 97px;
    height: 97px;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 5px;
}

.candidate-profile + .candidate-section .candidate-badge-card h4 {
    display: block;

    margin: 7px 3px 3px;

    font-size: 13px;
    line-height: 1.2;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.candidate-profile + .candidate-section .candidate-badge-card p {
    display: block;

    margin: 0 3px 5px;

    color: var(--gris);

    font-size: 11px;
    line-height: 1.3;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
SOURCES
========================================================= */

.candidate-source {
    padding: 15px 0;

    border-bottom: 1px solid var(--bordure);
}

.candidate-source:last-child {
    border-bottom: none;
}

.candidate-source a {
    color: var(--bleu-discredit);

    font-weight: bold;

    text-decoration: none;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.candidate-source a:hover {
    text-decoration: underline;
}

.candidate-source-date {
    margin-top: 4px;

    color: var(--gris);

    font-size: 12px;
}


/* =========================================================
GRILLE BADGES
========================================================= */

.badges {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 18px;
}

.badge-card {
    position: relative;

    min-width: 0;

    background: var(--blanc);

    border: 1px solid var(--bordure);
    border-radius: 8px;

    overflow: hidden;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.badge-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.10);
}

.badge-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    background: #eeeeee;

    overflow: hidden;
}

.badge-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.badge-content {
    padding: 13px;

    min-width: 0;
}

.badge-content h3 {
    margin: 0 0 6px;

    font-size: 16px;
    line-height: 1.2;

    overflow-wrap: anywhere;
    word-break: break-word;

    white-space: normal;
}

.badge-category {
    color: var(--gris);

    font-size: 12px;
    font-weight: bold;

    overflow-wrap: anywhere;
    word-break: break-word;

    white-space: normal;
}


/* =========================================================
PAGE DÉTAIL BADGE
========================================================= */

.badge-detail {
    display: grid;

    grid-template-columns: 300px 1fr;

    gap: 40px;

    margin-bottom: 50px;
}

.badge-detail-image {
    width: 100%;

    border-radius: 8px;

    overflow: hidden;
}

.badge-detail-image img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;
}

.badge-detail-info {
    min-width: 0;
}

.badge-detail-info h1 {
    margin: 0 0 10px;

    font-size: 38px;
    line-height: 1.1;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.badge-detail-category {
    margin-bottom: 20px;

    color: var(--gris);

    font-size: 14px;
    font-weight: bold;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.badge-detail-description {
    font-size: 17px;
    line-height: 1.7;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
CANDIDATS ASSOCIÉS À UN BADGE
========================================================= */

.badge-candidates {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


/* =========================================================
MESSAGES
========================================================= */

.message {
    padding: 15px 18px;

    margin-bottom: 20px;

    border-radius: 6px;

    font-size: 14px;
}

.message-info {
    background: #e7f1fb;

    border: 1px solid #b8d5ef;

    color: #174d7a;
}

.message-warning {
    background: #fff7df;

    border: 1px solid #ead58a;

    color: #705d14;
}

.message-error {
    background: #fdeaea;

    border: 1px solid #e7b5b5;

    color: #8a2222;
}

.message-success {
    background: #e9f6ea;

    border: 1px solid #b7dcb9;

    color: #28612b;
}


/* =========================================================
FORMULAIRES
========================================================= */

.form-card {
    max-width: 850px;

    margin: 0 auto;

    padding: 35px;

    background: var(--blanc);

    border: 1px solid var(--bordure);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 12px;

    background: var(--blanc);

    border: 1px solid var(--bordure);
    border-radius: 5px;

    color: var(--texte);

    font-family: inherit;
    font-size: 15px;
}

.form-group textarea {
    min-height: 150px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;

    border-color: var(--bleu-discredit);
}

.form-group small {
    display: block;

    margin-top: 6px;

    color: var(--gris);

    font-size: 12px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 25px 0;

    font-size: 13px;
}

.checkbox-group input {
    width: 17px;
    height: 17px;

    margin-top: 2px;

    flex-shrink: 0;

    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
}

.confirmation {
    padding: 25px;

    background: #e9f6ea;

    border: 1px solid #b7dcb9;

    border-radius: 8px;
}

.confirmation h2 {
    margin-top: 0;
}

.confirmation p:last-of-type {
    margin-bottom: 25px;
}


/* =========================================================
À PROPOS / BLOCS DE CONTENU
========================================================= */

.content-box,
.content-card {
    background: var(--blanc);

    border: 1px solid var(--bordure);
    border-radius: 8px;

    padding: 30px;

    margin-bottom: 25px;
}

.content-box h2,
.content-card h2 {
    margin-top: 0;

    font-size: 25px;
}

.content-box h3,
.content-card h3 {
    font-size: 20px;
}

.content-box p:last-child,
.content-card p:last-child {
    margin-bottom: 0;
}

.content-box li,
.content-card li {
    margin-bottom: 8px;
}

.notice-box {
    margin: 30px 0;

    padding: 18px 20px;

    background: #f7f7f7;

    border-left: 4px solid var(--bleu-discredit);
}

.notice-box p {
    margin: 0;
}

.about-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 35px;
}


/* =========================================================
TROPHÉES — CHAMPIONS EX ÆQUO
========================================================= */

.trophy-champions {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    margin-top: 20px;
}

.trophy-champions .candidate-card {
    width: 100%;
}

.trophy-champions .candidate-photo-container {
    width: 180px;
    height: 180px;
}

.trophy-champions .candidate-photo,
.trophy-champions .candidate-photo-placeholder {
    width: 180px;
    height: 180px;

    object-fit: cover;
}

.trophy-champions .candidate-info {
    padding: 12px;
}

.trophy-champions .candidate-info h3 {
    margin: 0 0 6px;
}

.trophy-tie-message {
    margin: 0 0 20px;

    color: var(--gris);

    font-weight: bold;
}


/* =========================================================
TROPHÉES — COULEURS PARTIS
========================================================= */

.trophy-champions .candidate-card.CAQ::before {
    background: var(--caq);
}

.trophy-champions .candidate-card.PLQ::before {
    background: var(--plq);
}

.trophy-champions .candidate-card.PQ::before {
    background: var(--pq);
}

.trophy-champions .candidate-card.QS::before {
    background: var(--qs);
}

.trophy-champions .candidate-card.PCQ::before {
    background: var(--pcq);
}


/* =========================================================
FOOTER
========================================================= */

footer {
    margin-top: 60px;

    padding: 35px 50px;

    background: var(--noir);

    color: #bbbbbb;

    text-align: center;

    font-size: 13px;
}

footer p {
    margin: 0 0 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--bleu-discredit);

    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* =========================================================
RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 1150px) {

    .site-header {
        padding: 20px 25px;
    }

    .header-inner {
        gap: 20px;
    }

    .logo {
        font-size: 28px;
    }

    .main-nav {
        gap: 16px;
    }

    .nav-desktop {
        gap: 16px;
    }

    .nav-desktop a {
        font-size: 14px;
    }
}


@media (max-width: 1000px) {

    .site-header {
        padding: 20px 30px;
    }

    .header-inner {
        align-items: flex-start;
    }

    .main-nav {
        justify-content: flex-end;

        gap: 14px;
    }

    .nav-desktop {
        gap: 12px;
    }

    .nav-desktop a {
        font-size: 13px;
    }

    .container {
        padding: 40px 30px;
    }

    .hero {
        padding: 60px 30px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .candidates-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .badges {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

    .badge-candidates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .badge-detail {
        grid-template-columns: 250px 1fr;
    }
}


/* =========================================================
RESPONSIVE — PETIT ÉCRAN
========================================================= */

@media (max-width: 800px) {

    .site-header {
        padding: 18px 20px;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo {
        font-size: 27px;
    }

    .main-nav {
        width: 100%;

        margin-left: 0;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 8px;

        white-space: nowrap;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: block;

        position: relative;

        flex: 0 0 auto;
    }

    .nav-mobile summary {
        display: block;

        list-style: none;

        cursor: pointer;

        color: var(--blanc);

        font-size: 14px;
        font-weight: bold;

        white-space: nowrap;

        padding: 8px 4px;

        border-radius: 7px;
    }

    .nav-mobile summary::-webkit-details-marker {
        display: none;
    }

    .nav-mobile summary::after {
        content: "⌄";

        display: inline-block;

        margin-left: 5px;

        font-size: 13px;
        line-height: 1;

        transform: translateY(-1px);
    }

    .nav-mobile[open] summary::after {
        transform: translateY(1px);
    }

    .nav-mobile summary:hover {
        color: var(--bleu-discredit);
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-mobile .nav-more-menu {
        position: absolute;

        top: calc(100% + 6px);
        right: 0;

        display: flex;
        flex-direction: column;

        gap: 0;

        min-width: 180px;

        padding: 8px;

        margin: 0;

        background: var(--noir-nav);

        border: 1px solid #333;
        border-radius: 8px;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.25);

        z-index: 100;
    }

    .nav-mobile .nav-more-menu a {
        display: block;

        padding: 9px 12px;

        color: var(--blanc);

        text-decoration: none;

        font-size: 14px;

        white-space: nowrap;

        border-radius: 5px;
    }

    .nav-mobile .nav-more-menu a:hover,
    .nav-mobile .nav-more-menu a.active {
        background: #292929;

        color: var(--bleu-discredit);
    }

    .container {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 34px;
    }

    .hero {
        padding: 45px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .badge-controls {
        flex-direction: column;

        align-items: stretch;
    }

    .badge-controls input,
    .badge-controls select {
        width: 100%;
    }

    .badge-controls select {
        min-width: 0;
    }

    .candidates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    .badges {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 12px;
    }

    .badge-candidates {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    .candidate-photo,
    .candidate-photo-placeholder,
    .candidate-no-photo {
        width: 150px;
        height: 150px;
    }

    .candidate-photo-container {
        width: 150px;
        height: 150px;
    }

    .candidate-photo-container .candidate-photo,
    .candidate-photo-container .candidate-photo-placeholder {
        width: 150px;
        height: 150px;
    }

    .candidates-grid .candidate-photo-container .candidate-status {
        width: 42px;
        height: 42px;

        top: 6px;
        right: 6px;
    }

    .candidate-info {
        padding: 13px;
    }

    .candidate-name {
        font-size: 17px;
    }

    .candidate-party {
        font-size: 13px;
    }

    .candidate-riding {
        font-size: 12px;
    }

    .candidate-profile {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .candidate-profile-photo {
        width: 120px;
        height: 120px;

        margin: 0 auto;
    }

    .candidate-profile-photo img,
    .candidate-profile-photo .candidate-photo-placeholder {
        width: 120px;
        height: 120px;
    }

    .candidate-profile-info {
        text-align: center;
    }

    .candidate-profile-info .candidate-status img {
        margin: 0 auto;
    }

    .candidate-badges {
        justify-content: center;
    }

    .candidate-profile + .candidate-section .candidate-badges {
        justify-content: center;
    }

    .badge-detail {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .badge-detail-image {
        max-width: 280px;

        margin: 0 auto;
    }

    .badge-detail-info {
        text-align: center;
    }

    .form-card {
        padding: 22px;
    }

    .trophy-champions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;
    }
}


/* =========================================================
RESPONSIVE — TÉLÉPHONE
========================================================= */

@media (max-width: 500px) {

    .site-header {
        padding: 16px;
    }

    .header-inner {
        gap: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .main-nav {
        gap: 4px;
    }

    .nav-mobile summary {
        font-size: 12px;

        padding: 7px 2px;
    }

    .nav-mobile summary::after {
        font-size: 11px;
        margin-left: 3px;
    }

    .nav-mobile .nav-more-menu {
        min-width: 175px;
    }

    .nav-mobile .nav-more-menu a {
        font-size: 13px;
    }

    .container {
        padding: 24px 16px;
    }

    .page-header {
        margin-bottom: 25px;
    }

    .page-header h1 {
        font-size: 29px;
    }

    .page-header p {
        font-size: 15px;
    }

    .hero {
        padding: 38px 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 34px;
    }

    .candidates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .candidate-photo,
    .candidate-photo-placeholder,
    .candidate-no-photo {
        width: min(150px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .candidate-photo-container {
        width: min(150px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .candidate-photo-container .candidate-photo,
    .candidate-photo-container .candidate-photo-placeholder {
        width: 100%;
        height: 100%;
    }

    .candidates-grid .candidate-photo-container .candidate-status {
        width: 38px;
        height: 38px;

        top: 5px;
        right: 5px;
    }

    .candidate-info {
        padding: 11px;
    }

    .candidate-name {
        font-size: 16px;
        line-height: 1.15;
    }

    .candidate-party {
        font-size: 12px;
    }

    .candidate-riding {
        font-size: 11px;
        line-height: 1.25;
    }

    .badges {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .badge-content {
        padding: 11px;
    }

    .badge-content h3 {
        font-size: 15px;
    }

    .badge-category {
        font-size: 11px;
    }

    .badge-candidates {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .candidate-profile-info h2 {
        font-size: 26px;
    }

    .candidate-profile + .candidate-section .candidate-badge-card {
        width: 90px;
    }

    .candidate-profile + .candidate-section .candidate-badge-card img {
        width: 82px;
        height: 82px;
    }

    .content-box,
    .content-card {
        padding: 18px;
    }

    .content-box h2,
    .content-card h2 {
        font-size: 21px;
    }

    .content-box h3,
    .content-card h3 {
        font-size: 18px;
    }

    .form-card {
        padding: 18px;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-actions .button,
    .about-actions .submit-button,
    .about-actions .secondary-button,
    .about-actions .button-secondary {
        width: 100%;

        text-align: center;
    }

    footer {
        padding: 25px 16px;
    }

    .trophy-champions {
        grid-template-columns: 1fr;

        gap: 15px;
    }
}


/* =========================================================
RESPONSIVE — TRÈS PETIT TÉLÉPHONE
========================================================= */

@media (max-width: 360px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .candidates-grid {
        gap: 8px;
    }

    .candidate-photo,
    .candidate-photo-placeholder,
    .candidate-no-photo {
        width: min(115px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .candidate-photo-container {
        width: min(115px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .candidate-photo-container .candidate-photo,
    .candidate-photo-container .candidate-photo-placeholder {
        width: 100%;
        height: 100%;
    }

    .candidate-name {
        font-size: 15px;
    }

    .candidate-info {
        padding: 9px;
    }

    .candidates-grid .candidate-photo-container .candidate-status {
        width: 34px;
        height: 34px;
    }
}