/* ---------------------------------------------------------------------------
 * programme.css — page du « Programme d'entraînement aux habiletés parentales »
 * (/programmes/habiletes-parentales/) et ses pages de retour. Chargé après
 * index-*.css, refinements.css et contact-form.css (formulaire .precontact).
 *
 * Palette du programme (supports, diaporamas, annexes) : papier, bleu nuit, bleu
 * du chat, orange, jaune, rose. Jamais le vert sombre du site dans les fonds du
 * programme ; les boutons restent ceux du site.
 * ------------------------------------------------------------------------- */

.pehp-page {
  --pehp-paper: #fbf7ee;
  --pehp-night: #22306b;
  --pehp-blue: #4a63c9;
  --pehp-blue-soft: #dfe4f7;
  --pehp-orange: #e8590c;
  --pehp-yellow: #f6d55c;
  --pehp-rose: #f4b6c2;
  --pehp-line: #22306b26;
  background: var(--pehp-paper);
}

.pehp-wrap {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}


.pehp-page :is(h1, h2, h3) {
  color: var(--pehp-night);
  font-family: var(--serif);
  font-weight: 400;
}

.pehp-page :is(h1, h2) em {
  color: var(--pehp-blue);
  font-weight: 400;
}

.pehp-page .eyebrow {
  color: #c4480a; /* orange du programme assombri : contraste AA sur le papier */
}

.pehp-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.pehp-section--tint {
  background: #fff;
  border-block: 1px solid var(--pehp-line);
}

