/* =========================================================================
   Diagnostic TDAH — feuille de style autonome
   Palette : Vert #059669 / #E6F5EC  •  Polices : Bricolage Grotesque + Figtree
   ========================================================================= */

:root {
  /* Vert primaire et déclinaisons */
  --green: #059669;
  --green-hover: #047857;
  --green-deep: #065f46;
  --green-50: #e6f5ec;
  --green-100: #d3ecdd;
  --green-200: #b9e0ca;

  /* Texte / surfaces */
  --ink: #11271f;
  --text: #3a4b44;
  --muted: #61736b;
  --bg: #ffffff;
  --bg-tint: #f3faf6;
  --card: #ffffff;
  --border: #e3ede7;
  --border-strong: #cfe0d7;

  /* Héros & footer sombres (vert profond) */
  --dark-1: #06392b;
  --dark-2: #0a5a41;
  --footer: #0a2a20;

  /* Accents dimensionnels */
  --tag-att-bg: #e6f5ec; --tag-att-fg: #047857;
  --tag-hyp-bg: #def1ef; --tag-hyp-fg: #0e7490;
  --tag-imp-bg: #fdf0dd; --tag-imp-fg: #b45309;

  /* Géométrie */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(6, 60, 46, 0.07);
  --shadow: 0 18px 44px -20px rgba(6, 60, 46, 0.30);
  --shadow-lg: 0 30px 70px -28px rgba(6, 60, 46, 0.40);

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --maxw-narrow: 800px;
}

/* ----- 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-body);
  background: var(--bg);
  color: var(--text);
  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-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}
strong { color: var(--ink); font-weight: 600; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ----- Conteneurs & sections ----- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding: 76px 0; }
.section--tint { background: var(--bg-tint); }
.section--white { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { margin: 0 auto 14px; }
.section-head h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-deep);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 15px; border-radius: var(--radius-pill); width: max-content;
}
.eyebrow svg { width: 15px; height: 15px; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 12px 24px -10px rgba(5,150,105,0.7); }
.btn--primary:hover { background: var(--green-hover); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--green-deep); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.2); }
.btn--block { width: 100%; }

/* =========================================================================
   En-tête
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--green); color: #fff; border-radius: 11px; flex: none;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand b { color: var(--green); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-weight: 500; color: var(--text); padding: 9px 14px; border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav__link:hover { background: var(--green-50); color: var(--green-deep); }
.nav__link[aria-current="page"] { color: var(--green-deep); background: var(--green-50); font-weight: 600; }
.header-cta { margin-left: 10px; padding: 11px 20px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 9px; color: var(--ink);
}
.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(--border); padding: 14px 0 20px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 500; color: var(--text); }
.mobile-nav a[aria-current="page"] { background: var(--green-50); color: var(--green-deep); }
.mobile-nav .btn { margin-top: 10px; }

/* =========================================================================
   Héros sombre avec encart blanc pour l'iframe
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 80% -10%, var(--dark-2) 0%, var(--dark-1) 55%, #04271d 100%);
  color: #eaf6f0;
  padding: 64px 0 72px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(16,185,129,0.30), transparent 70%);
}
.hero::before { width: 460px; height: 460px; top: -180px; right: -120px; }
.hero::after { width: 380px; height: 380px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(45,212,191,0.18), transparent 70%); }

.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.hero .eyebrow { background: rgba(230,245,236,0.14); color: #c9f3df; }
.hero__title {
  color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  margin: 20px 0 16px; letter-spacing: -0.02em;
}
.hero__lead { font-size: 1.16rem; color: #c3ddd2; max-width: 620px; margin: 0 auto; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: #dcefe4; border-radius: var(--radius-pill); padding: 8px 16px; font-size: 0.9rem; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; color: #6ee7b7; }

/* Encart BLANC qui héberge l'iframe (raccord propre avec le fond blanc de brain-institute) */
.embed-card {
  position: relative; z-index: 1;
  background: #ffffff;
  border-radius: 22px;
  padding: 12px;
  margin: 40px auto 0;
  max-width: 860px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.5);
}
.embed-card__label {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px 14px; color: var(--muted); font-size: 0.86rem; font-weight: 500;
}
.embed-card__label svg { width: 16px; height: 16px; color: var(--green); }
.embed-card iframe { border-radius: 14px; background: #fff; overflow: hidden; }

/* =========================================================================
   Étapes (parcours)
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  background: var(--green-50); color: var(--green-deep); border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* =========================================================================
   Atouts / confiance
   ========================================================================= */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; border-top: 4px solid var(--green); box-shadow: var(--shadow-sm);
}
.feature__icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
  background: var(--green-50); border-radius: 14px; color: var(--green);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* =========================================================================
   Cartes de choix (adulte / enfant)
   ========================================================================= */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 880px; margin: 0 auto; }
.choice {
  display: flex; flex-direction: column; text-align: center; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 30px; box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.2s;
}
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.choice__icon {
  display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; border-radius: 20px;
}
.choice__icon svg { width: 32px; height: 32px; }
.choice h3 { font-size: 1.3rem; margin-bottom: 10px; }
.choice p { color: var(--muted); margin-bottom: 24px; }
.choice .btn { margin-top: auto; }

