/*
================================================================================
  Duathlete · custom.css · style SoFoot
  Run. Bike. No swim.
================================================================================
*/

/* === RESET & BASE ============================================================ */

:root {
    color-scheme: light only;
    /* Palette (alias des --wp--preset--color pour usage hors theme.json) */
    --noir: #0A0A0A;
    --noir-doux: #1A1A1A;
    --creme: #F5F1E8;
    --creme-fonce: #E8E2D5;
    --orange: #D85B2C;
    --jaune-fluo: #F4FF35;
    --rouge-sang: #C8102E;
    --gris-fonce: #2A2A2A;
    --gris-moyen: #5A5A5A;
    --gris-clair: #9A9A9A;
    --gris-tres-clair: #E5E2DA;
    /* Typo */
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--creme); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--noir);
    background: var(--creme);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    margin: 0;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .wp-block-post-title, .wp-block-heading {
    font-family: var(--serif);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-variation-settings: "opsz" 144;
}

/* === LAYOUT GLOBAL =========================================================== */

.wp-site-blocks { background: var(--creme); }
.has-creme-background-color { background-color: var(--creme) !important; }
.has-creme-fonce-background-color { background-color: var(--creme-fonce) !important; }
.has-noir-background-color { background-color: var(--noir) !important; color: var(--creme); }
.has-jaune-fluo-background-color { background-color: var(--jaune-fluo) !important; color: var(--noir); }
.has-orange-background-color { background-color: var(--orange) !important; color: var(--creme); }
.has-rouge-sang-background-color { background-color: var(--rouge-sang) !important; color: var(--creme); }

.duathlete-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

/* === HEADER (bandeau jaune fluo + nav noir) ================================= */

.duathlete-header {
    background: var(--noir);
    color: var(--creme);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--jaune-fluo);
}

.duathlete-header__top {
    background: var(--jaune-fluo);
    color: var(--noir);
    padding: 0.4rem 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.duathlete-header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.duathlete-header__live {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.duathlete-header__live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--rouge-sang);
    border-radius: 50%;
    animation: duathlete-blink 1.2s infinite;
}
@keyframes duathlete-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.duathlete-header__main { padding: 1.25rem 0; }
.duathlete-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.duathlete-header__brand { display: flex; align-items: baseline; gap: 0.6rem; }
.duathlete-header__brand-name {
    font-family: var(--serif);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--creme);
}
.duathlete-header__brand-dot { color: var(--jaune-fluo); }
.duathlete-header__brand-tagline {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
}

.duathlete-header__nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.duathlete-header__nav a {
    color: var(--creme);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0;
    transition: color 0.15s;
}
.duathlete-header__nav a:hover,
.duathlete-header__nav .current-menu-item a,
.duathlete-header__nav a.active {
    color: var(--jaune-fluo);
}
.duathlete-header__nav .current-menu-item a,
.duathlete-header__nav a.active {
    border-bottom: 3px solid var(--jaune-fluo);
}

/* === FOOTER (mega Duathlete + colonnes) ===================================== */

.duathlete-footer {
    background: var(--noir);
    color: var(--creme);
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--jaune-fluo);
}
.duathlete-footer__top {
    border-bottom: 1px solid var(--gris-fonce);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}
.duathlete-footer__brand-name {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--creme);
    margin-bottom: 0.5rem;
}
.duathlete-footer__brand-name em { color: var(--jaune-fluo); font-style: italic; }
.duathlete-footer__brand-tagline {
    font-size: 0.85rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}
.duathlete-footer__columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.duathlete-footer__brand-text {
    color: var(--gris-clair);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 380px;
}
.duathlete-footer__col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    color: var(--jaune-fluo);
}
.duathlete-footer__list { list-style: none; margin: 0; padding: 0; }
.duathlete-footer__list li { margin-bottom: 0.7rem; }
.duathlete-footer__list a { color: var(--creme-fonce); font-size: 0.95rem; }
.duathlete-footer__list a:hover { color: var(--jaune-fluo); }
.duathlete-footer__bottom {
    display: flex;
    justify-content: space-between;
    color: var(--gris-clair);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.duathlete-footer__bottom em { color: var(--jaune-fluo); font-style: normal; }

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

.duathlete-btn,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 0 !important;
    transition: all 0.15s;
    background: var(--jaune-fluo);
    color: var(--noir) !important;
}
.duathlete-btn:hover,
.wp-block-button__link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--orange);
}
.duathlete-btn--noir,
.is-style-noir .wp-block-button__link {
    background: var(--noir);
    color: var(--creme) !important;
}
.duathlete-btn--noir:hover,
.is-style-noir .wp-block-button__link:hover {
    background: var(--jaune-fluo);
    color: var(--noir) !important;
    box-shadow: 4px 4px 0 var(--orange);
}
.duathlete-btn--orange,
.is-style-orange .wp-block-button__link {
    background: var(--orange);
    color: var(--creme) !important;
}
.duathlete-btn--orange:hover,
.is-style-orange .wp-block-button__link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--noir);
}

/* === TAMPON SoFoot (emphase signature) ====================================== */

