/* Release Pulse — Design system.
 *
 * Aligné visuellement sur la landing PromoTracker (cohérence de marque).
 * Stack volontairement minimal : CSS pur, pas de framework, pas de build step.
 * Mobile-first (≤ 640px par défaut, breakpoint à 720px+ pour desktop layout).
 *
 * Conventions :
 *   - Variables CSS dans :root pour les couleurs / espacements / fonts
 *   - BEM-light sur les classes (.hero, .hero__title, .hero__cta)
 *   - Composants génériques : .btn, .card, .step, .container
 *   - Coins arrondis modérés (~14px), pas de gélule pour les boutons (PT-style)
 */

/* ─── Variables ────────────────────────────────────────────────────────── */

:root {
  /* Palette alignée PromoTracker — refonte fix4 : blanc + gris clair (au
   * lieu du crème historique #f0ede8 / #faf8f5). Les sections alternées
   * s'appuient sur ces variables, donc le seul changement nécessaire est ici. */
  --bg: #ffffff;             /* blanc pur — fond global, header, footer */
  --accent: #4d5ce5;         /* bleu indigo — CTAs, liens, accents */
  --accent-dark: #3a45c2;    /* hover des accents */
  --accent-soft: rgba(77, 92, 229, 0.06);

  /* Texte */
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-light: #8a8a8a;

  /* Surfaces */
  --surface: #ffffff;        /* cartes / zones surélevées */
  --surface-alt: #f7f7f7;    /* sections alternées gris clair (style PT) */
  --border: rgba(0, 0, 0, 0.05);          /* bordures quasi-invisibles (style PT) */
  --border-strong: rgba(0, 0, 0, 0.10);

  /* Couleurs scénarios (Phase 4.3) */
  --scenario-snowball: #d4a017;
  --scenario-algo-bubble: #c87b22;
  --scenario-hidden-gem: #2f7ec9;
  --scenario-flat: #6c6c6c;
  --scenario-mixed: #b89020;

  /* Type — system stack moderne (cohérent PT) */
  --ff-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
             Arial, sans-serif;
  --ff-display: var(--ff-body);

  /* Spacing scale (multiples de 4px) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Radius — modérés pour le corps, pill réservé aux badges */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 100px;          /* badges/pastilles uniquement (pas .btn) */

  /* Shadow — très douces (style PT) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 6px 16px rgba(77, 92, 229, 0.10);

  --tr: 160ms ease-out;

  /* Hero sombre du rapport (Phase 4.3-fix4ter) */
  --hero-dark: #1a1f3a;            /* indigo très foncé, cohérent avec --accent */
  --hero-dark-text: #ffffff;
  --hero-dark-text-muted: rgba(255, 255, 255, 0.7);
  --hero-dark-accent: #8a99ff;     /* indigo CLAIR — lisible sur fond sombre */
}

/* ─── Body modifier (Phase 4.3-fix4bis) ────────────────────────────────── *
 * Les pages "outil" (formulaire, rapport) prennent un fond gris clair pour
 * faire ressortir les cartes blanches (form-step, action-card, etc.).
 * La landing reste sur fond blanc par défaut. */
.page--gray {
  background: var(--surface-alt);
}

/* ─── Reset ────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* Titres très bold + letter-spacing négatif (style PT) */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}
p { margin: 0; }
ul { margin: 0; padding-left: var(--sp-5); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover { color: var(--accent-dark); }

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

/* ─── Layout primitives ────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

@media (min-width: 720px) {
  .container { padding: 0 var(--sp-6); }
}

/* ─── Buttons (style PromoTracker — pas de gélule) ─────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 0.98rem;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);            /* 14px — modéré, pas pill */
  transition: background var(--tr), box-shadow var(--tr), filter var(--tr);
  text-align: center;
  line-height: 1.2;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  filter: brightness(1.03);
  /* Pas de translateY : on garde le bouton stable (style PT) */
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-7);
  font-size: 1.05rem;
  border-radius: var(--r-md);
}

/* ─── Header (refonte alignée PT) ──────────────────────────────────────── */

.site-header {
  padding: var(--sp-4) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Logo unifié « Release Pulse » + « by PromoTracker » (Phase 4.3-fix4).
 * 2 liens distincts dans un wrapper flex : "Release Pulse" → /, et
 * "by PromoTracker" → promotracker.fr (nouvel onglet). Pas de <a> imbriqué. */
/* Logo header — SVG vectoriel qui contient déjà « Release Pulse / by PromoTracker ».
   Le link wrappe le SVG seulement (pas de texte HTML séparé) — l'alt sur <img>
   et l'aria-label sur le <a> couvrent l'accessibilité.
   Mobile : reduce à 140×30 pour libérer de la place au badge Beta. */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;     /* évite l'espacement vertical autour du <img> */
}
.site-logo__img {
  display: block;
  width: 180px;
  height: 38px;
}
@media (max-width: 640px) {
  .site-logo__img {
    width: 140px;
    height: 30px;
  }
}

/* Badge Beta dans le header — pill indigo soft, aligné à droite via
 * justify-content: space-between sur .site-header__inner. */
.site-header__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(77, 92, 229, 0.18);
  line-height: 1;
}

/* ─── Footer (plus aéré) ───────────────────────────────────────────────── */

.site-footer {
  padding: var(--sp-7) 0 var(--sp-6);
  margin-top: var(--sp-8);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  justify-content: space-between;
  align-items: center;
}
.site-footer__links {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.site-footer__links a { color: var(--text-muted); }
.site-footer__links a:hover { color: var(--accent); }

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: var(--sp-8) 0 var(--sp-7);
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-3);
  color: var(--text);
}
.hero__title-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto var(--sp-6);
  line-height: 1.55;
}

