/* Test TDAH enfant [ce_test] : palette du site (crème, menthe, rose, jaune, teal). */

html body .ce-test {
  --ce-cream: #FDFCF9;
  --ce-mint: #9ADDD9;
  --ce-pink: #F2B8C6;
  --ce-yellow: #F5E06D;
  --ce-teal: #2A9490;
  --ce-ink: #2D2D3A;
  --ce-dark: #1C1B2E;
  --ce-muted: #6B6B7B;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ce-ink);
  box-sizing: border-box;
}
html body .ce-test *, html body .ce-test *::before, html body .ce-test *::after { box-sizing: border-box; }

html body .ce-test .ce-test__card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  margin: 0 0 20px;
  box-shadow: 0 10px 40px rgba(28, 27, 46, .08);
  border: 1px solid rgba(28, 27, 46, .06);
}
html body .ce-test .ce-test__card--intro { background: linear-gradient(135deg, #fff 0%, #F2FBFA 100%); text-align: center; }
html body .ce-test .ce-test__card--lead { background: linear-gradient(135deg, #FFFBE6 0%, #fff 100%); border-color: rgba(245, 224, 109, .6); }
html body .ce-test .ce-test__card--home { background: #F7FCFB; }

html body .ce-test .ce-test__eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ce-teal);
  margin-bottom: 10px;
}
html body .ce-test .ce-test__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ce-dark);
  margin: 0 0 14px;
  outline: none;
}
html body .ce-test .ce-test__lead,
html body .ce-test .ce-test__text { font-size: 1rem; line-height: 1.65; margin: 0 0 14px; color: var(--ce-ink); }
html body .ce-test .ce-test__h { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ce-dark); margin: 18px 0 8px; }
html body .ce-test a:not([class]) { color: var(--ce-teal); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

html body .ce-test .ce-test__facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 4px 0 22px; }
html body .ce-test .ce-test__facts li { background: rgba(154, 221, 217, .25); color: var(--ce-dark); border-radius: 100px; padding: 6px 14px; font-size: .85rem; font-weight: 600; margin: 0; }

html body .ce-test .ce-test__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 100px;
  background: var(--ce-yellow);
  color: var(--ce-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 0 #d9c34f;
  transition: transform .15s ease, box-shadow .15s ease;
}
html body .ce-test .ce-test__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #d9c34f; }
html body .ce-test .ce-test__btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #d9c34f; }
html body .ce-test .ce-test__btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
html body .ce-test .ce-test__btn--small { min-height: 46px; padding: 10px 22px; font-size: .95rem; }

html body .ce-test .ce-test__disclaimer { font-size: .8rem; line-height: 1.5; color: var(--ce-muted); margin: 18px 0 0; }

html body .ce-test .ce-test__progress { height: 8px; border-radius: 100px; background: rgba(154, 221, 217, .25); overflow: hidden; margin-bottom: 18px; }
html body .ce-test .ce-test__progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--ce-mint), var(--ce-teal)); border-radius: 100px; transition: width .3s ease; }
html body .ce-test .ce-test__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; font-weight: 600; color: var(--ce-muted); margin-bottom: 14px; }
html body .ce-test .ce-test__block { color: var(--ce-teal); text-transform: uppercase; letter-spacing: .06em; }
html body .ce-test .ce-test__context { font-size: .85rem; color: var(--ce-muted); margin: 0 0 6px; }
html body .ce-test .ce-test__q { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.4; color: var(--ce-dark); margin: 0 0 8px; outline: none; }
html body .ce-test .ce-test__hint { font-size: .85rem; color: var(--ce-muted); margin: 0 0 6px; }

