/* ============================================
   UPLINK FORMATION — Stylesheet
   Modern, professional, school-style design
   ============================================ */

:root {
    /* Brand colors from logo */
    --c-cyan: #2DD4F4;
    --c-indigo: #6366F1;
    --c-pink: #EC4899;
    --c-magenta: #D946EF;

    /* Neutrals */
    --c-ink: #0B0F1F;
    --c-ink-2: #141934;
    --c-ink-3: #1F2547;
    --c-text: #1A1F2E;
    --c-text-soft: #4A5168;
    --c-muted: #8189A0;

    --c-bg: #FFFFFF;
    --c-bg-alt: #F7F8FB;
    --c-bg-tinted: #F1F2F9;
    --c-line: #E4E6EE;
    --c-line-soft: #EFF1F6;

    /* Gradient brand */
    --grad-brand: linear-gradient(135deg, #2DD4F4 0%, #6366F1 50%, #EC4899 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(45,212,244,0.1) 0%, rgba(99,102,241,0.1) 50%, rgba(236,72,153,0.1) 100%);

    /* Typography */
    --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --max-w: 1240px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(15, 18, 35, 0.04), 0 4px 12px rgba(15, 18, 35, 0.04);
    --shadow: 0 6px 18px rgba(15, 18, 35, 0.06), 0 12px 32px rgba(15, 18, 35, 0.06);
    --shadow-lg: 0 20px 60px rgba(15, 18, 35, 0.12);
    --shadow-glow: 0 10px 40px rgba(99, 102, 241, 0.25);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--grad-brand);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(45, 212, 244, 0.8);
}

.eyebrow-dark {
    color: var(--c-text-soft);
    border-color: var(--c-line);
    background: var(--c-bg);
}

.eyebrow-dark::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--grad-brand);
    border-radius: 50%;
}

.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* IMPORTANT : "inline" (pas inline-block) pour permettre au texte
       de se casser naturellement entre "en" et le segment dégradé,
       et éviter les mots orphelins. */
    display: inline;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.8vw, 56px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin: 18px 0 22px;
    text-wrap: balance;
}

.section-title.light {
    color: #fff;
}

.lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--c-text-soft);
    max-width: 640px;
}

.lead.light {
    color: rgba(255, 255, 255, 0.75);
}

.muted {
    color: var(--c-muted);
}

.small {
    font-size: 14px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 34px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    background-size: 200% 200%;
    background-position: 0% 0%;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 14px 50px rgba(99, 102, 241, 0.4);
}

.btn-dark {
    background: var(--c-ink);
    color: #fff;
}

