/* ============================================================
   MM180S — Mon Mémoire en 180 Secondes
   DESIGN PREMIUM CHIC — Elegant Academic Style
   Palette : Navy #1B2D5B | Red #C8102E | Blue #2563EB
   Aucun jaune/doré — silver-slate pour accents secondaires
   ============================================================ */

/* ======================================================
   VARIABLES
   ====================================================== */
:root {
    /* Couleurs principales du logo */
    --primary: #1B2D5B;
    --primary-light: #2A4178;
    --primary-dark: #0E1A35;
    --red: #C8102E;
    --red-light: #E0243E;
    --red-dark: #9C0C23;
    --blue: #2563EB;
    --blue-light: #3B82F6;
    --cyan: #06B6D4;

    /* Silver-slate accent (remplace le doré) */
    --silver: #8B9DB8;
    --silver-light: #A8B8CC;
    --silver-dark: #6B7FA0;

    /* Pales */
    --blue-pale: #EEF2FF;
    --red-pale: #FFF0F2;
    --silver-pale: #EEF1F7;
    --cyan-pale: #E0F7FA;

    /* Layout */
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --bg-dark: #0B1120;
    --bg-card: rgba(255, 255, 255, 0.92);
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;

    /* Text */
    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --border: rgba(27, 45, 91, 0.08);

    /* Shadows — Elegant & refined */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(27, 45, 91, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.03), 0 10px 30px rgba(27, 45, 91, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(27, 45, 91, 0.12);
    --shadow-glow-primary: 0 0 30px rgba(27, 45, 91, 0.15);
    --shadow-glow-red: 0 0 30px rgba(200, 16, 46, 0.12);

    /* Radius */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Fonts */
    --font-main: 'Source Sans 3', sans-serif;
    --font-display: 'Newsreader', serif;
    --font-mono: 'Spline Sans Mono', monospace;
    --font-heading: 'Source Sans 3', sans-serif;
    --font-tech: 'Spline Sans Mono', sans-serif;

    /* Layout sizes */
    --container-max: 1280px;
    --header-height: 72px;
    --section-padding: 100px 0;

    /* Backward compat (golden → silver + red accent strategy) */
    --golden: var(--silver);
    --golden-light: var(--silver-light);
    --golden-pale: var(--silver-pale);
    --medal-gold: #D4A017;
}

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

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 — Clean elegant, top accent line
   ====================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    height: var(--header-height);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    border-bottom: 1px solid rgba(27, 45, 91, 0.06);
}

/* Elegant red accent line at very top */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--red), var(--blue));
    z-index: 1;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(27, 45, 91, 0.08);
    border-bottom-color: transparent;
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

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

.logo-title {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

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

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

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(27, 45, 91, 0.03);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

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

.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a i {
    font-size: 0.82rem;
    color: var(--silver);
    transition: color 0.3s;
}

.nav-menu a:hover i,
.nav-menu a.active i {
    color: var(--red);
}

/* Countdown desktop */
.nav-countdown {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 6px 14px;
    border-radius: 30px;
}

.cd-val {
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    min-width: 20px;
    text-align: center;
}

.cd-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

/* 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.1rem;
    transition: var(--transition);
}

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

/* ======================================================
   MOBILE MENU — Elegant slide panel
   ====================================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.55);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(4px);
}

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

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

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

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    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: 38px;
    width: auto;
}

.mobile-logo span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--white);
}

.mobile-logo strong {
    color: rgba(255, 255, 255, 0.75);
}

.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);
}

/* Mobile countdown */
.mobile-countdown {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-countdown p {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.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: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    padding: 10px 4px;
}

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

.mobile-cd-unit {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    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, 45, 91, 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: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-right: 14px;
    font-size: 0.85rem;
    color: var(--primary);
    flex-shrink: 0;
}

.mobile-nav-menu a.active .nav-icon {
    background: rgba(27, 45, 91, 0.08);
}

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

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

/* Flash messages */
.flash-message {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 999;
    box-shadow: var(--shadow-md);
    animation: flashIn 0.4s ease-out;
}

.flash-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.flash-error {
    background: var(--red-pale);
    color: var(--red-dark);
    border: 1px solid rgba(200, 16, 46, 0.2);
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ======================================================
   MAIN — Content push for fixed header
   ====================================================== */
main {
    padding-top: var(--header-height);
}

/* ======================================================
   HERO SECTION — Elegant academic style + animated bg
   ====================================================== */
.hero-section {
    position: relative;
    background: var(--white);
    overflow: hidden;
    min-height: calc(100vh - var(--header-height));
}

/* Subtle decorative mesh background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(200, 16, 46, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(27, 45, 91, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Elegant diagonal accent line */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 48%, rgba(27, 45, 91, 0.02) 49%, rgba(27, 45, 91, 0.02) 51%, transparent 52%);
    pointer-events: none;
}

/* ---- Animated floating Logo in hero ---- */
.hero-floating-logo {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: heroLogoAppear 1.2s ease-out 0.4s forwards;
}

.hero-floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(27, 45, 91, 0.18));
}

