/* ============================================
   NSI ACADEMY — Design System unifié
   Theme : Stellar Dark / Cyan & Or
   ============================================ */

:root {
    --bg-deep:       #060818;
    --bg-base:       #0a0f2c;
    --bg-elev:       #131a3f;
    --bg-card:       #1a2350;
    --line:          #2a3470;

    --text:          #e8eaf2;
    --text-soft:     #b8bfd9;
    --text-mute:     #7c85a8;

    --cyan:          #00e5ff;
    --cyan-dim:      #0099cc;
    --gold:          #ffc233;
    --gold-dim:      #cc9900;
    --magenta:       #ff3d8a;

    --grad-hero:     linear-gradient(135deg, #00e5ff 0%, #5b6bff 50%, #ff3d8a 100%);
    --grad-gold:     linear-gradient(135deg, #ffc233 0%, #ff7a00 100%);
    --grad-card:     linear-gradient(160deg, #1a2350 0%, #131a3f 100%);

    --shadow-sm:     0 4px 14px rgba(0, 229, 255, 0.08);
    --shadow-md:     0 8px 30px rgba(0, 229, 255, 0.12);
    --shadow-lg:     0 20px 60px rgba(0, 0, 0, 0.5);
    --glow-cyan:     0 0 30px rgba(0, 229, 255, 0.35);
    --glow-gold:     0 0 30px rgba(255, 194, 51, 0.35);

    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   22px;

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body:    'Inter', 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* Halo de fond animé */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 0%,  rgba(0,229,255,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(255,61,138,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(91,107,255,0.15) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
}

/* ============== TYPOGRAPHIE ============== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gold-text {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

p { color: var(--text-soft); }
strong { color: var(--text); font-weight: 600; }

a { color: var(--cyan); text-decoration: none; transition: all .2s; }
a:hover { color: var(--gold); }

/* ============== NAV ============== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(6, 8, 24, 0.72);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nav-brand .badge {
    display: inline-block;
    padding: .25rem .55rem;
    background: var(--grad-hero);
    border-radius: 6px;
    color: #060818;
    font-size: .8rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.nav-links a {
    padding: .55rem 1rem;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: all .25s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(0, 229, 255, 0.08);
}

.nav-links a.active {
    color: var(--bg-deep);
    background: var(--grad-hero);
    font-weight: 700;
}

/* ============== HERO ============== */
.hero {
    padding: 6rem 2rem 5rem;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.hero .eyebrow {
    display: inline-block;
    padding: .5rem 1.1rem;
    border: 1px solid var(--cyan);
    border-radius: 999px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: var(--glow-cyan);
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--text-soft);
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.8rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all .25s;
    border: none;
}

.btn-primary {
    background: var(--grad-hero);
    color: var(--bg-deep);
    box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
    color: var(--bg-deep);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* ============== LAYOUT ============== */
main { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section {
    padding: 4.5rem 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem;
}

.section-head .kicker {
    font-family: var(--font-mono);
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: .85rem;
    margin-bottom: .8rem;
    display: block;
}

.section-head p {
    font-size: 1.1rem;
    margin-top: .8rem;
}

/* ============== STATS ============== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--grad-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-hero);
    transform: scaleX(0);
    transition: transform .4s;
    transform-origin: left;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: .4rem;
}

.stat-label {
    color: var(--text-soft);
    font-size: .95rem;
    line-height: 1.4;
}

/* ============== CONTENT BLOCKS ============== */
.block {
    background: var(--grad-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    margin: 1.5rem 0;
    transition: all .3s;
}

.block:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: var(--shadow-md);
}

.block h2 { color: var(--text); margin-bottom: 1.2rem; }

.block ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.block ul li {
    padding: .8rem 0 .8rem 2rem;
    position: relative;
    color: var(--text-soft);
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.block ul li:last-child { border-bottom: none; }

.block ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
    font-size: 1.1rem;
}

.block ul li strong { color: var(--gold); }

/* ============== ILLUSTRATION ============== */
.illustration {
    margin: 2.5rem 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.illustration img {
    display: block;
    width: 100%;
    height: auto;
}

.illustration .caption {
    padding: 1rem 1.5rem;
    color: var(--text-mute);
    font-size: .9rem;
    text-align: center;
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,0.25);
}

/* ============== QUOTE / MANIFESTO ============== */
.manifesto {
    border-left: 4px solid var(--gold);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    background: linear-gradient(90deg, rgba(255,194,51,0.08) 0%, transparent 100%);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    font-style: italic;
}

.manifesto::before {
    content: '« ';
    color: var(--gold);
    font-size: 2rem;
}
.manifesto::after {
    content: ' »';
    color: var(--gold);
    font-size: 2rem;
}

/* ============== CARD GRID ============== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feat-card {
    background: var(--grad-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 2rem;
    transition: all .3s;
    position: relative;
}

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

.feat-card .ico {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feat-card h3 {
    color: var(--text);
    margin-bottom: .6rem;
    font-size: 1.15rem;
}

.feat-card p {
    color: var(--text-soft);
    font-size: .95rem;
    line-height: 1.55;
}

/* ============== VIDEO GRID (Carrières) ============== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 4rem;
}

.video-card {
    background: var(--grad-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all .3s;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-md);
}

.video-card iframe {
    width: 100%;
    height: 200px;
    border: 0;
    display: block;
}

.video-card h3 {
    padding: 1rem 1.2rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-body);
}

/* ============== CATEGORY HEADER ============== */
.cat-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin: 3rem 0 1.5rem;
    border-bottom: 1px solid var(--line);
}

.cat-head .ico {
    font-size: 1.8rem;
}

.cat-head h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text);
}

.cat-head .tag {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: 0.1em;
    color: var(--cyan);
    text-transform: uppercase;
    padding: .3rem .7rem;
    border: 1px solid var(--cyan);
    border-radius: 999px;
}

/* ============== COMPARISON TABLE ============== */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.compare-col {
    padding: 2rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--bg-elev);
}

.compare-col.win {
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
    background: linear-gradient(160deg, rgba(0,229,255,0.06), var(--bg-elev));
}

.compare-col h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text);
}

.compare-col.win h3 { color: var(--cyan); }

.compare-col ul { list-style: none; }
.compare-col li {
    padding: .5rem 0 .5rem 1.6rem;
    position: relative;
    color: var(--text-soft);
    font-size: .95rem;
}
.compare-col li::before {
    content: '✗';
    position: absolute; left: 0;
    color: var(--text-mute);
    font-weight: bold;
}
.compare-col.win li::before {
    content: '✓';
    color: var(--cyan);
}

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

/* ============== FOOTER ============== */
footer {
    margin-top: 6rem;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--line);
    background: var(--bg-base);
    text-align: center;
}

footer .foot-inner {
    max-width: 1280px;
    margin: 0 auto;
}

footer .foot-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .8rem;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer p {
    color: var(--text-mute);
    font-size: .9rem;
}

/* ============== ANIMATION ============== */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.3); }
    50%      { box-shadow: 0 0 40px rgba(0, 229, 255, 0.6); }
}

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

.fade-in {
    animation: fade-up .8s ease-out both;
}

.fade-in-2 { animation: fade-up .8s ease-out .15s both; }
.fade-in-3 { animation: fade-up .8s ease-out .3s both; }
.fade-in-4 { animation: fade-up .8s ease-out .45s both; }

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
    .hero { padding: 4rem 1rem 3rem; }
    main { padding: 0 1rem; }
    .block { padding: 1.5rem; }
    .nav-inner { padding: .8rem 1rem; }
    .nav-links { gap: .2rem; width: 100%; justify-content: flex-start; overflow-x: auto; }
    .nav-links a { font-size: .85rem; padding: .4rem .8rem; white-space: nowrap; }
}
