/* ═══════════════════════════════════════════
   J'AIME COURIR — Site Vitrine Pro
   Athletic / Bold / Morocco
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
    --primary: #E31C46;
    --primary-d: #C4163B;
    --primary-l: rgba(227,28,70,.08);
    --primary-glow: rgba(227,28,70,.25);
    --dark: #0A0A0A;
    --dark2: #141414;
    --dark3: #1E1E1E;
    --text: #1A1A1A;
    --text2: #555;
    --text3: #999;
    --light: #F8F7F4;
    --light2: #F0EDE8;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
    --transition: .4s cubic-bezier(.25,.46,.45,.94);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-d); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ── TYPOGRAPHY ── */
.heading-xl { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; letter-spacing: -2px; }
.heading-lg { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.heading-md { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; line-height: 1.2; }
.heading-sm { font-size: 1.1rem; font-weight: 700; }
.text-lg { font-size: 1.15rem; line-height: 1.7; color: var(--text2); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.accent-font { font-family: 'Playfair Display', serif; font-style: italic; }
.text-primary { color: var(--primary) !important; }

/* ── BUTTONS ── */
.btn-primary-custom {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: var(--white); border: none;
    padding: 14px 32px; border-radius: 60px; font-weight: 600; font-size: .95rem;
    transition: var(--transition); cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary-custom:hover { background: var(--primary-d); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-primary-custom.lg { padding: 18px 42px; font-size: 1.05rem; }

.btn-outline-custom {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3);
    padding: 12px 30px; border-radius: 60px; font-weight: 600; font-size: .95rem;
    transition: var(--transition); cursor: pointer; text-decoration: none;
}
.btn-outline-custom:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

.btn-dark-custom {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--dark); color: var(--white); border: none;
    padding: 14px 32px; border-radius: 60px; font-weight: 600; font-size: .95rem;
    transition: var(--transition); cursor: pointer; text-decoration: none;
}
.btn-dark-custom:hover { background: var(--dark3); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
    padding: 12px 28px; border-radius: 60px; font-weight: 600; font-size: .95rem;
    transition: var(--transition); cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { background: var(--primary); color: var(--white); }

/* ── BADGE ── */
.badge-custom {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 30px; font-size: .75rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.badge-custom.red { background: var(--primary); color: var(--white); }
.badge-custom.dark { background: var(--dark); color: var(--white); }
.badge-custom.light { background: var(--light); color: var(--text); }
.badge-custom.outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }

/* ═══════════════════════════════
   NAVBAR
   ═══════════════════════════════ */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0; transition: var(--transition);
}
.site-nav.scrolled {
    background: rgba(10,10,10,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 12px 0; box-shadow: 0 4px 30px rgba(0,0,0,.2);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 40px; object-fit: contain; }
.nav-logo-text { color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: 3px; }
.nav-logo-heart { color: var(--primary); font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500; padding: 8px 16px;
    border-radius: 8px; transition: var(--transition); text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta {
    color: var(--white); background: var(--primary); padding: 10px 24px;
    border-radius: 60px; font-weight: 600; font-size: .875rem;
    border: none; transition: var(--transition); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: var(--primary-d); color: var(--white); transform: scale(1.03); }
.nav-toggle {
    display: none; background: none; border: none; color: var(--white);
    font-size: 1.5rem; cursor: pointer; padding: 8px;
}
.nav-mobile {
    /* z-index 1100 > .annonce-bar (1001) > .site-nav (1000) */
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,.98); z-index: 1100; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    opacity: 0; transition: opacity .25s ease;
    overflow-y: auto; padding: 80px 20px 40px;
    -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { display: flex; opacity: 1; }
.nav-mobile a {
    color: var(--white); font-size: 1.3rem; font-weight: 600;
    padding: 12px 16px; text-decoration: none; border-radius: 8px;
    text-align: center; min-width: 220px;
}
.nav-mobile a:active { background: rgba(255,255,255,.08); color: var(--primary); }
.nav-mobile a.active { color: var(--primary); }
.nav-mobile .close-nav {
    position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.08);
    border: none; color: var(--white); font-size: 1.6rem; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.nav-mobile .close-nav:hover { background: rgba(255,255,255,.15); }

/* Blocage scroll body quand menu mobile ouvert */
body.menu-open { overflow: hidden; }

@media (max-width: 991px) {
    .nav-links, .nav-cta-wrap { display: none; }
    .nav-toggle { display: block; }
}

/* ═══════════════════════════════
   HERO — Tilted frame + thumbnails
   ═══════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    overflow: hidden; background: var(--dark);
    display: flex; align-items: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 65% 50%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 80%, rgba(255,255,255,.015) 0%, transparent 40%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1320px; margin: 0 auto; padding: 130px 40px 80px;
    width: 100%; display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 56px; align-items: center; position: relative; z-index: 2;
}

/* ── Left ── */
.hero-left { position: relative; }
.hero-tag { margin-bottom: 24px; }
.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 900; color: var(--white);
    line-height: 1.05; letter-spacing: -2px; margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }
.hero-sub {
    font-size: clamp(.95rem, 1.3vw, 1.08rem); color: rgba(255,255,255,.5);
    max-width: 460px; line-height: 1.75; margin-bottom: 36px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Right: frame + thumbs ── */
.hero-right { position: relative; }
.hero-gallery {
    display: flex; flex-direction: column; gap: 16px;
}

/* Main tilted frame */
.hero-frame-wrap {
    position: relative; perspective: 800px;
    /* Marge négative compensée par le box-shadow extérieur */
    max-width: 100%;
}
.hero-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 10;
    border-radius: 18px; overflow: hidden;
    transform: rotate(-2.5deg);
    box-shadow:
        0 30px 70px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.06),
        0 0 50px -10px var(--primary-glow);
    transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.hero-frame:hover { transform: rotate(-1deg) scale(1.01); }
.hero-frame::before {
    content: ''; position: absolute; inset: -1px; z-index: 3;
    border-radius: 19px; pointer-events: none;
    border: 1.5px solid rgba(255,255,255,.08);
}

/* Slides */
.hero-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity .8s ease, transform 5s ease;
    transform: scale(1.04);
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%),
        linear-gradient(90deg, rgba(0,0,0,.1) 0%, transparent 25%);
}

/* Counter + label inside frame */
.hero-slide-counter {
    position: absolute; top: 14px; right: 14px; z-index: 4;
    background: rgba(0,0,0,.4); backdrop-filter: blur(14px);
    color: #fff; padding: 5px 12px; border-radius: 30px;
    font-size: .68rem; font-weight: 600; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,.08);
}
.hero-slide-label {
    position: absolute; bottom: 14px; left: 14px; z-index: 4;
    background: rgba(0,0,0,.4); backdrop-filter: blur(14px);
    color: #fff; padding: 7px 16px; border-radius: 30px;
    font-size: .72rem; font-weight: 600; letter-spacing: .5px;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,.08);
    max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-slide-label i { color: var(--primary); flex-shrink: 0; }

