/*
 Theme Name:   Hello Elementor Child - OFAC
 Theme URI:    https://ofac.maxllegi.com
 Description:  Thème enfant de Hello Elementor pour l'Organisation Française Autocross Sprint Car (OFAC)
 Author:       OFAC / MaxLlegi
 Author URI:   https://ofac.maxllegi.com
 Template:     hello-elementor
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hello-elementor-child-ofac
 Tags:         autocross, sprint car, motorsport, ofac
*/

/* ============================================================
   OFAC CHILD THEME - Variables & Base
   ============================================================ */

:root {
    --ofac-blue:    #003DA5;
    --ofac-red:     #E30613;
    --ofac-black:   #0a0a0a;
    --ofac-white:   #ffffff;
    --ofac-gray:    #f4f4f4;
    --ofac-gray-dark: #333333;
    --ofac-teal:    #00B4A0;
    --ofac-border:  #e0e0e0;
    --ofac-font-heading: 'Montserrat', sans-serif;
    --ofac-font-body:    'Open Sans', sans-serif;
}

body {
    font-family: var(--ofac-font-body);
    color: var(--ofac-gray-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ofac-font-heading);
}

/* ============================================================
   OFAC GRILLE - Page liste des événements
   ============================================================ */

.ofac-grille-section {
    padding: 60px 0;
    background: #fff;
}

.ofac-grille-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Carte événement */
.ofac-grille-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ofac-grille-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.ofac-grille-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}

.ofac-grille-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ofac-grille-card:hover .ofac-grille-card__image-wrap img {
    transform: scale(1.04);
}

.ofac-grille-card__body {
    padding: 0;
}

.ofac-grille-card__actions {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--ofac-border);
}

.ofac-grille-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    font-family: var(--ofac-font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.ofac-grille-card__btn--info {
    background: #f8f0f0;
    color: var(--ofac-red);
    border-right: 1px solid var(--ofac-border);
}

.ofac-grille-card__btn--info:hover {
    background: var(--ofac-red);
    color: #fff;
}

.ofac-grille-card__btn--ticket {
    background: #f8f0f0;
    color: var(--ofac-red);
}

.ofac-grille-card__btn--ticket:hover {
    background: var(--ofac-red);
    color: #fff;
}

.ofac-grille-card__btn svg,
.ofac-grille-card__btn .ofac-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================================
   OFAC SINGLE ÉVÉNEMENT - Page détail
   ============================================================ */

.ofac-single-evenement {
    background: #fff;
}

/* Hero banner */
.ofac-single-hero {
    position: relative;
    background: var(--ofac-black);
    padding: 50px 0 40px;
    overflow: hidden;
}

.ofac-single-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.ofac-single-hero__circuit-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 12px;
}

.ofac-single-hero__circuit-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ofac-single-hero__info {
    color: #fff;
}

.ofac-single-hero__title {
    font-family: var(--ofac-font-heading);
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.1;
}

.ofac-single-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ofac-single-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    background: rgba(255,255,255,0.08);
    padding: 8px 16px;
    border-radius: 3px;
}

.ofac-single-hero__news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ofac-teal);
    color: #fff;
    font-family: var(--ofac-font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 3px;
    transition: background 0.2s;
}

.ofac-single-hero__news-btn:hover {
    background: #009080;
    color: #fff;
}

/* Banner image */
.ofac-single-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.ofac-single-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Main content layout */
.ofac-single-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.ofac-single-sidebar {}

.ofac-sidebar-block {
    margin-bottom: 12px;
}

.ofac-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9f0f0;
    color: var(--ofac-red);
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 4px;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}

.ofac-sidebar-btn:hover {
    background: var(--ofac-red);
    color: #fff;
}

.ofac-tarifs-block {
    background: #fff;
    border: 1px solid var(--ofac-border);
    border-radius: 4px;
    padding: 28px 24px;
    margin-top: 20px;
}

.ofac-tarifs-block h3 {
    font-family: var(--ofac-font-heading);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--ofac-black);
}

