﻿/*
Theme Name: SOS Pocket
Theme URI: https://sospocket.fr/
Author: Tech For You
Author URI: https://www.tech-for-you.fr
Description: Thème WordPress sur mesure pour SOS Pocket, application Android de sécurité personnelle. Léger, sans Elementor, reproduisant fidèlement le site statique validé (design V3, Nexa).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: Proprietary
License URI: https://sospocket.fr/
Text Domain: sospocket
*/
/* ==========================================================================
   SOS Pocket — Design tokens (source : DESIGN_SYSTEM.md, ds_* Android)
   ========================================================================== */
:root {
  --ds-void: #100C18;
  --ds-card-top: #2D2439;
  --ds-card-bottom: #171220;
  --ds-ink: #F4F0FA;
  --ds-ink-dim: #A79FBE;
  --ds-ink-faint: #6F6584;

  --ds-veille: #8F80DF;
  --ds-contacts: #DD93C6;
  --ds-alerte: #E0955A;
  --ds-trigger: #54B7CC;
  --ds-securite: #4FA3E8;
  --ds-securite-deep: #2E6FA8;
  --ds-securite-light: #8AC9F5;
  --ds-general: #7ED9A8;
  --ds-audio-historique: #E2665C;
  --ds-aide: #E8C468;
  --ds-signal: #D9472E;
  --ds-signal-deep: #8F2A19;
  --ds-ok: #2BCDB8;

  --font-main: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --radius-card: 20px;
  --radius-btn: 18px;
  --max-width: 1180px;
  --cut: clamp(30px, 4.4vw, 60px);
  --cut-lg: clamp(46px, 6vw, 92px);
}

/* ==========================================================================
   Reset minimal
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ds-void);
  color: var(--ds-ink);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; color: var(--ds-ink-dim); }
ul, ol { margin: 0; padding: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.wrap.narrow { max-width: 760px; }

.icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-inline { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent, var(--ds-veille)) 18%, transparent);
  color: var(--accent, var(--ds-veille));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ds-ink);
  color: var(--ds-void);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--ds-trigger);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 12, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 240, 250, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logotype {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ds-ink);
}
.logo-mark { width: 34px; height: 34px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--ds-ink-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--ds-ink); }
.main-nav a.nav-cta {
  color: var(--ds-void);
  background: var(--ds-contacts);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.main-nav a.nav-cta:hover { color: var(--ds-void); opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(244, 240, 250, 0.06);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ds-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Scenes — structure commune
   ========================================================================== */
.scene {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.scene > .wrap { z-index: 2; }
.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--ds-void);
  background-repeat: no-repeat;
}
.bg-panel .scene-bg,
.scene.bg-panel { background: rgba(244, 240, 250, 0.02); }

.bg-aurora-violet .scene-bg { background-image: radial-gradient(55% 60% at 85% 0%, rgba(143, 128, 223, 0.16), transparent 70%); }
.bg-aurora-cyan .scene-bg { background-image: radial-gradient(55% 60% at 12% 100%, rgba(84, 183, 204, 0.15), transparent 70%); }
.bg-aurora-warm .scene-bg { background-image: radial-gradient(55% 60% at 88% 100%, rgba(224, 149, 90, 0.14), transparent 70%); }
.bg-ink .scene-bg {
  background-image:
    radial-gradient(60% 55% at 20% 0%, rgba(46, 111, 168, 0.22), transparent 70%),
    radial-gradient(50% 50% at 95% 100%, rgba(143, 128, 223, 0.10), transparent 70%);
}
.bg-audio .scene-bg {
  background-image:
    radial-gradient(55% 60% at 80% 10%, rgba(226, 102, 92, 0.10), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgba(143, 128, 223, 0.16), transparent 70%);
}
.bg-confid .scene-bg {
  background-image:
    radial-gradient(70% 65% at 50% 0%, rgba(79, 163, 232, 0.24), transparent 70%),
    radial-gradient(60% 55% at 90% 100%, rgba(43, 205, 184, 0.16), transparent 70%);
}
.bg-tests .scene-bg {
  background-image:
    radial-gradient(60% 60% at 15% 0%, rgba(143, 128, 223, 0.26), transparent 70%),
    radial-gradient(55% 55% at 90% 20%, rgba(221, 147, 198, 0.20), transparent 70%);
}

