/* =========================================================
   BOUTONS « DEMANDER UNE ÉTUDE / UN DEVIS » : un seul style sur tout le site, toujours centrés
   Chargé sur toutes les pages (base.html.twig). Concerne les liens .js-cta-simulateur
   et tout bouton .btn-green qui mène à la page de contact (hors barre de navigation).

   Style retenu (option 3) : carte vert titres #0A5048, bordure turquoise #63D3C2, tuile turquoise
   avec le « e » du logo (image cta-e-nuit-sur-blanc.png), texte blanc, flèche turquoise.
   Le texte du bouton reste celui de la page ; l'ancienne icône (main) est masquée.
   Les !important sont voulus : ils imposent ce style malgré les anciennes règles des pages.
   ========================================================= */

a.js-cta-simulateur:not(.nav-wrapper > *),
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *) {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.95rem !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0.8rem 1.2rem 0.8rem 0.8rem !important;
    color: #fff !important;
    background: #0A5048 !important;
    border: 2px solid #0A5048 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(11, 43, 41, 0.25);
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

/* tuile avec le « e » du logo (remplace l'effet de survol d'origine porté par ::before) */
a.js-cta-simulateur:not(.nav-wrapper > *)::before,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *)::before,
a.js-cta-simulateur:not(.nav-wrapper > *):hover::before,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *):hover::before {
    content: "" !important;
    position: static !important;
    flex: 0 0 48px;
    order: -1;
    width: 48px !important;
    height: 48px !important;
    background: #fff url("../images/cta-e-nuit-sur-blanc.png") center / cover no-repeat !important;
    border-radius: 50%;
    transition: none !important;
}

/* flèche */
a.js-cta-simulateur:not(.nav-wrapper > *)::after,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *)::after {
    content: "→";
    margin-left: 0.35rem;
    color: #63D3C2;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

/* ancienne icône (main) masquée */
a.js-cta-simulateur:not(.nav-wrapper > *) > i,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *) > i {
    display: none !important;
}

a.js-cta-simulateur:not(.nav-wrapper > *):hover,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *):hover {
    color: #fff !important;
    background: #0B6157 !important;
    box-shadow: 0 16px 34px rgba(11, 43, 41, 0.35);
    transform: translateY(-2px);
}

a.js-cta-simulateur:not(.nav-wrapper > *):hover::after,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *):hover::after {
    transform: translateX(4px);
}

a.js-cta-simulateur:not(.nav-wrapper > *):focus-visible,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *):focus-visible {
    outline: 3px solid rgba(99, 211, 194, 0.55);
    outline-offset: 3px;
}

/* conteneurs habituels des boutons : texte centré aussi */
.hero-actions,
.pro-intro__actions,
.process-cta,
.solar-slide__content > a.solar-slide__cta {
    text-align: center;
}

/* Liseret turquoise : visible au survol et au clic (au repos, la bordure se confond avec le fond) */
a.js-cta-simulateur:not(.nav-wrapper > *):hover,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *):hover {
    border-color: #63D3C2 !important;
}

a.js-cta-simulateur:not(.nav-wrapper > *):active,
a.btn-green[href$="contactez-nous"]:not(.nav-wrapper > *):active {
    border-color: #63D3C2 !important;
}