/* =========================================================
   Alamosoft — maquette « Nocturne »
   ========================================================= */
:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --panel: #0e1424;
  --line: rgba(160, 180, 230, .14);
  --line-strong: rgba(160, 180, 230, .28);
  --text: #e9edf6;
  --text-2: #a9b3c9;      /* AA sur --bg : 8.9:1 */
  --text-3: #8591ab;      /* AA sur --bg : 5.9:1 */

  --ai: #3fe0ff;      --ai-rgb: 63, 224, 255;
  --games: #e266ff;   --games-rgb: 226, 102, 255;
  --host: #34e3a0;    --host-rgb: 52, 227, 160;
  --ed: #ffb547;      --ed-rgb: 255, 181, 71;

  --f-display: "Unbounded", "Segoe UI", sans-serif;
  --f-text: "Manrope", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain global */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; }
.muted { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-ai { color: var(--ai); } .c-games { color: var(--games); } .c-host { color: var(--host); } .c-ed { color: var(--ed); }

:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: 0 22px;
  font: 600 .95rem/1 var(--f-text);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px;
  transition: background .25s, color .25s, border-color .25s, box-shadow .3s, transform .2s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 40px rgba(var(--ai-rgb), .35); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(7,10,18,.35); }
.btn--ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------------- Logo ---------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { display: block; width: 34px; height: 34px; object-fit: contain; transition: filter .4s var(--ease); }
.logo__word { font: 400 1.15rem/1 var(--f-display); letter-spacing: .01em; }
.logo__word b { font-weight: 800; }
.logo:hover .logo__mark { filter: brightness(1.25) drop-shadow(0 0 6px rgba(220, 230, 255, .35)); }

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 10, 18, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 10, 18, .78); }
.nav__inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__menu ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav__menu a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text-2);
  transition: color .2s;
}
.nav__menu a .mono { color: var(--text-3); font-size: .68rem; }
.nav__menu a:hover { color: var(--text); }
.nav__menu .nav__cta { border: 1px solid var(--line-strong); color: var(--text); margin-left: 8px; }
.nav__menu .nav__cta:hover { border-color: var(--ai); box-shadow: 0 0 22px rgba(var(--ai-rgb), .25); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 12px; margin-right: -12px;
    background: none; border: 0; color: var(--text); font: 600 .9rem var(--f-text); cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative;
    transition: transform .3s var(--ease), background .2s;
  }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -6px; } .nav__toggle-bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #070a12;
    box-shadow: 0 100vh 0 100vh rgba(3, 5, 10, .72);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu a { width: 100%; min-height: 56px; padding: 0; font-family: var(--f-display); font-size: 1.35rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__menu .nav__cta { border: 0; border-bottom: 1px solid var(--line); margin: 0; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 0;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.12); filter: brightness(.2); } to { transform: scale(1); filter: brightness(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,10,18,.92) 0%, rgba(7,10,18,.6) 45%, rgba(7,10,18,.1) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,10,18,0) 35%);
}
.hero__content { max-width: var(--max); width: 100%; margin: 0 auto; padding-bottom: clamp(40px, 8vh, 90px); }
.hero__kicker { color: var(--ai); text-transform: uppercase; margin-bottom: 28px; }
.hero__kicker .sep { color: var(--text-3); margin: 0 .5em; }
.hero__kicker .place { white-space: nowrap; }
.hero__title {
  font-size: clamp(2.1rem, 6.2vw, 6.1rem);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
  max-width: 17ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .25s; }
