/* PacketFord — site vitrine
   Couleurs reprises du jeu : nuit de salle serveur, vert des LED et du logo. */

:root {
  --bg: #07090d;
  --bg-2: #0b0f15;
  --panel: #10161e;
  --panel-2: #151c26;
  --line: rgba(233, 238, 243, 0.09);
  --line-strong: rgba(233, 238, 243, 0.16);
  --text: #e9eef3;
  --muted: #95a2b0;
  --dim: #66727f;
  --green: #3fd69c;
  --green-ink: #04140d;
  --green-soft: rgba(63, 214, 156, 0.12);
  --white-hat: #9fd3ff;
  --white-hat-soft: rgba(159, 211, 255, 0.1);
  --black-hat: #ff5a6a;
  --black-hat-soft: rgba(255, 90, 106, 0.1);

  --font-display: "Chakra Petch", "Bahnschrift", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", ui-monospace, monospace;

  --wrap: 1180px;
  --radius: 10px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Les captures en incrustation dépassent un peu de la colonne : jamais de défilement horizontal. */
main {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--green);
  color: var(--green-ink);
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Typographie ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.lead,
.hero-tagline,
.pull-quote {
  text-wrap: pretty;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--green);
  color: var(--green-ink);
}

.btn-primary:hover {
  background: #5ee3b0;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(7, 9, 13, 0.35);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 150px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

/* ---------- Bandeau d'accueil ---------- */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.92) 0%, rgba(7, 9, 13, 0.7) 38%, rgba(7, 9, 13, 0.15) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, 0) 45%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.6) 0%, rgba(7, 9, 13, 0) 22%);
}

.hero-content {
  padding-bottom: 40px;
}

.hero-logo {
  width: min(520px, 82vw);
  margin: 22px 0 10px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
}

.hero-tagline {
  margin-top: 30px;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
}

.hero-tagline span {
  color: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Barre d'état façon supervision */

.status-bar {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(8px);
}

.status-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  font-family: var(--font-mono);
}

.status-cell {
  padding: 14px 18px;
  border-left: 1px solid var(--line);
}

.status-cell:last-child {
  border-right: 1px solid var(--line);
}

.status-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.status-value {
  display: block;
  margin-top: 2px;
  font-size: 0.98rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-value.is-ok {
  color: var(--green);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 9vw, 130px) 0;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* Trois piliers */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  padding: 34px 30px 36px;
  background: var(--bg-2);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

.pillar h3 {
  margin: 14px 0 10px;
  font-size: 1.45rem;
}

.pillar p {
  color: var(--muted);
}

/* Blocs de fonctionnalités */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(90px, 10vw, 140px);
}

.feature.is-reversed .feature-text {
  order: 2;
}

.feature-text {
  display: grid;
  gap: 20px;
  align-content: start;
}

.feature-text h2 {
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-50%) rotate(-45deg);
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

.feature-media {
  position: relative;
  display: grid;
}

.shot {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shot:hover img {
  transform: scale(1.025);
}

.shot-inset {
  position: absolute;
  right: -22px;
  bottom: -34px;
  width: 46%;
  border-color: rgba(63, 214, 156, 0.35);
}

.feature.is-reversed .shot-inset {
  right: auto;
  left: -22px;
}

.pull-quote {
  margin: 6px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* Terminal */

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #05070a;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.74rem;
}

.terminal-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.terminal-bar span {
  margin-left: 8px;
}

.terminal pre {
  margin: 0;
  padding: 16px 18px 18px;
  white-space: pre-wrap;
  color: #b9c4cf;
  line-height: 1.7;
}

.terminal .t-prompt {
  color: var(--green);
}

.terminal .t-dim {
  color: var(--dim);
}

.terminal .t-warn {
  color: #ffc861;
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--green);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Whitehat / Blackhat ---------- */

.alignment {
  position: relative;
  background:
    radial-gradient(60% 80% at 0% 50%, rgba(159, 211, 255, 0.07), transparent 70%),
    radial-gradient(60% 80% at 100% 50%, rgba(255, 90, 106, 0.08), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.gauge {
  max-width: 760px;
  margin: 0 auto clamp(44px, 5vw, 64px);
}

.gauge-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--white-hat) 0%, var(--white-hat) 35%, #6b7684 35%, #6b7684 65%, var(--black-hat) 65%, var(--black-hat) 100%);
  opacity: 0.9;
}

.gauge-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 26px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 0 4px var(--bg-2);
  transform: translate(-50%, -50%);
  animation: needle 9s ease-in-out infinite;
}

