/* Page /guidance-parentale/ — s'appuie sur les composants .hpi-*
   (hpi.css) et ajoute : l'illustration cabinet / visio reliés à la maison,
   les trois formats, les thèmes de travail et le volet pratique. */

/* ILLUSTRATION -------------------------------------------------------------- */
.gp-art__frame { fill: var(--forest); }
.gp-art__glass { fill: var(--hpi-leaf); }
.gp-art__parent--a { fill: var(--sage); }
.gp-art__parent--b { fill: var(--sand); }
.gp-art__room { fill: var(--sand); }
.gp-art__chair { fill: var(--forest); }
.gp-art__table { fill: var(--terracotta); }

.gp-art__base {
  fill: none;
  stroke: var(--forest);
  stroke-width: 4;
  stroke-linecap: round;
}

.gp-art__thread {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2.4;
  stroke-dasharray: 6 7;
  stroke-linecap: round;
}

.gp-art__house {
  fill: var(--ivory-light);
  stroke: var(--terracotta);
  stroke-width: 3;
  stroke-linejoin: round;
}

.gp-art__child { fill: var(--forest); }
.gp-art__dot { fill: var(--terracotta); opacity: .55; }

/* TROIS FORMATS --------------------------------------------------------------- */
.gp-formats {
  padding: clamp(4rem, 7vw, 6rem) 7vw;
  background: linear-gradient(120deg, #ffffff2e, transparent 45%), var(--sage-light);
}

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

.gp-formats__grid li {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.6rem 1.5rem;
  border-radius: 1.1rem;
  background: var(--hpi-leaf);
}

.gp-formats__grid svg {
  width: 2.6rem;
  height: 2.6rem;
  padding: .55rem;
  border-radius: 50%;
  background: var(--hpi-sand-light);
  fill: none;
  stroke: var(--terracotta-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-formats__grid b {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
}

.gp-formats__grid span {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* THÈMES DE TRAVAIL ---------------------------------------------------------- */
.gp-themes {
  padding: clamp(4.5rem, 8vw, 7rem) 7vw;
}

.gp-themes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gp;
}

.gp-themes__grid li {
  counter-increment: gp;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracotta);
  border-radius: 1.1rem;
  background: var(--ivory-light);
}

.gp-themes__grid li::before {
  content: counter(gp, decimal-leading-zero);
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 1rem;
}

.gp-themes__grid h3 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.gp-themes__grid p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* CÔTÉ PRATIQUE --------------------------------------------------------------- */
.gp-practical {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.gp-practical article {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--ivory-light);
}

.gp-practical article.gp-practical--limits {
  border-color: transparent;
  background: var(--hpi-sand-light);
}

.gp-practical h3 {
  margin: .5rem 0 1rem;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
}

.gp-practical ul {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-practical li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink);
  font-size: .96rem;
  line-height: 1.55;
}

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

/* Bloc urgence (refinements.css) dans l'encart « limites » : sans les puces
   locales de .gp-practical. */
.gp-practical .urgence li {
  padding-left: 0;
  font-size: inherit;
}

.gp-practical .urgence li::before {
  content: none;
}

/* RESPONSIVE ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .gp-themes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gp-formats__grid,
  .gp-practical {
    grid-template-columns: 1fr;
  }
}

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