/* ==========================================================================
   Page Contact : nouvelle présentation (gabarit-contact.php).
   Chargée après refonte-realisation.css, refonte-hub.css et refonte-article.css :
   l'ouverture, les témoignages, la clôture et Instagram sont les sections déjà
   créées ; on ne définit ici que le questionnaire (Ninja Forms, habillé sans
   toucher à l'extension) et les quelques réglages propres à la page.
   ========================================================================== */

/* ----- ouverture : le bouton mène au questionnaire, la fiche donne les coordonnées ----- */
.ppContact .ppOuvertureTexte .ppBouton { margin-top: clamp(20px, 3.2vh, 34px); }
.ppContact .ppOuvertureTexte .ppFiche { margin-top: clamp(24px, 4.4vh, 48px); }
.pp.ppContact .ppFiche a { transition: opacity 0.25s ease; }
.pp.ppContact .ppFiche a:hover { opacity: 0.55; }
.ppContact .ppTitre, .ppContact .ppIntro { text-wrap: balance; }
.ppContact .ppIntro { text-wrap: pretty; }
/* la photo d'ouverture montre des personnes : elle démarre sous l'en-tête fixe (96 px). Calée à 20 %
   (12 nov. 2026) : sur un grand écran large, Nadya, assise plus bas, restait coupée quand la photo
   était calée en haut ; à 20 %, le haut du plafond saute et la tête de Kevin reste entière */
@media screen and (min-width: 900px) {
  .ppContact .ppOuvertureImage img {
    top: 96px;
    height: calc(100% - 96px);
    object-position: 50% 20%;
  }
}