.hero__title .line:nth-child(2) > span { animation-delay: .37s; }
.hero__title .line:nth-child(3) > span { animation-delay: .49s; }
.hero__title .line:nth-child(4) > span { animation-delay: .61s; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--ai), var(--games) 40%, var(--host) 70%, var(--ed));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { max-width: 40rem; margin: 32px 0 34px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reveal { animation: fadeUp 1s var(--ease) both; }
.hero__kicker.reveal { animation-delay: .1s; }
.hero__lead.reveal { animation-delay: .8s; }
.hero__actions.reveal { animation-delay: .95s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__index {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  animation: fadeUp 1s 1.15s var(--ease) both;
}
.hero__index li + li { border-left: 1px solid var(--line); }
.hero__index a {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 0 var(--gutter);
  text-decoration: none; font: 600 1rem var(--f-display); color: var(--text-2);
  transition: color .25s, background .25s;
}
.hero__index a .mono { color: var(--acc); }
.hero__index a::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
  box-shadow: 0 0 16px var(--acc);
}
.hero__index a:hover, .hero__index a:focus-visible { color: var(--text); background: rgba(255,255,255,.03); }
.hero__index a:hover::before, .hero__index a:focus-visible::before { transform: scaleX(1); }

@media (max-width: 760px) {
  .hero__veil { background: linear-gradient(0deg, var(--bg) 8%, rgba(7,10,18,.72) 55%, rgba(7,10,18,.45) 100%); }
  .hero__index { grid-template-columns: repeat(2, 1fr); }
  .hero__index li:nth-child(3) { border-left: 0; }
  .hero__index li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__index a { min-height: 56px; font-size: .9rem; padding: 0 16px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------- En-têtes de section ---------------- */
.section-head { margin-bottom: clamp(36px, 6vw, 72px); }
.section-head__num { color: var(--text-3); text-transform: uppercase; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.9rem); font-weight: 600; max-width: 22ch; }

/* ---------------- Départements ---------------- */
.depts { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(40px, 6vw, 80px); }

.dept {
  --lit: 0;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  margin-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  isolation: isolate;
  transition: border-color .6s var(--ease), box-shadow .8s var(--ease);
}
/* halo néon */
.dept::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 90% at var(--hx, 30%) 50%, rgba(var(--acc-rgb), .22), transparent 70%);
  opacity: 0; transition: opacity .8s var(--ease);
}
/* liseré lumineux supérieur */
.dept::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc) 20%, var(--acc) 80%, transparent);
  box-shadow: 0 0 18px var(--acc), 0 0 42px rgba(var(--acc-rgb), .6);
  transform: scaleX(0); transition: transform 1.1s var(--ease);
}
.dept.is-lit { border-color: rgba(var(--acc-rgb), .35); box-shadow: 0 30px 120px -40px rgba(var(--acc-rgb), .35); }
.dept.is-lit::after { transform: scaleX(1); }
.dept.is-lit::before { opacity: .55; }
.dept:hover::before, .dept:focus-within::before { opacity: 1; }
.dept:hover, .dept:focus-within { border-color: rgba(var(--acc-rgb), .6); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .25), 0 40px 140px -40px rgba(var(--acc-rgb), .55); }

.dept--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.dept--flip .dept__media { order: 2; }
.dept--flip { --hx: 70%; }

.dept__media { margin: 0; position: relative; overflow: hidden; min-height: 100%; background: #000; }
.dept__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) brightness(.84) contrast(1.05);
  transform: scale(1.06);
  transition: filter 1s var(--ease), transform 1.6s var(--ease);
}
.dept__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 55%, rgba(14,20,36,.9));
  mix-blend-mode: normal;
}
.dept--flip .dept__media::after { background: linear-gradient(270deg, transparent 55%, rgba(14,20,36,.9)); }
.dept.is-lit .dept__media img { filter: saturate(1) brightness(.9) contrast(1.05); transform: scale(1); }
.dept:hover .dept__media img { filter: saturate(1.15) brightness(1) contrast(1.08); }

.dept__body { position: relative; padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; }
.dept__num {
  position: absolute; top: clamp(18px, 3vw, 36px); right: clamp(20px, 3vw, 40px);
  margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; font-weight: 500; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--acc-rgb), .45);
  transition: -webkit-text-stroke-color .6s, text-shadow .6s;
}
.dept.is-lit .dept__num, .dept:hover .dept__num { -webkit-text-stroke-color: var(--acc); text-shadow: 0 0 28px rgba(var(--acc-rgb), .45); }
.dept__title { font-size: clamp(1.6rem, 3vw, 2.5rem); margin: 0 0 14px; padding-right: 3.5em; }
.dept__title span { color: var(--acc); text-shadow: 0 0 24px rgba(var(--acc-rgb), .45); }
.dept__desc { color: var(--text-2); max-width: 34rem; margin-bottom: clamp(22px, 3vw, 36px); }