/* Nav arrows */
.hero-nav {
    position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,.3); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff; font-size: .9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); opacity: 0;
}
.hero-frame:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: var(--primary); border-color: var(--primary); }
.hero-nav.prev { left: 10px; }
.hero-nav.next { right: 10px; }

/* Sur écrans tactiles : flèches toujours visibles + cible tactile élargie */
@media (hover: none), (max-width: 991px) {
    .hero-nav {
        opacity: .95;
        width: 44px; height: 44px;
        background: rgba(0,0,0,.55);
        border-color: rgba(255,255,255,.2);
        font-size: 1.05rem;
    }
    .hero-nav.prev { left: 8px; }
    .hero-nav.next { right: 8px; }
    .hero-nav:active { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(.92); }
}

/* ── Thumbnails strip ── */
.hero-thumbs {
    display: flex; gap: 10px; padding-left: 24px;
    align-items: center;
}
/* Wrapper scrollable + indicateur visuel de débordement à droite */
.hero-thumbs-wrap {
    position: relative;
}
.hero-thumbs-wrap::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0;
    width: 40px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(10,10,10,.85));
    opacity: 0; transition: opacity .2s ease;
}
.hero-thumbs-wrap.has-overflow-right::after { opacity: 1; }

/* ── DOTS de pagination (mobile) ── */
.hero-dots {
    display: none;
    justify-content: center; align-items: center;
    gap: 8px; margin-top: 14px; padding: 4px 8px;
    flex-wrap: wrap; max-width: 100%;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    border: none; padding: 0; cursor: pointer;
    transition: all .3s cubic-bezier(.25,.46,.45,.94);
    -webkit-tap-highlight-color: transparent;
}
.hero-dot:hover { background: rgba(255,255,255,.5); }
.hero-dot.active {
    background: var(--primary);
    width: 24px; border-radius: 4px;
    box-shadow: 0 0 12px var(--primary-glow);
}
.hero-thumb {
    width: 100px; height: 64px; border-radius: 10px;
    overflow: hidden; cursor: pointer; flex-shrink: 0;
    border: 2px solid transparent;
    opacity: .5; transform: rotate(1.5deg);
    transition: all .4s cubic-bezier(.25,.46,.45,.94);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    position: relative;
}
.hero-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.25); border-radius: 8px;
    transition: var(--transition); pointer-events: none;
}
.hero-thumb:nth-child(even) { transform: rotate(-1deg); }
.hero-thumb:nth-child(3n) { transform: rotate(2deg); }

.hero-thumb:hover {
    opacity: .8; transform: rotate(0deg) scale(1.08) translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.hero-thumb:hover::after { background: transparent; }

.hero-thumb.active {
    opacity: 1; border-color: var(--primary);
    transform: rotate(0deg) scale(1.1) translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 20px var(--primary-glow);
}
.hero-thumb.active::after { background: transparent; }

.hero-thumb-num {
    position: absolute; bottom: 4px; right: 6px; z-index: 2;
    color: #fff; font-size: .55rem; font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* Decorations */
.hero-deco { position: absolute; pointer-events: none; }
.deco-corner-tl {
    top: -8px; left: -8px; width: 36px; height: 36px;
    border-top: 2px solid var(--primary); border-left: 2px solid var(--primary);
    border-radius: 3px 0 0 0; opacity: .35;
}
.deco-corner-br {
    bottom: -8px; right: -8px; width: 36px; height: 36px;
    border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary);
    border-radius: 0 0 3px 0; opacity: .35;
}
.deco-ring {
    width: 120px; height: 120px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.04);
    top: -25px; right: -25px; z-index: 0;
    animation: decoSpin 30s linear infinite;
}
.deco-ring::before {
    content: ''; position: absolute; width: 7px; height: 7px;
    background: var(--primary); border-radius: 50%;
    top: -3px; left: 50%; margin-left: -3px;
    box-shadow: 0 0 12px var(--primary-glow);
}
@keyframes decoSpin { to { transform: rotate(360deg); } }

