/* =========================================================================
   Test TDAH gratuit en ligne — feuille de style autonome
   Identité visuelle : Or / Ambre doré sur fond crème + héros sombre espresso
   Polices : Syne (titres) + Hanken Grotesk (corps)
   ========================================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg,
iframe {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Tokens ---------- */
:root {
  /* 8e palette du réseau : OR / AMBRE DORÉ (~41°) */
  --gold: #ca8a04;          /* primaire */
  --gold-strong: #8a6100;   /* liens/texte sur clair (AA) */
  --gold-hover: #a8720a;    /* survol boutons */
  --gold-soft: #fef6e0;     /* fond ambré très clair */
  --gold-tint: rgba(202, 138, 4, 0.12);
  --gold-tint-strong: rgba(202, 138, 4, 0.22);

  --ink: #241803;           /* encre foncée : texte sur boutons or (AA) */

  --bg: #fffdf8;            /* page (blanc chaud) */
  --bg-soft: #faf2e1;       /* sections douces (crème) */
  --surface: #ffffff;       /* cartes */
  --text: #241f17;          /* corps */
  --muted: #6c6253;         /* texte secondaire */
  --border: #ece2cf;        /* bordures chaudes */

  --hero-bg: #1d1913;       /* héros espresso sombre */
  --hero-bg-2: #2a241b;
  --hero-text: #fbf5e8;
  --hero-muted: #c8bda8;
  --hero-line: rgba(251, 245, 232, 0.14);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(58, 42, 8, 0.06);
  --shadow: 0 14px 40px -18px rgba(58, 42, 8, 0.30);
  --shadow-lg: 0 30px 70px -28px rgba(40, 28, 4, 0.45);
  --maxw: 1180px;
}

/* ---------- Typographie ---------- */
h1,
h2,
h3,
h4 {
  font-family: "Epilogue", "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}
h3 {
  font-size: 1.22rem;
  font-weight: 700;
}
p {
  margin: 0;
}
strong {
  font-weight: 700;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.wrap--narrow {
  max-width: 820px;
}
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.section--soft {
  background: var(--bg-soft);
}
.section--gold {
  background: linear-gradient(160deg, var(--gold-soft), #fffaf0);
}
.section-head {
  max-width: 660px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-head p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-strong);
  background: var(--gold-tint);
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
}
.btn--primary {
  background: var(--gold);
  color: var(--ink);          /* encre foncée = lisible AA sur or */
  box-shadow: 0 10px 26px -10px rgba(202, 138, 4, 0.7);
}
.btn--primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}
.btn--on-dark {
  background: transparent;
  color: var(--hero-text);
  border-color: var(--hero-line);
}
.btn--on-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Epilogue", sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.brand b {
  color: var(--gold-strong);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
  color: var(--text);
  background: var(--gold-tint);
}
.nav-link[aria-current="page"] {
  color: var(--gold-strong);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.nav-cta {
  margin-left: 0.4rem;
}
.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.burger .icon-close {
  display: none;
}
.burger[aria-expanded="true"] .icon-open {
  display: none;
}
.burger[aria-expanded="true"] .icon-close {
  display: block;
}
.mobile-menu {
  display: none;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.hidden {
  display: none;
}
.mobile-menu .nav-link {
  display: block;
  padding: 0.8rem 0.9rem;
  font-size: 1.02rem;
}
.mobile-menu .nav-link[aria-current="page"]::after {
  display: none;
}
.mobile-menu .btn {
  margin-top: 0.5rem;
}

/* ---------- Hero (sombre, split) ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(202, 138, 4, 0.20), transparent 55%),
    linear-gradient(165deg, var(--hero-bg), var(--hero-bg-2));
  color: var(--hero-text);
  /* padding-top large : évite que l'eyebrow touche le header sticky */
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.2rem);
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.hero h1 {
  color: var(--hero-text);
  margin-top: 0.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lead {
  margin-top: 1.15rem;
  color: var(--hero-muted);
  font-size: 1.12rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--gold);
  background: rgba(202, 138, 4, 0.14);
  border: 1px solid rgba(202, 138, 4, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
}
.eyebrow svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--hero-muted);
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
}
.chip svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gold);
  flex: none;
}

