/* Page /haut-potentiel/ — fil conducteur : l'arborescence (pensée qui se ramifie).
   S'appuie sur les jetons du site (index-*.css) : --forest, --terracotta, --sage,
   --sand, --ivory, --serif, --sans. */

.hpi-page {
  --hpi-branch: #c9553299;
  --hpi-leaf: #fbf7ef;
  --hpi-sand-light: #efe3d2;
}

.hpi-page h1,
.hpi-page h2 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
  text-wrap: balance;
}

.hpi-page .hpi-statement h2 {
  color: var(--ivory);
}

.hpi-wrap {
  max-width: 76rem;
  margin: 0 auto;
}

/* HÉRO --------------------------------------------------------------------- */
.hpi-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3.5rem, 7vw, 6.5rem) 7vw clamp(3rem, 6vw, 5rem);
}

.hpi-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.hpi-hero h1 em {
  color: var(--terracotta);
  font-weight: 400;
}

.hpi-hero__lead {
  max-width: 34rem;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hpi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.2rem;
}

.hpi-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.hpi-proof li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fbf7efb3;
  color: var(--forest);
  font-size: .82rem;
  font-weight: 600;
}

.hpi-proof a {
  color: inherit;
  text-decoration: none;
}

.hpi-proof .hpi-stars {
  color: var(--terracotta);
  letter-spacing: .08em;
}

.hpi-hero__art {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}

.hpi-hero__art::before {
  content: "";
  position: absolute;
  inset: 8% 6% 4%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 35% 30%, var(--hpi-sand-light), var(--sage-light) 75%);
}

.hpi-hero__art svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hpi-art__branch {
  fill: none;
  stroke: var(--terracotta);
  stroke-linecap: round;
  opacity: .8;
}

.hpi-art__node {
  fill: var(--forest);
}

.hpi-art__node--leaf {
  fill: var(--terracotta);
}

.hpi-art__node--soft {
  fill: var(--sage);
}

.hpi-art__caption {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: .5rem 1rem;
  border-radius: 99px;
  background: var(--hpi-leaf);
  box-shadow: 0 .8rem 2rem #173c3414;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1rem;
}

/* VOUS VOUS RECONNAISSEZ ---------------------------------------------------- */
.hpi-recognize {
  padding: clamp(4rem, 7vw, 6.5rem) 7vw;
  background: var(--ivory-light);
}

.hpi-heading {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.hpi-heading h2 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
}

.hpi-heading h2 em {
  color: var(--terracotta);
  font-weight: 400;
}

.hpi-heading p:not(.eyebrow) {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hpi-quotes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hpi-quotes li {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--ivory);
  transition: transform .2s, box-shadow .2s;
}

.hpi-quotes li:nth-child(4),
.hpi-quotes li:nth-child(5) {
  grid-column: span 3;
}

.hpi-quotes li:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.2rem #173c3412;
}

.hpi-quotes li::before {
  content: "“";
  position: absolute;
  top: .1rem;
  right: 1.1rem;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 1;
  opacity: .35;
}

.hpi-quotes strong {
  max-width: 18ch;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.hpi-quotes span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

/* BANDEAU « C'EST MOI QUI M'ADAPTE » --------------------------------------- */
.hpi-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4.5rem, 8vw, 7rem) 7vw;
  background: var(--forest);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.hpi-statement .eyebrow {
  color: var(--sand);
}

.hpi-statement h2 {
  max-width: 14ch;
  color: var(--ivory);
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
}

.hpi-statement h2 em {
  color: var(--sand);
  font-weight: 400;
}

.hpi-statement ul {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hpi-statement li {
  padding-left: 1.4rem;
  border-left: 2px solid var(--terracotta);
  color: #f4ebddd9;
  font-size: 1.02rem;
  line-height: 1.6;
}

.hpi-statement li b {
  display: block;
  color: var(--ivory);
  font-weight: 650;
}

/* ARBRE DES AXES DE TRAVAIL ------------------------------------------------- */
.hpi-axes {
  padding: clamp(4.5rem, 8vw, 7rem) 7vw;
}

.hpi-tree {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(4rem, 9rem) minmax(0, 1fr);
  align-items: stretch;
}

.hpi-tree__root {
  align-self: center;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
  padding: 1.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.15;
  box-shadow: 0 1.2rem 2.6rem #173c3426;
}

.hpi-tree__branches {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hpi-tree__branches path {
  fill: none;
  stroke: var(--hpi-branch);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hpi-tree__leaves {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hpi-tree__leaves li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.1rem;
  padding: 1.05rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--ivory-light);
}

.hpi-tree__leaves li::before {
  content: "";
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px #c9553222;
}

.hpi-tree__leaves h3 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
}

.hpi-tree__leaves p {
  grid-column: 2;
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

/* ADOLESCENTS / ADULTES ------------------------------------------------------ */
.hpi-audiences {
  padding: clamp(4rem, 7vw, 6rem) 7vw;
  background: linear-gradient(120deg, #ffffff2e, transparent 45%), var(--sage-light);
}

.hpi-audiences__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.hpi-audience {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.6rem;
  border-radius: 1.2rem;
  background: var(--hpi-leaf);
}

.hpi-audience img {
  width: 100%;
  height: auto;
  border-radius: .9rem;
  background: var(--ivory);
}

.hpi-audience h3 {
  margin: .2rem 0 .9rem;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
}

.hpi-audience ul {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hpi-audience li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.5;
}

.hpi-audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--terracotta);
}

.hpi-tag {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 99px;
  background: var(--hpi-sand-light);
  color: var(--terracotta-dark);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* PARCOURS + REPÈRES PRATIQUES ------------------------------------------------ */
.hpi-path {
  padding: clamp(4rem, 7vw, 6rem) 7vw;
}

.hpi-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hpi;
  position: relative;
}

.hpi-steps::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.4rem;
  right: 1.4rem;
  border-top: 2px dashed var(--hpi-branch);
}

