/* ==========================================================================
   Ker-IA — Design system partagé
   IA souveraine on-premise · Loctudy, Finistère
   ========================================================================== */

/* --------------------------------------------------------------- Tokens -- */
:root {
  /* Fonds */
  --bg-deep: #050a14;
  --bg: #0a1224;
  --bg-surface: #0e1830;
  --bg-elevated: #131f3d;
  --bg-card: rgba(14, 24, 48, 0.62);
  --bg-card-solid: #101c38;

  /* Textes */
  --text: #eef2f9;
  --text-secondary: #8fa1c0;
  --text-dim: #8093b3;
  --text-faint: #7a8dab;

  /* Cuivre — signature Ker-IA */
  --copper-1: #8f3c1e;
  --copper-2: #d5764e;
  --copper-3: #eaa685;
  --copper-4: #b25530;
  --copper-5: #7a3015;
  --copper-soft: rgba(213, 118, 78, 0.12);

  /* Marine */
  --navy-1: #233556;
  --navy-2: #14213b;
  --navy-3: #0a1224;

  /* États */
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --danger: #fb7185;

  /* Bordures */
  --border: rgba(213, 118, 78, 0.12);
  --border-strong: rgba(213, 118, 78, 0.3);
  --border-neutral: rgba(143, 161, 192, 0.14);

  /* Dégradés */
  --gradient-copper: linear-gradient(135deg, #8f3c1e 0%, #d5764e 35%, #eaa685 55%, #b25530 85%, #7a3015 100%);
  --gradient-copper-h: linear-gradient(90deg, #d5764e, #eaa685, #d5764e);
  --gradient-text: linear-gradient(135deg, #eaa685 0%, #d5764e 45%, #b25530 100%);
  --gradient-surface: linear-gradient(160deg, rgba(19, 31, 61, 0.8) 0%, rgba(10, 18, 36, 0.6) 100%);

  /* Rayons */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;

  /* Ombres */
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-copper: 0 16px 48px rgba(143, 60, 30, 0.22);
  --shadow-copper-lg: 0 24px 72px rgba(213, 118, 78, 0.28);

  /* Typo */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rythme */
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --container: 1240px;
  --container-narrow: 880px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Quand le shader WebGPU est actif, body devient transparent pour laisser voir le canvas */
body.shader-active {
  background: transparent;
}

body.shader-active .section--surface {
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(4px);
}

body.shader-active .section--alt {
  background: linear-gradient(180deg, transparent, rgba(19, 31, 61, 0.15) 50%, transparent);
}

body.shader-active .hero > div[aria-hidden] {
  opacity: 0.5;
}

/* ------------------------------------------------------- Video Grid --- */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.video-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(213, 118, 78, 0.1);
}
.video-card video {
  transition: filter 0.4s ease;
}
.video-card:hover video {
  filter: brightness(1.1) saturate(1.1);
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { background-color: transparent; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--copper-2); color: #0a1224; }

:focus-visible {
  outline: 2px solid var(--copper-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------- Accessibilité --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--copper-2);
  color: #0a1224;
  font-weight: 700;
  border-radius: var(--radius-xs);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- Structure ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Section featured (serveur IA) */
.section--featured {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 50%, var(--bg-deep) 100%);
  border-block: 1px solid var(--border-neutral);
}

/* Section vidéo showcase */
.section--video {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--bg);
}
.video-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.video-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-neutral);
}
.video-main video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(5,10,20,0.9));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.video-caption strong {
  color: var(--text);
  font-size: 1.1rem;
}
.video-caption span {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.video-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.video-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-neutral);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.video-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.video-thumb video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.video-thumb figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(5,10,20,0.85));
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .video-showcase {
    grid-template-columns: 1fr;
  }
  .video-thumbs {
    flex-direction: row;
  }
  .video-thumb {
    flex: 1;
  }
}

/* Feature grid (serveur IA) — 6 cartes : 3 × 2 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 40px rgba(213, 118, 78, 0.1);
}
.feature-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  background: var(--copper-soft);
  border-radius: var(--radius-sm);
}
.feature-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Callout featured */
.callout--featured {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(213, 118, 78, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.callout-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.callout-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Services grid — 4 cartes : 4 en ligne, puis 2 × 2 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}
.service-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  background: var(--copper-soft);
  border-radius: var(--radius-sm);
}
.service-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}
.service-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--copper-3);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.25s, transform 0.25s;
}
.service-link:hover {
  color: var(--copper-2);
  transform: translateX(4px);
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.service-links .service-link {
  margin-top: 0;
}
.service-link--ghost {
  color: var(--text-secondary);
  font-weight: 500;
}
.service-link--ghost:hover {
  color: var(--copper-3);
}

/* Liens vers les pages de contenu (maillage interne) */
.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-neutral);
}
.page-links-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.35rem;
}
.page-links a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border-neutral);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.page-links a:hover {
  color: var(--copper-3);
  border-color: var(--copper-2);
  transform: translateY(-2px);
}

