/* =================================================================
   Cédric Hufnagel — Psychologue
   Design system & styles
   ================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Couleurs */
  --bg: #fbfaf8;
  --bg-2: #f5f3ef;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --ink: #15161a;
  --ink-2: #3f4147;
  --muted: #6b6d75;
  --muted-2: #90929a;
  --line: #ece9e3;
  --line-2: #e0ddd6;
  --accent: #1f5f8b;
  --accent-2: #2b7a9b;
  --accent-ink: #0f3b56;
  --accent-soft: rgba(31, 95, 139, 0.08);
  --accent-glow: rgba(31, 95, 139, 0.18);
  --on-dark: #f4f3f0;
  --on-dark-muted: rgba(244, 243, 240, 0.66);
  --on-dark-line: rgba(244, 243, 240, 0.14);

  /* Divers */
  --grid-line: rgba(15, 16, 26, 0.045);
  --scene-frame: rgba(255, 255, 255, 0.28);
  --ring: conic-gradient(from 210deg,
    rgba(43, 122, 155, 0.55), rgba(214, 184, 140, 0.5),
    rgba(43, 122, 155, 0.2), rgba(43, 122, 155, 0.55));
  color-scheme: light;

  /* Typographie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 42px;
  --r-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(15, 16, 26, 0.05);
  --shadow-md: 0 10px 30px -14px rgba(15, 16, 26, 0.16);
  --shadow-lg: 0 36px 80px -30px rgba(15, 16, 26, 0.28);
  --shadow-accent: 0 16px 32px -14px rgba(31, 95, 139, 0.45);

  /* Layout */
  --container: 1140px;
  --nav-h: 70px;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 1b. THÈME SOMBRE ----------
   Appliqué quand l'utilisateur force "dark", et en mode système
   (data-theme="system") quand l'OS est en sombre. Le bloc est
   volontairement dupliqué : garder les deux listes synchronisées. */
:root[data-theme="dark"] {
  --bg: #131419;
  --bg-2: #181a20;
  --surface: #1c1e26;
  --surface-2: #23262f;
  --ink: #f2f1ee;
  --ink-2: #c8c9ce;
  --muted: #9a9ca4;
  --muted-2: #7b7d85;
  --line: #2a2c34;
  --line-2: #363944;
  --accent: #4a9ecb;
  --accent-2: #63b1d9;
  --accent-soft: rgba(74, 158, 203, 0.14);
  --accent-glow: rgba(74, 158, 203, 0.30);
  --grid-line: rgba(255, 255, 255, 0.05);
  --scene-frame: rgba(255, 255, 255, 0.10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 36px 80px -30px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #131419;
    --bg-2: #181a20;
    --surface: #1c1e26;
    --surface-2: #23262f;
    --ink: #f2f1ee;
    --ink-2: #c8c9ce;
    --muted: #9a9ca4;
    --muted-2: #7b7d85;
    --line: #2a2c34;
    --line-2: #363944;
    --accent: #4a9ecb;
    --accent-2: #63b1d9;
    --accent-soft: rgba(74, 158, 203, 0.14);
    --accent-glow: rgba(74, 158, 203, 0.30);
    --grid-line: rgba(255, 255, 255, 0.05);
    --scene-frame: rgba(255, 255, 255, 0.10);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 36px 80px -30px rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

p { margin: 0; }

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

::selection { background: var(--accent-glow); color: var(--ink); }

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-2); }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 4. EYEBROW & SECTION HEAD ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.eyebrow--on-dark { color: var(--accent-2); }

.section__head { max-width: 760px; margin-bottom: 3.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.section__title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.025em;
}
.section__lead {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}
.section__head--center .section__lead { margin-inline: auto; }
.section__lead--note {
  font-size: 0.95rem;
  color: var(--muted-2);
  font-style: italic;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85rem 1.3rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.25s var(--ease); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 10px 22px -12px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 18px 34px -14px var(--accent-glow);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost:active { transform: translateY(0); }

.btn--sm { padding: 0.6rem 0.95rem; font-size: 0.86rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- 6. NAVIGATION ----------
   Barre pleine largeur : transparente en haut, voile flouté + fine
   ligne de séparation au scroll (style Apple / Stripe). */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* la barre s'étend sous l'encoche : le voile couvre la safe area */
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(15, 16, 26, 0.03);
}
/* Repli si backdrop-filter indisponible : fond quasi opaque */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: color-mix(in srgb, var(--bg) 96%, transparent); }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
  transition: height 0.3s var(--ease);
}
.nav.is-scrolled .nav__inner { height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px -8px var(--accent-glow);
}

