/* ─── Areu — styles ─────────────────────────────────────────── */

:root {
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

/* Directions visuelles */
[data-direction="sauge"] {
  --bg: #F3F0E7;
  --surface: #FFFDF8;
  --ink: #3B4035;
  --muted: #71756A;
  --primary: #7E9678;
  --primary-deep: #5C7657;
  --primary-soft: #DCE4D8;
  --accent: #CE8660;
  --accent-deep: #B06C49;
  --accent-soft: #F0D9CB;
}
[data-direction="terracotta"] {
  --bg: #F9F0E7;
  --surface: #FFFCF7;
  --ink: #45392F;
  --muted: #7E7065;
  --primary: #C9714C;
  --primary-deep: #A8573A;
  --primary-soft: #F2DCCF;
  --accent: #7E9678;
  --accent-deep: #5C7657;
  --accent-soft: #DCE4D8;
}
[data-direction="corail"] {
  --bg: #FBF4EC;
  --surface: #FFFEFA;
  --ink: #443E37;
  --muted: #7C746B;
  --primary: #E98563;
  --primary-deep: #C9664A;
  --primary-soft: #FADFD3;
  --accent: #92A98B;
  --accent-deep: #6E8867;
  --accent-soft: #E0E7DB;
}

/* Couleurs des 5 catégories (communes) */
#areu-root {
  --cat-change: #E5B79E;
  --cat-repas: #D08A65;
  --cat-sieste: #A8B4C6;
  --cat-sorties: #8FA98A;
  --cat-activites: #B9A8D4;
  --cat-humeur: #E2BF74;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

#areu-root {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip; /* clip (et non hidden) pour ne pas casser le header sticky */
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

#areu-root h1, #areu-root h2, #areu-root h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

#areu-root p { margin: 0; text-wrap: pretty; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ─── Logo ─── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-bubble {
  position: relative;
  width: 42px;
  height: 36px;
  background: var(--primary);
  border-radius: 18px 18px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  flex-shrink: 0;
}
.logo-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 9px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 0 12px 2px 12px;
  transform: rotate(8deg);
}
.logo-bubble .bar {
  width: 4px;
  border-radius: 99px;
  background: var(--bg);
}
.logo-bubble .bar:nth-child(1) { height: 9px; }
.logo-bubble .bar:nth-child(2) { height: 17px; }
.logo-bubble .bar:nth-child(3) { height: 12px; }
.logo-bubble .bar:nth-child(4) { height: 6px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding-top: 2px;
}
.logo--big .logo-bubble { width: 56px; height: 48px; border-radius: 24px; }
.logo--big .logo-bubble .bar { width: 5px; }
.logo--big .logo-bubble .bar:nth-child(1) { height: 12px; }
.logo--big .logo-bubble .bar:nth-child(2) { height: 22px; }
.logo--big .logo-bubble .bar:nth-child(3) { height: 16px; }
.logo--big .logo-bubble .bar:nth-child(4) { height: 8px; }
.logo--big .logo-word { font-size: 38px; }

/* ─── Boutons ─── */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #FFFDF8; }
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 8px 24px color-mix(in oklab, var(--primary) 35%, transparent); }
.btn-accent { background: var(--accent); color: #FFFDF8; }
.btn-accent:hover { background: var(--accent-deep); box-shadow: 0 8px 24px color-mix(in oklab, var(--accent) 35%, transparent); }
.btn-small { font-size: 16px; padding: 10px 20px; min-height: 42px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink) 18%, transparent);
}
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }

