/* =========================================================
   DVS Réunion — Site v2 (Minimaliste Tech)
   Couleurs sombres / accent cyan-bleu / typo forte
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Palette dark (par défaut) */
  --bg: #050810;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(0,217,255,0.08), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(59,130,246,0.06), transparent 55%),
             #050810;
  --surface: #0E1422;
  --surface-2: #14192A;
  --surface-3: #1A2138;
  --border: #1F2940;
  --border-strong: #2B3656;

  --text: #E5EAF2;
  --text-2: #94A3B8;
  --text-3: #5A6781;

  --accent: #00D9FF;
  --accent-2: #3B82F6;
  --accent-glow: rgba(0, 217, 255, 0.45);
  --success: #22D3A5;
  --warning: #F5B544;

  --gradient: linear-gradient(135deg, #00D9FF 0%, #3B82F6 60%, #6366F1 100%);

  /* Typo */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --max: 1240px;
  --pad: clamp(20px, 4vw, 32px);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(0,0,0,0.4);
  --sh-md: 0 8px 28px rgba(0,0,0,0.45);
  --sh-glow: 0 0 0 1px rgba(0,217,255,0.25), 0 8px 32px rgba(0,217,255,0.18);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-mid: 0.25s cubic-bezier(.2,.8,.2,1);
  --t-slow: 0.5s cubic-bezier(.2,.8,.2,1);
}

[data-theme="light"] {
  --bg: #FAFAFC;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(0,180,220,0.10), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(59,130,246,0.08), transparent 55%),
             #FAFAFC;
  --surface: #FFFFFF;
  --surface-2: #F4F6FA;
  --surface-3: #ECEFF5;
  --border: #E2E6EE;
  --border-strong: #C8D0DC;

  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;

  --accent: #0284C7;
  --accent-2: #2563EB;
  --accent-glow: rgba(2, 132, 199, 0.30);
  --gradient: linear-gradient(135deg, #06B6D4 0%, #2563EB 60%, #4F46E5 100%);

  --sh-sm: 0 1px 2px rgba(15,23,42,0.06);
  --sh-md: 0 8px 28px rgba(15,23,42,0.08);
  --sh-glow: 0 0 0 1px rgba(2,132,199,0.20), 0 8px 24px rgba(2,132,199,0.18);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grille subtile en fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,217,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 80%);
}
[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(2,132,199,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,132,199,0.05) 1px, transparent 1px);
}

main, header, footer { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(72px, 10vw, 120px) 0; }

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 { font-size: clamp(18px, 1.6vw, 22px); }

p { color: var(--text-2); }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 36px;
  height: 40px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: block;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 9px 14px;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  position: relative;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link.is-active {
  color: var(--text);
  background: var(--surface-2);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: translateX(-50%);
}

.nav__cta {
  margin-left: 12px;
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--sh-glow);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 36px rgba(0,217,255,0.30);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px var(--pad) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__link { padding: 14px 12px; }
  .nav.is-open .nav__cta { margin: 14px 0 0; text-align: center; }
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all var(--t-mid);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(0,217,255,0.30);
  color: #fff;
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 26px;
  letter-spacing: 0.04em;
}
.hero__status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero h1 .alt { color: var(--text-3); font-weight: 600; }

