
/* =========================================================
   SOS CASSE AUTO — MENU PREMIUM
   Thème rouge
   ========================================================= */

.sca-cx-header,
.sca-cx-header *,
.sca-cx-header *::before,
.sca-cx-header *::after {
  box-sizing: border-box;
}

.sca-cx-header {
  /*
   * IMPORTANT :
   * certains anciens CSS SosCasseAuto appliquent des règles génériques
   * aux balises <header>. On force donc ici le header à rester un bloc
   * autonome, afin que la topbar et la barre noire ne se mettent jamais
   * côte à côte.
   */
  display: block !important;
  position: relative !important;
  float: none !important;
  clear: both !important;

  z-index: 1200;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible;

  font-family: Poppins, Arial, sans-serif;
}

/* Isolation contre les CSS historiques de la page hôte */
.sca-cx-header > .sca-cx-top,
.sca-cx-header > .sca-cx-catbar {
  display: block !important;
  float: none !important;
  clear: both !important;

  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sca-cx-top__inner,
.sca-cx-catbar__inner {
  float: none !important;
  clear: both !important;
}

.sca-cx-header a {
  text-decoration: none;
}

.sca-cx-header button,
.sca-cx-header input {
  font: inherit;
}


/*
 * Les styles globaux de certaines pages peuvent aussi injecter des
 * min-width / margins sur les formulaires et les nav.
 */
.sca-cx-header form,
.sca-cx-header nav,
.sca-cx-header ul,
.sca-cx-header li {
  float: none !important;
  max-width: none;
}

.sca-cx-header ul {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* =========================================================
   TOPBAR BLANCHE
========================================================= */

.sca-cx-top {
  position: relative;
  background: #ffffff;
  border-top: 1px solid #eceff3;
  border-bottom: 1px solid #e7e9ee;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 901px) {

  /*
   * La topbar reste visible pendant le scroll.
   * On réserve sa hauteur dans le header afin que la barre noire
   * et le contenu ne remontent pas sous elle au chargement.
   */
  .sca-cx-header {
    padding-top: 104px !important;
  }

  .sca-cx-header > .sca-cx-top {
    position: fixed !important;

    top: 0;
    left: 0;
    right: 0;

    width: 100% !important;
    height: 104px;

    z-index: 1250;

    background: #ffffff;

    box-shadow:
      0 4px 16px rgba(15, 23, 42, .10);
  }

  .sca-cx-header > .sca-cx-top .sca-cx-top__inner {
    height: 104px;
    min-height: 104px;
  }

}

.sca-cx-top__inner {
  width: min(1260px, calc(100% - 48px));
  min-height: 104px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 260px minmax(340px, 1fr) auto;
  align-items: center;
  gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.sca-cx-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sca-cx-logo {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
}


/* =========================================================
   RECHERCHE
========================================================= */

.sca-cx-search {
  position: relative;
  height: 48px;

  display: flex;
  align-items: stretch;

  margin: 0;

  background: #ffffff;

  border-radius: 8px;

  box-shadow: none;

  overflow: visible;
  z-index: 40;

  transition:
    border-color .16s ease,
    box-shadow .16s ease;
	
	 border: 0;

  outline: 1px solid #d9dee7;

	
}


.sca-cx-search input[type="search"] {
  flex: 1;
  min-width: 0;

  height: 100%;

  padding: 0 17px;

  border: 0;
  outline: 0;

  background: #ffffff;
  color: #202939;

  font-size: 13px;
}

.sca-cx-search input[type="search"]::placeholder {
  color: #8993a4;
  opacity: 1;
}

.sca-cx-search__btn {
  width: 58px;
  flex: 0 0 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  background: #ef1f2d;
  color: #ffffff;

  cursor: pointer;
  border-radius: 0 7px 7px 0;

  transition: background .16s ease;
}

.sca-cx-search__btn:hover {
  background: #d91724;
}

.sca-cx-search__btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}



/* =========================================================
   AUTOCOMPLETE RECHERCHE
========================================================= */

.sca-cx-search-dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  z-index: 200;

  max-height: min(66vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;

  padding: 7px 0;

  background: #ffffff;
  border: 1px solid #dde2e9;
  border-radius: 10px;

  box-shadow:
    0 18px 42px rgba(15, 23, 42, .16);

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sca-cx-search-dd[hidden] {
  display: none !important;
}

.sca-cx-search-group {
  padding: 10px 14px 7px;

  color: #ef1f2d;

  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.sca-cx-search-group:not(:first-child) {
  margin-top: 5px;
  padding-top: 12px;
  border-top: 1px solid #edf0f3;
}

.sca-cx-search-item {
  margin: 0 7px;
  padding: 9px 10px;

  border-radius: 8px;

  color: #101828;

  cursor: pointer;

  transition:
    background .12s ease,
    color .12s ease;
}

.sca-cx-search-item:hover,
.sca-cx-search-item.is-active {
  background: #f5f5f6;
}

.sca-cx-search-item__label {
  display: block;

  color: #101828;

  font-size: 14px;
  line-height: 1.3;
  font-weight: 780;
}

.sca-cx-search-item__sub {
  margin-top: 3px;

  color: #7a8494;

  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}

.sca-cx-search-empty {
  padding: 16px;

  color: #7a8494;

  font-size: 12px;
  font-weight: 650;
}


/* =========================================================
   CTA DROITE
========================================================= */

.sca-cx-action {
  min-height: 48px;

  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  border-radius: 8px;

  background: #ef1f2d;
  color: #ffffff !important;

  font-size: 13px;
  line-height: 1;
  font-weight: 800;

  white-space: nowrap;

  box-shadow:
    0 7px 17px rgba(239, 31, 45, .17);

  transition:
    background .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}

.sca-cx-action:hover {
  background: #d91724;
  color: #ffffff !important;

  transform: translateY(-1px);

  box-shadow:
    0 9px 22px rgba(239, 31, 45, .23);
}

.sca-cx-action__arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;

  transition: transform .16s ease;
}

.sca-cx-action:hover .sca-cx-action__arrow {
  transform: translateX(3px);
}


/* =========================================================
   BARRE NAVIGATION
   Gauche = navigation clients
   Droite = contact / partenaires
========================================================= */

.sca-cx-catbar {
  position: relative;

  width: 100%;

  background: #2d3440;

  border-bottom: 1px solid rgba(0,0,0,.10);

  box-shadow:
    0 3px 10px rgba(15,23,42,.10);
}


.sca-cx-catbar__inner {
  width: min(1260px, calc(100% - 48px));
  height: 52px;

  margin: 0 auto;

  display: flex;
  align-items: stretch;
}


.sca-cx-nav {
  width: 100%;
  height: 52px;

  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
}


.sca-cx-nav__list {
  height: 52px;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: stretch;

  list-style: none;
}


.sca-cx-nav__list--left {
  flex: 1 1 auto;

  justify-content: flex-start;
  min-width: 0;
}


.sca-cx-nav__list--right {
  flex: 0 0 auto;

  justify-content: flex-end;

  margin-left: auto;

  
}


.sca-cx-nav__item {
  position: relative;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: stretch;

  flex: 0 0 auto;
}


.sca-cx-nav__link,
.sca-cx-nav__button {
  position: relative;

  /* Aucun déplacement au survol, même si un ancien CSS du site en ajoute un */
  transform: none !important;
  translate: none !important;
  top: auto !important;
  left: auto !important;

  min-height: 52px;

  padding: 0 13px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 0;
  border-radius: 0;

  background: transparent;

  color: #ffffff;

  font-size: 15px;
  line-height: 1;
  font-weight: 800;

  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;

  cursor: pointer;

  transition:
    color .15s ease,
    background-color .15s ease;
}


.sca-cx-nav__link:hover,
.sca-cx-nav__button:hover,
.sca-cx-nav__item.is-open > .sca-cx-nav__button {
  color: #ffffff;
  background: rgba(255,255,255,.065);
}

/*
 * NAVIGATION DE GAUCHE :
 * aucun effet visuel au survol.
 * On neutralise aussi les styles globaux éventuels du site.
 */
.sca-cx-nav__list--left .sca-cx-nav__link,
.sca-cx-nav__list--left .sca-cx-nav__button,
.sca-cx-nav__list--left .sca-cx-nav__link:hover,
.sca-cx-nav__list--left .sca-cx-nav__button:hover,
.sca-cx-nav__list--left .sca-cx-nav__link:focus,
.sca-cx-nav__list--left .sca-cx-nav__button:focus,
.sca-cx-nav__list--left .sca-cx-nav__link:active,
.sca-cx-nav__list--left .sca-cx-nav__button:active,
.sca-cx-nav__list--left .sca-cx-nav__item.is-open > .sca-cx-nav__button {
  background: transparent !important;
  color: #ffffff !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  margin: 0 !important;

  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;

  transition: none !important;
  animation: none !important;
}


/* =========================================================
   ONGLET ACTIF — TRAIT ROUGE UNIQUEMENT
========================================================= */

.sca-cx-nav__item--active > .sca-cx-nav__link,
.sca-cx-nav__item--active > .sca-cx-nav__button {
  color: #ffffff;
  background: transparent;
}


.sca-cx-nav__item--active > .sca-cx-nav__link::after,
.sca-cx-nav__item--active > .sca-cx-nav__button::after {
  content: "";

  position: absolute;

  left: 12px;
  right: 12px;
  bottom: 0;

  height: 3px;

  border-radius: 3px 3px 0 0;

  background: #ef1f2d;
}


/* =========================================================
   ZONE DROITE
========================================================= */

.sca-cx-nav__item--contact .sca-cx-nav__link {
  padding-left: 17px;
  padding-right: 17px;
}


.sca-cx-nav__item--partner > .sca-cx-nav__button {
  padding-left: 18px;
  padding-right: 18px;

  background: #424b58;

  font-weight: 800;
}


.sca-cx-nav__item--partner > .sca-cx-nav__button:hover,
.sca-cx-nav__item--partner.is-open > .sca-cx-nav__button {
  background: #4b5563;
}



/* Menu Services auto */
.sca-cx-nav__item--services > .sca-cx-nav__button {
  font-family: Poppins, Arial, sans-serif !important;
  font-size: 15px;
  font-weight: 800 !important;
  font-style: normal !important;
  letter-spacing: .01em;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
}

.sca-cx-nav__item--services .sca-cx-submenu {
  width: 270px;
}

.sca-cx-nav__item--services .sca-cx-submenu__grid {
  grid-template-columns: 1fr;
  gap: 3px;
}

.sca-cx-nav__item--services .sca-cx-submenu a {
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
}


/* Menu partenaire : compact, aligné à droite */
.sca-cx-nav__item--partner .sca-cx-submenu {
  left: auto;
  right: 0;

  width: 255px;
}


.sca-cx-nav__item--partner .sca-cx-submenu::before {
  left: auto;
  right: 24px;
}


.sca-cx-nav__item--partner .sca-cx-submenu__grid {
  grid-template-columns: 1fr;
  gap: 3px;
}


.sca-cx-nav__item--partner .sca-cx-submenu a {
  min-height: 44px;

  font-size: 15px;
  font-weight: 700;
}


/* =========================================================
   DESKTOP PLUS ÉTROIT
========================================================= */

@media (max-width: 1180px) {

  .sca-cx-catbar__inner {
    width: calc(100% - 28px);
  }

  .sca-cx-nav {
    gap: 8px;
  }

  .sca-cx-nav__link,
  .sca-cx-nav__button {
    padding-left: 9px;
    padding-right: 9px;

    font-size: 13px;
  }

  .sca-cx-nav__item--services > .sca-cx-nav__button {
    font-size: 13px;
  }

  .sca-cx-nav__item--contact .sca-cx-nav__link {
    padding-left: 11px;
    padding-right: 11px;
  }

  .sca-cx-nav__item--partner > .sca-cx-nav__button {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sca-cx-nav__item--active > .sca-cx-nav__link::after,
  .sca-cx-nav__item--active > .sca-cx-nav__button::after {
    left: 8px;
    right: 8px;
  }
}


/* =========================================================
   SOUS-MENU
========================================================= */

.sca-cx-caret {
  display: inline-block;

  font-size: 9px;
  line-height: 1;

  opacity: .7;

  transition: transform .15s ease;
}

.sca-cx-nav__item.is-open .sca-cx-caret {
  transform: rotate(180deg);
}

.sca-cx-submenu {
  position: absolute;

  top: calc(100% + 9px);
  left: 0;

  z-index: 30;

  width: 520px;
  max-width: calc(100vw - 28px);

  padding: 10px;

  background: #ffffff;

  border: 1px solid #e2e6ec;
  border-radius: 11px;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, .17);
}

.sca-cx-submenu[hidden] {
  display: none !important;
}

.sca-cx-submenu::before {
  content: "";

  position: absolute;

  top: -7px;
  left: 26px;

  width: 13px;
  height: 13px;

  transform: rotate(45deg);

  background: #ffffff;

  border-left: 1px solid #e2e6ec;
  border-top: 1px solid #e2e6ec;
}

.sca-cx-submenu__grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(190px, 1fr));

  gap: 4px 10px;
}

.sca-cx-submenu a {
  min-height: 40px;

  padding: 9px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  border-radius: 8px;

  color: #293242;

  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;

  transition:
    background .12s ease,
    color .12s ease,
    transform .12s ease;
}

.sca-cx-submenu a:hover {
  background: #fff2f3;
  color: #d91d2b;

  transform: translateY(-1px);
}

.sca-cx-hint {
  color: #8a94a5;

  font-size: 10px;
  font-weight: 500;

  white-space: nowrap;
}


/* =========================================================
   MENU BURGER MOBILE
========================================================= */

.sca-cx-burger {
  display: none;

  width: 43px;
  height: 43px;

  padding: 0;

  border: 1px solid #e1e5eb;
  border-radius: 8px;

  background: #ffffff;
  color: #111827;

  cursor: pointer;
}

.sca-cx-burger span {
  display: block;

  width: 21px;
  height: 2px;

  margin: 4px auto;

  border-radius: 10px;

  background: #111827;
}


/* =========================================================
   SEARCH ROW MOBILE
========================================================= */

.sca-cx-search-mobile {
  display: none;

  padding: 10px 14px 12px;

  background: #ffffff;

  border-bottom: 1px solid #e7e9ee;
}

.sca-cx-search-mobile .sca-cx-search {
  width: 100%;
}


/* =========================================================
   OVERLAY + DRAWER MOBILE
========================================================= */

.sca-cx-overlay {
  position: fixed;

  inset: 0;

  z-index: 1300;

  background: rgba(10, 13, 20, .48);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sca-cx-overlay[hidden] {
  display: none !important;
}

.sca-cx-drawer {
  position: fixed;

  top: 0;
  left: 0;
  bottom: 0;

  z-index: 1400;

  width: min(88vw, 360px);

  padding: 0 0 24px;

  background: #ffffff;

  box-shadow:
    18px 0 45px rgba(15, 23, 42, .18);

  transform: translateX(-104%);

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  transition: transform .22s ease;
}

.sca-cx-drawer.is-open {
  transform: translateX(0);
}

.sca-cx-drawer__top {
  min-height: 70px;

  padding: 12px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #eceff3;
}

.sca-cx-drawer__logo {
  width: 190px;
  height: auto;
}

.sca-cx-drawer__close {
  width: 38px;
  height: 38px;

  padding: 0;

  border: 1px solid #e1e5eb;
  border-radius: 8px;

  background: #ffffff;
  color: #111827;

  font-size: 20px;

  cursor: pointer;
}

.sca-cx-drawer__cta {
  margin: 14px 15px 8px;

  min-height: 48px;

  padding: 0 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #ef1f2d;
  color: #ffffff !important;

  font-size: 13px;
  font-weight: 800;
}

.sca-cx-drawer__nav {
  padding: 8px 12px;
}

.sca-cx-drawer__item,
.sca-cx-drawer__catbtn {
  width: 100%;
  min-height: 48px;

  padding: 11px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 0;
  border-bottom: 1px solid #f0f2f5;

  background: #ffffff;

  color: #293242;

  font-size: 13px;
  font-weight: 700;

  text-align: left;

  cursor: pointer;
}

.sca-cx-drawer__item--motor {
  color: #e91f2e;
}

.sca-cx-drawer__chev {
  color: #9aa2af;

  font-size: 19px;

  transition: transform .15s ease;
}

.sca-cx-drawer__group.is-open .sca-cx-drawer__chev {
  transform: rotate(90deg);
}

.sca-cx-drawer__sub {
  padding: 3px 0 7px 14px;

  background: #fafafa;
}

.sca-cx-drawer__sub[hidden] {
  display: none !important;
}


.sca-cx-drawer__group:last-child {
  margin-top: 8px;

  border-top: 1px solid #e9edf2;
}


.sca-cx-drawer__group:last-child .sca-cx-drawer__catbtn {
  color: #e91f2e;

  font-weight: 800;
}


.sca-cx-drawer__sub a {
  min-height: 40px;

  padding: 9px 10px;

  display: flex;
  align-items: center;

  color: #525d6d;

  font-size: 12px;
  font-weight: 600;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1120px) {

  .sca-cx-top__inner,
  .sca-cx-catbar__inner {
    width: calc(100% - 32px);
  }

  .sca-cx-top__inner {
    grid-template-columns:
      220px minmax(280px, 1fr) auto;

    gap: 20px;
  }

  .sca-cx-logo {
    width: 215px;
  }

  .sca-cx-nav__link,
  .sca-cx-nav__button {
    padding-left: 13px;
    padding-right: 13px;

    font-size: 11px;
  }
}


@media (max-width: 900px) {

  .sca-cx-top__inner {
    width: calc(100% - 24px);
    min-height: 72px;

    grid-template-columns:
      44px 1fr auto;

    gap: 12px;
  }

  .sca-cx-brand {
    justify-content: center;
  }

  .sca-cx-logo {
    width: 205px;
  }

  .sca-cx-burger {
    display: block;
  }

  .sca-cx-search--desktop {
    display: none;
  }

  .sca-cx-action {
    min-height: 42px;

    padding: 0 13px;

    font-size: 11px;
  }

  .sca-cx-action__arrow {
    display: none;
  }

  .sca-cx-catbar {
    display: none;
  }

  .sca-cx-search-mobile {
    display: block;
  }
}


@media (max-width: 520px) {

  .sca-cx-top__inner {
    grid-template-columns:
      43px 1fr;

    min-height: 68px;
  }

  .sca-cx-logo {
    width: 182px;
  }

  .sca-cx-action {
    display: none;
  }

  .sca-cx-search-mobile {
    padding:
      9px 11px 11px;
  }

  .sca-cx-search {
    height: 45px;
  }

  .sca-cx-search input[type="search"] {
    font-size: 12px;
  }

  .sca-cx-search__btn {
    width: 52px;
    flex-basis: 52px;
  }
}

/* =========================================================
   ISOLATION FORTE CONTRE style.css DE LA PAGE HÔTE
   On remet à zéro uniquement les boutons/liens de la barre noire,
   puis on réapplique leur style. Ainsi les a:hover / button:hover
   globaux du site ne peuvent plus les déplacer ni changer leur fond.
========================================================= */

.sca-cx-header .sca-cx-catbar .sca-cx-nav__item > .sca-cx-nav__link,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__item > .sca-cx-nav__button {
  all: unset !important;

  box-sizing: border-box !important;

  position: relative !important;

  min-height: 52px !important;
  height: 52px !important;

  padding: 0 13px !important;
  margin: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: #fff !important;

  font-family: Poppins, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-style: normal !important;
  font-weight: 800 !important;

  letter-spacing: .01em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  cursor: pointer !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  filter: none !important;

  transition: none !important;
  animation: none !important;
}

/* Zéro effet au hover/focus/active sur la navigation de gauche */
.sca-cx-header .sca-cx-catbar .sca-cx-nav__list--left .sca-cx-nav__item > .sca-cx-nav__link:hover,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__list--left .sca-cx-nav__item > .sca-cx-nav__button:hover,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__list--left .sca-cx-nav__item > .sca-cx-nav__link:focus,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__list--left .sca-cx-nav__item > .sca-cx-nav__button:focus,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__list--left .sca-cx-nav__item > .sca-cx-nav__link:active,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__list--left .sca-cx-nav__item > .sca-cx-nav__button:active,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__list--left .sca-cx-nav__item.is-open > .sca-cx-nav__button {
  background: transparent !important;
  color: #fff !important;

  padding: 0 13px !important;
  margin: 0 !important;

  border: 0 !important;
  box-shadow: none !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;

  filter: none !important;

  transition: none !important;
  animation: none !important;
}

/* L'onglet actif garde uniquement son trait rouge */
.sca-cx-header .sca-cx-catbar .sca-cx-nav__item--active > .sca-cx-nav__link::after,
.sca-cx-header .sca-cx-catbar .sca-cx-nav__item--active > .sca-cx-nav__button::after {
  content: "" !important;

  position: absolute !important;

  left: 12px !important;
  right: 12px !important;
  bottom: 0 !important;

  height: 3px !important;

  border-radius: 3px 3px 0 0 !important;

  background: #ef1f2d !important;
}


/* Responsive desktop compact */
@media (max-width: 1180px) {
  .sca-cx-header .sca-cx-catbar .sca-cx-nav__item > .sca-cx-nav__link,
  .sca-cx-header .sca-cx-catbar .sca-cx-nav__item > .sca-cx-nav__button {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 13px !important;
  }
}


/* =========================================================
   SOULIGNEMENT ROUGE UNIQUEMENT AU SURVOL
   Aucun soulignement permanent sur la page active
========================================================= */

/* Jamais de barre par défaut, même pour l'élément actif */
.sca-cx-header .sca-cx-catbar
.sca-cx-nav__item--active > .sca-cx-nav__link::after,
.sca-cx-header .sca-cx-catbar
.sca-cx-nav__item--active > .sca-cx-nav__button::after {
  content: none !important;
  display: none !important;
}

/* Barre rouge uniquement au passage de la souris */
.sca-cx-header .sca-cx-catbar
.sca-cx-nav__item > .sca-cx-nav__link:hover::after,
.sca-cx-header .sca-cx-catbar
.sca-cx-nav__item > .sca-cx-nav__button:hover::after {
  content: "" !important;
  display: block !important;

  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 0 !important;

  height: 3px !important;

  border: 0 !important;
  border-radius: 3px 3px 0 0 !important;

  background: #ef1f2d !important;

  transform: none !important;
  transition: none !important;
  pointer-events: none !important;
}

/* Même sur une rubrique active : aucune barre hors survol */
.sca-cx-header .sca-cx-catbar
.sca-cx-nav__item--active > .sca-cx-nav__link:not(:hover)::after,
.sca-cx-header .sca-cx-catbar
.sca-cx-nav__item--active > .sca-cx-nav__button:not(:hover)::after {
  content: none !important;
  display: none !important;
}


/* =========================================================
   MOBILE — DRAWER
   Isolation forte contre le style.css historique
========================================================= */

@media (max-width: 900px) {

  /* ---------- HEADER MOBILE ---------- */

  .sca-cx-header .sca-cx-top {
    display: block !important;
    width: 100% !important;
    background: #fff !important;
  }

  .sca-cx-header .sca-cx-top__inner {
    width: calc(100% - 24px) !important;
    min-height: 72px !important;
    height: 72px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .sca-cx-header .sca-cx-burger {
    all: unset !important;

    box-sizing: border-box !important;

    width: 42px !important;
    height: 42px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    border: 1px solid #dfe4ea !important;
    border-radius: 9px !important;

    background: #fff !important;

    cursor: pointer !important;
  }

  .sca-cx-header .sca-cx-burger span {
    all: unset !important;

    display: block !important;

    width: 20px !important;
    height: 2px !important;

    border-radius: 10px !important;
    background: #243244 !important;
  }

  .sca-cx-header .sca-cx-brand {
    all: unset !important;

    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sca-cx-header .sca-cx-logo {
    all: unset !important;

    display: block !important;

    width: 185px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Colonne droite vide pour garder le logo parfaitement centré */
  .sca-cx-header .sca-cx-action {
    display: none !important;
  }

  .sca-cx-header .sca-cx-search--desktop {
    display: none !important;
  }

  /* La barre desktop ne doit JAMAIS apparaître sur mobile */
  .sca-cx-header .sca-cx-catbar {
    display: none !important;
  }

  /* Recherche mobile sous le logo */
  .sca-cx-header .sca-cx-search-mobile {
    display: block !important;

    width: 100% !important;

    padding: 9px 12px 11px !important;
    margin: 0 !important;

    background: #fff !important;
    border-bottom: 1px solid #e7e9ee !important;
  }

  .sca-cx-header .sca-cx-search-mobile .sca-cx-search {
    width: 100% !important;
    height: 45px !important;
    margin: 0 !important;
  }


  /* ---------- OVERLAY ---------- */

  #scaCxOverlay.sca-cx-overlay {
    all: unset !important;

    position: fixed !important;
    inset: 0 !important;

    z-index: 2147483000 !important;

    display: block !important;

    background: rgba(17, 24, 39, .46) !important;

    opacity: 1 !important;
  }

  #scaCxOverlay.sca-cx-overlay[hidden] {
    display: none !important;
  }


  /* ---------- DRAWER ---------- */

  #scaCxDrawer.sca-cx-drawer {
    all: unset !important;

    box-sizing: border-box !important;

    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;

    z-index: 2147483001 !important;

    width: min(92vw, 380px) !important;
    max-width: 380px !important;
    height: 100dvh !important;

    display: block !important;

    padding: 0 !important;
    margin: 0 !important;

    background: #fff !important;

    box-shadow:
      14px 0 38px rgba(15, 23, 42, .18) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;

    transform: translateX(-105%) !important;

    transition: transform .22s ease !important;
  }

  #scaCxDrawer.sca-cx-drawer.is-open {
    transform: translateX(0) !important;
  }


  /* ---------- TOP ---------- */

  #scaCxDrawer .sca-cx-drawer__top {
    all: unset !important;

    box-sizing: border-box !important;

    height: 64px !important;

    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    border-bottom: 1px solid #e6e9ee !important;
    background: #fff !important;
  }

  #scaCxDrawer .sca-cx-drawer__close {
    all: unset !important;

    box-sizing: border-box !important;

    width: 38px !important;
    height: 38px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid #dfe4ea !important;
    border-radius: 9px !important;

    background: #fff !important;
    color: #1f2937 !important;

    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 400 !important;

    cursor: pointer !important;
  }


  /* ---------- CONTACT ---------- */

  #scaCxDrawer .sca-cx-drawer__contact {
    all: unset !important;

    box-sizing: border-box !important;

    min-height: 63px !important;

    padding: 10px 14px !important;

    display: flex !important;
    align-items: center !important;
    gap: 11px !important;

    border-bottom: 1px solid #eceff3 !important;

    background: #fff !important;
    color: #111827 !important;

    cursor: pointer !important;
  }

  #scaCxDrawer .sca-cx-drawer__contact-icon {
    all: unset !important;

    box-sizing: border-box !important;

    width: 36px !important;
    height: 36px !important;

    flex: 0 0 36px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 9px !important;

    background: #fff1f2 !important;
    color: #ef1f2d !important;
  }

  #scaCxDrawer .sca-cx-drawer__contact-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  #scaCxDrawer .sca-cx-drawer__contact-text {
    all: unset !important;

    flex: 1 1 auto !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;

    min-width: 0 !important;
  }

  #scaCxDrawer .sca-cx-drawer__contact-text small {
    all: unset !important;

    display: block !important;

    color: #8a94a5 !important;

    font-family: Poppins, Arial, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
  }

  #scaCxDrawer .sca-cx-drawer__contact-text strong {
    all: unset !important;

    display: block !important;

    color: #111827 !important;

    font-family: Poppins, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }


  /* ---------- NAV PRINCIPALE ---------- */

  #scaCxDrawer .sca-cx-drawer__nav {
    all: unset !important;

    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #fff !important;
  }

  #scaCxDrawer .sca-cx-drawer__item,
  #scaCxDrawer .sca-cx-drawer__catbtn {
    all: unset !important;

    box-sizing: border-box !important;

    width: 100% !important;
    min-height: 49px !important;

    padding: 0 14px !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    border-bottom: 1px solid #eceff3 !important;

    background: #fff !important;
    color: #111827 !important;

    font-family: Poppins, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;

    text-align: left !important;
    text-decoration: none !important;

    cursor: pointer !important;

    transform: none !important;
    transition: none !important;
  }

  #scaCxDrawer .sca-cx-drawer__item:hover,
  #scaCxDrawer .sca-cx-drawer__catbtn:hover,
  #scaCxDrawer .sca-cx-drawer__item:focus,
  #scaCxDrawer .sca-cx-drawer__catbtn:focus {
    background: #fff !important;
    color: #111827 !important;
    transform: none !important;
  }

  #scaCxDrawer .sca-cx-drawer__item--request {
    color: #ef1f2d !important;
    font-weight: 800 !important;
  }


  /* ---------- CHEVRONS ---------- */

  #scaCxDrawer .sca-cx-drawer__chev {
    all: unset !important;

    flex: 0 0 auto !important;

    display: inline-block !important;

    color: #8c949f !important;

    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 400 !important;

    transform: none !important;
    transition: transform .15s ease !important;
  }

  #scaCxDrawer .sca-cx-drawer__group.is-open > .sca-cx-drawer__catbtn .sca-cx-drawer__chev {
    transform: rotate(90deg) !important;
  }


  /* ---------- SOUS-MENUS ---------- */

  #scaCxDrawer .sca-cx-drawer__sub {
    all: unset !important;

    box-sizing: border-box !important;

    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 4px 0 5px 18px !important;

    background: #f8f9fb !important;

    border-bottom: 1px solid #eceff3 !important;
  }

  #scaCxDrawer .sca-cx-drawer__sub[hidden] {
    display: none !important;
  }

  #scaCxDrawer .sca-cx-drawer__sub a {
    all: unset !important;

    box-sizing: border-box !important;

    min-height: 41px !important;

    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;

    color: #4b5563 !important;

    font-family: Poppins, Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;

    cursor: pointer !important;
  }


  /* ---------- SÉPARATEUR ---------- */

  #scaCxDrawer .sca-cx-drawer__sep {
    all: unset !important;

    display: block !important;

    width: 100% !important;
    height: 7px !important;

    background: #f1f3f5 !important;

    border-top: 1px solid #e4e7ec !important;
    border-bottom: 1px solid #e4e7ec !important;
  }


  /* ---------- NAV SECONDAIRE ---------- */

  #scaCxDrawer .sca-cx-drawer__nav--secondary .sca-cx-drawer__catbtn,
  #scaCxDrawer .sca-cx-drawer__secondary-link {
    all: unset !important;

    box-sizing: border-box !important;

    width: 100% !important;
    min-height: 47px !important;

    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    border-bottom: 1px solid #eceff3 !important;

    background: #fff !important;
    color: #27303d !important;

    font-family: Poppins, Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;

    cursor: pointer !important;
  }

  #scaCxDrawer .sca-cx-drawer__nav--secondary .sca-cx-drawer__catbtn {
    font-weight: 600 !important;
  }

}


