@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Un seul thème : l'océan. Accent unique : le jaune des barres de la base. */
:root {
  --bg: #071419;
  --surface: #0c1f27;
  --surface-2: #10272f;
  --line: rgb(214 236 242 / 0.1);
  --text: #e4eef0;
  --muted: #92a8ae;
  --accent: #f2b544;
  --accent-ink: #231703;
  --radius-card: 22px;     /* cartes : coins doux */
  --radius-inner: 16px;    /* intérieur des cartes */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --- Navigation : îlot flottant --- */
.nav {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(7 20 25 / 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  white-space: nowrap;
}
.nav__brand { font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgb(214 236 242 / 0.06); }

/* --- Hero : la base en plein écran, texte en bas à gauche --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgb(7 20 25 / 0.75) 28%, rgb(7 20 25 / 0) 62%),
    linear-gradient(to right, rgb(7 20 25 / 0.55), rgb(7 20 25 / 0) 55%);
}
.hero__content {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 9vh, 96px);
}
.hero__depth {
  margin: 0 0 18px;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: var(--accent);
}
.hero__depth span { color: var(--muted); margin-right: 6px; }
.hero h1 {
  max-width: 14ch;
  font-size: clamp(40px, 6.2vw, 84px);
  letter-spacing: -0.035em;
}
.hero__sub {
  max-width: 44ch;
  margin: 22px 0 0;
  color: #c3d3d6;
  font-size: clamp(16px, 1.4vw, 19px);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- Boutons : pilule, avec l'icône dans sa propre pastille --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { padding-right: 6px; background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #f6c362; }
.btn__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgb(35 23 3 / 0.12);
  font-size: 18px;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.05); }
.btn--ghost { border: 1px solid rgb(214 236 242 / 0.28); color: var(--text); background: rgb(7 20 25 / 0.35); }
.btn--ghost:hover { border-color: rgb(214 236 242 / 0.5); }

/* --- Sections --- */
.bases, .dedans, .commandes {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 152px) var(--gutter) 0;
}

/* Les bases : une grande carte et des emplacements à venir */
.bases__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 48px;
}
.base { grid-row: span 2; }
.base__shell {
  height: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgb(214 236 242 / 0.03);
}
.base__core {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-inner);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.base__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.base__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.base:hover .base__media img { transform: scale(1.04); }
.base__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(20px, 3vw, 32px);
}
.base__name { font-size: clamp(24px, 2.6vw, 34px); }
.base__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.base__facts strong { color: var(--text); font-family: 'Geist Mono', monospace; font-weight: 500; }

.slot {
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 200px;
  padding: 26px;
  border: 1px dashed rgb(214 236 242 / 0.16);
  border-radius: var(--radius-card);
  color: var(--muted);
  font-size: 15px;
}
.slot h3 { color: var(--text); font-size: 20px; }
.slot i { font-size: 26px; margin-bottom: auto; color: var(--muted); }

.bases__error { margin-top: 24px; color: #f0b6a8; }

/* Squelette pendant le chargement */
.base--loading { grid-column: span 2; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), #15323b, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skeleton--img { aspect-ratio: 16 / 7; border-radius: var(--radius-inner) var(--radius-inner) 0 0; }
.skeleton--line { height: 18px; margin: 24px 28px 0; width: 40%; }
.skeleton--line.short { width: 24%; margin-bottom: 28px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Galerie : grille irrégulière, légende sous chaque image */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.gallery__item { margin: 0; grid-column: span 2; }
.gallery__item--wide { grid-column: span 4; grid-row: span 2; }
.gallery__item--tall { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-inner);
  border: 1px solid var(--line);
}
.gallery__item--wide img { aspect-ratio: auto; height: calc(100% - 40px); min-height: 300px; }
.gallery__item figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Bandeau pleine largeur : d'où viennent les données */
.source {
  position: relative;
  margin-top: clamp(80px, 12vw, 152px);
  min-height: min(80vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.source__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.source::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgb(7 20 25 / 0.92) 0%, rgb(7 20 25 / 0.55) 45%, rgb(7 20 25 / 0) 75%),
    linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg));
}
.source__text { width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.source__text h2 { max-width: 12ch; }
.source__text p { max-width: 40ch; margin: 20px 0 0; color: #c3d3d6; font-size: clamp(16px, 1.4vw, 19px); }

/* Commandes */
.commandes__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  margin-top: 48px;
}
.commandes__col { border-top: 1px solid var(--line); padding-top: 24px; }
.commandes__col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 550; }
.commandes__col h3 i { font-size: 24px; color: var(--muted); }
.commandes dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; margin: 24px 0 0; }
.commandes dt { display: flex; gap: 4px; font-size: 22px; color: var(--muted); }
.commandes dd { margin: 0; color: #c3d3d6; }
kbd {
  min-width: 30px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  text-align: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  width: min(1320px, 100%);
  margin: clamp(80px, 12vw, 152px) auto 0;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 0; max-width: 60ch; }

/* --- Apparitions --- */
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: settle 2.4s var(--ease) both; }
  .hero__content > * { animation: rise 1s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: 0.08s; }
  .hero__content > :nth-child(3) { animation-delay: 0.16s; }
  .hero__content > :nth-child(4) { animation-delay: 0.24s; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .gallery .reveal:nth-child(2) { transition-delay: 0.06s; }
  .gallery .reveal:nth-child(3) { transition-delay: 0.12s; }
  .gallery .reveal:nth-child(5) { transition-delay: 0.06s; }
  .gallery .reveal:nth-child(6) { transition-delay: 0.12s; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* --- Téléphone --- */
@media (max-width: 767px) {
  .nav { gap: 8px; padding-left: 16px; top: 12px; }
  .nav__links a { padding: 8px 10px; font-size: 13px; }
  .nav__links a:last-child { display: none; }
  .hero__scrim { background: linear-gradient(to top, var(--bg) 0%, rgb(7 20 25 / 0.8) 40%, rgb(7 20 25 / 0.1) 75%); }
  .hero__img { object-position: 40% center; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: space-between; }
  .bases__grid { grid-template-columns: 1fr; }
  .base, .base--loading { grid-row: auto; grid-column: auto; }
  .base__body { grid-template-columns: 1fr; }
  .base__body .btn { justify-content: space-between; }
  .slot { min-height: 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  .gallery__item--wide img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .source { min-height: 70vh; align-items: end; padding-bottom: 48px; }
  .source::after { background: linear-gradient(to top, var(--bg) 10%, rgb(7 20 25 / 0.7) 55%, rgb(7 20 25 / 0.2)), linear-gradient(to bottom, var(--bg), transparent 20%); }
  .commandes__cols { grid-template-columns: 1fr; }
}
.bases, .dedans, .commandes { scroll-margin-top: 72px; }