.hero-floating-logo.logo-main {
    right: 5%;
    bottom: 8%;
    width: 320px;
    height: 320px;
    animation: heroLogoAppear 1.2s ease-out 0.4s forwards, heroLogoFloat 5s ease-in-out 1.6s infinite;
}

.hero-floating-logo.logo-ghost {
    left: -3%;
    top: 10%;
    width: 160px;
    height: 160px;
    opacity: 0;
    animation: heroLogoAppear 1.5s ease-out 1s forwards, heroLogoOrbit 12s linear 2.5s infinite;
    filter: none;
}

.hero-floating-logo.logo-ghost img {
    opacity: 0.05;
    filter: blur(1px) brightness(1.5);
}

/* Decorative ring around main logo */
.hero-floating-logo.logo-main::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(27, 45, 91, 0.08);
    animation: heroRingSpin 20s linear infinite;
}

.hero-floating-logo.logo-main::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 1px dotted rgba(200, 16, 46, 0.06);
    animation: heroRingSpin 30s linear infinite reverse;
}

@keyframes heroLogoAppear {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(30px);
    }

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

@keyframes heroLogoFloat {

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

    25% {
        transform: translateY(-15px) rotate(2deg);
    }

    50% {
        transform: translateY(-5px) rotate(0deg);
    }

    75% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes heroLogoOrbit {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -15px) rotate(90deg);
    }

    50% {
        transform: translate(0, -25px) rotate(180deg);
    }

    75% {
        transform: translate(-20px, -10px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes heroRingSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    position: relative;
    z-index: 2;
}

/* Slides */
.hero-slides {
    position: relative;
}

.hero-slide {
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    animation: heroSlideIn 0.6s ease-out;
}

.hero-slide.active {
    display: flex;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
        filter: blur(4px);
    }

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

/* Slide badge entrance */
.hero-slide.active .slide-badge {
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero-slide.active h1 {
    animation: heroTitleReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-slide.active p {
    animation: heroTextFade 0.6s ease-out 0.3s both;
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }

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

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        clip-path: inset(0 0 100% 0);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes heroTextFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

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

.hero-slide h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* Text color highlights */
.highlight-golden {
    color: var(--red);
}

.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.04;
    pointer-events: none;
    animation: slideBgLogoSpin 25s linear infinite;
}

@keyframes slideBgLogoSpin {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

/* Hero buttons */
.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, 45, 91, 0.25);
}

.hero-btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 45, 91, 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 indicators */
.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(--red);
    width: 30px;
    border-radius: 5px;
    animation: dotExpand 0.3s ease-out;
}

@keyframes dotExpand {
    from {
        width: 10px;
    }

    to {
        width: 30px;
    }
}

/* Hero right — Video area */
.hero-video {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* Elegant frame around video area */
.hero-video::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(27, 45, 91, 0.06);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

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

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

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

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

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

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

/* Elegant thin separator between sections */
.section+.section::before,
.section+.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--silver), transparent);
}

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

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

/* Title accent in RED — main accent color */
.section-title h2 .title-accent {
    color: var(--red);
    position: relative;
}

.section-title h2 .title-accent::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    opacity: 0.3;
    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: 3px;
    background: linear-gradient(90deg, var(--primary), var(--red));
    border-radius: 2px;
    margin: 15px auto 0;
}

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

/* Logos en triangle */
.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(--blue-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;
}

/* Triangle layout */
.card-olympiade {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    border-top: 3px solid var(--red);
}

.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(--primary);
}

@keyframes logoFloat {

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

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

.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 */
.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(--red-pale);
    color: var(--red);
}

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

/* ======================================================
   PROGRAMME GRID
   ====================================================== */