.hpi-steps li {
  position: relative;
  counter-increment: hpi;
}

.hpi-steps li::before {
  content: counter(hpi);
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--ivory);
}

.hpi-steps h3 {
  margin: 0 0 .4rem;
  color: var(--forest);
  font-size: 1.02rem;
  font-weight: 700;
}

.hpi-steps p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}

.hpi-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--ivory-light);
  overflow: hidden;
}

.hpi-facts div {
  padding: 1.3rem 1.4rem;
  border-left: 1px solid var(--line);
}

.hpi-facts div:first-child {
  border-left: 0;
}

.hpi-facts dt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hpi-facts dd {
  margin: .35rem 0 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hpi-facts dd small {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .85rem;
}

/* FAQ ------------------------------------------------------------------------ */
.hpi-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* RESPONSIVE ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .hpi-hero,
  .hpi-statement,
  .hpi-faq {
    grid-template-columns: 1fr;
  }

  .hpi-hero__art {
    max-width: 24rem;
    order: -1;
  }

  .hpi-quotes li,
  .hpi-quotes li:nth-child(4),
  .hpi-quotes li:nth-child(5) {
    grid-column: span 3;
  }

  .hpi-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }

  .hpi-steps::before {
    display: none;
  }

  .hpi-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hpi-facts div:nth-child(3) {
    border-left: 0;
  }

  .hpi-facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .hpi-tree {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .hpi-tree__root {
    justify-self: start;
    width: 9rem;
    font-size: 1.05rem;
  }

  .hpi-tree__branches {
    display: none;
  }

  .hpi-tree__leaves {
    grid-template-rows: none;
    padding-left: 1.2rem;
    border-left: 2px solid var(--hpi-branch);
    margin-left: 4.5rem;
  }

  .hpi-audiences__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hpi-quotes {
    grid-template-columns: 1fr;
  }

  .hpi-quotes li,
  .hpi-quotes li:nth-child(4),
  .hpi-quotes li:nth-child(5) {
    grid-column: auto;
  }

  .hpi-audience {
    grid-template-columns: 1fr;
  }

  .hpi-audience img {
    width: 6rem;
  }

  .hpi-steps,
  .hpi-facts {
    grid-template-columns: 1fr;
  }

  .hpi-facts div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hpi-facts div:first-child {
    border-top: 0;
  }

  .hpi-tree__leaves {
    margin-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpi-quotes li {
    transition: none;
  }

  .hpi-quotes li:hover {
    transform: none;
  }
}

/* ============================================================================
   Page /tdah/ — mêmes composants que /haut-potentiel/ (.hpi-*), plus :
   la boucle d'interactions (illustration) et les deux axes qui convergent.
   ========================================================================== */
.tdah-loop text {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -.01em;
  text-anchor: middle;
  dominant-baseline: middle;
}

.tdah-loop__arrow {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.tdah-loop__head {
  fill: var(--terracotta);
}

.tdah-loop__node--child { fill: var(--forest); }
.tdah-loop__node--parents { fill: var(--sage); }
.tdah-loop__node--daily { fill: var(--sand); }
.tdah-loop__label--light { fill: var(--ivory); }
.tdah-loop__label--dark { fill: var(--forest); }
.tdah-loop__dot { fill: var(--terracotta); opacity: .55; }

.tdah-axes {
  padding: clamp(4.5rem, 8vw, 7rem) 7vw;
}

.tdah-axes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.tdah-axis {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--ivory-light);
}

.tdah-axis--parents {
  border-color: transparent;
  background: var(--forest);
  color: var(--ivory);
}

.tdah-axis__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.tdah-axis__rhythm {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.tdah-axis--parents .tdah-axis__rhythm {
  color: var(--sand);
}

.tdah-axis--parents .hpi-tag {
  background: #d8c4a92e;
  color: var(--sand);
}

.hpi-page .tdah-axis h3 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hpi-page .tdah-axis--parents h3 {
  color: var(--ivory);
}

.tdah-axis > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tdah-axis--parents > p {
  color: #f4ebddd1;
}

.tdah-axis ul {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tdah-axis li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: start;
  gap: .8rem;
  line-height: 1.5;
}

.tdah-axis li b {
  display: block;
  font-weight: 650;
}

.tdah-axis li span {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .92rem;
}

.tdah-axis--parents li span {
  color: #f4ebddb8;
}

.tdah-axis li i {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--hpi-sand-light);
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-style: normal;
  font-size: 1rem;
}

.tdah-axis--parents li i {
  background: #d8c4a92e;
  color: var(--sand);
}

.tdah-converge {
  display: grid;
  justify-items: center;
  text-align: center;
}

.tdah-converge svg {
  width: min(100%, 44rem);
  height: 5.5rem;
  overflow: visible;
}

.tdah-converge path {
  fill: none;
  stroke: var(--hpi-branch);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  vector-effect: non-scaling-stroke;
}

.tdah-converge__goal {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.6rem;
  border-radius: 99px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  box-shadow: 0 1rem 2.4rem #a43e2533;
}

.tdah-converge p {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .tdah-axes__grid {
    grid-template-columns: 1fr;
  }

  .tdah-converge svg {
    height: 3rem;
  }
}
