:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --fg: #0f1b2d;
  --muted: #5a6577;
  --line: #dfe5ee;
  --brand: #0b4f8a;
  --brand-soft: #e6f0fa;
  --alert: #c8102e;
  --alert-soft: #fdecee;
  --ok: #137a3e;
  --ok-soft: #e7f5ec;
  --on-brand: #ffffff;
  --alert-strong: #c8102e;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(15, 27, 45, .45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #151b24;
    --fg: #e8edf4;
    --muted: #9aa6b8;
    --line: #273142;
    --brand: #6fb1ef;
    --brand-soft: #14263a;
    --alert: #ff6b7d;
    --alert-soft: #2a1519;
    --ok: #5fd08f;
    --ok-soft: #12261a;
    --on-brand: #0d1117;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); margin: 0; }

/* Bandeau d'alerte */
.alert-bar {
  background: var(--alert-strong);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--fg);
  text-decoration: none;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
nav { display: flex; gap: 24px; font-size: .92rem; font-weight: 500; }
nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .25s;
}
nav a:hover, nav a.active { color: var(--fg); }
nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  nav.open { opacity: 1; transform: none; pointer-events: auto; }
  nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav a:last-child { border-bottom: 0; }
  nav a::after { display: none; }
}

/* Hero */
.hero { position: relative; padding: 64px 0 80px; overflow: hidden; }
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--alert-soft);
  color: var(--alert);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--alert) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 20px;
}
h1 em { font-style: normal; color: var(--alert); }
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 34em;
}

/* Bulles de shampoing */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), color-mix(in srgb, var(--brand) 18%, transparent) 60%, transparent 70%);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  animation: rise linear forwards;
}
@keyframes rise {
  to { transform: translate(var(--drift), -110vh); opacity: 0; }
}

/* Boutons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--bg); }
.btn-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.btn-ko { background: var(--alert-soft); color: var(--alert); border-color: color-mix(in srgb, var(--alert) 30%, transparent); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* Portrait */
.portrait { margin: 0; position: relative; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stamp {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stamp .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--alert); }
figcaption { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker {
  color: var(--brand);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); margin: 0; }

/* Apparition au défilement */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--delay, 0s);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat, .step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat p { margin: 0; color: var(--muted); }

/* Bons gestes */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .dos { grid-template-columns: 1fr; } }
.col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.col.ok { background: var(--ok-soft); }
.col.ko { background: var(--alert-soft); }
.col h3 { margin: 0 0 16px; font-size: 1.1rem; }
.col.ok h3 { color: var(--ok); }
.col.ko h3 { color: var(--alert); }
.col ul { margin: 0; padding: 0; list-style: none; }
.col li { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.col li:first-child { border-top: 0; }

/* Quiz */
.quiz {
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .3);
}
.quiz-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 24px; }
.quiz-bar { height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.quiz-card { text-align: center; }
.quiz-emoji { font-size: 3.5rem; line-height: 1; margin-bottom: 8px; }
.quiz-item { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.quiz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.quiz-feedback { min-height: 1.6em; margin-top: 16px; font-weight: 600; }
.quiz-feedback.good { color: var(--ok); }
.quiz-feedback.bad { color: var(--alert); }
.quiz-card.shake { animation: shake .4s; }
@keyframes shake {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.quiz-result { text-align: center; }
.quiz-score { font-size: 3rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.quiz-verdict { color: var(--muted); margin: 8px 0 20px; }

/* Vidéo */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }
.video-stage {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  justify-self: center;
}
.video-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}
.video-track.second { transform: translateX(-100%); }
.video {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
}
.more-btn { margin-top: 28px; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s, opacity .3s; opacity: .85; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.video:hover .play { transform: scale(1.08); }
blockquote {
  margin: 24px 0 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--brand);
  font-size: 1.2rem;
  font-weight: 500;
}

/* Urgence */
.urgent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 720px) { .urgent { grid-template-columns: 1fr; } }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.phone {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--alert-strong);
  color: #fff;
}
.phone strong { font-size: 2rem; line-height: 1; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .85rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer p { margin: 0; }

/* Retour en haut */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 1.2rem;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 15;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bubbles { display: none; }
}

/* Citation David Guiraud */
.quote { margin: 20px 0 0; }
.quote blockquote {
  margin: 0;
  border-left-color: var(--alert);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
}
.quote figcaption { margin: 8px 0 0 23px; font-weight: 600; }

/* « Matthieu » avec un t barré */
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--alert);
  text-decoration-thickness: .12em;
}
h1 .strike { color: inherit; }