/* ------------------------------------------------- Écosystème & logos --- */
.section--logos {
  background: var(--bg);
  border-block: 1px solid var(--border-neutral);
  overflow: hidden;
}

/* Bandeau défilant de logos */
.logo-marquee {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  width: max-content;
  animation: logoScroll 42s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-item {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-item img {
  height: 30px;
  width: auto;
  display: block;
  /* SVG simple-icons : noir par défaut → blanc translucide */
  filter: brightness(0) invert(1);
  opacity: 0.42;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.logo-item:hover img { opacity: 0.9; transform: scale(1.08); }

/* Grille par catégories */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.logo-group h3 {
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-3);
  margin-bottom: 1.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem 1.25rem;
}
.logo-row--compact {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.85rem 1rem;
}
.logo-row li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.logo-row img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.25s var(--ease);
}
.logo-row li:hover img { opacity: 1; }
.logo-row span {
  font-size: 0.86rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-row li:hover span { color: var(--text); }

/* Étiquette typographique (marques sans logo disponible) */
.logo-wordmark .wm {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--copper-2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.logo-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.logo-disclaimer {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-neutral);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

@media (max-width: 640px) {
  .logo-item img { height: 24px; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
}

/* Why layout avec image */.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.why-layout--reverse {
  grid-template-columns: 1.2fr 1fr;
}
.why-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-neutral);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.why-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.why-content .section-head {
  margin-bottom: 2rem;
}

/* --------------------------------------------------- Visuels de section --- */
.section-visual {
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  max-width: 1000px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-neutral);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  position: relative;
}
.section-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 10, 20, 0.55) 100%);
  pointer-events: none;
}
.section-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.section-visual--wide { max-width: 880px; }

/* ------------------------------------------------ Section à fond shader --- */
.section--shader {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.section--shader canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.section--shader .section-fg {
  position: relative;
  z-index: 1;
}
/* Sans WebGPU, le canvas est masqué : on garde un dégradé CSS équivalent */
.no-shader .section--shader {
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(13, 26, 48, 0.9) 0%, transparent 70%),
    var(--bg-deep);
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 2.25rem 2.5rem;
}
.why-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--copper-3);
}
.why-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Process steps */
.process-steps {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  align-items: start;
}
.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--copper-2);
  line-height: 1;
  min-width: 2.5rem;
}
.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.contact-info li {
  margin-bottom: 1.25rem;
}
.contact-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.contact-info a,
.contact-info span {
  color: var(--text);
  font-size: 1.05rem;
}
.contact-info a:hover {
  color: var(--copper-3);
}
.contact-cta {
  padding: 1.25rem;
  background: var(--copper-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.contact-cta p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.contact-cta p:first-child {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border-neutral);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.25s;
}
.footer-links a:hover {
  color: var(--copper-3);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-neutral);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom nav {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom a {
  color: var(--text-dim);
  transition: color 0.25s;
}
.footer-bottom a:hover {
  color: var(--copper-3);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .why-layout,
  .why-layout--reverse {
    grid-template-columns: 1fr;
  }
  .why-visual {
    order: -1;
  }
  .section-visual {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Vidéo cinématique du hero (poster = image premium en dessous) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
}
.hero-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5,10,20,0.55) 0%, rgba(5,10,20,0.42) 35%, rgba(5,10,20,0.82) 78%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(5,10,20,0.78) 0%, rgba(5,10,20,0.25) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero .lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  max-width: 650px;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-sm);
}
.hero-stats .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 900;
  color: var(--copper-3);
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ------------------------------------------------------------- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--copper-3);
  background: var(--copper-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper-2);
  box-shadow: 0 0 10px var(--copper-2);
  flex-shrink: 0;
}

/* ------------------------------------------------------------- Titres ---- */
.h-display {
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 4.1rem);
  letter-spacing: -0.03em;
}
.h1 { font-size: clamp(1.95rem, 1.3rem + 3vw, 3.5rem); }
.h2 { font-size: clamp(1.7rem, 1.2rem + 2.3vw, 2.85rem); }
.h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); }
.h4 { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem); }

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

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.68;
  color: var(--text-secondary);
}
.muted { color: var(--text-secondary); }
.dim { color: var(--text-dim); }

