/**
 * Olympiades de Robotique UCAO - Feuille de style principale
 * 
 * Palette inspirée des affiches de l'événement :
 * - Bleu profond (#1B3A6B) — texte, titres, accents forts
 * - Rouge (#C8102E) — CTA, accents vifs
 * - Doré (#D4A017) — highlights, décorations
 * - Bleu clair (#2563EB) — liens, survols
 * - Fond blanc / gris clair — header, footer, cartes
 */

/* ======================================================
   RESET & BASE
   ====================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales (affiches) */
    --primary: #1B3A6B;
    --primary-light: #264F8C;
    --primary-dark: #122A4F;
    --red: #C8102E;
    --red-light: #E0243E;
    --red-pale: #FDE8EC;
    --golden: #D4A017;
    --golden-light: #E8B629;
    --golden-pale: #FDF5E0;
    --blue: #2563EB;
    --blue-light: #3B82F6;
    --blue-pale: #DBEAFE;
    --cyan: #06B6D4;
    --cyan-pale: #CFFAFE;
    --white: #FFFFFF;
    --bg: #F8F9FA;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;

    /* Texte */
    --text: #1E293B;
    --text-light: #475569;
    --text-muted: #94A3B8;

    /* Typographie */
    --font-main: 'Poppins', sans-serif;
    --font-tech: 'Orbitron', sans-serif;

    /* Layout */
    --container-max: 1280px;
    --header-height: 72px;
    --section-padding: 80px 0;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Ombres */
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--blue);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================
   HEADER — Fond blanc, fixe, une seule ligne
   ====================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    height: var(--header-height);
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 16px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo img {
    height: 44px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--red);
    letter-spacing: 1px;
}

/* Navigation desktop */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-menu a {
    display: block;
    color: var(--text);
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(27, 58, 107, 0.05);
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--red);
    border-radius: 3px 3px 0 0;
}

/* Bouton Auth dans le header */
.header-auth {
    flex-shrink: 0;
}

.btn-header-auth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-header-auth:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* Countdown compact dans le header */
.nav-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 30px;
    flex-shrink: 0;
}

.countdown-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0.9;
}

.countdown-label i {
    color: var(--golden);
    margin-right: 4px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cd-val {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

.cd-sep {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0;
    }
}

/* Bouton menu mobile */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
}

/* ======================================================
   MOBILE MENU — Panneau latéral droit (style DigiNetsLink)
   ====================================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Header du panneau mobile */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    flex-shrink: 0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.mobile-logo:hover {
    color: var(--white);
}

.mobile-logo img {
    height: 36px;
    width: auto;
}

.mobile-logo span {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.mobile-logo strong {
    color: var(--golden);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Countdown mobile */
.mobile-countdown {
    padding: 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.mobile-cd-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 10px;
}

.mobile-cd-label i {
    color: var(--golden);
    margin-right: 5px;
}

.mobile-cd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mobile-cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    border: 1px solid var(--gray-200);
}

.mobile-cd-num {
    font-family: var(--font-tech);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.mobile-cd-unit {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Navigation mobile */
.mobile-menu-content {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background: rgba(27, 58, 107, 0.04);
    color: var(--primary);
}

.mobile-nav-menu a.active {
    border-left: 3px solid var(--red);
    padding-left: 17px;
}

.mobile-nav-menu .nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-right: 14px;
    font-size: 0.9rem;
    color: var(--primary);
    flex-shrink: 0;
}

.mobile-nav-menu a.active .nav-icon {
    background: rgba(27, 58, 107, 0.08);
    color: var(--primary);
}

.mobile-nav-menu .nav-text {
    flex: 1;
}

.mobile-nav-menu .nav-arrow {
    color: var(--gray-300);
    font-size: 0.7rem;
    margin-left: auto;
}

/* Footer du panneau mobile */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    flex-shrink: 0;
}

.mobile-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.mobile-logos-row img {
    height: 32px;
    width: auto;
    opacity: 0.7;
}

.mobile-menu-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ======================================================
   FLASH MESSAGES
   ====================================================== */
.flash-message {
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    margin-top: var(--header-height);
}



.flash-message .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background: #ECFDF5;
    color: #065F46;
}

.flash-error {
    background: var(--red-pale);
    color: var(--red);
}

.flash-warning {
    background: var(--golden-pale);
    color: var(--golden);
}

.flash-info {
    background: var(--blue-pale);
    color: var(--blue);
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* ======================================================
   MAIN CONTENT
   ====================================================== */
main {
    padding-top: var(--header-height);
    min-height: 60vh;
}

/* ======================================================
   HERO / BANNIÈRE
   ====================================================== */
.hero-section {
    background: linear-gradient(135deg, #EEF2FF 0%, var(--white) 50%, #FDF5E0 100%);
    padding: 0;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

/* Partie gauche : Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 40px 60px 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
}

/* Slide avec image de fond — masqué par défaut, visible uniquement en mobile */
.hero-slide .slide-overlay {
    display: none;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--golden-pale);
    color: var(--golden);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.hero-slide h1 {
    font-family: var(--font-tech);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 15px;
}

.highlight-golden {
    color: var(--golden);
}

.highlight-cyan {
    color: var(--cyan);
}

.highlight-red {
    color: var(--red);
}

.highlight-blue {
    color: var(--blue);
}

.hero-slide p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-slide .slide-bg-logo {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 250px;
    opacity: 0.05;
    pointer-events: none;
}

/* Boutons hero */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.hero-btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.25);
}

.hero-btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 58, 107, 0.35);
}