.pehp-heading {
  max-width: 44rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.pehp-heading h2 {
  margin: .4rem 0 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.pehp-heading p:not(.eyebrow) {
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

/* Illustrations du chat bleu : PNG détourés, posés sur fond clair uniquement. */
.pehp-cat {
  display: block;
  height: auto;
}

/* 1. En-tête -------------------------------------------------------------- */

.pehp-hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.pehp-hero h1 {
  margin: .5rem 0 0;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  letter-spacing: -.05em;
  line-height: 1;
  text-wrap: balance;
}

.pehp-hero h1 em {
  display: block;
  margin-top: .3em;
  font-size: .62em;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.pehp-hero__lead {
  max-width: 38rem;
  margin: 1.3rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
}

.pehp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

/* Pastilles « peintes » : bords irréguliers, légère rotation. */
.pehp-pills li {
  padding: .45rem .9rem;
  border-radius: 1.1rem .7rem 1rem .6rem / .8rem 1.1rem .7rem 1rem;
  background: var(--pehp-blue-soft);
  color: var(--pehp-night);
  font-size: .95rem;
  font-weight: 600;
}

.pehp-pills li:nth-child(2) { background: #fbe9a8; transform: rotate(-1deg); }
.pehp-pills li:nth-child(3) { background: #fad6dd; transform: rotate(.8deg); }
.pehp-pills li:nth-child(4) { background: #fbd2bb; transform: rotate(-.6deg); }

.pehp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.pehp-hero__note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.pehp-hero__art {
  margin: 0;
}

.pehp-hero__art img {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .pehp-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

/* 2. Vous vous reconnaissez ? --------------------------------------------- */

.pehp-recognize {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pehp-recognize li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3rem;
  border: 1px solid var(--pehp-line);
  border-radius: var(--r-m);
  background: var(--pehp-paper);
}

.pehp-recognize li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: .9rem;
  height: .9rem;
  border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%;
  background: var(--pehp-yellow);
}

.pehp-recognize li:nth-child(3n + 2)::before { background: var(--pehp-rose); }
.pehp-recognize li:nth-child(3n)::before { background: #9fb0ea; }

.pehp-recognize li:last-child {
  border-color: transparent;
  background: var(--pehp-blue-soft);
  font-weight: 600;
  color: var(--pehp-night);
}

.pehp-punchline {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: var(--pehp-night);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}

@media (min-width: 760px) {
  .pehp-recognize {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3. Mon regard (texte + chat à lunettes) ---------------------------------- */

.pehp-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.pehp-split p,
.pehp-about p {
  margin: 0 0 1rem;
}

.pehp-split .pehp-heading {
  margin-bottom: 1.4rem;
}

.pehp-split p {
  max-width: 40rem;
}

.pehp-split__art {
  margin: 0;
  justify-self: center;
}

.pehp-split__art img {
  width: min(17rem, 70vw);
}

.pehp-has {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--pehp-blue);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  background: #fff;
}

@media (min-width: 900px) {
  .pehp-split {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

/* 4. Le parcours : dix modules -------------------------------------------- */

.pehp-modules {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: module;
}

.pehp-modules li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-content: start;
  gap: .25rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pehp-line);
  border-radius: var(--r-m);
  background: #fff;
  counter-increment: module;
}

.pehp-modules li::before {
  content: counter(module);
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 52% 48% 45% 55% / 50% 44% 56% 50%;
  background: var(--pehp-night);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.pehp-modules > li > * {
  grid-column: 2;
}

.pehp-modules h3 {
  margin: .15rem 0 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.pehp-modules p {
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
}

/* Étiquettes de semaine : visio en bleu, semaine de questions en jaune. */
.pehp-tag {
  justify-self: start;
  margin-top: .45rem;
  padding: .15rem .6rem;
  border-radius: .7rem .5rem .7rem .55rem / .55rem .7rem .5rem .7rem;
  color: var(--pehp-night);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 650;
}

.pehp-tag--visio {
  background: var(--pehp-blue-soft);
}

.pehp-tag--faq {
  background: #fbe9a8;
}

/* Titre du parcours avec le chat qui marche en face, sur la même ligne. */
.pehp-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.pehp-heading-row .pehp-heading {
  margin-bottom: 0;
}

.pehp-path__art {
  flex: none;
  margin: 0;
}

.pehp-path__art img {
  width: clamp(7rem, 22vw, 15rem);
}

@media (max-width: 599px) {
  .pehp-path__art {
    display: none;
  }
}

@media (min-width: 760px) {
  .pehp-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 5. Une semaine type ------------------------------------------------------ */

.pehp-week {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pehp-week li {
  padding: 1.3rem 1.3rem 1.4rem;
  border-radius: 1.2rem .9rem 1.3rem 1rem / 1rem 1.3rem .9rem 1.2rem;
  background: var(--pehp-blue-soft);
}

.pehp-week li:nth-child(2) { background: #fbe9a8; }
.pehp-week li:nth-child(3) { background: #fad6dd; }

.pehp-week h3 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
}

.pehp-week p {
  margin: 0;
}

.pehp-notes {
  display: grid;
  gap: .8rem;
  margin-top: 1.4rem;
}

.pehp-notes p {
  margin: 0;
  padding: 1rem 1.2rem;
  border: 1px dashed #22306b55;
  border-radius: var(--r-m);
  background: #fff;
}

@media (min-width: 900px) {
  .pehp-week {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* 6. Tout ce qui est compris ----------------------------------------------- */

.pehp-included {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.pehp-checks {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pehp-checks li {
  position: relative;
  padding-left: 2rem;
}

.pehp-checks li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .35rem;
  width: .55rem;
  height: .95rem;
  border: solid var(--pehp-orange);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

.pehp-included__art {
  margin: 0;
  justify-self: center;
}

.pehp-included__art img {
  width: min(15rem, 60vw);
}

.pehp-family {
  margin: 1.4rem 0 0;
  font-weight: 600;
  color: var(--pehp-night);
}

@media (min-width: 900px) {
  .pehp-included {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
}

/* 7. Qui suis-je ----------------------------------------------------------- */

.pehp-about {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.pehp-about figure {
  margin: 0;
}

.pehp-about img {
  display: block;
  width: 100%;
  max-width: 16rem;
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
}

.pehp-about p {
  max-width: 40rem;
}

@media (min-width: 760px) {
  .pehp-about {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  }
}

/* 8. Pour qui -------------------------------------------------------------- */

.pehp-care {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-m);
  background: #fff;
  border: 1px solid var(--pehp-line);
}

/* 9. Dates, tarif et formulaire de pré-inscription ------------------------- */

.pehp-signup {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}

.pehp-dates {
  display: grid;
  gap: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--pehp-line);
}

.pehp-dates div {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--pehp-line);
}

.pehp-dates dt {
  color: var(--muted);
  font-size: .95rem;
}

.pehp-dates dd {
  margin: 0;
  color: var(--pehp-night);
  font-weight: 600;
}

.pehp-price {
  margin: 1.6rem 0 0;
  padding: 1.2rem 1.3rem;
  border-radius: 1.2rem .9rem 1.3rem 1rem / 1rem 1.3rem .9rem 1.2rem;
  background: #fbe9a8;
}

.pehp-price strong {
  display: block;
  color: var(--pehp-night);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}

.pehp-price span {
  display: block;
  margin-top: .4rem;
}

.pehp-small {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.pehp-form.precontact {
  display: block;
  position: relative;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--pehp-line);
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: var(--shadow-1);
}

.pehp-form form {
  gap: 1.1rem;
}

.pehp-form input:not([type="checkbox"]),
.pehp-form select {
  background: #fff;
}

.pehp-form__head {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.pehp-form__head img {
  flex: none;
  width: 5.5rem;
  margin: -.6rem -.4rem 0 0;
}

.pehp-nowrap {
  white-space: nowrap;
}

.pehp-form__title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
  line-height: 1.05;
}

.pehp-form .precontact__help {
  margin: 0;
}

.pehp-form .button {
  justify-self: start;
}

@media (min-width: 900px) {
  .pehp-signup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

/* 10. Questions fréquentes ------------------------------------------------- */

.pehp-faq {
  max-width: 50rem;
}

/* 11. Fin de page ---------------------------------------------------------- */

.pehp-final {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.4rem, 5vw, 4rem);
  border-radius: 1.6rem;
  background: var(--pehp-night);
  color: #fff;
  text-align: center;
}

.pehp-final::before,
.pehp-final::after {
  content: "";
  position: absolute;
  border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%;
  pointer-events: none;
}

.pehp-final::before {
  left: -3rem;
  bottom: -3.5rem;
  width: 11rem;
  height: 9rem;
  background: #f6d55c55;
}

.pehp-final::after {
  right: -2.5rem;
  top: -3rem;
  width: 10rem;
  height: 8rem;
  background: #f4b6c255;
}

.pehp-final h2 {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.pehp-final p {
  position: relative;
  max-width: 34rem;
  margin: 1.1rem auto 0;
  color: #e9ecf8;
  font-size: 1.08rem;
}

.pehp-final .button {
  position: relative;
  margin-top: 1.8rem;
}

/* Pages de retour (merci, erreur) ------------------------------------------ */

.pehp-return {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.pehp-return h1 {
  margin: .4rem 0 0;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  letter-spacing: -.05em;
  line-height: 1.02;
}

.pehp-return p {
  max-width: 38rem;
  margin: 0;
  font-size: 1.08rem;
}

.pehp-return img {
  width: min(16rem, 60vw);
}

.pehp-return__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