.ofac-tarifs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ofac-tarifs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--ofac-border);
    font-size: 15px;
}

.ofac-tarifs-list li:last-child {
    border-bottom: none;
}

.ofac-tarif-label {
    color: var(--ofac-gray-dark);
}

.ofac-tarif-price {
    font-family: var(--ofac-font-heading);
    font-weight: 700;
    color: var(--ofac-black);
}

/* Main description area */
.ofac-single-main {}

.ofac-single-main h2 {
    font-family: var(--ofac-font-heading);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--ofac-black);
}

.ofac-single-main p {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 20px;
}

.ofac-single-main strong {
    color: var(--ofac-black);
    font-weight: 700;
}

/* Infos pratiques */
.ofac-infos-pratiques {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--ofac-border);
}

.ofac-infos-pratiques p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.ofac-infos-pratiques strong {
    color: var(--ofac-black);
}

/* Galerie photos */
.ofac-galerie-section {
    background: var(--ofac-red);
    padding: 60px 0;
}

.ofac-galerie-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ofac-galerie-section h2 {
    font-family: var(--ofac-font-heading);
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 32px;
}

.ofac-galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ofac-galerie-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.ofac-galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ofac-galerie-item:hover img {
    transform: scale(1.06);
}

.ofac-galerie-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ofac-galerie-item:hover .ofac-galerie-overlay {
    opacity: 1;
}

.ofac-galerie-overlay svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

/* Lightbox */
.ofac-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ofac-lightbox.active {
    display: flex;
}

.ofac-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
}

.ofac-lightbox__close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    background: none;
    border: none;
    padding: 0;
}

.ofac-lightbox__prev,
.ofac-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 16px;
    font-weight: 300;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ofac-lightbox__prev:hover,
.ofac-lightbox__next:hover {
    opacity: 1;
}

.ofac-lightbox__prev { left: 10px; }
.ofac-lightbox__next { right: 10px; }

/* Map section */
.ofac-map-section {
    width: 100%;
    height: 380px;
}

.ofac-map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Hero archive banner */
.ofac-archive-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ofac-archive-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
}

.ofac-archive-hero__title {
    position: relative;
    color: #fff;
    font-family: var(--ofac-font-heading);
    font-size: 52px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Fil d'ariane */
.ofac-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 14px;
    color: #888;
}

.ofac-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.ofac-breadcrumb a:hover {
    color: var(--ofac-red);
}

.ofac-breadcrumb span {
    margin: 0 8px;
}

/* ============================================================
   OFAC CARD - Nouveau design cartes (événements)
   ============================================================ */