/* Le tampon est appliqué via la classe .duathlete-tampon ou via <em> dans h1.duathlete-hero__title */
.duathlete-tampon,
.duathlete-hero__title em {
    font-style: normal;
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0 0.3em;
    margin: 0 0.05em;
    display: inline-block;
    transform: rotate(-1deg);
    box-shadow: 4px 4px 0 var(--orange);
    font-weight: 800;
}
/* Variante : tampon sur fond noir = inversion (jaune fluo + texte noir) */
.has-noir-background-color .duathlete-tampon,
.has-noir-background-color .duathlete-hero__title em,
.duathlete-hero--noir .duathlete-hero__title em {
    background: var(--jaune-fluo);
    color: var(--noir);
    box-shadow: 4px 4px 0 var(--orange);
}
.duathlete-tampon--orange { background: var(--orange); color: var(--creme); box-shadow: 4px 4px 0 var(--jaune-fluo); }
.duathlete-tampon--rouge { background: var(--rouge-sang); color: var(--creme); box-shadow: 4px 4px 0 var(--jaune-fluo); border: 2px solid var(--noir); transform: rotate(-2deg); }

/* === KICKERS (étiquettes en rotation) ======================================= */

.duathlete-kicker {
    display: inline-block;
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.4rem 1rem;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-1deg);
    margin-bottom: 1.5rem;
}
.duathlete-kicker--orange { background: var(--orange); color: var(--creme); }
.duathlete-kicker--jaune { background: var(--jaune-fluo); color: var(--noir); border: 2px solid var(--noir); }
.duathlete-kicker--rouge { background: var(--rouge-sang); color: var(--creme); }

/* === HERO (variantes pilier / auteur / localité / fiche) ==================== */

.duathlete-hero {
    background: var(--noir);
    color: var(--creme);
    padding: 5rem 0 4rem;
    border-bottom: 4px solid var(--jaune-fluo);
    position: relative;
    overflow: hidden;
}
.duathlete-hero__inner { position: relative; max-width: 900px; }
.duathlete-hero__breadcrumbs {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gris-clair);
    margin-bottom: 2rem;
    font-weight: 600;
}
.duathlete-hero__breadcrumbs a:hover { color: var(--jaune-fluo); }
.duathlete-hero__breadcrumbs .sep { color: var(--orange); margin: 0 0.5rem; }
.duathlete-hero__title {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.92;
    margin: 0 0 1.5rem;
    color: var(--creme);
}
.duathlete-hero__sous {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--creme-fonce);
    line-height: 1.4;
    max-width: 720px;
    margin: 0 0 2rem;
}
.duathlete-hero__sous strong { color: var(--jaune-fluo); font-style: normal; font-weight: 700; }

/* Lettre/sigle décoratif géant en background du hero */
.duathlete-hero--lettre::before {
    content: attr(data-lettre);
    position: absolute;
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--serif);
    font-size: clamp(20rem, 35vw, 38rem);
    font-weight: 900;
    color: rgba(244, 255, 53, 0.05);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
}
.duathlete-hero--lettre[data-couleur="orange"]::before { color: rgba(216, 91, 44, 0.06); }

/* === STATS BAND (sous hero) ================================================= */

.duathlete-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    border: 2px solid var(--jaune-fluo);
    max-width: 800px;
}
.duathlete-stat {
    padding: 1.25rem;
    border-right: 2px solid var(--jaune-fluo);
}
.duathlete-stat:last-child { border-right: none; }
.duathlete-stat__big {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--jaune-fluo);
    line-height: 1;
}
.duathlete-stat__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--creme-fonce);
    margin-top: 0.4rem;
    font-weight: 600;
}

/* === SECTION DIVIDER (titre + count séparés par bordure) ==================== */

.duathlete-section-divider {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--noir);
    gap: 1rem;
    flex-wrap: wrap;
}
.duathlete-section-divider__title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0;
}
.duathlete-section-divider__title em { font-style: italic; color: var(--orange); }
.duathlete-section-divider__count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gris-moyen);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === ARTICLE CARDS (grille mosaïque) ======================================== */

.duathlete-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border-left: 2px solid var(--noir);
    border-top: 2px solid var(--noir);
}
.duathlete-card {
    background: var(--creme);
    border-right: 2px solid var(--noir);
    border-bottom: 2px solid var(--noir);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.duathlete-card:nth-child(odd) { background: var(--creme-fonce); }
.duathlete-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--jaune-fluo);
    z-index: 2;
}
.duathlete-card__visual { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.duathlete-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.duathlete-card__sticker {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--jaune-fluo);
    color: var(--noir);
    padding: 0.25rem 0.55rem;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: rotate(3deg);
    z-index: 5;
    border: 2px solid var(--noir);
}
.duathlete-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.duathlete-card__kicker {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 0.6rem;
}
.duathlete-card__title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}
.duathlete-card__title em { font-style: italic; color: var(--orange); }
.duathlete-card__excerpt {
    color: var(--gris-moyen);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}
.duathlete-card__meta {
    font-size: 0.7rem;
    color: var(--gris-moyen);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gris-tres-clair);
}
.duathlete-card__meta strong { color: var(--noir); }

/* === FEATURED ARTICLE (gros article en tête) ================================ */

.duathlete-featured {
    background: var(--creme);
    border: 4px solid var(--noir);
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--jaune-fluo);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.duathlete-featured__visual { position: relative; min-height: 320px; }
.duathlete-featured__visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.duathlete-featured__sticker {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--rouge-sang);
    color: var(--creme);
    padding: 0.4rem 0.85rem;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(-3deg);
    z-index: 5;
    border: 2px solid var(--noir);
}
.duathlete-featured__body { padding: 2.5rem; display: flex; flex-direction: column; }
.duathlete-featured__kicker {
    display: inline-block;
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.3rem 0.6rem;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.duathlete-featured__title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 1rem;
}
.duathlete-featured__title em { font-style: italic; color: var(--orange); }
.duathlete-featured__excerpt {
    color: var(--gris-fonce);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.duathlete-featured__meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--gris-moyen);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid var(--noir);
    flex-wrap: wrap;
}
.duathlete-featured__meta strong { color: var(--noir); }

