/* FIX VISIBILITÉ CONTENU */
header,
.hero,
.section,
footer {
    position: relative;
    z-index: 10;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #eef4ff;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: #050914;
}

/* fond image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.42) saturate(1.05);
    z-index: -3;
}

body.bg-passions::before {
    background-image: url("Passions.jpeg");
    filter: brightness(0.75) saturate(1.1);
}

body.bg-aspirations::before {
    background-image: url("Aspirations.jpeg");
    filter: brightness(0.75) saturate(1.1);
    box-shadow: inset 0 0 120px rgba(255, 240, 200, 0.15);
}

/* voile + halos */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(120, 210, 255, 0.12), transparent 26%),
        radial-gradient(circle at 85% 18%, rgba(150, 255, 245, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(4, 10, 22, 0.45), rgba(2, 6, 14, 0.78));
    z-index: -2;
}

    body.bg-passions::after {
    background:
        radial-gradient(circle at 15% 20%, rgba(120, 210, 255, 0.08), transparent 26%),
        radial-gradient(circle at 85% 18%, rgba(150, 255, 245, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(4, 10, 22, 0.25), rgba(2, 6, 14, 0.5));
}

body.bg-passions::before {
    box-shadow: inset 0 0 120px rgba(255, 200, 120, 0.2);
}

body.bg-classe::before {
    background-image: url("Classe.jpeg");
}

body.bg-passions::before {
    background-image: url("Passions.jpeg");
}

body.bg-parcours::before {
    background-image: url("Parcours.jpeg");
}

body.bg-liens::before {
    background-image: url("Liens.jpeg");
}

body.bg-aspirations::before {
    background-image: url("Aspirations.jpeg");
}

body.bg-dark::before {
    background: radial-gradient(circle at top, #13294a 0%, #07101d 48%, #03070f 100%);
    filter: none;
}

/* canvas particules */
#manaCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* visibilité */
header,
.hero,
.section,
footer {
    position: relative;
    z-index: 5;
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 12, 24, 0.48);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(160, 220, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #d9e8f2 25%,
        #9eaec0 55%,
        #ffffff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(190, 235, 255, 0.08);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

nav a {
    position: relative;
    color: #eef4ff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #86dfff, #d8f5ff);
    transition: width 0.25s ease;
}

nav a:hover {
    color: #bdeeff;
}

nav a:hover::after {
    width: 100%;
}

/* hero */
.hero {
    min-height: 58vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px;
    text-align: center;
}

.small-hero {
    min-height: 42vh;
}

.hero-card {
    width: min(920px, 92%);
    position: relative;
    padding: 44px 34px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8, 18, 36, 0.72), rgba(5, 12, 24, 0.84));
    border: 1px solid rgba(150, 220, 255, 0.16);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 28px rgba(110, 210, 255, 0.06);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* reflet animé */
.hero-card::before,
.section-card::before,
.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,0.00) 35%,
            rgba(255,255,255,0.06) 50%,
            rgba(255,255,255,0.00) 65%,
            transparent 100%
        );
    transform: translateX(-120%);
    animation: shine 7s linear infinite;
    pointer-events: none;
}

/* ligne scan */
.hero-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(140, 230, 255, 0.75), transparent);
    box-shadow: 0 0 12px rgba(140, 230, 255, 0.45);
    animation: scan 4.5s linear infinite;
    pointer-events: none;
}

.eyebrow {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #b9e7ff;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    position: relative;
    z-index: 1;
    font-family: "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 18px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #d9e8f2 28%,
        #a6b8ca 58%,
        #ffffff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 2px 16px rgba(0, 0, 0, 0.42),
        0 0 14px rgba(190, 235, 255, 0.06);
}

.intro {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(238, 244, 255, 0.94);
}

/* sections */
.section {
    display: flex;
    justify-content: center;
    padding: 10px 20px 80px;
}

.section-card {
    width: min(1000px, 92%);
    position: relative;
    padding: 40px 30px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(9, 20, 40, 0.74), rgba(5, 12, 24, 0.86));
    border: 1px solid rgba(150, 220, 255, 0.14);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.22),
        0 0 24px rgba(110, 210, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.section-card h2 {
    position: relative;
    z-index: 1;
    font-family: "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 22px;
    color: #e9f1f8;
    text-shadow: 0 0 10px rgba(190, 235, 255, 0.05);
}

.section-card p {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto 18px;
    text-align: center;
    font-size: 1.08rem;
    color: rgba(244, 248, 255, 0.95);
}

/* liens */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.link-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #eef4ff;
    padding: 24px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(12, 24, 46, 0.78), rgba(7, 14, 28, 0.92));
    border: 1px solid rgba(170, 225, 255, 0.14);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.20),
        0 0 20px rgba(120, 210, 255, 0.04);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(190, 235, 255, 0.28);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.24),
        0 0 28px rgba(150, 220, 255, 0.08);
}

.link-card h3 {
    position: relative;
    z-index: 1;
    font-family: "Times New Roman", serif;
    font-size: 1.45rem;
    margin-bottom: 10px;
    color: #f0f6fb;
}

.link-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1rem;
    color: rgba(238, 244, 255, 0.90);
}

/* footer */
footer {
    text-align: center;
    padding: 28px 20px 36px;
    color: rgba(244, 248, 255, 0.62);
}

/* animations */
@keyframes shine {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0.15;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0.15;
    }
}

/* responsive */
@media (max-width: 820px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        font-size: 1.6rem;
    }

    nav ul {
        justify-content: center;
        gap: 18px;
    }

    .hero-card,
    .section-card {
        padding: 28px 20px;
    }

    .intro,
    .section-card p {
        font-size: 1rem;
    }
}