/* EKA public landing — charte alignée app école */
:root {
    --eka-cyan: #1e88c8;
    --eka-royal: #0f5ca3;
    --eka-marine: #1f3e7a;
    --eka-nuit: #122448;
    --eka-soft: #e8f3fb;
    --eka-mist: #f2f6fb;
    --text-body: #475569;
    --text-muted: #64748b;
    --border: rgba(18, 36, 72, 0.1);
    --shadow: 0 18px 50px rgba(18, 36, 72, 0.12);
    --radius: 18px;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background: var(--eka-mist);
    line-height: 1.55;
    min-height: 100vh;
}

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

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* —— Header —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 4vw, 3rem);
    background: rgba(242, 246, 251, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--eka-nuit);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav {
    display: none;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.nav > a:not(.btn) {
    text-decoration: none;
    color: var(--eka-marine);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav > a:not(.btn):hover {
    color: var(--eka-cyan);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--eka-nuit);
    border-radius: 2px;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem clamp(1rem, 4vw, 3rem) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.nav-mobile a {
    text-decoration: none;
    color: var(--eka-nuit);
    font-weight: 600;
    padding: 0.5rem 0;
}

.nav-mobile[hidden] {
    display: none !important;
}

@media (min-width: 880px) {
    .nav {
        display: flex;
    }

    .nav-toggle,
    .nav-mobile {
        display: none !important;
    }
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--eka-royal);
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 92, 163, 0.28);
}

.btn-primary:hover {
    background: var(--eka-cyan);
}

.btn-ghost {
    background: transparent;
    color: var(--eka-royal);
    border-color: rgba(15, 92, 163, 0.35);
}

.btn-ghost:hover {
    background: var(--eka-soft);
    border-color: var(--eka-cyan);
    color: var(--eka-cyan);
}

.btn-on-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

.text-link {
    color: var(--eka-royal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    color: var(--eka-cyan);
    border-bottom-color: currentColor;
}

/* —— Hero —— */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) 0;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(30, 136, 200, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(15, 92, 163, 0.18), transparent 50%),
        linear-gradient(165deg, #dceaf6 0%, var(--eka-mist) 45%, #eef3f9 100%);
    z-index: 0;
    animation: atmosphere-shift 14s ease-in-out infinite alternate;
}

@keyframes atmosphere-shift {
    from {
        filter: hue-rotate(0deg) saturate(1);
    }
    to {
        filter: hue-rotate(-8deg) saturate(1.05);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
    animation: rise-in 0.8s ease both;
}

.hero-brand {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eka-royal);
    margin-bottom: 0.85rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    line-height: 1.12;
    color: var(--eka-nuit);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    animation: rise-in 1s 0.15s ease both;
}

.hero-shot-desk {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    object-fit: cover;
    object-position: top center;
    max-height: min(58vh, 520px);
}

.hero-shot-phone {
    display: none;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: center;
        gap: 2rem;
        padding-bottom: clamp(2rem, 4vw, 3.5rem);
    }

    .hero-visual {
        margin-top: 0;
        position: relative;
        min-height: 420px;
    }

    .hero-shot-desk {
        border-radius: var(--radius);
        max-height: none;
        height: auto;
    }

    .hero-shot-phone {
        display: block;
        position: absolute;
        right: 4%;
        bottom: -6%;
        width: min(28%, 180px);
        border-radius: 22px;
        box-shadow: var(--shadow);
        border: 3px solid #fff;
        animation: float-phone 5s ease-in-out infinite;
    }
}

@keyframes float-phone {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* —— Sections —— */
.section {
    padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 3rem);
}

.section-head {
    max-width: 40rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    color: var(--eka-nuit);
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.modules {
    background: #fff;
}

.stats-strip {
    background: #fff;
    padding-top: 0;
    padding-bottom: clamp(2rem, 5vw, 3rem);
}

.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 720px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: linear-gradient(160deg, var(--eka-soft), #fff 65%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--eka-nuit);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.stats-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.module-row {
    display: grid;
    gap: 1.75rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.module-row:last-of-type {
    margin-bottom: 2.5rem;
}

.module-copy h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--eka-nuit);
    margin-bottom: 0.65rem;
}

.module-copy p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.module-media {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--eka-soft);
}

.module-media img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    max-height: 420px;
}

@media (min-width: 900px) {
    .module-row {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
    }

    .module-row-reverse {
        grid-template-columns: 1.2fr 1fr;
    }

    .module-row-reverse .module-copy {
        order: 2;
    }

    .module-row-reverse .module-media {
        order: 1;
    }
}

.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(160deg, var(--eka-soft), #fff 60%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem;
    color: var(--text-body);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 136, 200, 0.35);
}

.feature-card h3 {
    color: var(--eka-nuit);
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* —— Réseau —— */
.reseau {
    background: var(--eka-mist);
}

.reseau-shot {
    margin: 0 auto;
    max-width: 1100px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.reseau-shot img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    max-height: 560px;
}

/* —— CTA band —— */
.cta-band {
    text-align: center;
    background: linear-gradient(135deg, var(--eka-nuit), var(--eka-royal) 55%, var(--eka-cyan));
    color: #fff;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin-bottom: 0.75rem;
}

.cta-band > p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-band .hero-cta {
    justify-content: center;
}

/* —— Footer —— */
.site-footer {
    padding: 2rem clamp(1rem, 4vw, 3rem);
    background: var(--eka-nuit);
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    font-size: 0.9rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-meta {
    margin-top: 0.5rem;
    opacity: 0.75;
    font-size: 0.85rem;
}

.footer-meta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-meta a:hover {
    color: var(--eka-cyan);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
