/* Éléments ajoutés par les corrections (live/corrections.mjs). Charte du site en ligne. */

/* Accueil : surtitre de l'accroche, au-dessus du titre. */
.pw-surtitre {
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* Questions de fin de page. */
.pw-questions {
  padding: 60px 20px 70px;
  background: #f3f7fc;
}
.pw-questions__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.pw-questions__titre {
  margin: 0 0 30px;
  color: #0039a3;
  font-family: Roboto, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}
.pw-questions__item {
  padding: 22px 0;
  border-top: 1px solid rgba(25, 97, 172, 0.25);
}
.pw-questions__item:last-child {
  border-bottom: 1px solid rgba(25, 97, 172, 0.25);
}
.pw-questions__question {
  margin: 0 0 8px;
  color: #0039a3;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.pw-questions__reponse {
  margin: 0;
  color: #1961ac;
  font-family: Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
@media (max-width: 767px) {
  .pw-questions { padding: 40px 20px 50px; }
  .pw-questions__titre { font-size: 26px; }
  .pw-questions__question { font-size: 18px; }
}

/* Accueil : « Ce qui nous rend différents », trois cartes sur une ligne. */
.pw-pepites {
  padding: 70px 20px 20px;
  background: #fff;
}
.pw-pepites__inner {
  max-width: 1140px;
  margin: 0 auto;
}
.pw-pepites__titre {
  margin: 0 0 40px;
  color: #0039a3;
  font-family: Roboto, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}
/* Version du 12/11 : cartes numérotées 01/02/03, la carte du milieu un peu plus large. */
.pw-pepites__cartes {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.pw-pepite {
  --pw-pepite-fond: #edf4dd;
  --pw-pepite-pastille: #8db843;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px 52px;
  border-radius: 28px;
  background: var(--pw-pepite-fond);
  font-family: Roboto, sans-serif;
  text-align: center;
}
.pw-pepite--turquoise {
  --pw-pepite-fond: #e2f3f3;
  --pw-pepite-pastille: #4fb2b5;
}
.pw-pepite--orange {
  --pw-pepite-fond: #fcefdf;
  --pw-pepite-pastille: #f0a73e;
}
.pw-pepite__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin-bottom: 40px;
  border-radius: 50%;
  background: var(--pw-pepite-pastille);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.pw-pepite__amorce {
  margin: 0 0 6px;
  color: #5f7183;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.pw-pepite__titre {
  margin: 0 0 22px;
  color: #0039a3;
  font-family: Roboto, sans-serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}
.pw-pepite__titre span {
  display: block;
}
.pw-pepite__titre span + span {
  margin-top: 0.45em;
}
.pw-pepite__texte {
  margin: 0;
  color: #3d4a57;
  font-size: 19px;
  line-height: 1.6;
}

/* Accueil : soutiens, sous les partenaires industriels. */
.pw-soutiens {
  width: 100%;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(25, 97, 172, 0.25);
  text-align: center;
}
.pw-soutiens__titre {
  margin: 0 0 20px;
  color: #1961ac;
  font-family: Roboto, sans-serif;
  font-size: 20px;
}
.pw-soutiens__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.pw-soutiens__logos img {
  display: block;
  width: auto;
  height: 120px;
}

/* Saint-Python : « La vie du chantier, en images ». */
.pw-chantier {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 20px;
}
.pw-chantier__titre {
  margin: 0 0 30px;
  color: #0039a3;
  font-family: Roboto, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}
.pw-chantier__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pw-chantier__photo {
  margin: 0;
}
.pw-chantier__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}
.pw-chantier__photo figcaption {
  margin-top: 12px;
  font-family: Roboto, sans-serif;
  line-height: 1.3;
}
.pw-chantier__photo strong {
  display: block;
  color: #0039a3;
  font-size: 18px;
  font-weight: 700;
}
.pw-chantier__photo span {
  display: block;
  margin-top: 4px;
  color: #1961ac;
  font-size: 15px;
}

/* Onnaing : vidéo lancée au clic. */
.pw-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #0039a3;
}
.pw-video__lancer,
.pw-video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.pw-video__lancer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pw-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #f4a7b0;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.pw-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 15px 0 15px 22px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.pw-video__lancer:hover .pw-video__play,
.pw-video__lancer:focus-visible .pw-video__play {
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 1024px) {
  .pw-chantier__photos { grid-template-columns: repeat(2, 1fr); }
  .pw-pepites__cartes { gap: 18px; }
  .pw-pepite { padding: 36px 20px 40px; }
  .pw-pepite__num { width: 72px; height: 72px; margin-bottom: 28px; font-size: 28px; }
  .pw-pepite__titre { font-size: 23px; }
  .pw-pepite__texte { font-size: 16px; }
}
@media (max-width: 767px) {
  .pw-pepites { padding-top: 45px; }
  .pw-pepites__titre { font-size: 28px; }
  .pw-pepites__cartes { grid-template-columns: 1fr; gap: 16px; }
  .pw-pepite { padding: 32px 24px 36px; border-radius: 22px; }
  .pw-pepite__num { width: 64px; height: 64px; margin-bottom: 22px; font-size: 24px; }
  .pw-pepite__titre { font-size: 24px; margin-bottom: 14px; }
  .pw-chantier__titre { font-size: 26px; }
  .pw-soutiens__logos img { height: 90px; }
}

/* Nous contacter, Postuler : lien mail à la place du formulaire WordPress. */
.pw-ecrire {
  font-family: Roboto, sans-serif;
  color: #1961ac;
}
.pw-ecrire__intro {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
}
.pw-ecrire__intro a {
  color: #0039a3;
  font-weight: 700;
}
/* Sélecteur doublé : la feuille du thème décale les listes (padding-left). */
.pw-ecrire .pw-ecrire__objets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pw-ecrire__bouton {
  display: block;
  padding: 12px 22px;
  border-radius: 4px;
  background: #1961ac;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.pw-ecrire__bouton:hover,
.pw-ecrire__bouton:focus-visible {
  background: #0039a3;
  color: #fff;
}

/* Formulaires Nous contacter et Postuler, postés vers Hub IA (corrections.mjs,
   formulaire()). Mêmes couleurs que le lien mail qu'ils remplacent. */
.pw-form {
  font-family: Roboto, sans-serif;
  color: #1961ac;
}
.pw-form__intro {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
}
.pw-form__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.pw-form__champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pw-form__champ--plein {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .pw-form__grille {
    grid-template-columns: 1fr;
  }
}
/* Le widget Elementor remplacé portait la marge latérale de la colonne en mobile. */
@media (max-width: 767px) {
  .pw-form {
    padding: 0 16px;
  }
}
.pw-form label {
  font-size: 15px;
  font-weight: 700;
}
/* Sélecteurs doublés : la feuille du thème style les champs (bordures, marges). */
.pw-form .pw-form__champ input,
.pw-form .pw-form__champ select,
.pw-form .pw-form__champ textarea {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #9db4d6;
  border-radius: 4px;
  background: #fff;
  color: #1f2430;
  font: 16px/1.4 Roboto, sans-serif;
}
.pw-form .pw-form__champ input[type="file"] {
  padding: 8px;
}
.pw-form .pw-form__champ input:focus-visible,
.pw-form .pw-form__champ select:focus-visible,
.pw-form .pw-form__champ textarea:focus-visible {
  outline: 2px solid #0039a3;
  outline-offset: 1px;
  border-color: #0039a3;
}
.pw-form__aide {
  font-size: 13px;
  color: #5a6b85;
}
.pw-form__piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pw-form .pw-form__accord {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  font-weight: 400;
  line-height: 1.45;
}
.pw-form__accord input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.pw-form__accord a {
  color: #0039a3;
}
.pw-form .pw-form__envoyer {
  display: inline-block;
  border: 0;
  cursor: pointer;
}
.pw-form.is-sending .pw-form__envoyer {
  opacity: .6;
  cursor: progress;
}
.pw-form__statut {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 15px;
}
.pw-form__statut.is-error,
.pw-form__erreur {
  color: #b42318;
}
.pw-form__erreur {
  font-size: 14px;
  font-weight: 400;
}
.pw-form .is-invalid input,
.pw-form .is-invalid select,
.pw-form .is-invalid textarea {
  border-color: #b42318;
}
.pw-form__fait {
  padding: 18px 20px;
  border-radius: 6px;
  background: #e8f1fb;
  font-size: 17px;
  line-height: 1.5;
}
.pw-form__fait p {
  margin: 0;
}
.pw-form.is-done > :not(.pw-form__fait) {
  display: none;
}
/* Retour d'un envoi sans script (Hub IA redirige vers #envoye ou #erreur) ;
   avec le script, c'est lui qui affiche le résultat. */
.pw-form__retour {
  display: none;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 6px;
  font-size: 17px;
  line-height: 1.5;
  scroll-margin-top: 120px;
}
.pw-form__retour p {
  margin: 0;
}
.pw-form__retour:target {
  display: block;
}
.pw-form[data-js] .pw-form__retour {
  display: none;
}
.pw-form__retour--ok {
  background: #e8f1fb;
}
.pw-form__retour--erreur {
  background: #fdecea;
  color: #b42318;
}
.pw-form__retour--erreur a {
  color: #b42318;
}
.pw-form .pw-form__envoyer:disabled {
  opacity: .6;
  cursor: not-allowed;
}
