/* Depth Blitz - site officiel. Ambiance abysses : on descend de la surface vers le fond en faisant defiler. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --surface: #0f4a86;
  --mid: #0a2a57;
  --abyss: #030b1c;
  --ink: #eaf4ff;
  --muted: #9fb6d6;
  --soft: #6f8ab0;
  --cyan: #46f0d8;
  --cyan-2: #7fe9ff;
  --yellow: #ffd43b;
  --yellow-deep: #e0a800;
  --orange: #ff9b3d;
  --orange-deep: #d9631c;
  --red: #ff5d5d;
  --red-deep: #c93636;
  --panel: #2f7fe0;
  --panel-hi: #64b4ff;
  --panel-deep: #1b4fa6;
  --card: rgba(9, 32, 72, 0.72);
  --card-line: rgba(127, 233, 255, 0.16);
  --radius: 26px;
  --title: "Outfit", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  background: var(--abyss);
  background-image: linear-gradient(180deg, var(--surface) 0%, var(--mid) 22%, #061736 55%, var(--abyss) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Langue : un seul des deux textes est montre */
html[data-lang="fr"] [lang="en"]:not(html),
html[data-lang="en"] [lang="fr"]:not(html) { display: none !important; }

a { color: var(--cyan-2); }
img { max-width: 100%; height: auto; display: block; }