.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);
    position: relative;
    overflow: hidden;
}

/* Elegant left accent bar */
.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--red));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.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(--red);
}

/* 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(--red));
    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(--blue);
    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 table */
.classement-table {
    width: 100%;
    border-collapse: collapse;
}

.classement-table th {
    background: rgba(27, 45, 91, 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(--red);
}

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

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

/* No data */
.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;
}

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

.sponsor-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

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

.sponsor-placeholder i {
    font-size: 2.5rem;
    color: var(--silver);
}

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

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

.partenaire-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.partenaire-principal-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.partenaire-principal-card img {
    height: 80px;
    width: auto;
}

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

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

.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.partenaire-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.partenaire-card img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

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

.partenaire-empty {
    border: 2px dashed var(--gray-200);
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* ======================================================
   PAGE HERO — Dramatic dark gradient + Logo watermark
   ====================================================== */
.page-hero {
    position: relative;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
}

/* Subtle geometric pattern overlay */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(200, 16, 46, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Luminous glow animation */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(200, 16, 46, 0.08) 0%, transparent 45%);
    pointer-events: none;
    animation: pageHeroGlow 8s ease-in-out infinite alternate;
}

/* Logo watermark background — animated */
.page-hero-logo-bg {
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 280px;
    height: 280px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
    animation: heroLogoPulse 6s ease-in-out infinite, heroLogoRotate 25s linear infinite;
    filter: brightness(2);
}

.page-hero-logo-bg.left {
    right: auto;
    left: -40px;
    bottom: auto;
    top: -30px;
    width: 200px;
    height: 200px;
    opacity: 0.04;
    animation: heroLogoPulse 8s ease-in-out infinite reverse, heroLogoRotate 30s linear infinite reverse;
}

@keyframes heroLogoPulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

@keyframes heroLogoRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pageHeroGlow {
    0% {
        background:
            radial-gradient(ellipse at 15% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 85% 80%, rgba(200, 16, 46, 0.08) 0%, transparent 45%);
    }

    100% {
        background:
            radial-gradient(ellipse at 80% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 70%, rgba(200, 16, 46, 0.06) 0%, transparent 45%);
    }
}

.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: rgba(255, 255, 255, 0.7);
    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 */
.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(--white);
}

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

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

/* Animated line at bottom */
.page-hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), var(--blue), var(--red), 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;
    }
}

/* Hero overlay for contact/connexion alternate hero */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.06), transparent 60%);
    pointer-events: none;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

.page-hero .breadcrumb .current {
    color: var(--white);
    font-weight: 600;
}

h1.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

p.page-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

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

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

/* ======================================================
   À PROPOS PAGE — Values, Concept, Critères
   ====================================================== */

/* About page intro layout */
.about-page-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Values grid */
.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, 45, 91, 0.06);
    position: relative;
    overflow: hidden;
}

/* Elegant top gradient bar on hover */
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--red));
    opacity: 0;
    transition: opacity 0.3s;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 45, 91, 0.12);
}

.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;
}

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

.concept-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    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, 45, 91, 0.06);
    position: relative;
    overflow: hidden;
}

/* Left accent bar on concept cards */
.concept-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(27, 45, 91, 0.12);
}

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

.concept-number {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(27, 45, 91, 0.08);
    line-height: 1;
    margin-bottom: 12px;
}

.concept-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.concept-card h3 i {
    color: var(--red);
    margin-right: 8px;
}

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

/* Critères grid */
.criteres-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.critere-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(27, 45, 91, 0.06);
}

.critere-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.15);
}

.critere-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
    color: var(--white);
}

.critere-card h3 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.critere-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Récompenses */
.recompenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.recompense-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(27, 45, 91, 0.06);
    position: relative;
    overflow: hidden;
}

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

.recompense-card.gold {
    border-top: 4px solid var(--medal-gold);
}

.recompense-card.gold .recompense-medal {
    color: var(--medal-gold);
}

.recompense-card.silver {
    border-top: 4px solid var(--silver);
}

.recompense-card.silver .recompense-medal {
    color: var(--silver);
}

.recompense-card.bronze {
    border-top: 4px solid #CD7F32;
}

.recompense-card.bronze .recompense-medal {
    color: #CD7F32;
}

