/* =============================================================
   test-tdah-gratuit-sans-inscription.fr — feuille de style
   Charte : bleu primaire #2563EB + teinte claire #B3E2FD
   Polices : Lora (titres, serif) + Manrope (corps, sans)
   Layout hand-written, aucune dépendance utilitaire.
   ============================================================= */

/* ---- Design tokens ---- */
:root {
  /* Marque */
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;        /* primaire */
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --sky-200: #b3e2fd;         /* teinte claire */
  --sky-100: #e3f3fe;
  --sky-50:  #f3f9ff;

  /* Neutres */
  --ink-900: #0f1b2d;         /* texte fort, fond foncé */
  --ink-700: #2b3a4f;
  --ink-500: #54657c;         /* texte secondaire */
  --ink-300: #8a99ab;
  --line:    #e2e8f1;
  --surface: #ffffff;
  --paper:   #f7fafd;

  /* Sémantique universelle */
  --ok:   #15803d;
  --warn: #b45309;

  /* Système */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow-md: 0 10px 30px -12px rgba(37, 99, 235, .28);
  --shadow-lg: 0 24px 60px -22px rgba(15, 27, 45, .35);
  --maxw: 1180px;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---- Reset léger ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink-900); line-height: 1.2; font-weight: 600; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky-200); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-600); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---- Conteneurs ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--paper { background: var(--paper); }
.section--sky { background: linear-gradient(180deg, var(--sky-50), #fff); }

/* =============================================================
   HEADER — barre à filet bleu + nav alignée à gauche
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; gap: 1.5rem;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--ink-900); }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand strong { color: var(--blue-600); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.main-nav a {
  padding: .5rem .85rem; border-radius: 9px; font-weight: 600; font-size: .94rem;
  color: var(--ink-500); transition: background .15s, color .15s;
}
.main-nav a:hover { color: var(--blue-700); background: var(--sky-100); }
.main-nav a[aria-current="page"] { color: var(--blue-700); background: var(--sky-100); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--sky-200); }
.btn--ghost:hover { background: var(--sky-100); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.header-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; align-items: center; justify-content: center; color: var(--ink-700);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--line); padding-block: .75rem 1rem; }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: .7rem .5rem; font-weight: 600; color: var(--ink-700);
  border-radius: 9px;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--sky-100); color: var(--blue-700); }
.mobile-nav .btn { margin-top: .5rem; }

/* =============================================================
   HERO — asymétrique : texte à gauche, panneau iframe à droite
   ============================================================= */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 90% -10%, var(--sky-100), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, var(--blue-100), transparent 55%); }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-700); background: #fff; border: 1px solid var(--sky-200);
  padding: .4rem .85rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-top: 1.1rem; letter-spacing: -.01em;
}
.hero__lead { font-size: 1.12rem; color: var(--ink-500); margin-top: 1.1rem; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; }
.hero__points li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; color: var(--ink-700); }
.hero__points svg { width: 18px; height: 18px; color: var(--blue-600); }

/* Panneau test (encadré distinctif, onglet supérieur) */
.test-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.test-panel__top {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.2rem; background: var(--ink-900); color: #fff;
  font-weight: 700; font-size: .9rem;
}
.test-panel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky-200); box-shadow: 0 0 0 4px rgba(179, 226, 253, .25); }
.test-panel__body { padding: 0; background: var(--paper); }
.test-panel iframe { width: 100%; height: 900px; border: 0; display: block; }

/* =============================================================
   STEPS — rangée numérotée (remplace la grille 4 cartes du template)
   ============================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.3rem 1.4rem;
  border-top: 4px solid var(--blue-600);
}
.step__num {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem;
  color: var(--blue-600); line-height: 1;
}
.step h3 { font-size: 1.05rem; margin: .7rem 0 .4rem; }
.step p { font-size: .92rem; color: var(--ink-500); }

/* =============================================================
   Sections de contenu génériques
   ============================================================= */