#plancton { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- en-tete ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(8, 36, 76, 0.92), rgba(8, 36, 76, 0.55) 70%, transparent);
  backdrop-filter: blur(6px);
}
.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.logo {
  font: 800 1.45rem/1 var(--title);
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.logo b { color: var(--yellow); font-weight: 800; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font: 800 0.92rem/1 var(--title);
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-radius: 999px;
}
.nav a:hover { background: rgba(127, 233, 255, 0.12); }
.lang {
  font: 800 0.85rem/1 var(--title);
  color: #fff;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 0;
  border-bottom: 4px solid var(--panel-deep);
  border-radius: 999px;
  padding: 9px 14px 7px;
  cursor: pointer;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.lang:active { transform: translateY(2px); border-bottom-width: 2px; }
.logo + .lang { margin-left: auto; }
@media (max-width: 860px) { .nav { display: none; } .jauge { margin-left: auto; } }
@media (max-width: 380px) { .jauge { display: none; } .lang { margin-left: auto; } }

/* ---------- titres, reperes de profondeur ---------- */
h1, h2, h3 { font-family: var(--title); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
h3 { font-size: 1.3rem; }
.depth {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 0.82rem/1 var(--title);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.depth::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin: 14px 0 0; }

section { position: relative; padding-block: clamp(70px, 10vw, 120px); }

/* ---------- boutons facon jeu ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 800 1.08rem/1 var(--title);
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  padding: 17px 28px 14px;
  border-radius: 999px;
  border: 0;
  border-bottom: 6px solid var(--orange-deep);
  background: linear-gradient(180deg, #ffc06a, var(--orange) 55%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); border-bottom-width: 3px; }
.btn.blue { border-bottom-color: var(--panel-deep); background: linear-gradient(180deg, var(--panel-hi), var(--panel) 60%); }
.btn[aria-disabled="true"] { cursor: default; filter: saturate(0.85); }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 70px); padding-bottom: clamp(60px, 9vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 {
  font-size: clamp(3.4rem, 10vw, 6.6rem);
  letter-spacing: 0.01em;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.32);
}
.hero h1 span { display: block; }
.hero h1 .y { color: var(--yellow); }
.tagline { font: 800 clamp(1.15rem, 2.6vw, 1.5rem)/1.2 var(--title); color: var(--cyan-2); margin: 18px 0 0; letter-spacing: 0.02em; }
.hero .lead { margin-top: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta small { display: block; font: 600 0.72rem/1 var(--body); letter-spacing: 0.08em; opacity: 0.9; margin-bottom: 4px; text-transform: uppercase; }
.cta .btn .two { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 240, 216, 0.42), rgba(70, 240, 216, 0.08) 55%, transparent 70%);
  filter: blur(6px);
}
.hero-art img { position: relative; width: 100%; animation: flotte 5.5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); }
.bulle { position: absolute; border-radius: 50%; border: 2px solid rgba(190, 245, 255, 0.55); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(127, 233, 255, 0.06) 60%); animation: monte 7s linear infinite; opacity: 0; }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes monte { 0% { transform: translateY(0) scale(0.7); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translateY(-340px) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-art img, .bulle { animation: none; } .bulle { display: none; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { max-width: 420px; order: -1; }
}

/* ---------- le jeu : cartes ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  min-width: 0;
}
.card .ico {
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  font: 800 1.15rem/1 var(--title);
  color: #fff;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border-bottom: 4px solid var(--panel-deep);
  margin-bottom: 14px;
}
.card .ico svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 8px 0 0; }
.card .ico.num { font-size: 1.5rem; color: #3a2a00; background: linear-gradient(180deg, #ffe17a, var(--yellow)); border-bottom-color: var(--yellow-deep); }

/* biomes : trois bandes qui s'assombrissent */
.biomes { display: grid; gap: 14px; margin-top: 40px; }
.biome {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--card-line);
  min-width: 0;
}
.biome .m { font: 800 0.86rem/1.2 var(--title); letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; }
.biome h3 { font-size: 1.6rem; letter-spacing: 0.04em; }
.biome p { margin: 4px 0 0; color: var(--muted); }
.biome .z { font: 800 0.95rem/1 var(--title); color: var(--yellow); white-space: nowrap; }
.biome.a { background: linear-gradient(90deg, rgba(36, 130, 210, 0.45), rgba(10, 40, 90, 0.5)); }
.biome.b { background: linear-gradient(90deg, rgba(24, 120, 110, 0.42), rgba(8, 34, 60, 0.55)); }
.biome.c { background: linear-gradient(90deg, rgba(150, 70, 30, 0.42), rgba(10, 16, 34, 0.6)); }
@media (max-width: 640px) { .biome { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- captures : emplacements vides ---------- */
.shots { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 16px; margin-top: 40px; align-items: end; }
.slot {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  border: 3px dashed rgba(127, 233, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(127, 233, 255, 0.07), rgba(127, 233, 255, 0.02)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 12px, transparent 12px 24px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--soft);
  font: 800 0.9rem/1.3 var(--title);
  letter-spacing: 0.06em;
  padding: 14px;
  min-width: 0;
}
.slot svg { width: 42px; height: 42px; margin: 0 auto 10px; opacity: 0.7; }
.slot.video { aspect-ratio: 9 / 16; border-color: rgba(255, 212, 59, 0.45); color: #c9b56a; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } .slot.video { grid-column: 1 / -1; aspect-ratio: 16 / 10; max-width: 520px; width: 100%; justify-self: center; } }

/* ---------- ton sous-marin ---------- */
.sub-show { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 50px); align-items: center; margin-top: 30px; }
.sub-stage {
  position: relative;
  border-radius: 40px;
  padding: clamp(14px, 3vw, 30px);
  background:
    radial-gradient(circle at 50% 45%, rgba(70, 240, 216, 0.28), transparent 62%),
    radial-gradient(circle at 50% 110%, rgba(255, 212, 59, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(16, 66, 128, 0.55), rgba(5, 18, 42, 0.7));
  border: 1px solid var(--card-line);
  overflow: hidden;
  min-width: 0;
}
.sub-stage::after {
  content: "";
  position: absolute; left: 10%; right: 10%; bottom: 7%; height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent);
}
.sub-stage img { position: relative; z-index: 1; width: 100%; animation: flotte 6s ease-in-out infinite; }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.callouts li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 20px; padding: 14px 16px;
}
.callouts .n {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font: 800 1.1rem/1 var(--title); color: #3a2a00;
  background: linear-gradient(180deg, #ffe17a, var(--yellow)); border-bottom: 4px solid var(--yellow-deep);
}
.callouts b { font-family: var(--title); font-weight: 800; letter-spacing: 0.02em; }
.callouts p { margin: 2px 0 0; color: var(--muted); font-size: 0.97rem; }
.profil { margin-top: 26px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.profil img { width: 100%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.4)); }
.profil p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .sub-show { grid-template-columns: 1fr; } .profil { grid-template-columns: 1fr; text-align: center; } .profil img { max-width: 260px; margin: 0 auto; } }

/* flotte */
.fleet { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.fleet .boat { flex: 0 1 148px; }
@media (max-width: 520px) { .fleet .boat { flex-basis: calc(50% - 7px); } }
.boat {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 24px;
  padding: 12px 12px 16px; text-align: center; min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.boat:hover { transform: translateY(-4px); border-color: rgba(127, 233, 255, 0.4); }
.boat img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.boat b { display: block; font: 800 1.05rem/1 var(--title); letter-spacing: 0.08em; margin-top: 6px; }
.boat span { display: block; font-size: 0.85rem; color: var(--cyan); margin-top: 6px; }

/* ---------- contact / pied ---------- */
.contact-box {
  margin-top: 30px;
  border-radius: 34px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, var(--panel-hi) 0%, var(--panel) 45%, #2266c4 100%);
  border-bottom: 8px solid var(--panel-deep);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.35);
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.contact-box p { margin: 6px 0 0; color: #e3f1ff; }
.contact-box .mail { font: 800 1.15rem/1.3 var(--title); color: #fff; word-break: break-all; }
@media (max-width: 700px) { .contact-box { grid-template-columns: 1fr; text-align: center; } }

footer { position: relative; z-index: 1; padding-block: 50px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--soft); font-size: 0.92rem; border-top: 1px solid rgba(127, 233, 255, 0.1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* jauge de profondeur dans l'en-tete (comme le compteur du jeu) */
.jauge {
  display: inline-flex; align-items: baseline; gap: 3px;
  font: 800 1.02rem/1 var(--title);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  background: rgba(3, 14, 34, 0.55);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 8px 12px 7px;
  min-width: 82px; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.jauge small { font-size: 0.72em; color: var(--cyan-2); }
.jauge::before { content: "↓"; color: var(--cyan); margin-right: 4px; font-size: 0.9em; }

/* ---------- pages de texte (legal) ---------- */
.doc { padding-block: 40px 90px; }
.doc .paper {
  max-width: 820px; margin: 0 auto;
  background: rgba(6, 22, 52, 0.82);
  border: 1px solid var(--card-line);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 46px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 6px; }
.doc h2 { font-size: 1.35rem; text-shadow: none; color: var(--yellow); margin-top: 34px; }
.doc p, .doc li { color: #cfe0f5; }
.doc ul { padding-left: 1.2em; }
.doc .date { color: var(--soft); font-size: 0.92rem; }
.doc .note { border-left: 4px solid var(--cyan); background: rgba(70, 240, 216, 0.08); padding: 12px 16px; border-radius: 0 14px 14px 0; color: #d9f7f2; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.doc td, .doc th { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(127, 233, 255, 0.12); vertical-align: top; }
.doc th { color: var(--cyan-2); font-family: var(--title); font-weight: 800; letter-spacing: 0.04em; width: 38%; }
.tbl { overflow-x: auto; }
.todo { color: var(--orange); font-style: italic; }
.back { display: inline-block; margin-bottom: 18px; font: 800 0.92rem/1 var(--title); letter-spacing: 0.05em; text-decoration: none; }