/* Diviseurs diagonaux entre scènes */
.divider {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--cut);
  background: var(--ds-void);
  z-index: 3;
  pointer-events: none;
}
.divider-lg { height: var(--cut-lg); }
.divider-bottom { bottom: -1px; }
.divider-top { top: -1px; }
.divider-a { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.divider-b { clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: calc(var(--cut) + 16px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.hero-logo { width: 64px; height: auto; flex: 0 0 auto; }
.hero-slogan {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ds-ink-dim);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(244, 240, 250, 0.06);
  border: 1px solid rgba(244, 240, 250, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ds-ink-dim);
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ds-ok);
  box-shadow: 0 0 0 4px rgba(43, 205, 184, 0.18);
}
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  max-width: 620px;
  margin-bottom: 0.5em;
}
.hero-intro {
  max-width: 520px;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--ds-veille), var(--ds-contacts));
  color: var(--ds-void);
}
.btn-ghost {
  background: rgba(244, 240, 250, 0.06);
  border: 1px solid rgba(244, 240, 250, 0.18);
  color: var(--ds-ink);
}

.hero-nexa { display: flex; justify-content: center; }
.nexa-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
}
.nexa-stage-glow {
  position: absolute;
  inset: -30px -10% -10px;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 30%, rgba(143, 128, 223, 0.16), transparent 72%);
  filter: blur(2px);
}
#nexa-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 320;
}
.nexa-label {
  margin: -4px 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--ds-ink-faint);
}
.nexa-speech-panel {
  padding: 15px 22px;
  border-radius: 20px;
  background: rgba(244, 240, 250, 0.05);
  border: 1px solid rgba(244, 240, 250, 0.10);
  max-width: 440px;
}
.nexa-speech {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ds-ink);
  text-align: center;
}
.nexa-speech .word { display: inline-block; opacity: 1; transform: none; }
body.js-progressive .nexa-speech .word {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
body.js-progressive .nexa-speech .word.revealed { opacity: 1; transform: translateY(0); }

/* Action discrète affichée uniquement si l'autoplay audio a été refusé par le navigateur
   (voir js/main.js) : Nexa reste au repos tant qu'elle n'est pas cliquée/touchée. */
.nexa-listen-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(244, 240, 250, 0.06);
  border: 1px solid rgba(244, 240, 250, 0.18);
  color: var(--ds-ink-dim);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nexa-listen-btn:hover { transform: translateY(-1px); color: var(--ds-ink); }
.nexa-listen-btn .icon { width: 16px; height: 16px; color: var(--ds-trigger); }
.nexa-listen-btn[hidden] { display: none; }

.hero-ribbon {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(244, 240, 250, 0.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 30px;
  background: linear-gradient(180deg, rgba(143, 128, 223, 0.05), transparent);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--ds-ink-dim);
  max-width: 210px;
}
.trust-item .icon { width: 20px; height: 20px; }
.trust-item:nth-child(1) .icon { color: var(--ds-securite); }
.trust-item:nth-child(2) .icon { color: var(--ds-trigger); }
.trust-item:nth-child(3) .icon { color: var(--ds-veille); }
.trust-item:nth-child(4) .icon { color: var(--ds-general); }
.trust-item:nth-child(5) .icon { color: var(--ds-ok); }

/* ==========================================================================
   Titres / textes communs
   ========================================================================== */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--eyebrow-accent, var(--ds-ink-dim));
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--eyebrow-accent, var(--ds-veille));
  box-shadow: 0 0 8px 0 var(--eyebrow-accent, var(--ds-veille));
}
.section-eyebrow.center { justify-content: center; }