.ofac-evenements-section {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.ofac-evenements-section__title {
    font-family: var(--ofac-font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 32px;
}

/* Grille & wrapper */
.ofac-grid-wrapper {
    position: relative;
}

.ofac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.ofac-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.ofac-card__top {
    position: relative;
    overflow: hidden;
}

.ofac-card__photo {
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.ofac-card__photo--placeholder {
    background: var(--ofac-gray);
}

.ofac-card__top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(27,63,139,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ofac-card__logo-ring {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 10px rgba(255,255,255,0.75), 0 0 0 11px rgba(210,210,210,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    transition: box-shadow 0.3s ease;
}

.ofac-card__logo-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ofac-card__body {
    padding: 56px 20px 22px;
    text-align: center;
}

.ofac-card__title {
    font-family: var(--ofac-font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.ofac-card__date {
    font-family: var(--ofac-font-heading);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ofac-card__actions {
    display: flex;
    gap: 10px;
}

.ofac-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--ofac-font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 12px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease;
}

.ofac-card__btn--ghost {
    background: #ebebeb;
    color: #1B3F8B;
}

.ofac-card__btn--ticket {
    background: #fce8e8;
    color: #E92733;
}

/* Hover desktop */
@media (min-width: 901px) {
    .ofac-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    }
    .ofac-card:hover .ofac-card__photo {
        transform: scale(1.05);
    }
    .ofac-card:hover .ofac-card__top::after {
        opacity: 1;
    }
    .ofac-card:hover .ofac-card__logo-ring {
        box-shadow: 0 0 0 10px rgba(255,255,255,0.9), 0 0 0 12px rgba(27,63,139,0.25);
    }
    .ofac-card:hover .ofac-card__title {
        color: #1B3F8B;
    }
    .ofac-card:hover .ofac-card__btn--ghost {
        background: #1B3F8B;
        color: #fff;
    }
    .ofac-card:hover .ofac-card__btn--ticket {
        background: #E92733;
        color: #fff;
    }
}

/* Mobile slider */
@media (max-width: 900px) {
    .ofac-grid-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .ofac-grid-wrapper::-webkit-scrollbar { display: none; }

    .ofac-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        padding: 12px 4px 4px;
        width: max-content;
    }

    .ofac-card {
        width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

@media (max-width: 580px) {
    .ofac-card { width: 260px; }
    .ofac-evenements-section__title { font-size: 24px; }
}

/* ============================================================
   ÉVÉNEMENTS PASSÉS - Liste horizontale
   ============================================================ */

.ofac-passes-section {
    padding: 40px 0 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.ofac-passes-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ofac-border);
}

.ofac-passes-section__title {
    font-family: var(--ofac-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0;
}

.ofac-passes-filters {
    display: flex;
    gap: 12px;
}

.ofac-passes-filter {
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--ofac-gray-dark);
    padding: 8px 16px;
    border: 1px solid var(--ofac-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

/* Item liste */
.ofac-passes-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ofac-border);
    transition: opacity 0.3s;
}

.ofac-passes-item.ofac-passes-hidden {
    display: none;
}

.ofac-passes-item__image {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.ofac-passes-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ofac-passes-item__logo {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ofac-passes-item__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ofac-passes-item__info {
    flex: 1;
    min-width: 0;
    padding-left: 16px;
}

.ofac-passes-item__title {
    font-family: var(--ofac-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--ofac-black);
    margin: 0 0 4px;
}

.ofac-passes-item__date {
    font-family: var(--ofac-font-heading);
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ofac-passes-item__action {
    flex-shrink: 0;
}

.ofac-passes-item__action .ofac-card__btn {
    flex: none;
    white-space: nowrap;
}

/* Load more */
.ofac-passes-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: var(--ofac-gray);
    border: none;
    border-radius: 6px;
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--ofac-red);
    cursor: pointer;
    transition: background 0.2s;
}

.ofac-passes-loadmore:hover {
    background: #e8e8e8;
}

.ofac-passes-loadmore svg {
    color: var(--ofac-red);
}

/* Responsive passes */
@media (max-width: 768px) {
    .ofac-passes-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .ofac-passes-item__image {
        width: 100%;
        min-width: 100%;
        height: 160px;
    }

    .ofac-passes-item__info {
        padding-left: 0;
    }

    .ofac-passes-item__action {
        width: 100%;
    }

    .ofac-passes-item__action .ofac-card__btn {
        width: 100%;
        justify-content: center;
    }

    .ofac-passes-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ofac-passes-section__title {
        font-size: 22px;
    }
}

/* ============================================================
   SHORTCODE - Carousel Manches (accueil)
   ============================================================ */

.ofac-carousel-wrap {
    position: relative;
    overflow: hidden;
}

.ofac-carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.ofac-carousel-card {
    min-width: calc(33.333% - 16px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.ofac-carousel-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ofac-carousel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ofac-carousel-card__circuit-logo {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ofac-carousel-card__circuit-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ofac-carousel-card__body {
    padding: 48px 20px 20px;
    text-align: center;
}

.ofac-carousel-card__title {
    font-family: var(--ofac-font-heading);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
}

.ofac-carousel-card__date {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    display: block;
}

.ofac-carousel-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ofac-carousel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--ofac-font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.ofac-carousel-btn--info {
    background: #f8f0f0;
    color: var(--ofac-red);
}

.ofac-carousel-btn--info:hover {
    background: var(--ofac-red);
    color: #fff;
}

.ofac-carousel-btn--ticket {
    background: #f8f0f0;
    color: var(--ofac-red);
}

.ofac-carousel-btn--ticket:hover {
    background: var(--ofac-red);
    color: #fff;
}

.ofac-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--ofac-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.ofac-carousel-nav:hover { background: #b5000f; }
.ofac-carousel-nav--prev { left: -22px; }
.ofac-carousel-nav--next { right: -22px; }

/* ============================================================
   SECTION CIRCUIT - Page single
   ============================================================ */

.ofac-circuit-section {
    border-top: 1px solid var(--ofac-border);
    padding: 50px 0;
}

.ofac-circuit-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.ofac-circuit-info__title {
    font-family: var(--ofac-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 24px;
}

.ofac-circuit-info__details {
    display: flex;
    gap: 40px;
}

.ofac-circuit-info__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ofac-circuit-info__label {
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ofac-gray-dark);
}

.ofac-circuit-info__value {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.ofac-circuit-parcours {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ofac-circuit-parcours img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ofac-circuit-parcours__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--ofac-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ofac-circuit-parcours__placeholder span {
    font-family: var(--ofac-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #bbb;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   SECTION CAROUSEL ÉVÉNEMENTS - Page single
   ============================================================ */

.ofac-carousel-section {
    padding: 50px 0;
    background: #fff;
}

.ofac-carousel-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ofac-carousel-section h2 {
    font-family: var(--ofac-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 32px;
}

/* ============================================================
   GALERIE VIDÉOS
   ============================================================ */

.ofac-galvideo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.ofac-galvideo-group {
    margin-bottom: 48px;
}

.ofac-galvideo-group__title {
    font-family: var(--ofac-font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 20px;
}

.ofac-galvideo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Video card */
.ofac-galvideo-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.ofac-galvideo-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
}

.ofac-galvideo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 16px;
    transition: background 0.3s;
}

.ofac-galvideo-card:hover .ofac-galvideo-card__overlay {
    background: rgba(0,0,0,0.5);
}

.ofac-galvideo-card__title {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ofac-galvideo-card__play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ofac-galvideo-card__play svg {
    width: 18px;
    height: 18px;
    margin-left: 3px;
}

.ofac-galvideo-card:hover .ofac-galvideo-card__play {
    background: var(--ofac-red);
    border-color: var(--ofac-red);
}

/* Plus de vidéos */
.ofac-galvideo-more {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--ofac-border);
}

.ofac-galvideo-more__title {
    font-family: var(--ofac-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ofac-galvideo-more__text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
}

.ofac-galvideo-more__btn {
    display: inline-block;
    background: var(--ofac-red);
    color: #fff;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.ofac-galvideo-more__btn:hover {
    background: #c4050f;
    color: #fff;
}

/* Video modal */
.ofac-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ofac-video-modal.active {
    display: flex;
}

.ofac-video-modal__close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    font-weight: 300;
    z-index: 10;
}

.ofac-video-modal__wrap {
    width: 90vw;
    max-width: 960px;
    aspect-ratio: 16/9;
}

.ofac-video-modal__wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

/* ============================================================
   GALERIE PHOTOS - Page albums
   ============================================================ */

.ofac-galphoto-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.ofac-galphoto-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ofac-galphoto-filters__label {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.ofac-galphoto-filter {
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 28px 7px 10px;
    background: #fff;
    cursor: pointer;
    margin-right: 12px;
}

.ofac-galphoto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Album card */
.ofac-galphoto-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.ofac-galphoto-card__image {
    position: relative;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.ofac-galphoto-card:hover .ofac-galphoto-card__image {
    transform: scale(1.02);
}

.ofac-galphoto-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.ofac-galphoto-card__year {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--ofac-font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,180,160,0.85);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.ofac-galphoto-card__year svg {
    width: 12px;
    height: 12px;
}

.ofac-galphoto-card__title {
    font-family: var(--ofac-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Plus de photos */
.ofac-galphoto-more {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--ofac-border);
}

.ofac-galphoto-more__title {
    font-family: var(--ofac-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ofac-galphoto-more__text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
}

.ofac-galphoto-more__btn {
    display: inline-block;
    background: var(--ofac-red);
    color: #fff;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.ofac-galphoto-more__btn:hover {
    background: #c4050f;
    color: #fff;
}

/* ============================================================
   ACTUALITÉS - Grille cartes sombres
   ============================================================ */

.ofac-actu-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.ofac-actu-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.ofac-actu-filters__label {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.ofac-actu-filter {
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 28px 7px 10px;
    background: #fff;
    cursor: pointer;
}

.ofac-actu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Carte sombre */
.ofac-actu-card.ofac-actu-hidden {
    display: none;
}

.ofac-actu-card__link {
    text-decoration: none;
    display: block;
}

.ofac-actu-card__image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.ofac-actu-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 10%, rgba(0,0,0,0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: background 0.3s;
}

.ofac-actu-card__link:hover .ofac-actu-card__overlay {
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
}

.ofac-actu-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ofac-actu-card__date {
    font-family: var(--ofac-font-heading);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ofac-actu-card__cat {
    font-family: var(--ofac-font-heading);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ofac-actu-card__title {
    font-family: var(--ofac-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 14px;
}

.ofac-actu-card__btn {
    display: inline-block;
    background: var(--ofac-red);
    color: #fff;
    font-family: var(--ofac-font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: none;
    transition: background 0.2s;
    align-self: flex-start;
}

.ofac-actu-card__link:hover .ofac-actu-card__btn {
    background: #c4050f;
}

/* Load more */
.ofac-actu-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 32px auto 0;
    padding: 14px 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--ofac-red);
    cursor: pointer;
    transition: background 0.2s;
}

.ofac-actu-loadmore:hover {
    background: #fef5f5;
}

.ofac-actu-loadmore svg {
    color: var(--ofac-red);
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */

.ofac-single-article {
    background: #fff;
}

/* Hero */
.ofac-single-article-hero {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--ofac-black);
    overflow: hidden;
}

.ofac-single-article-hero::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: inherit;
    filter: blur(8px) brightness(0.4);
    z-index: 0;
}

.ofac-single-article-hero__overlay {
    position: relative;
    z-index: 1;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.5) 100%);
}

.ofac-single-article-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    width: 100%;
}

.ofac-single-article-hero__title {
    font-family: var(--ofac-font-heading);
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
    max-width: 800px;
}

.ofac-single-article-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ofac-single-article-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.ofac-single-article-hero__date svg {
    color: rgba(255,255,255,0.6);
}

.ofac-single-article-hero__cat {
    font-family: var(--ofac-font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Featured image - chevauche le hero */
.ofac-single-article-featured {
    max-width: 900px;
    margin: -60px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.ofac-single-article-featured img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Content */
.ofac-single-article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.ofac-single-article-content h2,
.ofac-single-article-content h3,
.ofac-single-article-content h4 {
    font-family: var(--ofac-font-heading);
    font-weight: 700;
    color: var(--ofac-black);
    margin-top: 32px;
    margin-bottom: 12px;
}

.ofac-single-article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.ofac-single-article-content strong {
    color: var(--ofac-black);
}

.ofac-single-article-content blockquote {
    border-left: 4px solid var(--ofac-red);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--ofac-gray);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}

.ofac-single-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Dernières actualités */
.ofac-dernieres-actus {
    padding: 60px 0;
    background: #fff;
}

.ofac-dernieres-actus__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ofac-dernieres-actus h2 {
    font-family: var(--ofac-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 28px;
}

.ofac-dernieres-actus__link {
    display: block;
    width: fit-content;
    margin: 32px auto 0;
    padding: 14px 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--ofac-red);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.ofac-dernieres-actus__link:hover {
    background: #fef5f5;
}

/* ============================================================
   PAGE PILOTES - Grille
   ============================================================ */

.ofac-pilotes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.ofac-pilotes-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.ofac-pilotes-toolbar__label {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.ofac-pilotes-filters-form {
    display: flex;
    gap: 10px;
}

.ofac-pilotes-filter {
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 28px 7px 10px;
    background: #fff;
    cursor: pointer;
}

.ofac-pilotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Carte pilote */
.ofac-pilote-card {
    overflow: hidden;
}

.ofac-pilote-card__photo {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.ofac-pilote-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ofac-pilote-card__photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--ofac-gray);
}

.ofac-pilote-card__avatar {
    position: absolute;
    bottom: -28px;
    left: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    background: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.ofac-pilote-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ofac-pilote-card__info {
    padding: 36px 0 8px;
}

.ofac-pilote-card__name {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--ofac-black);
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ofac-pilote-card__numero {
    font-weight: 800;
    color: var(--ofac-black);
}

.ofac-pilote-flag {
    font-size: 16px;
    line-height: 1;
}

.ofac-pilote-card__team {
    font-family: var(--ofac-font-body);
    font-size: 13px;
    color: #888;
    margin: 0;
}

.ofac-pilote-card__car {
    font-family: var(--ofac-font-body);
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

/* Pagination */
.ofac-pilotes-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.ofac-pilotes-pagination ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.ofac-pilotes-pagination li {
    margin: 0;
}

.ofac-pilotes-pagination a,
.ofac-pilotes-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.ofac-pilotes-pagination a {
    background: #f4f4f4;
    color: #333;
}

.ofac-pilotes-pagination a:hover {
    background: var(--ofac-red);
    color: #fff;
}

.ofac-pilotes-pagination span.current {
    background: var(--ofac-red);
    color: #fff;
}

.ofac-pilotes-pagination .prev a,
.ofac-pilotes-pagination .next a {
    background: var(--ofac-red);
    color: #fff;
    font-size: 18px;
}

.ofac-pilotes-pagination .prev a:hover,
.ofac-pilotes-pagination .next a:hover {
    background: #c4050f;
}

/* ============================================================
   CLASSEMENT PILOTES
   ============================================================ */

.ofac-classement-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Toolbar */
.ofac-cls-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 2rem;
    gap: 12px;
    flex-wrap: wrap;
}

.ofac-cls-tabs {
    display: flex;
    gap: 8px;
}

.ofac-cls-tab {
    background: var(--ofac-red);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 6px;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ofac-cls-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ofac-cls-filter-label {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

.ofac-cls-filter {
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 28px 7px 10px;
    background: #fff;
    cursor: pointer;
}

/* Main grid : hero + list */
.ofac-cls-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: stretch;
}

/* Hero 1er place */
.ofac-cls-hero {
    background: var(--ofac-red);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.ofac-cls-hero__rank {
    font-family: var(--ofac-font-heading);
    font-size: 96px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.ofac-cls-hero__avatar-wrap {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 2;
}

.ofac-cls-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ofac-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.ofac-cls-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ofac-cls-hero__info {
    margin-top: auto;
}

.ofac-cls-hero__name {
    font-family: var(--ofac-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}

.ofac-cls-hero__pts {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* List (2-5) */
.ofac-cls-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 10px;
    overflow: hidden;
}

.ofac-cls-row {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    gap: 18px;
    background: #f5f5f5;
    border-radius: 6px;
}

.ofac-cls-row:nth-child(even) { background: #fafafa; }

.ofac-cls-row__rank {
    font-family: var(--ofac-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--ofac-red);
    min-width: 28px;
    text-align: left;
}

.ofac-cls-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d9d9d9;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ofac-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #555;
}

.ofac-cls-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ofac-cls-row__name {
    font-family: var(--ofac-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #111;
    flex: 1;
    text-transform: none;
}

.ofac-cls-row__pts {
    font-family: var(--ofac-font-heading);
    font-size: 14px;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
}

/* See all button */
.ofac-cls-see-all {
    display: block;
    width: fit-content;
    margin: 2.5rem auto 0;
    padding: 13px 36px;
    border: none;
    border-radius: 6px;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--ofac-red);
    background: #ececec;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.ofac-cls-see-all:hover { background: #e0e0e0; }

/* Full list */
.ofac-cls-full-list {
    display: none;
    margin-top: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.ofac-cls-full-list.open { display: block; }
.ofac-cls-full-list .ofac-cls-row { background: #f7f7f7; }
.ofac-cls-full-list .ofac-cls-row:nth-child(even) { background: #fff; }

/* ============================================================
   RÉSULTATS COMPLETS (carrés rouges)
   ============================================================ */

.ofac-resultats-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ofac-resultats-section__title {
    font-family: var(--ofac-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--ofac-black);
    margin: 0 0 32px;
}

.ofac-resultats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ofac-resultat-card {
    background: var(--ofac-red);
    border-radius: 8px;
    padding: 24px 20px;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.ofac-resultat-card:hover {
    background: #c4050f;
    transform: translateY(-2px);
}

.ofac-resultat-card__title {
    font-family: var(--ofac-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

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

@media (max-width: 1024px) {
    .ofac-grille-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ofac-single-content {
        grid-template-columns: 260px 1fr;
        gap: 40px;
    }

    .ofac-carousel-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .ofac-cls-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ofac-cls-filter-label { display: none; }

    .ofac-cls-filters { width: 100%; }
    .ofac-cls-filter { flex: 1; }

    .ofac-cls-main {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ofac-cls-hero {
        border-radius: 10px;
        min-height: 220px;
        padding: 1.5rem;
    }

    .ofac-cls-hero__rank { font-size: 72px; }

    .ofac-cls-hero__avatar-wrap {
        top: 1.5rem;
        right: 1.5rem;
    }

    .ofac-cls-avatar { width: 80px; height: 80px; font-size: 28px; }

    .ofac-resultats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ofac-galvideo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ofac-galphoto-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ofac-actu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ofac-single-article-hero__title {
        font-size: 26px;
    }

    .ofac-single-article-hero {
        min-height: 280px;
    }

    .ofac-pilotes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .ofac-grille-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .ofac-single-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 16px;
    }

    .ofac-single-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ofac-single-hero__title {
        font-size: 28px;
    }

    .ofac-galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ofac-archive-hero__title {
        font-size: 32px;
    }

    .ofac-carousel-card {
        min-width: calc(100% - 0px);
    }

    .ofac-single-banner {
        padding-top: 24px;
    }

    .ofac-circuit-section__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ofac-circuit-info__details {
        flex-direction: column;
        gap: 16px;
    }

    .ofac-circuit-info__title {
        font-size: 22px;
    }

    .ofac-carousel-section {
        padding: 30px 0;
    }

    .ofac-carousel-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .ofac-galerie-grid {
        grid-template-columns: 1fr;
    }

    .ofac-grille-section {
        padding: 30px 0;
    }

    .ofac-cls-hero { padding: 1.2rem; gap: 12px; }
    .ofac-cls-hero__rank { font-size: 48px; }
    .ofac-cls-avatar { width: 64px; height: 64px; }
    .ofac-cls-hero__name { font-size: 16px; }
    .ofac-cls-row { padding: 12px 14px; gap: 10px; }
    .ofac-cls-row__name { font-size: 13px; }
    .ofac-cls-row__pts { font-size: 12px; }
    .ofac-cls-row__avatar { width: 36px; height: 36px; }
    .ofac-cls-see-all { width: 100%; }

    .ofac-resultats-grid {
        grid-template-columns: 1fr;
    }

    .ofac-pilotes-grid {
        grid-template-columns: 1fr;
    }

    .ofac-galvideo-grid {
        grid-template-columns: 1fr;
    }

    .ofac-galphoto-grid {
        grid-template-columns: 1fr;
    }

    .ofac-actu-grid {
        grid-template-columns: 1fr;
    }

    .ofac-single-article-hero__title {
        font-size: 22px;
    }

    .ofac-single-article-hero {
        min-height: 220px;
    }

    .ofac-actu-loadmore {
        width: 100%;
    }
}

/* ============================================================
   HOME — Dernières actualités (bloc rouge)
   ============================================================ */
.ofac-home-actu-section {
    background: var(--ofac-red);
    padding: 3rem 2.5rem;
}

.ofac-home-actu-title {
    font-family: var(--ofac-font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2rem;
}

.ofac-home-actu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2.5rem;
}

.ofac-home-actu-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    background: #222;
}

.ofac-home-actu-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ofac-home-actu-card:hover .ofac-home-actu-img {
    transform: scale(1.05);
}

.ofac-home-actu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    transition: background 0.3s ease;
}

.ofac-home-actu-card:hover .ofac-home-actu-overlay {
    background: rgba(0, 0, 0, 0.68);
}

.ofac-home-actu-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
}

.ofac-home-actu-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ofac-home-actu-date {
    font-family: var(--ofac-font-heading);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ofac-home-actu-tag {
    font-family: var(--ofac-font-heading);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ofac-home-actu-card-title {
    font-family: var(--ofac-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 20px;
}

.ofac-home-actu-btn {
    display: inline-block;
    background: var(--ofac-red);
    color: #fff;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 5px;
    transition: background 0.15s;
}

.ofac-home-actu-card:hover .ofac-home-actu-btn {
    background: #c41f2a;
}

.ofac-home-actu-see-all-wrap {
    text-align: center;
}

.ofac-home-actu-see-all {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 13px 40px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.ofac-home-actu-see-all:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 768px) {
    .ofac-home-actu-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -2.5rem;
        padding: 0 2.5rem;
    }
    .ofac-home-actu-wrapper::-webkit-scrollbar { display: none; }

    .ofac-home-actu-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        width: max-content;
    }

    .ofac-home-actu-card {
        width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .ofac-home-actu-section {
        padding: 2rem 1.25rem;
    }
    .ofac-home-actu-title {
        font-size: 22px;
    }
    .ofac-home-actu-card {
        width: 260px;
    }
    .ofac-home-actu-see-all {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* ============================================================
   HOME — Galerie photos (1 grosse + 2 petites)
   ============================================================ */
.ofac-home-albums-section {
    background: #fff;
    padding: 2.5rem 0;
    width: 90%;
    margin: 0 auto;
}

.ofac-home-albums-title {
    font-family: var(--ofac-font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0 0 1.5rem;
}

.ofac-home-albums-grid {
    display: grid;
    grid-template-columns: 60fr 40fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 560px;
}

.ofac-home-albums-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #222;
}

.ofac-home-albums-card:nth-child(1) {
    grid-row: 1 / 3;
}

.ofac-home-albums-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.ofac-home-albums-card:hover .ofac-home-albums-card__image {
    transform: scale(1.04);
}

.ofac-home-albums-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 18px;
}

.ofac-home-albums-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ofac-font-heading);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ofac-home-albums-card__tag svg {
    width: 13px;
    height: 13px;
    fill: rgba(255,255,255,0.8);
    flex-shrink: 0;
}

.ofac-home-albums-card__title {
    font-family: var(--ofac-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.ofac-home-albums-card:nth-child(1) .ofac-home-albums-card__title {
    font-size: 22px;
}

.ofac-home-albums-cta {
    text-align: center;
    margin-top: 2rem;
}

.ofac-home-albums-btn {
    display: inline-block;
    background: #e02020;
    color: #fff;
    font-family: var(--ofac-font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 13px 36px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.ofac-home-albums-btn:hover {
    background: #c01a1a;
    color: #fff;
}

@media (max-width: 640px) {
    .ofac-home-albums-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .ofac-home-albums-card:nth-child(1) {
        grid-row: auto;
        height: 280px;
    }
    .ofac-home-albums-card {
        height: 200px;
    }
    .ofac-home-albums-section {
        padding: 2rem 0;
    }
    .ofac-home-albums-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
}
