/* ==========================================================================
   Forest Terre — adaptations au thème Avada, limitées à la page Implantations
   (la classe body.ftx-page n'existe que sur la page contenant le shortcode).
   ========================================================================== */

/* Supprime les marges du conteneur Avada pour que les sections occupent toute la largeur */
body.ftx-page #main { padding: 0 !important; }
body.ftx-page #main > .fusion-row,
body.ftx-page #content,
body.ftx-page .post-content { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }

/* Barre de titre Avada inutile : le titre est dans la bannière */
body.ftx-page .fusion-page-title-bar { display: none !important; }

/* Le shortcode peut être placé dans un conteneur Fusion Builder ou Elementor : on neutralise leurs marges */
body.ftx-page .fusion-fullwidth:has(> .fusion-builder-row .ftx),
body.ftx-page .elementor-widget-shortcode .elementor-widget-container { padding: 0 !important; margin: 0 !important; }

/* Empêche tout défilement horizontal dû aux effets */
body.ftx-page { overflow-x: clip; }

/* Les styles de liens / titres d'Avada ne doivent pas déborder dans la page */
body.ftx-page .ftx a:hover { text-decoration: none; }
body.ftx-page .ftx h1, body.ftx-page .ftx h2, body.ftx-page .ftx h3, body.ftx-page .ftx h4 { font-family: var(--ftx-serif) !important; text-transform: none !important; }
body.ftx-page .ftx .ftx-office h4, body.ftx-page .ftx .ftx-panel__kicker { font-family: var(--ftx-mono) !important; }
body.ftx-page .ftx p, body.ftx-page .ftx li, body.ftx-page .ftx dd { font-family: var(--ftx-sans); }

/* Avada impose une couleur aux H1 (.post-content h1) et réécrit tailles et
   interlignes des titres (« typographie responsive ») : on rétablit le système. */
body.ftx-page .ftx :is(h1, h2, h3, h4) { line-height: 1.1 !important; letter-spacing: -.01em; }
body.ftx-page .ftx .ftx-h1 { color: var(--ftx-cream) !important; font-size: var(--ftx-fs-3xl) !important; line-height: 1.02 !important; letter-spacing: -.025em; }
body.ftx-page .ftx .ftx-h2 { font-size: var(--ftx-fs-2xl) !important; }
body.ftx-page .ftx .ftx-panel__title,
body.ftx-page .ftx .ftx-office__title { font-size: var(--ftx-fs-xl) !important; }
body.ftx-page .ftx .ftx-value h3 { font-size: 1.2rem !important; }
body.ftx-page .ftx .ftx-office h4 { font-size: var(--ftx-fs-xs) !important; line-height: 1.4 !important; letter-spacing: .12em; }

/* Pages juridiques */
body.ftx-page .ftx .ftx-legal__hero .ftx-h1 { font-size: var(--ftx-fs-2xl) !important; }
body.ftx-page .ftx .ftx-legal-content h2 { font-size: var(--ftx-fs-xl) !important; line-height: 1.2 !important; }
body.ftx-page .ftx .ftx-legal-content h3 { font-family: var(--ftx-sans) !important; font-size: 1rem !important; line-height: 1.4 !important; }

/* Barre d'onglets collante (page Tarifs) : Avada masque le débordement de #boxed-wrapper,
   ce qui désactive position: sticky. On le neutralise et on se cale sous le menu fixe d'Avada. */
body.ftx-page #boxed-wrapper, body.ftx-page #wrapper { overflow: visible !important; }
/* Bouton flottant « Demander un devis » au-dessus de la flèche « retour en haut » d'Avada */
body.ftx-page .ftx .ftx-t-fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
body.ftx-page .ftx .ftx-t-navwrap { top: var(--ftx-header-h, 0px); }