#presentation .section-eyebrow { --eyebrow-accent: var(--ds-veille); }
#declenchement .section-eyebrow { --eyebrow-accent: var(--ds-trigger); }
#en-action .section-eyebrow { --eyebrow-accent: var(--ds-general); }
#parcours .section-eyebrow { --eyebrow-accent: var(--ds-securite-light); }
#audio .section-eyebrow { --eyebrow-accent: var(--ds-audio-historique); }
#protection .section-eyebrow { --eyebrow-accent: var(--ds-securite); }
#confidentialite .section-eyebrow { --eyebrow-accent: var(--ds-ok); }
#cas-usage .section-eyebrow { --eyebrow-accent: var(--ds-alerte); }
#presse .section-eyebrow { --eyebrow-accent: var(--ds-contacts); }
#derriere-sos-pocket .section-eyebrow { --eyebrow-accent: var(--ds-alerte); }
#tests-partenaires .section-eyebrow { --eyebrow-accent: var(--ds-veille); }
.scene h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5em;
  max-width: 640px;
}
.scene h2.center { text-align: center; margin-left: auto; margin-right: auto; }
.scene h3 { font-size: 1.1rem; color: var(--ds-ink); }
.lead { max-width: 640px; font-size: 1.02rem; }
.lead.center { text-align: center; margin-left: auto; margin-right: auto; }
.fine-print {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--ds-ink-faint);
}
.fine-print.center { text-align: center; margin-left: auto; margin-right: auto; }
.pull-quote {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ds-ink);
  border-left: 3px solid var(--ds-contacts);
  padding-left: 18px;
  margin: 0 0 1.2em;
}

/* ==========================================================================
   Split layout (texte / visuel asymétrique)
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.visual-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
  width: 100%;
}
.visual-stack .phone-mock {
  position: absolute;
  right: 4%;
  top: 2%;
  z-index: 1;
  opacity: 0.92;
}
.visual-stack .fact-stack { position: relative; z-index: 2; }

.fact-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 340px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--ds-card-top), var(--ds-card-bottom));
  border: 1px solid rgba(244, 240, 250, 0.10);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.6);
}
.fact .icon { color: var(--ds-trigger); width: 28px; height: 28px; }
.fact strong { display: block; color: var(--ds-ink); font-size: 0.96rem; }
.fact span { font-size: 0.83rem; color: var(--ds-ink-faint); }
.fact:nth-child(2) .icon { color: var(--ds-securite); }
.fact:nth-child(3) .icon { color: var(--ds-contacts); }
.fact:nth-child(4) .icon { color: var(--ds-general); }

/* Faux téléphone (captures réelles de l'application) */
.phone-mock {
  position: relative;
  width: clamp(170px, 20vw, 230px);
  aspect-ratio: 720 / 1544;
  border-radius: 34px;
  overflow: hidden;
  background: var(--ds-void);
  border: 1px solid rgba(244, 240, 250, 0.14);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.65);
}
.phone-mock img { width: 100%; height: 100%; object-fit: cover; }
.phone-mock::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 36%; height: 5px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(16, 12, 24, 0.55);
}
.phone-mock--tilt-l { transform: rotate(-6deg); }
.phone-mock--tilt-r { transform: rotate(5deg); }

/* ==========================================================================
   Plusieurs façons de déclencher
   ========================================================================== */
.trigger-scene {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin-top: 40px;
}
.trigger-visual { display: flex; justify-content: center; }
.trigger-list { display: flex; flex-direction: column; }
.trigger-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(244, 240, 250, 0.08);
}
.trigger-row:last-child { border-bottom: none; }
.trigger-row .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.trigger-row h3 { margin-bottom: 0.2em; font-size: 1rem; }
.trigger-row p { margin: 0; font-size: 0.88rem; }