.btn-dark:hover {
    background: var(--c-ink-3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
}

.section-light .btn-ghost {
    color: var(--c-ink);
    border-color: var(--c-line);
}

.section-light .btn-ghost:hover {
    background: var(--c-bg-alt);
    border-color: var(--c-text);
}

.btn-arrow {
    transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ============================================
   HEADER — Refait à zéro avec 2 variantes
   Variante CLAIRE par défaut (style Efrei)
   Variante SOMBRE : ajouter .header-dark sur <header>
   ============================================ */

/* --- Hauteur globale pour les ancrages et offsets --- */
:root {
    --header-h: 88px;
}

/* --- BASE : Header (commun aux 2 variantes) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    /* Transparent par défaut (au-dessus du hero photo) */
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                backdrop-filter 0.4s ease;
    /* Force own stacking context — sans transform qui causait un offset */
    isolation: isolate;
}

/* === Texte/logo en blanc tant qu'on est sur le hero === */
.site-header .brand-name {
    color: #fff;
    transition: color 0.3s ease;
}
.site-header .primary-nav a {
    color: rgba(255, 255, 255, 0.85);
}
.site-header .primary-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.site-header .menu-toggle span {
    background: #fff;
}

/* === État SCROLLED : glassmorphism sombre premium === */
.site-header.scrolled {
    background: rgba(11, 15, 31, 0.78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Ligne accent gradient (visible au scroll) */
.site-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6) 30%, rgba(236, 72, 153, 0.6) 70%, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.site-header.scrolled::after {
    opacity: 1;
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* --- BRAND (logo + texte) --- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    height: 100%;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.85;
}

.brand-mark {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-mark {
    transform: rotate(-3deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 5px;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.015em;
    color: var(--c-ink);
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.32em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- NAVIGATION --- */
.primary-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    display: block;
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--c-text-soft);
    border-radius: 100px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.primary-nav a:hover {
    color: var(--c-ink);
    background: var(--c-bg-alt);
}

/* --- BURGER MENU --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--c-ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- MOBILE MENU --- */
.mobile-menu {
    display: none;  /* Caché par défaut, visible uniquement sur mobile via @media */
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    /* Glassmorphism sombre cohérent avec le header */
    background: rgba(11, 15, 31, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.5, 0, 0, 1), opacity 0.25s ease, visibility 0s linear 0.35s;
    z-index: 999;
    padding: 18px 28px 28px;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.5, 0, 0, 1), opacity 0.25s ease, visibility 0s linear 0s;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu a:not(.btn) {
    display: block;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    text-decoration: none;
}

.mobile-menu a:not(.btn):hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.mobile-menu .btn {
    margin-top: 12px;
}

/* ============================================
   VARIANTE SOMBRE — ajouter .header-dark sur <header>
   ============================================ */
.site-header.header-dark {
    background: #0B0F1F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.site-header.header-dark.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.site-header.header-dark .brand-name {
    color: #ffffff;
}

.site-header.header-dark .primary-nav a {
    color: rgba(255, 255, 255, 0.7);
}

.site-header.header-dark .primary-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.site-header.header-dark .menu-toggle span {
    background: #ffffff;
}

.site-header.header-dark + .mobile-menu,
.site-header.header-dark ~ .mobile-menu {
    background: #0B0F1F;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header.header-dark ~ .mobile-menu a:not(.btn) {
    color: rgba(255, 255, 255, 0.85);
}

.site-header.header-dark ~ .mobile-menu a:not(.btn):hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 10vw, 120px);
    background: var(--c-ink);
    color: #fff;
    overflow: hidden;
    /* Hauteur minimale pour donner de l'amplitude au hero photo */
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* === PHOTO DE FOND === */
.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=2000&q=85');
    background-size: cover;
    background-position: center;
    /* Léger zoom-in animé pour donner de la vie */
    animation: heroZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

/* === VOILE DÉGRADÉ pour la lisibilité du texte === */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Voile dégradé : très sombre côté gauche (où est le texte), 
       plus translucide côté droit (où la photo respire) + accents brand subtils */
    background:
        linear-gradient(100deg,
            rgba(11, 15, 31, 0.94) 0%,
            rgba(11, 15, 31, 0.82) 35%,
            rgba(11, 15, 31, 0.55) 65%,
            rgba(11, 15, 31, 0.35) 100%),
        radial-gradient(ellipse at 15% 50%,
            rgba(99, 102, 241, 0.22) 0%,
            transparent 55%),
        radial-gradient(ellipse at 95% 90%,
            rgba(236, 72, 153, 0.18) 0%,
            transparent 50%);
    z-index: 1;
}

/* === GRILLE TECH SUBTILE === */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}

.hero-text .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 22px 0 24px;
    color: #fff;
    /* Évite les retours à la ligne disgracieux (mots orphelins) */
    text-wrap: balance;
}

.hero-sub {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 580px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 64px;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trust-item strong {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.trust-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Hero visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.card-1 {
    top: 30px;
    left: 0;
    width: 350px;
    font-family: var(--font-mono);
    font-size: 13px;
    transform: rotate(-3deg);
    animation: cardFloat1 8s ease-in-out infinite;
}

.card-2 {
    bottom: 60px;
    right: 0;
    width: 280px;
    transform: rotate(4deg);
    animation: cardFloat2 9s ease-in-out infinite;
}

.card-3 {
    top: 50%;
    right: 60px;
    width: 180px;
    text-align: center;
    transform: translateY(-50%) rotate(-2deg);
    animation: cardFloat3 7s ease-in-out infinite;
}

@keyframes cardFloat1 {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-10px); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-8px); }
}

@keyframes cardFloat3 {
    0%, 100% { transform: translateY(-50%) rotate(-2deg); }
    50% { transform: translateY(calc(-50% - 6px)) rotate(-1deg); }
}