.hero-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.hero-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-btn-red {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.25);
}

.hero-btn-red:hover {
    background: var(--red-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* Slider dots */
.slider-indicators {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* Partie droite : Vidéo */
.hero-video {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.03) 0%, rgba(212, 160, 23, 0.03) 100%);
}

.video-container {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 3px solid var(--gray-200);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2FF, var(--golden-pale));
    color: var(--primary);
    gap: 12px;
}

.video-placeholder i {
    font-size: 3rem;
    opacity: 0.4;
}

.video-placeholder span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ======================================================
   SECTIONS COMMUNES
   ====================================================== */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: linear-gradient(180deg, var(--white) 0%, #f0f4f8 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2 .title-accent {
    color: var(--golden);
    position: relative;
}

.section-title h2 .title-accent::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--golden);
    opacity: 0.4;
    border-radius: 1px;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--red));
    border-radius: 2px;
    margin: 15px auto 0;
}

/* ======================================================
   SECTION À PROPOS (Accueil)
   ====================================================== */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-logos {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.about-logo-card {
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    animation: logoFloat 3s ease-in-out infinite;
}

.about-logo-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
    border-color: var(--golden-pale);
}

.about-logo-card img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.card-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Positionnement en triangle décalé */
.card-olympiade {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    border-top: 3px solid var(--golden);
}

.card-ucaotech {
    bottom: 20px;
    left: 0;
    animation-delay: 0.6s;
    border-top: 3px solid var(--blue);
}

.card-ucaouuc {
    bottom: 20px;
    right: 0;
    animation-delay: 1.2s;
    border-top: 3px solid var(--red);
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Correctif pour la carte du haut (translateX + float) */
.card-olympiade {
    animation: logoFloatCenter 3s ease-in-out infinite;
}

@keyframes logoFloatCenter {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-12px);
    }
}

.about-text h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.about-highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-blue {
    background: var(--blue-pale);
    color: var(--primary);
}

.tag-cyan {
    background: var(--cyan-pale);
    color: var(--cyan);
}

.tag-golden {
    background: var(--golden-pale);
    color: var(--golden);
}

.tag-red {
    background: var(--red-pale);
    color: var(--red);
}

/* ======================================================
   SECTION PROGRAMME
   ====================================================== */
.programme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.programme-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.programme-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.programme-card h3 i {
    color: var(--golden);
}

/* Timeline */
.programme-timeline {
    position: relative;
    padding-left: 25px;
}

.programme-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--golden));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px var(--blue-pale);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--golden);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 3px 0;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Classement */
.classement-table {
    width: 100%;
    border-collapse: collapse;
}

.classement-table th {
    background: rgba(27, 58, 107, 0.06);
    color: var(--primary);
    padding: 10px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.classement-table td {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-200);
}

.classement-table tr:hover td {
    background: var(--bg);
}

.classement-rank {
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--golden);
}

.classement-team {
    font-weight: 600;
    color: var(--text);
}

.classement-points {
    font-family: var(--font-tech);
    font-weight: 600;
    color: var(--primary);
}

/* Barre supérieure : retour + countdown */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--primary);
    padding: 0;
    height: 30px;
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-back {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.top-bar-back:hover {
    color: #fff;
}

.top-bar-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-cd-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.top-cd-label i {
    color: var(--golden);
    margin-right: 3px;
}

.top-cd-timer {
    display: flex;
    align-items: center;
    gap: 1px;
}

.top-cd-timer .cd-val {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.top-cd-timer .cd-sep {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    animation: blink 1s infinite;
}

body:has(.top-bar) .main-header {
    top: 30px;
}

body:has(.top-bar) main {
    padding-top: calc(var(--header-height) + 30px);
}

body:has(.top-bar) .page-hero {
    padding-top: calc(var(--header-height) + 30px + 50px);
}

body:has(.top-bar) .flash-message {
    margin-top: calc(var(--header-height) + 30px);
}

/* Index programme par jour */
.index-programme-jour {
    margin-bottom: 18px;
}

.index-programme-jour:last-child {
    margin-bottom: 0;
}

.index-jour-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #142d54));
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.index-programme-list {
    padding-left: 10px;
    border-left: 2px solid var(--gray-200);
}

.index-programme-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.index-prog-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
    flex-shrink: 0;
}

.prog-heure {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1;
}

.prog-heure-fin {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.index-prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.index-prog-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.index-prog-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.index-prog-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.index-prog-lieu {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.index-prog-lieu i {
    font-size: 0.65rem;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-data i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gray-300);
    display: block;
}

.no-data p {
    font-size: 0.95rem;
}

/* ======================================================
   SECTION SPONSORS & PARTENAIRES
   ====================================================== */
.sponsors-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 480px;
    margin: 0 auto;
}

.sponsors-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 560px;
    margin: 0 auto;
}

