/* PEGGASE · Base commune des formulaires et blocs de contact + pied de page v4 (proposition du 16/11/2026).
   Modèle : formulaire « Développons votre activité » (Offres #decider).
   Visuel uniquement : champs, consentements, destinations, validations et scripts inchangés.
   Couleurs du site : bleu #173480, texte #25334A, gris #5B6677, champagne #8FA3C7, ivoire #F4F6F9. */
@layer pegdroit{
/* ---------- 1. Conteneur ---------- */
html body section.pr-con :is(form.pr-form,div.pr-form),
html body section.pr-con form.mn-form{
  position:relative !important;overflow:hidden !important;box-sizing:border-box !important;
  display:flex !important;flex-direction:column !important;gap:14px !important;
  background:#FFFFFF !important;border:1px solid rgba(143,163,199,.55) !important;border-radius:30px !important;
  padding:34px 34px 28px !important;
  box-shadow:inset 0 1px 0 #FFFFFF,0 1px 2px rgba(22,41,79,.04),0 22px 44px -34px rgba(16,43,114,.3) !important;
}
html body section.pr-con :is(form.pr-form,div.pr-form)::before{
  content:"" !important;position:absolute !important;left:0 !important;top:0 !important;right:0 !important;height:5px !important;
  background:linear-gradient(90deg,#173480,#E3E5E8) !important;display:block !important;z-index:2 !important;border:0 !important;
}
/* ---------- 2. Étapes ---------- */
html body section.pr-con .pr-form .pr-fs{
  display:flex !important;flex-direction:column !important;gap:14px !important;
  margin:0 !important;min-width:0 !important;box-sizing:border-box !important;
  padding:20px 22px 22px !important;border:1px solid #E3E5E8 !important;border-radius:18px !important;
  background:#FFFFFF !important;box-shadow:none !important;
  grid-template-columns:none !important;align-items:stretch !important;text-align:left !important;
}
html body section.pr-con .pr-form .pr-fs + .pr-fs{border-top:1px solid #E3E5E8 !important}
html body section.pr-con .pr-form .pr-fs > .pr-fs-h{
  display:flex !important;align-items:center !important;justify-content:flex-start !important;text-align:left !important;gap:12px !important;
  float:none !important;width:auto !important;margin:0 !important;padding:0 !important;
  position:static !important;min-height:40px !important;
}
html body section.pr-con .pr-form .pr-fs-h :is(.pr-fs-ic,.pg-ic){
  flex:none !important;width:40px !important;height:40px !important;border-radius:12px !important;
  background:#173480 !important;color:#FFFFFF !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;
  border:0 !important;box-shadow:none !important;margin:0 !important;
}
html body section.pr-con .pr-form .pr-fs-h :is(.pr-fs-ic,.pg-ic) svg{display:block !important;opacity:1 !important;visibility:visible !important;width:18px !important;height:18px !important;color:#FFFFFF !important;stroke:currentColor !important}
html body section.pr-con .pr-form .pr-fs-h > svg{flex:none !important;display:block !important;width:40px !important;height:40px !important}
html body section.pr-con .pr-form .pr-fs-h > svg rect{fill:#173480 !important;stroke:none !important}
html body section.pr-con .pr-form .pr-fs-h > svg path{fill:#FFFFFF !important;stroke:#FFFFFF !important}
html body section.pr-con .pr-form .pr-fs-h :is(.pr-fs-ic,.pg-ic) svg :is(path,circle,rect,line,polyline){stroke:currentColor !important}
html body section.pr-con .pr-form .pr-fs-h > span:not(.pr-fs-ic):not(.pg-ic){display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:10px !important;flex-direction:row !important;text-align:left !important;margin:0 !important}
html body section.pr-con .pr-form{counter-reset:pegstep !important}
html body section.pr-con .pr-form .pr-fs{counter-increment:pegstep !important}
html body section.pr-con .pr-form .pr-fs-n{
  flex:none !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;
  width:28px !important;min-width:28px !important;height:28px !important;padding:0 !important;box-sizing:border-box !important;border-radius:999px !important;overflow:hidden !important;
  border:1px solid rgba(143,163,199,.6) !important;background:#FFFFFF !important;color:transparent !important;
  font-size:0 !important;letter-spacing:0 !important;line-height:1 !important;margin:0 !important;white-space:nowrap !important;
}
html body section.pr-con .pr-form .pr-fs-n::before{content:none !important;display:none !important}
html body section.pr-con .pr-form .pr-fs-n::after{content:counter(pegstep,decimal-leading-zero) / "" !important;display:inline !important;font-size:11px !important;font-weight:700 !important;color:#2F5BD3 !important;letter-spacing:.3px !important;position:static !important;background:none !important;width:auto !important;height:auto !important;border:0 !important}
html body section.pr-con .pr-form .pr-fs-t{
  display:block !important;font-size:17px !important;font-weight:650 !important;color:#173480 !important;line-height:1.25 !important;margin:0 !important;letter-spacing:0 !important;text-transform:none !important;
}
html body section.pr-con .pr-form .pr-fs > :not(.pr-fs-h){width:100% !important;min-width:0 !important;margin:0 !important;grid-column:auto !important}
html body section.pr-con .pr-form .pr-fs :is(.rv-fs-c,.fx-row,.prr-grid){display:flex !important;flex-direction:column !important;gap:10px !important}
html body section.pr-con .pr-form .pr-fs .fx-row{display:grid !important;grid-template-columns:1fr 1fr !important}
html body section.pr-con .pr-form .pr-fs .fx-row > :last-child:nth-child(odd){grid-column:1 / -1 !important}
html body section.pr-con .pr-form .pr-fs .prr-grid{display:grid !important;grid-template-columns:1fr 1fr !important;gap:12px 12px !important}
html body section.pr-con .pr-form .cf-grid2{display:grid !important;grid-template-columns:1fr 1fr !important;gap:10px !important;align-items:center !important}
/* ---------- 3. Champs ---------- */
html body section.pr-con .pr-form :is(input[type=text],input[type=tel],input[type=email],input[type=number],input:not([type]),select),
html body section#newsletter form.mg-nl :is(input[type=text],input[type=email]){
  height:52px !important;min-height:52px !important;box-sizing:border-box !important;width:100% !important;
  border:1px solid #D8DADD !important;border-radius:14px !important;background:#FFFFFF !important;
  padding:0 16px !important;font:inherit !important;font-size:15.5px !important;color:#25334A !important;box-shadow:none !important;margin:0 !important;
}
html body section.pr-con .pr-form textarea{
  min-height:104px !important;height:auto !important;box-sizing:border-box !important;width:100% !important;resize:vertical !important;
  border:1px solid #D8DADD !important;border-radius:14px !important;background:#FFFFFF !important;
  padding:14px 16px !important;font:inherit !important;font-size:15.5px !important;line-height:1.45 !important;color:#25334A !important;box-shadow:none !important;margin:0 !important;
}
html body section.pr-con .pr-form select{appearance:none !important;-webkit-appearance:none !important;padding-right:40px !important;
  background:#FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23173480' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center !important}
html body section.pr-con .pr-form :is(input,textarea,select)::placeholder,
html body section#newsletter form.mg-nl input::placeholder{color:#7A8494 !important;opacity:1 !important}
html body section.pr-con .pr-form :is(input[type=text],input[type=tel],input[type=email],input:not([type]),select,textarea):focus,
html body section#newsletter form.mg-nl :is(input[type=text],input[type=email]):focus{
  outline:none !important;border-color:#173480 !important;box-shadow:0 0 0 3px rgba(23,52,128,.16) !important;
}
html body section.pr-con .pr-form :is(input,textarea,select):user-invalid{border-color:#B42318 !important;box-shadow:0 0 0 3px rgba(180,35,24,.10) !important}
html body section.pr-con .pr-form .prr-fl{display:block !important;font-size:13px !important;font-weight:600 !important;color:#25334A !important;margin:0 0 6px !important}
html body section.pr-con .pr-form .prr-f{display:block !important;margin:0 !important}
html body section.pr-con .pr-form .cf-hint{font-size:13px !important;line-height:1.45 !important;color:#5B6677 !important;padding:0 4px !important}
/* ---------- 4. Choix en pastilles ---------- */
html body section.pr-con .pr-form :is(.fx-opts,.pr-pills,.rv-fs-c > div:has(> .cf-pill)){display:flex !important;flex-wrap:wrap !important;gap:8px !important;margin:0 !important}
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill){position:relative !important;display:inline-flex !important;margin:0 !important;padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important;cursor:pointer !important}
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill) > input{position:absolute !important;opacity:0 !important;width:1px !important;height:1px !important;margin:0 !important;pointer-events:none !important}
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill) > span{
  display:inline-flex !important;align-items:center !important;min-height:40px !important;height:auto !important;padding:8px 16px !important;box-sizing:border-box !important;
  border:1px solid #D8DADD !important;border-radius:999px !important;background:#FFFFFF !important;color:#25334A !important;
  font-size:14px !important;font-weight:500 !important;line-height:1.25 !important;transition:background-color .15s ease,border-color .15s ease,color .15s ease !important;box-shadow:none !important;
}
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill):hover > span{border-color:#173480 !important}
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill) > input:checked + span{background:#173480 !important;border-color:#173480 !important;color:#FFFFFF !important}
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill) > input:focus-visible + span{outline:2px solid #173480 !important;outline-offset:2px !important}
/* ---------- 5. Consentements ---------- */
html body section.pr-con .pr-form :is(.pr-consent,.fx-consent){
  display:flex !important;align-items:flex-start !important;gap:12px !important;margin:0 !important;box-sizing:border-box !important;
  padding:14px 16px !important;border:1px solid #E3E5E8 !important;border-radius:14px !important;background:#F4F6F9 !important;
  font-size:14px !important;line-height:1.5 !important;color:#3D4759 !important;box-shadow:none !important;
}
html body section.pr-con .pr-form :is(.rv-consents,.prr-cons){display:flex !important;flex-direction:column !important;gap:10px !important;margin:0 !important}
html body section.pr-con .pr-form :is(.pr-consent,.fx-consent) input[type=checkbox],
html body section#newsletter form.mg-nl input[type=checkbox]{
  flex:none !important;width:18px !important;height:18px !important;margin:2px 0 0 !important;accent-color:#173480 !important;cursor:pointer !important;position:static !important;opacity:1 !important;
}
html body section.pr-con .pr-form :is(.pr-consent,.fx-consent) a{color:#173480 !important;font-weight:700 !important;text-decoration:underline !important;text-underline-offset:2px !important}
/* ---------- 6. Bouton principal et action secondaire ---------- */
html body section.pr-con .pr-form :is(.pr-submit,.fx-submit),
html body section#newsletter form.mg-nl :is(button[type=submit],.mg-btn-p){
  display:flex !important;align-items:center !important;justify-content:center !important;gap:8px !important;
  width:100% !important;min-height:56px !important;height:auto !important;box-sizing:border-box !important;margin:4px 0 0 !important;
  padding:12px 24px !important;border:1px solid #173480 !important;border-radius:12px !important;
  background:#173480 !important;color:#FFFFFF !important;font-size:16.5px !important;font-weight:600 !important;text-decoration:none !important;
  box-shadow:0 18px 36px -18px rgba(23,52,128,.6) !important;transition:background-color .15s ease,transform .15s ease !important;cursor:pointer !important;
}
html body section#newsletter form.mg-nl :is(button[type=submit],.mg-btn-p){min-height:52px !important}
html body section.pr-con .pr-form :is(.pr-submit,.fx-submit):hover,
html body section#newsletter form.mg-nl button[type=submit]:hover{background:#102B72 !important}
html body section.pr-con .pr-form :is(.pr-submit,.fx-submit):active{transform:scale(.99) !important}
html body section.pr-con .pr-form :is(.pr-submit,.fx-submit):focus-visible,
html body section#newsletter form.mg-nl button[type=submit]:focus-visible{outline:2px solid #173480 !important;outline-offset:3px !important}
html body section.pr-con .pr-form .fx-actions{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:10px !important;margin:0 !important}
html body section.pr-con .pr-form .fx-alt{align-self:center !important;background:none !important;border:0 !important;padding:6px 8px !important;color:#173480 !important;font-size:15px !important;font-weight:600 !important;text-decoration:underline !important;text-underline-offset:3px !important;cursor:pointer !important;box-shadow:none !important;min-height:0 !important;height:auto !important;width:auto !important}
/* ---------- 7. Messages (aperçu, erreur, confirmation) ---------- */
html body :is(.pgx-msg,.pgf-msg){
  margin:4px 0 0 !important;padding:12px 14px !important;border-radius:12px !important;font-size:14px !important;line-height:1.5 !important;
  border:1px solid #DCE3F2 !important;background:#F5F7FE !important;color:#173480 !important;
}
html body :is(.pgx-msg,.pgf-msg):empty{display:none !important}
html body :is(.pgx-msg,.pgf-msg):is(.ok,.pgx-ok,.pgf-ok){border-color:#BFE3CF !important;background:#EEF8F2 !important;color:#0F6B3E !important}
html body :is(.pgx-msg,.pgf-msg):is(.err,.pgx-err,.pgf-err){border-color:#F3C9C4 !important;background:#F4F6F9 !important;color:#9B1C12 !important}
/* ---------- 8. Cartes de contact (intro, personne, téléphone) ---------- */
html body section.pr-con > .pr-con-l{
  background:#FFFFFF !important;background-image:none !important;border:1px solid rgba(143,163,199,.45) !important;border-radius:24px !important;
  box-shadow:0 1px 2px rgba(22,41,79,.04),0 22px 44px -34px rgba(16,43,114,.25) !important;
}
html body section.pr-con > .pr-con-l .pr-dedie{border-top-color:#E3E5E8 !important}
html body section.pr-con .prr-con-r{background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important}
html body section.pr-con .prr-con-r > .prr-priv{margin:14px 6px 0 !important}
/* ---------- 9. Petits écrans ---------- */
@media (max-width:640px){
  html body section.pr-con :is(form.pr-form,div.pr-form),html body section.pr-con form.mn-form{padding:26px 16px 20px !important;border-radius:22px !important}
  html body section.pr-con .pr-form .pr-fs{padding:16px 14px 18px !important}
  html body section.pr-con .pr-form .pr-fs :is(.cf-grid2,.prr-grid,.fx-row),html body section.pr-con .pr-form .cf-grid2{grid-template-columns:1fr !important}
  html body section.pr-con .pr-form .pr-fs .fx-row > *{grid-column:auto !important}
}
/* ---------- 10. Pied de page v4 : logos partenaires ---------- */
html body footer.pfx .pfx-col a.pfx-svc{display:flex !important;flex-direction:column !important;align-items:flex-start !important;gap:8px !important;padding:2px 0 !important}
html body footer.pfx .pfx-col a.pfx-svc .pfx-svc-t{display:block !important;font-size:inherit !important;line-height:1.35 !important;color:inherit !important;font-weight:inherit !important;letter-spacing:inherit !important}
html body footer.pfx .pfx-plogo{display:block !important;height:auto !important;max-width:none !important;opacity:.92 !important;filter:none !important;transition:opacity .15s ease !important}
html body footer.pfx a.pfx-svc:hover .pfx-plogo{opacity:1 !important}
html body footer.pfx .pfx-plogo-lp{width:96px !important}
html body footer.pfx .pfx-plogo-ls{width:44px !important}
html body footer.pfx .pfx-plogo-sng{width:58px !important}
html body footer.pfx .pfx-id .pfx-tel{display:inline-flex !important;align-items:center !important;gap:8px !important;color:#173480 !important;font-weight:650 !important;text-decoration:none !important;min-height:40px !important}
html body footer.pfx .pfx-id .pfx-tel svg{width:16px !important;height:16px !important}
html body footer.pfx .pfx-in{padding-top:clamp(48px,6vw,72px) !important}
}
@layer pegdroit{
html body section.pr-con .pr-form .fx-consent{display:block !important;position:relative !important;padding-left:46px !important}
html body section.pr-con .pr-form .fx-consent input[type=checkbox]{position:absolute !important;left:16px !important;top:15px !important;margin:0 !important}
html body section.pr-con .pr-form .fx-consent b{font-weight:700 !important;color:#25334A !important}
}
@layer pegdroit{
html body section#decider .cf-pill > input:focus-visible + span{outline:2px solid #173480 !important;outline-offset:2px !important;border-radius:10px !important}
}
@layer pegdroit{
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill){width:auto !important;max-width:100% !important;flex:0 0 auto !important}
html body section.pr-con .pr-form :is(.cf-pill,.prr-pill) > span{width:auto !important;justify-content:center !important}
}
@layer pegdroit{
html body section.pr-con .pr-form fieldset.pr-fs > legend.pr-fs-h{float:left !important;width:100% !important;box-sizing:border-box !important}
html body section.pr-con .pr-form fieldset.pr-fs > legend.pr-fs-h + *{clear:both !important}
}