/* Accès rapide aux réglages : volontairement distinct des vrais déclencheurs ci-dessus
   (bordure pointillée, accent neutre) — ce n'est pas un 5e moyen de déclenchement. */
.quick-settings-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: rgba(244, 240, 250, 0.03);
  border: 1px dashed rgba(244, 240, 250, 0.18);
}
.quick-settings-note .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.quick-settings-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-ink-faint);
  margin-bottom: 0.5em;
}
.quick-settings-note h3 { margin-bottom: 0.2em; font-size: 1rem; }
.quick-settings-note p { margin: 0; font-size: 0.88rem; }

/* ==========================================================================
   SOS Pocket en action (démonstration vidéo + exemple de SMS)
   ========================================================================== */
/* Vidéo et capture SMS sont toutes deux verticales (écran de téléphone) : même famille visuelle
   que .phone-mock, la vidéo légèrement plus grande pour rester le média mis en avant. */
.action-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  margin-top: 40px;
}
.action-demo figure { margin: 0; }
.action-demo figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ds-ink-faint);
  text-align: center;
}
.action-video-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 932 / 1920;
  border-radius: 34px;
  overflow: hidden;
  background: var(--ds-void);
  border: 1px solid rgba(244, 240, 250, 0.14);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.65);
}
.action-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ds-void);
}
.action-sms {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.action-sms-frame {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 621 / 1601;
  border-radius: 34px;
  overflow: hidden;
  background: var(--ds-void);
  border: 1px solid rgba(244, 240, 250, 0.14);
  box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.65);
}
.action-sms-frame img { width: 100%; height: 100%; object-fit: cover; }
.action-sms-frame::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 36%; height: 5px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(16, 12, 24, 0.55);
}

/* ==========================================================================
   Parcours d'une alerte (infographie)
   ========================================================================== */
.parcours-layout { position: relative; }
.timeline {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 44px 0 20px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--ds-veille), var(--ds-trigger), var(--ds-alerte), var(--ds-audio-historique));
  opacity: 0.45;
  z-index: 0;
}
.timeline-step { flex: 1; position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ds-void);
  border: 2px solid var(--ds-veille);
  color: var(--ds-ink);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.timeline-step .icon { display: block; margin: 0 auto 10px; color: var(--ds-trigger); }
.timeline-step h3 { font-size: 0.96rem; margin-bottom: 0.3em; }
.timeline-step p { font-size: 0.84rem; margin: 0; }

.parcours-phone {
  position: absolute;
  right: 0;
  top: -64px;
  z-index: 4;
}

.cancel-preview { display: none; }

/* ==========================================================================
   Audio — scène dédiée
   ========================================================================== */
.waveform-wrap {
  position: relative;
  z-index: 4;
  margin-top: 8px;
  margin-bottom: 40px;
  padding: 30px clamp(20px, 4vw, 52px);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--ds-card-top), var(--ds-card-bottom));
  border: 1px solid rgba(244, 240, 250, 0.12);
  box-shadow: 0 44px 90px -32px rgba(0, 0, 0, 0.7);
}
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: clamp(64px, 9vw, 100px);
  max-width: 760px;
  margin: 0 auto;
}
.waveform span {
  flex: 1;
  min-width: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--ds-trigger), var(--ds-veille));
  opacity: 0.88;
  height: 30%;
}
.waveform span:nth-child(7n+1) { height: 88%; }
.waveform span:nth-child(7n+2) { height: 46%; }
.waveform span:nth-child(7n+3) { height: 68%; }
.waveform span:nth-child(7n+4) { height: 100%; }
.waveform span:nth-child(7n+5) { height: 38%; }
.waveform span:nth-child(7n+6) { height: 58%; }
.waveform span:nth-child(7n) { height: 24%; }

.duration-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.duration-chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(244, 240, 250, 0.06);
  border: 1px solid rgba(244, 240, 250, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ds-ink-dim);
}

