:root{--ameo-primaire:#548A0B;--ameo-secondaire:#E4EBD8;--ameo-texte:#30392B;--ameo-fond:#fff}
.ameo-bg-primary{background-color:var(--ameo-primaire)!important}.ameo-bg-secondary{background-color:var(--ameo-secondaire)!important}.ameo-text-primary,.ameo-text-primary .elementor-heading-title{color:var(--ameo-primaire)!important}.ameo-text-secondary,.ameo-text-secondary .elementor-heading-title{color:var(--ameo-secondaire)!important}.ameo-btn-primary .elementor-button,.ameo-btn-primary.elementor-button{background-color:var(--ameo-primaire)!important;color:#fff!important}.ameo-btn-secondary .elementor-button,.ameo-btn-secondary.elementor-button{border-color:var(--ameo-primaire)!important;color:var(--ameo-primaire)!important}.ameo-border-primary{border-color:var(--ameo-primaire)!important}.ameo-dynamic-image{display:block;max-width:100%;height:auto}
#ameo-demo-toolbar{position:fixed;z-index:999999;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#17263d;color:#fff;padding:9px 14px;border-radius:40px;box-shadow:0 6px 30px #0004;font:13px/1.4 Arial,sans-serif;max-width:calc(100vw - 16px)}#ameo-demo-toolbar a{color:#fff!important;text-decoration:underline}#ameo-demo-toolbar button,#ameo-demo-palette button{cursor:pointer;border:0;border-radius:20px;padding:8px 12px;background:#fff;color:#17263d;font:inherit}#ameo-demo-palette{position:fixed;z-index:999999;bottom:70px;right:16px;background:#fff;color:#17263d;border:1px solid #ddd;border-radius:12px;padding:18px;box-shadow:0 8px 30px #0003;width:min(300px,calc(100vw - 32px));font:14px Arial,sans-serif}#ameo-demo-palette[hidden]{display:none!important}#ameo-demo-palette label{display:flex;justify-content:space-between;align-items:center;margin:12px 0}#ameo-demo-palette button{background:#17263d;color:#fff;margin:4px}body.ameo-demo-active{padding-bottom:0}

.ameo-text-body,.ameo-text-body .elementor-heading-title,.ameo-text-body .elementor-widget-container{color:var(--ameo-texte)!important}
.ameo-bg-body{background-color:var(--ameo-fond)!important}
.ameo-btn-primary .elementor-button:hover,.ameo-btn-primary.elementor-button:hover{filter:brightness(.88)}
.ameo-btn-secondary .elementor-button:hover,.ameo-btn-secondary.elementor-button:hover{background:var(--ameo-primaire)!important;color:#fff!important}
#ameo-demo-toolbar{width:max-content;box-sizing:border-box;flex-wrap:wrap;justify-content:center;border-radius:16px}
#ameo-demo-toolbar .ameo-brand{font-weight:600;white-space:nowrap}
#ameo-demo-toolbar .ameo-toolbar-link{display:inline-flex;align-items:center;background:#344761;color:#fff!important;padding:9px 12px;border-radius:9px;text-decoration:none!important;white-space:nowrap}
#ameo-demo-toolbar .ameo-buy-link{display:inline-flex;align-items:center;background:#e9a78d;color:#17263d!important;padding:9px 12px;border-radius:9px;text-decoration:none!important;font-weight:700;white-space:nowrap}
#ameo-demo-toolbar #ameo-palette-toggle{background:#344761;color:#fff;border-radius:9px}
#ameo-demo-toolbar #ameo-toolbar-collapse{background:transparent;color:#fff;padding:5px 9px;font-size:19px}
#ameo-toolbar-expand{position:fixed;z-index:999999;bottom:12px;right:12px;background:#17263d;color:#fff;border:0;border-radius:18px;padding:10px 14px;box-shadow:0 6px 20px #0003;cursor:pointer}
#ameo-toolbar-expand[hidden]{display:none!important}
@media(max-width:650px){#ameo-demo-toolbar{bottom:6px;left:6px;right:6px;transform:none;max-width:none;gap:6px;padding:8px;font-size:11px}#ameo-demo-toolbar .ameo-brand{width:100%;text-align:center}#ameo-demo-toolbar .ameo-toolbar-link,#ameo-demo-toolbar .ameo-buy-link,#ameo-demo-toolbar #ameo-palette-toggle{padding:7px 8px;font-size:11px}#ameo-demo-palette{bottom:105px;right:8px}}

/* Bouton contour dynamique : fond transparent, texte et bordure de la couleur principale. */
body.ameo-demo-active .ameo-btn-outline .elementor-button,
body.ameo-demo-active .elementor-button.ameo-btn-outline,
body.ameo-demo-active .ameo-btn-outline a.elementor-button {
  background-color: transparent !important;
  background-image: none !important;
  border-color: var(--ameo-primaire) !important;
  border-style: solid !important;
  border-width: 2px !important;
  color: var(--ameo-primaire) !important;
}
body.ameo-demo-active .ameo-btn-outline .elementor-button:hover,
body.ameo-demo-active .elementor-button.ameo-btn-outline:hover,
body.ameo-demo-active .ameo-btn-outline a.elementor-button:hover {
  background-color: var(--ameo-primaire) !important;
  color: #fff !important;
}
body.ameo-demo-active .ameo-btn-outline .elementor-button .elementor-button-text,
body.ameo-demo-active .ameo-btn-outline .elementor-button .elementor-button-icon {color:inherit!important}

/* v1.0.15 — On demo routes, remove the outer Astra page gutters, not Elementor's internal spacing.
   Source Elementor pages remain unchanged. */
body.ameo-demo-active .site-content > .ast-container,
body.ameo-demo-active .site-content > .ast-container-fluid {
  width:100%; max-width:none; padding-left:0; padding-right:0; margin-left:0; margin-right:0;
}
body.ameo-demo-active .site-content > .ast-container > #primary,
body.ameo-demo-active .site-content > .ast-container-fluid > #primary {
  width:100%; max-width:none; float:none; margin:0; padding:0;
}
body.ameo-demo-active #primary .entry-content,
body.ameo-demo-active #primary .entry-content[ast-blocks-layout] { margin-top:0; margin-bottom:0; }
body.ameo-demo-active #primary .site-main > article { margin-bottom:0; }
/* Do not reserve an artificial white strip for the fixed demo toolbar. */
body.ameo-demo-active .site-content { padding-bottom:0; }

/* v1.0.16: remove the remaining outer page/Elementor gutters on demo routes only.
   Keep spacing of nested Elementor containers and widgets unchanged. */
html body.ameo-demo-active { margin:0; }
body.ameo-demo-active #page,
body.ameo-demo-active #content,
body.ameo-demo-active .site-content,
body.ameo-demo-active .site-content .ast-container,
body.ameo-demo-active .site-content .ast-container-fluid,
body.ameo-demo-active .site-content #primary,
body.ameo-demo-active .site-content #main,
body.ameo-demo-active .site-content article,
body.ameo-demo-active .site-content .entry-content {
  max-width:none; width:100%; margin-left:0; margin-right:0;
  padding-left:0; padding-right:0; box-sizing:border-box;
}
/* Elementor flexbox root sections have a default 10px padding on each side.
   Only remove it on root sections, not their nested content containers. */
body.ameo-demo-active .entry-content > .elementor > .e-con,
body.ameo-demo-active .entry-content > .elementor > .elementor-section-wrap > .e-con {
  --padding-left:0px; --padding-right:0px;
  padding-left:0; padding-right:0;
}

/* v1.0.17 — Astra single article padding confirmed in browser inspector. */
body.ameo-demo-active article.ast-article-single {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Icônes Elementor : couleur principale de la déclinaison A-Méo */
body.ameo-demo-active .ameo-icon-primary .elementor-icon,
body.ameo-demo-active .ameo-icon-primary .elementor-icon i {
  color: var(--ameo-primaire) !important;
}
body.ameo-demo-active .ameo-icon-primary .elementor-icon svg,
body.ameo-demo-active .ameo-icon-primary .elementor-icon svg path {
  fill: var(--ameo-primaire) !important;
}

/* v1.0.19 — Astra footer: colors follow the active A-Méo demo palette. */
body.ameo-demo-active .site-footer,
body.ameo-demo-active .site-primary-footer-wrap,
body.ameo-demo-active .site-below-footer-wrap {
  background-color: var(--ameo-primaire) !important;
}
body.ameo-demo-active .site-footer,
body.ameo-demo-active .site-footer p,
body.ameo-demo-active .site-footer li,
body.ameo-demo-active .site-footer span,
body.ameo-demo-active .site-footer a,
body.ameo-demo-active .site-footer .widget-title,
body.ameo-demo-active .site-footer .menu-link {
  color: var(--ameo-texte) !important;
}
body.ameo-demo-active .site-footer svg {
  fill: var(--ameo-texte) !important;
}

/* v1.0.24 — Elementor container background colors: override Elementor background overlays too. */
body.ameo-demo-active .ameo-bg-primary,
body.ameo-demo-active .ameo-bg-primary > .e-con-inner,
body.ameo-demo-active .ameo-bg-primary::before {background-color:var(--ameo-primaire)!important;}
body.ameo-demo-active .ameo-bg-secondary,
body.ameo-demo-active .ameo-bg-secondary > .e-con-inner,
body.ameo-demo-active .ameo-bg-secondary::before {background-color:var(--ameo-secondaire)!important;}
body.ameo-demo-active .ameo-bg-body,
body.ameo-demo-active .ameo-bg-background,
body.ameo-demo-active .ameo-bg-body::before,
body.ameo-demo-active .ameo-bg-background::before {background-color:var(--ameo-fond)!important;}
/* Explicit background color on the demo page when no container class is needed. */
body.ameo-demo-active {background-color:var(--ameo-fond)!important;}
/* Two button variants, including Elementor button text/icon children. */
body.ameo-demo-active .ameo-btn-primary .elementor-button,
body.ameo-demo-active .elementor-button.ameo-btn-primary {
 background:var(--ameo-primaire)!important;border-color:var(--ameo-primaire)!important;color:#fff!important;
}
body.ameo-demo-active .ameo-btn-primary .elementor-button .elementor-button-text,
body.ameo-demo-active .ameo-btn-primary .elementor-button .elementor-button-icon {color:#fff!important;}
body.ameo-demo-active .ameo-btn-outline .elementor-button,
body.ameo-demo-active .elementor-button.ameo-btn-outline {
 background:#fff!important;border:2px solid var(--ameo-primaire)!important;color:var(--ameo-primaire)!important;
}
body.ameo-demo-active .ameo-btn-outline .elementor-button .elementor-button-text,
body.ameo-demo-active .ameo-btn-outline .elementor-button .elementor-button-icon {color:inherit!important;}
body.ameo-demo-active .ameo-btn-outline .elementor-button:hover,
body.ameo-demo-active .elementor-button.ameo-btn-outline:hover {background:var(--ameo-primaire)!important;color:#fff!important;}

/* v1.0.25 - dedicated button palette and automatic contrast. */
:root{--ameo-boutons:#548A0B;--ameo-on-primary:#fff;--ameo-on-secondary:#000;--ameo-on-background:#000}
body.ameo-demo-active .ameo-btn-primary .elementor-button,
body.ameo-demo-active .elementor-button.ameo-btn-primary{background:var(--ameo-boutons)!important;border-color:var(--ameo-boutons)!important;color:#fff!important}
body.ameo-demo-active .ameo-btn-outline .elementor-button,
body.ameo-demo-active .elementor-button.ameo-btn-outline{background:#fff!important;border:2px solid var(--ameo-boutons)!important;color:var(--ameo-boutons)!important}
body.ameo-demo-active .ameo-btn-outline .elementor-button:hover,
body.ameo-demo-active .elementor-button.ameo-btn-outline:hover{background:var(--ameo-boutons)!important;color:#fff!important}
/* Scope automatic contrast to text inside colored sections; preserve explicit button styles. */
body.ameo-demo-active .ameo-bg-primary{--ameo-section-ink:var(--ameo-on-primary)}
body.ameo-demo-active .ameo-bg-secondary{--ameo-section-ink:var(--ameo-on-secondary)}
body.ameo-demo-active .ameo-bg-body,body.ameo-demo-active .ameo-bg-background{--ameo-section-ink:var(--ameo-on-background)}
body.ameo-demo-active :is(.ameo-bg-primary,.ameo-bg-secondary,.ameo-bg-body,.ameo-bg-background) :is(.elementor-heading-title,.elementor-widget-text-editor,.elementor-widget-text-editor p,.elementor-icon-list-text,p,h1,h2,h3,h4,h5,h6,li):not(.elementor-button-text){color:var(--ameo-section-ink)!important}
body.ameo-demo-active :is(.ameo-bg-primary,.ameo-bg-secondary,.ameo-bg-body,.ameo-bg-background) a:not(.elementor-button):not(.ameo-toolbar-link):not(.ameo-buy-link){color:var(--ameo-section-ink)!important}
body.ameo-demo-active .site-footer{--ameo-section-ink:var(--ameo-on-primary)}
body.ameo-demo-active .site-footer :is(p,li,span,a,.widget-title,.menu-link){color:var(--ameo-on-primary)!important}
body.ameo-demo-active .site-footer svg{fill:var(--ameo-on-primary)!important}

/* v1.0.26 — Astra header uses the visitor's Background palette. */
body.ameo-demo-active .site-header,
body.ameo-demo-active .ast-primary-header-bar,
body.ameo-demo-active .main-header-bar,
body.ameo-demo-active .site-header .ast-builder-grid-row-container,
body.ameo-demo-active .site-header .ast-builder-grid-row-container-inner {
 background-color:var(--ameo-fond)!important;
}
/* Astra header navigation adapts to the background, excluding logo images. */
body.ameo-demo-active .site-header :is(.menu-link,.ast-builder-menu-1 .menu-link,.site-title a,.ast-header-html p,.ast-header-html a){color:var(--ameo-on-background)!important;}
body.ameo-demo-active .site-header :is(.ast-button,.ast-custom-button){color:var(--ameo-on-background)!important;border-color:var(--ameo-on-background)!important;}
/* Default page text adapts to the chosen page background. */
body.ameo-demo-active .site-content{color:var(--ameo-on-background)!important;}
body.ameo-demo-active .entry-content > .elementor > .e-con:not(.ameo-bg-primary):not(.ameo-bg-secondary):not(.ameo-bg-body):not(.ameo-bg-background){--ameo-section-ink:var(--ameo-on-background);}
/* Cover widgets, testimonial text and nested Elementor markup. */
body.ameo-demo-active .site-content .e-con :is(.elementor-heading-title,.elementor-testimonial__text,.elementor-testimonial__name,.elementor-widget-text-editor,.elementor-widget-text-editor p,.elementor-icon-list-text){color:var(--ameo-section-ink,var(--ameo-on-background))!important;}
/* Cards with their own white background always retain dark writing. */
body.ameo-demo-active .site-content :is(.elementor-widget-wrap,.e-con,.elementor-widget-container,.elementor-testimonial-wrapper).ameo-card-light,
body.ameo-demo-active .site-content .ameo-card-light{--ameo-section-ink:#000!important;color:#000!important;}
body.ameo-demo-active .site-content .ameo-card-light :is(h1,h2,h3,h4,h5,h6,p,li,span,.elementor-heading-title,.elementor-testimonial__text,.elementor-testimonial__name){color:#000!important;}
/* Elementor often places its button CSS class on the widget wrapper. Override both markup layouts. */
body.ameo-demo-active .elementor-widget-button.ameo-btn-outline a.elementor-button,
body.ameo-demo-active .ameo-btn-outline a.elementor-button,
body.ameo-demo-active a.elementor-button.ameo-btn-outline{
 background-color:#fff!important;background-image:none!important;
 border:2px solid var(--ameo-boutons)!important;color:var(--ameo-boutons)!important;
}
body.ameo-demo-active .elementor-widget-button.ameo-btn-outline a.elementor-button :is(.elementor-button-text,.elementor-button-icon),
body.ameo-demo-active .ameo-btn-outline a.elementor-button :is(.elementor-button-text,.elementor-button-icon){color:var(--ameo-boutons)!important;}
body.ameo-demo-active .elementor-widget-button.ameo-btn-outline a.elementor-button:hover,
body.ameo-demo-active .ameo-btn-outline a.elementor-button:hover{background-color:var(--ameo-boutons)!important;color:#fff!important;}
body.ameo-demo-active .elementor-widget-button.ameo-btn-outline a.elementor-button:hover :is(.elementor-button-text,.elementor-button-icon),
body.ameo-demo-active .ameo-btn-outline a.elementor-button:hover :is(.elementor-button-text,.elementor-button-icon){color:#fff!important;}

/* v1.0.27 — Astra footer must follow Primary, not page Background. */
body.ameo-demo-active .site-footer,
body.ameo-demo-active .site-footer .ast-builder-grid-row-container,
body.ameo-demo-active .site-footer .ast-builder-grid-row-container-inner,
body.ameo-demo-active .site-footer .site-above-footer-wrap,
body.ameo-demo-active .site-footer .site-primary-footer-wrap,
body.ameo-demo-active .site-footer .site-below-footer-wrap {
  background-color:var(--ameo-primaire)!important;
}
/* Image banners: keep text white regardless of selected page/section colors. */
body.ameo-demo-active .elementor [class*="ameo-bg-image-"] .elementor-widget-heading .elementor-heading-title,
body.ameo-demo-active .elementor [class*="ameo-bg-image-"] .elementor-widget-text-editor,
body.ameo-demo-active .elementor [class*="ameo-bg-image-"] .elementor-widget-text-editor p,
body.ameo-demo-active .elementor [class*="ameo-bg-image-"] .elementor-widget-text-editor span {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

/* ===== A-Méo 1.0.40 — Palette globale Astra / Elementor suit les couleurs de la déclinaison =====
   Les modèles importés utilisent la palette globale du thème (couleurs Astra 0 à 8, reprises par Elementor
   sous --e-global-color-astglobalcolorN). Sur les démonstrations seulement, cette palette est rebranchée
   sur les couleurs de la déclinaison : elle change donc aussi en direct avec le panneau Couleurs.
   0-1 : accent (liens, contours, séparateurs)  → couleur principale
   2-3-7 : titres et textes                     → gris anthracite neutre
   4 : fonds clairs de sections                 → couleur secondaire éclaircie
   6 : bordures transparentes                   → couleur principale à 24 %
   5 (blanc) et 8 (quasi noir) sont inchangées. */
body.ameo-demo-active{
 --ast-global-color-0:var(--ameo-primaire)!important;
 --ast-global-color-1:var(--ameo-primaire)!important;
 --ast-global-color-2:#1f2327!important;
 --ast-global-color-3:#1f2327!important;
 --ast-global-color-4:color-mix(in srgb,var(--ameo-secondaire) 35%,#ffffff)!important;
 --ast-global-color-6:color-mix(in srgb,var(--ameo-primaire) 24%,transparent)!important;
 --ast-global-color-7:#1f2327!important;
 --e-global-color-astglobalcolor0:var(--ameo-primaire)!important;
 --e-global-color-astglobalcolor1:var(--ameo-primaire)!important;
 --e-global-color-astglobalcolor2:#1f2327!important;
 --e-global-color-astglobalcolor3:#1f2327!important;
 --e-global-color-astglobalcolor4:color-mix(in srgb,var(--ameo-secondaire) 35%,#ffffff)!important;
 --e-global-color-astglobalcolor6:color-mix(in srgb,var(--ameo-primaire) 24%,transparent)!important;
 --e-global-color-astglobalcolor7:#1f2327!important;
}