.recompense-medal {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.recompense-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.recompense-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* Distinction */
.distinction-info {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 700px;
    margin: 40px auto 0;
    padding: 20px 25px;
    background: var(--blue-pale);
    border-radius: var(--radius);
    border-left: 4px solid var(--blue);
}

.distinction-info i {
    font-size: 1.3rem;
    color: var(--blue);
    flex-shrink: 0;
}

.distinction-info p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.vision-card {
    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, 45, 91, 0.06);
    position: relative;
    overflow: hidden;
}

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

.vision-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(27, 45, 91, 0.14);
}

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

.vision-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.vision-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.vision-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* About vision (about page alternate layout) */
.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, 45, 91, 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(--red), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.about-vision-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(27, 45, 91, 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: var(--transition-bounce);
    cursor: default;
}

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

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

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

/* ======================================================
   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, 45, 91, 0.06);
    position: relative;
    overflow: hidden;
}

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

.edition-featured-visual {
    position: relative;
}

.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(--red);
    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(--blue);
    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(--red);
}

.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(--blue-pale);
    color: var(--blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

/* Editions grid */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.edition-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(27, 45, 91, 0.06);
}

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

.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.3rem;
    font-weight: 700;
    color: var(--primary);
}

.edition-card-status {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    background: #ECFDF5;
    color: #059669;
}

.status-termine {
    background: var(--gray-100);
    color: var(--text-muted);
}

.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: 15px;
    margin-bottom: 15px;
}

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

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

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

/* ======================================================
   PAGE PROGRAMME
   ====================================================== */
.infos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(27, 45, 91, 0.06);
}

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

.info-card i,
.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-card h4,
.info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-card p,
.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Passage list */
.passage-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.passage-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(27, 45, 91, 0.06);
    position: relative;
    overflow: hidden;
}

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

.passage-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

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

.passage-ordre {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
    opacity: 0.3;
}

.passage-content {
    flex: 1;
}

.passage-heure {
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 4px;
}

.passage-candidat {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 3px;
}

.passage-filiere {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.passage-theme {
    font-size: 0.85rem;
    color: var(--text-light);
}

.passage-duree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--red);
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--font-tech);
}

/* Timeline déroulement */
.timeline-deroulement {
    position: relative;
    padding-left: 100px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-deroulement::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--red), var(--blue));
    border-radius: 1px;
}

.timeline-deroulement .timeline-item {
    position: relative;
    padding-bottom: 35px;
    padding-left: 30px;
}

.timeline-deroulement .timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-deroulement .timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    z-index: 1;
}

.timeline-time {
    position: absolute;
    left: -100px;
    top: 2px;
    font-family: var(--font-tech);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    width: 60px;
    text-align: right;
}

.timeline-dot {
    display: none;
}

.timeline-content h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

.resultats-scores,
.resultats-classement {
    position: relative;
}

.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(--red);
}

/* Resultat cards */
.resultat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(27, 45, 91, 0.06);
    position: relative;
    transition: var(--transition);
}

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

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

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

.resultat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(27, 45, 91, 0.03);
    border-bottom: 1px solid var(--gray-200);
}

.resultat-phase {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resultat-date {
    font-size: 0.82rem;
    color: var(--red);
    font-weight: 600;
}

.resultat-body {
    padding: 20px;
}

.resultat-body-single {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resultat-candidat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.resultat-note-big {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.big-score {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 800;
}

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

.note-sur {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Details toggle */
.btn-details {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(27, 45, 91, 0.03);
    border: none;
    border-top: 1px solid var(--gray-200);
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-details:hover {
    background: rgba(27, 45, 91, 0.06);
}

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

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

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

.details-table th {
    background: rgba(27, 45, 91, 0.04);
    padding: 8px 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
}

.details-table td {
    padding: 10px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-100);
}

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

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

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

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

.podium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.podium-1 .podium-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--medal-gold), #e6b800);
    color: var(--white);
    border-color: var(--medal-gold);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.4);
}

.podium-rank {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.podium-1 .podium-rank {
    background: var(--medal-gold);
    color: var(--white);
}

.podium-2 .podium-avatar {
    background: linear-gradient(135deg, var(--silver), var(--silver-light));
    border-color: var(--silver);
}

.podium-2 .podium-rank {
    background: var(--silver);
    color: var(--white);
}

.podium-3 .podium-avatar {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    border-color: #CD7F32;
}

.podium-3 .podium-rank {
    background: #CD7F32;
    color: var(--white);
}

.podium-name {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: center;
    max-width: 90px;
}

.podium-pts {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.classement-full-table th {
    background: rgba(27, 45, 91, 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(37, 99, 235, 0.03);
}

.rank-num {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.rank-1 {
    background: var(--medal-gold);
    color: var(--white);
}

.rank-2 {
    background: var(--silver);
    color: var(--white);
}

.rank-3 {
    background: #CD7F32;
    color: var(--white);
}

.rank-4 {
    color: var(--text-muted);
}

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

.filiere-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* Critères rappel */
.criteres-rappel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.critere-rappel-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(27, 45, 91, 0.06);
}

.critere-rappel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.15);
}

.critere-rappel-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.critere-rappel-card h4 {
    font-size: 0.85rem;
    color: var(--text);
}

/* ======================================================
   PAGE GALERIE
   ====================================================== */
.galerie-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.galerie-filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.galerie-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.galerie-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Photo grid */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

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

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

.galerie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(27, 45, 91, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.galerie-caption {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Videos grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(27, 45, 91, 0.06);
}

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

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary-dark);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--red);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-card:hover .video-play {
    background: var(--red);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 18px;
}

.video-info h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 5px;
}