/* ----- questionnaire : le texte reste en vue à gauche pendant qu'on remplit à droite ----- */
.ppFormulaire {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pp-ecart);
  align-items: start;
  padding: var(--pp-souffle) var(--pp-marge) 0;
  scroll-margin-top: 40px;
}
.ppFormulaireTexte {
  grid-column: 1 / 5;
  position: sticky;
  top: calc(96px + 40px); /* sous l'en-tête fixe */
}
.ppFormulaireTexte .ppEtiquette { display: block; margin-bottom: 14px; opacity: 0.6; }
.pp .ppFormulaireTexte h2 { font-size: var(--pp-titre) !important; line-height: 1.15 !important; }
.pp .ppFormulaireTexte h2 em, .pp .ppFormulaireTexte h2 span { display: block; }
.pp .ppFormulaireTexte h2 em { font-style: italic; }
.pp .ppFormulaireTexte p { margin-top: clamp(14px, 1.6vw, 22px); text-wrap: pretty; }
.pp .ppFormulaireTexte .ppFormulaireAppel {
  margin-top: clamp(24px, 2.6vw, 36px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  font-style: italic;
  font-size: 17px;
}
.pp .ppFormulaireAppel .ppLien { display: table; margin-top: 12px; font-style: normal; }
.ppFormulaireChamps { grid-column: 6 / 13; }
.pp .ppFormulaireChamps .ppFormulaireNote { margin: 0 0 clamp(22px, 2.4vw, 34px); font-family: var(--pp-sans); font-size: var(--pp-etiquette); line-height: 1.4; opacity: 0.6; }
.ppFormulaireNote span { color: var(--pp-brun); }

/* --- le formulaire Ninja Forms, habillé comme le reste du site --- */
.ppContact .nf-form-fields-required,
.ppContact .nf-form-title { display: none; }
.ppContact .nf-form-cont { font-family: var(--pp-serif); color: var(--pp-encre); }
/* rangées et cellules : l'écart des vignettes, pas de flottants */
.ppContact .nf-form-content { max-width: none; margin: 0; padding: 0; }
.ppContact .nf-row { margin: 0 0 clamp(22px, 2.3vw, 32px); }
.ppContact .nf-row::after { display: none; }
.ppContact .nf-row nf-cells { display: flex; gap: var(--pp-ecart); }
.ppContact .nf-multi-cell .nf-cell { flex: 1 1 0; float: none; width: auto !important; min-width: 0; padding: 0; }
.ppContact .nf-field-container { margin: 0; }
/* libellés : la serif du site, en bas de casse (les questions sont longues) */
.ppContact .nf-form-content .nf-field-label { margin: 0 0 4px !important; }
body .ppContact .nf-form-content .nf-field-label label,
body .ppContact .nf-form-content .nf-field-label .nf-label-span {
  font-family: var(--pp-serif) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  letter-spacing: 0 !important;
  color: var(--pp-encre);
  padding: 0;
  text-wrap: pretty;
}
.ppContact .ninja-forms-req-symbol { color: var(--pp-brun); }
/* champs : une ligne fine sous le texte, pas de boîte grise */
.ppContact .nf-form-content input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ppContact .nf-form-content select.ninja-forms-field,
.ppContact .nf-form-content textarea.ninja-forms-field {
  width: 100%;
  height: 44px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--pp-serif) !important; /* le thème impose Montserrat au texte saisi */
  font-size: 17px;
  line-height: 1.4;
  color: var(--pp-encre);
  transition: border-color 0.25s ease;
}
.ppContact .nf-form-content textarea.ninja-forms-field {
  height: 150px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.32);
  resize: vertical;
}
.ppContact .nf-form-content input:not([type="checkbox"]):focus,
.ppContact .nf-form-content select:focus,
.ppContact .nf-form-content textarea:focus {
  outline: none;
  border-color: var(--pp-encre);
  box-shadow: 0 1px 0 var(--pp-encre);
}
/* liste déroulante : chevron dessiné, flèche de l'extension masquée */
.ppContact .nf-form-content select.ninja-forms-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat right 4px center;
  cursor: pointer;
}
.ppContact .nf-form-content .list-select-wrap .nf-field-element > div,
.ppContact .nf-form-content .list-select-wrap .nf-field-element > div::after { display: none !important; }
/* cases à cocher : en deux colonnes, la couleur du site */
.ppContact .nf-form-content .list-checkbox-wrap .nf-field-element ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px var(--pp-ecart);
  margin: 12px 0 0 !important;
  padding: 0;
}
.ppContact .nf-form-content .list-checkbox-wrap .nf-field-element li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.ppContact .nf-form-content .list-checkbox-wrap .nf-field-element li input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--pp-brun);
  transform: translateY(2px);
  /* l'extension masque la case d'origine pour dessiner la sienne : on la rétablit */
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  -webkit-appearance: checkbox;
  appearance: auto;
}
.ppContact .nf-form-content .list-checkbox-wrap .nf-field-element li label {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--pp-serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  letter-spacing: 0 !important;
  color: var(--pp-encre);
}
.ppContact .nf-form-content .list-checkbox-wrap .nf-field-element li label::before,
.ppContact .nf-form-content .list-checkbox-wrap .nf-field-element li label::after { display: none !important; }
/* budget : des tranches à choisir, écrites dans le champ du questionnaire (js/refonte-contact.js).
   Le champ de texte reste dans la page pour Ninja Forms, mais on ne le voit plus. */
