/* ============================================================
   FSRS — Fédération Sénégalaise de Roller & Skateboard
   Design System Global — Refonte 2025
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS — Variables CSS enrichies
   ══════════════════════════════════════════════════════════ */
:root {
    /* Couleurs primaires FSRS */
    --primary:        #2E8B57;
    --primary-dark:   #1a3a2f;
    --primary-mid:    #236b45;
    --primary-light:  #f0f7f3;
    --gold:           #FFD700;
    --gold-dark:      #e6c200;
    --gold-light:     rgba(255,215,0,0.15);
    --white:          #FFFFFF;
    --off-white:      #F9FAFB;
    --text-dark:      #1a1a2e;
    --text-body:      #374151;
    --text-muted:     #6B7280;
    --border:         rgba(0,0,0,0.07);

    /* Police */
    --font-body:    'Montserrat', sans-serif;
    --font-display: 'Oswald', sans-serif;

    /* Spacing tokens */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border-radius tokens */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   20px;
    --radius-pill: 50px;
    --radius-full: 9999px;

    /* Shadow tokens */
    --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:   0 12px 35px rgba(0,0,0,0.12);
    --shadow-xl:   0 24px 60px rgba(0,0,0,0.16);
    --shadow-green: 0 8px 30px rgba(46,139,87,0.25);
    --shadow-gold:  0 8px 30px rgba(255,215,0,0.35);

    /* Gradient tokens */
    --grad-hero:    linear-gradient(135deg, rgba(26,58,47,0.75) 0%, rgba(46,139,87,0.55) 100%);
    --grad-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --grad-gold:    linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --grad-card:    linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.70) 100%);

    /* Transitions */
    --ease:     all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.5); }
    50%       { box-shadow: 0 0 0 12px rgba(255,215,0,0); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* ── Utilitaires ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-light);
    border: 1px solid rgba(255,215,0,0.3);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-md);
}

/* ── Titre de section commun ── */
.section-title-wrap {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title-wrap h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.section-title-wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--grad-gold);
    border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ══════════════════════════════════════════════════════════ */
header {
    background: var(--grad-primary);
    color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.18);
    transition: var(--ease);
    backdrop-filter: blur(0px);
}

/* Glassmorphism au scroll */
header.scrolled {
    padding: 0.4rem 0;
    background: rgba(26,58,47,0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,215,0,0.12);
}

header .container,
header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

header .logo img {
    height: 56px;
    width: auto;
    border-radius: var(--radius-md);
    transition: var(--ease);
}

header.scrolled .logo img {
    height: 46px;
}

/* Navigation */
header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

header nav ul li a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--ease);
}

/* Underline animé doré */
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: var(--radius-full);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header nav ul li a:hover {
    color: var(--gold);
    background: rgba(255,215,0,0.08);
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: calc(100% - 1.8rem);
}

header nav ul li a.active {
    color: var(--gold);
    background: rgba(255,215,0,0.1);
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER MENU MOBILE
   ══════════════════════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   HERO — Bannière principale
   ══════════════════════════════════════════════════════════ */
.hero {
    min-height: 80vh;
    height: auto;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    /* Clip-path diagonal en bas */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: -4rem;
    padding-bottom: 6rem;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 8s ease;
}

/* Overlay dégradé enrichi */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(26,58,47,0.80) 0%,
        rgba(46,139,87,0.45) 50%,
        rgba(0,0,0,0.65) 100%
    );
    z-index: 1;
}

/* Motif géométrique décoratif */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,215,0,0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46,139,87,0.12) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 0 var(--space-xl);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 2px 16px rgba(0,0,0,0.55);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.93);
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    margin-bottom: var(--space-xl);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--grad-gold);
    color: var(--primary-dark);
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--ease-out);
    box-shadow: var(--shadow-gold);
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px rgba(255,215,0,0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.70);
    transition: var(--ease-out);
    display: inline-block;
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: var(--white);
    transform: translateY(-4px);
}

/* ══════════════════════════════════════════════════════════
   SECTION STATS / CHIFFRES CLÉS
   ══════════════════════════════════════════════════════════ */
.stats-section {
    position: relative;
    padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
    z-index: 2;
}

/* Motif losanges en fond */
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary-dark);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 28px,
            rgba(255,215,0,0.04) 28px,
            rgba(255,215,0,0.04) 30px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 28px,
            rgba(255,215,0,0.04) 28px,
            rgba(255,215,0,0.04) 30px
        );
    z-index: 0;
}

.stats-section > * {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    color: var(--white);
    padding: var(--space-xl);
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: var(--radius-lg);
    transition: var(--ease);
}

.stat-card:hover::before {
    border-color: rgba(255,215,0,0.40);
    background: rgba(255,215,0,0.04);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    transition: var(--ease);
}