.video-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ======================================================
   PAGE CONTACT
   ====================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrap,
.contact-info-wrap {
    position: relative;
}

.contact-form-wrap h2,
.contact-info-wrap h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 45, 91, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-social {
    margin-top: 30px;
}

.contact-social h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

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

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label i {
    color: var(--silver);
    margin-right: 4px;
}

.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 45, 91, 0.08);
}

textarea.form-control,
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ======================================================
   PAGE CONNEXION
   ====================================================== */
.login-wrapper {
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 0;
}

.login-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 0 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 60px;
    margin: 0 auto 16px;
}

.login-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(27, 45, 91, 0.25);
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

/* ======================================================
   FOOTER — Elegant clean style
   ====================================================== */
.main-footer {
    background: var(--white);
    color: var(--text);
    padding-top: 70px;
    border-top: 3px solid transparent;
    background-image: linear-gradient(var(--white), var(--white)),
        linear-gradient(90deg, var(--primary), var(--red), var(--blue));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

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

.footer-brand .footer-logo img,
.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(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.88rem;
    transition: var(--transition);
}

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

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

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

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

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

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.footer-contact li i {
    color: var(--red);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--text-light);
}

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

.footer-hide-mobile {}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 20px 0;
}

.footer-bottom .container {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

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

/* ======================================================
   ALERTS
   ====================================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-error {
    background: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.25);
    color: #991b1b;
}

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

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

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 45, 91, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 45, 91, 0.3);
    color: var(--white);
}

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

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

.btn-red {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: var(--white);
}

.btn-golden {
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: var(--white);
}

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

.btn-lg {
    padding: 15px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ======================================================
   ANIMATIONS — Scroll reveal
   ====================================================== */
.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 — IntersectionObserver */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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

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

.animate-on-scroll.animate-rotate {
    transform: rotate(-5deg) scale(0.9);
}

.animate-on-scroll.animate-blur {
    filter: blur(8px);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    filter: blur(0);
}

/* Stagger children delays */
.stagger-children>.animate-on-scroll:nth-child(1) {
    transition-delay: 0.05s;
}

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

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

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

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

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

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

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

/* ======================================================
   ADVANCED ANIMATIONS — Premium effects
   ====================================================== */

/* Shimmer / Shine sweep on text or elements */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
    animation: shimmerSweep 3s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Typewriter cursor blink */
.typewriter-cursor::after {
    content: '|';
    animation: cursorBlink 0.8s step-end infinite;
    color: var(--red);
    font-weight: 300;
    margin-left: 2px;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Floating particles behind sections */
.particles-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    background: var(--red);
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 4px;
    height: 4px;
    background: var(--blue);
    left: 25%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 8px;
    height: 8px;
    background: var(--primary);
    left: 45%;
    animation-duration: 14s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    background: var(--silver);
    left: 65%;
    animation-duration: 11s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 7px;
    height: 7px;
    background: var(--red);
    left: 80%;
    animation-duration: 13s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    width: 3px;
    height: 3px;
    background: var(--blue);
    left: 92%;
    animation-duration: 9s;
    animation-delay: 5s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-20px) scale(1);
        opacity: 0;
    }
}

