/* =========================================================================
   ETPS · Feuille de style
   Palette claire et nette, accents marque (vert + bleu), univers sombres
   pour les domaines "tech". Pas de dégradés colorés, pas d'emoji.
   Polices : Space Grotesk (titres) + Plus Jakarta Sans (texte).
   ========================================================================= */

:root {
  --ink:        #10212b;
  --ink-soft:   #51616b;
  --bg:         #ffffff;
  --bg-soft:    #f3f6f7;
  --bg-softer:  #eef2f3;
  --line:       rgba(16, 33, 43, .10);
  --line-strong:rgba(16, 33, 43, .18);

  --green:      #56b948;
  --green-deep: #3f9a34;
  --blue:       #3aa0d8;
  --blue-deep:  #2b85bd;

  --dark:       #0a141d;
  --dark-2:     #0e1c28;
  --dark-soft:  #16242f;
  --dark-line:  rgba(255, 255, 255, .12);

  --radius:     18px;
  --radius-lg:  26px;
  --shadow:     0 24px 60px -24px rgba(16, 33, 43, .28);
  --shadow-sm:  0 10px 30px -16px rgba(16, 33, 43, .35);

  --container:  1200px;
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --font:       'Cabin', system-ui, -apple-system, sans-serif;   /* texte + interface */
  --display:    'Cabin', system-ui, sans-serif;                  /* titres */
}

/* ---------------------------------------------------------------- Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
::selection { background: var(--blue); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }

/* Lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font); font-weight: 600; font-size: .94rem;
  padding: .85em 1.6em; border-radius: 100px; cursor: pointer; position: relative;
  border: 1.5px solid transparent; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap; will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn--lg { padding: 1.05em 2em; font-size: 1rem; }

.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #000; box-shadow: var(--shadow-sm); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--accent { background: var(--accent, var(--blue)); color: #fff; box-shadow: 0 14px 30px -14px var(--accent, var(--blue)); }
.btn--accent:hover { filter: brightness(1.06); box-shadow: 0 20px 40px -16px var(--accent, var(--blue)); }

/* ---------------------------------------------------------------- Helpers */
.eyebrow {
  font-family: var(--font); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .22em; color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--green); display: inline-block; }

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* Titres révélés ligne par ligne (mots qui montent) */
.split-lines .s-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-lines .s-word > span { display: inline-block; transform: translateY(110%); }
.split-lines.is-in .s-word > span { transform: none; transition: transform .85s var(--ease); }