.hero__cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.hero__sub-cta {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ─── Section générique ────────────────────────────────────────────────── */

.section { padding: var(--sp-8) 0; }
.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}
.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--sp-7);
}
.section__title {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-3);
}
.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ─── Cards (style PT — épuré) ─────────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 720px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);                /* 24px — bien arrondi */
  padding: var(--sp-6);                       /* padding généreux */
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--tr), border-color var(--tr);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
  line-height: 1;
}
.card__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Steps (numérotation 01/02/03 style PT) ───────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-xs);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);   /* "01", "02", "03", "04" */
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.step__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.step__text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ─── Pitch (Pourquoi cet outil) ───────────────────────────────────────── */

.pitch {
  max-width: 44rem;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-7);                       /* padding généreux */
  box-shadow: var(--shadow-xs);
}
.pitch p + p { margin-top: var(--sp-4); }
.pitch p {
  color: var(--text);
  line-height: 1.7;
  font-size: 1.02rem;
}
.pitch strong {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

/* ─── Cas pratique (preview) ──────────────────────────────────────────── */

.preview {
  max-width: 44rem;
  margin: 0 auto;
}
.preview__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  box-shadow: var(--shadow-sm);
}
.preview__meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preview__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.preview__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.preview__stats strong { color: var(--text); font-weight: 700; }
.preview__body { color: var(--text); line-height: 1.65; font-size: 0.98rem; }
.preview__body em { color: var(--accent); font-style: italic; font-weight: 600; }

/* ─── Final CTA ───────────────────────────────────────────────────────── */

.final-cta {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-7);
}

/* ─── Formulaire d'analyse (Phase 4.2) ─────────────────────────────────── */

.form-wrapper {
  max-width: 45rem;             /* 720px — gain de respiration vs 36rem */
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-8);
}
@media (min-width: 720px) {
  .form-wrapper { padding: var(--sp-7) var(--sp-6) var(--sp-8); }
}

/* Barre de progression — 5 segments horizontaux */
.progress {
  margin-bottom: var(--sp-6);
}
.progress__bar {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}
.progress__segment {
  flex: 1;
  height: 6px;
  background: var(--border-strong);
  border-radius: var(--r-pill);
  transition: background var(--tr);
}
.progress__segment.is-done {
  background: var(--accent);
}
.progress__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.progress__label strong {
  color: var(--text);
  font-weight: 700;
  margin-right: var(--sp-2);
}

/* Form step — carte blanche flottant sur le fond gris de body.page--gray.
 * Shadow un cran au-dessus de xs pour rester visible sur le gris #f7f7f7. */
.form-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
@media (min-width: 720px) {
  .form-step { padding: var(--sp-7); }
}
.form-step__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.form-step__lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--sp-5);
}

/* Field — bloc label + input + tooltip + erreur */
.field {
  margin-bottom: var(--sp-5);   /* Phase 4.3-fix4bis : un cran d'air en plus */
}
.field:last-child { margin-bottom: 0; }

.field__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.field__label--optional::after {
  content: "(optionnel)";
  color: var(--text-light);
  font-weight: 500;
  margin-left: var(--sp-2);
}

/* Ligne label + tooltip (le tooltip est sorti du <label> pour éviter
 * que le navigateur focuse l'input lié sur clic — comportement natif
 * du label HTML, non interceptable côté JS). */
.field__label-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.field__label-row .field__label {
  margin-bottom: 0;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__input.is-invalid,
.field__select.is-invalid {
  border-color: #c4302b;
  box-shadow: 0 0 0 3px rgba(196, 48, 43, 0.10);
}
.field__textarea { min-height: 5rem; resize: vertical; }

.field__error {
  margin-top: var(--sp-2);
  color: #c4302b;
  font-size: 0.85rem;
}
.field__hint {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Tooltip ℹ️ — pseudo-content au :hover desktop, contrôlé via Alpine pour mobile */
.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: help;
  user-select: none;
}
.tooltip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  width: 16rem;
  max-width: 80vw;
  box-shadow: var(--shadow-md);
  z-index: 10;
  text-align: left;
  pointer-events: none;
}
.tooltip__content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--text);
}

/* Variante "rich" — tooltip plus large pour le contenu enrichi S4A path */
.tooltip__content--rich {
  width: 22rem;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: var(--sp-3) var(--sp-3);
}
.tooltip__content--rich em {
  font-style: italic;
  opacity: 0.85;
}

/* Sous-section "Marketing assets" (étape 5, Phase 4.3-fix2) */
.assets-group {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--border-strong);
}
.assets-group__title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.assets-group__hint {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-left: var(--sp-1);
}

/* Inline row checkbox */
.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.field--checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.field--checkbox label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* Sources — mode toggle + total live */
.mode-toggle {
  display: flex;
  gap: var(--sp-2);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: var(--sp-1);
  margin-bottom: var(--sp-5);
}
.mode-toggle__btn {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--tr), color var(--tr);
}
.mode-toggle__btn.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.slider-row {
  margin-bottom: var(--sp-5);
}
.slider-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.slider-row__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.slider-row__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 3.2rem;
  text-align: right;
}
.slider-row__input {
  width: 100%;
  accent-color: var(--accent);
}

/* Grid 2 colonnes pour les 12 sources mode detail */
.sources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 560px) {
  .sources-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); }
}
.sources-grid .field { margin-bottom: 0; }
.sources-grid .field__label { font-size: 0.85rem; }
.sources-grid .field__input { padding: var(--sp-2) var(--sp-3); font-size: 0.92rem; }