/* Très petit mobile */
@media (max-width: 520px) {

  .sca-cx-header .sca-cx-top__inner {
    width: calc(100% - 20px) !important;
    min-height: 68px !important;
    height: 68px !important;
  }

  .sca-cx-header .sca-cx-logo {
    width: 175px !important;
  }

  #scaCxDrawer.sca-cx-drawer {
    width: min(94vw, 380px) !important;
  }

}


/* =========================================================
   MOBILE V2 — PLEINE LARGEUR + ACTION RAPIDE
========================================================= */

@media (max-width: 900px) {

  /* Drawer sur toute la largeur */
  #scaCxDrawer.sca-cx-drawer {
    width: 100vw !important;
    max-width: none !important;
  }


  /* Action rapide sous le bouton fermer */
  #scaCxDrawer .sca-cx-drawer__quick {
    all: unset !important;

    box-sizing: border-box !important;

    display: block !important;

    width: 100% !important;

    padding: 12px 14px !important;

    background: #fff !important;

    border-bottom: 1px solid #e7e9ee !important;
  }

  #scaCxDrawer .sca-cx-drawer__quick-link {
    all: unset !important;

    box-sizing: border-box !important;

    min-height: 50px !important;

    padding: 0 16px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;

    border-radius: 9px !important;

    background: #ef1f2d !important;
    color: #fff !important;

    font-family: Poppins, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 800 !important;

    text-decoration: none !important;

    cursor: pointer !important;
  }

  #scaCxDrawer .sca-cx-drawer__quick-arrow {
    all: unset !important;

    color: #fff !important;

    font-family: Arial, sans-serif !important;
    font-size: 19px !important;
    line-height: 1 !important;
  }


  /* "Devenir partenaire" reste dans le même bloc que les liens principaux */
  #scaCxDrawer .sca-cx-drawer__nav--main .sca-cx-drawer__group:last-child {
    margin-top: 0 !important;
    border-top: 0 !important;
  }

  #scaCxDrawer .sca-cx-drawer__nav--main .sca-cx-drawer__group:last-child .sca-cx-drawer__catbtn {
    color: #111827 !important;
    font-weight: 700 !important;
  }


  /* Liens légaux : plus discrets, façon footer mobile */
  #scaCxDrawer .sca-cx-drawer__nav--secondary {
    padding-bottom: 18px !important;
  }

  #scaCxDrawer .sca-cx-drawer__secondary-link {
    min-height: 46px !important;

    color: #4b5563 !important;

    font-size: 13px !important;
    font-weight: 500 !important;
  }

}