/* ------------------------------------------------------------ Boutons ---- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-copper);
  background-size: 200% 200%;
  color: #12100e;
  box-shadow: var(--shadow-copper);
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: var(--shadow-copper-lg), 0 0 30px rgba(213, 118, 78, 0.4);
  animation: none;
}

.btn-secondary {
  background: rgba(143, 161, 192, 0.07);
  border-color: var(--border-neutral);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(213, 118, 78, 0.1);
  color: var(--copper-3);
}

.btn-ghost {
  padding-inline: 0.4rem;
  color: var(--copper-3);
  font-weight: 700;
}
.btn-ghost::after {
  content: '→';
  transition: transform 0.28s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(5px); }

.btn-sm { padding: 0.68rem 1.35rem; font-size: 0.86rem; }
.btn-lg { padding: 1.12rem 2.3rem; font-size: 1.03rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* -------------------------------------------------------------- Cartes --- */
.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient-copper-h);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow), 0 0 40px rgba(213, 118, 78, 0.15);
}
.card:hover::before { opacity: 1; }

/* Glow cuivre animé au survol */
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(213, 118, 78, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.card:hover::after { opacity: 1; }

.card--static:hover { transform: none; box-shadow: none; border-color: var(--border-neutral); }
.card--static::before { display: none; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.25rem;
  background: var(--copper-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--copper-2);
  font-size: 1.45rem;
  line-height: 1;
}

.card-title {
  margin-bottom: 0.7rem;
  font-size: 1.16rem;
  font-weight: 700;
}
.card-text { color: var(--text-secondary); font-size: 0.97rem; }

/* --------------------------------------------------------------- Grilles -- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ------------------------------------------------------------ Sections --- */
.section--alt { background: linear-gradient(180deg, transparent, rgba(19, 31, 61, 0.35) 50%, transparent); }

.section--surface {
  background: var(--bg);
  border-block: 1px solid var(--border-neutral);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
}

/* Halo lumineux réutilisable */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.glow--copper { background: rgba(213, 118, 78, 0.3); }
.glow--navy { background: rgba(35, 53, 86, 0.55); }

/* --------------------------------------------------------- Navigation ---- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 0.9rem;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              padding 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 0.6rem;
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border-neutral);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo svg { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links > li > a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: color 0.25s, background 0.25s;
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current='page'] {
  color: var(--text);
  background: rgba(143, 161, 192, 0.08);
}

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-xs);
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 19px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu déroulant Services */
.nav-drop { position: relative; }
.nav-drop > button {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: color 0.25s, background 0.25s;
}
.nav-drop > button::after {
  content: '';
  width: 5px; height: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s;
}
.nav-drop > button:hover { color: var(--text); background: rgba(143, 161, 192, 0.08); }
.nav-drop[data-open='true'] > button::after { transform: rotate(-135deg) translateY(-2px); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 290px;
  padding: 0.6rem;
  background: rgba(10, 18, 36, 0.97);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-drop[data-open='true'] .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: background 0.2s, color 0.2s;
}
.nav-drop-menu a:hover { background: rgba(213, 118, 78, 0.1); color: var(--copper-3); }
.nav-drop-menu a strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}
.nav-drop-menu a:hover strong { color: var(--copper-3); }
.nav-drop-menu a span { font-size: 0.82rem; color: var(--text-dim); line-height: 1.4; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    max-height: 100dvh;
    padding: 5.5rem 1.5rem 2rem;
    margin: 0;
    background: rgba(5, 10, 20, 0.98);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border-neutral);
    overflow-y: auto;
    transform: translateY(-102%);
    transition: transform 0.45s var(--ease);
    z-index: -1;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links > li > a,
  .nav-drop > button { padding: 0.9rem 0.75rem; font-size: 1.05rem; width: 100%; text-align: left; }
  .nav-drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(14, 24, 48, 0.6);
    border: 0;
    box-shadow: none;
    padding: 0.2rem 0 0.5rem;
  }
  .nav-drop[data-open='true'] .nav-drop-menu { display: block; }
  .nav-actions .btn { display: none; }
  .nav-actions .btn-mobile-cta { display: inline-flex; }
}
@media (min-width: 1081px) {
  .nav-actions .btn-mobile-cta { display: none; }
  .nav-links .nav-mobile-only { display: none; }
}

/* ---------------------------------------------------------- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--copper-3); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.45rem; color: var(--text-faint); }
.breadcrumb li { display: flex; align-items: center; }

/* -------------------------------------------------------- Hero interne --- */
.page-hero {
  position: relative;
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-neutral);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.page-hero .lead { margin-top: 1.5rem; max-width: 720px; }
.page-hero .btn-row { margin-top: 2.25rem; }