/* Glowing border animation for featured cards */
.glow-border {
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--red), var(--blue), var(--primary));
    background-size: 300% 300%;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s;
    animation: glowBorderMove 4s ease infinite;
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes glowBorderMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Counter bounce animation (for stats) */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.08);
    }

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

/* Slide-up reveal for text blocks */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.reveal-text.animated span {
    transform: translateY(0);
}

/* Magnetic hover effect on buttons */
.btn-magnetic {
    transition: transform 0.2s ease-out;
}

/* Ripple effect on click */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth count-up numbers */
.count-up {
    font-family: var(--font-tech);
    font-variant-numeric: tabular-nums;
}

/* Gradient text animation */
.gradient-text-animated {
    background: linear-gradient(270deg, var(--primary), var(--red), var(--blue), var(--primary));
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Pulsing dot (live indicator) */
.pulse-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    position: relative;
}

.pulse-live::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--red);
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Hover tilt effect on cards */
.tilt-card {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-3deg) translateY(-6px);
    box-shadow: 12px 16px 40px rgba(27, 45, 91, 0.14);
}

/* Underline draw animation for links */
.underline-draw {
    position: relative;
    text-decoration: none;
}

.underline-draw::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.underline-draw:hover::after {
    width: 100%;
}

/* Breathing glow for icons */
.icon-glow {
    animation: iconBreathe 3s ease-in-out infinite;
}

@keyframes iconBreathe {

    0%,
    100% {
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(200, 16, 46, 0.3));
    }
}

/* ======================================================
   RESPONSIVE — Tablet
   ====================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-video {
        display: none;
    }

    .hero-floating-logo.logo-main {
        width: 200px;
        height: 200px;
        right: -20px;
        bottom: 5%;
        opacity: 0.5;
    }

    .hero-floating-logo.logo-ghost {
        display: none;
    }

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

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

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

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

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

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

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

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

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

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

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

    .classement-card {
        position: static;
    }

    .edition-featured {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

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

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

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

    .header-nav {
        display: none;
    }

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

    .hero-section {
        min-height: auto;
    }

    .hero-inner {
        padding: 50px 0 60px;
    }

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

    .hero-slide p {
        font-size: 0.92rem;
    }

    .hero-floating-logo.logo-main {
        width: 150px;
        height: 150px;
        right: -10px;
        bottom: 0;
    }

    .page-hero-logo-bg {
        width: 160px;
        height: 160px;
        right: -20px;
        bottom: -20px;
    }

    .page-hero-logo-bg.left {
        display: none;
    }

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

    .page-hero p {
        font-size: 0.95rem;
    }

    .values-grid,
    .concept-grid {
        grid-template-columns: 1fr;
    }

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

    .recompenses-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

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

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

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

    .sponsors-3 {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

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

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

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

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

    .passage-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .passage-ordre,
    .passage-heure {
        min-width: auto;
    }

    .timeline-deroulement {
        padding-left: 30px;
    }

    .timeline-time {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 4px;
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .slider-indicators {
        margin-top: 25px;
    }

    .footer-hide-mobile {
        display: none;
    }
}

/* ======================================================
   RESPONSIVE — Small mobile
   ====================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .criteres-grid,
    .criteres-rappel-grid {
        grid-template-columns: 1fr;
    }

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

    .galerie-filters {
        gap: 6px;
    }

    .galerie-filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

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

    .podium-1 .podium-avatar {
        width: 56px;
        height: 56px;
    }

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

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

    .hero-btn {
        padding: 11px 22px;
        font-size: 0.88rem;
    }
}
/* ======================================================
   IDENTITÉ 2026 — LA SCÈNE & LE CHRONO
   Surcouche : serif éditorial Newsreader, accent italique,
   graduations de chronomètre, filets fins, rouge = chrono.
   ====================================================== */

/* --- Titres : voix éditoriale, accent italique --- */
.section-title h2,
.about-text h3,
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.section-title h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    color: var(--primary);
}
.section-title h2 .title-accent {
    color: var(--red);
    font-style: italic;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.section-title h2 .title-accent::after { display: none; }

/* --- Sous-titre : cartouche chrono --- */
.section-title p {
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--text-light);
    margin-top: 10px;
}