/* Total live (vert si valide, rouge sinon) */
.total-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 600;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.total-display__value {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.total-display.is-valid { background: rgba(36, 145, 90, 0.06); border-color: rgba(36, 145, 90, 0.25); }
.total-display.is-valid .total-display__value { color: #1e7a4d; }
.total-display.is-invalid { background: rgba(196, 48, 43, 0.05); border-color: rgba(196, 48, 43, 0.25); }
.total-display.is-invalid .total-display__value { color: #c4302b; }

/* Sources sections (étape 3 refonte : 3 blocs algo / curateurs / direct) */
.sources-section {
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
@media (min-width: 720px) {
  .sources-section { padding: var(--sp-5); }
}
.sources-section__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
  color: var(--text);
}
.sources-section__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}
.sources-section__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border-strong);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sources-section__total strong {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sources-section__pct {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-left: var(--sp-1);
}

/* Curator row : ligne nom + streams + bouton remove */
.curator-row {
  display: grid;
  grid-template-columns: 1fr 8rem auto;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-2);
}
@media (max-width: 559px) {
  .curator-row { grid-template-columns: 1fr 6rem auto; }
}
.curator-row__name,
.curator-row__streams {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
}
.curator-row__name:focus,
.curator-row__streams:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.curator-row__remove {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: transparent;
  transition: background var(--tr), color var(--tr);
}
.curator-row__remove:hover {
  background: rgba(196, 48, 43, 0.08);
  color: #c4302b;
}

/* Bouton compact (ajouter curateur, recalculer audience) */
.btn--small {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--r-sm);
}

/* Navigation buttons */
.form-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
@media (min-width: 560px) {
  .form-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.form-nav__group {
  display: flex;
  gap: var(--sp-3);
}
.form-nav__group--right {
  margin-left: auto;
}

/* Honeypot anti-bot — invisible mais reste dans le DOM */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Bannière d'erreur globale (422/429/500) */
.error-banner {
  background: rgba(196, 48, 43, 0.08);
  border: 1px solid rgba(196, 48, 43, 0.3);
  color: #8a2520;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}

/* ─── Page rapport /r/{short_id} (Phase 4.3) ───────────────────────────── */

/* ─── Hero héroïque (Phase 4.3-fix6a) ──────────────────────────────────── */

.report-hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-7) 0 var(--sp-8);
  background: linear-gradient(135deg, #1a1f3a 0%, #1e2547 50%, #1a1f3a 100%);
  color: var(--hero-dark-text);
  border-bottom: none;
}
@media (min-width: 720px) {
  .report-hero { padding: var(--sp-8) 0; }
}

/* Pattern décoratif SVG en background (ondes + points lumineux) */
.report-hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.report-hero__pattern svg {
  width: 100%;
  height: 100%;
}

/* Container par-dessus le pattern */
.report-hero__container {
  position: relative;
  z-index: 1;
}

.report-hero__meta {
  color: var(--hero-dark-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
}

/* Layout 2 colonnes desktop (titre/badge à gauche, score circle à droite) */
.report-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
  /* Quand .report-hero__artwork est présent (Session H), grid auto fit :
     le sélecteur :has() ajuste à 3 colonnes en desktop. Si pas d'artwork
     (saisie manuelle), on retombe sur le layout 2-cols existant. */
}
@media (min-width: 720px) {
  .report-hero__layout {
    grid-template-columns: 1fr auto;
    gap: var(--sp-8);
  }
  /* Layout 3 cols quand artwork présent : artwork fixe, main flex, score fixe */
  .report-hero__layout--with-artwork {
    grid-template-columns: auto 1fr auto;
    gap: var(--sp-7);
  }
}

/* Session H — artwork release dans le hero. 128×128 desktop, 96×96 tablet,
   80×80 small mobile. Ombre portée pour ressortir sur le fond bleu nuit. */
.report-hero__artwork {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: block;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .report-hero__artwork {
    width: 96px;
    height: 96px;
    border-radius: 10px;
  }
}
@media (max-width: 480px) {
  .report-hero__artwork {
    width: 80px;
    height: 80px;
  }
}

.report-hero__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.report-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hero-dark-text);
  margin: 0;
}
.report-hero__artist {
  color: var(--hero-dark-text-muted);
  font-weight: 600;
  display: block;
  margin-top: var(--sp-1);
  font-size: 0.7em;
}

/* Liens éventuels dans le hero — indigo clair sur sombre */
.report-hero a {
  color: var(--hero-dark-accent);
}
.report-hero a:hover {
  color: var(--hero-dark-text);
  text-decoration: underline;
}

/* Badge scénario avec icône + label (remplace .report-scenario) */
.report-scenario-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  align-self: flex-start;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.report-scenario-badge__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.report-scenario-badge__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hero-dark-text);
  letter-spacing: -0.01em;
}

/* ── Score circulaire animé — pièce maîtresse du hero ─────────────────── */

.report-hero__score-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
  display: inline-block;
}
@media (min-width: 720px) {
  .score-circle {
    width: 240px;
    height: 240px;
  }
}

.score-circle__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* La progression elle-même — stroke ajusté par Alpine via stroke-dasharray.
 * Couleur par défaut au cas où aucune modif --low/--mid/--high n'est posée. */