/* Scroll */
.hero-scroll {
    position: absolute; bottom: 36px; left: 40px; z-index: 20;
    color: rgba(255,255,255,.25); font-size: .6rem; text-transform: uppercase;
    letter-spacing: 3px; writing-mode: vertical-rl;
    display: flex; align-items: center; gap: 10px;
}
.hero-scroll::after {
    content: ''; width: 1px; height: 40px;
    background: rgba(255,255,255,.1); display: block;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{height:40px;opacity:.15} 50%{height:24px;opacity:.5} }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 36px; padding: 120px 28px 70px; }
    .hero-thumb { width: 80px; height: 52px; }
}
@media (max-width: 991px) {
    .hero { min-height: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 110px 24px 50px; }
    .hero-right { order: -1; }
    .hero-frame { transform: rotate(-1.5deg); }
    .hero-left { text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-thumbs { justify-content: center; padding-left: 0; }
    .deco-corner-tl, .deco-corner-br, .deco-ring { display: none; }
}
@media (max-width: 600px) {
    .hero-inner { padding: 100px 16px 40px; gap: 20px; }
    /* Pas de rotation sur mobile : évite débordement latéral + bords coupés */
    .hero-frame { border-radius: 14px; transform: none; aspect-ratio: 4 / 3; }
    .hero-frame:hover { transform: none; }
    .hero-scroll { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions a { text-align: center; justify-content: center; }
    /* Flèches : RESTENT visibles (correction du display:none qui cassait la nav tactile) */
    .hero-nav { display: flex; }
    /* Masquer les miniatures sur mobile, afficher les dots à la place */
    .hero-thumbs, .hero-thumbs-wrap { display: none !important; }
    .hero-dots { display: flex; }
    /* Counter et label plus lisibles */
    .hero-slide-counter { font-size: .72rem; padding: 5px 11px; }
    .hero-slide-label { font-size: .75rem; padding: 7px 14px; max-width: calc(100% - 28px); }
}

/* ═══════════════════════════════
   SECTIONS
   ═══════════════════════════════ */
.section { padding: 100px 0; position: relative; }
.section.sm { padding: 60px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--light); }
.section-alt { background: var(--light2); }
.container-site { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .text-xs { color: var(--primary); margin-bottom: 12px; display: block; }
.section-header p { max-width: 550px; margin: 16px auto 0; color: var(--text2); font-size: 1.05rem; line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,.5); }

/* ── STATS ROW ── */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    background: var(--white); border-radius: var(--radius);
    padding: 48px; margin-top: -60px; position: relative; z-index: 20;
    box-shadow: var(--shadow-lg);
}
.stat-item { text-align: center; }
.stat-num {
    font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: var(--dark);
    line-height: 1; margin-bottom: 4px;
}
.stat-num span { color: var(--primary); }
.stat-label { font-size: .85rem; color: var(--text3); font-weight: 500; }

@media (max-width: 768px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 32px; margin-top: -40px; }
}

/* ── EVENT CARDS ── */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); position: relative;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.event-card-img { position: relative; height: 220px; overflow: hidden; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.event-card:hover .event-card-img img { transform: scale(1.06); }
.event-card-img .badge-custom { position: absolute; top: 16px; left: 16px; }
.event-card-date {
    position: absolute; top: 16px; right: 16px;
    background: var(--white); border-radius: var(--radius-sm);
    padding: 8px 14px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.event-card-date .day { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--dark); }
.event-card-date .month { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 700; }
.event-card-body { padding: 24px; }
.event-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.event-card-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.event-card-meta span { font-size: .82rem; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.event-card-meta i { color: var(--primary); font-size: .85rem; }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--light); }
.event-places { font-size: .8rem; color: var(--text3); }
.event-places strong { color: var(--dark); }

.event-no-img { height: 220px; background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%); display: flex; align-items: center; justify-content: center; }
.event-no-img i { font-size: 3rem; color: rgba(255,255,255,.15); }

@media (max-width: 991px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .events-grid { grid-template-columns: 1fr; } }

/* ── GALERIE ── */
.galerie-tabs {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px;
}
.galerie-tab {
    padding: 10px 24px; border-radius: 60px; font-size: .85rem; font-weight: 600;
    cursor: pointer; border: 2px solid var(--light2); background: var(--white);
    color: var(--text2); transition: var(--transition);
}
.galerie-tab:hover { border-color: var(--primary); color: var(--primary); }
.galerie-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.galerie-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.galerie-item {
    border-radius: var(--radius-sm); overflow: hidden; position: relative;
    aspect-ratio: 1; cursor: pointer;
}
.galerie-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s; filter: brightness(.95);
}
.galerie-item:hover img { transform: scale(1.08); filter: brightness(1); }
.galerie-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
    opacity: 0; transition: var(--transition);
    display: flex; align-items: flex-end; padding: 16px;
}
.galerie-item:hover .galerie-item-overlay { opacity: 1; }
.galerie-item-overlay span { color: var(--white); font-size: .85rem; font-weight: 500; }

.galerie-item.tall { grid-row: span 2; aspect-ratio: auto; }

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

/* Lightbox */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.95); align-items: center; justify-content: center;
    padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px; background: none; border: none;
    color: var(--white); font-size: 2rem; cursor: pointer; z-index: 10;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1); border: none; color: var(--white);
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: var(--primary); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.7); font-size: .9rem; text-align: center;
}