/* ─── Blobs décoratifs ─── */
.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
[data-blobs="off"] .blob { display: none; }
.blob-1 {
  width: 480px; height: 420px;
  background: var(--primary-soft);
  border-radius: 58% 42% 64% 36% / 50% 58% 42% 50%;
  opacity: 0.7;
}
.blob-2 {
  width: 340px; height: 320px;
  background: var(--accent-soft);
  border-radius: 42% 58% 38% 62% / 56% 44% 56% 44%;
  opacity: 0.75;
}
.blob-3 {
  width: 200px; height: 190px;
  background: var(--accent-soft);
  border-radius: 62% 38% 52% 48% / 46% 60% 40% 54%;
  opacity: 0.55;
}
.dot-grid { opacity: 0.5; }

/* ─── Sections ─── */
section { position: relative; }
.section-pad { padding: 76px 0; }
.section-tint { background: color-mix(in oklab, var(--primary) 7%, var(--bg)); }

.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 18px; max-width: 560px; }

/* ─── Hero ─── */
.hero { overflow: hidden; }
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: 64px;
  align-items: center;
}
.hero #hook-sentence {
    font-size: 32px;
    font-family: var(--font-display);
    font-weight: 700;
}
.hero #hook-sentence span {
    background-color: var(--primary);
    color: #FFF;
    padding: 0 4px;
    border-radius: 4px;
}
.hero h1 {
  font-size: clamp(38px, 8.5vw, 62px);
  margin: 26px 0 18px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 420px;
}
.hero-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}
.hero-phone { display: flex; justify-content: center; }

@media (min-width: 880px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
  .hero-ctas { flex-direction: row; max-width: none; }
  .hero-ctas .btn { flex: 0 0 auto; }
}

/* ─── Téléphone ─── */
.phone-scaler-outer {
  --pscale: 0.62;
  width: calc(402px * var(--pscale));
  height: calc(874px * var(--pscale));
  position: relative;
  z-index: 1;
}
.phone-scaler-inner {
  transform: scale(var(--pscale));
  transform-origin: top left;
  width: 402px;
  height: 874px;
}
@media (min-width: 880px) { .phone-scaler-outer { --pscale: 0.72; } }

/* ─── Problème ─── */
.problem-cards {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 760px) { .problem-cards { grid-template-columns: repeat(3, 1fr); } }
.problem-card {
  background: var(--surface);
  border-radius: 26px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-card .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--accent-deep);
}
.problem-card p { color: var(--muted); font-size: 16px; }

/* ─── Comment ça marche ─── */
.steps {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface);
  border-radius: 30px;
  padding: 28px 26px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFDF8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 22px; }
.step p { color: var(--muted); font-size: 16px; flex: 1; }
.step-visual {
  margin-top: 6px;
  background: color-mix(in oklab, var(--primary) 7%, var(--surface));
  border-radius: 20px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

/* visuel 1 : onde vocale */
.wave { display: flex; align-items: center; gap: 6px; }
.wave span {
  width: 8px;
  border-radius: 99px;
  background: var(--primary);
  animation: wavePulse 1.4s ease-in-out infinite;
}
.wave span:nth-child(1) { height: 18px; animation-delay: 0s; }
.wave span:nth-child(2) { height: 38px; animation-delay: 0.15s; }
.wave span:nth-child(3) { height: 56px; animation-delay: 0.3s; }
.wave span:nth-child(4) { height: 30px; animation-delay: 0.45s; }
.wave span:nth-child(5) { height: 46px; animation-delay: 0.6s; }
.wave span:nth-child(6) { height: 22px; animation-delay: 0.75s; }
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.7); }
  50% { transform: scaleY(1.1); }
}
@media (prefers-reduced-motion: reduce) { .wave span { animation: none; } }

/* visuel 2 : chips catégories */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cat-chip i {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

/* visuel 3 : bulles de réception */
.recv { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 230px; }
.recv-bubble {
  background: var(--surface);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: 0 2px 8px color-mix(in oklab, var(--ink) 8%, transparent);
}
.recv-bubble strong { font-family: var(--font-display); }
.recv-channels { display: flex; gap: 6px; }
.recv-channels span {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, var(--surface));
  color: var(--accent-deep);
}