.audio-sequence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 36px auto 0;
  max-width: 440px;
}
.seq-step {
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(244, 240, 250, 0.04);
  border: 1px solid rgba(244, 240, 250, 0.10);
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  color: var(--ds-ink);
}
.seq-arrow { color: var(--ds-ink-faint); font-size: 0.85rem; line-height: 1.2; }

.audio-clarify {
  margin-top: 32px;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.audio-clarify p { font-size: 0.92rem; margin-bottom: 0.35em; }
.audio-clarify strong { color: var(--ds-ink); }

/* ==========================================================================
   Protection active — panneau de supervision
   ========================================================================== */
.protection-scene {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin-top: 40px;
}
.protection-panel {
  position: relative;
  border-radius: 24px;
  padding: 28px 30px;
  background: linear-gradient(160deg, var(--ds-card-top), var(--ds-card-bottom));
  border: 1px solid rgba(244, 240, 250, 0.12);
  overflow: hidden;
  box-shadow: 0 34px 76px -30px rgba(0, 0, 0, 0.65);
}
.panel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.045;
  filter: grayscale(1) blur(2px);
  z-index: 0;
}
.panel-content { position: relative; z-index: 1; }
.panel-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--ds-securite-light);
  margin-bottom: 16px;
}
.panel-checklist { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0 0 22px; }
.panel-checklist li { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; color: var(--ds-ink); }
.panel-checklist .icon { width: 18px; height: 18px; color: var(--ds-ok); }
.panel-notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(224, 149, 90, 0.10);
  border: 1px solid rgba(224, 149, 90, 0.28);
}
.panel-notif .icon { width: 20px; height: 20px; color: var(--ds-alerte); flex-shrink: 0; }
.panel-notif p { margin: 0; font-size: 0.86rem; color: var(--ds-ink); flex: 1; }
.chip-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--ds-alerte);
  color: var(--ds-void);
  font-size: 0.78rem;
  font-weight: 700;
}
.panel-caption { margin-top: 16px; font-size: 0.74rem; color: var(--ds-ink-faint); }

/* ==========================================================================
   Confidentialité — grande rupture
   ========================================================================== */
.confid-statement {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--ds-ink);
  max-width: 680px;
  margin: 0 auto 1.4em;
  text-align: center;
}
.confid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.confid-col { padding: 28px; border-radius: var(--radius-card); }
.confid-col--local { background: rgba(43, 205, 184, 0.07); border: 1px solid rgba(43, 205, 184, 0.24); }
.confid-col--exception { background: rgba(244, 240, 250, 0.03); border: 1px solid rgba(244, 240, 250, 0.12); }
.confid-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 0.7em; }
.confid-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 0.4em; }
.confid-col li { font-size: 0.92rem; color: var(--ds-ink-dim); padding-left: 18px; position: relative; }
.confid-col li::before { content: "—"; position: absolute; left: 0; color: var(--ds-ok); }
.confid-col p { font-size: 0.9rem; margin: 0; }
/* Argument confidentialité mis en avant : "Sans publicité" (repris de l'ancien footnote, mais
   rendu visible sous forme de petite carte plutôt que noyé en bas de section). */
.confid-noads {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 460px;
  margin: 28px auto 0;
  padding: 18px 24px;
  border-radius: var(--radius-card);
  background: rgba(43, 205, 184, 0.07);
  border: 1px solid rgba(43, 205, 184, 0.24);
  text-align: left;
}
.confid-noads .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.confid-noads h3 { margin: 0 0 2px; font-size: 0.95rem; }
.confid-noads p { margin: 0; font-size: 0.86rem; color: var(--ds-ink-dim); }

/* ==========================================================================
   Cas d'usage
   ========================================================================== */
.usecase-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 36px;
}
.usecase-row { padding: 18px 0; border-bottom: 1px solid rgba(244, 240, 250, 0.08); }
.usecase-row h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.usecase-row h3::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ds-alerte);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.usecase-row p { margin: 0; font-size: 0.9rem; }