.sponsor-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.sponsor-card img {
    max-width: 80%;
    max-height: 45px;
    object-fit: contain;
    transition: var(--transition);
}

.sponsor-card a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

.sponsor-card:hover {
    border-color: var(--golden-pale);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sponsor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-300);
}

.sponsor-placeholder i {
    font-size: 1.4rem;
}

.sponsor-placeholder span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Partenaire principal */
.partenaire-principal {
    text-align: center;
    margin-bottom: 40px;
}

.partenaire-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--golden), var(--golden-light));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.partenaire-principal-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 40px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    border-left: 5px solid var(--golden);
    transition: var(--transition);
}

.partenaire-principal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.partenaire-principal-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.partenaire-principal-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.partenaire-principal-info p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* Grille partenaires */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.partenaire-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.partenaire-card:hover {
    border-color: var(--blue-pale);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.partenaire-card img {
    max-width: 70px;
    max-height: 45px;
    object-fit: contain;
}

.partenaire-card a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partenaire-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

.partenaire-empty {
    border: 2px dashed var(--gray-200);
    background: var(--gray-50);
    box-shadow: none;
}

.partenaire-empty i {
    font-size: 1.5rem;
    color: var(--gray-300);
}

.partenaire-empty .partenaire-name {
    color: var(--gray-300);
    font-size: 0.72rem;
}

/* ======================================================
   PAGE HERO (pages intérieures) — Bannière premium
   ====================================================== */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #1e4a7a 100%);
    color: var(--white);
    padding: 60px 0 70px;
    padding-top: calc(var(--header-height) + 50px);
    text-align: center;
    overflow: hidden;
}

/* Logo plein écran en arrière-plan */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/logos/logo-olympiade.png') center center / cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
    animation: heroLogoBreathe 8s ease-in-out infinite;
}

/* Overlay lumineux animé */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(212, 160, 23, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(200, 16, 46, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlowShift 10s ease-in-out infinite alternate;
}

@keyframes heroLogoBreathe {

    0%,
    100% {
        opacity: 0.08;
        transform: scale(1);
    }

    50% {
        opacity: 0.14;
        transform: scale(1.05);
    }
}

@keyframes heroGlowShift {
    0% {
        background:
            radial-gradient(ellipse at 15% 20%, rgba(212, 160, 23, 0.18) 0%, transparent 50%),
            radial-gradient(ellipse at 85% 80%, rgba(200, 16, 46, 0.12) 0%, transparent 45%),
            radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    }

    100% {
        background:
            radial-gradient(ellipse at 80% 30%, rgba(212, 160, 23, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 70%, rgba(200, 16, 46, 0.1) 0%, transparent 45%),
            radial-gradient(ellipse at 60% 40%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
    }
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    animation: heroFadeUp 0.7s ease-out;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.page-hero h1 i {
    margin-right: 12px;
    color: var(--golden);
    font-size: 0.85em;
}

.page-hero p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    animation: heroFadeUp 0.7s ease-out 0.15s both;
}

/* Breadcrumb décoratif */
.page-hero-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    animation: heroFadeUp 0.7s ease-out 0.3s both;
}

.page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.page-hero-breadcrumb a:hover {
    color: var(--golden);
}

.page-hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.page-hero-breadcrumb .current {
    color: var(--golden);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Ligne dorée animée en bas */
.page-hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--golden), var(--red), var(--golden), transparent);
    background-size: 200% 100%;
    animation: heroLineSlide 4s linear infinite;
    z-index: 3;
}

@keyframes heroLineSlide {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Vague décorative en bas (optionnel) */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 40px;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Animations globales pour sections */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.6s ease-out forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-4 {
    animation-delay: 0.4s;
}

/* Scroll reveal — animate-on-scroll (IntersectionObserver) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-scale {
    transform: scale(0.92) translateY(30px);
}

.animate-on-scroll.animate-scale.animated {
    transform: scale(1) translateY(0);
}

.animate-on-scroll.animate-left {
    transform: translateX(-40px) translateY(0);
}

.animate-on-scroll.animate-left.animated {
    transform: translateX(0) translateY(0);
}

.animate-on-scroll.animate-right {
    transform: translateX(40px) translateY(0);
}

.animate-on-scroll.animate-right.animated {
    transform: translateX(0) translateY(0);
}

/* Staggered children animation */
.stagger-children .animate-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-children .animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger-children .animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger-children .animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}

.stagger-children .animate-on-scroll:nth-child(7) {
    transition-delay: 0.6s;
}

.stagger-children .animate-on-scroll:nth-child(8) {
    transition-delay: 0.7s;
}