/* Carte iframe — FOND BLANC obligatoire (raccord propre avec brain-institute) */
.iframe-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.iframe-card__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.iframe-card__dots {
  display: inline-flex;
  gap: 5px;
}
.iframe-card__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}
.iframe-card__dots i:first-child {
  background: var(--gold);
}
.iframe-card iframe {
  background: #ffffff;
}

/* ---------- Bandeau de réassurance ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-strong);
  margin-bottom: 1rem;
}
.feature__ic svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  margin-bottom: 0.4rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Choix d'évaluation ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 880px;
  margin-inline: auto;
}
.choice-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.choice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--gold);
}
.choice-card__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-strong);
  margin: 0.4rem auto 1.1rem;
}
.choice-card h3 {
  font-size: 1.4rem;
}
.choice-card p {
  color: var(--muted);
  margin: 0.6rem 0 1.4rem;
}

/* ---------- Article / prose ---------- */
.prose h2 {
  margin-bottom: 0.8rem;
}
.prose h3 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.6rem;
}
.prose p {
  color: var(--text);
  margin-bottom: 1.1rem;
}
.prose p + p {
  margin-top: 0;
}
.callout {
  background: var(--gold-soft);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.4rem;
  margin: 1.4rem 0 1.8rem;
}
.callout p {
  margin: 0;
  font-weight: 500;
}
.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 0.4rem;
}
.sign {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}
.sign__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-strong);
  font-weight: 700;
  font-size: 0.85rem;
}
.sign p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Aperçu des questions ---------- */
.qgroup + .qgroup {
  margin-top: 2.2rem;
}
.qgroup__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
}
.tag--a {
  background: #fbe7c2;
  color: #7a5300;
}
.tag--b {
  background: #e7ecda;
  color: #4f5a32;
}
.tag--c {
  background: #f4e1cf;
  color: #7c4a1d;
}
.qgroup__count {
  font-size: 0.88rem;
  color: var(--muted);
}
.qlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
}
.qitem {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
}
.qitem__n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-strong);
  font-weight: 700;
  font-size: 0.8rem;
}
.qitem p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin-inline: auto;
}
.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.blog-card h3 {
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}
.blog-card:hover h3 {
  color: var(--gold-strong);
}
.blog-card p {
  color: var(--muted);
  font-size: 0.94rem;
}
.blog-card--all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gold-soft);
  border-color: var(--gold-tint-strong);
}
.blog-card--all span {
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  color: var(--gold-strong);
  font-size: 1.1rem;
}
.blog-card--all small {
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ---------- FAQ (accordéon details/summary) ---------- */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0 1.3rem;
  transition: box-shadow 0.18s ease;
}
.faq details[open] {
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-family: "Epilogue", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .chev {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gold-strong);
  transition: transform 0.22s ease;
}
.faq details[open] summary .chev {
  transform: rotate(180deg);
}
.faq details > div {
  padding: 0 0 1.2rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hero-bg);
  color: var(--hero-muted);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 5vw, 4rem);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Epilogue", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--hero-text);
  margin-bottom: 1rem;
}
.footer-brand b {
  color: var(--gold);
}
.footer-about {
  max-width: 38ch;
  font-size: 0.95rem;
}
.footer-col h3 {
  font-family: "Epilogue", sans-serif;
  font-size: 1rem;
  color: var(--hero-text);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.65rem;
}
.footer-col a,
.footer-col li {
  color: var(--hero-muted);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-meta svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  flex: none;
}
.footer-disclaimer {
  border-top: 1px solid var(--hero-line);
  padding-block: 1.4rem;
  font-size: 0.84rem;
  color: var(--hero-muted);
  opacity: 0.85;
}
.footer-bar {
  border-top: 1px solid var(--hero-line);
  padding-block: 1.4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}
.footer-bar nav {
  display: flex;
  gap: 1.3rem;
}
.footer-bar a:hover {
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.02fr;
    align-items: start;
  }
  .hero-copy {
    position: sticky;
    top: 96px;
  }
}
@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