.score-circle__progress {
  stroke: var(--hero-dark-accent);
  transition: stroke-dasharray 100ms linear;
}
.score-circle--low .score-circle__progress  { stroke: #ef4444; }   /* rouge */
.score-circle--mid .score-circle__progress  { stroke: #f59e0b; }   /* ambre */
.score-circle--high .score-circle__progress { stroke: #10b981; }   /* vert */

.score-circle--low .score-circle__value  { color: #ef4444; }
.score-circle--mid .score-circle__value  { color: #f59e0b; }
.score-circle--high .score-circle__value { color: #10b981; }

/* Texte centré dans le cercle */
.score-circle__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.score-circle__value {
  font-size: 4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--hero-dark-accent);   /* fallback (sans classe --low/--mid/--high) */
}
@media (min-width: 720px) {
  .score-circle__value { font-size: 5rem; }
}
.score-circle__max {
  font-size: 0.95rem;
  color: var(--hero-dark-text-muted);
  font-weight: 600;
  margin-top: var(--sp-1);
}
.score-circle__label {
  font-size: 0.75rem;
  color: var(--hero-dark-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--sp-2);
}

/* Actes (1/2/3) — section générique du rapport.
 * Background transparent : le fond gris de body.page--gray bleed à travers,
 * et les cartes internes (action-card, learning-card, report-sentence) sont
 * les éléments blancs qui pop. L'alternance --alt a été retirée en fix4bis
 * (devenue redondante avec le body gris). */
.report-act {
  padding: var(--sp-7) 0;
}
.report-act__title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}
.report-act__num {
  color: var(--accent);
  font-weight: 800;
}
.report-act__lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--sp-5);
  max-width: 42rem;
}
.report-act__body {
  max-width: 44rem;
}

/* ─── Phrases diagnostic / projection — riches (Phase 4.3-fix6b) ──────── *
 * Structure : icône Lucide dans un cercle teinté à gauche + texte à droite.
 * Couleur sémantique (tone) posée par chaque règle via SentenceStyle ; le
 * template lit sentence.style.tone et applique la classe modifier ci-dessous.
 * Fallback : si style is None, tone = 'blue' (cf _default_sentence_style). */

.report-sentence {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);   /* couleur écrasée par .--<tone> */
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-xs);
}
.report-sentence + .report-sentence { margin-top: var(--sp-3); }

.report-sentence__icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.report-sentence__icon-wrap svg { width: 20px; height: 20px; }

/* Wrapper text + chart à l'intérieur de la card (Phase 4.3-fix6e).
 * min-width: 0 empêche les enfants flex (SVG donut full-width) de déborder
 * de la card — gotcha CSS connu sur flex children avec contenu intrinsèque. */
.report-sentence__body {
  flex: 1;
  min-width: 0;
}

.report-sentence__text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  padding-top: var(--sp-1);   /* aligne visuellement avec le cercle icône */
}
/* `**xxx**` rendu via filtre bold_markdown (Phase 4.3-fix6c) — citations
 * de playlists curateurs, chiffres clés, etc. */
.report-sentence__text strong {
  color: var(--text);
  font-weight: 700;
}

/* Chart interne sous la phrase, séparé par un trait subtil. */
.report-sentence__chart {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

/* Tone modifiers : barre gauche + cercle icône teintés sémantiquement.
 * Couleurs reprises du palette score circle (cohérence visuelle) :
 *   green = succès / signal positif (#10b981)
 *   amber = alerte / sous-perf (#f59e0b)
 *   blue  = info neutre / descriptive (#3b82f6)
 *   red   = critique / risque retrait (#ef4444) */
.report-sentence--green {
  border-left-color: #10b981;
}
.report-sentence--green .report-sentence__icon-wrap {
  color: #10b981;
  background: rgba(16, 185, 129, 0.10);
}
.report-sentence--amber {
  border-left-color: #f59e0b;
}
.report-sentence--amber .report-sentence__icon-wrap {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.10);
}
.report-sentence--blue {
  border-left-color: #3b82f6;
}
.report-sentence--blue .report-sentence__icon-wrap {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.10);
}
.report-sentence--red {
  border-left-color: #ef4444;
}
.report-sentence--red .report-sentence__icon-wrap {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.10);
}

/* ─── Graphiques inline (Phase 4.3-fix6d + fix6e) ─────────────────────── *
 * Le chart vit maintenant DANS la card .report-sentence (via
 * .report-sentence__body > .report-sentence__chart). Il n'a donc plus son
 * propre fond / border / shadow — c'est la card parente qui les porte. */
.chart {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.chart__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.chart__title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chart__value {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.chart__badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-left: auto;
}
.chart__footnote {
  font-size: 0.7rem;
  color: var(--text-light);
  margin: var(--sp-2) 0 0;
  font-style: italic;
}

/* Jauge save_rate */
.chart-gauge {
  margin: var(--sp-3) 0 var(--sp-2);
}
.chart-gauge__svg {
  width: 100%;
  height: 40px;
}
.chart-gauge__labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
}
.chart-gauge__labels span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barre pipeline */
.chart-bar {
  position: relative;
  margin: var(--sp-3) 0 var(--sp-2);
}
.chart-bar__track {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.chart-bar__zone {
  height: 100%;
}
.chart-bar__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 10px;
  border-radius: 5px;
  transition: width 600ms ease-out;
}
.chart-bar__legend {
  display: flex;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: var(--sp-1);
}

/* Donut streams */
.chart-donut__layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--sp-4);
  align-items: center;
}
.chart-donut__svg {
  width: 100%;
  height: auto;
}
.chart-donut__legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.chart-donut__legend li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
}
.chart-donut__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chart-donut__legend-label {
  color: var(--text);
}
.chart-donut__legend-value {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

@media (max-width: 720px) {
  .chart-donut__layout {
    grid-template-columns: 90px 1fr;
    gap: var(--sp-3);
  }
}

/* Cartes d'actions LIVE */
.action-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 60rem;
}
@media (min-width: 720px) {
  .action-list { grid-template-columns: repeat(3, 1fr); }
}
/* ─── Action cards différenciées (Phase 4.3-fix6f) ─────────────────────── *
 * Chaque action live a sa propre signature visuelle : icône thématique
 * Lucide + couleur (indigo / rose / amber / teal / violet) + badge impact.
 * La couleur thématique est posée par défaut via ACTION_DEFAULTS dans
 * app/core/rules/actions.py, et apparaît à 3 endroits sur la card :
 *   - barre verticale ::before à gauche (4px),
 *   - background du cercle d'icône (tinted à 10 % de la couleur),
 *   - couleur du SVG icône lui-même.
 */