/* ─── Fonctionnalités ─── */
.features-grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px color-mix(in oklab, var(--ink) 9%, transparent);
}
.feature-card h3 { font-size: 20px; }
.feature-card p { color: var(--muted); font-size: 15.5px; }

/* marques abstraites */
.mark {
  width: 52px;
  height: 52px;
  position: relative;
  flex-shrink: 0;
}
.mark .m {
  position: absolute;
  border-radius: 999px;
}

/* ─── Questionnaire ─── */
.quiz-card {
  background: var(--surface);
  border-radius: 32px;
  padding: 30px 22px 26px;
  max-width: 640px;
  margin: 44px auto 0;
  box-shadow: 0 18px 48px color-mix(in oklab, var(--ink) 8%, transparent);
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) { .quiz-card { padding: 38px 40px 32px; } }

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.quiz-progress .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.quiz-bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  overflow: hidden;
}
.quiz-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--primary);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 4.5vw, 26px);
  line-height: 1.2;
  margin-bottom: 6px;
}
.quiz-hint { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* intro contextuelle (« Le principe d'Areu… ») */
.quiz-intro {
  background: color-mix(in oklab, var(--primary) 9%, var(--surface));
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
}

/* champ libre */
.quiz-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.5;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid color-mix(in oklab, var(--ink) 14%, transparent);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 120px;
}
.quiz-textarea:focus { border-color: var(--primary); }

/* échelle de satisfaction 1–5 */
.rating-block { display: flex; flex-direction: column; gap: 12px; }
.rating-row { display: flex; gap: 10px; }
.rating-btn {
  flex: 1;
  min-height: 60px;
  border-radius: 16px;
  border: 2px solid color-mix(in oklab, var(--ink) 14%, transparent);
  background: color-mix(in oklab, var(--ink) 3.5%, var(--surface));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.rating-btn:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.rating-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFDF8;
  transform: translateY(-2px);
}
.rating-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

/* note de maximum atteint */
.max-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 600;
}
.max-note.reached { color: var(--accent-deep); }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 3.5%, var(--surface));
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 15px 18px;
  min-height: 54px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { background: color-mix(in oklab, var(--primary) 8%, var(--surface)); }
.choice .tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--ink) 22%, transparent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.choice .tick::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease;
}
.choice.checkbox .tick { border-radius: 8px; }
.choice.checkbox .tick::after { border-radius: 3px; }
.choice.selected {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 11%, var(--surface));
}
.choice.selected .tick { border-color: var(--primary); }
.choice.selected .tick::after { background: var(--primary); }
.choice.disabled { opacity: 0.45; cursor: default; }

.other-input, .email-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16.5px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid color-mix(in oklab, var(--ink) 14%, transparent);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  margin-top: 10px;
}
.other-input:focus, .email-input:focus { border-color: var(--primary); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.quiz-nav .spacer { flex: 1; }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

.quiz-success { text-align: center; padding: 24px 0 12px; }
.quiz-success h3 { text-wrap: balance; }
.quiz-success .success-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-success h3 { font-size: 28px; margin-bottom: 12px; }
.quiz-success p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 8px;
  text-wrap: balance;
  text-align: center;
}
/* Spécificité renforcée pour battre #areu-root p { text-wrap: pretty } */
#areu-root .quiz-success p {
  text-align: center;
  text-wrap: balance;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
#areu-root .quiz-success .rgpd-note {
  text-align: center;
  max-width: 360px;
  margin: 16px auto 0;
}