/* --- Séparateur : graduations de chronomètre --- */
.section-title .title-line {
    width: 78px;
    height: 12px;
    margin: 14px auto 0;
    background:
        repeating-linear-gradient(90deg,
            var(--primary) 0 2px, transparent 2px 19px) left top / 100% 7px no-repeat,
        repeating-linear-gradient(90deg,
            rgba(27,45,91,.35) 0 1px, transparent 1px 9.5px) left bottom / 100% 4px no-repeat;
    border-radius: 0;
}
.section-title .title-line::after { display: none; }

/* --- Badges hero : cartouche de programme, plus de pilule --- */
.slide-badge {
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    border-radius: 2px;
    border: 1px solid rgba(27, 45, 91, .22);
    border-left: 3px solid var(--red);
    background: rgba(255, 255, 255, .85);
    color: var(--primary);
}

/* --- Tags : notes de marge, unifiées --- */
.about-highlight-tag {
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gray-200);
    border-radius: 0;
    color: var(--text);
    padding-left: 4px;
    padding-right: 4px;
}
.about-highlight-tag i { color: var(--red); }
.about-highlight-tag.tag-blue i,
.about-highlight-tag.tag-cyan i { color: var(--primary); }
.about-highlight-tag.tag-golden i { color: var(--silver-dark); }

/* --- Texte : sobre, accents typographiques et non colorés --- */
.about-text { text-align: left !important; }
.about-text p { text-align: left; }
.about-text strong { color: var(--primary-dark) !important; font-weight: 600; }
.about-text h3 { font-size: 1.35rem; color: var(--primary); }

/* --- Cartes : papier, filet fin, ombre légère --- */
.about-logo-card,
.programme-card,
.sponsor-card,
.partner-card {
    border: 1px solid rgba(27, 45, 91, .12);
    box-shadow: 0 1px 2px rgba(14, 26, 53, .05), 0 8px 24px rgba(14, 26, 53, .05);
    border-radius: 12px;
}

/* --- Boutons : éloquence sobre --- */
.btn, .btn-header-auth {
    font-family: var(--font-main);
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 8px;
    box-shadow: none;
}

/* --- Compte à rebours : chiffres de chrono --- */
.cd-val, .countdown-timer, .mobile-cd-num, .top-cd-timer {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* --- Focus clavier --- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* --- Héros : contenu aligné sur la grille du site, plus collé au bord --- */
.hero-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 56px);
}

/* --- Héros : titre éditorial Newsreader, accent italique --- */
.hero-slide h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
    line-height: 1.12;
    color: var(--primary);
}
.hero-slide h1 .highlight-red {
    color: var(--red);
    font-style: italic;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.hero-slide h1 .highlight-blue {
    color: var(--blue);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.hero-slide p {
    max-width: 46ch;
    font-size: 1.05rem;
}

/* --- Héros : boutons posés, cohérents avec le reste du site --- */
.hero-btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: none;
}

/* --- Textes justifiés sur tout le site (préférence client) --- */
.main-content p { text-align: justify; }
/* Exceptions : libellés courts et éléments centrés */
.section-title p { text-align: center; }
.no-data p,
.video-placeholder p,
.sponsor-placeholder p,
.partenaire-card p,
.mobile-menu-copy,
.footer-bottom p,
.flash-message p { text-align: center; }

/* --- Mobile : le logo flottant animé gêne la lecture, on le retire --- */
@media (max-width: 768px) {
    .hero-floating-logo,
    .hero-slide .slide-bg-logo { display: none !important; }
}

/* fix : les hero de pages et cartes courtes restent centrés malgré la justification */
.page-hero p,
.page-hero-breadcrumb,
.value-card p,
.cta-section p,
.ed-empty p,
.doc-empty p { text-align: center; }

/* --- Footer mobile : tout centré --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .footer-col { text-align: center; }
    .footer-logo { justify-content: center; margin: 0 auto; }
    .footer-logo img { margin: 0 auto; }
    .footer-tagline { text-align: center; }
    .footer-social { justify-content: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-links li { text-align: center; }
    .footer-links a { justify-content: center; }
    .footer-contact li { justify-content: center; }
}

/* --- Bandeau de pages : filigrane logo MM180 animé (comme les olympiades) --- */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('../img/logos/logo-mm180s.png') center center / cover no-repeat,
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(200, 16, 46, 0.08) 0%, transparent 40%);
    opacity: 0.08;
    pointer-events: none;
    animation: mmHeroLogoBreathe 8s ease-in-out infinite;
}
@keyframes mmHeroLogoBreathe {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50%      { opacity: 0.14; transform: scale(1.05); }
}