/* ============================================================ LOADER */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s ease, visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { display: grid; justify-items: center; gap: 18px; }
.loader__mark img { width: 110px; animation: floaty 2.4s ease-in-out infinite; }
.loader__bar { width: 140px; height: 3px; background: var(--bg-softer); border-radius: 4px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--green); border-radius: 4px; animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 11px 0; background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line);
}
.nav.is-light:not(.is-scrolled) { color: #fff; }
.nav.is-light:not(.is-scrolled) .nav__links a:not(.btn) { color: #fff; }
.nav.is-light:not(.is-scrolled) .nav__brand { color: #fff; }
.nav.is-light:not(.is-scrolled) .nav__burger span { background: #fff; }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 64px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__brand img { height: 54px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-family: var(--font); font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: currentColor; transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { padding: .6em 1.3em !important; }
.menu-legal { display: none; }  /* visible uniquement dans le menu mobile */

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 2; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ FLASH */
.flash-wrap { padding-top: 110px; display: grid; gap: 12px; }
.flash {
  padding: 16px 20px; border-radius: 14px; font-weight: 500;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.flash--success { background: #eaf7e8; border-color: #bfe6b7; color: var(--green-deep); }
.flash--error { background: #fbeaea; border-color: #efc4c4; color: #b1342f; }

/* ============================================================ HÉRO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s ease; }
.hero__slide.is-active img { transform: scale(1); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,17,24,.55) 0%, rgba(8,17,24,.25) 40%, rgba(8,17,24,.82) 100%);
}

.hero__content { position: relative; z-index: 2; padding-bottom: 120px; padding-top: 140px; }
.hero__kicker {
  font-family: var(--font); font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  font-size: .82rem; margin-bottom: 22px; color: #cfeefb;
}
.hero__title { font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 700; max-width: 16ch; margin-bottom: 26px; }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero__title .word > span { display: inline-block; transform: translateY(110%); }
.hero__subtitle { max-width: 60ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.9); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__captions { position: relative; min-height: 52px; border-left: 2px solid var(--green); padding-left: 18px; max-width: 460px; }
.hero__caption { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; display: grid; gap: 3px; }
.hero__caption.is-active { opacity: 1; transform: none; position: relative; }
.hero__caption strong { font-family: var(--display); font-size: 1.05rem; }
.hero__caption span { font-size: .9rem; color: rgba(255,255,255,.75); }

.hero__dots { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 14px; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: transparent; cursor: pointer; transition: all .3s; padding: 0; }
.hero__dot.is-active { background: var(--green); border-color: var(--green); transform: scale(1.25); }

.hero__scroll {
  position: absolute; left: 26px; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.hero__scroll-line { width: 46px; height: 2px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; width: 50%; background: var(--green); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* ============================================================ MARQUEE */
.marquee { background: var(--ink); color: #fff; padding: 26px 0; overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__item { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 2.1rem); letter-spacing: -.01em; opacity: .92; }
.marquee__sep { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ À PROPOS */
.about { padding: clamp(80px, 12vw, 150px) 0; background: var(--bg); }
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.about__title { font-size: clamp(1.9rem, 4vw, 3.1rem); margin: 20px 0 22px; max-width: 18ch; }
.about__text { color: var(--ink-soft); font-size: 1.08rem; max-width: 56ch; margin-bottom: 30px; }
.about__actions { display: flex; flex-wrap: wrap; gap: 13px; }

.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 4vw, 3.2rem); color: var(--ink); line-height: 1; }
.stat__plus { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--green); vertical-align: top; }
.stat p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

/* ============================================================ SERVICES */
.services { padding-bottom: 40px; }
.services__head { padding: clamp(40px, 7vw, 90px) 0 30px; max-width: 760px; }
.services__title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-top: 18px; }

/* --- Univers (chaque domaine) --- */
.universe { position: relative; padding: clamp(70px, 10vw, 130px) 0; overflow: hidden; transition: background .8s var(--ease), color .8s var(--ease); }
.universe--light { background: var(--bg); }
.universe--light:nth-of-type(even) { background: var(--bg-soft); }
.universe--dark { background: var(--dark); color: #fff; }
.universe--dark .universe__desc { color: rgba(255,255,255,.78); }
.universe--dark .universe__features li { color: rgba(255,255,255,.92); }

/* grille technique discrète (univers sombres) */
.universe--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
}

/* halo coloré flottant (tous les univers, plus marqué en sombre) */
.universe__orb {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: var(--accent); filter: blur(150px); opacity: .14; top: 6%; right: -120px;
  pointer-events: none; will-change: transform; z-index: 0;
}
.universe.is-right .universe__orb { right: auto; left: -120px; }
.universe--dark .universe__orb { opacity: .26; }

.universe__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.universe.is-right .universe__media { order: 2; }

.universe__media { position: relative; }
.universe__media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 5 / 6; box-shadow: var(--shadow);
  transform-style: preserve-3d; will-change: transform;
}
.universe__media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); transform: translateZ(0); }
.universe:hover .universe__media-frame img { transform: scale(1.05); }
.universe__media-frame::after {
  content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
  pointer-events: none;
}
.universe__media-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  color: #fff; background: rgba(10,20,29,.55); border: 1px solid rgba(255,255,255,.25);
  padding: .5em 1em; border-radius: 100px; backdrop-filter: blur(8px);
  transform: translateZ(40px);
}
.universe__index {
  position: absolute; font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1; bottom: -22px; z-index: 2;
  -webkit-text-stroke: 2px var(--accent); color: transparent; opacity: .5;
}
.universe.is-left .universe__index { right: 4px; }
.universe.is-right .universe__index { left: 4px; }
.universe--dark .universe__index { opacity: .85; }

.universe__eyebrow {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .2em;
  font-size: .82rem; color: var(--accent); margin-bottom: 16px; display: inline-flex; align-items: center; gap: .7em;
}
.universe__eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.universe__name { font-size: clamp(1.7rem, 3.3vw, 2.6rem); margin-bottom: 20px; max-width: 18ch; }
.universe__desc { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 26px; max-width: 52ch; }

.universe__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-bottom: 32px; }
.universe__features li { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.tick::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ============================================================ CTA BAND */
.cta-band { padding: clamp(70px, 10vw, 130px) 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--green);
  filter: blur(180px); opacity: .2; left: 50%; top: 120%; transform: translateX(-50%); pointer-events: none;
}
.cta-band__inner { position: relative; text-align: center; max-width: 760px; margin-inline: auto; }
.cta-band__inner h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin-bottom: 18px; }
.cta-band__inner p { color: rgba(255,255,255,.78); font-size: 1.1rem; margin-bottom: 32px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ============================================================ FOOTER */
.footer { background: #07121a; color: rgba(255,255,255,.82); padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 50px; padding-bottom: 56px; }
.footer__brand { display: inline-flex; align-items: center; margin-bottom: 18px; }
.footer__brand img { height: 104px; width: auto; }
.footer__col--brand p { max-width: 38ch; margin-bottom: 24px; }
.footer__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a:hover { color: var(--green); }
.footer__contact li { display: grid; gap: 2px; margin-bottom: 6px; }
.footer__contact span { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: rgba(255,255,255,.55); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer__legal a { position: relative; }
.footer__legal a:hover { color: var(--green); }

/* ============================================================ PAGES FORMULAIRE */
.page-form { background: var(--bg-soft); }
.form-hero { padding: 150px 0 50px; }
.form-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 16px; }
.form-hero__lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }

.form-section { padding-bottom: 110px; }
.form-section__grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 34px; align-items: start; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-weight: 600; font-size: .9rem; }
.field__input {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg-soft);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field__input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(58,160,216,.14); }
textarea.field__input { resize: vertical; min-height: 120px; }
.field .errorlist { list-style: none; color: #b1342f; font-size: .85rem; }
.form-errors { background: #fbeaea; border: 1px solid #efc4c4; color: #b1342f; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; }

.form-aside { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px); position: sticky; top: 100px; }
.form-aside h3 { font-size: 1.4rem; margin-bottom: 22px; }
.form-aside__list { display: grid; gap: 14px; margin-bottom: 30px; }
.form-aside__list li { display: flex; align-items: flex-start; gap: 11px; color: rgba(255,255,255,.88); }
.form-aside__list .tick { --accent: var(--green); margin-top: 3px; }
.form-aside__contact h4, .form-aside h3 { font-family: var(--display); }
.form-aside__contact { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; }
.form-aside__contact h4 { font-size: 1rem; margin-bottom: 12px; }
.form-aside__contact a:hover { color: var(--green); }
.form-aside__coords { display: grid; gap: 16px; margin-bottom: 26px; }
.form-aside__coords li { display: grid; gap: 3px; }
.form-aside__coords span { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.5); }
.form-aside__coords a:hover { color: var(--green); }