.sites { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.sites li { border-bottom: 1px solid var(--line); }
.sites a {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name arrow" "desc arrow" "url arrow";
  column-gap: 20px; row-gap: 2px;
  padding: 16px 4px 16px 0;
  text-decoration: none;
  transition: padding .35s var(--ease), background .35s;
}
.sites a::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: var(--acc); box-shadow: 0 0 12px var(--acc);
  transform: scaleY(0); transition: transform .35s var(--ease);
}
.sites a:hover, .sites a:focus-visible { padding-left: 16px; background: linear-gradient(90deg, rgba(var(--acc-rgb), .08), transparent 70%); }
.sites a:hover::before, .sites a:focus-visible::before { transform: scaleY(1); }
.sites__name { grid-area: name; font: 600 1.12rem/1.3 var(--f-display); }
.sites__desc { grid-area: desc; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.sites__url { grid-area: url; color: var(--acc); margin-top: 6px; }
.sites__arrow {
  grid-area: arrow; align-self: center;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); color: var(--text-2); font-size: 1rem;
  transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease);
}
.sites a:hover .sites__arrow, .sites a:focus-visible .sites__arrow {
  background: var(--acc); border-color: var(--acc); color: var(--bg); transform: translate(2px, -2px);
  box-shadow: 0 0 22px rgba(var(--acc-rgb), .55);
}

@media (max-width: 900px) {
  .dept, .dept--flip { grid-template-columns: 1fr; }
  .dept--flip .dept__media { order: 0; }
  .dept__media { aspect-ratio: 16 / 10; }
  .dept__media::after, .dept--flip .dept__media::after { background: linear-gradient(0deg, rgba(14,20,36,.95), transparent 45%); }
  .dept__num { top: auto; bottom: calc(100% + 14px); right: 18px; font-size: 3.4rem; }
}
@media (max-width: 420px) {
  .sites__arrow { width: 34px; height: 34px; }
  .sites a { column-gap: 12px; }
}

/* ---------------- À propos ---------------- */
.about { position: relative; overflow: hidden; isolation: isolate; padding: clamp(90px, 14vw, 200px) var(--gutter) clamp(70px, 10vw, 140px); }
.about__media { position: absolute; inset: 0; z-index: -1; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; opacity: .9; }
.about__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7,10,18,.35) 28%, rgba(7,10,18,.62) 62%, var(--bg) 100%), linear-gradient(90deg, rgba(7,10,18,.55), transparent 60%);
}
.about__inner { max-width: var(--max); margin: 0 auto; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__text p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text); max-width: 34rem; }
.about__text p + p { color: var(--text-2); }
.cycle { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.cycle li {
  position: relative; display: grid; grid-template-columns: 2.2em 1fr; column-gap: 8px;
  padding: 14px 0 14px 22px;
}
.cycle li::before {
  content: ""; position: absolute; left: -5px; top: 22px; width: 9px; height: 9px;
  background: var(--bg); border: 1px solid var(--text-3); transform: rotate(45deg);
}
.cycle li:nth-child(1)::before { border-color: var(--ai); background: var(--ai); }
.cycle li:nth-child(2)::before { border-color: var(--games); background: var(--games); }
.cycle li:nth-child(3)::before { border-color: var(--host); background: var(--host); }
.cycle li:nth-child(4)::before { border-color: var(--ed); background: var(--ed); }
.cycle .mono { color: var(--text-3); padding-top: 6px; grid-row: span 2; }
.cycle strong { font: 600 1.2rem/1.3 var(--f-display); }
.cycle span:not(.mono) { color: var(--text-2); font-size: .95rem; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(48px, 7vw, 90px) 0 0; padding: 0; }
.stack li {
  padding: 10px 14px; border: 1px solid var(--line-strong); color: var(--text-2);
  background: rgba(7,10,18,.6); display: inline-flex; align-items: center; gap: 10px;
}
.stack li::before { content: ""; width: 6px; height: 6px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------------- Contact ---------------- */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px);
}
.contact__aside > p { color: var(--text-2); max-width: 30rem; }
.coords { margin: 36px 0 0; }
.coords div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.coords div:last-child { border-bottom: 1px solid var(--line); }
.coords dt { color: var(--text-3); text-transform: uppercase; padding-top: 4px; }
.coords dd { margin: 0; }
.coords a { color: var(--text); text-decoration-color: rgba(var(--ai-rgb), .6); text-underline-offset: 4px; }
.coords a:hover { color: var(--ai); }