.card-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:nth-child(3) { background: #28ca42; }

.card-line {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
    line-height: 1.5;
}

.card-line.dim {
    color: rgba(255, 255, 255, 0.5);
}

.card-line em {
    font-style: normal;
    color: var(--c-cyan);
}

.cursor {
    display: inline-block;
    background: var(--c-cyan);
    color: var(--c-cyan);
    animation: blink 1.1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.badge-pulse span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28ca42;
    box-shadow: 0 0 0 0 rgba(40, 202, 66, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 202, 66, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(40, 202, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 202, 66, 0); }
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.metric span {
    width: 32px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
}

.bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.bar div {
    height: 100%;
    background: var(--grad-brand);
    border-radius: 100px;
    transition: width 1.2s ease;
}

.card-3 strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.card-3 span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   BAND / MARQUEE
   ============================================ */
.band {
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line-soft);
    padding: 32px 0;
    overflow: hidden;
}

.band-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.band-label {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-muted);
}

.band-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    display: flex;
    gap: 20px;
}

.band-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--c-text);
    flex-shrink: 0;
    animation: scrollX 40s linear infinite;
}

.band-row span {
    white-space: nowrap;
}

@keyframes scrollX {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 20px)); }
}

/* ============================================
   SECTIONS — GENERAL
   ============================================ */
.section {
    padding: 110px 0;
    position: relative;
}

.section-light {
    background: var(--c-bg);
}

.section-tinted {
    background: var(--c-bg-tinted);
}

.section-dark {
    background: var(--c-ink);
    color: #fff;
    overflow: hidden;
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(45, 212, 244, 0.1), transparent 40%);
    pointer-events: none;
}

.section-dark > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 760px;
    margin-bottom: 64px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header.center .lead {
    margin-left: auto;
    margin-right: auto;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ============================================
   ÉCOLE / 2-COLUMN
   ============================================ */
.col-text .section-title {
    margin-top: 18px;
}

.col-text > .btn {
    margin-top: 32px;
}

.check-list {
    margin: 28px 0 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15.5px;
    color: var(--c-text-soft);
    border-bottom: 1px solid var(--c-line-soft);
}

.check-list li:last-child {
    border-bottom: none;
}

.check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--c-indigo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.section-dark .check-list li {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.section-dark .check {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--c-cyan);
}

/* Stat grid */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat-card {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    padding: 28px;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:nth-child(1) { transform: translateY(-20px); }
.stat-card:nth-child(4) { transform: translateY(20px); }

.stat-card:nth-child(1):hover { transform: translateY(-24px); }
.stat-card:nth-child(4):hover { transform: translateY(16px); }

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1;
    color: var(--c-ink);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.4;
}

.stat-grad {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
}

.stat-grad .stat-num,
.stat-grad .stat-label {
    color: #fff;
}

.stat-dark {
    background: var(--c-ink);
    border-color: transparent;
    color: #fff;
}

.stat-dark .stat-num {
    color: #fff;
}

.stat-dark .stat-label {
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   FORMATION CARD
   ============================================ */
.formation-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 48px;
    backdrop-filter: blur(10px);
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.formation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-brand);
    opacity: 0.5;
}

.formation-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

.meta-item strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.formation-objectives h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}

.obj-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 28px;
    margin-bottom: 36px;
}

.obj-list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15.5px;
    line-height: 1.55;
}

.obj-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--grad-brand);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.formation-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.cta-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* Modules grid */
.modules-heading {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.module-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.module-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--grad-brand);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.module-card:hover::after {
    opacity: 0.6;
}

.module-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.module-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.2;
}

.module-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-card ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14.5px;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.module-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--c-cyan);
}

/* ============================================
   PÉDAGOGIE GRID
   ============================================ */
.pedago-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pedago-card {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pedago-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.pedago-card h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 12px;
    line-height: 1.2;
}

.pedago-card p {
    color: var(--c-text-soft);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   JOBS GRID
   ============================================ */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.job-card {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--c-text-soft);
}

.job-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-indigo);
    background: var(--grad-brand-soft);
    padding: 6px 12px;
    border-radius: 100px;
    align-self: flex-start;
    margin-bottom: 18px;
}

.job-card h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.2;
}