.rgpd-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ─── Mockup app (écran) ─── */
.app-screen {
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  padding: 64px 18px 30px;
  gap: 12px;
  overflow: hidden;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 2px;
}
.app-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.app-greeting {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  padding: 0 4px;
}
.app-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 13px 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.app-card .cat-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-card .cat-dot i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
}
.app-card .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.app-card .t time { color: var(--muted); font-weight: 600; font-size: 12.5px; font-family: var(--font-body); }
.app-card .d { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.app-card .body { flex: 1; min-width: 0; }
.app-photo {
  margin-top: 8px;
  height: 74px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in oklab, var(--primary) 14%, var(--surface)),
    color-mix(in oklab, var(--primary) 14%, var(--surface)) 8px,
    color-mix(in oklab, var(--primary) 7%, var(--surface)) 8px,
    color-mix(in oklab, var(--primary) 7%, var(--surface)) 16px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 11px;
  color: var(--muted);
}
.app-banner {
  background: color-mix(in oklab, var(--accent) 16%, var(--surface));
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-deep);
  text-align: center;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--bg) 92%, transparent);
  padding: 56px 0 40px;
  margin-top: 76px;
}
.site-footer .logo { color: var(--bg); }
.site-footer .logo-bubble { background: var(--bg); }
.site-footer .logo-bubble::after { background: var(--bg); }
.site-footer .logo-bubble .bar { background: var(--ink); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.site-footer p { font-size: 15px; opacity: 0.85; max-width: 460px; }
.site-footer a { color: inherit; font-weight: 700; }
.footer-fine {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  font-size: 13px;
  opacity: 0.65;
}

/* ─── Apparitions douces ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ─── Duo de téléphones ─── */
.phone-duo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}
.phone-duo .phone-scaler-outer { --pscale: 0.46; }
@media (min-width: 420px) { .phone-duo .phone-scaler-outer { --pscale: 0.5; } }
@media (min-width: 880px) { .phone-duo .phone-scaler-outer { --pscale: 0.56; } }
@media (max-width: 1053px) {
    .hero .hero-sub {
        margin-top: 8px !important;
        line-height: 1.2;
    }

    .hero #hook-sentence {
        font-size: 20px;
    }
}

.duo { position: relative; }
.duo-a { z-index: 2; transform: rotate(-5deg); margin-top: 42px; }
.duo-b { transform: rotate(4deg); margin-left: -26px; }
@media (min-width: 880px) { .duo-b { margin-left: -38px; } }

.duo-tag {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 6px 18px color-mix(in oklab, var(--ink) 25%, transparent);
}
.duo-b .duo-tag { background: var(--accent); color: #FFFDF8; }

/* ─── Pictos catégories ─── */
.cat-dot svg { display: block; }

/* ─── Écran de dictée (côté assistante maternelle) ─── */
.dict-screen {
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  padding: 64px 18px 0;
  gap: 14px;
  overflow: hidden;
}
.dict-child {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
}
.dict-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-deep);
}
.dict-transcript {
  background: var(--surface);
  border-radius: 22px 22px 22px 8px;
  padding: 15px 17px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: 0 2px 10px color-mix(in oklab, var(--ink) 6%, transparent);
}
.dict-transcript .caret {
  display: inline-block;
  width: 2.5px;
  height: 1em;
  border-radius: 2px;
  background: var(--primary);
  vertical-align: -2px;
  margin-left: 3px;
}
.dict-sorted-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 4px 0;
}
.dict-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dict-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
.dict-chip .ok {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dict-mic-zone {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 56px;
}
.dict-listen {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}
.dict-mic {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px color-mix(in oklab, var(--accent) 45%, transparent);
}
.dict-mic::before,
.dict-mic::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}
.dict-wave { display: flex; align-items: center; gap: 6px; height: 48px; }
.dict-wave span {
  width: 6px;
  border-radius: 99px;
  background: var(--primary);
}
.dict-wave span:nth-child(1) { height: 16px; }
.dict-wave span:nth-child(2) { height: 34px; }
.dict-wave span:nth-child(3) { height: 48px; }
.dict-wave span:nth-child(4) { height: 24px; }
.dict-wave span:nth-child(5) { height: 40px; }
.dict-wave span:nth-child(6) { height: 18px; }