/* === SUB-CATEGORIES (filtres sticky sous hero) ============================== */

.duathlete-subcats {
    background: var(--creme-fonce);
    border-bottom: 2px solid var(--noir);
    padding: 1.25rem 0;
    position: sticky;
    top: 130px;
    z-index: 50;
}
.duathlete-subcats__inner {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.duathlete-subcats__label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--noir);
    margin-right: 0.5rem;
}
.duathlete-subcat {
    background: var(--creme);
    color: var(--noir);
    border: 2px solid var(--noir);
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}
.duathlete-subcat:hover {
    background: var(--jaune-fluo);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--noir);
}
.duathlete-subcat.active,
.duathlete-subcat[aria-current="page"] {
    background: var(--noir);
    color: var(--jaune-fluo);
}
.duathlete-subcat__count {
    background: var(--orange);
    color: var(--creme);
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
}
.duathlete-subcat.active .duathlete-subcat__count {
    background: var(--jaune-fluo);
    color: var(--noir);
}

/* === SIDEBAR =============================================================== */

.duathlete-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 200px;
    align-self: start;
}
.duathlete-sidebar-block {
    background: var(--creme);
    border: 3px solid var(--noir);
    padding: 1.75rem;
}
.duathlete-sidebar-block--noir {
    background: var(--noir);
    color: var(--creme);
}
.duathlete-sidebar-block__title {
    display: inline-block;
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.3rem 0.7rem;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}
.duathlete-sidebar-block--noir .duathlete-sidebar-block__title {
    background: var(--jaune-fluo);
    color: var(--noir);
}
.duathlete-sidebar-block h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.duathlete-sidebar-block--noir h3 { color: var(--creme); }
.duathlete-sidebar-block p {
    font-size: 0.9rem;
    color: var(--gris-fonce);
    line-height: 1.5;
    margin: 0 0 1rem;
}
.duathlete-sidebar-block--noir p { color: var(--creme-fonce); }

/* === PAGINATION ============================================================= */

.duathlete-pagination,
.wp-block-query-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.duathlete-pagination a,
.duathlete-pagination span,
.wp-block-query-pagination a,
.wp-block-query-pagination span,
.page-numbers {
    background: var(--creme);
    border: 2px solid var(--noir);
    padding: 0.65rem 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.15s;
    min-width: 44px;
    text-align: center;
    color: var(--noir);
}
.duathlete-pagination a:hover,
.wp-block-query-pagination a:hover,
.page-numbers:hover {
    background: var(--jaune-fluo);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--noir);
}
.duathlete-pagination .current,
.page-numbers.current {
    background: var(--noir);
    color: var(--jaune-fluo);
}
.duathlete-pagination .dots,
.page-numbers.dots {
    border: none;
    background: transparent;
}

/* === TAGS / CHIPS =========================================================== */

.duathlete-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.duathlete-tag {
    background: var(--creme-fonce);
    color: var(--noir);
    border: 2px solid var(--noir);
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.15s;
}
.duathlete-tag:hover {
    background: var(--jaune-fluo);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--noir);
}

