/* =============================================
   Smart Human Solutions — pages Formation, Contact, Partenaires (refonte octobre 2026)
   Chargé APRÈS style.css et refonte.css via $extraCss. N'utilise que les jetons de style.css.
   ⛔ Jamais la couleur seule : pastille toujours numérotée, texte coloré = variantes --dNN-texte.
   Animations : ≤ 350 ms, neutralisées par prefers-reduced-motion.
   ============================================= */

.pg a:focus-visible,
.pg button:focus-visible,
.pg input:focus-visible,
.pg select:focus-visible,
.pg textarea:focus-visible {
  outline: 2px solid var(--brique-fonce);
  outline-offset: 3px;
}
.pg .rf-hero a:focus-visible,
.pg .rf-cta a:focus-visible {
  outline-color: #fff;
}
.pg {
  background: var(--fond-doux);
  color: var(--texte);
  font-family: var(--police-texte);
}

/* ── Hero : même gouttière que le contenu (.rf-container) ── */
.pg .rf-hero {
  padding-left: 0;
  padding-right: 0;
}
.pg .rf-hero__inner {
  max-width: calc(1200px + 2 * var(--pad));
  padding: 0 var(--pad);
}
.pg-contact .contact-engagement {
  padding: 0.5rem 1.5rem;
}

.pg-hero-filet {
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: 1.4rem;
  background: var(--brique-sur-sombre);
  border-radius: 2px;
}

/* ── Sections ── */
.pg-section {
  padding: 4.2rem 0;
}
.pg-section--alt {
  background: var(--fond-2);
}
.pg-section--blanc {
  background: #fff;
}
.pg-lead {
  max-width: 62ch;
  color: var(--texte-2);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.pg-p {
  color: var(--texte-2);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  max-width: 62ch;
}
.pg a.pg-lien,
.pg .pg-lien {
  color: var(--brique-fonce);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.pg a.pg-lien:hover {
  color: var(--marine);
}

/* ── Cartes blanches ── */
.pg-card {
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
}
.pg-card h2,
.pg-card h3 {
  font-family: var(--police-titre);
  color: var(--marine);
}

/* ── FORMATION ── */
.pg-nda {
  background: var(--marine);
  color: var(--sur-sombre);
  border-radius: var(--r-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 1.6rem;
  border-left: 6px solid var(--brique-sur-sombre);
}
.pg-nda__label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--sur-sombre-2);
}
.pg-nda__num {
  font-family: var(--police-titre);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0.2rem 0 0.6rem;
}
.pg-nda__mention {
  color: var(--sur-sombre);
  font-size: 1.02rem;
}
.pg-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.pg-duo .pg-card {
  border-top: 4px solid var(--marine);
}
.pg-duo .pg-card--non {
  border-top-color: var(--brique-fonce);
}
.pg-card__titre {
  font-family: var(--police-titre);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--marine);
  margin-bottom: 0.8rem;
}
.pg-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pg-liste li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--texte-2);
  line-height: 1.6;
}
.pg-liste li + li {
  margin-top: 0.6rem;
}
.pg-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--marine);
  border-radius: 2px;
}
.pg-card--non .pg-liste li::before {
  background: transparent;
  border: 2px solid var(--brique-fonce);
}
.pg-note {
  margin-top: 1.4rem;
  max-width: 70ch;
  color: var(--texte-2);
  font-style: italic;
  font-family: var(--police-titre);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Bloc réglementaire */
.pg-reg {
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-left: 6px solid var(--marine);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 2rem;
}
.pg-reg__texte {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--texte-2);
  margin-bottom: 1.2rem;
}
/* Avec le logo du partenaire : logo | texte et domaine */
.pg-reg--logo {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  align-items: center;
  gap: 1.4rem 2.2rem;
}
.pg-reg__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 6.5rem;
  margin: 0;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--r);
}
.pg-reg__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pg-domlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.pg-dompill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.35rem 1rem 0.35rem 0.4rem;
  background: var(--fond-doux);
  border: 1.5px solid rgba(27, 42, 74, 0.2);
  border-radius: 99px;
  color: var(--dom-texte, var(--marine));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
}
.pg-dompill:hover {
  background: #fff;
  border-color: var(--marine);
}
.pg-dompill .pastille {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 99px;
  font-size: 0.9rem;
}

/* Domaines de formation */
.pg-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  grid-auto-rows: 1fr; /* toutes les cartes de même hauteur */
  gap: 1.2rem;
}
/* Trois colonnes sur ordinateur : la 7e carte se place sous la 5e (colonne du milieu) */
@media (min-width: 961px) {
  .pg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pg-grid > .pg-dcard:nth-child(7) {
    grid-column: 2;
  }
}
.pg-dcard {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-top: 4px solid var(--dom, var(--brique));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.pg-dcard__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pg-dcard__titre {
  font-family: var(--police-titre);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--marine);
}
.pg-dcard__titre a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--dom, var(--brique));
  text-underline-offset: 0.2em;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.pg-dcard__desc {
  color: var(--texte-2);
  line-height: 1.65;
}