/* Section transitions au scroll */
.section {
    animation: sectionReveal 0.5s ease-out;
}

@keyframes sectionReveal {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

/* ======================================================
   PAGE À PROPOS
   ====================================================== */
.about-page-intro {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

.about-page-visual {
    text-align: center;
}

.about-page-logo-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border: 2px solid var(--golden-pale);
}

.about-page-logo-wrapper img {
    max-width: 200px;
    height: auto;
}

.about-page-orgs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-org-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-org-badge:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.about-org-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.about-org-badge span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.about-page-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 15px;
}

.about-page-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

/* Valeurs */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(27, 58, 107, 0.06);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--golden), var(--red));
    opacity: 0;
    transition: opacity 0.3s;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 58, 107, 0.15);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 18px;
}

.value-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: justify;
}

/* Vision */
.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-vision-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(27, 58, 107, 0.06);
    position: relative;
    overflow: hidden;
}

.about-vision-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--golden), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.about-vision-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(27, 58, 107, 0.14);
}

.about-vision-block:hover::before {
    opacity: 1;
}

.vision-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.vision-header i {
    font-size: 1.4rem;
}

.vision-header h3 {
    font-size: 1.15rem;
    color: var(--primary);
}

.about-vision-block p {
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

/* Talents */
.talents-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.talents-content>p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: justify;
}

.talents-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.talent-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--white);
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s;
    cursor: default;
}

.talent-tag:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(27, 58, 107, 0.15);
    background: var(--primary);
    color: var(--white);
}

.talent-tag:hover i {
    color: var(--golden);
}

.talent-tag i {
    color: var(--golden);
    transition: color 0.3s;
}

/* ======================================================
   PAGE ÉDITIONS
   ====================================================== */
.edition-featured {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(27, 58, 107, 0.06);
    position: relative;
    overflow: hidden;
}

.edition-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--golden), var(--red));
}

.edition-image-wrapper {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.edition-image-wrapper img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.edition-year-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--golden);
    color: var(--white);
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.edition-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E8FFF0;
    color: #059669;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.pulse-dot {
    font-size: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.edition-featured-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.edition-subtitle {
    font-size: 0.95rem;
    color: var(--golden);
    font-weight: 600;
    margin-bottom: 15px;
}

.edition-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.edition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.edition-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.edition-meta-item i {
    color: var(--golden);
}

.edition-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.edition-theme-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--golden-pale);
    color: var(--golden);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.edition-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.82rem;
}

/* Grille éditions passées */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.edition-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.edition-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.edition-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.edition-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.edition-card:hover .edition-card-image img {
    transform: scale(1.05);
}

.edition-card-image .edition-card-year {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: var(--font-tech);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 14px;
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
}

.edition-card-body {
    padding: 20px 25px 25px;
}

.edition-card-body .edition-card-status {
    display: inline-block;
    margin-bottom: 10px;
}

.edition-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.edition-card-year {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.edition-card-status {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--blue-pale);
    color: var(--blue);
    font-weight: 600;
}

.status-termine {
    background: var(--golden-pale);
    color: var(--golden);
}

.edition-card h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.edition-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.edition-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.edition-card-stats span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.edition-card-stats i {
    color: var(--golden);
    margin-right: 4px;
}

.edition-card-actions {
    display: flex;
    gap: 8px;
}

/* ======================================================
   PAGE MATCHS
   ====================================================== */
.groupes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.groupe-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(27, 58, 107, 0.06);
}

.groupe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(27, 58, 107, 0.15);
}

.groupe-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 14px 20px;
}

.groupe-lettre {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.groupe-table {
    width: 100%;
    border-collapse: collapse;
}

.groupe-table th {
    background: rgba(27, 58, 107, 0.05);
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.5px;
}

.th-equipe {
    text-align: left !important;
}

.groupe-table td {
    padding: 12px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.groupe-table tr.qualifie {
    background: rgba(5, 150, 105, 0.04);
}

.groupe-table tr.qualifie td:first-child {
    border-left: 3px solid #059669;
}

.equipe-name {
    text-align: left !important;
    font-weight: 600;
    color: var(--text);
}

.equipe-name i {
    color: var(--golden);
    margin-right: 6px;
    font-size: 0.8rem;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
}

.rank-1 {
    background: var(--golden-pale);
    color: var(--golden);
}

.rank-2 {
    background: var(--gray-200);
    color: var(--text-light);
}

.rank-3 {
    background: #FDE3CC;
    color: #B45309;
}

.rank-4 {
    background: var(--gray-100);
    color: var(--gray-400);
}

.col-v {
    color: #059669;
    font-weight: 600;
}

.col-d {
    color: var(--red);
    font-weight: 600;
}

.col-pts {
    color: var(--primary);
}

/* Matchs list */
.matchs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 850px;
    margin: 0 auto;
}

.match-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(27, 58, 107, 0.06);
    position: relative;
}

.match-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--golden));
    opacity: 0;
    transition: opacity 0.3s;
}