.stat-card:hover .stat-icon {
    background: rgba(255,215,0,0.2);
    animation: floatY 2s ease-in-out infinite;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--gold);
    stroke: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

/* ══════════════════════════════════════════════════════════
   ACTUALITÉS (home section)
   ══════════════════════════════════════════════════════════ */
.actualites {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--off-white);
    position: relative;
    z-index: 2;
}

.actualites .container {
    max-width: 1200px;
    margin: 0 auto;
}

.actualites h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--primary-dark);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    position: relative;
    padding-bottom: var(--space-md);
}

.actualites h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--grad-gold);
    border-radius: var(--radius-full);
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-xl);
}

/* Cards avec border-left verte */
.actualites-grid article {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: var(--ease-out);
    display: flex;
    flex-direction: column;
}

.actualites-grid article:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(46,139,87,0.18);
    border-left-color: var(--gold);
}

.actualites-grid article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.actualites-grid article:hover img {
    transform: scale(1.06);
}

.actualites-grid article h3 {
    padding: var(--space-md) var(--space-md) var(--space-sm);
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
}

.actualites-grid article p {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* ══════════════════════════════════════════════════════════
   PRÉSENTATION
   ══════════════════════════════════════════════════════════ */
.presentation {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.presentation::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46,139,87,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.presentation::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,215,0,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.presentation .container {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.presentation h2 {
    margin-bottom: var(--space-lg);
    color: var(--primary-dark);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    position: relative;
    padding-bottom: var(--space-md);
}

.presentation h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--grad-gold);
    border-radius: var(--radius-full);
}

.presentation p {
    color: var(--text-body);
    margin-bottom: var(--space-xl);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════
   BOUTON GLOBAL .btn
   ══════════════════════════════════════════════════════════ */
.btn {
    display: inline-block;
    background: var(--grad-primary);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--ease-out);
    box-shadow: var(--shadow-green);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(46,139,87,0.4);
}

.btn:hover::before {
    transform: translateX(100%);
}

/* ══════════════════════════════════════════════════════════
   DISCIPLINES (home grid)
   ══════════════════════════════════════════════════════════ */
.disciplines {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--white);
}

.disciplines .container {
    max-width: 1200px;
    margin: 0 auto;
}

.disciplines h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--primary-dark);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    position: relative;
    padding-bottom: var(--space-md);
}

.disciplines h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--grad-gold);
    border-radius: var(--radius-full);
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.discipline {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--ease-out);
    cursor: pointer;
    position: relative;
}

.discipline:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 55px rgba(46,139,87,0.22);
}

.discipline img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discipline:hover img {
    transform: scale(1.08);
}

/* Overlay sombre au hover avec titre visible */
.discipline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.discipline:hover::before {
    opacity: 1;
}

.discipline h3 {
    position: relative;
    z-index: 2;
    padding: var(--space-md) var(--space-lg);
    background: var(--grad-primary);
    color: var(--white);
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--ease);
}

.discipline:hover h3 {
    background: var(--gold);
    color: var(--primary-dark);
}

/* ══════════════════════════════════════════════════════════
   PARTENAIRES SLIDER
   ══════════════════════════════════════════════════════════ */
.partners-slider {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--primary-light);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.partners-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-gold);
}

.partners-slider .container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-slider h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--primary-dark);
    margin-bottom: var(--space-2xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    align-items: center;
    /* Masques de fondu sur les bords */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.slide img {
    width: 160px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    padding: var(--space-md);
    /* Filtre grisé par défaut → couleur au hover */
    filter: grayscale(0.35) opacity(0.8);
    transition: var(--ease-out);
}

.slide img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.08) translateY(-4px);
    box-shadow: var(--shadow-green);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
    background: var(--grad-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Séparateur doré 4px en haut */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-gold);
    z-index: 2;
}

/* Motif décoratif arrière-plan */
.footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.footer-main {
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.footer-col h3 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.footer-description {
    color: rgba(255,255,255,0.80);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    font-size: 0.93rem;
}

.footer-certifications {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cert-badge {
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.3);
    color: var(--gold);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--ease);
}

.cert-badge:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Liens footer */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    font-size: 0.93rem;
    transition: var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '›';
    color: var(--gold);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--ease);
}

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

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact footer */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255,255,255,0.80);
    font-size: 0.93rem;
}

.contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 1px;
}

/* Newsletter */
.footer-newsletter p {
    color: rgba(255,255,255,0.80);
    margin-bottom: var(--space-md);
    font-size: 0.93rem;
    line-height: 1.65;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.newsletter-form input {
    padding: 0.9rem var(--space-md);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.93rem;
    transition: var(--ease);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.50);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

.btn-newsletter {
    padding: 0.9rem var(--space-lg);
    background: var(--grad-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.93rem;
    cursor: pointer;
    transition: var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-newsletter:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* Réseaux sociaux avec couleurs spécifiques */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.10);
    border: 2px solid rgba(255,255,255,0.18);
    color: var(--white);
    text-decoration: none;
    transition: var(--ease-out);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Facebook → bleu */
.social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(24,119,242,0.45);
}

/* Instagram → gradient */
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(220,39,67,0.45);
}