/* Publics */
.pg-chips {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.8rem;
}
.pg-chips li {
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-left: 4px solid var(--marine);
  border-radius: var(--r);
  color: var(--texte);
  font-weight: 600;
}

/* Approche */
.pg-approche {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
/* Notre approche pédagogique : titre sur deux lignes, grand, gras et aéré ; texte en italique, deux paragraphes qui respirent */
.pg-app__titre {
  margin: 0 0 2rem;
  font-family: var(--police-titre);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--marine);
}
.pg-app__texte {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-family: var(--police-titre);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.85;
  color: var(--texte-2);
}
.pg-app__texte + .pg-app__texte {
  margin-bottom: 2.4rem;
}
.pg-principes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pg-principes li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--texte-2);
  line-height: 1.55;
}
.pg-principes li + li {
  border-top: 1px solid rgba(27, 42, 74, 0.14);
}
.pg-principes .pastille {
  --dom: var(--marine);
}

/* Modalités */
/* Mise en page de l'ancien site : introduction sur toute la largeur, modalités en deux colonnes. */
.pg-lead--pleine {
  max-width: none;
}
.pg-modalites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
@media (max-width: 720px) {
  .pg-modalites {
    grid-template-columns: 1fr;
  }
}
.pg-modalites .pg-card {
  padding: 1.3rem 1.5rem;
}
.pg-modalites h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.pg-modalites p {
  color: var(--texte-2);
  line-height: 1.6;
}
.pg-access__action {
  margin-top: 1.2rem;
}
.pg-access__action a {
  text-decoration: none;
}
.pg-access {
  margin-top: 2rem;
  background: #fff;
  border-left: 6px solid var(--marine);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
.pg-access h3 {
  font-family: var(--police-titre);
  font-size: 1.2rem;
  color: var(--marine);
  margin-bottom: 0.6rem;
}
.pg-access p {
  color: var(--texte-2);
  line-height: 1.75;
}
.pg-access p + p {
  margin-top: 0.8rem;
}

/* ── CONTACT ── */
.pg-contact .contact-engagements {
  background: #fff;
  border-bottom: 1px solid rgba(27, 42, 74, 0.12);
}
.pg-contact .contact-engagement {
  color: var(--marine);
  font-weight: 600;
  font-size: 0.95rem;
}
.pg-contact .contact-engagement svg {
  color: var(--brique-fonce);
}
.pg-contact .contact-form-wrap {
  border-top: 4px solid var(--brique);
}
.pg-contact .contact-form-wrap h2 {
  font-family: var(--police-titre);
  font-size: 1.7rem;
  color: var(--marine);
}
.pg-contact .contact-form-wrap p {
  font-size: 0.98rem;
  color: var(--texte-2);
}
.pg-contact .form-group label {
  font-size: 0.82rem;
  color: var(--marine);
}
.pg-contact .form-group input,
.pg-contact .form-group textarea,
.pg-contact .form-group select {
  min-height: 2.9rem;
  font-size: 1rem;
  background: #fff;
  border-color: rgba(27, 42, 74, 0.35);
}
.pg-contact .form-group textarea {
  min-height: 9rem;
}
.pg-contact .form-consent input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
}
.pg-contact .form-consent label {
  font-size: 0.9rem;
  color: var(--texte-2);
}
.pg-contact .form-consent label a,
.pg-contact .form-rgpd a {
  color: var(--brique-fonce);
  text-decoration: underline;
  display: inline-block;
  padding: 0.7rem 0.1rem;
  margin: -0.7rem 0;
}
.pg-contact .form-rgpd {
  font-size: 0.85rem;
  color: var(--texte-2);
}
.pg-contact .btn--full {
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r);
}
.pg-contact .contact-person__name {
  font-family: var(--police-titre);
  font-size: 1.1rem;
  color: var(--marine);
}
.pg-contact .contact-person__role {
  font-size: 0.88rem;
}
.pg-contact .contact-person__note {
  font-size: 0.88rem;
}
.pg-contact .contact-detail__label,
.pg-contact .contact-zone__label {
  font-size: 0.78rem;
}
.pg-contact .contact-detail__value {
  font-size: 0.98rem;
}
.pg-contact a.contact-detail__value {
  color: var(--brique-fonce);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0.6rem 0;
}
.pg-contact .contact-zone__label {
  color: var(--marine);
}
.pg-contact .zone-tag {
  font-size: 0.88rem;
}