.hero__sub {
  margin-top: 22px;
  margin-bottom: 36px;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 56ch;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__meta {
  margin-top: 48px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.hero__meta dd {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero__meta dd .unit { color: var(--text-3); font-weight: 500; font-size: 14px; margin-left: 4px; }

/* Visualisation hero — terminal/dashboard */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--t-slow);
}
.terminal:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.terminal__bar {
  background: var(--surface-2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.terminal__bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #FF5F57;
}
.terminal__bar .dot:nth-child(2) { background: #FEBC2E; }
.terminal__bar .dot:nth-child(3) { background: #28C840; }
.terminal__bar .title {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.terminal__body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 320px;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 26px, rgba(0,217,255,0.03) 26px, rgba(0,217,255,0.03) 27px),
    var(--surface);
}
.terminal__line { display: flex; gap: 10px; }
.terminal__prompt { color: var(--accent); flex-shrink: 0; }
.terminal__cmd { color: var(--text); }
.terminal__out { color: var(--text-2); padding-left: 22px; }
.terminal__ok { color: var(--success); }
.terminal__warn { color: var(--warning); }
.cursor::after {
  content: "▍";
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .terminal { transform: none; }
}

/* ---------- SECTIONS HEAD ---------- */
.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: clamp(15px, 1.2vw, 17px); }

/* ---------- CARTES SERVICES ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  transition: all var(--t-mid);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(0,217,255,0.08), transparent 40%);
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--sh-md);
}

.card__id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  transition: all var(--t-mid);
}
.card__icon svg { width: 28px; height: 28px; color: var(--accent); }
.card:hover .card__icon {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0,217,255,0.25);
}
.card h3 { color: var(--text); margin-bottom: 10px; font-weight: 600; }
.card p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

.card__list {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}
.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}
.card__list li::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  margin-top: -1px;
}

/* Card image variant */
.card--img { padding: 0; display: flex; flex-direction: column; }
.card--img .card__visual {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card--img .card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 60%, rgba(0,217,255,0.08) 100%),
    repeating-linear-gradient(135deg, transparent 0, transparent 14px, rgba(255,255,255,0.02) 14px, rgba(255,255,255,0.02) 15px);
  pointer-events: none;
}
.card--img .card__visual img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,217,255,0.3));
  transition: transform var(--t-slow);
  position: relative;
  z-index: 1;
}
.card--img:hover .card__visual img { transform: scale(1.06); }
.card--img .card__body { padding: 22px 24px 26px; }

/* ---------- FEATURES (à propos) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.feature {
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.feature .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature h4 { font-size: 17px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.feature p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.stat__detail { color: var(--text-2); font-size: 14px; margin-top: 8px; line-height: 1.5; }

@media (max-width: 720px) {
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}

/* ---------- ZONE / CARTE ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.zone-map {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zone-map svg { width: 100%; height: auto; max-height: 420px; }

.zone-map .city {
  fill: var(--accent);
  stroke: var(--accent);
  cursor: pointer;
  transition: r var(--t-fast), filter var(--t-fast);
}
.zone-map .city:hover {
  filter: drop-shadow(0 0 8px var(--accent));
}
.zone-map .city-pulse { animation: ring 2.6s ease-out infinite; transform-origin: center; }
@keyframes ring {
  0% { r: 5; opacity: 0.6; }
  100% { r: 28; opacity: 0; }
}

.zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}
.zone-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: all var(--t-fast);
}
.zone-cell:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.zone-cell .code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.zone-cell .name { font-weight: 500; color: var(--text); font-size: 14px; }

@media (max-width: 880px) {
  .zone-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- TIMELINE / PROCESSUS ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.step h4 { margin: 12px 0 8px; font-size: 17px; color: var(--text); }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 20px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 22px;
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid);
}
.faq-item.is-open .faq-a { max-height: 320px; }
.faq-a-inner {
  padding: 0 22px 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- CTA BLOCK ---------- */
.cta-block {
  position: relative;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(0,217,255,0.18), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(99,102,241,0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,217,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { margin-bottom: 14px; }
.cta-block p { max-width: 560px; margin: 0 auto 30px; font-size: 17px; }

/* ---------- FORMULAIRE ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .form .row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,217,255,0.18);
}
.form-group textarea { resize: vertical; min-height: 130px; font-family: inherit; }
.form-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2394A3B8' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form .submit { width: 100%; justify-content: center; }
.form .privacy { font-size: 12px; color: var(--text-3); margin-top: 14px; text-align: center; line-height: 1.5; }

.contact-side h3 { color: var(--text); margin-bottom: 10px; }
.contact-side p { color: var(--text-2); margin-bottom: 28px; font-size: 15px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.contact-item:hover { border-color: var(--accent); }
.contact-item__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-item .value { color: var(--text); font-weight: 500; font-size: 15px; word-break: break-word; }
.contact-item a.value:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 90%, #000);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; color: var(--text-2); max-width: 320px; font-size: 14px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-3);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero {
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.page-hero p { max-width: 64ch; font-size: clamp(16px, 1.3vw, 18px); }

/* ---------- HERO IMMERSIF (style essia.re) ---------- */
.hero--immersive {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -72px; /* compense le header sticky */
}
/* ===== Slideshow Ken-Burns (3 slides crossfade + zoom lent) ===== */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05);
  opacity: 0;
  animation: heroSlideshow 30s infinite linear,
             heroKenburns 30s infinite linear;
  will-change: opacity, transform;
}
.hero__slide--1 { animation-delay: 0s, 0s; }
.hero__slide--2 { animation-delay: 10s, 10s; }
.hero__slide--3 { animation-delay: 20s, 20s; }