/* ==========================================================================
   Presse
   ========================================================================== */
.press-intro {
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}
.press-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.press-editorial {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 36px;
}
.press-images { position: relative; min-height: 300px; }
.press-images .img-main {
  width: 76%;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 34px 66px -24px rgba(0, 0, 0, 0.65);
}
.press-images .img-secondary {
  width: 50%;
  border-radius: 16px;
  position: absolute;
  right: 0;
  bottom: -26px;
  z-index: 1;
  border: 4px solid var(--ds-void);
  box-shadow: 0 24px 46px -18px rgba(0, 0, 0, 0.6);
}
.press-text h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.link-external {
  display: inline-block;
  color: var(--ds-trigger);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.link-external:hover { color: var(--ds-securite-light); }

.radio-block {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(244, 240, 250, 0.10);
}
.radio-block h3 { display: flex; align-items: center; margin-bottom: 6px; }
.radio-list { display: flex; flex-direction: column; margin-top: 18px; }
.radio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 240, 250, 0.07);
}
.radio-row:last-child { border-bottom: none; }
.radio-row .icon { color: var(--ds-trigger); width: 22px; height: 22px; flex-shrink: 0; }
.radio-row strong { min-width: 150px; color: var(--ds-ink); font-size: 0.92rem; }
.radio-row audio { flex: 1; min-width: 220px; height: 36px; }

/* ==========================================================================
   Derrière SOS Pocket
   ========================================================================== */
.derriere-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
.techforyou-panel {
  align-self: start;
  margin-top: 48px;
  padding: 0 0 26px;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, var(--ds-card-top), var(--ds-card-bottom));
  border: 1px solid rgba(244, 240, 250, 0.10);
  box-shadow: 0 26px 54px -24px rgba(0, 0, 0, 0.6);
}
.techforyou-panel img { width: 100%; height: auto; display: block; margin: 0 0 22px; }
.techforyou-panel p { margin: 0 22px 12px; font-size: 0.92rem; }

/* Portrait du créateur — carte verticale (coins arrondis), taille valorisante permettant de
   bien reconnaître le visage ; remplace l'ancien médaillon rond, trop petit et peu flatteur. */
.founder-card {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin: 0 0 28px;
}
.founder-portrait {
  width: 180px;
  aspect-ratio: 1024 / 1536;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  border: 1px solid rgba(244, 240, 250, 0.16);
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}
.founder-name { margin: 0; font-weight: 700; font-size: 1rem; color: var(--ds-ink); }
.founder-role { margin: 0; font-size: 0.85rem; color: var(--ds-ink-faint); }

/* ==========================================================================
   Tests & partenariats
   ========================================================================== */
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.path-card {
  --accent: var(--ds-veille);
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--ds-card-top), var(--ds-card-bottom));
  border: 1px solid rgba(244, 240, 250, 0.12);
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.6);
}
.path-card--partner { --accent: var(--ds-contacts); }
.path-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0 22px; }
.path-card li { font-size: 0.9rem; color: var(--ds-ink-dim); padding-left: 16px; position: relative; }
.path-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.path-fineprint { font-size: 0.78rem; color: var(--ds-ink-faint); margin-top: 12px; margin-bottom: 0; }

/* ==========================================================================
   CTA finale / footer
   ========================================================================== */
.cta-section { text-align: center; }
.cta-section .btn { margin-top: 8px; }

.site-footer {
  padding: 36px 0 48px;
  text-align: center;
  color: var(--ds-ink-faint);
  font-size: 0.85rem;
  border-top: 1px solid rgba(244, 240, 250, 0.08);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-logo { opacity: 0.6; margin-bottom: 6px; }
.footer-note { margin-top: 4px; }
.footer-note a { color: var(--ds-ink-dim); text-decoration: underline; }

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  margin-top: 40px;
}
.contact-intro .lead { margin-bottom: 20px; }
.contact-motifs { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.contact-motif {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ds-ink-dim);
}
.contact-motif .icon { width: 18px; height: 18px; color: var(--ds-trigger); flex-shrink: 0; }

