/* ============================================================
   AS Assistance — Artisan maritime Côte d'Azur
   style-2026.css · Marqueur style-2026 · DESIGN-DIRECTION-2026
   Palette bleu nuit marine + cuivre patiné + crème nacre
   ============================================================ */

:root {
  /* Couleurs */
  --color-bg: #0A1E2E;
  --color-bg-elevated: #142C42;
  --color-surface: #1C3A55;
  --color-text: #F4EFE7;
  --color-text-muted: #B8C5D1;
  --color-accent: #B08D5C;
  --color-accent-2: #C9A876;
  --color-accent-cool: #5DA7B8;
  --color-line: #2D3942;

  /* Gradients */
  --gradient-mesh: conic-gradient(from 220deg at 30% 40%,
    #0A1E2E 0deg, #142C42 90deg, #1C3A55 180deg,
    #B08D5C 280deg, #0A1E2E 360deg);
  --gradient-hero: linear-gradient(180deg,
    rgba(10,30,46,0.25) 0%,
    rgba(10,30,46,0.55) 45%,
    rgba(10,30,46,0.92) 100%);
  --gradient-copper: linear-gradient(135deg, #B08D5C 0%, #C9A876 50%, #9A7847 100%);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-signature: 'Italianno', 'Brush Script MT', cursive;

  /* Layout */
  --container: 1280px;
  --section: clamp(4rem, 9vw, 8rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;

  /* Shadows */
  --shadow-1: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-3: 0 24px 80px rgba(0,0,0,0.45);
  --shadow-copper: 0 0 0 1px rgba(176,141,92,0.35), 0 24px 60px rgba(176,141,92,0.18);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-mid: 450ms;
  --duration-slow: 900ms;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--duration-fast) ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--color-accent); color: var(--color-bg); }

/* ============================================================
   Layout flow — main + sections explicit normal flow
   (FIX: prevent any chevauchement de sections sur hero)
   ============================================================ */
main {
  display: block;
  position: relative;
  z-index: 1;
  isolation: isolate;
}
main > section {
  display: block;
  position: relative;
  z-index: auto;
  width: 100%;
  clear: both;
}
main > section + section { margin-top: 0; }

/* Curseur custom desktop */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select, label, .card-spec, .real-card { cursor: none; }
  .cursor {
    position: fixed; top: 0; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--color-text);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 200ms var(--ease-out-expo), height 200ms var(--ease-out-expo), background 200ms ease;
    mix-blend-mode: difference;
  }
  .cursor.hover-active {
    width: 44px; height: 44px;
    background: var(--color-accent);
    mix-blend-mode: normal;
    opacity: 0.7;
  }
}