.action-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color var(--tr);
}
.action-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.action-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
}

.action-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.action-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-card__icon svg { width: 22px; height: 22px; }

.action-card__impact {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.action-card__impact--high {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.action-card__impact--medium {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.action-card__impact--low {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.action-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--sp-3) 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.action-card__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;   /* pousse le footer en bas même si les cards ont des tailles différentes */
}

.action-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.action-card__num {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* Variantes couleur — barre gauche + cercle icône */
.action-card--indigo::before { background: #4d5ce5; }
.action-card--indigo .action-card__icon {
  background: rgba(77, 92, 229, 0.10);
  color: #4d5ce5;
}
.action-card--rose::before { background: #f43f5e; }
.action-card--rose .action-card__icon {
  background: rgba(244, 63, 94, 0.10);
  color: #f43f5e;
}
.action-card--amber::before { background: #f59e0b; }
.action-card--amber .action-card__icon {
  background: rgba(245, 158, 11, 0.10);
  color: #f59e0b;
}
.action-card--teal::before { background: #14b8a6; }
.action-card--teal .action-card__icon {
  background: rgba(20, 184, 166, 0.10);
  color: #14b8a6;
}
.action-card--violet::before { background: #8b5cf6; }
.action-card--violet .action-card__icon {
  background: rgba(139, 92, 246, 0.10);
  color: #8b5cf6;
}

/* ─── Cartes "À retenir" — learnings (Phase 4.3-fix6g) ────────────────── *
 * Structure visuelle alignée sur .action-card : barre verticale gauche
 * colorée + cercle d'icône teinté + header avec badge window. Les 5
 * variantes couleur sont les mêmes que les action-cards. Les fields
 * learning.style sont posés par ACTION_DEFAULTS (depuis fix6f) — les
 * learnings et actions partagent le même schema ActionItem. */

.learning-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 48rem;
}
@media (min-width: 720px) {
  .learning-list { grid-template-columns: 1fr 1fr; }
}

.learning-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.learning-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
}

.learning-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.learning-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.learning-card__icon svg { width: 20px; height: 20px; }

.learning-card__window {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  white-space: nowrap;
}

.learning-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--sp-2) 0;
  line-height: 1.3;
}
.learning-card__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Variantes couleur (mêmes 5 que action-cards pour cohérence) */
.learning-card--indigo::before { background: #4d5ce5; }
.learning-card--indigo .learning-card__icon {
  background: rgba(77, 92, 229, 0.10);
  color: #4d5ce5;
}
.learning-card--rose::before { background: #f43f5e; }
.learning-card--rose .learning-card__icon {
  background: rgba(244, 63, 94, 0.10);
  color: #f43f5e;
}
.learning-card--amber::before { background: #f59e0b; }
.learning-card--amber .learning-card__icon {
  background: rgba(245, 158, 11, 0.10);
  color: #f59e0b;
}
.learning-card--teal::before { background: #14b8a6; }
.learning-card--teal .learning-card__icon {
  background: rgba(20, 184, 166, 0.10);
  color: #14b8a6;
}
.learning-card--violet::before { background: #8b5cf6; }
.learning-card--violet .learning-card__icon {
  background: rgba(139, 92, 246, 0.10);
  color: #8b5cf6;
}

/* Section share + feedback */
.report-share {
  padding: var(--sp-8) 0;
  text-align: center;
}
.report-share__title {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.report-share__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.report-share__hint {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 32rem;
  margin: 0 auto;
}
.report-share__newrun {
  margin-top: var(--sp-5);
  font-size: 0.95rem;
}
.report-share__newrun a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ─── Smart link card (Phase 7) ───────────────────────────────────────── */

.smart-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #1DB954;   /* vert Spotify */
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  max-width: 60rem;
}
.smart-link-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
@media (min-width: 720px) {
  .smart-link-card__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.smart-link-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(29, 185, 84, 0.12);
  color: #138a3e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.smart-link-card__url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  word-break: break-all;
  flex: 1;
}
.smart-link-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.smart-link-card__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ─── Signature en bas de rapport (Phase 4.3-fix6g) ───────────────────── */

.report-signature {
  padding: 0 0 var(--sp-7);
  text-align: center;
}
.report-signature__divider {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 auto var(--sp-4);
  border-radius: 1px;
}
.report-signature__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto var(--sp-3);
  line-height: 1.6;
}
.report-signature__text strong {
  color: var(--text);
  font-weight: 700;
}
.report-signature__meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
  font-style: italic;
}
.report-signature__meta a {
  color: var(--accent);
  text-decoration: none;
}
.report-signature__meta a:hover { text-decoration: underline; }

/* ─── Animation fade-in au scroll des actes (Phase 4.3-fix6g) ─────────── *
 * IntersectionObserver pose la classe .is-visible à chaque .report-act
 * qui entre dans le viewport ; CSS transitionne opacity + translateY. */
.report-act {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.report-act.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Respect du prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .report-act {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Modal feedback */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  z-index: 100;
}
.modal__panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  max-width: 32rem;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}
@media (min-width: 560px) {
  .modal__panel { padding: var(--sp-7); }
}
.modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: background var(--tr), color var(--tr);
}
.modal__close:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.modal__lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: var(--sp-4);
}
.modal__error {
  margin-top: var(--sp-3);
  color: #c4302b;
  font-size: 0.88rem;
}
.modal__ack {
  margin-top: var(--sp-3);
  color: #1e7a4d;
  font-weight: 600;
  font-size: 0.95rem;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* Loader overlay pendant la soumission */
.loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  vertical-align: middle;
  margin-left: var(--sp-2);
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

/* ─── Impression : optimisation pour le PDF (Phase 4.3-fix3) ──────────── */
@media print {
  /* Forcer impression des couleurs (Chrome désactive par défaut) */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Cacher les éléments interactifs non utiles sur papier */
  .site-header,
  .site-footer,
  .report-share,
  .modal {
    display: none !important;
  }

  /* Marges et taille de page */
  @page {
    size: A4;
    margin: 1.5cm;
  }

  /* Désactiver les ombres (économiser l'encre, plus propre en PDF) */
  .action-card,
  .learning-card,
  .report-sentence,
  .score-circle,
  .report-scenario-badge {
    box-shadow: none !important;
  }

  /* Empêcher la coupure au milieu d'une carte */
  .action-card,
  .learning-card,
  .report-sentence {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Sentences : alléger pour le PDF — backgrounds transparents, icônes en
   * outline-only (économie d'encre). On garde la barre gauche colorée
   * comme signal sémantique faible-coût. */
  .report-sentence {
    box-shadow: none !important;
    border-left-width: 3px !important;
  }
  .report-sentence__icon-wrap {
    background: transparent !important;
    border: 1px solid currentColor;
  }

  /* Garder card + chart ensemble sur une même page PDF */
  .report-sentence,
  .report-sentence__chart {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Fade-in : forcer visible en print (sinon sections vides en PDF). */
  .report-act {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Action cards (Phase 4.3-fix6f) : icônes en outline, badges plats, pas de
   * transform au hover (n'a pas de sens à l'impression). */
  .action-card {
    box-shadow: none !important;
    transform: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .action-card__icon {
    background: transparent !important;
    border: 1px solid currentColor;
  }
  .action-card__impact {
    background: transparent !important;
    border: 1px solid currentColor;
  }

  /* Garder le titre d'un acte avec son premier paragraphe */
  .report-act__title,
  .report-act__lead {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Réduire légèrement la typographie pour gagner de la place */
  body { font-size: 11pt; }
  .report-hero__title { font-size: 1.6rem; }
  .report-act__title { font-size: 1.2rem; }

  /* Forcer la couleur des liens (sinon noirs sur certains navigateurs) */
  a {
    color: var(--accent) !important;
    text-decoration: none;
  }

  /* Le hero prend moins de place verticale */
  .report-hero { padding: var(--sp-4) 0 var(--sp-3); }
  .report-act { padding: var(--sp-4) 0; }

  /* Hero héroïque → revert au look clair en print (lisibilité PDF + encre). */
  .report-hero {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: var(--sp-5) 0 !important;
  }
  .report-hero__pattern { display: none !important; }
  .report-hero__meta { color: var(--text-light) !important; }
  .report-hero__title { color: var(--text) !important; }
  .report-hero__artist { color: var(--text-muted) !important; }

  .report-scenario-badge {
    background: var(--accent-soft) !important;
    border-color: rgba(77, 92, 229, 0.15) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .report-scenario-badge__label {
    color: var(--accent) !important;
  }

  /* Score circulaire — version compacte, indigo neutre, anneau gris clair */
  .score-circle { width: 140px !important; height: 140px !important; }
  .score-circle__svg circle:first-child {
    stroke: rgba(0, 0, 0, 0.10) !important;
  }
  .score-circle--low .score-circle__progress,
  .score-circle--mid .score-circle__progress,
  .score-circle--high .score-circle__progress,
  .score-circle__progress {
    stroke: var(--accent) !important;
  }
  .score-circle--low .score-circle__value,
  .score-circle--mid .score-circle__value,
  .score-circle--high .score-circle__value,
  .score-circle__value {
    color: var(--accent) !important;
    font-size: 2.5rem !important;
  }
  .score-circle__max,
  .score-circle__label {
    color: var(--text-muted) !important;
  }
}

/* ─── Smart link bonus (section landing) — refonte 2 colonnes ────────── */

.sl-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 56rem;
  margin: 0 auto var(--sp-7);
}

@media (min-width: 720px) {
  .sl-compare {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: var(--sp-5);
  }
}

.sl-compare__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-xs);
}

.sl-compare__col--bad {
  border-color: rgba(196, 48, 43, 0.18);
  background: rgba(196, 48, 43, 0.025);
}

.sl-compare__col--good {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.sl-compare__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
}

.sl-compare__col--bad .sl-compare__badge {
  background: rgba(196, 48, 43, 0.10);
  color: #c4302b;
}

.sl-compare__col--bad .sl-compare__badge::before {
  content: "✕";
  font-weight: 800;
}

.sl-compare__col--good .sl-compare__badge {
  background: var(--accent);
  color: #fff;
}

.sl-compare__col--good .sl-compare__badge::before {
  content: "✓";
  font-weight: 800;
}

.sl-compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sl-compare__list li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  padding-left: var(--sp-5);
  position: relative;
}

.sl-compare__col--bad .sl-compare__list li::before {
  content: "−";
  position: absolute;
  left: 0;
  top: 0;
  color: #c4302b;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.4;
}

.sl-compare__col--good .sl-compare__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.5;
}

.sl-compare__list code {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--accent);
  white-space: nowrap;
}

.sl-compare__arrow {
  display: none;
  align-self: center;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
  padding: 0 var(--sp-2);
}

@media (min-width: 720px) {
  .sl-compare__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tableau de prix */

.sl-pricing {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.sl-pricing__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--sp-4);
  text-align: center;
}

.sl-pricing__table {
  width: 100%;
  border-collapse: collapse;
}

.sl-pricing__table td {
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.sl-pricing__table tr:last-child td {
  border-bottom: none;
}

.sl-pricing__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.sl-pricing__price {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.sl-pricing__yearly {
  font-size: 0.85rem;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  padding-left: var(--sp-3);
}

/* Ligne mise en valeur Release Pulse */

.sl-pricing__row--highlight {
  background: var(--accent-soft);
}

.sl-pricing__row--highlight td {
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: none;
}

.sl-pricing__row--highlight td:first-child {
  border-top-left-radius: var(--r-md);
  border-bottom-left-radius: var(--r-md);
  padding-left: var(--sp-4);
}

.sl-pricing__row--highlight td:last-child {
  border-top-right-radius: var(--r-md);
  border-bottom-right-radius: var(--r-md);
  padding-right: var(--sp-4);
}

.sl-pricing__row--highlight .sl-pricing__name {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.sl-pricing__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sl-pricing__row--highlight .sl-pricing__price,
.sl-pricing__row--highlight .sl-pricing__yearly {
  color: var(--accent);
  font-weight: 700;
}

.sl-pricing__row--highlight .sl-pricing__price {
  font-size: 1.15rem;
  font-weight: 800;
}

.sl-pricing__note {
  margin-top: var(--sp-4);
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* Mobile : tableau plus compact */

@media (max-width: 560px) {
  .sl-pricing {
    padding: var(--sp-5) var(--sp-4);
  }

  .sl-pricing__yearly {
    display: none;
  }

  .sl-pricing__price {
    font-size: 0.9rem;
  }
}

/* ─── Form email étape 5 (Session A) ─────────────────────────────────── */

.form-group--email {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-xs);
}

.form-required {
  color: var(--accent);
  font-weight: 700;
}

.form-helper {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.form-checkbox-group {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-top: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}

.form-checkbox {
  flex-shrink: 0;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}

.form-rgpd-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--sp-3);
  font-style: italic;
}

/* ─── Alpine x-cloak (global) ────────────────────────────────────────── */
/* Cache les éléments Alpine tant que le framework n'a pas hydraté.
   Posé globalement ici pour que le modal feedback (Session A.2) en hérite. */
[x-cloak] { display: none !important; }

/* ─── Feedback modal (Session A.2 — bug/suggestion/question) ─────────── */

.footer__feedback-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  font-family: inherit;
}

.footer__feedback-btn:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.feedback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.feedback-modal__content {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.feedback-modal__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.feedback-modal__close:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.feedback-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}

.feedback-modal__lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--sp-5);
  line-height: 1.5;
}

.feedback-modal__field {
  margin-bottom: var(--sp-4);
}

.feedback-modal__categories {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.feedback-modal__category {
  flex: 1;
  min-width: 7rem;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.feedback-modal__category:hover {
  border-color: var(--accent);
}

.feedback-modal__category.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.feedback-modal__submit {
  width: 100%;
  margin-top: var(--sp-3);
}

.feedback-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feedback-modal__status {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  font-size: 1rem;
  font-weight: 600;
}

.feedback-modal__status--success {
  color: #00a86b;
}

.feedback-modal__status--error {
  color: #c4302b;
}

.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 6rem;
  color: var(--text);
  background: var(--surface);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ─── Témoignage public fin de rapport (Session A.3) ─────────────────── */

.report-testimonial {
  margin-top: var(--sp-8);
  padding: var(--sp-7) var(--sp-4);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.report-testimonial__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.report-testimonial__intro {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.report-testimonial__badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-3);
}

.report-testimonial__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  color: var(--text);
}

.report-testimonial__lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.report-testimonial__field {
  margin-bottom: var(--sp-4);
  flex: 1;
}

.report-testimonial__field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .report-testimonial__field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.rating-stars {
  display: flex;
  gap: var(--sp-2);
  font-size: 2rem;
  line-height: 1;
}

.rating-star {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  color: var(--border-strong);
  transition: color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
}

.rating-star:hover {
  transform: scale(1.1);
}

.rating-star.is-active {
  color: var(--accent);
}

.report-testimonial__optin {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--accent-soft);
  border-radius: 12px;
}

.report-testimonial__optin .form-checkbox-group {
  border-top: none;
  margin-top: 0;
  padding: 0;
}

.report-testimonial__submit {
  width: 100%;
  margin-top: var(--sp-5);
}

.report-testimonial__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.report-testimonial__status {
  text-align: center;
  padding: var(--sp-6);
  font-size: 1.05rem;
  line-height: 1.5;
}

.report-testimonial__status--success {
  color: #00a86b;
  background: rgba(0, 168, 107, 0.05);
  border-radius: var(--r-xl);
}

.report-testimonial__status--success strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: var(--sp-2);
}

.report-testimonial__status--error {
  color: #c4302b;
}

.report-testimonial__status--error a {
  color: inherit;
}

/* ─── Carrousel témoignages landing (Session A.4) ────────────────────── */

.testimonials {
  padding: var(--sp-8) 0;
  background: var(--surface-alt);
}

.testimonials__carousel {
  max-width: 42rem;
  margin: 0 auto;
}

.testimonials__track {
  position: relative;
  min-height: 14rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-7);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.testimonial-card__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 1.4rem;
  margin-bottom: var(--sp-4);
  line-height: 1;
}

.testimonial-card__star {
  color: var(--border-strong);
}

.testimonial-card__star.is-active {
  color: var(--accent);
}

.testimonial-card__quote {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 var(--sp-5);
  font-style: italic;
}

.testimonial-card__quote::before {
  content: "«\00a0";
  color: var(--accent);
}

.testimonial-card__quote::after {
  content: "\00a0»";
  color: var(--accent);
}

.testimonial-card__author {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.testimonial-card__author strong {
  color: var(--text);
  font-weight: 700;
}

.testimonial-card__artist a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.testimonial-card__artist a:hover {
  text-decoration: underline;
}

.testimonials__indicators {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.testimonials__dot:hover {
  background: var(--accent);
  opacity: 0.6;
}

.testimonials__dot.is-active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ─── Sondage feature Update (Session A.5) ───────────────────────────── */

.update-interest-wrapper {
  margin-top: var(--sp-7);
}

.update-interest {
  max-width: 38rem;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-7);
  background: var(--accent-soft);
  border: 1px solid rgba(77, 92, 229, 0.25);
  border-radius: var(--r-xl);
  text-align: center;
}

.update-interest__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.update-interest__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-2);
  line-height: 1;
}

.update-interest__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

.update-interest__text {
  color: var(--text);
  line-height: 1.55;
  font-size: 0.95rem;
  margin-bottom: var(--sp-5);
  max-width: 32rem;
}

.update-interest__actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

.update-interest__actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.update-interest--done {
  background: var(--surface);
  border-color: var(--border);
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.update-interest--done p {
  margin: 0;
}

/* ─── Partner suggestion (Session Hypeddit v2 — pleine largeur sous grid) ──
   Refacto v2 : l'encart est SORTI des action cards pour ne pas déséquilibrer
   la grille des 3 actions (la card "ads" devenait 30% plus haute que les
   2 autres en v1). Maintenant section autonome sous la grille, avec phrase
   d'intro référençant l'action ciblée pour garder le lien sémantique. */

.partner-suggestion {
  margin: var(--sp-6) 0 0;
}

.partner-suggestion__inner {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-xl);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: var(--sp-5) var(--sp-6);
}

.partner-suggestion__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(77, 92, 229, 0.15);
}

.partner-suggestion__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.partner-suggestion__icon {
  display: inline-flex;
}

.partner-suggestion__action-ref {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  /* Truncate gracieux si le titre de l'action est très long (>80 chars) */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.partner-suggestion__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.partner-suggestion__main {
  flex: 1 1 auto;
  min-width: 280px;
}

.partner-suggestion__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.01em;
}

.partner-suggestion__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 540px;
}

.partner-suggestion__cta-wrap {
  flex: 0 0 auto;
  padding-top: 4px;
}

.partner-suggestion__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--text);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.partner-suggestion__cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.partner-suggestion__arrow {
  font-size: 0.82rem;
  opacity: 0.9;
}