.match-card:hover {
    box-shadow: 0 12px 30px rgba(27, 58, 107, 0.12);
    transform: translateY(-3px);
}

.match-card:hover::after {
    opacity: 1;
}

.match-phase-badge {
    display: inline-block;
    background: var(--blue-pale);
    color: var(--blue);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.badge-finished {
    background: var(--golden-pale);
    color: var(--golden);
}

.match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team-left {
    justify-content: flex-start;
}

.team-right {
    justify-content: flex-end;
}

.team-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.match-card:hover .team-avatar {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(27, 58, 107, 0.15);
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.team-winner .team-name {
    color: var(--primary);
    font-weight: 700;
}

.team-winner .team-avatar {
    border-color: var(--golden);
    color: var(--golden);
    background: var(--golden-pale);
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.25);
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.vs-label {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    text-shadow: 0 1px 4px rgba(200, 16, 46, 0.2);
    padding: 4px 12px;
    background: rgba(200, 16, 46, 0.08);
    border-radius: 20px;
}

.match-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.match-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.score {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
}

.score-winner {
    color: var(--primary);
    font-weight: 800;
}

.score-sep {
    color: var(--gray-300);
    font-size: 1.2rem;
}

/* ======================================================
   PAGE RÉSULTATS
   ====================================================== */
.resultats-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.resultats-col-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resultats-col-title i {
    color: var(--golden);
}

/* Résultat cards */
.resultat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(27, 58, 107, 0.06);
    position: relative;
    overflow: hidden;
}

.resultat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--golden), var(--red));
    opacity: 0;
    transition: opacity 0.3s;
}

.resultat-card:hover {
    box-shadow: 0 12px 30px rgba(27, 58, 107, 0.12);
    transform: translateY(-3px);
}

.resultat-card:hover::before {
    opacity: 1;
}

.resultat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.resultat-phase {
    background: var(--blue-pale);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.resultat-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.resultat-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.resultat-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.resultat-team span {
    font-weight: 600;
    font-size: 0.92rem;
}

.resultat-score-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.big-score {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-300);
}

.big-score.score-winner {
    color: var(--primary);
}

.score-divider {
    font-size: 1.5rem;
    color: var(--gray-300);
    font-weight: 300;
}

.btn-details {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-details:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.resultat-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.resultat-details.open {
    max-height: 400px;
    margin-top: 12px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th {
    background: rgba(27, 58, 107, 0.05);
    padding: 8px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.details-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.td-winner {
    color: var(--primary);
    font-weight: 700;
}

.td-duree {
    font-family: var(--font-tech);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Classement card */
.classement-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    border: 1px solid rgba(27, 58, 107, 0.06);
    overflow: hidden;
}

.classement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--golden), var(--red));
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 25px;
    padding: 20px 10px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 160, 23, 0.05) 100%);
    border-radius: var(--radius-lg);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.podium-item:hover {
    transform: translateY(-5px);
}

.podium-avatar {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: box-shadow 0.3s;
}

.podium-1 .podium-avatar {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.35);
}