/* Skip link */
.skip-link {
  position: absolute; top: -80px; left: 1rem;
  background: var(--color-accent); color: var(--color-bg);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 200; font-weight: 600;
  transition: top var(--duration-fast) ease;
}
.skip-link:focus { top: 1rem; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

/* Scroll progress (top) */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--gradient-copper);
  z-index: 1000;
  transition: width 80ms linear;
}

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--color-accent);
}
.signature {
  font-family: var(--font-signature);
  color: var(--color-accent-2);
  font-weight: 400;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--color-text);
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }
.h-display {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
}
.h-section {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.h-card {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-variation-settings: 'opsz' 30;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.65;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: all var(--duration-mid) var(--ease-out-expo);
  position: relative; overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--gradient-copper);
  color: #1A1207;
  box-shadow: 0 12px 32px rgba(176,141,92,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(176,141,92,0.45), 0 0 0 1px rgba(244,239,231,0.15) inset;
}
.btn-primary::after {
  content: '→';
  transition: transform var(--duration-mid) var(--ease-out-expo);
}
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost {
  color: var(--color-text);
  border: 1px solid rgba(244,239,231,0.18);
  background: rgba(244,239,231,0.03);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-2);
  background: rgba(176,141,92,0.08);
}
.btn-text {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--color-accent-2);
  border-bottom: 1px solid rgba(201,168,118,0.35);
  padding: 0.35rem 0;
  font-weight: 500;
}
.btn-text:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* ============================================================
   Nav (sticky glass)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10,30,46,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 350ms ease, backdrop-filter 350ms ease, border-color 350ms ease, padding 350ms ease;
}
.nav.scrolled {
  background: rgba(10,30,46,0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(176,141,92,0.18);
  padding: 0.65rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo svg { width: 28px; height: 28px; flex: none; }
.logo svg path, .logo svg line, .logo svg circle {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawStroke 1.6s var(--ease-out-expo) 0.3s forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

/* Nav horizontale visible sur TOUS viewports (preference user mai 2026) */
.nav-links {
  display: flex !important;
  gap: 1rem;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links li { flex-shrink: 0; list-style: none; }
.nav-links a {
  color: var(--color-text-muted);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--color-accent);
  transition: width var(--duration-mid) var(--ease-out-expo);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }
@media (min-width: 1024px) {
  .nav-links { gap: 2rem; font-size: 14px; overflow-x: visible; }
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Lang switch */
.lang-switch {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch button {
  padding: 0.35rem 0.5rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) ease;
  border-radius: 4px;
}
.lang-switch button.active { color: var(--color-accent); }
.lang-switch button:hover { color: var(--color-text); }
.lang-switch .divider {
  color: rgba(244,239,231,0.25);
  font-weight: 300;
}

/* Burger DÉSACTIVÉ : la nav-links horizontale est visible sur tous viewports */
.nav-toggle { display: none !important; }

/* Mobile panel DÉSACTIVÉ : on n'utilise plus d'overlay, la nav-links horizontale suffit */
.nav-mobile {
  display: none !important;
}
.nav-mobile.open { display: none !important; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 28px;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(244,239,231,0.08);
  color: var(--color-text);
}
.nav-mobile a:last-of-type { border-bottom: none; }

/* Force-hide mobile menu on desktop — belt + suspenders */
@media (min-width: 1024px) {
  .nav-mobile {
    display: none !important;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 6rem;
  isolation: isolate;
  z-index: 0;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 0 6rem;
}
.hero-content .eyebrow {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.4s forwards;
}
.hero h1 {
  margin-bottom: 1.75rem;
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.6s forwards;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.1s forwards;
}
.hero-signature {
  position: absolute; bottom: 4rem; right: clamp(1.5rem, 3vw, 4rem);
  font-family: var(--font-signature);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--color-accent-2);
  line-height: 1;
  opacity: 0;
  z-index: 3;
  animation: fadeUp 1.6s var(--ease-out-expo) 1.4s forwards;
}
.scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
  animation: scrollPulse 2.5s var(--ease-out-expo) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  50% { transform: scaleY(0.4); opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Strip metrics (counters)
   ============================================================ */
.metrics {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid rgba(176,141,92,0.18);
  border-bottom: 1px solid rgba(176,141,92,0.18);
  position: relative;
}
.metrics::before, .metrics::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.metrics::before { top: -1px; }
.metrics::after { bottom: -1px; }
.metrics-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .metric:not(:last-child) {
    border-right: 1px solid rgba(244,239,231,0.08);
    padding-right: 2rem;
  }
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variation-settings: 'opsz' 144;
}
.metric-suffix {
  font-size: 0.6em;
  color: var(--color-accent-2);
  vertical-align: super;
  margin-left: 0.1em;
}
.metric-label {
  font-size: 14px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Section "Le métier" — parallax 3 layers
   ============================================================ */
.metier {
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}
.metier-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .metier-grid { grid-template-columns: 1.05fr 1fr; gap: 5rem; }
}
.metier-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.metier-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,30,46,0) 60%, rgba(10,30,46,0.55) 100%);
}
.metier-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.5s var(--ease-out-expo);
}
.metier-visual .layer-back, .metier-visual .layer-mid, .metier-visual .layer-front {
  position: absolute; inset: 0;
  will-change: transform;
}
.metier-visual .layer-back {
  background: radial-gradient(ellipse at 50% 60%, rgba(93,167,184,0.18) 0%, transparent 60%);
  z-index: 0;
}
.metier-visual .layer-mid {
  background: linear-gradient(135deg, transparent 40%, rgba(176,141,92,0.12) 100%);
  z-index: 1;
}
.metier-visual .layer-corner {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: rgba(10,30,46,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(244,239,231,0.12);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-muted);
  z-index: 3;
  max-width: 220px;
  line-height: 1.5;
}
.metier-visual .layer-corner strong {
  display: block; color: var(--color-accent); font-weight: 500;
  font-family: var(--font-display);
  font-size: 16px; margin-bottom: 0.25rem;
}
.metier h2 { margin: 1.25rem 0 1.75rem; }
.metier p { color: var(--color-text-muted); margin-bottom: 1.25rem; max-width: 52ch; }
.metier p:last-of-type { margin-bottom: 2rem; }