.ppContact .nf-form-content .nf-field-element.ppAvecTranches { position: relative; }
.ppContact .nf-form-content .nf-field-element.ppAvecTranches > input.nf-element {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.ppContact .nf-form-content .ppTranches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px var(--pp-ecart);
  margin: 12px 0 0 !important;
  padding: 0;
  list-style: none;
}
.ppContact .nf-form-content .ppTranches li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.ppContact .nf-form-content .ppTranches input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--pp-brun);
  transform: translateY(2px);
  -webkit-appearance: radio;
  appearance: auto;
  cursor: pointer;
}
.ppContact .nf-form-content .ppTranches label {
  margin: 0;
  padding: 0;
  font-family: var(--pp-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--pp-encre);
  cursor: pointer;
}
/* envoi de photos : un lien-étiquette, comme les autres liens du site */
.ppContact .nf-form-content button.nf-fu-fileinput-button {
  height: auto;
  margin-top: 10px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  font-family: var(--pp-sans);
  font-size: var(--pp-etiquette);
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--pp-encre);
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.ppContact .nf-form-content button.nf-fu-fileinput-button:hover { opacity: 0.55; }
.ppContact .nf-form-content button.nf-fu-button-cancel {
  margin-left: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--pp-serif);
  font-style: italic;
  font-size: 15px;
  color: #6B5F56;
  cursor: pointer;
}
.ppContact .nf-fu-progress { height: 2px; margin-top: 14px; background: transparent; box-shadow: none; border-radius: 0; }
.ppContact .nf-fu-progress-bar { background: var(--pp-brun); }
/* bouton d'envoi : le bouton du site */
.ppContact .nf-form-content input[type="submit"],
.ppContact .nf-form-content input[type="button"] {
  width: auto;
  height: auto;
  margin-top: 6px;
  padding: 13px 34px;
  border: 0;
  border-radius: 0;
  background: var(--pp-brun);
  font-family: var(--pp-serif) !important;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.ppContact .nf-form-content input[type="submit"]:hover,
.ppContact .nf-form-content input[type="button"]:hover { background: var(--pp-brun); color: #fff; opacity: 0.78; }
/* messages : erreurs sobres, confirmation en serif */
.ppContact .nf-error-msg, .ppContact .nf-form-errors { font-family: var(--pp-serif); font-style: italic; font-size: 15px; color: #9A3B2E; }
.ppContact .nf-error .ninja-forms-field { border-color: #9A3B2E !important; }
/* l'extension ajoute un pavé rouge (erreur) ou une coche et une bordure vertes (champ valide)
   au bout du champ : on garde seulement le filet et le message */
.ppContact .nf-error.field-wrap .nf-field-element::after,
.ppContact .nf-pass.field-wrap .nf-field-element::after { display: none !important; }
.ppContact .nf-pass .ninja-forms-field { border-color: rgba(0, 0, 0, 0.32) !important; }
.ppContact .nf-error-wrap { margin-top: 4px; }
.ppContact .nf-response-msg { font-family: var(--pp-serif); font-size: 19px; line-height: 1.6; }

/* ----- témoignages : la section de l'accueil, avec la respiration des autres sections ----- */
.ppContact .blocTemoignages { margin-top: clamp(24px, 3vw, 48px); }

/* ----- clôture « Passez nous voir » : l'adresse, les heures, deux photos ----- */
.pp .ppVisite .ppHoraires {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: var(--pp-ecart);
  margin-top: clamp(20px, 2.4vw, 32px);
}
.pp .ppVisite .ppHoraires dd { font-size: 16px; line-height: 1.6; }

/* ----- tablette / mobile ----- */
@media screen and (max-width: 899px) {
  .ppFormulaire { display: block; }
  .ppFormulaireTexte { position: static; margin-bottom: 44px; }
  .ppContact .nf-row nf-cells { flex-direction: column; gap: clamp(22px, 2.3vw, 32px); }
  .ppContact .nf-form-content .list-checkbox-wrap .nf-field-element ul { grid-template-columns: 1fr; }
  .ppContact .nf-form-content .ppTranches { grid-template-columns: 1fr; }
  .ppContact .ppOuvertureTexte .ppFiche { grid-template-columns: 1fr 1fr; }
  .pp .ppVisite .ppHoraires { grid-template-columns: 1fr; }
}

/* Retour 122 (29 oct. 2026) : « Pancarte de chantier », plus longue, passe en
   dernier pour ne pas creuser d'espace entre les autres réponses (ordre
   d'affichage seulement, Ninja Forms inchangé). FR champ 13, EN champ 30. */
#nf-field-13-wrap li:has(#nf-label-field-13-1),
#nf-field-30-wrap li:has(#nf-label-field-30-1) {
  order: 99;
}
