/* Barre de contact mobile : enseigne-de-presse.fr (lot L12, 18-10-2026).
   Charte du site : #111318 (fond sombre), #FFD001 (jaune), #F1EEEA (beige), Poppins.
   Hauteur utile de la barre : 64 px + zone de sécurité iOS. */
.ec-cta-bar { display: none; }

@media (max-width: 767px) {
  .ec-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147481000;
    gap: 8px;
    margin: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #111318;
    border-top: 1px solid #2d2f36;
    box-shadow: 0 -6px 18px rgba(17, 19, 24, 0.18);
    font-family: Poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
  }
  .ec-cta-bar a.ec-cta-bar__call,
  .ec-cta-bar a.ec-cta-bar__quote {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
  }
  .ec-cta-bar a.ec-cta-bar__call,
  .ec-cta-bar a.ec-cta-bar__call:visited {
    background: transparent;
    color: #f1eeea;
    border: 1px solid #f1eeea;
  }
  .ec-cta-bar a.ec-cta-bar__quote,
  .ec-cta-bar a.ec-cta-bar__quote:visited {
    background: #ffd001;
    color: #111318;
    border: 1px solid #ffd001;
  }
  .ec-cta-bar a.ec-cta-bar__call:hover,
  .ec-cta-bar a.ec-cta-bar__call:focus-visible { background: #f1eeea; color: #111318; }
  .ec-cta-bar a.ec-cta-bar__quote:hover,
  .ec-cta-bar a.ec-cta-bar__quote:focus-visible { background: #f1eeea; border-color: #f1eeea; color: #111318; }
  .ec-cta-bar a:focus-visible { outline: 2px solid #ffd001; outline-offset: 2px; }
  .ec-cta-bar svg { flex: 0 0 auto; }

  /* Rien ne doit rester caché sous la barre. */
  body.ec-has-cta-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  /* Éléments fixes du site remontés au-dessus de la barre. */
  body.ec-has-cta-bar #ec-consent-manage { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.ec-has-cta-bar #ast-scroll-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* Bandeau de consentement ouvert : il passe devant, la barre s'efface. */
  html.ec-cb-open .ec-cta-bar { display: none; }
}

@media print { .ec-cta-bar { display: none !important; } }
