/* ============================================================
   DALATIA : feuille de style
   Theme : abysses bioluminescents (bleu profond + cyan lumineux)
   ============================================================ */

/* Polices auto-hebergees (aucune dependance Google Fonts) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.40%;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PressStart2P.woff2') format('woff2');
}

:root {
  --abyss:      #02050e;
  --bg:         #050f20;
  --bg-soft:    #081a33;
  --panel:      rgba(20, 52, 104, 0.30);
  --panel-line: rgba(120, 170, 235, 0.16);
  --glass:      rgba(150, 190, 245, 0.06);
  --glass-line: rgba(160, 200, 255, 0.18);

  --ink:        #dcebff;
  --ink:        #dceaff;
  --muted:      #93accb;
  --cyan:       #58c8ff;
  --cyan-soft:  #2f8fd6;
  --hot:        #d6f4ff;

  --glow:       0 0 18px rgba(88, 200, 255, 0.55);
  --glow-soft:  0 0 10px rgba(88, 200, 255, 0.30);
  --radius:     16px;
  --maxw:       1120px;
  --font-body:  'Inter', 'Inter Fallback', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(34, 96, 168, 0.30), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(20, 70, 130, 0.25), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--abyss) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--hot); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: .62rem;
  letter-spacing: 1px;
  color: var(--cyan);
  text-transform: uppercase;
  text-shadow: var(--glow-soft);
  display: inline-block;
  margin-bottom: 16px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; color: #f1f7ff; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .5em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; color: var(--hot); }
p { color: var(--ink); }
.muted { color: var(--muted); }

/* ============================ NAV ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
  /* menu sombre et tres transparent (logo et liens en blanc) */
  background: rgba(6, 16, 34, 0.30);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(150, 195, 255, 0.10);
}

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 40px;
  width: auto;
  transition: transform .25s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.02); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #ffffff;
  font-size: .95rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  position: relative;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: rgba(150, 200, 255, 0.12); color: #ffffff; }
.nav-links a.active { color: #ffffff; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: .25s ease;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 30px;
}
.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 24px rgba(88, 200, 255, 0.65), 0 4px 0 rgba(6, 20, 44, 0.6);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink);
  max-width: 36ch;
  margin-bottom: 28px;
}
/* la phrase d'accroche devient le titre du hero (DALATIA est dans le logo) */
.hero-lead {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  color: #f3f8ff;
  max-width: 18ch;
  margin-bottom: 26px;
  text-shadow: 0 0 26px rgba(88, 200, 255, 0.35);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* requin anime */
.hero-fish-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-fish-glow {
  position: absolute;
  width: 78%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(60, 170, 255, 0.40), transparent 70%);
  filter: blur(26px);
  animation: glowPulse 8s ease-in-out infinite;
}
/* scene du requin : porte la derive verticale (le requin + le rai de lumiere
   bougent ensemble pour rester alignes), ratio verrouille (pas d'ecrasement) */
.hero-fish-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 652 / 360;
  animation: drift 6s ease-in-out infinite;
  will-change: transform;
}
.hero-fish {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(80, 200, 255, 0.35));
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
/* lueur bioluminescente douce qui respire (eclairage tout en douceur, sans trait) */
@keyframes glowPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: .92; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fish-stage, .hero-fish-glow, .bubble { animation: none !important; }
}

/* bulles */
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(200, 240, 255, 0.9), rgba(80, 180, 255, 0.15));
  box-shadow: 0 0 8px rgba(120, 210, 255, 0.5);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-92vh) translateX(24px); opacity: 0; }
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #45b6f5, #2b7fd0);
  color: #04101f;
  box-shadow: 0 0 0 1px rgba(120, 210, 255, .4), 0 8px 24px rgba(40, 130, 220, .35);
}
.btn-primary:hover { transform: translateY(-2px); color: #04101f; box-shadow: 0 0 0 1px rgba(150,225,255,.6), 0 12px 30px rgba(40,140,230,.5); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); color: var(--hot); border-color: var(--cyan); }

/* ============================ SECTIONS ============================ */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 70ch;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 200, 255, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(88,200,255,.2);
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  color: var(--cyan);
}