/* Format chip utilisé dans les fiches duathlon */
.duathlete-format-chip {
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.duathlete-format-chip--orange { background: var(--orange); color: var(--creme); }

/* === PHOTO PLACEHOLDER (pour mocks et fallback) ============================ */

.duathlete-photo {
    position: relative;
    overflow: hidden;
    background: var(--noir);
    color: var(--creme);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    aspect-ratio: 16/10;
}
.duathlete-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0, transparent 20px, rgba(0,0,0,0.06) 20px, rgba(0,0,0,0.06) 21px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 20px, rgba(255,255,255,0.04) 20px, rgba(255,255,255,0.04) 21px);
    pointer-events: none;
}
.duathlete-photo--orange { background: linear-gradient(135deg, var(--orange) 0%, var(--rouge-sang) 100%); }
.duathlete-photo--bleu { background: linear-gradient(135deg, #3B5998 0%, var(--noir) 100%); }
.duathlete-photo--vert { background: linear-gradient(135deg, #2D5016 0%, #0A0A0A 100%); }
.duathlete-photo--violet { background: linear-gradient(135deg, #6B3FA0 0%, var(--noir) 100%); }
.duathlete-photo--rouge { background: linear-gradient(135deg, var(--rouge-sang) 0%, #5C0A12 100%); }
.duathlete-photo--terre { background: linear-gradient(135deg, #8B4513 0%, var(--noir) 100%); }

/* === FORMULAIRES (newsletter, contact) ====================================== */

.duathlete-form-block {
    background: var(--creme);
    border: 4px solid var(--noir);
    padding: 0;
    box-shadow: 8px 8px 0 var(--jaune-fluo);
    display: flex;
    overflow: hidden;
}
.duathlete-form-input,
input[type="email"].duathlete-form-input,
input[type="text"].duathlete-form-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    background: var(--creme);
    font-size: 1.125rem;
    font-family: var(--sans);
    font-weight: 600;
    color: var(--noir);
}
.duathlete-form-input:focus { outline: 3px solid var(--jaune-fluo); outline-offset: -3px; }
.duathlete-form-input::placeholder { color: var(--gris-clair); font-weight: 500; }
.duathlete-form-btn {
    padding: 1.25rem 2rem;
    background: var(--noir);
    color: var(--jaune-fluo);
    border: none;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.15s;
    font-size: 0.95rem;
}
.duathlete-form-btn:hover { background: var(--jaune-fluo); color: var(--noir); }

/* Newsletter mini-form (sidebar) */
.duathlete-newsletter-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.duathlete-newsletter-mini input[type="email"] {
    padding: 0.75rem;
    border: 2px solid var(--jaune-fluo);
    background: var(--noir-doux);
    color: var(--creme);
    font-size: 0.9rem;
    font-family: inherit;
}
.duathlete-newsletter-mini input::placeholder { color: var(--gris-clair); }
.duathlete-newsletter-mini button {
    padding: 0.75rem;
    background: var(--jaune-fluo);
    color: var(--noir);
    border: 2px solid var(--jaune-fluo);
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.15s;
}
.duathlete-newsletter-mini button:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--creme);
}

/* === ARTICLE BODY (single post) ============================================ */

.duathlete-article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.7;
}
.duathlete-article-body > p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 5rem;
    font-weight: 900;
    color: var(--orange);
    float: left;
    line-height: 0.85;
    margin: 0.1rem 0.75rem 0 0;
}
.duathlete-article-body h2 {
    font-style: italic;
    color: var(--orange);
    border-left: 4px solid var(--noir);
    padding-left: 1rem;
    margin: 2.5rem 0 1.25rem;
    font-size: 1.875rem;
    font-weight: 800;
}
.duathlete-article-body h3 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}
.duathlete-article-body blockquote {
    background: var(--orange);
    color: var(--creme);
    margin: 2.5rem 0;
    padding: 2.5rem 2rem;
    border: none;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
}
.duathlete-article-body blockquote::before {
    content: '«';
    color: var(--jaune-fluo);
    font-size: 5rem;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
    font-weight: 900;
}
.duathlete-article-body blockquote p { margin: 0; padding-left: 2.5rem; }

/* Callout noir avec exclamation jaune */
.duathlete-callout {
    background: var(--noir);
    color: var(--creme);
    padding: 2rem 2.25rem 2rem 4.5rem;
    margin: 2.5rem 0;
    position: relative;
    border-left: 6px solid var(--jaune-fluo);
}
.duathlete-callout::before {
    content: '!';
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%) rotate(-5deg);
    color: var(--jaune-fluo);
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

/* CTA inline jaune */
.duathlete-cta-inline {
    display: inline-block;
    background: var(--jaune-fluo);
    color: var(--noir);
    padding: 0 0.4em;
    transform: rotate(-0.5deg);
    font-weight: 800;
    text-decoration: none;
}
.duathlete-cta-inline:hover { background: var(--noir); color: var(--jaune-fluo); }

/* === FICHE DUATHLON (single-duathlon) ====================================== */

.duathlete-fiche__chapeau {
    background: var(--jaune-fluo);
    color: var(--noir);
    padding: 1.5rem 1.75rem;
    border-left: 6px solid var(--noir);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.duathlete-fiche__distances {
    background: var(--noir);
    color: var(--creme);
    padding: 2rem;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
    border: 2px solid var(--jaune-fluo);
}
.duathlete-fiche__distance {
    padding: 1rem;
    border-right: 2px solid var(--jaune-fluo);
    text-align: center;
}
.duathlete-fiche__distance:last-child { border-right: none; }
.duathlete-fiche__distance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--creme-fonce);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.duathlete-fiche__distance-value {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--creme);
    line-height: 1;
}
.duathlete-fiche__distance--total .duathlete-fiche__distance-value {
    color: var(--jaune-fluo);
    font-size: 2.5rem;
}

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

@media (max-width: 1024px) {
    .duathlete-sidebar { position: static; }
}

@media (max-width: 768px) {
    .duathlete-header__nav { display: none; }
    .duathlete-subcats { top: 90px; }
    .duathlete-featured { grid-template-columns: 1fr; }
    .duathlete-footer__columns { grid-template-columns: 1fr; gap: 2rem; }
    .duathlete-hero { padding: 3.5rem 0 3rem; }
    .duathlete-hero__title { font-size: clamp(2.25rem, 9vw, 4rem); }
}

@media (max-width: 600px) {
    .duathlete-form-block { flex-direction: column; }
    .duathlete-stats { grid-template-columns: 1fr 1fr; }
    .duathlete-fiche__distances { grid-template-columns: 1fr 1fr; }
    .duathlete-fiche__distance { border-right: none; border-bottom: 2px solid var(--jaune-fluo); }
    .duathlete-fiche__distance:nth-last-child(-n+2) { border-bottom: none; }
}

/* === ACCESSIBILITÉ ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .duathlete-card:hover,
    .duathlete-tag:hover,
    .duathlete-subcat:hover,
    .duathlete-btn:hover { transform: none; }
}

/* Focus visible (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.duathlete-card:focus-visible {
    outline: 3px solid var(--jaune-fluo);
    outline-offset: 3px;
}

/* ============================================================================
   HOME (front-page) : hero affiche course + cover stories + sections
   ============================================================================ */

.duathlete-home-hero { position: relative; }

/* L'affiche course "à la une" simulée poster */
.duathlete-affiche {
    position: relative;
    background: var(--creme);
    border: 4px solid var(--noir);
    padding: 2.5rem 2rem 2.5rem;
    box-shadow: 8px 8px 0 var(--orange), 16px 16px 0 var(--jaune-fluo);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}
.duathlete-affiche::before {
    content: '';
    position: absolute;
    inset: 0.85rem;
    border: 2px solid var(--noir);
    pointer-events: none;
}
.duathlete-affiche__sticker {
    position: absolute;
    top: -0.85rem;
    right: -0.85rem;
    background: var(--rouge-sang);
    color: var(--creme);
    padding: 0.55rem 1.1rem;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(8deg);
    z-index: 10;
    border: 2px solid var(--noir);
    box-shadow: 3px 3px 0 var(--noir);
    white-space: nowrap;
}
.duathlete-affiche__date {
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 0.85;
    color: var(--jaune-fluo);
    text-shadow: 4px 4px 0 var(--noir);
    letter-spacing: -0.05em;
    margin-top: 0.5rem;
}
.duathlete-affiche__month {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--noir);
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 900;
    margin-top: 0.25rem;
}
.duathlete-affiche__year {
    font-family: var(--sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: var(--gris-moyen);
    margin: 0.5rem 0 1.5rem;
}
.duathlete-affiche__name {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.duathlete-affiche__loc {
    font-size: 0.85rem;
    color: var(--gris-moyen);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 1rem;
}
.duathlete-affiche__formats {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.duathlete-affiche__cta {
    display: inline-block;
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.7rem 1.25rem;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s;
}
.duathlete-affiche__cta:hover {
    background: var(--jaune-fluo);
    color: var(--noir);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--noir);
}

/* Cover stories : cards à fond noir */
.duathlete-cover-card {
    background: var(--noir-doux);
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}
.duathlete-cover-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--orange);
}
.duathlete-cover-card .wp-block-post-featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Bouton kicker inline (manifesto block) */
.duathlete-kicker-inline { margin: 0 0 1rem; }

/* Buttons row hero home */
.duathlete-home-hero__buttons { gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

@media (max-width: 768px) {
    .duathlete-affiche-col { margin-top: 3rem; }
    .duathlete-affiche { padding: 2rem 1.5rem; }
}

/* ============================================================================
   FICHE DUATHLON : pastille hero, infos pratiques, formats wrapper
   ============================================================================ */

.duathlete-fiche-hero-meta { margin: 0 0 1rem; }
.duathlete-fiche-hero-meta__pill {
    display: inline-block;
    background: var(--orange);
    color: var(--creme);
    padding: 0.5rem 1.1rem;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.duathlete-fiche-formats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
}
.duathlete-fiche-formats .duathlete-format-chip {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.duathlete-infos-list { margin: 0; }
.duathlete-infos-list dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--gris-moyen);
    margin-top: 1rem;
}
.duathlete-infos-list dt:first-child { margin-top: 0; }
.duathlete-infos-list dd {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--noir);
}
.duathlete-infos-list dd a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.duathlete-infos-list dd a:hover { color: var(--noir); }

.duathlete-fiche-grid { gap: 3rem !important; }
.duathlete-fiche-main { min-width: 0; }

.duathlete-map-block { margin-top: 3rem; }

@media (max-width: 1024px) {
    .duathlete-fiche-sidebar { margin-top: 3rem; }
}

/* ============================================================================
   ARCHIVE DUATHLON : sidebar filtres
   ============================================================================ */

.duathlete-archive-sidebar {
    position: sticky;
    top: 130px;
    align-self: start;
}

.duathlete-filters {
    background: var(--creme);
    border: 3px solid var(--noir);
    padding: 1.5rem;
}
.duathlete-filters__title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--noir);
    letter-spacing: -0.02em;
}