@keyframes needle {
  0%,
  100% {
    left: 50%;
  }
  25% {
    left: 18%;
  }
  60% {
    left: 84%;
  }
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauge-labels span:nth-child(1) {
  color: var(--white-hat);
}

.gauge-labels span:nth-child(2) {
  color: var(--muted);
}

.gauge-labels span:nth-child(3) {
  color: var(--black-hat);
}

.sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.side {
  padding: 34px 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.side-white {
  border-top: 3px solid var(--white-hat);
}

.side-black {
  border-top: 3px solid var(--black-hat);
}

.side-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-white .side-tag {
  color: var(--white-hat);
}

.side-black .side-tag {
  color: var(--black-hat);
}

.side h3 {
  margin: 10px 0 18px;
  font-size: 1.65rem;
}

.side-white .checklist li::before {
  border-color: var(--white-hat);
}

.side-black .checklist li::before {
  border-color: var(--black-hat);
}

.side-bonus {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.side-bonus strong {
  color: var(--text);
}

.defense {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding: 26px 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.defense svg {
  width: 38px;
  height: 38px;
  color: var(--green);
}

.defense strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.gallery .shot {
  grid-column: span 4;
  box-shadow: none;
}

.gallery .shot:nth-child(1),
.gallery .shot:nth-child(2) {
  grid-column: span 6;
}

.gallery .shot:nth-child(n + 9) {
  grid-column: span 6;
}

.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 14px 10px;
  background: linear-gradient(0deg, rgba(5, 7, 10, 0.9), transparent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shot:hover figcaption,
.shot:focus-visible figcaption {
  opacity: 1;
  transform: none;
}

/* Visionneuse */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 4, 6, 0.95);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(3, 4, 6, 0.8);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 70px;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.lb-caption {
  padding: 14px 18px 22px;
  text-align: center;
  color: var(--muted);
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(16, 22, 30, 0.8);
  color: var(--text);
  cursor: pointer;
}

.lb-btn:hover {
  border-color: var(--text);
}

.lb-btn svg {
  width: 22px;
  height: 22px;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 12px;
}

.lb-next {
  right: 12px;
}

/* ---------- Cartes « accessible » et « plus tard » ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.card p {
  font-size: 0.97rem;
  color: var(--muted);
}

.cards.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Coop ---------- */

.coop {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Couleurs de t-shirt des joueurs, comme dans le jeu. */
.players {
  --p0: var(--green);
  --p1: #6cb8ff;
  --p2: #ffc861;
  --p3: #ff7ab6;
  --p4: #b49bff;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
}

.players-title {
  margin-bottom: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.players ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.players li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.player-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 10px var(--dot);
}

.player-name {
  color: var(--text);
}

.player-role {
  margin-left: auto;
  color: var(--dim);
  font-size: 0.8rem;
  text-align: right;
}

.players-invite {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px dashed rgba(63, 214, 156, 0.45);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.92rem;
}

.players-invite span {
  grid-row: span 2;
  font-size: 1.3rem;
  line-height: 1;
}

.players-invite small {
  grid-column: 2;
  color: var(--dim);
  font-size: 0.76rem;
}

.later {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
  padding: 18px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.later .badge {
  margin: 0;
}

.later-icon {
  display: grid;
  color: var(--green);
}

.later-icon svg {
  width: 20px;
  height: 20px;
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border: 1px solid rgba(63, 214, 156, 0.4);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- Appel final ---------- */

.cta {
  position: relative;
  padding: clamp(90px, 10vw, 140px) 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 90% at 50% 50%, rgba(7, 9, 13, 0.55), var(--bg) 85%);
}

.cta h2 {
  max-width: 24ch;
  margin: 18px auto 0;
}

.cta .lead {
  margin: 20px auto 0;
}

.cta .hero-actions {
  justify-content: center;
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.92rem;
  color: var(--dim);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-top img {
  width: 140px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

/* ---------- Apparition au défilement ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Page 404 ---------- */

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.error-page .terminal {
  max-width: 560px;
  margin: 30px auto;
  text-align: left;
}

.error-page h1 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
}

/* ---------- Adaptations ---------- */

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-cell:nth-child(n + 4) {
    display: none;
  }

  .status-cell:nth-child(3) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 20px 22px;
    background: rgba(7, 9, 13, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.05rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    margin-left: 0;
  }

  .feature,
  .feature.is-reversed {
    grid-template-columns: 1fr;
  }

  .feature.is-reversed .feature-text {
    order: 0;
  }

  .shot-inset {
    right: 12px;
    bottom: -26px;
    width: 42%;
  }

  .feature.is-reversed .shot-inset {
    left: auto;
    right: 12px;
  }

  .feature-media {
    margin-bottom: 26px;
  }

  .pillars,
  .sides,
  .coop,
  .cards.cards-3 {
    grid-template-columns: 1fr;
  }

  .gallery .shot,
  .gallery .shot:nth-child(n) {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .brand img {
    width: 128px;
  }

  .hero {
    align-items: flex-end;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 9, 13, 0.85) 0%, rgba(7, 9, 13, 0) 18%),
      linear-gradient(0deg, var(--bg) 8%, rgba(7, 9, 13, 0.7) 55%, rgba(7, 9, 13, 0.35) 100%);
  }

  .hero-subtitle {
    letter-spacing: 0.2em;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .status-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-cell:nth-child(3) {
    display: none;
  }

  .status-cell:nth-child(2) {
    border-right: 1px solid var(--line);
  }

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

  .gallery .shot,
  .gallery .shot:nth-child(n) {
    grid-column: span 12;
  }

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

  .side {
    padding: 28px 22px 30px;
  }

  .lb-stage {
    padding: 0 8px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: -64px;
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 60px);
  }

  .lb-next {
    right: calc(50% - 60px);
  }

  .lb-caption {
    padding-top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