.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a.is-active:not(.nav__cta) { color: var(--accent); }

/* Soulignement actif qui glisse sous le lien de la section courante */
.nav__ind {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.25s var(--ease);
  pointer-events: none;
}
.nav__links a.nav__cta { margin-left: 0.5rem; color: #fff; }
.nav__links a.nav__cta:hover { color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 11px;
  transition: border-color 0.2s var(--ease);
}
.nav__toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--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); }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--line-2); transform: translateY(-1px); }
.theme-toggle .ic { display: none; }
:root[data-theme="system"] .theme-toggle .ic--system,
:root[data-theme="light"] .theme-toggle .ic--light,
:root[data-theme="dark"] .theme-toggle .ic--dark { display: block; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask: radial-gradient(ellipse 72% 60% at 50% 0%, #000 30%, transparent 76%);
          mask: radial-gradient(ellipse 72% 60% at 50% 0%, #000 30%, transparent 76%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero__glow--1 {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(43, 122, 155, 0.4), transparent 65%);
}
.hero__glow--2 {
  width: 460px; height: 460px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(214, 184, 140, 0.32), transparent 65%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__title {
  font-size: clamp(2.1rem, 4.8vw, 3.7rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0.4rem 0 1.25rem;
  text-wrap: balance;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}
.hero__trust svg { color: var(--accent); }

/* Scène — diaporama d'ambiance + chip d'identité */
.hero__media { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.scene { margin: 0; position: relative; }
.scene__slides {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #eef3f7, #f6eede);
  box-shadow: var(--shadow-lg);
}
.scene__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--scene-frame);
  pointer-events: none;
}
.scene__slides img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* base = état final du Ken Burns : au retrait de .is-active, pas de bond */
  transform: scale(1);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
}
/* Ken Burns : zoom/panoramique lent sur l'image affichée */
.scene__slides img.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
.scene__slides::after {
  z-index: 3;
}

/* Halo lumineux qui balaie la carte */
.scene__sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  mix-blend-mode: soft-light;
  transform: translateX(-120%);
  animation: sceneSweep 7s ease-in-out infinite;
}

/* Puces de progression */
.scene__dots {
  position: absolute;
  z-index: 4;
  left: 0; right: 0; bottom: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.scene__dots button {
  width: 6px; height: 6px;
  padding: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.scene__dots button.is-active { width: 20px; background: #fff; }

.scene__halo {
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(43, 122, 155, 0.22), transparent 62%);
  filter: blur(44px);
}

/* Chips flottantes en cascade */
.scene__chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  animation: chipFloat 6s ease-in-out infinite;
  animation-play-state: paused;
}
.scene__chip svg { color: var(--accent); }
.hero__media.is-visible .scene__chip { opacity: 1; animation-play-state: running; }
.scene__chip--a { top: 6%; right: -9%; transition-delay: 0.15s; animation-delay: 0s; }
.scene__chip--b { top: 40%; left: -13%; transition-delay: 0.3s; animation-delay: 1.2s; }
.scene__chip--c { bottom: 15%; right: -7%; transition-delay: 0.45s; animation-delay: 2.4s; }

/* Chip d'identité : duo d'avatars + pastille, chevauchant le bas de la scène */
.scene__id {
  position: absolute;
  z-index: 5;
  left: -7%;
  bottom: -16px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.9rem 0.32rem 0.32rem;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}
.scene__avatars { display: inline-flex; }
.scene__avatars .scene__avatar:nth-child(2) { margin-left: -13px; }
.scene__avatar {
  display: inline-flex;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 2px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);
  background: var(--ring);
}
.scene__avatar picture { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.scene__avatar img { width: 100%; height: 100%; object-fit: cover; }
.badge__text { font-size: 0.76rem; line-height: 1.25; color: var(--ink-2); white-space: nowrap; }
.badge__text strong { display: block; color: var(--ink); font-weight: 600; }

/* Point de l'eyebrow qui pulse (hero uniquement) */
.hero .eyebrow__dot { animation: heroPulse 2.6s ease-in-out infinite; }

@keyframes kenburns {
  from { transform: scale(1.12) translate(1.5%, -1.2%); }
  to   { transform: scale(1) translate(0, 0); }
}
@keyframes sceneSweep {
  0%, 12% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* ---------- 8. TRUST STRIP ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 2.25rem;
}
.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.trust__title { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 0.15rem; letter-spacing: -0.005em; }
.trust__item p { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* ---------- 9. ABOUT ---------- */
.about__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.6; }
.about__body { display: flex; flex-direction: column; gap: 2rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.value:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.value__title { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; letter-spacing: -0.005em; }
.value p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ---------- 9b. TEAM ---------- */
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.member {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.member:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.member__photo {
  width: 132px;
  height: 132px;
  padding: 3px;
  border-radius: var(--r-lg);
  background: var(--ring);
  box-shadow: var(--shadow-sm);
}
.member__photo picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r-lg) - 4px);
  overflow: hidden;
  background: linear-gradient(160deg, #eef3f7, #f6eede);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: 1.35rem; margin-bottom: 0.15rem; }
.member__role {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.member__bio { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.member__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.member__tags li {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.3rem 0.65rem;
  background: var(--accent-soft);
  border-radius: var(--r-pill);
}

/* ---------- 10. SERVICES ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.85rem 1.75rem 1.6rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(43,122,155,0.12), rgba(31,95,139,0.08));
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card__text { font-size: 0.96rem; color: var(--muted); line-height: 1.55; }
.card__list { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.5rem; }
.card__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  font-weight: 500;
}
.card__list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Panel enfance */
.panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.panel__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.panel__art {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(43, 122, 155, 0.5), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(214, 184, 140, 0.45), transparent 55%),
    linear-gradient(160deg, #163a52, #2b7a9b);
}
.panel__art::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
}
.panel__title { font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin: 0.6rem 0 1rem; }
.panel__text { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.65; }
.panel__list { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.25rem; }
.panel__list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-2); font-weight: 500; }
.panel__list svg { color: var(--accent); flex-shrink: 0; }

/* ---------- 11. TÉLÉCONSULTATION ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  padding: 1.85rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.feature__title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature__text { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

.quote-panel {
  margin-top: 1.5rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  position: relative;
}
.quote-panel__label {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.quote-panel__text { font-size: 1.05rem; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; max-width: 70ch; }

/* ---------- 12. PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative;
  padding: 1.85rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.6rem;
  border-radius: 7px;
  margin-bottom: 1.1rem;
}
.step__title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step__text { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* ---------- 13. TESTIMONIALS ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.85rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.testimonial__mark { color: var(--accent-soft); }
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.testimonial__author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial__author { font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.testimonial__meta { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial__role { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* ---------- 14. FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.005em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}
.faq__item[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.faq__answer { padding: 0 1.35rem 1.25rem; }
.faq__answer p { color: var(--muted); font-size: 0.96rem; line-height: 1.65; }

/* ---------- 15. CONTACT ---------- */
.contact {
  background: linear-gradient(180deg, #1a1c21, #111317);
  color: var(--on-dark);
}
.contact .section__title, .contact__title { color: var(--on-dark); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__lead { margin-top: 1.25rem; color: var(--on-dark-muted); font-size: 1.08rem; max-width: 46ch; }

.contact__methods { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 2.25rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
a.contact-method:hover { border-color: rgba(244, 243, 240, 0.32); background: rgba(255, 255, 255, 0.06); transform: translateX(4px); }
.contact-method__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(43, 122, 155, 0.22);
  color: var(--accent-2);
}
.contact-method__label { display: flex; flex-direction: column; font-size: 0.95rem; color: var(--on-dark-muted); line-height: 1.4; }
.contact-method__label strong { color: var(--on-dark); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem; }

.contact__form {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink-2);
}
.form__head { margin-bottom: 1.5rem; }
.form__heading { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); font-weight: 500; }
.form__sub { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }

/* Motif — chips radio */
.form__motifs { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.form__motifs legend { font-size: 0.85rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 0.6rem; }
.chips-radio { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.chip-radio span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chip-radio span:hover { border-color: var(--muted-2); }
.chip-radio input:checked + span {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent;
  box-shadow: 0 6px 16px -10px var(--accent-glow);
}
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.form__row .field { margin-bottom: 0; }

.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.field input, .field textarea {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.contact__form .btn { margin-top: 0.5rem; }
.form__note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.form__note svg { color: var(--accent); flex-shrink: 0; margin-top: 0.12rem; }
.form__status { margin-top: 0.75rem; font-size: 0.9rem; min-height: 1.2em; color: var(--muted); }
.form__status.is-success { color: #1f7a4d; font-weight: 600; }
.form__status.is-error { color: #c0392b; font-weight: 600; }

/* ---------- 16. FOOTER ---------- */
.footer { background: #0c0e12; color: var(--on-dark-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.brand--footer { color: var(--on-dark); }
.brand--footer .brand__mark { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.footer__tagline { margin-top: 1rem; font-size: 0.9rem; max-width: 38ch; line-height: 1.55; }
.footer__nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__nav a { font-size: 0.92rem; color: var(--on-dark-muted); transition: color 0.2s var(--ease); width: fit-content; }
.footer__nav a:hover { color: var(--on-dark); }
.footer__meta { text-align: right; }
.footer__contact { font-size: 0.92rem; color: var(--on-dark); margin-bottom: 0.5rem; }
.footer__legal { font-size: 0.82rem; line-height: 1.6; }
.footer__legal a { color: var(--on-dark-muted); transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--on-dark); }

/* ---------- 16b. LEGAL PAGE ---------- */
.legal__inner { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.legal__updated { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 2.75rem; }
.legal h2 { font-size: 1.4rem; margin: 2.5rem 0 0.85rem; }
.legal p { color: var(--ink-2); margin-bottom: 0.9rem; max-width: 72ch; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0.5rem 0 1rem; color: var(--ink-2); }
.legal ul li { margin-bottom: 0.4rem; }
.legal p a, .legal li a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal p a:hover, .legal li a:hover { color: var(--accent-ink); }
.legal__back { margin-top: 3rem; }
.legal__back a { text-decoration: none; }

/* ---------- 17. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card.reveal:nth-child(2),
.features .feature.reveal:nth-child(2),
.steps .step.reveal:nth-child(2),
.testimonials__grid .testimonial.reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .card.reveal:nth-child(3),
.features .feature.reveal:nth-child(3),
.steps .step.reveal:nth-child(3),
.testimonials__grid .testimonial.reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .step.reveal:nth-child(4) { transition-delay: 0.24s; }
.values .value.reveal:nth-child(2) { transition-delay: 0.08s; }
.values .value.reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 300px; margin-inline: auto; margin-top: 1.25rem; }
  .scene__chip { display: none; }
  .about__inner, .panel, .faq__inner, .contact__inner { grid-template-columns: 1fr; }
  .panel__media { aspect-ratio: 16 / 9; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__meta { text-align: left; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__ind { display: none; }
  .nav__links a { padding: 0.85rem 1rem; border-radius: 10px; font-size: 1rem; }
  .nav__links a:hover { background: var(--surface-2); }
  .nav__cta { margin: 0.5rem 0 0; text-align: center; }
  .nav__toggle { display: flex; }

  .cards, .features, .steps, .testimonials__grid, .values { grid-template-columns: 1fr 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .trust__inner { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 2rem; }
  .cards, .features, .steps, .testimonials__grid, .values { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .member__photo { width: 104px; height: 104px; margin-inline: auto; }
  .member__tags { justify-content: center; }
  .hero__trust { gap: 0.9rem 1.2rem; }
  .hero__media { max-width: 260px; }
  .scene__slides { aspect-ratio: 5 / 4; }
  .scene__id { position: static; margin: 0.75rem auto 0; width: fit-content; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { flex-direction: row; flex-wrap: wrap; gap: 1rem 1.5rem; }
  .footer__meta { text-align: left; }
  .hero__actions .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__row .field { margin-bottom: 1.1rem; }
}

/* ---------- 19. ACCESSIBILITY: REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