.duathlete-filter-group {
    border-bottom: 1px solid var(--gris-tres-clair);
    padding: 0.75rem 0;
}
.duathlete-filter-group:last-of-type { border-bottom: none; }
.duathlete-filter-group summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.duathlete-filter-group summary::-webkit-details-marker { display: none; }
.duathlete-filter-group summary::after {
    content: '+';
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}
.duathlete-filter-group[open] summary::after { content: '−'; }
.duathlete-filter-group ul {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 280px;
    overflow-y: auto;
}
.duathlete-filter-group li label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0;
}
.duathlete-filter-group li a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--noir);
    padding: 0.25rem 0;
    transition: color 0.15s;
}
.duathlete-filter-group li a:hover { color: var(--orange); }
.duathlete-filter-group input[type="checkbox"] {
    accent-color: var(--orange);
    width: 16px;
    height: 16px;
}

.duathlete-filters__reset {
    margin-top: 1.5rem;
    width: 100%;
    background: var(--noir);
    color: var(--creme);
    border: none;
    padding: 0.7rem 1rem;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.15s;
}
.duathlete-filters__reset:hover {
    background: var(--jaune-fluo);
    color: var(--noir);
}

@media (max-width: 1024px) {
    .duathlete-archive-sidebar { position: static; }
}

/* ============================================================================
   ARTICLE (single post) : hero crème, meta, layout, sidebar
   ============================================================================ */

.duathlete-article-hero__breadcrumbs {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gris-moyen);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.duathlete-article-hero__breadcrumbs a:hover { color: var(--orange); }
.duathlete-article-hero__breadcrumbs .sep { color: var(--orange); margin: 0 0.5rem; }

.duathlete-article-title em {
    font-style: italic;
    color: var(--orange);
}

.duathlete-article-meta {
    gap: 1rem !important;
    align-items: center;
}
.duathlete-article-meta a { color: var(--noir); }
.duathlete-article-meta a:hover { color: var(--orange); }

.duathlete-article-aside {
    position: sticky;
    top: 130px;
    align-self: start;
}

@media (max-width: 1024px) {
    .duathlete-article-aside { position: static; margin-top: 3rem; }
}

/* ============================================================================
   PILIER (category) : aside sticky, popular list
   ============================================================================ */

.duathlete-pilier-aside {
    position: sticky;
    top: 130px;
    align-self: start;
}