/* YouTube → rouge */
.social-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255,0,0,0.40);
}

/* Twitter/X → ciel */
.social-icon.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(29,161,242,0.40);
}

/* Fallback hover générique */
.social-icon:hover {
    transform: translateY(-4px);
}

/* Footer bottom */
.footer-bottom {
    background: rgba(0,0,0,0.22);
    padding: 1.5rem var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: rgba(255,255,255,0.60);
    font-size: 0.88rem;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255,255,255,0.60);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--ease);
}

.legal-links a:hover {
    color: var(--gold);
}

.legal-links .separator {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════
   ANIMATION CLASSES (utilisées via JS au scroll)
   ══════════════════════════════════════════════════════════ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.animate-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Délais en cascade */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */

/* ── 1200px ── */
@media (max-width: 1200px) {
    .container { padding: 0 var(--space-xl); }
    .hero { background-attachment: scroll; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
    .hero { min-height: 72vh; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .disciplines-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ── 968px — Menu mobile ── */
@media (max-width: 968px) {
    .hamburger { display: flex; }

    header .container,
    header .nav-container {
        flex-wrap: wrap;
        padding: 0.75rem var(--space-md);
        gap: 0;
    }

    header nav {
        order: 3;
        width: 100%;
    }

    header nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0.4rem 0 0.6rem;
    }

    header nav ul li {
        width: 100%;
        margin-left: 0;
    }

    header nav ul li a {
        display: block;
        font-size: 1rem;
        padding: 0.7rem 1rem;
        border-radius: var(--radius-sm);
    }

    /* Bouton "Nous rejoindre" dans le header */
    .btn-header-cta { display: none !important; }
    header > .btn-header-cta,
    header > a[href*="affiliation"] {
        display: none !important;
    }
}

/* ── 768px ── */
@media (max-width: 768px) {
    header .container,
    header .nav-container {
        padding: 0.6rem var(--space-md);
    }

    .hero {
        min-height: 60vh;
        clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
        margin-bottom: -3rem;
    }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p  { font-size: 0.95rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
    .stat-number { font-size: 2.5rem; }

    .actualites-grid,
    .disciplines-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

    .footer-about {
        text-align: center;
    }

    .footer-about .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

    .footer-bottom-content { flex-direction: column; text-align: center; }
    .legal-links { justify-content: center; }
}

/* ── 576px ── */
@media (max-width: 576px) {
    :root {
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }

    header .logo img { height: 48px; }

    .hero {
        min-height: 55vh;
        clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
        margin-bottom: -2rem;
        padding-bottom: 4rem;
    }

    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p  { font-size: 0.9rem; }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.88rem;
    }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
    .stat-number { font-size: 2rem; }
    .stat-label  { font-size: 0.78rem; }

    .actualites,
    .presentation,
    .disciplines,
    .partners-slider {
        padding: var(--space-2xl) var(--space-md);
    }

    .actualites h2,
    .presentation h2,
    .disciplines h2 { font-size: 1.5rem; }

    .actualites-grid,
    .disciplines-grid { grid-template-columns: 1fr; gap: var(--space-md); }

    .discipline img { height: 200px; }

    .slide img { width: 120px; max-height: 80px; padding: var(--space-sm); }
    .slider-track { gap: 1.5rem; }

    .btn { padding: 0.75rem 1.6rem; font-size: 0.88rem; }

    .footer-main { padding: var(--space-xl) var(--space-md); }
    .footer-col h3 { text-align: center; font-size: 1rem; }
    .footer-links,
    .footer-contact { text-align: center; }
    .footer-contact li { justify-content: center; }
    .footer-links a { padding-left: 0 !important; }

    .footer-bottom { padding: 1.2rem var(--space-md); }
    .legal-links { flex-direction: column; gap: var(--space-sm); }
    .legal-links .separator { display: none; }
}

/* ── 360px ── */
@media (max-width: 360px) {
    header .logo img { height: 42px; }
    .hero-content h1 { font-size: 1.4rem; }
    .stat-number { font-size: 1.8rem; }
    .actualites h2,
    .presentation h2,
    .disciplines h2 { font-size: 1.3rem; }
    .social-icon { width: 38px; height: 38px; }
    .social-icon svg { width: 17px; height: 17px; }
}

/* ── Accessibilité : réduction de mouvement ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero { background-attachment: scroll; clip-path: none; }
    .slider-track { animation: none; }
}