.podium-rank {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.podium-1 .podium-avatar {
    background: var(--golden-pale);
    color: var(--golden);
    border: 3px solid var(--golden);
}

.podium-1 .podium-rank {
    background: linear-gradient(135deg, var(--golden), #e6b800);
    box-shadow: 0 2px 6px rgba(212, 160, 23, 0.4);
}

.podium-1 .podium-name {
    font-weight: 700;
    color: var(--golden);
    font-size: 0.9rem;
}

.podium-2 .podium-avatar {
    background: var(--gray-100);
    color: var(--text-light);
    border: 3px solid var(--gray-300);
}

.podium-2 .podium-rank {
    background: var(--gray-400);
}

.podium-3 .podium-avatar {
    background: #FDE3CC;
    color: #B45309;
    border: 3px solid #B45309;
}

.podium-3 .podium-rank {
    background: #B45309;
}

.podium-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.podium-pts {
    font-family: var(--font-tech);
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
}

/* Tableau classement complet */
.classement-full-table {
    width: 100%;
    border-collapse: collapse;
}

.classement-full-table th {
    background: rgba(27, 58, 107, 0.05);
    padding: 8px 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.5px;
}

.classement-full-table td {
    padding: 10px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.classement-full-table tr.top-3 {
    background: rgba(212, 160, 23, 0.03);
}

.trend-up {
    color: #059669;
}

.trend-down {
    color: var(--red);
}

.trend-same {
    color: var(--gray-400);
}

/* ======================================================
   FOOTER — Fond blanc
   ====================================================== */
.main-footer {
    background: var(--white);
    color: var(--text);
    padding-top: 60px;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo img {
    height: 56px;
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links a i {
    font-size: 0.6rem;
    color: var(--golden);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact i {
    color: var(--golden);
    margin-top: 3px;
    font-size: 0.9rem;
}

.footer-contact a,
.footer-contact span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--golden);
}

/* ======================================================
   UTILITAIRES
   ====================================================== */
.text-primary {
    color: var(--primary) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.text-cyan {
    color: var(--cyan) !important;
}

.text-golden {
    color: var(--golden) !important;
}

.text-red {
    color: var(--red) !important;
}

.bg-white {
    background: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-golden {
    background: var(--golden);
    color: var(--white);
}

/* Animation au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   PAGE DÉTAILS ÉDITION
   ====================================================== */

/* Hero bannière avec image de fond */
.detail-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 0;
    padding-top: var(--header-height);
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.75) 60%, rgba(15, 23, 42, 0.92) 100%);
    z-index: 1;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px 50px;
    text-align: center;
}

.detail-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 160, 23, 0.2);
    color: var(--golden-light);
    border: 1px solid rgba(212, 160, 23, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
    animation: heroFadeUp 0.5s ease-out;
}

.detail-hero h1 {
    font-family: var(--font-tech);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    animation: heroFadeUp 0.6s ease-out 0.1s both;
}

.detail-hero-theme {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-style: italic;
    animation: heroFadeUp 0.6s ease-out 0.2s both;
}

.detail-hero-theme i {
    color: var(--golden);
    margin-right: 6px;
}

.detail-hero-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    animation: heroFadeUp 0.6s ease-out 0.3s both;
}

.detail-hero-meta span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.detail-hero-meta i {
    margin-right: 6px;
    color: var(--golden);
}

/* Intro : Résumé + Description côte à côte */
.detail-intro {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.detail-resume {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.detail-resume::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.detail-resume-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--golden-light);
    margin-bottom: 16px;
}

.detail-resume h3 {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--golden-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-resume p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.detail-description h2 {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.detail-description-body p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 14px;
    text-align: justify;
}

.detail-description-body strong {
    color: var(--primary);
    font-weight: 600;
}

.detail-highlight-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.detail-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--golden);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.detail-highlight-item:hover {
    background: var(--golden-pale);
    transform: translateX(4px);
}

.detail-highlight-item i {
    color: var(--golden);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Grille des équipes */
.equipes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.equipe-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.equipe-card-header {
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.equipe-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.equipe-avatar i {
    font-size: 1.8rem;
    color: #fff;
}

.equipe-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.equipe-card-body {
    padding: 20px;
    text-align: center;
}

.equipe-card-body h4 {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.equipe-slogan {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
    min-height: 36px;
}

.equipe-card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.btn-golden {
    background: linear-gradient(135deg, var(--golden), var(--golden-light));
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-golden:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.35);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Podium détails */
.detail-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
}

.detail-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 180px;
    text-align: center;
}

.detail-podium-medal {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.podium-gold .detail-podium-medal {
    color: #D4A017;
    filter: drop-shadow(0 2px 6px rgba(212, 160, 23, 0.5));
}

.podium-silver .detail-podium-medal {
    color: #A0A0A0;
}

.podium-bronze .detail-podium-medal {
    color: #CD7F32;
}

.detail-podium-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gray-300);
    margin-bottom: 2px;
}

.podium-gold .detail-podium-avatar {
    border-color: #D4A017;
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.3);
}

.detail-podium-avatar i {
    font-size: 1.5rem;
    color: var(--primary);
}

