:root {
    --navy: #061a42;
    --blue: #0a56e8;
    --blue-light: #2f83ff;
    --orange: #f05a18;
    --white: #fff;
    --paper: #f4f7fc;
    --ink: #0a1d46;
    --muted: #5c6880;
    --line: #dbe3f0;
    --shadow: 0 24px 70px rgba(6, 26, 66, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(219, 227, 240, .85);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { margin-right: auto; }
.brand img { width: 205px; height: 56px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; color: #42506b; font-weight: 700; font-size: .91rem; }
.nav-links a { padding: 10px; border-radius: 6px; }
.nav-links a:hover { color: var(--blue); background: #edf4ff; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--blue); box-shadow: 0 14px 30px rgba(10, 86, 232, .25); }
.btn-secondary { color: var(--navy); border-color: var(--line); background: var(--white); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 22px; height: 2px; margin: auto; background: var(--navy); content: ""; transition: .2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.nav.open .menu-toggle span { background: transparent; }
.nav.open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

.hero {
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(6, 26, 66, .97), rgba(10, 86, 232, .91)),
        url("../images/flyer-ete-numerique-2026.jpg") center 18% / cover;
    color: var(--white);
}
.hero-grid { min-height: 680px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 58px; align-items: center; padding: 64px 0; }
.eyebrow, .section-label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #bcd4ff; }
.eyebrow span { width: 28px; height: 3px; background: var(--orange); }
h1 { max-width: 780px; margin: 18px 0 22px; font-size: clamp(3.2rem, 6.5vw, 6rem); line-height: .98; letter-spacing: 0; }
h1 em { color: #77aaff; font-style: normal; }
.lead { max-width: 650px; color: #d7e4ff; font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.ajf-lockup { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 8px 14px 8px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.1); }
.ajf-lockup span { color: #bcd4ff; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.ajf-lockup img { width: 96px; height: 48px; object-fit: contain; padding: 4px; border-radius: 6px; background: #fff; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 660px; margin-top: 42px; border-block: 1px solid rgba(255,255,255,.18); }
.hero-facts div { padding: 18px 18px 18px 0; }
.hero-facts strong { display: block; font-size: 1.35rem; }
.hero-facts span { color: #bcd4ff; font-size: .85rem; }
.hero-media { position: relative; }
.logo-stage { padding: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: #fff; box-shadow: 0 34px 90px rgba(0,0,0,.28); transform: rotate(1.5deg); animation: floatLogo 5.8s ease-in-out infinite; }
.logo-stage img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.availability { position: absolute; right: -16px; bottom: -18px; padding: 12px 16px; border-radius: 7px; background: var(--white); color: var(--navy); font-weight: 800; box-shadow: var(--shadow); }
.availability i { margin-right: 6px; color: #22c55e; font-size: .72rem; }

section { padding: 92px 0; }
.section-grid, .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.section-label { color: var(--blue); }
h2 { margin-top: 8px; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.06; }
.section-copy, .section-head > p, .flyer-copy > p, .registration-copy > p { color: var(--muted); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.check-list span { display: flex; gap: 9px; align-items: center; color: var(--ink); font-weight: 700; }
.check-list i { color: var(--blue); }

.promo-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(47, 131, 255, .36), transparent 30%),
        radial-gradient(circle at 84% 12%, rgba(240, 90, 24, .22), transparent 24%),
        linear-gradient(135deg, #02091f 0%, #061a42 42%, #0a56e8 100%);
}
.promo-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.promo-wrap { position: relative; z-index: 1; display: grid; gap: 32px; }
.promo-heading { display: grid; justify-items: center; text-align: center; }
.promo-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: #d7e7ff;
    background: rgba(255,255,255,.08);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.promo-heading h2 { max-width: 780px; margin-top: 14px; }
.video-stage { position: relative; width: min(100%, 980px); margin-inline: auto; padding: 12px; }
.video-stage::before {
    content: "";
    position: absolute;
    inset: -28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(47,131,255,.5), rgba(240,90,24,.26), rgba(255,255,255,.16));
    filter: blur(34px);
    opacity: .72;
    animation: videoGlow 5s ease-in-out infinite;
}
.video-orbit {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    pointer-events: none;
}
.video-orbit-one { inset: -18px 8%; animation: orbitDrift 7s ease-in-out infinite; }
.video-orbit-two { inset: 18px -20px; animation: orbitDrift 8s ease-in-out infinite reverse; }
.video-shell {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 10px;
    background: #020b22;
    box-shadow: 0 36px 110px rgba(0,0,0,.34);
}
.video-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0 38%, rgba(255,255,255,.18) 48%, transparent 58% 100%);
    transform: translateX(-120%);
    animation: videoSweep 6.5s ease-in-out infinite;
}
.video-shell::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -120px 120px rgba(0,0,0,.22); }
.video-shell video { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px;
    padding: 28px;
    text-align: center;
    background:
        linear-gradient(rgba(6,26,66,.56), rgba(6,26,66,.72)),
        url("../images/flyer-ete-numerique-2026.jpg") center 22% / cover;
}
.video-placeholder img {
    width: min(72%, 520px);
    padding: 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 64px rgba(0,0,0,.24);
    animation: logoBreath 4.8s ease-in-out infinite;
}
.video-placeholder i {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 12px rgba(255,255,255,.12), 0 18px 44px rgba(0,0,0,.22);
    animation: pulsePlay 1.9s ease-in-out infinite;
}

.modules-section { background: var(--paper); }
.section-head { margin-bottom: 34px; }
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { min-height: 270px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 34px rgba(6,26,66,.06); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.module-card:hover { transform: translateY(-8px); border-color: #b7cdfa; box-shadow: 0 24px 60px rgba(6,26,66,.12); }
.module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.module-number { color: var(--blue); font-weight: 800; }
.module-top i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 7px; color: var(--white); background: var(--navy); }
.module-card h3 { font-size: 1.2rem; line-height: 1.25; }
.module-date { margin-top: 10px; color: var(--muted); }
.module-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.module-footer a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; color: var(--white); background: var(--blue); }

.flyer-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.flyer-copy h2 { margin-bottom: 18px; }
.contact-stack { display: grid; gap: 14px; margin: 28px 0; }
.contact-stack div { display: flex; gap: 14px; align-items: flex-start; }
.contact-stack i { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 7px; color: var(--white); background: var(--blue); }
.flyer-frame { display: block; overflow: hidden; max-height: 760px; border: 10px solid var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.flyer-frame img { width: 100%; object-fit: cover; object-position: top; }

.archives-section { background: var(--navy); color: var(--white); }
.archives-section .section-label { color: #77aaff; }
.archives-section .section-head > p { color: #b8c8e6; }
.archives-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.archive-card { overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.06); transition: transform .24s ease, border-color .24s ease; }
.archive-card:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.34); }
.archive-media { position: relative; display: block; height: 240px; min-height: 240px; padding: 0; background: rgba(0,0,0,.28); }
.archive-media-item,
.archive-more { position: absolute; inset: 0; display: block; overflow: hidden; width: 100%; height: 100%; border: 0; padding: 0; background: #061a42; cursor: pointer; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.archive-media-item.is-active { opacity: 1; transform: scale(1); pointer-events: auto; z-index: 1; }
.archive-media-item img,
.archive-media-item video { width: 100%; height: 100%; min-height: 240px; object-fit: cover; background: #fff; transition: transform .24s ease, filter .24s ease; }
.archive-media-item:hover img,
.archive-media-item:hover video { transform: scale(1.06); filter: brightness(.82); }
.media-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(6,26,66,.18); font-size: 1.5rem; }
.media-play i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.archive-carousel::before,
.archive-carousel::after { content: ""; position: absolute; inset: 14px; z-index: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; transform: rotate(-2deg); pointer-events: none; }
.archive-carousel::after { inset: 20px; opacity: .7; transform: rotate(2deg); }
.archive-carousel-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.archive-slide-count { min-height: 28px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(2,9,31,.72); font-size: .78rem; font-weight: 800; backdrop-filter: blur(8px); }
.archive-slide-dots { display: inline-flex; gap: 5px; padding: 8px; border-radius: 999px; background: rgba(2,9,31,.5); backdrop-filter: blur(8px); }
.archive-slide-dots i { display: block; width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.38); transition: width .24s ease, background .24s ease; }
.archive-slide-dots i.is-active { width: 18px; background: #77aaff; }
.archive-more { display: grid; place-items: center; color: #fff; font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, rgba(10,86,232,.92), rgba(6,26,66,.92)); }
.archive-content { padding: 22px; }
.archive-card span { color: #77aaff; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.archive-card h3 { margin: 8px 0; }
.archive-card p { color: #b8c8e6; font-size: .92rem; }
.empty-state { display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; background: rgba(255,255,255,.06); }
.empty-state img { width: 180px; padding: 10px; border-radius: 6px; background: #fff; }
.empty-state p { color: #b8c8e6; }

.gallery-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.gallery-modal.is-open { display: flex; }
.gallery-backdrop { position: absolute; inset: 0; background: rgba(2, 9, 31, .86); backdrop-filter: blur(12px); }
.gallery-dialog { position: relative; z-index: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; width: min(1100px, 100%); max-height: min(820px, calc(100vh - 48px)); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: #02091f; box-shadow: 0 40px 110px rgba(0,0,0,.46); }
.gallery-close { position: absolute; top: 14px; right: 14px; z-index: 4; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; }
.gallery-view { display: grid; place-items: center; min-height: 420px; background: radial-gradient(circle at 50% 20%, rgba(10,86,232,.22), transparent 34%), #02091f; }
.gallery-view img,
.gallery-view video { max-width: 100%; max-height: min(62vh, 620px); object-fit: contain; }
.gallery-view video { width: 100%; height: auto; background: #000; }
.gallery-info { display: grid; grid-template-columns: 52px 1fr 52px; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.12); color: #fff; background: rgba(255,255,255,.05); }
.gallery-info div { display: grid; justify-items: center; text-align: center; }
.gallery-info span { color: #b8c8e6; font-size: .84rem; }
.gallery-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; }
.gallery-autoplay { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 10px 0 0; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-weight: 800; cursor: pointer; }
.gallery-autoplay[aria-pressed="false"] { color: #b8c8e6; }
.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px; background: rgba(0,0,0,.22); }
.gallery-thumb { position: relative; flex: 0 0 82px; height: 58px; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #061a42; cursor: pointer; opacity: .68; }
.gallery-thumb.is-active { border-color: #77aaff; opacity: 1; }
.gallery-thumb img,
.gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.22); }

.registration-section { background: var(--paper); }
.registration-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.registration-copy { position: sticky; top: 110px; }
.price-callout { display: grid; margin-top: 30px; padding: 24px; border-left: 4px solid var(--orange); background: var(--white); box-shadow: 0 14px 40px rgba(6,26,66,.08); }
.price-callout span, .price-callout small { color: var(--muted); }
.price-callout strong { font-size: 2.2rem; color: var(--blue); }
.registration-form { display: grid; gap: 16px; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; font-size: .86rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; color: var(--ink); background: #fff; }
input, select { min-height: 50px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10,86,232,.1); }
.consent { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 600; }
.consent input { width: 18px; min-height: 18px; margin-top: 3px; }
.conditional-field { display: none; }
.conditional-field.is-visible { display: grid; }
.submit-btn { width: 100%; }
.alert { margin-top: 24px; padding: 16px 18px; border-radius: 7px; font-weight: 700; }
.alert.success { color: #14532d; border: 1px solid #86efac; background: #dcfce7; }
.alert.error { color: #881337; border: 1px solid #fda4af; background: #ffe4e6; }

footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .9rem; }
.footer-inner > img { width: 190px; height: 60px; object-fit: contain; }
.footer-branding { display: flex; align-items: center; gap: 14px; color: var(--navy); font-weight: 800; }
.footer-branding img { width: 82px; height: 50px; object-fit: contain; padding: 4px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(1.5deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}

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

@keyframes videoGlow {
    0%, 100% { opacity: .52; transform: scale(.98); }
    50% { opacity: .9; transform: scale(1.02); }
}

@keyframes videoSweep {
    0%, 42% { transform: translateX(-120%); }
    58%, 100% { transform: translateX(120%); }
}

@keyframes orbitDrift {
    0%, 100% { transform: translateY(0) scale(1); opacity: .44; }
    50% { transform: translateY(-10px) scale(1.025); opacity: .74; }
}

@keyframes logoBreath {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
    .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 78px; left: 0; right: 0; display: grid; max-height: 0; overflow: hidden;
        padding: 0 20px; background: #fff; transition: max-height .22s ease, padding .22s ease;
    }
    .nav.open .nav-links { max-height: 430px; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
    .nav-links a { padding: 14px; background: var(--paper); }
    .hero-grid, .flyer-layout, .registration-layout { grid-template-columns: 1fr; }
    .hero-media { max-width: 620px; }
    .section-grid, .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
    .modules-grid, .archives-grid { grid-template-columns: repeat(2, 1fr); }
    .registration-copy { position: static; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1180px); }
    .brand img { width: 170px; }
    .hero-grid { min-height: auto; padding: 52px 0; }
    h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
    .hero-facts, .modules-grid, .archives-grid, .form-grid, .check-list { grid-template-columns: 1fr; }
    .hero-facts div { border-bottom: 1px solid rgba(255,255,255,.12); }
    section { padding: 68px 0; }
    .registration-form { padding: 20px; }
    .flyer-frame { max-height: 580px; }
    .video-stage { padding: 4px; }
    .video-placeholder img { width: min(86%, 420px); padding: 12px; }
    .video-placeholder i { width: 60px; height: 60px; }
    .empty-state, .footer-inner { display: grid; }
    .gallery-modal { padding: 10px; }
    .gallery-dialog { max-height: calc(100vh - 20px); }
    .gallery-view { min-height: 280px; }
    .gallery-info { grid-template-columns: 44px 1fr 44px; }
    .gallery-thumb { flex-basis: 70px; height: 52px; }
    .empty-state img { width: 100%; }
    .footer-inner { justify-items: start; }
    .footer-branding { flex-wrap: wrap; }
}