@media (max-width: 520px) {

  #scaCxDrawer.sca-cx-drawer {
    width: 100vw !important;
    max-width: none !important;
  }

}



/* =========================================================
   MOBILE — EN-TÊTE FIXE
   La ligne logo/burger + la recherche restent visibles.
========================================================= */
@media (max-width: 900px) {

  /* Réserve la place des 2 barres fixes dans le flux. */
  .sca-cx-header {
    padding-top: 138px !important;
  }

  /* Ligne principale : burger + logo. */
  .sca-cx-header > .sca-cx-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: 72px !important;

    z-index: 1251 !important;

    background: #fff !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e7e9ee !important;

    box-shadow: none !important;
  }

  /* Barre de recherche juste sous la ligne logo. */
  .sca-cx-header > .sca-cx-search-mobile {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: 66px !important;

    z-index: 1250 !important;

    margin: 0 !important;
    padding: 9px 12px 11px !important;

    background: #fff !important;
    border-bottom: 1px solid #e7e9ee !important;

    box-shadow: 0 5px 14px rgba(15, 23, 42, .10) !important;
  }
}

@media (max-width: 520px) {

  .sca-cx-header {
    padding-top: 133px !important;
  }

  .sca-cx-header > .sca-cx-top {
    height: 68px !important;
  }

  .sca-cx-header > .sca-cx-search-mobile {
    top: 68px !important;
    height: 65px !important;
    padding: 9px 11px 11px !important;
  }
}