@keyframes heroSlideshow {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  30%  { opacity: 1; }
  37%  { opacity: 0; }
  100% { opacity: 0; }
}

/* === Bloc texte (DVS Réunion + tagline + sub) — visible T1+T2, masqué T3 === */
.hero__text-block,
.hero__map-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__text-block {
  animation: heroTextCycle 30s infinite linear;
}
@keyframes heroTextCycle {
  0%, 63% { opacity: 1; transform: translateY(0); filter: blur(0); }
  70%, 95% { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* === Bloc carte Réunion — visible T3 uniquement === */
.hero__map-block {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -62%) scale(0.92);
  width: min(72vw, 740px);
  opacity: 0;
  pointer-events: none;
  animation: heroMapCycle 30s infinite linear;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__map-block .hero__map {
  width: 100%;
  height: auto;
  max-height: 54vh;
  filter: drop-shadow(0 12px 40px rgba(0, 217, 255, 0.30));
}
.hero__map {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,217,255,0.25));
}
.hero__map-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-align: center;
  margin: 18px 0 0;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(5, 8, 16, 0.8);
}
@media (max-width: 720px) {
  .hero__map-label { font-size: 11px; letter-spacing: 0.16em; }
}
@keyframes heroMapCycle {
  0%, 60% { opacity: 0; transform: translate(-50%, -62%) scale(0.88); }
  70%, 95% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(0.88); }
}

/* === Pendant T3 : écartèlement vertical pour donner de l'air à la carte === */
/* Status pill : visible T1+T2, MASQUÉ T3 (chevauche la carte) */
.hero--immersive .hero__status {
  animation: heroSpreadTop 30s infinite linear;
}
@keyframes heroSpreadTop {
  0%, 60% { opacity: 1; transform: translateY(0); }
  70%, 95% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Logo central : visible T1+T2, MASQUÉ T3 (le background a déjà son propre visuel SOUS BONNE GARDE) */
.hero--immersive .hero__logo {
  animation: heroLogoCycle 30s infinite linear;
}
@keyframes heroLogoCycle {
  0%, 63% { opacity: 1; transform: translateY(0) scale(1); }
  70%, 95% { opacity: 0; transform: translateY(-30px) scale(0.6); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* CTAs descendent vers le bas */
.hero--immersive .hero__cta {
  animation: heroSpreadBottom 30s infinite linear;
}
@keyframes heroSpreadBottom {
  0%, 63% { transform: translateY(0); }
  70%, 95% { transform: translateY(90px); }
  100% { transform: translateY(0); }
}

/* La carte et le slogan grossissent légèrement pendant T3 pour occuper l'espace */
.hero__map { transition: none; }
.hero__map-label {
  animation: heroMapLabelGrow 30s infinite linear;
}
@keyframes heroMapLabelGrow {
  0%, 60% { font-size: 12px; opacity: 0; }
  70%, 95% { font-size: 15px; opacity: 1; letter-spacing: 0.18em; }
  100% { font-size: 12px; opacity: 0; }
}
@keyframes heroKenburns {
  0%   { transform: scale(1) translateX(0) translateY(0); }
  37%  { transform: scale(1.15) translateX(-1.5%) translateY(-1%); }
  100% { transform: scale(1.15) translateX(-1.5%) translateY(-1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none;
    opacity: 1;
  }
  .hero__slide--2, .hero__slide--3 { display: none; }
  .hero__text-block {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    max-height: none;
  }
  .hero__map-block { display: none; }
  .hero--immersive .hero__status,
  .hero--immersive .hero__logo,
  .hero--immersive .hero__cta {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(5,8,16,0.35) 0%, rgba(5,8,16,0.85) 100%),
    linear-gradient(180deg, rgba(5,8,16,0.7) 0%, rgba(5,8,16,0.5) 50%, rgba(5,8,16,0.95) 100%);
  z-index: 1;
}

/* ===== HUD overlay (style console de surveillance) ===== */
.hero__hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Coins type viseur caméra */
.hud-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  opacity: 0.55;
  animation: hudPulse 3.2s ease-in-out infinite;
}
.hud-corner--tl { top: 92px; left: 24px; border-right: none; border-bottom: none; }
.hud-corner--tr { top: 92px; right: 24px; border-left: none; border-bottom: none; }
.hud-corner--bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.hud-corner--br { bottom: 24px; right: 24px; border-left: none; border-top: none; }
@keyframes hudPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

/* Scanline qui descend */
.hud-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,217,255,0.8) 50%, transparent 100%);
  box-shadow: 0 0 24px rgba(0,217,255,0.4);
  animation: hudScan 6s linear infinite;
  opacity: 0.4;
}
@keyframes hudScan {
  0% { transform: translateY(80px); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(calc(100vh - 80px)); opacity: 0; }
}