/* -------------------------------------------------------- Formulaire ----- */
/* Formulaire de contact : deux colonnes en desktop, une seule en mobile.   */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  text-align: left;
}
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.field label .opt {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.field .req { color: var(--copper-2); margin-left: 0.15rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: rgba(5, 10, 20, 0.55);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-xs);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.field select {
  /* Chevron dessiné en SVG : évite une image supplémentaire */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d5764e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px;
  padding-right: 2.75rem;
  cursor: pointer;
}
.field select option { background: var(--bg-elevated); color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(213, 118, 78, 0.28); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper-2);
  background: rgba(5, 10, 20, 0.8);
  box-shadow: 0 0 0 3px rgba(213, 118, 78, 0.16);
}

/* Champ invalide : signalé visuellement ET par aria-invalid (côté JS) */
.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.14);
}
.field .field-error {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1.1em;
}
.field .field-hint { font-size: 0.8rem; color: var(--text-dim); }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}
.form-consent {
  flex: 1 1 320px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.form-consent a { color: var(--copper-3); text-decoration: underline; text-underline-offset: 2px; }

/* Piège à robots : masqué aux humains, visible pour un automate naïf */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Message de retour après envoi */
.form-status {
  grid-column: 1 / -1;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  line-height: 1.6;
  border: 1px solid transparent;
}
.form-status:empty { display: none; }
.form-status[data-state='success'] {
  background: var(--success-soft);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--text);
}
.form-status[data-state='error'] {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--text);
}
.form-status[data-state='pending'] {
  background: rgba(143, 161, 192, 0.1);
  border-color: var(--border-neutral);
  color: var(--text-secondary);
}
.form-status strong { color: var(--copper-3); }

/* État d'envoi du bouton */
.btn[aria-busy='true'] { opacity: 0.65; pointer-events: none; }

/* Encart contact compact (e-mail + localisation, sans téléphone) */
.contact-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1.25rem;
  text-align: left;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-neutral);
}
.contact-direct .label {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.contact-direct .value { font-weight: 600; font-size: 0.98rem; }
.contact-direct a { color: var(--copper-3); }
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ---------------------------------------------------------- Statistiques - */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--border-neutral);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--bg);
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  margin-top: 0.7rem;
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ------------------------------------------------------------- Tableau --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.compare th,
table.compare td {
  padding: 1.05rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-neutral);
  vertical-align: top;
}
table.compare thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  z-index: 1;
}
table.compare thead th:first-child { color: var(--text-secondary); }
table.compare tbody th {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(14, 24, 48, 0.4);
}
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:hover td,
table.compare tbody tr:hover th { background: rgba(213, 118, 78, 0.05); }
.col-ker {
  background: rgba(213, 118, 78, 0.07) !important;
  border-inline: 1px solid var(--border-strong);
}
thead th.col-ker { color: var(--copper-3) !important; }

.yes, .no, .mid { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.yes { color: var(--success); }
.no { color: var(--danger); }
.mid { color: var(--warning); }
.yes::before { content: '✓'; font-weight: 800; }
.no::before { content: '✕'; font-weight: 800; }
.mid::before { content: '~'; font-weight: 800; }

/* -------------------------------------------------------------- Liste ---- */
.check-list { display: grid; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-secondary);
  font-size: 0.97rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--copper-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d5764e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid var(--border-strong);
}
.check-list--lg li { font-size: 1.03rem; padding-left: 2.2rem; }

/* -------------------------------------------------------------- Étapes --- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.4rem;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  counter-increment: step;
}
/* Le numéro occupe la 1re colonne sur toute la hauteur.
   Le titre et le texte sont explicitement placés dans la 2e colonne :
   sans cela, le paragraphe retombait en colonne 1 (ligne 2), ce qui
   faisait gonfler la colonne « auto » et écrasait le titre. */
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--copper-2);
  line-height: 1;
  padding-top: 0.15rem;
  min-width: 2.4rem;
}
.step h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.step p {
  grid-column: 2;
  grid-row: 2;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ----------------------------------------------------------------- FAQ --- */
.faq { display: grid; gap: 0.75rem; max-width: 900px; margin-inline: auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-strong); background: var(--bg-card-solid); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--copper-3); }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 2px solid var(--copper-2);
  border-bottom: 2px solid var(--copper-2);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body {
  padding: 0 1.4rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}
.faq .faq-body p + p { margin-top: 0.8rem; }

