/* ==========================================================================
   ASIFO 2027 — Webing Session hero
   Faithful reproduction of `asifo webing session-LOUISON.pdf` (1920x1080)
   Palette extracted from the vector file:
     bg #091524 · header #0a111c · band #0d2c3b
     teal #5ac7d8 / #66cadc · deep cyan #0094d3 / #23baed
     ink #030404 · muted #5e7a89 · glass #38618c (over bg)
   ========================================================================== */

:root {
    --bg: #091524;
    --bg-header: #0a111c;
    --band: #0d2c3b;
    --teal: #5ac7d8;
    --teal-bright: #66cadc;
    --cyan: #23baed;
    --cyan-deep: #0094d3;
    --sq: #063e5a;
    --ink: #030404;
    --muted: #5e7a89;
    --white: #f9fdff;
    --glass-bg: rgba(90, 150, 200, 0.22);
    --glass-border: rgba(120, 199, 216, 0.25);
    --font: 'Montserrat', 'Gontserrat', 'Segoe UI', sans-serif;
    /* hero scale unit: 1vw of a 1920 design, clamped for safety */
    --u: clamp(320px, 100vw, 2400px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.04em;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Background decoration layer (orbs, glows, hexagons)
   ========================================================================== */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 45% at 50% 4%, rgba(35, 120, 190, 0.28), transparent 70%),
        radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(2, 6, 12, 0.55) 100%),
        var(--bg);
}

/* Big glowing cyan spheres (left ~ (300,700) r250 / right ~ (1650,540) r270) */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}
.orb-left {
    width: 52vmin; height: 52vmin;
    left: -14vmin; top: 42%;
    background:
        radial-gradient(circle at 55% 45%, rgba(120, 230, 255, 0.95) 0%, rgba(0, 148, 211, 0.85) 18%, rgba(6, 62, 90, 0.6) 42%, rgba(9, 21, 36, 0.0) 68%);
    box-shadow: 0 0 18vmin rgba(0, 148, 211, 0.35);
}
.orb-right {
    width: 56vmin; height: 56vmin;
    right: -16vmin; top: 26%;
    background:
        radial-gradient(circle at 48% 52%, rgba(150, 240, 255, 0.95) 0%, rgba(35, 186, 237, 0.8) 16%, rgba(10, 90, 130, 0.55) 40%, rgba(9, 21, 36, 0) 66%);
    box-shadow: 0 0 18vmin rgba(35, 186, 237, 0.3);
}

/* Soft light streaks (ellipses at top center and behind the card) */
.glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(105, 205, 240, 0.55), rgba(50, 130, 190, 0.18) 45%, transparent 70%);
    filter: blur(6px);
}
.glow-top {
    width: 42%; height: 9vh;
    left: 29%; top: 4.5%;
}
.glow-card {
    width: 46%; height: 12vh;
    left: 27%; top: 62%;
    background: radial-gradient(ellipse at center, rgba(90, 199, 216, 0.4), transparent 65%);
}

/* Translucent glass ellipses crossing the countdown card */
.glass-ellipse {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(102, 202, 220, 0.28), rgba(20, 60, 90, 0.12));
    border: 1px solid rgba(140, 220, 240, 0.18);
    filter: blur(1px);
}
.glass-ellipse-1 { width: 34%; height: 7vh;  left: 21%; top: 45%; }
.glass-ellipse-2 { width: 40%; height: 10vh; left: 30%; top: 66%; }
.glass-ellipse-3 { width: 8%;  height: 26vh; right: 19.5%; top: 46%; border-radius: 50%; }

/* Hexagon outline fields */
.hex-field {
    position: absolute;
    opacity: 0.5;
}
.hex-field path {
    stroke: rgba(110, 180, 210, 0.22);
    stroke-width: 1.5;
}
.hex-field path[fill] { fill: none; }
.hex-field-tr { width: 24vw; right: -2vw; top: 6vh; }
.hex-field-bl { width: 28vw; left: -3vw; bottom: -4vh; }
.hex-field path { fill: none; }

/* one solid small hexagon near the right orb (mockup: filled #1b9fd8 hex) */
.hex {
    position: absolute;
    width: 3.2vw;
    right: 12.5%;
    top: 40%;
    fill: rgba(27, 159, 216, 0.85);
    filter: drop-shadow(0 0 10px rgba(35, 186, 237, 0.6));
}