/* ── BOUTIQUE ── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img { position: relative; height: 240px; background: var(--light); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-stock {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 10px; border-radius: 20px; font-size: .7rem; font-weight: 700;
}
.product-stock.ok { background: #DCFCE7; color: #166534; }
.product-stock.low { background: #FEF3C7; color: #92400E; }
.product-stock.out { background: #FEE2E2; color: #991B1B; }
.product-card-body { padding: 20px; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.product-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.product-desc { font-size: .82rem; color: var(--text3); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.product-price small { font-size: .7rem; font-weight: 500; color: var(--text3); }
.product-no-img { height: 240px; background: linear-gradient(135deg, var(--light) 0%, var(--light2) 100%); display: flex; align-items: center; justify-content: center; }
.product-no-img i { font-size: 3rem; color: #ddd; }

@media (max-width: 991px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* ── ANNONCES TICKER ── */
.annonce-bar {
    background: var(--primary); color: var(--white); padding: 10px 0;
    font-size: .82rem; font-weight: 500; overflow: hidden;
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
}
.annonce-bar + .site-nav { top: 36px; }
.annonce-bar + .site-nav.scrolled { top: 0; }
.annonce-bar .ticker {
    display: flex; animation: ticker 25s linear infinite; white-space: nowrap;
}
.annonce-bar .ticker-item { padding: 0 60px; display: flex; align-items: center; gap: 10px; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── PAGE HERO (internal pages) ── */
.page-hero {
    background: var(--dark); color: var(--white); padding: 140px 0 80px;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, var(--primary-glow) 0%, transparent 50%);
}
.page-hero .text-xs { color: var(--primary); margin-bottom: 12px; display: block; }
.page-hero h1 { position: relative; }
.page-hero p { position: relative; color: rgba(255,255,255,.5); max-width: 500px; margin-top: 16px; line-height: 1.7; }

/* ── CONTACT FORM ── */
.form-floating-custom {
    position: relative; margin-bottom: 20px;
}
.form-floating-custom input,
.form-floating-custom textarea,
.form-floating-custom select {
    width: 100%; padding: 16px 20px; border: 2px solid var(--light2);
    border-radius: var(--radius-sm); font-size: .95rem; font-family: 'Outfit', sans-serif;
    background: var(--white); transition: var(--transition); color: var(--text);
}
.form-floating-custom input:focus,
.form-floating-custom textarea:focus,
.form-floating-custom select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-l);
}
.form-floating-custom label {
    font-size: .82rem; font-weight: 600; color: var(--text2);
    display: block; margin-bottom: 6px;
}

/* ── ABOUT COMPONENTS ── */

/* Homepage about section */
.about-home {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.about-home-highlights {
    margin-top: 28px; display: flex; flex-direction: column; gap: 20px;
}
.about-highlight {
    display: flex; gap: 16px; align-items: flex-start;
}
.about-highlight-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--primary-l); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.about-highlight h4 {
    font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--dark);
}
.about-highlight p {
    font-size: .85rem; color: var(--text3); margin: 0; line-height: 1.5;
}

/* Photo layout */
.about-home-photos {
    position: relative; height: 420px;
}
.about-home-photo {
    position: absolute; border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.about-home-photo.photo-1 {
    width: 72%; height: 75%; top: 0; left: 0; z-index: 2;
    transform: rotate(-2deg);
}
.about-home-photo.photo-2 {
    width: 55%; height: 55%; bottom: 0; right: 0; z-index: 3;
    transform: rotate(3deg);
    border: 3px solid #fff;
}
.about-home-badge {
    position: absolute; top: 16px; right: 24px; z-index: 4;
    background: #fff; border-radius: 14px; padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    display: flex; align-items: center; gap: 10px;
    font-size: .8rem; color: var(--text2); line-height: 1.3;
}

/* Photo placeholder (for admin to replace later) */
.about-photo-placeholder {
    width: 100%; height: 100%; min-height: 160px;
    background: linear-gradient(135deg, var(--light) 0%, #e8e8e8 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text3); border-radius: inherit;
}
.about-photo-placeholder.sm { min-height: 120px; }

/* A-propos page — intro */
.about-intro {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
.about-intro-visual { position: relative; }
.about-photo-main {
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.1);
    transform: rotate(-1.5deg);
}
.about-year-badge {
    position: absolute; bottom: -16px; right: -12px; z-index: 4;
    background: var(--primary); color: #fff; border-radius: 14px;
    padding: 16px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
    display: flex; align-items: center; gap: 12px;
}
.about-year-badge .year {
    font-size: 2rem; font-weight: 900; line-height: 1;
}
.about-year-badge .lbl {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; opacity: .85; line-height: 1.3;
}

/* A-propos page — activities */
.about-activities {
    display: flex; flex-direction: column; gap: 40px;
}
.about-activity-card {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px;
    align-items: center; background: #fff; border-radius: 18px;
    overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.about-activity-card.reverse { direction: rtl; }
.about-activity-card.reverse > * { direction: ltr; }
.about-activity-img { overflow: hidden; height: 100%; min-height: 220px; }
.about-activity-img .about-photo-placeholder { height: 100%; border-radius: 0; }
.about-activity-body { padding: 32px; }
.about-activity-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--primary-l); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 16px;
}
.about-activity-body h3 {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: var(--dark);
}
.about-activity-body p {
    font-size: .92rem; color: var(--text3); line-height: 1.7; margin: 0;
}

/* Responsive about */
@media (max-width: 991px) {
    .about-home { grid-template-columns: 1fr; gap: 36px; }
    .about-home-photos { height: 320px; }
    .about-intro { grid-template-columns: 1fr; gap: 36px; }
    .about-activity-card { grid-template-columns: 1fr; }
    .about-activity-card.reverse { direction: ltr; }
    .about-activity-img { min-height: 180px; }
}
@media (max-width: 600px) {
    .about-home-photos { height: 260px; }
    .about-home-photo.photo-1 { width: 68%; height: 70%; }
    .about-home-photo.photo-2 { width: 52%; height: 50%; }
}

/* ── CTA SECTION ── */
.cta-section {
    background: var(--dark); padding: 100px 0; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: var(--primary); opacity: .08; top: -200px; right: -100px;
}
.cta-section::after {
    content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: var(--primary); opacity: .05; bottom: -100px; left: -50px;
}
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 650px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.5); margin-bottom: 36px; font-size: 1.1rem; line-height: 1.7; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: var(--white); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-logo img { height: 36px; }
.footer-brand-logo .nav-logo-heart { font-size: 22px; }
.footer-brand-logo span { font-weight: 800; letter-spacing: 3px; font-size: 1rem; }
.footer-brand p { color: rgba(255,255,255,.4); font-size: .9rem; line-height: 1.7; max-width: 300px; }
.footer-title { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 1rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .82rem; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ── ABOUT FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
    background: var(--white); border-radius: var(--radius); padding: 36px 28px;
    box-shadow: var(--shadow); transition: var(--transition); text-align: center;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--primary-l);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.feature-icon i { font-size: 1.5rem; color: var(--primary); }