html body .ce-test .ce-test__options { display: grid; gap: 10px; margin: 18px 0 8px; }
html body .ce-test .ce-test__options--scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body .ce-test .ce-test__opt {
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid rgba(28, 27, 46, .1);
  background: var(--ce-cream);
  color: var(--ce-dark);
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
html body .ce-test .ce-test__options--scale5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html body .ce-test .ce-test__options--scale .ce-test__opt,
html body .ce-test .ce-test__options--scale5 .ce-test__opt { text-align: center; padding: 12px 8px; }
html body .ce-test .ce-test__opt:hover { border-color: var(--ce-mint); }
html body .ce-test .ce-test__opt:focus-visible,
html body .ce-test .ce-test__btn:focus-visible,
html body .ce-test .ce-test__back:focus-visible { outline: 3px solid var(--ce-teal); outline-offset: 2px; }
html body .ce-test .ce-test__opt[aria-pressed="true"] { border-color: var(--ce-teal); background: rgba(154, 221, 217, .3); }
html body .ce-test .ce-test__opt:active { transform: scale(.98); }

html body .ce-test .ce-test__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
html body .ce-test .ce-test__back { background: none; border: 0; padding: 10px 4px; color: var(--ce-muted); font-family: 'Inter', sans-serif; font-weight: 600; font-size: .92rem; cursor: pointer; }
html body .ce-test .ce-test__back:hover { color: var(--ce-dark); }

html body .ce-test .ce-test__gauges { display: grid; gap: 16px; margin: 20px 0 16px; }
html body .ce-test .ce-test__gauge-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--ce-dark); }
html body .ce-test .ce-test__gauge-track { position: relative; height: 14px; border-radius: 100px; background: #EFEFF4; }
html body .ce-test .ce-test__gauge-fill { display: block; height: 100%; border-radius: 100px; }
html body .ce-test .ce-test__gauge-fill--mint { background: linear-gradient(90deg, var(--ce-mint), var(--ce-teal)); }
html body .ce-test .ce-test__gauge-fill--pink { background: linear-gradient(90deg, var(--ce-pink), #E58AA3); }
html body .ce-test .ce-test__gauge-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ce-dark); opacity: .35; }

html body .ce-test .ce-test__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
html body .ce-test .ce-test__pill { border-radius: 100px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }
html body .ce-test .ce-test__pill.is-on { background: rgba(154, 221, 217, .35); color: var(--ce-dark); }
html body .ce-test .ce-test__pill.is-off { background: #F2F2F5; color: var(--ce-muted); }

html body .ce-test .ce-test__note { background: #F7F7FA; border-left: 4px solid var(--ce-mint); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: .93rem; line-height: 1.6; margin: 0 0 12px; }
html body .ce-test .ce-test__note--parent { border-left-color: var(--ce-pink); background: #FFF6F8; }
html body .ce-test .ce-test__next { border-top: 1px solid rgba(28, 27, 46, .08); margin-top: 18px; padding-top: 4px; }

html body .ce-test .ce-test__moment { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(28, 27, 46, .06); }
html body .ce-test .ce-test__moment-img { width: 92px; height: auto; border-radius: 8px; box-shadow: 0 4px 14px rgba(28, 27, 46, .12); display: block; }
html body .ce-test .ce-test__moment .ce-test__h { margin-top: 0; }
html body .ce-test .ce-test__moment .ce-test__text { margin: 0; font-size: .95rem; }

html body .ce-test .ce-test__offer { margin: 0 0 20px; }

html body .ce-test .ce-test__form { display: grid; gap: 12px; margin-top: 8px; }
html body .ce-test .ce-test__field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ce-dark); }
html body .ce-test .ce-test__field input {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(28, 27, 46, .12);
  background: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--ce-dark);
}
html body .ce-test .ce-test__field input:focus { outline: none; border-color: var(--ce-teal); }
html body .ce-test .ce-test__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--ce-muted); }
html body .ce-test .ce-test__consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ce-teal); }
html body .ce-test .ce-test__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
html body .ce-test .ce-test__form-msg { font-size: .88rem; color: #B03A5B; margin: 0; min-height: 1.2em; }
html body .ce-test .ce-test__success { background: rgba(154, 221, 217, .3); border-radius: 12px; padding: 14px 16px; font-weight: 600; margin: 8px 0 0; }

html body .ce-test .ce-test__fiche-info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .92rem; margin: 0 0 8px; }
html body .ce-test .ce-test__fiche-info dt { font-weight: 700; color: var(--ce-dark); }
html body .ce-test .ce-test__fiche-info dd { margin: 0; }
html body .ce-test .ce-test__fiche-list { list-style: none; padding: 0; margin: 0 0 8px; font-size: .9rem; }
html body .ce-test .ce-test__fiche-list li { padding: 6px 0; border-bottom: 1px dashed rgba(28, 27, 46, .1); line-height: 1.5; margin: 0; color: var(--ce-muted); }
html body .ce-test .ce-test__fiche-list li.is-on { color: var(--ce-dark); font-weight: 600; }
html body .ce-test .ce-test__fiche-freq { display: inline-block; min-width: 92px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ce-teal); }
html body .ce-test .ce-test__fiche-notes { height: 120px; border: 1px dashed rgba(28, 27, 46, .25); border-radius: 12px; margin-bottom: 8px; }

html body .ce-test .ce-test__tools { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 4px 0; }

@media (max-width: 600px) {
  html body .ce-test { padding: 0; }
  html body .ce-test .ce-test__card { padding: 22px 18px; border-radius: 20px; }
  html body .ce-test .ce-test__options--scale { grid-template-columns: 1fr 1fr; }
  html body .ce-test .ce-test__options--scale5 { grid-template-columns: 1fr; }
  html body .ce-test .ce-test__btn { width: 100%; }
  html body .ce-test .ce-test__nav .ce-test__btn { width: auto; }
  html body .ce-test .ce-test__moment { grid-template-columns: 70px 1fr; }
  html body .ce-test .ce-test__moment-img { width: 70px; }
}

/* Impression de la fiche d'observation seule */
@media print {
  html.ce-test-printing body * { visibility: hidden !important; }
  html.ce-test-printing .ce-test__fiche,
  html.ce-test-printing .ce-test__fiche * { visibility: visible !important; }
  html.ce-test-printing .ce-test__fiche { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; padding: 0; }
  html.ce-test-printing .ce-test__no-print { display: none !important; }
}