.duathlete-popular-list .wp-block-post {
    counter-increment: pop;
}
.duathlete-popular-list .wp-block-post::before {
    content: counter(pop, decimal-leading-zero);
    font-family: var(--serif);
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    margin-right: 0.85rem;
    flex-shrink: 0;
    min-width: 1.75rem;
}
.duathlete-popular-list { counter-reset: pop; }
.duathlete-popular-list .wp-block-post {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.duathlete-popular-list .wp-block-post-title {
    flex: 1;
}
.duathlete-popular-list .wp-block-post-title a {
    color: var(--noir);
}
.duathlete-popular-list .wp-block-post-title a:hover {
    color: var(--orange);
}

@media (max-width: 1024px) {
    .duathlete-pilier-aside { position: static; margin-top: 3rem; }
}

/* ============================================================================
   TAXONOMIE RÉGION : grille autres régions
   ============================================================================ */

.duathlete-region-intro__text {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gris-fonce);
}
.duathlete-region-intro__text p:first-child {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--noir);
    background: var(--jaune-fluo);
    border-left: 6px solid var(--noir);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.duathlete-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border-left: 2px solid var(--jaune-fluo);
    border-top: 2px solid var(--jaune-fluo);
}
.duathlete-region-card {
    background: var(--noir-doux);
    color: var(--creme);
    border-right: 2px solid var(--jaune-fluo);
    border-bottom: 2px solid var(--jaune-fluo);
    padding: 1.5rem;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
}
.duathlete-region-card:hover {
    background: var(--jaune-fluo);
    color: var(--noir);
    transform: translate(-3px, -3px);
}
.duathlete-region-card--current {
    background: var(--orange);
    color: var(--creme);
}
.duathlete-region-card--current:hover {
    background: var(--jaune-fluo);
    color: var(--noir);
}
.duathlete-region-card__name {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.duathlete-region-card__count {
    font-size: 0.85rem;
    color: var(--gris-clair);
    font-weight: 600;
}
.duathlete-region-card:hover .duathlete-region-card__count { color: var(--noir); }
.duathlete-region-card--current .duathlete-region-card__count { color: var(--creme-fonce); }

/* ============================================================================
   NAVIGATION : sous-menu Calendrier (style hover cohérent avec l'identité)
   ============================================================================ */

.wp-block-navigation .wp-block-navigation__submenu-container {
    background: var(--noir);
    color: var(--creme);
    border: 2px solid var(--jaune-fluo);
    box-shadow: 4px 4px 0 var(--jaune-fluo);
    min-width: 200px;
    padding: 0.5rem 0;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-link a,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a {
    color: var(--creme);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-link a:hover,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
    background: var(--jaune-fluo);
    color: var(--noir);
}

/* Le caret du parent "Calendrier" (small triangle indiquant un sous-menu) */
.wp-block-navigation-submenu__toggle {
    color: inherit;
}

/* ============================================================================
   GALERIE LOGOS : marquee infini avec tuiles blanches sur fond noir
   ============================================================================ */

.duathlete-logos-galerie {
    /* Le padding et background viennent inline du PHP */
    position: relative;
}

/* Viewport : zone visible du marquee. Overflow caché pour masquer ce qui dépasse. */
.duathlete-logos-galerie__viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Effet de fondu sur les bords gauche/droite (le bandeau s'estompe au bord) */
.duathlete-logos-galerie__viewport::before,
.duathlete-logos-galerie__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}
.duathlete-logos-galerie__viewport::before {
    left: 0;
    background: linear-gradient(to right, var(--noir), transparent);
}
.duathlete-logos-galerie__viewport::after {
    right: 0;
    background: linear-gradient(to left, var(--noir), transparent);
}

/* Track : la "bande" qui défile. Animation infinie translateX. */
.duathlete-logos-galerie__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: duathlete-marquee 60s linear infinite;
    will-change: transform;
}

/* Pause au survol pour confort de lecture */
.duathlete-logos-galerie:hover .duathlete-logos-galerie__track {
    animation-play-state: paused;
}

/* Tuile individuelle : fond blanc, logo ou wordmark à l'intérieur */
.duathlete-logos-galerie__tuile {
    background: white;
    flex-shrink: 0;
    width: 200px;
    height: 110px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-decoration: none;
    transition: transform 0.2s ease-out;
}

.duathlete-logos-galerie__tuile:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 4px 4px 0 var(--jaune-fluo);
}

.duathlete-logos-galerie__tuile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Fallback wordmark : nom de l'épreuve en serif avec sigle de discipline */
.duathlete-logos-galerie__tuile--wordmark {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
}

.duathlete-logos-galerie__wordmark-sigle {
    font-family: var(--serif);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--noir);
    opacity: 0.5;
}

.duathlete-logos-galerie__wordmark {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--noir);
    text-align: center;
    /* Tronquer si trop long */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animation marquee : translation infinie de -50% (taille de la 1re moitié des tuiles dupliquées) */
@keyframes duathlete-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Respect des préférences réduit-mouvement */
@media (prefers-reduced-motion: reduce) {
    .duathlete-logos-galerie__track {
        animation: none;
    }
    .duathlete-logos-galerie__viewport {
        overflow-x: auto;
    }
}

/* Responsive : tuiles plus petites sur mobile */
@media (max-width: 768px) {
    .duathlete-logos-galerie__tuile {
        width: 140px;
        height: 80px;
        padding: 0.75rem;
    }
    .duathlete-logos-galerie__track {
        gap: 1rem;
        animation-duration: 45s;
    }
    .duathlete-logos-galerie__wordmark {
        font-size: 0.8rem;
    }
}