.contact-form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--ds-card-top), var(--ds-card-bottom));
  border: 1px solid rgba(244, 240, 250, 0.12);
  box-shadow: 0 34px 76px -30px rgba(0, 0, 0, 0.65);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ds-ink);
  margin-bottom: 8px;
}
.form-row .optional { color: var(--ds-ink-faint); font-weight: 400; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 12, 24, 0.45);
  border: 1px solid rgba(244, 240, 250, 0.16);
  color: var(--ds-ink);
  font-family: inherit;
  font-size: 0.94rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--ds-trigger);
  outline-offset: 1px;
  border-color: transparent;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ds-ink-dim);
  margin-bottom: 24px;
}
.form-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-check a { color: var(--ds-trigger); text-decoration: underline; }
.form-error {
  display: block;
  font-size: 0.78rem;
  color: var(--ds-audio-historique);
  margin-top: 6px;
  min-height: 1em;
}
.form-submit { display: flex; align-items: center; gap: 10px; border: none; cursor: pointer; font-family: inherit; }
.form-note { margin-top: 14px; font-size: 0.78rem; color: var(--ds-ink-faint); }

.form-confirm {
  padding: 28px;
  border-radius: 18px;
  background: rgba(43, 205, 184, 0.08);
  border: 1px solid rgba(43, 205, 184, 0.28);
  text-align: center;
}
.form-confirm h3 { margin-bottom: 0.5em; }
.form-confirm p { margin: 0; font-size: 0.92rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-brand { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .hero-slogan { flex: 0 0 auto; }
  .hero h1, .hero-intro { max-width: 560px; }
  .hero-nexa { order: -1; margin-bottom: 8px; }
  .hero-actions { justify-content: center; }

  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid .split-visual { order: 2; }
  .visual-stack {
    min-height: 500px;
    padding: 16px 0;
  }
  .visual-stack .phone-mock {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    transform: translate(calc(-50% - 14px), -50%) rotate(-6deg);
    width: clamp(220px, 60vw, 250px);
    z-index: 1;
  }
  .visual-stack .fact-stack {
    position: relative;
    z-index: 2;
    max-width: 195px;
    gap: 12px;
    transform: translateX(44px);
  }
  .visual-stack .fact-stack .fact {
    --tile-accent: var(--ds-trigger);
    padding: 9px 11px;
    gap: 9px;
    border-color: color-mix(in srgb, var(--tile-accent) 38%, rgba(244, 240, 250, 0.10));
    box-shadow:
      0 12px 26px -16px rgba(0, 0, 0, 0.55),
      0 0 16px -8px color-mix(in srgb, var(--tile-accent) 45%, transparent);
  }
  .visual-stack .fact-stack .fact:nth-child(2) { --tile-accent: var(--ds-securite); }
  .visual-stack .fact-stack .fact:nth-child(3) { --tile-accent: var(--ds-contacts); }
  .visual-stack .fact-stack .fact:nth-child(4) { --tile-accent: var(--ds-general); }
  .visual-stack .fact-stack .fact .icon { width: 18px; height: 18px; }
  .visual-stack .fact-stack .fact strong { font-size: 0.8rem; }
  .visual-stack .fact-stack .fact span { font-size: 0.72rem; }

  @media (min-width: 420px) {
    .visual-stack .phone-mock { transform: translate(calc(-50% - 26px), -50%) rotate(-6deg); }
    .visual-stack .fact-stack { transform: translateX(52px); }
  }
  @media (min-width: 600px) {
    .visual-stack .phone-mock { transform: translate(calc(-50% - 36px), -50%) rotate(-6deg); }
    .visual-stack .fact-stack { transform: translateX(60px); }
  }

  .trigger-scene { grid-template-columns: 1fr; }
  .trigger-visual .phone-mock { transform: none; }

  .action-demo { grid-template-columns: 1fr; gap: 36px; }
  .action-video-frame { max-width: 260px; }
  .action-sms-frame { max-width: 220px; }

  .parcours-phone { display: none; }
  .cancel-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(244, 240, 250, 0.04);
    border: 1px solid rgba(244, 240, 250, 0.10);
  }
  .cancel-preview .phone-mock {
    width: 64px;
    aspect-ratio: 720 / 1544;
    border-radius: 12px;
    flex-shrink: 0;
    transform: rotate(-4deg);
  }
  .cancel-preview-text { margin: 0; font-size: 0.85rem; color: var(--ds-ink-dim); }

  .protection-scene { grid-template-columns: 1fr; }
  .protection-scene .protection-visual { order: -1; }

  .confid-grid { grid-template-columns: 1fr; }
  .usecase-list { grid-template-columns: 1fr; }
  .press-editorial { grid-template-columns: 1fr; }
  .press-images { max-width: 360px; margin: 0 auto; }
  .derriere-grid { grid-template-columns: 1fr; }
  .techforyou-panel { margin-top: 0; }
  .founder-portrait { width: 150px; }
  .paths-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .timeline { flex-direction: column; gap: 26px; align-items: flex-start; }
  .timeline::before { top: 8%; bottom: 8%; left: 13px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--ds-veille), var(--ds-trigger), var(--ds-alerte), var(--ds-audio-historique)); }
  .timeline-step { text-align: left; padding-left: 36px; position: relative; }
  .step-num { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .timeline-step .icon { margin: 0 0 8px; }
}