/* ============================================================
   Spécialités — 7 cards grid
   ============================================================ */
.spec {
  padding: var(--section) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
  position: relative;
}
.spec-head { text-align: center; margin-bottom: clamp(3rem, 5vw, 5rem); }
.spec-head .eyebrow { margin-bottom: 1.5rem; }
.spec-head h2 { max-width: 22ch; margin: 0 auto 1rem; }
.spec-head .lead { margin: 0 auto; }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .spec-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.card-spec {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  isolation: isolate;
  transition: transform 600ms var(--ease-out-expo), box-shadow 600ms var(--ease-out-expo);
  perspective: 1000px;
}
.card-spec.featured {
  grid-column: span 1;
}
@media (min-width: 640px) {
  .card-spec.featured { grid-column: span 2; aspect-ratio: 16/10; }
}
@media (min-width: 1024px) {
  .card-spec.featured { grid-column: span 2; aspect-ratio: 16/11; }
}

.card-spec img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out-expo), filter 600ms ease;
  filter: brightness(0.72) contrast(1.05) saturate(0.9);
}
.card-spec::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,30,46,0.15) 0%, rgba(10,30,46,0.4) 50%, rgba(10,30,46,0.95) 100%);
  transition: background 400ms ease;
}
.card-spec-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  z-index: 2;
}
.card-spec-body .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  margin-bottom: 0.85rem;
}
.card-spec-body h3 {
  margin-bottom: 0.6rem;
  color: var(--color-text);
}
.card-spec-body p {
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 38ch;
  opacity: 0;
  max-height: 0;
  transition: opacity 400ms ease, max-height 400ms var(--ease-out-expo), margin 400ms ease;
}
.card-spec-icon {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,30,46,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(176,141,92,0.4);
  border-radius: 50%;
  z-index: 3;
  color: var(--color-accent);
  transition: all 400ms var(--ease-out-expo);
}
.card-spec-icon svg { width: 22px; height: 22px; }
.card-spec.featured .card-spec-icon {
  background: var(--gradient-copper);
  color: #1A1207;
  border-color: var(--color-accent-2);
}

@media (hover: hover) {
  .card-spec:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-copper);
  }
  .card-spec:hover img {
    transform: scale(1.06);
    filter: brightness(0.85) contrast(1.1) saturate(1);
  }
  .card-spec:hover::before {
    background: linear-gradient(180deg, rgba(10,30,46,0.05) 0%, rgba(10,30,46,0.35) 45%, rgba(10,30,46,0.95) 100%);
  }
  .card-spec:hover .card-spec-body p {
    opacity: 1;
    max-height: 200px;
    margin-top: 0.5rem;
  }
  .card-spec:hover .card-spec-icon {
    transform: rotate(-8deg) scale(1.05);
    background: var(--gradient-copper);
    color: #1A1207;
  }
}

.card-spec-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-cool);
  background: rgba(93,167,184,0.1);
  border: 1px solid rgba(93,167,184,0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

/* ============================================================
   Showreel (vidéo 2 mid-page)
   ============================================================ */
.showreel {
  padding: var(--section) 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.showreel::before {
  content: ''; position: absolute;
  inset: -20%;
  background: var(--gradient-mesh);
  filter: blur(120px);
  opacity: 0.18;
  z-index: 0;
  animation: meshRotate 60s linear infinite;
}
@keyframes meshRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.showreel-inner { position: relative; z-index: 1; text-align: center; }
.showreel .eyebrow { justify-content: center; margin: 0 auto 1.25rem; }
.showreel h2 { max-width: 22ch; margin: 0 auto 2.5rem; }

.showreel-frame {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(135deg, rgba(244,239,231,0.12) 0%, rgba(244,239,231,0.04) 100%);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244,239,231,0.1);
  box-shadow: var(--shadow-3);
}
.showreel-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Réalisations (masonry galerie)
   ============================================================ */
.realisations {
  padding: var(--section) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}
.realisations-head { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.realisations-head h2 { margin: 1rem 0 1.25rem; }
.realisations-head .lead { font-size: 14px; font-style: italic; }

.real-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .real-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .real-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 140px;
    gap: 1.25rem;
  }
}
.real-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: transform 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo);
  aspect-ratio: 4/5;
}
@media (min-width: 1024px) {
  .real-card { aspect-ratio: auto; }
  .real-card.r-lg { grid-column: span 6; grid-row: span 3; }
  .real-card.r-md-tall { grid-column: span 3; grid-row: span 4; }
  .real-card.r-md { grid-column: span 3; grid-row: span 2; }
  .real-card.r-md-wide { grid-column: span 6; grid-row: span 2; }
  .real-card.r-sm { grid-column: span 3; grid-row: span 2; }
}
.real-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out-expo), filter 500ms ease;
  filter: saturate(0.9) brightness(0.9);
}
.real-tag {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(10,30,46,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(176,141,92,0.45);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  z-index: 2;
  transition: background 350ms ease, color 350ms ease;
}
.real-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,46,0) 60%, rgba(10,30,46,0.55) 100%);
  pointer-events: none;
}
@media (hover: hover) {
  .real-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-copper);
  }
  .real-card:hover img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
  .real-card:hover .real-tag {
    background: var(--gradient-copper);
    color: #1A1207;
    border-color: var(--color-accent-2);
  }
}