.section__head { max-width: 640px; margin-bottom: 2.4rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker { color: var(--blue-700); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: .5rem; }
.section__head p { color: var(--ink-500); margin-top: .8rem; }

/* Cartes choix test */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.choice {
  display: flex; flex-direction: column; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.choice:hover { border-color: var(--sky-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.choice__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-700); }
.choice__icon svg { width: 26px; height: 26px; }
.choice h3 { font-size: 1.25rem; }
.choice p { color: var(--ink-500); flex: 1; }
.choice .btn { align-self: flex-start; }

/* Article éditorial */
.prose { color: var(--ink-700); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.4rem; padding-bottom: .5rem; border-bottom: 2px solid var(--sky-100); }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; color: var(--blue-700); }
.prose p { color: var(--ink-500); }
.prose strong { color: var(--ink-900); }
.callout {
  background: var(--sky-50); border-left: 5px solid var(--blue-600);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem;
}
.callout p { color: var(--ink-700); font-weight: 500; }
.prose a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--blue-600); }
.prose em { font-style: italic; }
.prose-table { overflow-x: auto; }
.prose-table table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.prose-table th, .prose-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.prose-table thead th { background: var(--sky-100); color: var(--blue-700); font-weight: 700; }
.prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table td:first-child { color: var(--ink-700); font-weight: 600; }
.prose-table__src { font-size: .82rem; color: var(--ink-300); margin-top: .5rem; }
.check-list { display: grid; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.check-list li { position: relative; padding-left: 2.1rem; color: var(--ink-500); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 6px; background: var(--blue-600); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }

/* Listes à puces numérotées en grille (symptômes) */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.tile {
  display: flex; align-items: flex-start; gap: .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
}
.tile__n { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--sky-100); color: var(--blue-700); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.tile p { font-size: .92rem; color: var(--ink-700); }

/* Groupes de symptômes (child) */
.symptom-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.symptom-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.symptom-card h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.symptom-card li { position: relative; padding-left: 1.2rem; font-size: .92rem; color: var(--ink-500); margin-top: .4rem; }
.symptom-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }

.dim-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-weight: 700; font-size: .78rem; }
.dim-tag--att { background: var(--sky-100); color: var(--blue-700); }
.dim-tag--hyp { background: #ede9fe; color: #6d28d9; }
.dim-tag--imp { background: #fef3c7; color: #b45309; }
.dim-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.dim-row span.count { color: var(--ink-300); font-size: .85rem; font-weight: 600; }
.dim-block + .dim-block { margin-top: 2.2rem; }

.notice {
  display: flex; gap: 1rem; background: var(--sky-50);
  border: 1px solid var(--sky-200); border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.notice svg { flex: none; width: 24px; height: 24px; color: var(--blue-600); margin-top: 2px; }
.notice h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; color: var(--ink-900); margin-bottom: .3rem; }
.notice p { color: var(--ink-500); font-size: .95rem; }
.notice .btn { margin-top: .8rem; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.blog-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.blog-card:hover { border-color: var(--sky-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.blog-card:hover h3 { color: var(--blue-700); }
.blog-card p { font-size: .9rem; color: var(--ink-500); }
.blog-card--all { display: grid; place-items: center; text-align: center; background: var(--sky-50); border-style: dashed; border-color: var(--sky-200); }
.blog-card--all span { display: block; }
.blog-card--all .lead { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; color: var(--blue-700); }

/* =============================================================
   FAQ — accordéon <details> à marqueur +/- (distinct du template)
   ============================================================= */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.3rem; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--sky-200); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none; cursor: pointer; padding: 1.15rem 0;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--font-sans);
  width: 30px; height: 30px; border-radius: 8px; background: var(--sky-100); color: var(--blue-700);
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center; transition: transform .2s, background .2s;
}
.faq details[open] summary::after { content: "−"; background: var(--blue-600); color: #fff; }
.faq details > p { color: var(--ink-500); padding-bottom: 1.2rem; margin: 0; }

/* =============================================================
   Page intérieure (titre simple)
   ============================================================= */
.page-head { background: linear-gradient(180deg, var(--sky-100), #fff); padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--ink-500); margin-top: .8rem; font-size: 1.1rem; }

.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.doc-card + .doc-card { margin-top: 1.3rem; }
.doc-card h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.doc-card p + p { margin-top: .8rem; }
.doc-card address { font-style: normal; background: var(--sky-50); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--ink-700); }
.doc-card a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   FOOTER — fond encre, 3 colonnes + filet bleu supérieur
   ============================================================= */
.site-footer { background: var(--ink-900); color: #cdd7e4; border-top: 5px solid var(--blue-600); }
.site-footer a { color: #cdd7e4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; color: #fff; }
.footer-brand .brand__mark { box-shadow: none; }
.footer-about { margin-top: 1rem; max-width: 42ch; font-size: .95rem; color: #9fb0c4; }
.footer-col h3 { font-family: var(--font-sans); color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col li + li { margin-top: .6rem; }
.footer-col li { font-size: .95rem; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; font-size: .85rem; color: #8597ad; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #8597ad; }
.footer-bottom nav { display: flex; gap: 1.4rem; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lead { max-width: none; }
  .test-panel iframe { height: 760px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: 1fr; }
  .symptom-cards { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .tile-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