.contact__panel {
  position: relative; align-self: start; padding: clamp(22px, 4vw, 48px);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
}
.contact__panel::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--ai), var(--games), var(--host), var(--ed));
  box-shadow: 0 0 24px rgba(var(--ai-rgb), .35);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full, .field:has(select) { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.req { color: var(--ai); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: rgba(3,5,10,.6); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 2px;
  font: 400 1rem/1.4 var(--f-text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(160,180,230,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(var(--ai-rgb), .2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff7a8a; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); pointer-events: none;
}
.select option { background: var(--bg-2); color: var(--text); }
.field__err { min-height: 1.4em; margin: 6px 0 4px; font-size: .86rem; color: #ff9aa6; font-weight: 600; }

.field--check { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: start; margin-top: 4px; }
.field--check label { font-weight: 400; color: var(--text-2); font-size: .92rem; margin: 0; line-height: 1.55; cursor: pointer; }
.field--check label a { color: var(--text); text-underline-offset: 3px; }
.field--check .field__err { grid-column: 1 / -1; }
.field--check input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 28px; height: 28px; flex: none; cursor: pointer;
  border: 2px solid var(--text-2); border-radius: 3px; background: rgba(3,5,10,.6);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.field--check input::after {
  content: ""; width: 7px; height: 13px; margin-top: -3px;
  border-right: 3px solid var(--bg); border-bottom: 3px solid var(--bg);
  transform: rotate(45deg) scale(0); transition: transform .2s var(--ease);
}
.field--check input:checked { background: var(--ai); border-color: var(--ai); box-shadow: 0 0 16px rgba(var(--ai-rgb), .45); }
.field--check input:checked::after { transform: rotate(45deg) scale(1); }
.field--check input:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; }
.field--check.is-invalid input { border-color: #ff7a8a; }

.form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.form__note { color: var(--text-3); margin: 0; }

.form__done { padding: 12px 0; outline: none; }
.form__done-tag { color: var(--host); text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }

.form__done h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 10px 0 16px; }
.form__done p { color: var(--text-2); }
.form__done a { color: var(--text); }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; justify-content: center; }
  .coords div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------------- Pied de page ---------------- */
.foot { border-top: 1px solid var(--line); background: #05070d; }
.foot__top {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 90px) var(--gutter);
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
}
.foot__brand p { color: var(--text-3); margin-top: 20px; font-size: .95rem; }
.foot__sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot__sites p { color: var(--acc); text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.foot__sites p::before { content: ""; width: 6px; height: 6px; background: var(--acc); }
.foot__sites ul, .foot__legal ul { list-style: none; margin: 0; padding: 0; }
.foot__sites li a { display: inline-block; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: .95rem; }
.foot__sites li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot__legal {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap;
  font-size: .84rem; color: var(--text-3);
}
.foot__legal p { margin: 0; max-width: 60rem; }
.foot__legal a { color: var(--text-2); }
.foot__legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__legal ul a { display: inline-block; padding: 4px 0; }
@media (max-width: 900px) {
  .foot__top { grid-template-columns: 1fr; }
  .foot__sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- Apparition au défilement ---------------- */
.js .fx { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .fx.is-in { opacity: 1; transform: none; }

/* ---------------- Mouvement réduit ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .fx { opacity: 1; transform: none; }
  .hero__media { transform: none !important; }
}

/* ---------------- Ajustements (retours d'évaluation) ---------------- */
.hero__title .line > span { text-wrap: balance; }
@media (max-width: 400px) {
  .hero__kicker .sep { display: none; }
  .hero__kicker .place { display: block; margin-top: 4px; }
}
.nav:has(.nav__menu.is-open) { background: #070a12; }

.form__done { display: grid; justify-items: start; gap: 4px; padding: 8px 0 4px; }
.form__done-check {
  width: 56px; height: 56px; margin-bottom: 14px; display: grid; place-items: center;
  border: 2px solid var(--host); box-shadow: 0 0 28px rgba(var(--host-rgb), .45), inset 0 0 18px rgba(var(--host-rgb), .25);
  transform: rotate(45deg);
}
.form__done-check::after {
  content: ""; width: 12px; height: 22px; margin: -6px 0 0 0;
  border-right: 3px solid var(--host); border-bottom: 3px solid var(--host);
  transform: rotate(0deg);
}
.form__done h3, .form__done p { margin-top: 0; }

@media (max-width: 600px) {
  .dept__body { padding: 22px 18px 18px; }
  .dept__desc { margin-bottom: 18px; }
  .sites a {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name arrow" "desc desc" "url url";
    column-gap: 12px; padding: 14px 0;
  }
  .sites__arrow { align-self: start; width: 32px; height: 32px; }
  .sites a:hover, .sites a:focus-visible { padding-left: 12px; }
}

/* ---------------- Erreur d'envoi du formulaire ---------------- */
.form__error {
  margin: 4px 0 8px; padding: 12px 14px;
  border: 1px solid rgba(255, 122, 138, .5); background: rgba(255, 122, 138, .08);
  color: #ffc2ca; font-weight: 600; font-size: .92rem;
}

/* ---------------- Pages légales ---------------- */
.legal { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) var(--gutter) clamp(64px, 10vw, 120px); }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal__head { margin-bottom: clamp(32px, 5vw, 56px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal__head .mono { color: var(--ai); text-transform: uppercase; margin-bottom: 18px; }
.legal__head h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.legal__head .legal__date { color: var(--text-3); margin: 18px 0 0; font-size: .95rem; }
.legal__toc { margin: 0 0 clamp(32px, 5vw, 48px); padding: 18px 20px; border: 1px solid var(--line); background: var(--panel); }
.legal__toc p { margin: 0 0 8px; color: var(--text-3); text-transform: uppercase; }
.legal__toc ol { margin: 0; padding-left: 1.3em; columns: 2 260px; column-gap: 32px; }
.legal__toc a { color: var(--text-2); text-decoration: none; display: inline-block; padding: 3px 0; }
.legal__toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.legal section { margin-bottom: clamp(32px, 4vw, 44px); }
.legal h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.legal h2 .mono { color: var(--ai); font-size: .8rem; flex: none; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--ai); text-underline-offset: 3px; }
.legal dl { margin: 0 0 1em; display: grid; grid-template-columns: minmax(150px, 220px) 1fr; border-top: 1px solid var(--line); }
.legal dt, .legal dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal dt { color: var(--text-3); font-family: var(--f-mono); font-size: .8rem; letter-spacing: .03em; padding-right: 16px; }
.legal dd { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.legal th { color: var(--text-3); font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: 0; padding-bottom: 0; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .legal td { border: 0; padding: 4px 0; }
  .legal td::before { content: attr(data-label); display: block; color: var(--text-3); font: 500 .74rem/1.3 var(--f-mono); text-transform: uppercase; }
}
.nav__menu a[aria-current="page"] { color: var(--text); }
.foot__legal a[aria-current="page"] { color: var(--text); }