/* --------------------------------------------------------------- CTA ----- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(150deg, rgba(143, 60, 30, 0.28), rgba(19, 31, 61, 0.85) 55%, rgba(10, 18, 36, 0.9));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -55%; left: 50%;
  width: 640px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(213, 118, 78, 0.28), transparent 68%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .h2 { margin-bottom: 1.1rem; }
.cta-band .lead { max-width: 620px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2.1rem; }

/* -------------------------------------------------------------- Footer --- */
.footer {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--bg);
  border-top: 1px solid var(--border-neutral);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer-brand img { height: 54px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p {
  max-width: 340px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.footer-contact { margin-top: 1.4rem; display: grid; gap: 0.55rem; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s;
}
.footer-contact a:hover { color: var(--copper-3); }
.footer-contact .ico { color: var(--copper-2); }

.footer h3 {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--copper-3);
}
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}
.footer-links a:hover { color: var(--copper-3); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.6rem;
  border-top: 1px solid var(--border-neutral);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--copper-3); }

/* --------------------------------------------------------- Fil d'ariane -- */
.related {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
}
.related h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.related-grid a {
  padding: 1.1rem 1.25rem;
  background: rgba(19, 31, 61, 0.6);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.related-grid a:hover {
  border-color: var(--border-strong);
  background: rgba(213, 118, 78, 0.08);
  transform: translateY(-3px);
}
.related-grid strong { display: block; font-size: 0.98rem; margin-bottom: 0.3rem; }
.related-grid span { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* ---------------------------------------------------- Bandeau d'alerte -- */
.callout {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 1.6rem;
  background: var(--copper-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.callout .ico { flex-shrink: 0; font-size: 1.35rem; line-height: 1; color: var(--copper-2); }
.callout .ico img { width: 44px; height: 44px; object-fit: contain; display: block; }
.card-icon img { width: 46px; height: 46px; object-fit: contain; display: block; }
.callout p { font-size: 0.95rem; color: var(--text-secondary); }
.callout strong { color: var(--text); }

/* ------------------------------------------------------------- Visuels --- */
.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius);
  background: var(--bg-surface);
}
.figure img { width: 100%; display: block; }
.figure figcaption {
  padding: 0.85rem 1.15rem;
  font-size: 0.83rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-neutral);
}

/* --------------------------------------------------------- Animations --- */

/* Scroll indicator hero */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  transition: color 0.3s ease;
}
.scroll-indicator:hover {
  color: var(--copper-3);
}
.scroll-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Curseur personnalisé */
.custom-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--copper-2);
  border-radius: 50%;
  position: fixed;
  top: -4px;
  left: -4px;
  transition: transform 0.1s ease;
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--copper-2);
  border-radius: 50%;
  position: fixed;
  top: -20px;
  left: -20px;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  border-color: var(--copper-3);
  background: rgba(213, 118, 78, 0.1);
}
.cursor-hover .cursor-dot {
  transform: scale(0.5);
}

/* Masquer le curseur natif sur desktop */
@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal[data-delay='1'] { transition-delay: 0.08s; }
  .reveal[data-delay='2'] { transition-delay: 0.16s; }
  .reveal[data-delay='3'] { transition-delay: 0.24s; }
  .reveal[data-delay='4'] { transition-delay: 0.32s; }
  .reveal[data-delay='5'] { transition-delay: 0.4s; }
  .reveal[data-delay='6'] { transition-delay: 0.48s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- Divers -- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-w-720 { max-width: 720px; }
.full-width { grid-column: 1 / -1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  background: var(--copper-soft);
  border: 1px solid var(--border-strong);
  color: var(--copper-3);
}
.badge--success {
  background: var(--success-soft);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--success);
}

/* Bandeau de confiance (logos/textes défilants) */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border-neutral);
  background: rgba(14, 24, 48, 0.35);
  padding-block: 1.1rem;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ticker-item::before { content: '◆'; color: var(--copper-2); font-size: 0.65rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* Barre de progression de lecture */
.read-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  background: var(--gradient-copper-h);
  z-index: 200;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------- Responsive --- */
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-ghost { width: auto; align-self: flex-start; }
  .step { grid-template-columns: 1fr; gap: 0.75rem; }
  .step::before { grid-column: 1; grid-row: auto; padding-top: 0; }
  .step h3 { grid-column: 1; grid-row: auto; margin-bottom: 0; }
  .step p { grid-column: 1; grid-row: auto; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Impression - */
@media print {
  .nav, .footer, .cta-band, .read-progress, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .table-wrap { border-color: #ccc; background: #fff; }
}