.detail-podium-rank {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.podium-gold .detail-podium-rank {
    color: #D4A017;
}

.detail-podium-item h4 {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.detail-podium-pts {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--golden);
}

.detail-podium-stats {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.detail-podium-bar {
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 30px;
}

/* Galerie photos */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.detail-gallery-item:hover img {
    transform: scale(1.08);
}

.detail-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-gallery-item:hover .detail-gallery-caption {
    opacity: 1;
}

.detail-gallery-caption span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ======================================================
   PROGRAMME D'ACTIVITÉS
   ====================================================== */
.programme-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.programme-jour {
    margin-bottom: 50px;
}

.programme-jour:last-child {
    margin-bottom: 0;
}

.programme-date-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
}

.date-jour-num {
    background: var(--primary-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-full {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.programme-activites {
    position: relative;
    padding-left: 24px;
}

.programme-activites::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.programme-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}

.programme-item-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
    flex-shrink: 0;
}

.item-heure {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1;
}

.item-heure-fin {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.programme-item-dot {
    position: absolute;
    left: -24px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-color);
    z-index: 1;
    transform: translateX(-1px);
}

.programme-item-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-color);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.programme-item-content:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.programme-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.programme-item-header i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.programme-item-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.programme-item-desc {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.programme-item-lieu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 3px 10px;
    border-radius: 20px;
}

.programme-item-lieu i {
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* ======================================================
   PRIX & RÉCOMPENSES
   ====================================================== */
.prix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.prix-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prix-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.prix-card .prix-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: #fff;
}

.prix-card h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.prix-card .prix-laureate {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.prix-card .prix-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ======================================================
   RESPONSIVE — TABLET (< 1024px)
   ====================================================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
        --section-padding: 60px 0;
    }

    .header-nav,
    .header-auth {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero — centré en mobile */
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-slider {
        padding: 40px 20px;
    }

    .hero-slide {
        padding: 40px 20px;
        align-items: center;
        text-align: center;
    }

    /* Slides avec image de fond — visible en mobile */
    .hero-slide[data-bg] {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 50px 20px;
        border-radius: 0;
    }

    /* Slide 1 : Logo en filigrane centré sur fond dégradé */
    .hero-slide.active[data-bg*="logo-olympiade"] {
        background-size: 55%;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-slide[data-bg*="logo-olympiade"] .slide-overlay {
        background: linear-gradient(135deg, rgba(15, 23, 60, 0.92) 0%, rgba(10, 30, 80, 0.85) 50%, rgba(30, 20, 50, 0.90) 100%);
    }

    .hero-slide[data-bg] .slide-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.65) 100%);
        z-index: 0;
    }

    .hero-slide[data-bg]>*:not(.slide-overlay) {
        position: relative;
        z-index: 1;
    }

    .hero-slide[data-bg] h1 {
        color: #ffffff;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }

    .hero-slide[data-bg] .highlight-golden {
        color: #fbbf24;
        text-shadow: 0 2px 15px rgba(251, 191, 36, 0.3);
    }

    .hero-slide[data-bg] .highlight-blue {
        color: #60a5fa;
        text-shadow: 0 2px 15px rgba(96, 165, 250, 0.3);
    }

    .hero-slide[data-bg] .highlight-red {
        color: #f87171;
        text-shadow: 0 2px 15px rgba(248, 113, 113, 0.3);
    }

    .hero-slide[data-bg] p {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    }

    .hero-slide[data-bg] .slide-badge {
        background: rgba(251, 191, 36, 0.2);
        color: #fbbf24;
        border: 1px solid rgba(251, 191, 36, 0.3);
        backdrop-filter: blur(10px);
    }

    .hero-slide[data-bg] .hero-btn-primary {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #1e293b;
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    }

    .hero-slide[data-bg] .hero-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
    }

    .hero-slide[data-bg] .hero-btn-outline {
        border-color: rgba(255, 255, 255, 0.4);
        color: #ffffff;
        backdrop-filter: blur(5px);
    }

    .hero-slide[data-bg] .hero-btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .hero-slide[data-bg] .hero-btn-red {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #ffffff;
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    }

    .hero-slide[data-bg] .hero-btn-red:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
    }

    .slide-bg-logo {
        display: none;
    }

    .hero-slide h1 {
        font-size: 1.8rem;
    }

    .hero-slide p {
        max-width: 100%;
    }

    .hero-slide div[style] {
        justify-content: center;
    }

    .slider-indicators {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .hero-video {
        padding: 20px;
        justify-content: center;
    }

    .video-container {
        max-width: 420px;
    }

    /* About */
    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-logos {
        width: 340px;
        height: 340px;
    }

    .about-logo-card {
        width: 120px;
        height: 120px;
    }

    /* Programme */
    .programme-grid {
        grid-template-columns: 1fr;
    }

    /* Sponsors & Partenaires */
    .sponsors-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .sponsors-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .partenaires-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    /* Page À propos */
    .about-page-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .about-vision-grid {
        grid-template-columns: 1fr;
    }

    /* Page Éditions */
    .edition-featured {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .edition-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }

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

    /* Page Matchs */
    .groupes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Page Résultats */
    .resultats-layout {
        grid-template-columns: 1fr;
    }

    .classement-card {
        position: static;
    }

    /* Page Détails */
    .detail-intro {
        grid-template-columns: 1fr;
    }

    .equipes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .detail-hero h1 {
        font-size: 2rem;
    }

    .detail-podium {
        gap: 20px;
    }

    .detail-podium-item {
        width: 150px;
    }
}