.feature-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text3); line-height: 1.6; }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* ── PROGRAMME TABLE ── */
.schedule-grid { display: grid; gap: 16px; }
.schedule-day {
    background: var(--white); border-radius: var(--radius); padding: 24px 28px;
    display: flex; align-items: center; gap: 24px; box-shadow: var(--shadow);
    transition: var(--transition);
}
.schedule-day:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.schedule-day-name {
    min-width: 120px; font-weight: 800; font-size: 1rem; color: var(--primary);
    text-transform: uppercase; letter-spacing: 1px;
}
.schedule-day-info { flex: 1; }
.schedule-day-info h5 { font-weight: 700; margin-bottom: 4px; }
.schedule-day-info p { font-size: .85rem; color: var(--text3); margin: 0; }
.schedule-time {
    background: var(--dark); color: var(--white); padding: 8px 18px;
    border-radius: 60px; font-weight: 700; font-size: .85rem; white-space: nowrap;
}

@media (max-width: 600px) {
    .schedule-day { flex-direction: column; align-items: flex-start; gap: 12px; }
    .schedule-day-name { min-width: auto; }
}

/* ── EVENTS FILTER ── */
.events-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }

/* ── UTILITIES ── */
.mb-0 { margin-bottom: 0 !important; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── NEXT EVENT BANNER ── */
.next-event-banner {
    background: var(--white); border-radius: var(--radius); padding: 32px 36px;
    display: flex; align-items: center; gap: 32px;
    box-shadow: var(--shadow); transition: var(--transition);
}
.next-event-banner:hover { box-shadow: var(--shadow-lg); }
.next-event-date-block {
    background: var(--primary); color: var(--white); border-radius: var(--radius-sm);
    padding: 16px 22px; text-align: center; flex-shrink: 0; min-width: 80px;
}
.next-event-date-block .day { font-size: 2rem; font-weight: 900; line-height: 1; }
.next-event-date-block .month { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 2px; }
.next-event-info { flex: 1; }
.next-event-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.next-event-info .meta { display: flex; gap: 20px; flex-wrap: wrap; }
.next-event-info .meta span { font-size: .85rem; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.next-event-info .meta i { color: var(--primary); }
@media (max-width: 600px) {
    .next-event-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
}

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--white); border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow); position: relative; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
    content: '\201C'; position: absolute; top: 16px; right: 24px;
    font-size: 4rem; font-family: 'Playfair Display', serif; color: var(--primary-l);
    line-height: 1; pointer-events: none;
}
.testimonial-text { font-size: .92rem; color: var(--text2); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary-l);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--primary); font-size: .9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-role { font-size: .75rem; color: var(--text3); }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── ANNONCES HOME ── */
.annonces-list { display: grid; gap: 16px; }
.annonce-card {
    background: var(--white); border-radius: var(--radius); padding: 24px 28px;
    display: flex; align-items: flex-start; gap: 16px; box-shadow: var(--shadow);
    transition: var(--transition); border-left: 4px solid var(--primary);
}
.annonce-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.annonce-card.urgent { border-left-color: #EF4444; }
.annonce-card.evenement { border-left-color: #3B82F6; }
.annonce-icon {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary-l);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.annonce-icon i { color: var(--primary); }
.annonce-card.urgent .annonce-icon { background: rgba(239,68,68,.08); }
.annonce-card.urgent .annonce-icon i { color: #EF4444; }
.annonce-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.annonce-body p { font-size: .85rem; color: var(--text3); line-height: 1.6; margin: 0; }
.annonce-body .date { font-size: .72rem; color: var(--text3); margin-top: 6px; display: block; }

/* ── NUMBER COUNTER ── */
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.num-card {
    text-align: center; padding: 32px 16px; border-radius: var(--radius);
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.num-card .num { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.num-card .lbl { font-size: .82rem; color: rgba(255,255,255,.5); font-weight: 500; }
@media (max-width: 768px) { .num-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ── SPONSOR / PARTNERS ── */
.partners-row {
    display: flex; align-items: center; justify-content: center; gap: 48px;
    flex-wrap: wrap; opacity: .5; filter: grayscale(1);
    transition: var(--transition);
}
.partners-row:hover { opacity: .8; filter: grayscale(.3); }
.partners-row img { height: 40px; object-fit: contain; }

/* ── SPACING FIXES ── */
.section { padding: 80px 0; position: relative; }
.section.sm { padding: 50px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { max-width: 550px; margin: 12px auto 0; color: var(--text2); font-size: 1rem; line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,.5); }
.page-hero { padding: 130px 0 60px; }
.cta-section { padding: 80px 0; }
.mt-32 { margin-top: 32px; }

/* Fix container padding on mobile */
@media (max-width: 768px) {
    .container-site { padding: 0 20px; }
    .section { padding: 60px 0; }
    .section.sm { padding: 40px 0; }
    .section-header { margin-bottom: 36px; }
    .stats-row { margin-top: -32px; padding: 28px 20px; }
    .features-grid { gap: 16px; }
    .feature-card { padding: 28px 20px; }
    .page-hero { padding: 110px 0 48px; }
    .cta-section { padding: 60px 0; }
    .events-grid { gap: 16px; }
    .footer-grid { gap: 28px; }
    .site-footer { padding: 50px 0 0; }
}

/* ═══════════════════════════════════════════════════
   RUNNING ANIMATIONS — ajouts uniquement (no doublons)
   ═══════════════════════════════════════════════════ */

/* ── Piste décorative hero (tirets défilants) ── */
.hero-track {
    position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    pointer-events: none; z-index: 1; overflow: hidden;
}
.hero-track::before {
    content: '';
    position: absolute; bottom: 12px; left: 0; right: 0; height: 3px;
    background: repeating-linear-gradient(90deg,
        rgba(255,255,255,.12) 0px, rgba(255,255,255,.12) 40px,
        transparent 40px, transparent 64px);
    animation: trackScroll 4s linear infinite;
}
.hero-track::after {
    content: '';
    position: absolute; bottom: 22px; left: 0; right: 0; height: 1px;
    background: repeating-linear-gradient(90deg,
        rgba(227,28,70,.3) 0px, rgba(227,28,70,.3) 20px,
        transparent 20px, transparent 40px);
    animation: trackScroll 6s linear infinite reverse;
}
@keyframes trackScroll {
    from { background-position: 0 0; }
    to   { background-position: 104px 0; }
}

/* ── Hero SVG runners background ── */
.hero-runners-bg {
    position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; z-index: 1;
}
.hero-runners-svg {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
}

/* ── Frame statique hero (remplace le carousel) ── */
.hero-frame-static {
    position: relative; width: 100%; aspect-ratio: 16 / 10;
    border-radius: 18px; overflow: hidden;
    transform: rotate(-2.5deg);
    box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06), 0 0 50px -10px var(--primary-glow);
    transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.hero-frame-static:hover { transform: rotate(-1deg) scale(1.01); }
.hero-frame-static img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame-static::before {
    content: ''; position: absolute; inset: -1px; z-index: 3;
    border-radius: 19px; pointer-events: none;
    border: 1.5px solid rgba(255,255,255,.08);
}
.hero-frame-static-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%),
                linear-gradient(90deg, rgba(0,0,0,.1) 0%, transparent 25%);
}
.hero-frame-placeholder {
    width: 100%; min-height: 280px;
    background: linear-gradient(135deg, var(--dark3) 0%, #2a0a14 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.15); font-size: 4rem;
}

/* ── Barre de progression piste ── */
.hero-track-bar {
    margin-top: 16px; height: 3px;
    background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden;
}
.hero-track-progress {
    height: 100%; width: 0%; background: var(--primary);
    border-radius: 2px; box-shadow: 0 0 8px var(--primary-glow);
}

/* ── Floating badges running ── */
.hero-float-badges {
    position: absolute; inset: 0; pointer-events: none; z-index: 5;
}
.hero-float-badge {
    position: absolute;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 40px; padding: 9px 18px;
    color: #fff; font-size: .75rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap; letter-spacing: .3px;
    will-change: transform;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.hero-float-badge i { color: var(--primary); font-size: .9rem; }
.hero-float-badge.badge-pace { top: 12%; right: -10px; }
.hero-float-badge.badge-hr   { top: 52%; right: -14px; }
.hero-float-badge.badge-km   { bottom: 18%; left: -10px; }

@media (max-width: 991px) {
    .hero-float-badge.badge-pace { top: -12px; right: 20px; }
    .hero-float-badge.badge-hr   { top: auto; bottom: -14px; right: 20px; }
    .hero-float-badge.badge-km   { bottom: -14px; left: 20px; }
}
@media (max-width: 480px) { .hero-float-badge { display: none; } }

/* ── Icônes running flottantes (section stats) ── */
.running-icons-bg {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.running-icon-float {
    position: absolute; font-size: 1.8rem;
    opacity: 0; animation: iconFloat 8s ease-in-out infinite;
}
.running-icon-float:nth-child(1) { left:8%;  bottom:15%; animation-delay:0s;   animation-duration:9s; }
.running-icon-float:nth-child(2) { left:22%; bottom:25%; animation-delay:2.5s; animation-duration:11s; }
.running-icon-float:nth-child(3) { left:75%; bottom:12%; animation-delay:1s;   animation-duration:8s; }
.running-icon-float:nth-child(4) { left:88%; bottom:35%; animation-delay:4s;   animation-duration:10s; }
.running-icon-float:nth-child(5) { left:50%; bottom:8%;  animation-delay:3s;   animation-duration:12s; }
@keyframes iconFloat {
    0%   { opacity: 0; transform: translateY(0); }
    15%  { opacity: .2; }
    85%  { opacity: .15; }
    100% { opacity: 0; transform: translateY(-100px); }
}

/* ── Décoration coins + anneau (déjà dans CSS, on garde juste l'animation) ── */
@keyframes decoPulse {
    0%,100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.05); }
}
.deco-corner-tl { animation: decoPulse 3s ease-in-out infinite; }
.deco-ring      { animation: decoPulse 4s ease-in-out infinite .5s; }

/* ── Silhouette coureur CTA ── */
.cta-runner-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath fill='rgba(255,255,255,.04)' d='M160 10 C168 10 174 16 174 24 C174 32 168 38 160 38 C152 38 146 32 146 24 C146 16 152 10 160 10 Z M174 42 L178 50 L192 44 L196 52 L180 64 L174 58 L178 76 L190 94 L180 99 L166 80 L158 92 L148 108 L138 103 L150 82 L144 62 L136 58 L128 70 L118 64 L130 46 L148 52 L158 42 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5% center;
    background-size: 280px;
}

/* ── Hover icône feature card ── */
.feature-card:hover .feature-icon i { animation: iconBounce .4s ease; }
@keyframes iconBounce {
    0%,100% { transform: translateY(0); }
    40%      { transform: translateY(-8px); }
    70%      { transform: translateY(-3px); }
}

/* ── Hover stat cards ── */
.num-card { transition: transform .3s ease, border-color .3s ease; }
.num-card:hover { transform: translateY(-4px); border-color: rgba(227,28,70,.3); }

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92); display: flex;
    align-items: center; justify-content: center;
    animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn { from { opacity:0; } to { opacity:1; } }
.lb-img-wrap { max-width: 90vw; max-height: 90vh; text-align: center; }
.lb-img { max-width: 90vw; max-height: 80vh; border-radius: 10px; display: block; object-fit: contain; }
.lb-caption { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: 12px; }
.lb-close, .lb-prev, .lb-next {
    position: fixed; background: rgba(255,255,255,.1); border: none;
    color: #fff; cursor: pointer; border-radius: 50%;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: background .2s; backdrop-filter: blur(10px);
}
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--primary); }

/* ── Responsive extras ── */
@media (min-width: 600px) and (max-width: 991px) {
    .features-grid    { grid-template-columns: repeat(2,1fr); }
    .testimonials-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .events-grid { grid-template-columns: 1fr !important; }
}

/* ── Hero sans grand frame : thumbs agrandies et centrées ── */
.hero-gallery {
    display: flex; flex-direction: column;
    gap: 16px;
}
/* Supprime la rotation sur le grand frame */
.hero-frame {
    transform: rotate(0deg) !important;
}
.hero-frame:hover {
    transform: scale(1.01) !important;
}
/* Badges positionnés sur les côtés du frame */
.hero-float-badges {
    position: absolute; inset: 0; pointer-events: none; z-index: 5;
}
.hero-float-badge {
    position: absolute;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 40px; padding: 9px 18px;
    color: #fff; font-size: .75rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    will-change: transform;
}
.hero-float-badge i { color: var(--primary); font-size: .9rem; }
.hero-float-badge.badge-pace { top: 12%; right: -18px; }
.hero-float-badge.badge-hr   { top: 52%; right: -22px; }
.hero-float-badge.badge-km   { bottom: 18%; left: -14px; }

@media (max-width: 991px) {
    .hero-float-badge.badge-pace { top: -14px; right: 20px; }
    .hero-float-badge.badge-hr   { top: auto; bottom: -14px; right: 20px; }
    .hero-float-badge.badge-km   { bottom: -14px; left: 20px; }
}
@media (max-width: 480px) { .hero-float-badge { display: none; } }

/* Thumbs en bas du frame — une seule ligne */
.hero-thumbs {
    display: flex; gap: 8px; padding-left: 0;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
}
.hero-thumb { width: 80px; height: 54px; flex-shrink: 0; }
@media (max-width: 1100px) { .hero-thumb { width: 70px; height: 47px; } }
@media (max-width: 991px)  { .hero-thumbs { justify-content: center; } .hero-thumb { width: 66px; height: 44px; } }
@media (max-width: 600px)  { .hero-thumb { width: 54px; height: 36px; gap: 6px; } }

/* ── Boutons flottants (WhatsApp + Retour en haut) ── */
.floating-btns {
    position: fixed; bottom: 28px; z-index: 999;
    display: flex; flex-direction: column; gap: 12px;
    pointer-events: none;
}
.float-btn {
    pointer-events: all;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    position: relative;
}
.float-btn:hover { transform: translateY(-4px) scale(1.08); }

/* WhatsApp — à gauche */
.float-whatsapp {
    position: fixed; left: 24px; bottom: 28px;
    background: #25D366; color: #fff;
    box-shadow: 0 6px 24px rgba(37,211,102,.4);
}
.float-whatsapp:hover { color: #fff; box-shadow: 0 10px 32px rgba(37,211,102,.55); }

/* Label tooltip au hover */
.float-btn-label {
    position: absolute; left: 62px; top: 50%; transform: translateY(-50%);
    background: #25D366; color: #fff;
    padding: 5px 12px; border-radius: 6px;
    font-size: .75rem; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
}
.float-btn-label::before {
    content: ''; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent; border-right-color: #25D366;
}
.float-whatsapp:hover .float-btn-label { opacity: 1; }

/* Retour en haut — à droite */
.float-totop {
    position: fixed; right: 24px; bottom: 28px;
    background: var(--primary); color: #fff;
    box-shadow: 0 6px 24px var(--primary-glow);
    font-size: 1.1rem;
    opacity: 0; transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, box-shadow .25s ease;
}
.float-totop.visible {
    opacity: 1; transform: translateY(0);
}
.float-totop:hover { box-shadow: 0 10px 32px var(--primary-glow); color: #fff; }

@media (max-width: 480px) {
    .float-whatsapp { left: 16px; bottom: 20px; width: 46px; height: 46px; }
    .float-totop    { right: 16px; bottom: 20px; width: 46px; height: 46px; }
    .float-btn-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE HOMEPAGE — CONSOLIDÉ MOBILE-FIRST
   ═══════════════════════════════════════════════════════════ */

/* ── Tablette 768px ── */
@media (max-width: 768px) {

    /* Stats : 2 colonnes compactes */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 28px 24px;
        margin-top: -36px;
        border-radius: 14px;
    }

    /* About : photos en hauteur réduite */
    .about-home-photos { height: 300px; }

    /* Annonces : grille pleine largeur */
    .grid-2 { grid-template-columns: 1fr !important; gap: 32px !important; }

    /* Features : 2 colonnes */
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .feature-card  { padding: 24px 18px; }

    /* Temoignages : 1 colonne */
    .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Section header */
    .section-header { margin-bottom: 32px; }
    .section-header p { font-size: .95rem; }
}

/* ── Mobile 600px ── */
@media (max-width: 600px) {

    /* Sections padding */
    .section     { padding: 56px 0; }
    .section.sm  { padding: 36px 0; }
    .cta-section { padding: 56px 0; }

    /* Container */
    .container-site { padding: 0 16px; }

    /* Hero : padding top réduit (navbar ~70px) */
    .hero-inner {
        padding: 96px 16px 36px;
        gap: 24px;
    }
    .hero-title  { font-size: clamp(1.9rem, 8vw, 2.8rem); letter-spacing: -1.5px; }
    .hero-sub    { font-size: .92rem; margin-bottom: 24px; }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions a {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    .btn-primary-custom.lg { font-size: .95rem; }

    /* Stats row */
    .stats-row {
        padding: 22px 16px;
        gap: 16px;
        margin-top: -28px;
    }
    .stat-num  { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .stat-label { font-size: .78rem; }

    /* About photos */
    .about-home-photos { height: 260px; }
    .about-home-photo.photo-1 { width: 66%; height: 68%; }
    .about-home-photo.photo-2 { width: 50%; height: 48%; }
    .about-home-badge  { display: none; }

    /* About texte */
    .about-home-left > p { font-size: .95rem; }
    .about-home-highlights { gap: 14px; margin-top: 20px; }
    .about-highlight-icon  { width: 38px; height: 38px; font-size: .95rem; flex-shrink: 0; }
    .about-highlight h4    { font-size: .9rem; }
    .about-highlight p     { font-size: .82rem; }

    /* Features : 1 colonne sur mobile */
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-card  { padding: 22px 18px; display: flex; align-items: flex-start; gap: 16px; text-align: left; }
    .feature-icon  { width: 50px; height: 50px; flex-shrink: 0; margin: 0; }

    /* Prochain événement */
    .next-event-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
    .next-event-banner > .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }

    /* Événements */
    .events-grid { grid-template-columns: 1fr; gap: 14px; }
    .event-card-body { padding: 18px; }
    .event-card-img, .event-no-img { height: 180px; }

    /* Annonces */
    .annonce-card { padding: 18px 16px; }

    /* Galerie */
    .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .galerie-item.tall { grid-row: span 1; aspect-ratio: 1; }

    /* Produits */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-card-img, .product-no-img { height: 180px; }
    .product-card-body { padding: 14px; }
    .product-name  { font-size: .92rem; }
    .product-price { font-size: 1.05rem; }

    /* CTA */
    .cta-inner { padding: 0 4px; }
    .cta-inner h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .cta-inner > div {
        flex-direction: column;
        gap: 10px;
    }
    .cta-inner > div a {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .site-footer   { padding: 48px 0 0; }
    .footer-grid   { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Titres headings */
    .heading-lg { font-size: clamp(1.5rem, 5.5vw, 2.2rem); letter-spacing: -.5px; }
    .heading-md { font-size: clamp(1.15rem, 3.5vw, 1.5rem); }

    /* Section header */
    .section-header { margin-bottom: 28px; }
}

/* ── Très petit mobile 380px ── */
@media (max-width: 380px) {

    .container-site { padding: 0 12px; }
    .hero-inner     { padding: 88px 12px 28px; }
    .hero-title     { font-size: clamp(1.7rem, 8.5vw, 2.2rem); }

    /* Stats : 1 colonne sur mini-écran */
    .stats-row {
        grid-template-columns: 1fr 1fr;
        padding: 16px 12px;
        gap: 12px;
    }

    /* Produits 1 colonne */
    .products-grid { grid-template-columns: 1fr; }
    .product-card-img, .product-no-img { height: 200px; }

    /* Features toujours 1 col */
    .features-grid { gap: 10px; }

    .annonce-bar .ticker-item { padding: 0 30px; font-size: .78rem; }
}

/* CTA buttons row */
.cta-inner-btns {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 600px) {
    .cta-inner-btns { flex-direction: column; gap: 10px; }
    .cta-inner-btns a { width: 100%; justify-content: center; }
}

/* Annonces gap override */
@media (max-width: 768px) {
    .grid-2 { gap: 28px !important; }
}