/* Indicateur REC */
.hud-rec {
  position: absolute;
  top: 100px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #FF5F57;
  background: rgba(5,8,16,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,95,87,0.3);
}
.hud-rec__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5F57;
  animation: hudRecBlink 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px #FF5F57;
}
@keyframes hudRecBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Coordonnées GPS */
.hud-gps {
  position: absolute;
  bottom: 70px;
  left: 80px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: rgba(5,8,16,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(0,217,255,0.25);
  opacity: 0.85;
}

/* Tag flux feed (en bas à droite, change selon slide actif) */
.hud-feed {
  position: absolute;
  bottom: 70px;
  right: 80px;
  width: 220px;
  height: 24px;
}
.hud-feed span {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(5,8,16,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(0,217,255,0.25);
  height: 24px;
  line-height: 22px;
  white-space: nowrap;
  opacity: 0;
  animation: hudFeedFade 30s linear infinite;
}
.hud-feed span:nth-child(1) { animation-delay: 0s; }
.hud-feed span:nth-child(2) { animation-delay: 10s; }
.hud-feed span:nth-child(3) { animation-delay: 20s; }

@keyframes hudFeedFade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  30%  { opacity: 1; }
  37%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 720px) {
  /* === FIX MOBILE — HUD corners (cadre viseur) ===
     Le header sticky fait 72px ; les coins TL/TR à top:80px collaient au
     header (bug "cadre photo mal placé en haut"). On les descend à 108px
     pour qu'ils encadrent proprement la zone hero SOUS le header. Bottom
     remonté à 116px pour libérer la zone des CTAs et du label hud-gps. */
  .hud-corner { width: 24px; height: 24px; }
  .hud-corner--tl { top: 108px !important; left: 16px !important; right: auto !important; bottom: auto !important; }
  .hud-corner--tr { top: 108px !important; right: 16px !important; left: auto !important; bottom: auto !important; }
  .hud-corner--bl { top: auto !important; bottom: 116px !important; left: 16px !important; right: auto !important; }
  .hud-corner--br { top: auto !important; bottom: 116px !important; right: 16px !important; left: auto !important; }
  /* REC reste en haut à droite, sous le header */
  .hud-rec, .hud-feed {
    font-size: 9px;
    top: 116px;
    right: 16px;
    left: auto;
  }
  /* === FIX MOBILE — hud-gps "ZONE SUD" ne doit plus chevaucher le CTA ===
     Avant : bottom:60px → collision avec "Demander un devis". On colle
     "ZONE SUD" tout en bas à 24px ; le .hero__center reçoit du
     padding-bottom suffisant pour que les CTAs restent au-dessus. */
  .hud-gps {
    font-size: 9px;
    top: auto;
    bottom: 24px;
    left: 16px;
    right: auto;
  }
  .hud-feed { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-scanline, .hud-rec__dot, .hud-corner, .hud-feed span { animation: none; }
}
.hero__center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px var(--pad) 80px;
  max-width: 760px;
  width: 100%;
}
.hero__center .hero__status {
  margin-bottom: 32px;
}
.hero__logo {
  width: 96px;
  height: 106px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 24px rgba(0,217,255,0.4));
  display: block;
}
.hero__brand {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 14px;
  /* === FIX — le hero immersif a TOUJOURS un fond sombre via .hero__overlay
     (rgba(5,8,16,0.7→0.95)) ; var(--text) bascule en #0F172A en theme light
     ce qui rendait "DVS Réunion" illisible. On force #F1F5F9 + ombre
     subtile pour ressortir sur le slideshow. */
  color: #F1F5F9;
  text-shadow: 0 2px 18px rgba(5, 8, 16, 0.85), 0 1px 3px rgba(5, 8, 16, 0.6);
}
.hero__tagline {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__center .hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__center .hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--t-fast);
  animation: bobScroll 2.4s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--accent); }