/* ============================================================================
   ARCHIVE DISCIPLINE : grille colorée par discipline + sigle visible
   ============================================================================ */

.duathlete-disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    border-left: 2px solid var(--jaune-fluo);
    border-top: 2px solid var(--jaune-fluo);
}
.duathlete-discipline-card {
    border-right: 2px solid var(--jaune-fluo);
    border-bottom: 2px solid var(--jaune-fluo);
    padding: 1.75rem 1.5rem;
    transition: all 0.15s ease-out;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}
.duathlete-discipline-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--jaune-fluo);
    text-decoration: none;
}
.duathlete-discipline-card--current {
    outline: 3px solid var(--jaune-fluo);
    outline-offset: -3px;
}
.duathlete-discipline-card--current::before {
    content: "★";
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    color: var(--jaune-fluo);
    font-size: 1.1rem;
    line-height: 1;
}
.duathlete-discipline-card__sigle {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}
.duathlete-discipline-card__name {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}
.duathlete-discipline-card__count {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero discipline : adjustments pour fonds colorés */
.duathlete-hero--discipline .duathlete-stats {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.duathlete-hero--discipline .duathlete-stat__big {
    font-family: var(--serif);
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}
.duathlete-hero--discipline .duathlete-stat__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-top: 0.4rem;
}

/* Section "prochaines épreuves" sur taxonomy-discipline : même esthétique que region */
.duathlete-discipline-races .duathlete-section-divider__title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

@media (max-width: 768px) {
    .duathlete-disciplines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .duathlete-discipline-card__sigle {
        font-size: 2rem;
    }
    .duathlete-discipline-card__name {
        font-size: 1.2rem;
    }
    .duathlete-hero--discipline .duathlete-stats {
        gap: 1.5rem;
    }
    .duathlete-hero--discipline .duathlete-stat__big {
        font-size: 2.25rem;
    }
}

/* ============================================================================
   ARCHIVE AUTEUR : hero portrait + bio + stats + piliers
   ============================================================================ */

.duathlete-author-hero__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}
.duathlete-author-hero__portrait {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--orange);
    overflow: hidden;
    border: 3px solid var(--jaune-fluo);
}
.duathlete-author-hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.duathlete-author-hero__sticker {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--jaune-fluo);
    color: var(--noir);
    padding: 0.4rem 0.85rem;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(-3deg);
    z-index: 5;
    border: 2px solid var(--noir);
}

.duathlete-author-hero__info { color: var(--creme); }
.duathlete-author-hero__name {
    margin: 0 0 1rem;
}
.duathlete-author-hero__tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--creme-fonce);
    line-height: 1.4;
    margin: 0 0 2rem;
    max-width: 600px;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gris-fonce);
}
.duathlete-author-hero__bio {
    color: var(--creme-fonce);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 640px;
}
.duathlete-author-hero__bio p { margin: 0 0 0.75rem; }
.duathlete-author-hero__bio strong { color: var(--creme); font-weight: 700; }

.duathlete-author-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0;
    border-top: 2px solid var(--jaune-fluo);
    border-left: 2px solid var(--jaune-fluo);
    margin: 1.75rem 0;
    max-width: 600px;
}
.duathlete-author-stat {
    padding: 1rem;
    border-right: 2px solid var(--jaune-fluo);
    border-bottom: 2px solid var(--jaune-fluo);
}
.duathlete-author-stat__big {
    font-family: var(--serif);
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--jaune-fluo);
    line-height: 1;
}
.duathlete-author-stat__label {
    font-size: 0.7rem;
    color: var(--creme-fonce);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 0.4rem;
}

.duathlete-author-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.duathlete-author-link {
    background: var(--noir-doux);
    color: var(--creme);
    border: 2px solid var(--gris-fonce);
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s;
}
.duathlete-author-link:hover {
    background: var(--jaune-fluo);
    color: var(--noir);
    border-color: var(--jaune-fluo);
}

.duathlete-pilier-pill {
    background: var(--creme);
    color: var(--noir);
    border: 2px solid var(--noir);
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.15s;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}
.duathlete-pilier-pill:hover {
    background: var(--jaune-fluo);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--noir);
}
.duathlete-pilier-pill__count {
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .duathlete-author-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================================
   RECHERCHE : suggestion chips
   ============================================================================ */

.duathlete-suggestion-chip {
    background: var(--noir-doux);
    color: var(--creme);
    border: 2px solid var(--gris-fonce);
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.15s;
}
.duathlete-suggestion-chip:hover {
    background: var(--jaune-fluo);
    color: var(--noir);
    border-color: var(--jaune-fluo);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--orange);
}

/* ============================================================================
   AFFICHE COURSE : variante avec image de fond
   ============================================================================ */

/* Quand une image est présente : on force le conteneur à garder son ratio
   3/4 (pas d'expansion en hauteur), on injecte une <img> en absolute qui
   remplit exactement la zone, et on lui applique un filter MASSIF pour la
   transformer en simple ambiance neutralisée.
   La spécificité du sélecteur (.duathlete-affiche--has-image .duathlete-affiche__bg-image)
   garantit que le filter ne sera pas écrasé par le CSS générique de WP. */
.duathlete-affiche--has-image {
    border-color: var(--noir);
    isolation: isolate;
    overflow: hidden;
    /* On garde l'aspect-ratio 3/4 hérité du .duathlete-affiche de base.
       On force juste les propriétés qui pourraient être écrasées. */
    background: var(--creme);
}