.job-card-cta {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    align-items: flex-start;
}

.job-card-cta h4 {
    color: #fff;
    margin-bottom: 18px;
}

.job-card-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.job-card-cta .btn {
    background: #fff;
    color: var(--c-ink);
}

.job-card-cta .btn:hover {
    background: var(--c-bg-alt);
    transform: translateY(-2px);
}

/* ============================================
   AUDIENCE / PUBLIC
   ============================================ */
.audience-card {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-brand);
}

.audience-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 28px;
}

.audience-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--c-line-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audience-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.audience-list li:first-child {
    padding-top: 0;
}

.audience-list strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--c-ink);
}

.audience-list span {
    color: var(--c-text-soft);
    font-size: 14.5px;
}

/* ============================================
   FINANCEMENT
   ============================================ */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.finance-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.finance-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
}

.finance-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.finance-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.55;
}

.finance-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.finance-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 24px;
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-tinted) 100%);
    padding: 110px 0;
}

.contact-layout {
    align-items: start;
    gap: 64px;
}

.contact-info {
    margin: 36px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-ink);
    font-size: 16px;
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 14px;
    color: var(--c-text-soft);
}

/* Form */
.contact-form {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-brand);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.req {
    color: var(--c-pink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--c-ink);
    background: var(--c-bg);
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--c-indigo);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
    font-family: var(--font-body);
}

.field-check .check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--c-text-soft);
    line-height: 1.5;
    font-weight: 400;
}

.field-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--c-indigo);
    cursor: pointer;
}

.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    pointer-events: none;
}

.form-feedback {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14.5px;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(40, 202, 66, 0.1);
    color: #1a8a35;
    border: 1px solid rgba(40, 202, 66, 0.3);
}

