/* =========================================================
   Correctifs grand écran + géométrie + fidélité maquette
   ========================================================= */

/* --- Section expertises : la largeur de la colonne-titre doit AJOUTER
       le retrait du conteneur, pas l'absorber. Contenu constant ≈ 400px. --- */
@media(min-width:1025px){
  .cq-exp{min-height:100vh;display:flex;flex-direction:column;justify-content:center}
  .cq-exp__inner{align-items:stretch}
  .cq-exp__titre{
    flex:0 0 calc(434px + max(24px, (100vw - 1400px) / 2))!important;
    max-width:calc(434px + max(24px, (100vw - 1400px) / 2))!important;
    padding:0 34px 0 max(24px, calc((100vw - 1400px) / 2))!important;
  }
  .cq-exp__piste{flex:1 1 auto;min-width:0}
  .cq-pin .cq-exp__piste{overflow:visible!important}
}

/* --- Cartes expertises : l'image remplit TOUTE la carte.
       (`.elementor img{height:auto}` est plus spécifique que `.cq-mcard__img`
       → on force avec une spécificité supérieure.) --- */
.cq-mcard img.cq-mcard__img{
  position:absolute;inset:0;
  width:100%!important;height:100%!important;max-width:none;
  object-fit:cover;border-radius:0;
}

/* --- Panneau RSE : borné à 1400 (le « boxed » ne limite que les enfants) --- */
.elementor-element-cqrsep{max-width:1400px;margin-left:auto!important;margin-right:auto!important;width:100%}

/* --- Panneau RSE : style de la maquette (sobre, crème, petites cartes) --- */
.elementor-element-cqrsep .cq-title .elementor-heading-title{font-size:clamp(26px,2.4vw,40px)}
.elementor-element-cqrsep .cq-title em{color:#fff}
.cq-objectif .elementor-heading-title{color:#F0E2C8!important;font-size:clamp(64px,6vw,110px)!important}
.cq-mention .elementor-heading-title{color:rgba(240,226,200,.72)!important}
.cq-pilier{background:rgba(255,255,255,.05);border-radius:12px;padding:22px 18px;height:100%}
.cq-pilier .elementor-icon,.cq-pilier .elementor-icon i,.cq-pilier .elementor-icon svg{
  color:#F0E2C8!important;fill:#F0E2C8!important;font-size:22px!important;
}
.cq-pilier .elementor-icon-box-icon{margin-bottom:12px!important}
.cq-pilier .elementor-icon-box-title,.cq-pilier .elementor-icon-box-title span{font-size:15.5px!important;font-weight:600!important}
.cq-pilier .elementor-icon-box-description{font-size:13.5px!important;line-height:1.6!important;color:rgba(255,255,255,.72)!important}

/* --- Bande carrière : voile riche et lisible (l'overlay Elementor est
       semi-transparent par défaut → rendu délavé) --- */
.elementor-element-cqcarr > .elementor-background-overlay{
  opacity:1!important;
  background-image:linear-gradient(90deg,rgba(13,28,36,.93) 0%,rgba(13,28,36,.72) 42%,rgba(13,28,36,.18) 100%)!important;
}
/* accent bleu de la maquette sur cette section */
.elementor-element-cqcarr .cq-title em{color:#4498CE}

/* =========================================================
   Boutons « split » v2 — fusion par pseudo-élément.
   Pilule et cercle : même hauteur ; le rectangle de fusion
   s'arrête PILE au centre du cercle → capsule parfaite.
   ========================================================= */
.cq-btn .elementor-button-text{
  padding:17px 26px!important;line-height:14px!important;
}
.cq-btn .elementor-button-icon{width:48px!important;height:48px!important}
.cq-btn .elementor-button-text::after{
  content:"";position:absolute;top:0;bottom:0;left:calc(100% - 24px);width:0;
  background:inherit;z-index:-1;
  transition:width .38s cubic-bezier(.22,1,.36,1);
}
.cq-btn:hover .elementor-button-text{
  padding-right:26px!important;margin-right:0!important;
  border-radius:999px!important;
}
/* 24 (recouvre l'arrondi) + 8 (écart) + 24 (rayon) = 56 */
.cq-btn:hover .elementor-button-text::after{width:56px}

/* petit format : 20 + 8 + 20 = 48 */
.cq-btn--sm .elementor-button-text{padding:13px 18px!important;line-height:14px!important;font-size:12px}
.cq-btn--sm .elementor-button-icon{width:40px!important;height:40px!important}
.cq-btn--sm .elementor-button-text::after{left:calc(100% - 20px)}
.cq-btn--sm:hover .elementor-button-text{padding-right:18px!important}
.cq-btn--sm:hover .elementor-button-text::after{width:48px}

/* =========================================================
   Bouton fantôme v2 : UNE seule pilule bordée continue,
   flèche à l'intérieur — plus de couture entre deux segments.
   ========================================================= */
.cq-btn--ghost .elementor-button-content-wrapper{
  gap:14px;border:1px solid rgba(42,72,84,.32);border-radius:999px;
  padding:16px 24px;transition:background .25s,border-color .25s;
}
.cq-btn--ghost .elementor-button-text{
  background:none!important;border:0!important;padding:0!important;margin:0!important;
  color:#2A4854;border-radius:0!important;
}
.cq-btn--ghost .elementor-button-text::after{display:none}
.cq-btn--ghost .elementor-button-icon{
  width:auto!important;height:auto!important;background:none!important;border:0!important;
  color:#2A4854!important;border-radius:0!important;
}
.cq-btn--ghost:hover .elementor-button-content-wrapper{background:rgba(42,72,84,.06);border-color:rgba(42,72,84,.5)}
.cq-btn--ghost.cq-btn--sm .elementor-button-content-wrapper{padding:12px 18px;gap:11px}
:is(.cq-dark,.cq-hero,.cq-footer,.elementor-element-cqcarr) .cq-btn--ghost .elementor-button-content-wrapper{border-color:rgba(255,255,255,.5)}
:is(.cq-dark,.cq-hero,.cq-footer,.elementor-element-cqcarr) .cq-btn--ghost .elementor-button-text,
:is(.cq-dark,.cq-hero,.cq-footer,.elementor-element-cqcarr) .cq-btn--ghost .elementor-button-icon{color:#fff!important}
:is(.cq-dark,.cq-hero,.cq-footer,.elementor-element-cqcarr) .cq-btn--ghost:hover .elementor-button-content-wrapper{background:rgba(255,255,255,.1)}

/* bouton flottant : mêmes proportions */
.cq-flottant__t{padding:17px 22px;line-height:14px}
.cq-flottant__i{width:48px;height:48px}