/* L'image de fond : <img> en absolute qui remplit le conteneur, avec object-fit
   pour conserver les proportions sans déformer, et filter dosé pour rendre l'image
   perceptible mais sans qu'elle entre en conflit avec le contenu HTML par-dessus. */
.duathlete-affiche--has-image .duathlete-affiche__bg-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    /* Filtre dosé : blur léger + désaturation modérée + assombrissement raisonnable
       pour transformer une affiche chargée en simple ambiance, tout en laissant
       deviner les couleurs dominantes. */
    filter: blur(6px) saturate(0.7) brightness(0.65) contrast(0.95) !important;
    transform: scale(1.08) !important;
    display: block !important;
    border: 0 !important;
}

/* Voile coloré supplémentaire (noir vers orange brûlé SoFoot) plus léger
   pour ne pas tout noircir. */
.duathlete-affiche__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.35) 0%,
        rgba(10, 10, 10, 0.45) 50%,
        rgba(216, 91, 44, 0.25) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Le contenu doit passer au-dessus de l'overlay et de l'image */
.duathlete-affiche__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
}

/* Couleurs inversées quand l'image est présente */
.duathlete-affiche--has-image .duathlete-affiche__year,
.duathlete-affiche--has-image .duathlete-affiche__name,
.duathlete-affiche--has-image .duathlete-affiche__loc {
    color: var(--creme);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.duathlete-affiche--has-image .duathlete-affiche__year {
    color: var(--creme-fonce);
    letter-spacing: 0.4em;
    opacity: 0.85;
}

.duathlete-affiche--has-image .duathlete-affiche__date {
    color: var(--jaune-fluo);
    text-shadow: 4px 4px 0 var(--noir), 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Le mois ("MAI") doit aussi passer en clair sur fond sombre, sinon il devient
   invisible. On le met crème avec une légère ombre noire pour le détacher. */
.duathlete-affiche--has-image .duathlete-affiche__month {
    color: var(--creme);
    text-shadow: 2px 2px 0 var(--noir), 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* La double bordure intérieure se voit moins bien sur image, on l'allège. */
.duathlete-affiche--has-image::before {
    border-color: rgba(245, 241, 232, 0.3);
    z-index: 1;
}

/* CTA : on garde noir + jaune mais on lui met un border crème pour ressortir. */
.duathlete-affiche--has-image .duathlete-affiche__cta {
    border-color: var(--jaune-fluo);
    background: var(--noir);
}

/* ============================================================================
   IMAGE FEATURED ARTICLE : forcer ratio paysage 21/9 cover, identique sur tous
   les écrans (desktop ET mobile), pour éviter les images portrait étirées.
   ============================================================================ */
.duathlete-article-featured .wp-block-post-featured-image {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}
.duathlete-article-featured .wp-block-post-featured-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
}

/* Sur mobile, on garde le même ratio paysage. Aucune raison de changer la
   composition selon la taille d'écran : la photo reste une photo. */
@media (max-width: 768px) {
    .duathlete-article-featured .wp-block-post-featured-image {
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================================
   CHALLENGE NATIONAL GRID : mini-posters façon affiche home en réduit
   ============================================================================ */

.duathlete-challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
    margin: 3rem 0 0;
}

@media (max-width: 980px) {
    .duathlete-challenge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}
@media (max-width: 600px) {
    .duathlete-challenge-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Carte mini-poster, version réduite de l'affiche principale */
.duathlete-mini-poster {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--creme);
    border: 3px solid var(--noir);
    padding: 2rem 1.25rem 1.25rem;
    box-shadow: 5px 5px 0 var(--orange), 10px 10px 0 var(--jaune-fluo);
    text-decoration: none;
    color: var(--noir);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    aspect-ratio: 4 / 5;
    text-align: center;
    overflow: visible;
}
.duathlete-mini-poster:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--orange), 13px 13px 0 var(--jaune-fluo);
}
.duathlete-mini-poster::before {
    content: '';
    position: absolute;
    inset: 0.6rem;
    border: 1.5px solid var(--noir);
    pointer-events: none;
}

/* Sticker Challenge National en haut à droite (rouge, comme l'affiche) */
.duathlete-mini-poster__sticker {
    position: absolute;
    top: -0.7rem;
    right: -0.7rem;
    background: var(--rouge-sang);
    color: var(--creme);
    padding: 0.35rem 0.8rem;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: rotate(6deg);
    z-index: 5;
    border: 2px solid var(--noir);
    box-shadow: 2px 2px 0 var(--noir);
    white-space: nowrap;
}

/* Date : jour grand jaune fluo + mois noir comme l'affiche principale */
.duathlete-mini-poster__date {
    margin-top: 0.5rem;
    line-height: 0.95;
}
.duathlete-mini-poster__jour {
    display: block;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--jaune-fluo);
    text-shadow: 3px 3px 0 var(--noir);
    line-height: 0.9;
}
.duathlete-mini-poster__mois {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--noir);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 900;
    margin-top: 0.25rem;
}

/* Nom de l'épreuve : serif italic, contraste fort */
.duathlete-mini-poster__name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.2;
    color: var(--noir);
    padding: 0.5rem 0;
    margin: 0.5rem 0;
}

/* Meta : format chip + ville */
.duathlete-mini-poster__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.duathlete-mini-poster__format {
    display: inline-block;
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.duathlete-mini-poster__loc {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--gris-fonce);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* CTA en bas façon "voir la fiche" mais discret */
.duathlete-mini-poster__cta {
    background: var(--noir);
    color: var(--jaune-fluo);
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: auto;
}
