/* Alpha Nexia — site vitrine */
@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --night: #040828;
  --ink: #0a0d3d;
  --violet: #8f1cf5;
  --violet-soft: #b46bff;
  --plum: #3b107c;
  --gold: #ffcc14;
  --text: #f2efff;
  --muted: #b3add6;
  --line: rgba(180, 120, 255, .22);
  --head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  background:
    radial-gradient(70rem 42rem at 50% -12rem, rgba(143, 28, 245, .38), transparent 62%),
    radial-gradient(38rem 32rem at 105% 38%, rgba(91, 22, 201, .22), transparent 70%),
    radial-gradient(40rem 34rem at -8% 78%, rgba(59, 16, 124, .4), transparent 70%),
    var(--night);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #ffe27a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero, main, .foot { position: relative; z-index: 1; }
.linklike { background: none; border: 0; padding: .35rem 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.linklike:hover { color: var(--gold); }
.hl { color: var(--gold); }

/* ---------- En-tête ---------- */
.hero {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  max-width: 60rem;
  margin: 0 auto;
}
.orbit {
  position: relative;
  width: clamp(13rem, 46vw, 17.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
}
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit .spin, .orbit .spin-back { transform-origin: 150px 150px; }
.orbit .spin { animation: spin 90s linear infinite; }
.orbit .spin-back { animation: spin 140s linear infinite reverse; }
.orbit .mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 42%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px rgba(180, 90, 255, .75)) drop-shadow(0 0 2px rgba(255, 255, 255, .6));
}
@keyframes spin { to { transform: rotate(360deg); } }

.wordmark {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.wordmark .w1 { font-weight: 300; }
.wordmark .w2 { font-weight: 600; }
.tagline {
  margin: .9rem auto 0;
  font: 500 clamp(.8rem, 2.6vw, 1rem)/1.6 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e6e1ff;
}
.tagline span { display: inline-block; }
@media (max-width: 34rem) { .tagline span { display: block; } .tagline .mid { display: none; } }
.tagline i { font-style: normal; color: var(--gold); padding: 0 .25em; }
.intro {
  margin: 1.75rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
}

/* ---------- Sections ---------- */
main { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
section { margin: 0 0 clamp(3rem, 7vw, 5rem); }
.section-title {
  margin: 0 0 1.5rem;
  font: 700 clamp(1.5rem, 4vw, 2rem)/1.1 var(--head);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
}

/* ---------- Missions ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 62rem) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.card {
  position: relative;
  overflow: hidden;
  padding: 0 1.5rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(34, 16, 104, .78), rgba(7, 10, 48, .94) 55%);
  border: 1px solid rgba(170, 95, 255, .55);
  box-shadow: 0 0 32px rgba(143, 28, 245, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card-photo { position: relative; margin: 0 -1.5rem -2rem; aspect-ratio: 822 / 290; }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 11, 78, 0) 30%, rgba(20, 11, 78, .7) 70%, #160c58 100%);
}
.num {
  position: relative;
  margin: 0;
  font: 700 3.1rem/1 var(--head);
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 204, 20, .35);
}
.card h3 {
  margin: .35rem 0 0;
  font: 700 clamp(1.45rem, 3.6vw, 1.7rem)/1.06 var(--head);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.lead { margin: .6rem 0 1.1rem; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; }
.items li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .85rem;
  align-items: center;
  padding: .62rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.35;
  color: #e7e3fb;
}
.items svg {
  width: 1.6rem; height: 1.6rem;
  fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Atouts ---------- */
.checks {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  max-width: 64rem;
}
.checks li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 13, 61, .7);
  line-height: 1.3;
}
.checks svg { width: 1.35rem; height: 1.35rem; flex: none; }

/* ---------- Format ---------- */
.format {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 56rem;
  margin-left: auto; margin-right: auto;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(170, 95, 255, .45);
  background: linear-gradient(120deg, rgba(59, 16, 124, .55), rgba(7, 10, 48, .9) 60%);
}
@media (min-width: 40rem) { .format { grid-template-columns: minmax(14rem, 17rem) 1fr; gap: 2rem; padding: 1.75rem 2rem; } }
.format-photo { margin: 0; }
.format-photo img {
  display: block;
  width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid rgba(170, 95, 255, .45);
  box-shadow: 0 0 26px rgba(143, 28, 245, .3);
}
.kicker { margin: 0; color: var(--gold); font-weight: 600; }
.format h2 {
  margin: .2rem 0 .5rem;
  font: 700 clamp(1.6rem, 4vw, 2rem)/1.05 var(--head);
  text-transform: uppercase;
}
.format p { margin-top: 0; }
.tags { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .95rem;
  color: #f1ecff;
  background: rgba(143, 28, 245, .22);
  border: 1px solid rgba(180, 110, 255, .35);
}

/* ---------- Ambition ---------- */
.ambition { text-align: center; max-width: 46rem; margin-left: auto; margin-right: auto; }
.ambition p {
  margin: 0;
  font: 500 clamp(1.25rem, 3.4vw, 1.6rem)/1.45 var(--body);
}
.ambition p::before {
  content: "";
  display: block;
  width: 3.5rem; height: 3px;
  margin: 0 auto 1.5rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
}

/* ---------- Pied de page ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: rgba(2, 4, 26, .65);
  padding: 1.5rem 1.25rem 2rem;
  font-size: .95rem;
  color: var(--muted);
}
.foot-row, .legal { max-width: 76rem; margin: 0 auto; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.foot-brand { margin: 0; display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 600; letter-spacing: .04em; }
.foot-brand img { width: 1.8rem; height: auto; }
.foot-brand > span { font-weight: 400; color: var(--muted); letter-spacing: 0; }

.legal { margin-top: 1.25rem; }
.legal details { border-top: 1px solid rgba(180, 120, 255, .14); }
.legal summary {
  cursor: pointer;
  list-style: none;
  padding: .8rem 0;
  color: var(--text);
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.legal details[open] summary::after { content: "−"; }
.legal-body { padding: 0 0 1.25rem; max-width: 46rem; }
.legal-body h3 { margin: 1rem 0 .3rem; font: 600 1rem/1.3 var(--body); color: var(--text); }
.legal-body p { margin: 0 0 .6rem; }

/* ---------- Bandeau cookies ---------- */
.cookie {
  position: fixed;
  z-index: 50;
  left: 1rem; right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: 46rem;
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(11, 8, 54, .97);
  border: 1px solid rgba(170, 95, 255, .55);
  box-shadow: 0 0 30px rgba(143, 28, 245, .35), 0 18px 40px rgba(0, 0, 0, .5);
  font-size: .95rem;
  line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 20rem; color: #e7e3fb; }
.cookie-actions { display: flex; gap: .6rem; flex: 1 0 auto; justify-content: flex-end; }
.btn {
  min-width: 7.5rem;
  padding: .62rem 1.2rem;
  border-radius: 999px;
  font: 600 .98rem/1 var(--body);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--night); border: 1px solid var(--gold); }
.btn-gold:hover { background: #ffdb5c; }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid rgba(255, 204, 20, .7); }
.btn-ghost:hover { background: rgba(255, 204, 20, .1); }
@media (max-width: 30rem) { .cookie-actions .btn { flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit .spin, .orbit .spin-back { animation: none; }
}