/* ======================================================
   RESPONSIVE — MOBILE (< 768px)
   ====================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --section-padding: 50px 0;
    }

    .top-bar {
        height: 26px;
    }

    .top-bar-back {
        font-size: 0.68rem;
    }

    .top-cd-label {
        display: none;
    }

    .top-cd-timer .cd-val {
        font-size: 0.72rem;
    }

    body:has(.top-bar) .main-header {
        top: 26px;
    }

    body:has(.top-bar) main {
        padding-top: calc(var(--header-height) + 26px);
    }

    body:has(.top-bar) .page-hero {
        padding-top: calc(var(--header-height) + 26px + 30px);
    }

    /* Programme index */
    .index-programme-item {
        gap: 8px;
    }

    .index-prog-time {
        min-width: 40px;
    }

    /* Programme */
    .programme-date-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .programme-item {
        gap: 12px;
    }

    .programme-item-time {
        min-width: 45px;
    }

    .programme-item-content {
        padding: 12px 14px;
    }

    .prix-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .header-logo img {
        height: 36px;
    }

    .logo-title {
        font-size: 0.78rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    /* Hero — centré */
    .hero-slider {
        padding: 30px 16px;
    }

    .hero-slide {
        padding: 30px 16px;
        align-items: center;
        text-align: center;
    }

    .hero-slide h1 {
        font-size: 1.5rem;
    }

    .hero-slide p {
        font-size: 0.92rem;
        max-width: 100%;
    }

    .hero-btn {
        padding: 10px 22px;
        font-size: 0.88rem;
    }

    .slide-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .slider-indicators {
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%);
    }

    .hero-video {
        padding: 16px;
        justify-content: center;
    }

    .video-container {
        max-width: 100%;
    }

    /* About logos */
    .about-logos {
        width: 280px;
        height: 280px;
    }

    .about-logo-card {
        width: 110px;
        height: 110px;
        padding: 12px;
    }

    .about-logo-card img {
        max-width: 55px;
        max-height: 55px;
    }

    .card-label {
        font-size: 0.62rem;
    }

    /* Sponsors & Partenaires */
    .sponsors-3,
    .sponsors-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sponsor-card {
        height: 85px;
        padding: 12px 8px;
    }

    .partenaire-principal-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .partenaires-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .partenaire-card {
        height: 85px;
        padding: 12px 8px;
    }

    /* Footer — masquer certaines colonnes */
    .footer-hide-mobile {
        display: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.4rem;
    }

    .section-title p {
        font-size: 0.92rem;
    }

    /* Page hero */
    .page-hero {
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 35px;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero-breadcrumb {
        gap: 6px;
        font-size: 0.8rem;
    }

    /* Page À propos */
    .about-page-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-page-logo-wrapper img {
        max-width: 150px;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .value-card {
        padding: 20px;
    }

    .about-vision-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-vision-block {
        padding: 25px;
    }

    /* Page Éditions */
    .edition-featured {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .edition-image-wrapper {
        padding: 35px;
    }

    .edition-image-wrapper img {
        max-width: 180px;
    }

    .edition-featured-info h3 {
        font-size: 1.25rem;
    }

    .edition-meta {
        flex-direction: column;
        gap: 10px;
    }

    .editions-grid {
        grid-template-columns: 1fr;
    }

    /* Page Matchs */
    .groupes-grid {
        grid-template-columns: 1fr;
    }

    .match-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .match-team {
        justify-content: center;
    }

    .team-left,
    .team-right {
        justify-content: center;
    }

    /* Page Résultats */
    .resultats-layout {
        grid-template-columns: 1fr;
    }

    .resultat-body {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .resultat-team {
        justify-content: center;
    }

    .big-score {
        font-size: 1.6rem;
    }

    .podium {
        gap: 10px;
        padding: 15px 5px;
    }

    .podium-avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .podium-name {
        font-size: 0.72rem;
    }

    .classement-full-table th,
    .classement-full-table td {
        padding: 8px 6px;
        font-size: 0.78rem;
    }

    /* Page Détails */
    .detail-hero {
        min-height: 350px;
    }

    .detail-hero h1 {
        font-size: 1.5rem;
    }

    .detail-hero-meta {
        gap: 12px;
    }

    .detail-hero-meta span {
        font-size: 0.8rem;
    }

    .equipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .equipe-card-header {
        padding: 20px 16px;
    }

    .equipe-avatar {
        width: 56px;
        height: 56px;
    }

    .detail-podium {
        gap: 12px;
    }

    .detail-podium-item {
        width: 110px;
    }

    .detail-podium-avatar {
        width: 52px;
        height: 52px;
    }

    .detail-podium-item h4 {
        font-size: 0.82rem;
    }

    .detail-highlight-box {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ======================================================
   RESPONSIVE — PETIT MOBILE (< 480px)
   ====================================================== */
@media (max-width: 480px) {
    .hero-slide h1 {
        font-size: 1.25rem;
    }

    .hero-slide .slide-bg-logo {
        width: 150px;
    }

    /* Page Détails */
    .equipes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .detail-podium-item {
        width: 95px;
    }

    .detail-podium-avatar {
        width: 44px;
        height: 44px;
    }

    .detail-podium-item h4 {
        font-size: 0.75rem;
    }

    .detail-podium-bar {
        display: none;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .about-logos {
        width: 240px;
        height: 240px;
    }

    .about-logo-card {
        width: 95px;
        height: 95px;
        padding: 10px;
        gap: 4px;
    }

    .about-logo-card img {
        max-width: 45px;
        max-height: 45px;
    }

    .card-label {
        font-size: 0.58rem;
    }

    .about-text h3 {
        font-size: 1.15rem;
    }

    .programme-card {
        padding: 20px;
    }

    .sponsors-3,
    .sponsors-4 {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sponsor-card {
        height: 75px;
        padding: 10px 6px;
    }

    .partenaires-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .partenaire-card {
        height: 75px;
    }

    .mobile-menu {
        width: 290px;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Matchs */
    .groupe-table th,
    .groupe-table td {
        padding: 8px 6px;
        font-size: 0.78rem;
    }

    .score {
        font-size: 1.3rem;
    }

    .team-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .team-name {
        font-size: 0.85rem;
    }

    /* Résultats */
    .classement-card {
        padding: 15px;
    }

    .big-score {
        font-size: 1.4rem;
    }
}