/* ------------------------------------------------------------------
   Charte inspirée de G&L Web Studio (site-internet-v2), version claire.
   Bleu de marque éclairci, fond aéré, police Inter, thème clair unique.
   ------------------------------------------------------------------ */
:root {
  /* Marque — version plus claire que le #0033A0 du site de prod */
  --brand: #2456d6;            /* accent principal, plus lumineux */
  --brand-light: #4f7dee;
  --brand-dark: #0033A0;       /* le bleu de marque, pour la profondeur au survol */
  --brand-gradient: linear-gradient(135deg, #2456d6 0%, #3b74e8 48%, #5b8bff 100%);
  --brand-soft: #eef3fe;       /* voile bleu très clair */
  --brand-ring: #d6e2fb;

  /* Neutres (repris de la charte, éclaircis) */
  --bg: #f6f9fe;               /* fond de page aéré */
  --card: #ffffff;
  --ink: #1e293b;              /* texte principal */
  --ink-strong: #0f172a;       /* titres */
  --muted: #64748b;            /* texte secondaire */
  --line: #e6edf6;             /* filets clairs */
  --line-soft: #eef2f8;
  --ok: #10b981;

  /* Ombres douces (type charte) */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / .05);
  --shadow: 0 4px 6px -1px rgb(15 23 42 / .07), 0 2px 4px -2px rgb(15 23 42 / .06);
  --shadow-lg: 0 20px 35px -18px rgb(36 86 214 / .28), 0 8px 16px -10px rgb(15 23 42 / .08);

  --radius: 12px;
  --radius-lg: 20px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

/* En-tête — dégradé de marque éclairci */
.masthead {
  background: linear-gradient(135deg, #2456d6 0%, #3b74e8 48%, #5b8bff 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  box-shadow: var(--shadow-lg);
}
.masthead .eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  opacity: .88;
  margin: 0 0 10px;
}
.masthead h1 { margin: 0 0 14px; font-size: 25px; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
.masthead p { margin: 0 0 10px; font-size: 15px; opacity: .96; font-weight: 300; }
.masthead p:last-child { margin-bottom: 0; }
.badge-anon {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.34);
  padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  margin-bottom: 16px;
}

/* Cartes de rubrique */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 17.5px; margin: 0 0 7px; font-weight: 700; color: var(--ink-strong);
  display: flex; gap: 11px; align-items: baseline; letter-spacing: -.01em;
}
.card h2 .num {
  flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand);
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.card .desc { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }

/* Échelle d'appréciation */
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.scale label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 8px; font-size: 12.5px; color: var(--muted);
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  min-height: 76px; justify-content: center; background: var(--card);
}
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale .dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--brand-ring); transition: inherit;
}
.scale label:hover { border-color: var(--brand-light); }
.scale input:checked + .dot { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--card); }
.scale input:checked ~ .lbl { color: var(--brand); font-weight: 600; }
.scale label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }
.scale input:focus-visible + .dot { outline: 2px solid var(--brand); outline-offset: 2px; }

textarea {
  width: 100%; margin-top: 16px; resize: vertical; min-height: 74px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.optional { font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* Bouton — style charte .btn-primary */
.submit-row { margin-top: 28px; text-align: center; }
button.primary {
  background: var(--brand); color: #fff; border: 0;
  padding: 15px 36px; border-radius: var(--radius); font-size: 16px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-lg); transition: background .15s, transform .05s, box-shadow .15s;
  font-family: inherit;
}
button.primary:hover { background: var(--brand-light); }
button.primary:active { transform: translateY(1px); }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 13px; }

/* Message de confirmation */
.thanks { text-align: center; padding: 44px 24px; }
.thanks .check {
  width: 66px; height: 66px; border-radius: 50%; background: var(--ok);
  color: #fff; display: inline-grid; place-items: center; font-size: 34px; margin-bottom: 18px;
  box-shadow: 0 10px 20px -8px rgb(16 185 129 / .5);
}
.thanks h1 { margin: 0 0 8px; font-size: 22px; color: var(--ink-strong); }
.thanks p { color: var(--muted); margin: 0; }

/* Erreur */
.error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: var(--radius); padding: 13px 16px; margin-top: 18px; font-size: 14px;
}

@media (max-width: 560px) {
  .scale { grid-template-columns: repeat(2, 1fr); }
  .masthead { padding: 24px 20px; }
  .card { padding: 20px 18px; }
  .wrap { padding-top: 28px; }
}