.partner-suggestion__transparency {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
  margin: var(--sp-3) 0 0;
  line-height: 1.5;
  padding-top: var(--sp-3);
  border-top: 1px dashed rgba(77, 92, 229, 0.18);
}

@media (max-width: 720px) {
  .partner-suggestion__inner {
    padding: var(--sp-4) var(--sp-5);
  }
  .partner-suggestion__title {
    font-size: 1rem;
  }
  .partner-suggestion__desc {
    font-size: 0.85rem;
  }
  .partner-suggestion__body {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .partner-suggestion__cta-wrap {
    width: 100%;
  }
  .partner-suggestion__cta {
    width: 100%;
    justify-content: center;
  }
  .partner-suggestion__action-ref {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .partner-suggestion__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Disclosure footer pour les liens partenaires (Session Hypeddit) —
   mention discrète, en italique, sous la nav footer. */
.site-footer__legal-note {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
}
.site-footer__legal-note p {
  margin: 0;
}
.site-footer__legal-note a {
  color: var(--text-light);
  text-decoration: underline;
}
.site-footer__legal-note a:hover {
  color: var(--accent);
}

/* ─── Session G : Spotify auto-fill ──────────────────────────────────── */

.spotify-lookup {
  display: flex;
  gap: var(--sp-3);
  align-items: stretch;
}
.spotify-lookup__input {
  flex: 1;
  min-width: 0;
}
.spotify-lookup__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .spotify-lookup { flex-direction: column; }
  .spotify-lookup__btn { width: 100%; }
}

.spotify-preview {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.spotify-preview__artwork {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}
.spotify-preview__info { flex: 1; min-width: 0; }
.spotify-preview__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--text);
}
.spotify-preview__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spotify-error {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-2) var(--sp-3);
  background: #fef3f2;
  border-left: 3px solid #ef4444;
  font-size: 0.85rem;
  color: #991b1b;
}

/* ─── Session G : period helper (encart S4A) ─────────────────────────── */

.period-helper {
  background: #fffaeb;
  border-left: 4px solid #f59e0b;
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.period-helper__title {
  margin: 0 0 var(--sp-2);
  font-size: 0.92rem;
  font-weight: 700;
  color: #92400e;
}
.period-helper__body {
  margin: 0 0 var(--sp-2);
  font-size: 0.88rem;
  color: #78350f;
}
.period-helper__list {
  margin: 0 0 var(--sp-2);
  padding-left: 20px;
  font-size: 0.88rem;
  color: #78350f;
}
.period-helper__list li { margin-bottom: 2px; }
.period-helper__footer {
  margin: 0;
  font-size: 0.82rem;
  color: #92400e;
}

/* ─── Session G : draft restore notice ───────────────────────────────── */

.draft-restore-notice {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.draft-restore-notice .btn--small {
  padding: 4px 12px;
  font-size: 0.78rem;
}

/* ─── Session G : séparateur "ou remplis manuellement" ───────────────── */

.form-separator {
  display: flex;
  align-items: center;
  margin: var(--sp-5) 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-separator::before,
.form-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-strong);
}
.form-separator__text {
  padding: 0 var(--sp-3);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