/* ─── Section gains v3 ─── */
.gains-v3 {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.gains-v3-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  .gains-v3-grid { grid-template-columns: 1fr 1fr; }
}

.gains-v3-panel {
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 2px 8px  color-mix(in oklab, var(--ink)  5%, transparent),
    0 10px 32px color-mix(in oklab, var(--ink) 6%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gains-v3-panel:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px  color-mix(in oklab, var(--ink)  6%, transparent),
    0 18px 44px color-mix(in oklab, var(--ink) 10%, transparent);
}
.gains-v3-assmat { background: color-mix(in oklab, var(--primary) 9%, var(--surface)); }
.gains-v3-parents { background: color-mix(in oklab, var(--accent)  9%, var(--surface)); }

.gains-v3-illus {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 95px;
  padding: 20px 20px 0;
}
.gains-v3-illus > svg {
  max-height: 85px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}
.gains-v3-illus-assmat {
  background: radial-gradient(
    ellipse at 50% 90%,
    color-mix(in oklab, var(--primary) 28%, var(--surface)) 0%,
    color-mix(in oklab, var(--primary) 14%, var(--surface)) 100%
  );
}
.gains-v3-illus-parents {
  background: radial-gradient(
    ellipse at 50% 90%,
    color-mix(in oklab, var(--accent) 28%, var(--surface)) 0%,
    color-mix(in oklab, var(--accent) 14%, var(--surface)) 100%
  );
}

.gains-v3-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.gains-v3-assmat .gains-v3-dot {
  background: color-mix(in oklab, var(--primary) 22%, transparent);
}
.gains-v3-parents .gains-v3-dot {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
}

.gains-v3-body {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.gains-v3-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
}
.gains-v3-header-assmat { color: var(--primary-deep); }
.gains-v3-header-parents { color: var(--accent-deep); }

.gains-v3-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gains-v3-avatar-assmat {
  background: color-mix(in oklab, var(--primary) 16%, var(--surface));
  color: var(--primary-deep);
}
.gains-v3-avatar-parents {
  background: color-mix(in oklab, var(--accent) 16%, var(--surface));
  color: var(--accent-deep);
}

.gains-v3-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  border-left: 3px solid;
  padding-left: 12px;
}
.gains-v3-assmat .gains-v3-quote { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.gains-v3-parents .gains-v3-quote { border-color: color-mix(in oklab, var(--accent)  40%, transparent); }

.gains-v3-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.gains-v3-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.88;
}