.form-feedback.error {
    display: block;
    background: rgba(236, 72, 153, 0.1);
    color: #c81e6e;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.form-feedback.loading {
    display: block;
    background: var(--c-bg-alt);
    color: var(--c-text-soft);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--c-ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 32px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-footer {
    align-items: flex-start;
    height: auto;
    display: block;
}

.brand-img-footer {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

.footer-tagline {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 360px;
}

.footer-col h5 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li,
.footer-col a {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-quali {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pedago-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .primary-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .section {
        padding: 80px 0;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero {
        padding: calc(var(--header-h) + 50px) 0 70px;
        min-height: auto;
    }

    .hero-photo {
        /* Sur mobile, recadrer la photo pour mieux mettre en valeur les visages */
        background-position: 60% center;
    }

    .hero-trust {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .formation-card {
        padding: 32px 24px;
    }

    .formation-meta {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .obj-list {
        grid-template-columns: 1fr;
    }

    .stat-card:nth-child(1),
    .stat-card:nth-child(4) {
        transform: none;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .modules-grid,
    .pedago-grid,
    .jobs-grid,
    .finance-grid {
        grid-template-columns: 1fr;
    }

    .formation-meta {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-visual {
        height: 360px;
    }

    .card-1 {
        width: 280px;
    }

    .card-2 {
        width: 240px;
    }

    .card-3 {
        width: 150px;
        right: 30px;
    }

    .hero-trust {
        grid-template-columns: 1fr 1fr;
    }
}

/* Accessibility — reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================
   SVG ICONS — Sizing & gradient styling
   ============================================ */

/* Hero card 3 (cybersecurity badge) icon */
.card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(236, 72, 153, 0.15));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--c-cyan);
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
}

/* Pedagogy icons — gradient fill effect */
.pedago-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.pedago-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.pedago-icon svg {
    width: 28px;
    height: 28px;
    color: var(--c-indigo);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.4s ease;
}
.pedago-card:hover .pedago-icon {
    transform: scale(1.08) rotate(-3deg);
    border-color: transparent;
}
.pedago-card:hover .pedago-icon::before {
    opacity: 1;
}
.pedago-card:hover .pedago-icon svg {
    color: #fff;
    transform: scale(1.05);
}

/* Finance icons — dark mode (in dark section) */
.finance-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}
.finance-icon svg {
    width: 26px;
    height: 26px;
    color: var(--c-cyan);
    transition: color 0.3s ease;
}
.finance-card:hover .finance-icon {
    transform: translateY(-3px);
    border-color: rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(236, 72, 153, 0.1));
}
.finance-card:hover .finance-icon svg {
    color: var(--c-pink);
}

/* Contact icons — light bg */
.ci-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ci-icon svg {
    width: 20px;
    height: 20px;
    color: var(--c-indigo);
}

/* ============================================
   HERO — Z-index hierarchy (overlay + grille)
   ============================================ */
.hero-inner {
    z-index: 4;
}

/* ============================================
   BENTO GALLERY
   ============================================ */
.section-gallery {
    background: var(--c-bg);
    padding: 110px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-ink);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.bento-item:hover img {
    transform: scale(1.06);
}

.bento-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(11, 15, 31, 0.85) 100%);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.bento-item figcaption {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    color: #fff;
    z-index: 2;
}

.bento-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 100px;
}

.bento-item figcaption strong {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Bento layouts */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
    .bento-large { grid-column: span 2; grid-row: span 2; }
    .bento-tall { grid-row: span 1; }
    .bento-wide { grid-column: span 1; }
}

@media (max-width: 700px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .bento-large { grid-column: span 2; grid-row: span 1; }
    .bento-tall { grid-row: span 1; }
    .bento-wide { grid-column: span 2; }
    .bento-item figcaption strong { font-size: 18px; }
}

/* ============================================
   MODAL — Save the date popup
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 22, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 880px;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-ink);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.05);
    background: #fff;
}

.modal-image {
    position: relative;
    overflow: hidden;
    background: var(--c-ink);
    min-height: 360px;
}

.modal-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), transparent 50%, rgba(236, 72, 153, 0.4));
    mix-blend-mode: overlay;
}

.modal-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 100px;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.modal-body {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text-soft);
    margin-bottom: 14px;
    align-self: flex-start;
}

.modal-body h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    margin-bottom: 14px;
}

.modal-body p {
    color: var(--c-text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-ghost-dark {
    background: transparent;
    color: var(--c-text-soft);
    border: 1.5px solid var(--c-line);
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost-dark:hover {
    background: var(--c-bg-alt);
    color: var(--c-ink);
    border-color: var(--c-text-soft);
}

.modal-note {
    font-size: 12.5px;
    color: var(--c-muted);
    font-family: var(--font-mono);
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

@media (max-width: 760px) {
    .modal {
        grid-template-columns: 1fr;
        max-width: 460px;
        max-height: 92vh;
        overflow-y: auto;
    }
    .modal-image {
        min-height: 200px;
        max-height: 220px;
    }
    .modal-body {
        padding: 32px 26px;
    }
    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    .modal-badge {
        top: 16px;
        left: 16px;
        font-size: 10px;
        padding: 6px 12px;
    }
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .modal-actions .btn {
        width: 100%;
    }
}

/* ============================================
   PREVENT BODY SCROLL WHEN MODAL OPEN
   ============================================ */
body.modal-locked {
    overflow: hidden;
}

/* ============================================
   MOBILE FINE TUNING
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-h: 76px;
    }
    .brand-mark {
        height: 42px;
    }
    .brand-name {
        font-size: 20px;
    }
    .brand-tag {
        font-size: 9px;
        letter-spacing: 0.28em;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 70px;
    }
    .brand-mark {
        height: 38px;
    }
    .hero-title {
        font-size: clamp(36px, 8vw, 52px);
    }
}

@media (max-width: 420px) {
    /* Sur très petit écran : on cache le texte, on garde juste la marque */
    .brand-text {
        display: none;
    }
    .brand-mark {
        height: 40px;
    }
}


/* ============================================
   SECTION L'ÉCOLE — Particules en effet subtil
   ============================================ */
.section-particles {
    position: relative;
    overflow: hidden;
    /* Léger dégradé radial pour donner du relief autour des particules */
    background:
        radial-gradient(ellipse at 80% 50%,
            rgba(99, 102, 241, 0.06) 0%,
            transparent 60%),
        radial-gradient(ellipse at 10% 100%,
            rgba(236, 72, 153, 0.05) 0%,
            transparent 55%),
        var(--c-bg);
}

.school-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}

/* Le contenu doit passer au-dessus des particules */
.section-particles > .container {
    position: relative;
    z-index: 1;
}