/* ==========================================================================
   Header (mockup: bar 82px #0a111c, band 8px #0d2c3b, nav 12px right)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(10, 17, 28, 0.92), rgba(10, 17, 28, 0.75));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1880px;
    margin: 0 auto;
    height: 74px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-band {
    height: 6px;
    background: var(--band);
}

/* Brand wordmark (mockup top-left: teal A + ASIFO + micro caption) */
.brand {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    padding-left: 34px;
}
.brand-mark {
    position: absolute;
    left: 0; top: 2px;
    width: 26px;
}
.brand-mark svg { width: 100%; display: block; }
.brand-word {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.32em;
    color: #fff;
}
.brand-sub {
    margin-top: 4px;
    font-size: 6.5px;
    font-weight: 400;
    letter-spacing: 0.34em;
    color: rgba(255, 255, 255, 0.75);
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.nav-link {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 6px 14px;
    transition: color 0.25s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--teal); }
.nav-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.55);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--teal);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero (1080px design height -> 100vh, centered column)
   ========================================================================== */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 110px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* Progress pill (mockup: 382x22 rounded outline at ~y150, teal dot inside) */
.progress-pill {
    width: min(382px, 70vw);
    height: 22px;
    border-radius: 12px;
    border: 1px solid rgba(90, 199, 216, 0.45);
    background: rgba(6, 20, 32, 0.55);
    position: relative;
    margin: 26px auto 34px;
    overflow: hidden;
}
.progress-dot {
    position: absolute;
    top: 50%; left: 10px;
    width: 10px; height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, #bfeefa 0%, var(--teal) 45%, var(--sq) 100%);
    box-shadow: 0 0 12px 3px rgba(90, 199, 216, 0.75);
    animation: dotSweep 6s ease-in-out infinite alternate;
}
@keyframes dotSweep {
    from { left: 10px; }
    to   { left: calc(100% - 20px); }
}

/* Eyebrow: WHERE AFRICAN SPORT SHAPES GLOBAL INFLUENCE */
.eyebrow {
    font-size: clamp(9px, 0.62vw, 12px);
    font-weight: 300;
    letter-spacing: 0.62em;
    color: var(--white);
    margin-bottom: 2.4vh;
}
.eyebrow .t-teal { color: var(--teal); }

/* Title: Λ SIFO 2027 */
.hero-title {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    line-height: 0.9;
    margin-bottom: 2.6vh;
}
.title-logo {
    display: inline-flex;
    align-items: flex-end;
}
.title-a {
    height: clamp(110px, 13.5vw, 260px);
    width: auto;
    display: block;
    margin-right: -0.5vw;
}
.title-word {
    font-weight: 200;
    font-size: clamp(96px, 12.4vw, 238px);
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 0 40px rgba(120, 200, 235, 0.25);
    line-height: 0.82;
    transform: translateY(-4%);
}
.title-year {
    font-weight: 300;
    font-size: clamp(44px, 4.85vw, 93px);
    letter-spacing: 0.06em;
    color: #fff;
    margin-left: 0.8vw;
    transform: translateY(-14%);
}

/* Tagline */
.hero-tagline {
    font-size: clamp(11px, 0.72vw, 14px);
    font-weight: 300;
    letter-spacing: 0.28em;
    color: var(--white);
    margin-bottom: 1.6vh;
}

/* Date row: 23 — 25 JUILLET 2027 with rules */
.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 26px);
    font-size: clamp(11px, 0.78vw, 15px);
    font-weight: 400;
    letter-spacing: 0.32em;
    color: #fff;
    margin-bottom: 3.4vh;
    position: relative;
}
.date-dash {
    width: 34px; height: 2px;
    background: #fff;
    opacity: 0.9;
}
.date-month { color: #fff; }
.date-line {
    width: 54px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-bright));
}
.date-line-right { background: linear-gradient(90deg, var(--teal-bright), transparent); }

/* ==========================================================================
   Countdown glass card (mockup: 1047x273 @472,507, radius ~28)
   ========================================================================== */
.countdown-card {
    width: min(1047px, 92vw);
    padding: clamp(20px, 2.4vw, 36px) clamp(20px, 3vw, 56px) clamp(24px, 2.6vw, 40px);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(88, 150, 205, 0.30), rgba(56, 97, 140, 0.22) 55%, rgba(30, 70, 110, 0.30));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 20px 60px rgba(0, 10, 20, 0.45),
        inset 0 1px 0 rgba(190, 235, 250, 0.28),
        inset 0 -1px 0 rgba(10, 30, 50, 0.4);
    position: relative;
    margin-bottom: 6vh;
}
/* glossy top highlight */
.countdown-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 46%;
    border-radius: 30px 30px 60% 60% / 30px 30px 22% 22%;
    background: linear-gradient(180deg, rgba(160, 225, 245, 0.22), transparent);
    pointer-events: none;
}