@keyframes bobScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Header transparent au-dessus du hero immersif */
body:has(.hero--immersive) .site-header {
  background: linear-gradient(180deg, rgba(5,8,16,0.65) 0%, rgba(5,8,16,0) 100%);
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 720px) {
  /* Mobile : on contraint le hero pour ne pas générer de bande vide
     entre le contenu central et la section "cibles".
     - 100svh évite l'inclusion de la barre nav iOS Safari (qui causait
       un overflow puis une "trace" hidden côté min-height).
     - .hero__center est borné pour que sa hauteur naturelle (logo + textes
       + CTAs) ne soit pas étirée par align-items du conteneur flex. */
  .hero--immersive {
    min-height: 88svh;
    min-height: 88vh; /* fallback navigateurs sans svh */
  }
  .hero__center {
    padding-top: 96px;
    /* === FIX MOBILE — padding-bottom élargi pour ne pas chevaucher
       hud-gps "ZONE SUD" (bottom:24px, h~24px) + scroll indicator. */
    padding-bottom: 110px;
  }
  .hero__center .hero__cta { margin-bottom: 28px; }
  .hero__scroll { bottom: 60px; font-size: 10px; }
  /* === FIX MOBILE — slide T3 (hero_accueil.png) :
     l'image contient du texte incrusté ("détecte, prévient" / "SOUS BONNE
     GARDE") cadré pour le 16:9 desktop. En mobile portrait ce texte
     déborde sur les côtés du contenu central. On combine deux mesures :
     - background-size 240% pour zoomer la texture (le texte sort du cadre)
     - on remplace l'animation slideshow par une variante qui plafonne
       l'opacité à 0.22 (le sens T3 est porté par la carte + slogan center).
     - filter brightness/saturate pour atténuer encore. */
  .hero__slide--3 {
    background-size: 240% auto;
    background-position: 50% 38%;
    filter: saturate(0.85) brightness(0.45);
    animation: heroSlideshowT3Mobile 30s infinite linear,
               heroKenburns 30s infinite linear;
  }
}

@keyframes heroSlideshowT3Mobile {
  0%   { opacity: 0; }
  3%   { opacity: 0.22; }
  30%  { opacity: 0.22; }
  37%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 720px) {
  /* Bonus : la HUD scanline et le label feed peuvent rendre le slogan
     central illisible quand ils passent dessus — déjà géré côté HUD. */

  /* === FIX MOBILE — header brand cropping :
     le bloc brand (mark + "DVS Réunion" + "SECURITY · 974") + theme + menu
     dépasse à 393/430 px : "DVS Réunion" se chevauche avec le logo hero.
     On masque le texte sous 540px (le hero affiche déjà le logo + nom). */
  .site-header__inner { gap: 12px; }
}

@media (max-width: 540px) {
  /* On ne garde que le mark du brand : le hero immersif affiche déjà
     "DVS Réunion" en grand et "SYSTÈME OPÉRATIONNEL · 974". */
  .brand__name, .brand__tag { display: none; }
  .brand { gap: 0; }
  .brand__mark { width: 30px; height: 34px; }
  .site-header__inner { gap: 8px; }
}