@media (max-width: 640px) {
  .header-inner { justify-content: space-between; text-align: left; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 15, 28, 0.98);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(244, 240, 250, 0.12);
    border-radius: 18px;
    padding: 10px 18px 18px;
    box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.65);
    z-index: 60;
  }
  .main-nav.is-open { display: flex; }
  .main-nav .nav-link {
    display: block;
    padding: 13px 6px;
    border-bottom: 1px solid rgba(244, 240, 250, 0.08);
    font-size: 0.95rem;
  }
  .main-nav .nav-link:last-of-type { border-bottom: none; }
  .main-nav .nav-cta { margin-top: 14px; text-align: center; }
  .scene { padding: 56px 0; }
  .hero { padding-top: 40px; }
  .hero-ribbon { gap: 14px 20px; }
  .waveform-wrap { margin-top: 0; }
  .radio-row strong { min-width: 100%; }
  .founder-portrait { width: 120px; }
  .press-images { min-height: 0; }

  .nexa-stage-glow { inset: -20px 0 -8px; }

  .seam-glow {
    position: absolute;
    top: -1px;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 240, 250, 0.4), transparent);
    pointer-events: none;
    z-index: 3;
  }
}

/* ==========================================================================
   Accessibilité mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  body.js-progressive .nexa-speech .word {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Contenu juridique (politique de confidentialité, mentions légales…)
   ========================================================================== */
.legal-content { padding-top: clamp(24px, 4vw, 40px); padding-bottom: 24px; }
.legal-content h1 { margin-bottom: 0.9em; }
.legal-content h2 {
  font-size: 1.3rem;
  max-width: none;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.legal-content h1 + h2,
.legal-content > h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 1rem;
  color: var(--ds-securite-light);
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}
.legal-content p { max-width: 68ch; }
.legal-content ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  max-width: 68ch;
  color: var(--ds-ink-dim);
}
.legal-content li { margin-bottom: 0.5em; }
.legal-content li::marker { color: var(--ds-securite); }
.legal-content a { color: var(--ds-trigger); text-decoration: underline; }
.legal-content a:hover { color: var(--ds-securite-light); }



/* Honeypot anti-spam du formulaire de contact (ajout thème WordPress, invisible et non intrusif) */
.sospocket-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