/* Réservation + téléchargements */
.pg-duo-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.pg-duo-contact .pg-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pg-duo-contact h2 {
  font-size: 1.45rem;
  line-height: 1.25;
}
.pg-duo-contact p {
  color: var(--texte-2);
  line-height: 1.65;
}
/* Téléchargements : une ligne par document (pastille PDF | titre et taille | bouton) */
.pg-dl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pg-dl__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem 1.1rem;
  padding: 1rem 1.2rem;
  background: var(--fond-doux);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--r);
}
.pg-dl__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--marine);
  color: #fff;
  border-radius: 10px;
  font-family: var(--police-titre);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pg-dl__texte {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.pg-dl__titre {
  color: var(--marine);
  font-weight: 700;
  line-height: 1.35;
}
.pg-dl__meta {
  color: var(--texte-2);
  font-size: 0.9rem;
  line-height: 1.45;
}
.pg-dl__taille {
  white-space: nowrap;
}
.pg-dl__btn {
  min-height: 2.6rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.pg-dl__btn svg {
  flex: 0 0 auto;
}

/* ── PARTENAIRES ── */
/* Deux lignes de même hauteur : logo (boîte fixe, centré) | texte et domaines | bouton */
.pg-partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pg-partner {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) 15.5rem;
  align-items: center;
  gap: 1rem 2.2rem;
  padding: 1.6rem 2rem;
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-left: 4px solid var(--marine);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.pg-partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 8rem;
  padding: 0.8rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--r);
  font-family: var(--police-titre);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--marine);
  text-align: center;
}
.pg-partner__logo--img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pg-partner__corps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.pg-partner__nom {
  font-family: var(--police-titre);
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--marine);
}
.pg-partner__desc {
  max-width: 62ch;
  color: var(--texte-2);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty; /* évite le mot seul en fin de paragraphe */
}
.pg-partner__doms {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(27, 42, 74, 0.12);
}
.pg-partner__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--texte-2);
}
.pg-partner .pg-domlist,
.pg-reg .pg-domlist {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}
/* Bulles de domaine : pastille numérotée + titre en marine (le numéro et le texte portent l'information, pas la couleur) */
.pg-partner .pg-dompill,
.pg-reg .pg-dompill {
  min-height: 2.5rem;
  gap: 0.6rem;
  padding: 0.25rem 1.05rem 0.25rem 0.3rem;
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--dom, var(--marine)) 40%, #fff);
  color: var(--marine);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-underline-offset: 0.2em;
  /* Le rond numéroté (et non le contour de la bulle) s'aligne sur le texte au-dessus : on décale la bulle de sa bordure + marge intérieure. */
  margin-left: calc(-1 * (1.5px + 0.3rem));
}
.pg-partner .pg-dompill:hover,
.pg-reg .pg-dompill:hover {
  background: color-mix(in srgb, var(--dom, var(--marine)) 9%, #fff);
  border-color: var(--dom, var(--marine));
}
.pg-partner .pg-dompill:focus-visible,
.pg-reg .pg-dompill:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 2px;
}
.pg-partner .pg-dompill .pastille,
.pg-reg .pg-dompill .pastille {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.82rem;
}
.pg-partner__pied {
  display: flex;
  align-items: center;
  justify-content: stretch;
}
/* Vrai bouton, même largeur pour les deux lignes */
.pg-partner__btn {
  width: 100%;
  gap: 0.6rem;
  white-space: normal;
}
.pg-btn-fleche {
  flex: 0 0 auto;
}
.pg-devnote .rf-notes {
  margin-top: 0;
  font-size: 1rem;
}
.pg-devnote-wrap {
  padding: 1.6rem 0 0;
}

/* ── Adaptation ── */
@media (max-width: 900px) {
  .pg-approche,
  .pg-duo-contact,
  .pg-partners {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-partners {
    grid-auto-rows: auto;
  }
  .pg-reg--logo {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-reg__logo {
    width: 12rem;
    height: 5.5rem;
  }
  .pg-dl__item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pg-dl__btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .pg-partner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .pg-partner__logo {
    width: 12rem;
    height: 7.5rem;
  }
  .pg-partner__btn {
    width: auto;
    align-self: flex-start;
  }
  .pg-approche {
    gap: 1.6rem;
  }
}
@media (max-width: 720px) {
  .pg-section {
    padding: 3rem 0;
  }
  .pg-duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-nda,
  .pg-reg,
  .pg-access {
    padding: 1.3rem;
  }
  .pg-partner {
    padding: 1.4rem;
  }
  .pg-contact .contact-form-wrap {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-dompill {
    transition: none;
  }
}

/* Texte réservé aux lecteurs d'écran */
.pg .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Zone d'intervention : pastilles de texte (le texte porte l'information) */
.pg-contact .zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pg-contact .zone-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.25rem 0.8rem;
  background: var(--fond-doux);
  border: 1.5px solid rgba(27, 42, 74, 0.3);
  border-radius: 99px;
  color: var(--marine);
  font-weight: 600;
}