/* ============================================================
   Témoignages
   ============================================================ */
.testimonials {
  padding: var(--section) 0;
  background: var(--color-bg-elevated);
  position: relative;
}
.testimonials .container { position: relative; z-index: 1; }
.testimonials-head { text-align: center; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.testimonials-head h2 { margin: 1rem 0; }

.test-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .test-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .test-grid { grid-template-columns: repeat(4, 1fr); } }

.test-card {
  background: linear-gradient(160deg, rgba(28,58,85,0.5) 0%, rgba(20,44,66,0.5) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244,239,231,0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  transition: transform 400ms var(--ease-out-expo), border-color 400ms ease;
}
@media (hover: hover) {
  .test-card:hover {
    transform: translateY(-4px);
    border-color: rgba(176,141,92,0.35);
  }
}
.test-stars {
  display: flex; gap: 2px; color: var(--color-accent);
  font-size: 14px;
}
.test-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-text);
}
.test-author {
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(244,239,231,0.08);
  padding-top: 1rem;
  margin-top: auto;
}
.test-author strong {
  display: block;
  color: var(--color-accent-2);
  font-weight: 500;
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}

/* Marquee ports */
.marquee {
  margin-top: 4rem;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  border-top: 1px solid rgba(176,141,92,0.18);
  border-bottom: 1px solid rgba(176,141,92,0.18);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.marquee span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  display: inline-flex; align-items: center; gap: 3rem;
  white-space: nowrap;
}
.marquee span::after {
  content: '✦';
  color: var(--color-accent-cool);
  font-size: 10px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Zone d'intervention (map stylisée)
   ============================================================ */
.zone {
  padding: var(--section) 0;
  background: var(--color-bg);
  position: relative;
}
.zone-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .zone-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
}
.zone-head h2 { margin: 1rem 0 1.5rem; }
.zone-head p { color: var(--color-text-muted); margin-bottom: 1.25rem; max-width: 50ch; }
.zone-ports {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}
.zone-ports li { list-style: none; padding: 0.25rem 0; }

