/* Les formulaires CRMIA gardent leur propre présentation. Les anciens
   recadrages GHL ne doivent ni masquer ni plafonner leurs champs. */
.framer-1if9qh6:has(script[data-formulaire], [data-crmia-rendez-vous]),
.fia-form-card:has(script[data-formulaire], [data-crmia-rendez-vous], iframe[src^="https://crmia.franceia-dev.com/formulaires/public/"]) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  justify-content: flex-start;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* 12/10/2026 (Nicolas) : le formulaire des lead magnets retrouve une carte,
   sur fond bleu très clair (la carte blanche du formulaire CRMIA ressort dessus), bord bleu clair, liseré bleu en haut, ombre douce. La hauteur reste
   libre pour que le formulaire CRMIA ne soit jamais coupé. */
.fia-mur__modale:has(#crmia-form-lead-magnet) {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 30px 30px 18px !important;
  background: linear-gradient(180deg, #eef3ff 0%, #f7f9ff 100%) !important;
  border: 1px solid #dfe6fb !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(22, 22, 26, .04), 0 18px 48px rgba(67, 121, 242, .14) !important;
}
.fia-mur__modale:has(#crmia-form-lead-magnet)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #4379f2, #1D4ED8);
}
.fia-mur__modale:has(#crmia-form-lead-magnet) .fia-mur__titre { margin-bottom: 6px; }
.fia-mur__modale:has(#crmia-form-lead-magnet) .fia-mur__texte { margin-bottom: 14px; }
@media (max-width: 600px) {
  .fia-mur__modale:has(#crmia-form-lead-magnet) { padding: 24px 18px 14px !important; }
}
.framer-1if9qh6:has(script[data-formulaire], [data-crmia-rendez-vous])::after { border: none !important; }
.framer-1umhgvr-container:has(script[data-formulaire], [data-crmia-rendez-vous]) {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100%;
}
iframe[src^="https://crmia.franceia-dev.com/formulaires/public/"] {
  display: block;
  max-width: 100%;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
}
.fia-form-card:has(script[data-formulaire], [data-crmia-rendez-vous]) .fia-form-card__mask { display: none; }
.fia-crmia-premiere-visite {
  margin: 12px 0;
  text-align: center;
  font: 14px/1.5 "DM Sans", sans-serif;
}
.fia-crmia-premiere-visite a { text-decoration: underline; }

/* La modale Mug contient maintenant deux liens, et non plus un calendrier. */
.fia-mug-modal .fia-form-card:has([data-crmia-lien]) {
  min-height: 0;
}

/* 15/10/2026 (Tanguy) : la liste déroulante du formulaire du hero passe par-dessus la suite
   de la page au lieu de la pousser. L'embed.js du CRM le fait quand la page le demande
   (data-debordement="menus") ; le hero coupait ce qui dépasse, il le laisse voir ici. */
[data-framer-name="PV"]:has(script[data-debordement="menus"]) {
  overflow: visible !important;
  z-index: 3;
}

/* 15/10/2026 (Tanguy) : titre du hero un peu plus petit sur tablette et ordinateur (environ -10 %),
   sur les 10 pages du formulaire « programme ». Le double #hero passe devant custom-fixes.css et
   les règles des LP villes ; le mobile garde ses tailles. */
@media (min-width: 810px) {
  #hero#hero:has(script[data-debordement="menus"]) h1.framer-text,
  #hero#hero:has(script[data-debordement="menus"]) h1.framer-text .framer-text {
    font-size: 56px !important;
  }
}
@media (min-width: 810px) and (max-width: 1149.98px) {
  body.fia-lp-ville #hero#hero:has(script[data-debordement="menus"]) h1.framer-text,
  body.fia-lp-ville #hero#hero:has(script[data-debordement="menus"]) h1.framer-text .framer-text {
    font-size: calc(530px * 0.0896) !important;
  }
}
@media (min-width: 1150px) and (max-width: 1279.98px) {
  body.fia-lp-ville #hero#hero:has(script[data-debordement="menus"]) h1.framer-text,
  body.fia-lp-ville #hero#hero:has(script[data-debordement="menus"]) h1.framer-text .framer-text {
    font-size: min(56px, calc((60vw - 144px) * 0.0896)) !important;
  }
}