@media (max-width: 720px) {
  /* Header mobile : on opacifie davantage pour éviter que les labels
     "// RÉSIDENTIEL" / "// PROFESSIONNEL" du diptyque transparaissent
     à travers le backdrop-filter blur quand on scrolle. */
  .site-header {
    background: color-mix(in oklab, var(--bg) 92%, transparent);
  }
  body:has(.hero--immersive) .site-header {
    background: linear-gradient(180deg, rgba(5,8,16,0.9) 0%, rgba(5,8,16,0.55) 100%);
  }
}

/* ---------- CIBLES GRID (villa + industriel - image+texte couples) ---------- */
/* Refactor 2026-05 : suppression de .hero-split / .cibles-detail.
   Sur mobile, image1+texte1 doivent rester contigus, idem image2+texte2,
   sinon le lien visuel image<->texte est perdu (sequence i1>i2>t1>t2).
   La structure HTML est desormais 2 <article class="cible-card"> contenant
   chacune leur image (.cible-card__media) + leur texte (.cible-card__body). */
.cibles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cible-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.cible-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
  box-shadow: 0 28px 70px rgba(0,0,0,0.5), 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent);
}
.cible-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--bg);
}
.cible-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cible-card:hover .cible-card__media img {
  transform: scale(1.04);
}
/* Etiquette HUD (equivalente a l ancienne hero-split__half::before) */
.cible-card::before {
  content: attr(data-label);
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  background: rgba(5, 8, 16, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 217, 255, 0.25);
}
.cible-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.cible-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 4px;
}
.cible-card__body h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}
.cible-card__body p {
  margin: 0;
  color: var(--text-muted, var(--text));
  opacity: .85;
  font-size: 14.5px;
  line-height: 1.55;
}

/* Tablette : on reste en 2 colonnes mais on resserre */
@media (max-width: 900px) {
  .cibles-grid { gap: 18px; }
  .cible-card__body { padding: 20px 22px 24px; }
}

/* Mobile : 1 colonne - chaque image reste collee a SON texte */
@media (max-width: 720px) {
  .cibles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cible-card__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 540px) {
  .cibles-grid { gap: 18px; }
  .cible-card { border-radius: 14px; }
  .cible-card__body { padding: 18px 20px 22px; }
  .cible-card__body h3 { font-size: 18px; }
  .cible-card__body p { font-size: 14px; }
  .cible-card::before {
    top: 10px;
    left: 12px;
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* =========================================================
   ACCESSIBILITY MOBILE — Touch targets + iOS zoom fix
   ========================================================= */

/* Anti-zoom iOS : force 16px sur les inputs (sinon iOS zoome) */
@media (max-width: 720px) {
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
  }
  .form-group label {
    font-size: 13px;
    letter-spacing: 0.08em;
  }
}

/* Touch targets ≥44px (WCAG AAA / Apple HIG) */
@media (max-width: 720px) {
  .theme-toggle,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .brand {
    min-height: 44px;
    padding: 4px 6px;
  }
  /* Liens menu mobile (déroulé) */
  .nav.is-open .nav__link,
  .nav.is-open .nav__cta {
    padding: 14px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Liens dans paragraphes pages légales */
  main p a,
  main li a {
    padding: 2px 0;
    display: inline-block;
  }
  /* Lien tel/email aside contact */
  .contact-item .value a {
    padding: 8px 0;
    display: inline-block;
    min-height: 32px;
  }
  /* Breadcrumb home "~" */
  .breadcrumb a {
    padding: 6px 8px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Focus visible (a11y AA) */
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.brand:focus-visible,
.nav__link:focus-visible,
.nav__cta:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   FIX SUPERPOSITION HERO STATUS / REC LIVE — mobile
   ========================================================= */
@media (max-width: 720px) {
  /* Le badge "SYSTÈME OPÉRATIONNEL · 974" doublonne avec REC·LIVE en mobile.
     On le masque pour libérer la zone sous le header. */
  .hero__status { display: none; }
}