.countdown-head {
    display: flex;
    justify-content: flex-start;
    margin-bottom: clamp(8px, 1.4vh, 18px);
}
.countdown-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(13px, 1.12vw, 21.5px);
    font-weight: 500;
    letter-spacing: 0.22em;
    color: #fff;
    background: linear-gradient(180deg, rgba(150, 220, 240, 0.35), rgba(90, 170, 215, 0.22));
    border: 1px solid rgba(180, 235, 248, 0.4);
    border-radius: 999px;
    padding: 10px 26px 10px 16px;
    box-shadow: 0 6px 18px rgba(0, 20, 35, 0.25);
}
.chip-square {
    width: 14px; height: 14px;
    background: var(--sq);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chip-dot {
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(90, 199, 216, 0.9);
}

.countdown-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 1.6vw, 34px);
}
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(64px, 7vw, 130px);
}
.cd-value {
    font-size: clamp(44px, 4.25vw, 81px);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 24px rgba(0, 20, 35, 0.35);
}
.cd-value-days { color: var(--teal); }
.cd-label {
    margin-top: 10px;
    font-size: clamp(9px, 0.58vw, 11px);
    font-weight: 400;
    letter-spacing: 0.42em;
    color: #fff;
    opacity: 0.92;
}
.cd-sep {
    font-size: clamp(36px, 3.6vw, 68px);
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    transform: translateY(-8%);
}

/* ==========================================================================
   CTA buttons (mockup: 218x44 pill pair @ y863)
   ========================================================================== */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 4vh;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 218px;
    height: 44px;
    justify-content: center;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn svg { width: 13px; height: 13px; }
.btn-primary {
    background: var(--teal-bright);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(102, 202, 220, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: #7fd6e6;
    box-shadow: 0 12px 30px rgba(102, 202, 220, 0.5);
}
.btn-ghost {
    background: rgba(8, 18, 30, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.btn-circle {
    width: 26px; height: 26px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-circle svg { width: 11px; height: 11px; }

/* Footer strip inside hero (bottom-right) */
.hero-footer {
    position: absolute;
    right: 34px;
    bottom: 22px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.34em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-footer .dot {
    width: 3px; height: 3px;
    background: #49c4d7;
    border-radius: 50%;
    display: inline-block;
}

/* ==========================================================================
   Anchor strips (nav targets below the fold)
   ========================================================================== */
.anchor-strip {
    position: relative;
    z-index: 10;
    min-height: 46vh;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(90, 199, 216, 0.12);
    background: linear-gradient(180deg, rgba(13, 44, 59, 0.25), rgba(9, 21, 36, 0.9));
}
.anchor-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 28px;
    text-align: center;
}
.anchor-inner h2 {
    font-size: clamp(20px, 2vw, 32px);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
}
.anchor-inner p {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.9;
    color: rgba(249, 253, 255, 0.85);
}
.anchor-partner a { color: var(--teal-bright); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .header-inner { padding: 0 22px; }
    .nav-link { padding: 6px 9px; font-size: 11px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 80px; left: 0; right: 0;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 22px 0 26px;
        background: rgba(10, 17, 28, 0.97);
        border-bottom: 1px solid var(--band);
        transform: translateY(-130%);
        transition: transform 0.35s ease;
        z-index: 40;
    }
    .main-nav.is-open { transform: translateY(0); }
    .nav-sep { display: none; }
    .hero { padding-top: 96px; }
    .countdown-grid { gap: 10px; }
    .cd-sep { display: none; }
    .cd-unit { min-width: 74px; margin-bottom: 10px; }
    .orb-left { top: 55%; }
    .orb-right { top: 20%; }
}

@media (max-width: 520px) {
    .countdown-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 8px;
    }
    .cd-sep { display: none; }
    .btn { width: 100%; max-width: 260px; }
    .hero-cta { flex-direction: column; }
    .hero-footer {
        position: static;
        justify-content: center;
        margin-top: 30px;
    }
    .eyebrow { letter-spacing: 0.4em; }
}

/* ==========================================================================
   Scroll-triggered reveal animations (IntersectionObserver adds .is-visible)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-from-left  { transform: translateX(-60px); }
.reveal-from-right { transform: translateX(60px); }
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* staggered entrances for the hero sequence */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.60s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .progress-dot { animation: none; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