/* ============================================================ PAGES LÉGALES */
.legal { padding-bottom: 100px; }
.legal__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow); max-width: 920px;
}
.legal__notice {
  background: var(--bg-softer); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 32px; color: var(--ink-soft); font-size: .95rem;
}
.legal h2 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); margin: 34px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { display: grid; gap: 9px; margin: 6px 0 18px; }
.legal li { display: flex; gap: 11px; color: var(--ink-soft); }
.legal li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: 9px; }
.legal a { color: var(--blue-deep); text-decoration: underline; }
.legal strong { color: var(--ink); }

/* ============================================================ PAGES D'ERREUR */
.error-page { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 150px 24px 100px; text-align: center; }
.error-page__inner { max-width: 580px; }
.error-code { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 17vw, 9.5rem); line-height: 1; color: var(--blue); letter-spacing: -.03em; }
.error-page h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 6px 0 14px; }
.error-page p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 32px; }
.error-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .universe__inner { grid-template-columns: 1fr; gap: 40px; }
  .universe.is-right .universe__media { order: 0; }
  .universe__media-frame { aspect-ratio: 16 / 11; max-width: 600px; margin-inline: auto; width: 100%; }
  .universe__media { max-width: 100%; }
  .form-section__grid { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}

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

  /* Menu mobile : plein écran, opaque. La barre + le burger restent au-dessus. */
  .nav__brand, .nav__burger { position: relative; z-index: 3; }
  .nav__links {
    position: fixed; inset: 0; width: 100%; height: 100svh; z-index: 2;
    background: #fff; color: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
    padding: 104px 34px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; }
  /* on coupe le flou quand le menu est ouvert (sinon il casse le position:fixed du menu) */
  .nav.is-open { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-bottom-color: var(--line); }
  .nav.is-open .nav__burger span { background: var(--ink) !important; }
  .nav.is-light:not(.is-scrolled) .nav__links a:not(.btn) { color: var(--ink); }
  .nav__links a { font-size: 1.55rem; font-weight: 600; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .nav__cta { font-size: 1.05rem; width: 100%; justify-content: center; margin-top: 14px; padding: .85em 1.3em !important; color: #fff; }
  .nav__links .menu-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; }
  .nav__links .menu-legal a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
  .nav__burger { display: flex; }
  .nav__brand img { height: 48px; }
  .nav.is-scrolled .nav__brand img { height: 44px; }

  .hero { min-height: 92svh; }
  .hero__dots { display: none; }
  .hero__content { padding-top: 120px; padding-bottom: 84px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__scroll { display: none; }

  .about__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px 18px; }

  .universe { padding-block: 64px; }
  .universe__features { grid-template-columns: 1fr; }
  .universe__media-frame { aspect-ratio: 4 / 3; }
  .universe__index { font-size: 3rem; bottom: -16px; }
  .universe__orb { width: 280px; height: 280px; filter: blur(110px); }
  .universe .btn--accent { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }

  .field-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .about__stats { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, .split-lines .s-word > span { opacity: 1; transform: none; }
}