.zone-map {
  position: relative;
  aspect-ratio: 5/4;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(176,141,92,0.18);
  padding: 1.5rem;
}
.zone-map svg { width: 100%; height: 100%; display: block; }
.zone-map .port-dot {
  fill: var(--color-accent-cool);
  filter: drop-shadow(0 0 6px rgba(93,167,184,0.7));
  transition: r 300ms ease, fill 300ms ease;
}
.zone-map .port-dot.featured {
  fill: var(--color-accent-2);
  filter: drop-shadow(0 0 10px rgba(201,168,118,0.7));
}
.zone-map .port-label {
  font-family: var(--font-body);
  font-size: 9px;
  fill: var(--color-text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.zone-map .coast-line { stroke: var(--color-accent); stroke-width: 1.5; fill: none; opacity: 0.85; }

/* ============================================================
   Hors-scope (transparence)
   ============================================================ */
.hors-scope {
  padding: var(--section) 0;
  background: var(--color-bg);
  border-top: 1px solid rgba(176,141,92,0.18);
}
.hors-scope-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hors-scope-inner .eyebrow {
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hors-scope-inner h2 { margin-bottom: 2rem; }
.hors-scope-inner p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}
.hors-scope-inner strong { color: var(--color-text); font-weight: 500; }
.hors-scope-list {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-top: 2rem;
}
.hors-scope-list li {
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(244,239,231,0.1);
  border-radius: 999px;
  background: rgba(244,239,231,0.02);
}
.hors-scope-list .deny { text-decoration: line-through; opacity: 0.55; }
.hors-scope-list .ok { color: var(--color-accent-cool); border-color: rgba(93,167,184,0.4); }

/* ============================================================
   CTA final + Form
   ============================================================ */
.cta-final {
  position: relative;
  padding: var(--section) 0;
  background: var(--color-bg);
  overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute;
  inset: -10%;
  background: var(--gradient-mesh);
  filter: blur(120px);
  opacity: 0.22;
  z-index: 0;
  animation: meshRotate 75s linear infinite;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
}
.cta-text h2 { margin: 1rem 0 1.5rem; }
.cta-text p { color: var(--color-text-muted); margin-bottom: 2rem; max-width: 45ch; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li {
  display: flex; align-items: center; gap: 1rem;
  font-size: 15px;
  color: var(--color-text);
}
.contact-list .ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(176,141,92,0.12);
  border: 1px solid rgba(176,141,92,0.3);
  border-radius: 50%;
  color: var(--color-accent);
  flex: none;
}
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-list a:hover { color: var(--color-accent-2); }
.contact-list .label {
  display: block;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

/* Form */
.form-card {
  background: linear-gradient(160deg, rgba(28,58,85,0.55) 0%, rgba(20,44,66,0.55) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(244,239,231,0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-3);
}
.form-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 540px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.field {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: rgba(10,30,46,0.5);
  border: 1px solid rgba(244,239,231,0.1);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--color-text);
  font-size: 15px;
  width: 100%;
  transition: border-color 200ms ease, background 200ms ease;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(184,197,209,0.45);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(10,30,46,0.75);
  box-shadow: 0 0 0 3px rgba(176,141,92,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

.multi-check {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.25rem;
}
.multi-check label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(10,30,46,0.4);
  border: 1px solid rgba(244,239,231,0.1);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 200ms ease;
}
.multi-check input { display: none; }
.multi-check input:checked + label,
.multi-check label.checked {
  background: rgba(176,141,92,0.15);
  border-color: var(--color-accent);
  color: var(--color-accent-2);
}
.multi-check label:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.form-submit {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1rem;
  flex-wrap: wrap;
}
.form-rgpd {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 320px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #061521;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem;
  border-top: 1px solid rgba(176,141,92,0.2);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 3.5rem; }
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 0.75rem;
}
.footer-brand .tagline {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-brand .signature {
  font-size: 38px;
  line-height: 1;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer ul a {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color 200ms ease;
}
.footer ul a:hover { color: var(--color-accent); }

.footer-map {
  margin-top: 1rem;
  width: 100%;
  height: 140px;
  border: 0;
  border-radius: var(--radius-sm);
  filter: grayscale(0.5) brightness(0.7) contrast(1.1);
  opacity: 0.85;
}

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(244,239,231,0.06);
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-accent); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Sticky mobile bottom bar */
.sticky-mobile {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex; gap: 0.5rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(10,30,46,0.88);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(176,141,92,0.2);
}
.sticky-mobile a {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.sticky-mobile .sm-call {
  background: var(--gradient-copper);
  color: #1A1207;
}
.sticky-mobile .sm-wa {
  background: rgba(244,239,231,0.06);
  color: var(--color-text);
  border: 1px solid rgba(244,239,231,0.15);
}
@media (min-width: 768px) { .sticky-mobile { display: none; } }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }
.reveal[data-delay="600"] { transition-delay: 600ms; }

/* ============================================================
   Language toggle FR/EN
   ============================================================ */
/* Hide off-language siblings only — preserve each element's natural display */
body.lang-en [data-lang-content="fr"],
body.lang-fr [data-lang-content="en"] { display: none !important; }
.inline-lang[data-lang-content] { display: inline; }

/* ============================================================
   Focus visibility
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Body offset for sticky mobile bar
   ============================================================ */
@media (max-width: 767px) {
  body { padding-bottom: 70px; }
}

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