/* =========================================================================
   Article / contenu long
   ========================================================================= */
.prose { max-width: var(--maxw-narrow); margin: 0 auto; }
.prose h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); margin: 0 0 6px;
  padding-bottom: 14px; border-bottom: 2px solid var(--green-100);
}
.prose h3 { font-size: 1.35rem; margin: 36px 0 10px; color: var(--green-deep); }
.prose p { margin: 14px 0; color: var(--text); }
.prose .callout {
  background: var(--green-50); border-left: 5px solid var(--green);
  border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 22px 0;
}
.prose .callout p { margin: 0; color: var(--ink); font-weight: 500; }
.checklist { display: grid; gap: 12px; margin: 20px 0; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px;
}
.checklist .tick {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--green); color: #fff; border-radius: 8px; font-size: 0.8rem; margin-top: 2px;
}
.factgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.factgrid li {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px;
  color: var(--muted); font-size: 0.96rem;
}
.factgrid .num {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px;
  background: var(--green-50); color: var(--green-deep); border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
}

/* Colonnes "signes" (page enfant) */
.signcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px; }
.signcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.signcard__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; background: var(--green-50); border-radius: 14px; color: var(--green); }
.signcard__icon svg { width: 26px; height: 26px; }
.signcard h3 { font-size: 1.15rem; margin-bottom: 12px; }
.signcard ul { display: grid; gap: 8px; }
.signcard li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.signcard li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.notice {
  display: flex; gap: 16px; background: var(--green-50); border: 1px solid var(--green-200);
  border-radius: var(--radius); padding: 24px 26px;
}
.notice svg { flex: none; width: 26px; height: 26px; color: var(--green-deep); margin-top: 2px; }
.notice h3 { font-size: 1.12rem; margin-bottom: 8px; }
.notice p { color: var(--text); font-size: 0.97rem; margin-bottom: 14px; }

/* =========================================================================
   Aperçu des questions (groupes par dimension)
   ========================================================================= */
.qgroups { display: grid; gap: 34px; max-width: var(--maxw-narrow); margin: 0 auto; }
.qgroup__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qtag { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; padding: 5px 13px; border-radius: var(--radius-pill); }
.qtag--att { background: var(--tag-att-bg); color: var(--tag-att-fg); }
.qtag--hyp { background: var(--tag-hyp-bg); color: var(--tag-hyp-fg); }
.qtag--imp { background: var(--tag-imp-bg); color: var(--tag-imp-fg); }
.qgroup__count { color: var(--muted); font-size: 0.9rem; }
.qlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qlist li {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: border-color 0.15s, box-shadow 0.15s;
}
.qlist li:hover { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.qlist .num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--green-50); color: var(--green-deep); border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
}
.qlist p { color: var(--ink); font-size: 0.97rem; line-height: 1.5; }

/* =========================================================================
   Blog
   ========================================================================= */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-200); }
.post h3 { font-size: 1.12rem; margin-bottom: 10px; }
.post:hover h3 { color: var(--green-deep); }
.post p { color: var(--muted); font-size: 0.93rem; }
.post--all {
  align-items: center; justify-content: center; text-align: center;
  background: var(--green-50); border: 1px dashed var(--green-200);
}
.post--all span { font-family: var(--font-head); font-weight: 700; color: var(--green-deep); font-size: 1.12rem; }
.post--all small { color: var(--muted); font-size: 0.9rem; }

/* =========================================================================
   FAQ (accordéon details/summary)
   ========================================================================= */
.faq { display: grid; gap: 14px; max-width: var(--maxw-narrow); margin: 0 auto; }
.faq__item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 22px; transition: border-color 0.2s, box-shadow 0.2s;
}
.faq__item[open] { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; padding: 20px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .plus {
  flex: none; position: relative; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-50); color: var(--green-deep); transition: transform 0.25s, background 0.2s;
}
.faq__item summary .plus::before, .faq__item summary .plus::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: currentColor; border-radius: 2px;
}
.faq__item summary .plus::before { width: 11px; height: 2.4px; }
.faq__item summary .plus::after { width: 2.4px; height: 11px; transition: opacity 0.2s; }
.faq__item[open] summary .plus { background: var(--green); color: #fff; transform: rotate(180deg); }
.faq__item[open] summary .plus::after { opacity: 0; }
.faq__answer { color: var(--text); padding: 0 0 22px; font-size: 0.99rem; }

/* =========================================================================
   Pied de page (vert profond)
   ========================================================================= */
.site-footer { background: var(--footer); color: #c7dbd2; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; padding: 64px 0 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand__mark { background: var(--green); }
.site-footer__about { color: #9fbab0; max-width: 420px; font-size: 0.96rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer a:hover { color: #fff; }
.site-footer__col li { color: #9fbab0; }
.site-footer__col--info li { display: flex; align-items: center; gap: 9px; }
.site-footer__col--info svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.site-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 26px 0; color: #8aa79c; font-size: 0.86rem; max-width: 900px;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0 40px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  color: #8aa79c; font-size: 0.88rem;
}
.site-footer__legal { display: flex; gap: 24px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 940px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .signcols { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 56px 0; }
  .choices, .qlist, .factgrid, .posts { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 56px; }
}