.gains-v3-check {
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gains-v3-check-assmat {
  background: color-mix(in oklab, var(--primary) 14%, var(--surface));
  color: var(--primary-deep);
}
.gains-v3-check-parents {
  background: color-mix(in oklab, var(--accent)  14%, var(--surface));
  color: var(--accent-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .gains-v3-illus .gains-v3-dot {
    animation: dotDrift 5s ease-in-out infinite;
  }
  .gains-v3-illus .gains-v3-dot:nth-child(2) {
    animation-delay: 1.8s;
    animation-duration: 6.5s;
  }
  .gains-v3-illus .gains-v3-dot:nth-child(3) {
    animation-delay: 3.4s;
    animation-duration: 4.2s;
  }
  @keyframes dotDrift {
    0%, 100% { transform: translateY(0px) scale(1);    }
    50%       { transform: translateY(-6px) scale(1.05); }
  }
}

/* ─── Animations hero + dictée ─── */
@media (prefers-reduced-motion: no-preference) {
  /* entrée en cascade du hero */
  .hero-copy > * { opacity: 0; animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.28s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.4s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.52s; }
  .hero-phones { opacity: 0; animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards; }

  /* flottement doux des téléphones */
  .duo-a { animation: floatA 6.5s ease-in-out infinite; }
  .duo-b { animation: floatB 7.5s ease-in-out 0.8s infinite; }

  /* blobs : morphing organique individuel par blob */
  .hero .blob-1 { animation: blob1Morph 20s ease-in-out infinite alternate; }
  .hero .blob-2 { animation: blob2Morph 15s ease-in-out 1.5s infinite alternate-reverse; }
  .hero .blob-3 { animation: blob3Morph 17s ease-in-out 3s infinite alternate; }

  /* micro qui écoute */
  .dict-mic::before { animation: micRing 2.4s ease-out infinite; }
  .dict-mic::after { animation: micRing 2.4s ease-out 1.2s infinite; }
  .dict-transcript .caret { animation: caretBlink 1.1s steps(1) infinite; }
  .dict-wave span { animation: wavePulse 1.3s ease-in-out infinite; }
  .dict-wave span:nth-child(2) { animation-delay: 0.12s; }
  .dict-wave span:nth-child(3) { animation-delay: 0.24s; }
  .dict-wave span:nth-child(4) { animation-delay: 0.36s; }
  .dict-wave span:nth-child(5) { animation-delay: 0.48s; }
  .dict-wave span:nth-child(6) { animation-delay: 0.6s; }
  .dict-chip { opacity: 0; animation: chipPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
  .dict-chip:nth-child(1) { animation-delay: 0.9s; }
  .dict-chip:nth-child(2) { animation-delay: 1.15s; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes blob1Morph {
  0%   { border-radius: 58% 42% 64% 36% / 50% 58% 42% 50%; transform: translate(0, 0) scale(1); }
  25%  { border-radius: 72% 28% 48% 52% / 62% 44% 56% 38%; transform: translate(18px, -22px) scale(1.05); }
  55%  { border-radius: 42% 58% 70% 30% / 48% 66% 34% 52%; transform: translate(32px, -10px) scale(1.08); }
  80%  { border-radius: 65% 35% 54% 46% / 56% 38% 62% 44%; transform: translate(14px, -30px) scale(1.03); }
  100% { border-radius: 50% 50% 60% 40% / 44% 60% 40% 56%; transform: translate(26px, -18px) scale(1.06); }
}
@keyframes blob2Morph {
  0%   { border-radius: 42% 58% 38% 62% / 56% 44% 56% 44%; transform: translate(0, 0) scale(1); }
  30%  { border-radius: 60% 40% 55% 45% / 40% 60% 48% 52%; transform: translate(-20px, 16px) scale(1.07); }
  60%  { border-radius: 34% 66% 48% 52% / 62% 38% 60% 40%; transform: translate(16px, 24px) scale(1.04); }
  100% { border-radius: 52% 48% 36% 64% / 50% 54% 46% 50%; transform: translate(-10px, 14px) scale(1.09); }
}
@keyframes blob3Morph {
  0%   { border-radius: 62% 38% 52% 48% / 46% 60% 40% 54%; transform: translate(0, 0) scale(1) rotate(0deg); }
  40%  { border-radius: 44% 56% 66% 34% / 58% 42% 55% 45%; transform: translate(14px, -12px) scale(1.1) rotate(8deg); }
  100% { border-radius: 70% 30% 44% 56% / 36% 64% 42% 58%; transform: translate(24px, -20px) scale(1.06) rotate(-6deg); }
}
@keyframes floatA {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-12px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-10px); }
}
@keyframes micRing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes chipPop {
  from { opacity: 0; transform: scale(0.5) translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes txIn   { from { opacity:0; transform:translateY(5px) } to { opacity:1; transform:none } }
@keyframes badge  { 0%{opacity:0;transform:scale(.7)} 35%{opacity:1;transform:scale(1)} 72%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(.9)} }
@keyframes rowIn  { from { opacity:0; transform:translateX(-8px) } to { opacity:1; transform:none } }
@keyframes chipIn { from { opacity:0; transform:scale(.5) translateY(6px) } to { opacity:1; transform:none } }
@keyframes doneIn { from { opacity:0; transform:scale(.94) translateY(4px) } to { opacity:1; transform:none } }