.icon-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(70,180,255,.25), rgba(40,120,210,.12));
  border: 1px solid var(--glass-line);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* listes */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); }
.checklist li::before {
  content: "›";
  position: absolute; left: 6px; top: -1px;
  color: var(--cyan);
  font-weight: 700;
  text-shadow: var(--glow-soft);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--panel-line);
}
.spec-table th { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.spec-table tr:last-child td { border-bottom: 0; }

/* code */
.code-block {
  background: #030a16;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: 'Press Start 2P', monospace;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
  line-height: 1.6;
  color: #b9d4f0;
}
.code-block .c { color: #5e7da0; }
.code-block .k { color: #6ec3ff; }
.code-block .s { color: #8fe0b0; }

.code-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted);
  padding: 10px 14px;
  background: #061325;
  border: 1px solid var(--panel-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.code-head + .code-block { border-radius: 0 0 12px 12px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }

/* page header */
.page-head { padding: 70px 0 20px; }
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-shadow: 0 0 22px rgba(88,200,255,.4);
}

/* contact form */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; color: var(--cyan); font-weight: 600; }
.field input, .field textarea {
  background: #061427;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(88,200,255,.18);
}
.field textarea { resize: vertical; min-height: 130px; }

/* divider glow line */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88,200,255,.5), transparent);
  margin: 0 auto;
  max-width: var(--maxw);
}

/* ============================ FOOTER ============================ */
.footer {
  border-top: 1px solid var(--glass-line);
  background: rgba(4, 12, 26, 0.6);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
.footer-grid h4 { color: var(--hot); font-size: 1rem; margin-bottom: 14px; }
/* logo blanc directement sur le pied de page sombre */
.footer-logo-chip { display: inline-block; margin-bottom: 14px; }
.footer-logo { height: 34px; width: auto; display: block; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-line);
}

/* ============================ CARTE FRANCE ============================ */
.map-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.france-map { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; }
.france-map .land {
  fill: rgba(28, 92, 170, 0.20);
  stroke: #4fb8ff;
  stroke-width: 4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(79, 184, 255, 0.5));
}
.france-map .pin { fill: #7fe0ff; }
.france-map .pin-core { fill: #ffffff; }
.france-map .ping {
  fill: none;
  stroke: #7fe0ff;
  stroke-width: 3;
  transform-origin: center;
  transform-box: fill-box;
  animation: ping 2.6s ease-out infinite;
}
.france-map .pin-label {
  fill: #dcebff;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(3, 10, 26, 0.7);
  stroke-width: 5;
}
@keyframes ping {
  0%   { opacity: .9; transform: scale(.5); }
  80%, 100% { opacity: 0; transform: scale(2.6); }
}
.spots-list { list-style: none; display: grid; gap: 12px; }
.spots-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  font-weight: 500;
}
.spots-list .dot-pin {
  width: 11px; height: 11px; border-radius: 50%;
  background: #7fe0ff; box-shadow: 0 0 10px rgba(127, 224, 255, .8); flex: none;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .hero { min-height: auto; padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .hero-fish-wrap { order: -1; }
  .hero-fish-stage { max-width: 320px; }
  .hero-cta { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-wrap { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 52px 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(7, 18, 38, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(150, 195, 255, 0.12);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 8px 16px; }
  .brand-logo { height: 32px; }
  .hero-title { font-size: clamp(1.7rem, 11vw, 2.6rem); }
  .hero-fish-stage { max-width: 230px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .card { padding: 20px; }
  .section { padding: 44px 0; }
  .spec-table { font-size: .86rem; }
  .spec-table th, .spec-table td { padding: 9px 8px; }
  .france-map .pin-label { font-size: 26px; }
}
