/* ============================================
   CMP – Consent Management Platform
   Compagnons Pro® — RGPD
   ============================================ */

/* --- Overlay --- */
.cmp-overlay {
  position: fixed; inset: 0;
  background: rgba(10,30,60,.55);
  z-index: 10000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* --- Layer 1 : Bandeau principal --- */
.cmp-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 10001;
  font-family: "Archivo", sans-serif;
  animation: cmpSlideUp .45s cubic-bezier(.22,1,.36,1);
}
.cmp-banner__inner {
  max-width: 640px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(10,40,80,.14), 0 2px 8px rgba(0,0,0,.07);
  padding: 0;
  overflow: hidden;
}

/* Accent top bar */
.cmp-banner__inner::before {
  content: "";
  display: block; height: 4px;
  background: linear-gradient(90deg, #D4A64A, #2F5B8F);
}

/* Header */
.cmp-banner__header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 28px 0;
}
.cmp-banner__logo { height: 44px; width: auto; }
.cmp-banner__title {
  font-size: 16px; font-weight: 700; color: #2B2B2B;
  letter-spacing: -.2px;
}

/* Body */
.cmp-banner__body { padding: 14px 28px 0; }
.cmp-banner__text {
  font-size: 13px; line-height: 1.7; color: #5A6475; margin: 0 0 10px;
}
.cmp-banner__link {
  font-size: 12.5px; color: #2F5B8F; text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(47,91,143,.35);
  transition: border-color .2s;
}
.cmp-banner__link:hover { border-color: #2F5B8F; color: #2F5B8F; }

/* --- Boutons --- */
.cmp-banner__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 18px 28px 0;
}
.cmp-btn {
  flex: 1; min-width: 110px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
  border: none;
  letter-spacing: .01em;
}
.cmp-btn--primary {
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
  color: #fff;
  box-shadow: 0 4px 18px rgba(47,91,143,.25);
}
.cmp-btn--primary:hover {
  background: linear-gradient(135deg, #1E3F6E, #1E3F6E);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(42,80,127,.35);
}
.cmp-btn--outline {
  background: #F5F7FA; color: #2B2B2B;
  border: 1.5px solid #e2e5ea;
}
.cmp-btn--outline:hover {
  background: #F5F7FA; border-color: #cdd2da;
}

/* --- Footer --- */
.cmp-banner__footer {
  text-align: center;
  font-size: 11px; color: #aaa;
  padding: 14px 28px 16px;
  border-top: 1px solid #F5F7FA;
  margin-top: 16px;
}
.cmp-banner__footer a {
  color: #999; text-decoration: none;
  border-bottom: 1px dotted #ccc;
}
.cmp-banner__footer a:hover { color: #2F5B8F; border-color: #2F5B8F; }
.cmp-banner__sep { margin: 0 6px; opacity: .5; }

/* --- Layer 2 : Panneau personnalisation --- */
.cmp-settings {
  position: fixed; inset: 0;
  z-index: 10002;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: "Archivo", sans-serif;
}
.cmp-settings__inner {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 56px rgba(10,40,80,.16), 0 2px 10px rgba(0,0,0,.07);
  width: 100%; max-width: 580px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: cmpFadeIn .3s ease;
}

/* Accent top bar settings */
.cmp-settings__inner::before {
  content: "";
  display: block; height: 4px;
  background: linear-gradient(90deg, #D4A64A, #2F5B8F);
  flex-shrink: 0;
}

.cmp-settings__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px 14px;
  border-bottom: 1px solid #F5F7FA;
  flex-shrink: 0;
}
.cmp-settings__header > div {
  display: flex; align-items: center; gap: 12px;
}
.cmp-settings__close {
  background: #F5F7FA; border: none; border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; color: #888;
  transition: all .2s;
}
.cmp-settings__close:hover { background: #F5F7FA; color: #2F5B8F; }

.cmp-settings__body {
  padding: 18px 26px;
  overflow-y: auto; flex: 1;
}
.cmp-settings__intro {
  font-size: 13px; line-height: 1.65; color: #5A6475;
  margin: 0 0 18px;
}

/* --- Catégories --- */
.cmp-category {
  border: 1.5px solid #F5F7FA;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color .25s, box-shadow .25s;
}
.cmp-category:hover {
  border-color: #ddd;
  box-shadow: 0 2px 10px rgba(10,40,80,.05);
}
.cmp-category__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.cmp-category__info {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cmp-category__title {
  font-size: 14px; font-weight: 650; color: #2B2B2B; margin: 0;
}
.cmp-category__desc {
  font-size: 12px; line-height: 1.6; color: #7a7a8a;
  margin: 8px 0 6px;
}

/* Badge */
.cmp-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .3px;
}
.cmp-badge--required {
  background: linear-gradient(135deg, rgba(212,166,74,.12), rgba(47,91,143,.10));
  color: #2F5B8F;
}

/* Toggle switch */
.cmp-toggle {
  position: relative; display: inline-block;
  width: 46px; height: 25px; flex-shrink: 0;
}
.cmp-toggle input { opacity: 0; width: 0; height: 0; }
.cmp-toggle__slider {
  position: absolute; inset: 0;
  background: #d5d5de; border-radius: 25px;
  cursor: pointer;
  transition: background .3s;
}
.cmp-toggle__slider::before {
  content: "";
  position: absolute; left: 3px; top: 3px;
  width: 19px; height: 19px;
  background: #fff; border-radius: 50%;
  transition: transform .3s cubic-bezier(.4,.0,.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.cmp-toggle input:checked + .cmp-toggle__slider {
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
}
.cmp-toggle input:checked + .cmp-toggle__slider::before {
  transform: translateX(21px);
}
.cmp-toggle--disabled .cmp-toggle__slider {
  background: linear-gradient(135deg, rgba(212,166,74,.55), rgba(47,91,143,.55));
  cursor: default;
}
.cmp-toggle--disabled input:checked + .cmp-toggle__slider {
  background: linear-gradient(135deg, rgba(212,166,74,.55), rgba(47,91,143,.55));
}

/* Détails cookies */
.cmp-category__details-btn {
  background: none; border: none; color: #2F5B8F;
  font-size: 11.5px; font-weight: 500;
  cursor: pointer; padding: 4px 0;
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.cmp-category__details-btn:hover { color: #2F5B8F; }
.cmp-category__details-btn i { transition: transform .25s; font-size: 14px; }
.cmp-category__details-btn.open i { transform: rotate(180deg); }

.cmp-category__details { margin-top: 10px; }
.cmp-table {
  width: 100%; border-collapse: collapse; font-size: 11px;
}
.cmp-table th {
  text-align: left; padding: 7px 10px;
  background: #F5F7FA; color: #2F5B8F;
  font-weight: 600; border-bottom: 1px solid #F5F7FA;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px;
}
.cmp-table td {
  padding: 7px 10px; color: #666;
  border-bottom: 1px solid #F5F7FA;
}

/* Actions settings */
.cmp-settings__actions {
  display: flex; gap: 10px;
  padding: 14px 26px 18px;
  border-top: 1px solid #F5F7FA;
  flex-shrink: 0;
}

/* --- Bouton flottant --- */
.cmp-reopen {
  position: fixed; bottom: 20px; left: 20px;
  z-index: 9999;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
  color: #fff; border: none;
  box-shadow: 0 4px 18px rgba(47,91,143,.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform .25s, box-shadow .25s;
}
.cmp-reopen:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(47,91,143,.4);
}

/* --- Animations --- */
@keyframes cmpSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes cmpFadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- Responsive : tablettes --- */
@media (max-width: 640px) {
  .cmp-banner__inner { margin: 0 10px 10px; border-radius: 16px; }
  .cmp-banner__header { padding: 18px 20px 0; }
  .cmp-banner__body { padding: 12px 20px 0; }
  .cmp-banner__actions { flex-direction: column; padding: 14px 20px 0; }
  .cmp-banner__footer { padding: 12px 20px 14px; }
  .cmp-btn { min-width: unset; padding: 11px 14px; }
  .cmp-settings { padding: 10px; }
  .cmp-settings__inner { max-height: 94vh; border-radius: 16px; }
  .cmp-settings__body { padding: 14px 18px; }
  .cmp-settings__actions { flex-direction: column; padding: 12px 18px 14px; }
  .cmp-settings__header { padding: 16px 18px 12px; }
  .cmp-category { padding: 12px 14px; }
  .cmp-banner__logo { height: 30px; }
}

/* --- Responsive : smartphones --- */
@media (max-width: 420px) {
  .cmp-banner__inner {
    margin: 0; border-radius: 18px 18px 0 0;
    max-width: 100%;
    box-shadow: 0 -8px 32px rgba(10,40,80,.16);
  }
  .cmp-banner__header { padding: 16px 16px 0; gap: 10px; }
  .cmp-banner__logo { height: 28px; }
  .cmp-banner__title { font-size: 14.5px; }
  .cmp-banner__body { padding: 10px 16px 0; }
  .cmp-banner__text { font-size: 12.5px; line-height: 1.6; margin-bottom: 6px; }
  .cmp-banner__link { font-size: 12px; }
  .cmp-banner__actions {
    flex-direction: column; gap: 8px;
    padding: 12px 16px 0;
  }
  .cmp-btn {
    min-width: unset; width: 100%;
    padding: 13px 16px; font-size: 14px;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .cmp-banner__footer {
    padding: 10px 16px 14px;
    font-size: 10px; margin-top: 12px;
  }
  .cmp-settings { padding: 0; align-items: flex-end; }
  .cmp-settings__inner {
    max-height: 100vh; height: 100%;
    border-radius: 0;
    max-width: 100%;
  }
  .cmp-settings__header { padding: 14px 16px 10px; }
  .cmp-settings__header .cmp-banner__logo { height: 26px; }
  .cmp-settings__header .cmp-banner__title { font-size: 14px; }
  .cmp-settings__close { width: 38px; height: 38px; font-size: 19px; }
  .cmp-settings__body { padding: 12px 16px; }
  .cmp-settings__intro { font-size: 12.5px; margin-bottom: 14px; }
  .cmp-category {
    padding: 14px 14px; margin-bottom: 8px;
    border-radius: 12px;
  }
  .cmp-category__title { font-size: 13.5px; }
  .cmp-category__desc { font-size: 11.5px; margin: 6px 0 4px; }
  .cmp-category__details-btn { font-size: 11px; padding: 6px 0; }
  .cmp-toggle { width: 50px; height: 28px; }
  .cmp-toggle__slider::before {
    width: 22px; height: 22px;
  }
  .cmp-toggle input:checked + .cmp-toggle__slider::before {
    transform: translateX(22px);
  }
  .cmp-table th, .cmp-table td {
    padding: 6px 8px; font-size: 10px;
  }
  .cmp-table th { font-size: 9.5px; }
  .cmp-settings__actions {
    flex-direction: column; gap: 8px;
    padding: 12px 16px 16px;
  }
  .cmp-settings__actions .cmp-btn {
    width: 100%; padding: 14px 16px;
  }
  .cmp-reopen {
    width: 50px; height: 50px;
    bottom: 16px; left: 16px;
    font-size: 22px;
  }
}

/* ============================================
   Hero Section — corrections layout & responsive
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, rgba(247,249,255,0.91) 0%, rgba(255,251,238,0.86) 40%, rgba(240,244,255,0.91) 100%), url('https://academy.compagnonspro.fr/uploads/system/bg_compagnonspro.png') center center / cover no-repeat !important;
  position: relative;
  overflow: hidden;
}

/* Watermark logo en fond de la hero section */
.hero-logo-watermark {
  position: absolute !important;
  right: -60px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 520px !important;
  height: auto !important;
  opacity: 0.07 !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 0 !important;
  filter: grayscale(30%) !important;
}

/* ── Carrousel logos médias ──────────────────────────────── */
.hero-media-carousel {
  width: 100%;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(47,91,143,0.12);
  background: rgba(255,255,255,0.60);
  position: relative;
  z-index: 2;
}
.hero-media-carousel__label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5A6475;
  margin-bottom: 14px;
}
.hero-media-scroll {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.hero-media-track {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  animation: mediaScroll 28s linear infinite;
  padding-right: 40px;
}
.hero-media-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter .3s, opacity .3s;
}
.hero-media-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes mediaScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 767px) {
  .hero-media-track { gap: 28px; animation-duration: 20s; }
  .hero-media-item img { height: 28px; }
}

/* Centrage vertical de l'image bannière (était bottom:0) */
.hero-section .banner-img {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  /* Remplacement de l'arc violet par les couleurs de marque */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 770 420'%3E%3Cellipse cx='385' cy='420' rx='385' ry='360' fill='rgba(47%2C91%2C143%2C0.12)'/%3E%3Cellipse cx='385' cy='420' rx='345' ry='325' fill='rgba(47%2C91%2C143%2C0.18)'/%3E%3Cellipse cx='385' cy='420' rx='305' ry='290' fill='%234C82BF' opacity='0.55'/%3E%3C/svg%3E") !important;
}

/* Fondu bas de l'image hero */
.hero-section .banner-img img.animation-float {
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* Suppression du soulignement rose sur les spans du H1 */
.hero-section .hero-content h1 span::before {
  display: none !important;
}

/* Sous-titre : line-height trop large (était 40px) */
.hero-section .hero-content .sub-title {
  line-height: 1.65 !important;
  font-size: 16px !important;
}

/* Padding du hero : compact */
.hero-section .hero-content {
  padding: 40px 0 0 !important;
}

/* Réduction des marges internes du hero */
.hero-section .hero-trust-badge { margin-bottom: 12px !important; }
.hero-section .hero-content h1   { margin-bottom: 8px !important; }
.hero-section .sub-title          { margin-bottom: 12px !important; }
.hero-section .hero-search-block  { margin-bottom: 8px !important; }
.hero-section .hero-search-secondary { margin-bottom: 10px !important; }
.hero-section .hero-reassurance   { margin-bottom: 4px !important; }
.hero-section .banner-info        { margin-top: 0 !important; }
.hero-section .banner-info .d-flex { margin-top: 0 !important; }
.hero-section .border-top         { margin-top: 12px !important; padding-top: 10px !important; }

/* Tablette */
@media (max-width: 991.98px) {
  .hero-section .hero-content {
    padding: 30px 0 40px !important;
  }
}

/* Mobile : espacement compact */
@media (max-width: 767px) {
  .hero-section .hero-content {
    padding: 24px 0 20px !important;
  }
  .hero-section .hero-content h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  .hero-section .hero-content .sub-title {
    font-size: 14px !important;
  }
  .banner-info {
    justify-content: center;
  }
  .banner-info > div {
    flex: 0 0 calc(33% - 1rem);
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center !important;
  }
  .banner-info > div img {
    margin-bottom: 6px;
    margin-right: 0 !important;
  }
}

/* Mobile — image bannière en arrière-plan avec opacité */
@media (max-width: 767.98px) {
  .hero-section .banner-img {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    background: none !important;
    opacity: 0.14;
    z-index: 0;
    pointer-events: none;
  }
  .hero-section .banner-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
    display: block;
    margin-left: auto;
  }
  /* Contenu au-dessus de l'image : le container direct doit avoir z-index > banner-img */
  .hero-section .hero-content > .container {
    position: relative;
    z-index: 2;
  }
  /* Masquer les badges flottants sur mobile */
  .hero-section .hero-image {
    display: none;
  }
}

/* ============================================
   Hero Search Block — Compagnons Pro®
   ============================================ */

/* Conteneur principal */
.hero-search-block {
  background: #fff;
  border: 1.5px solid #F5F7FA;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(47,91,143,.09), 0 1px 5px rgba(0,0,0,.05);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

/* Barre d'accent en haut du bloc */
.hero-search-block::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #D4A64A, #2F5B8F);
  position: absolute;
  top: 0; left: 0; right: 0;
  border-radius: 16px 16px 0 0;
}

/* Rangée des champs + bouton */
.hero-search-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Champ individuel */
.hero-search-field {
  flex: 1;
  padding: 4px 14px 4px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
}

.hero-search-field + .hero-search-field {
  border-left: 1.5px solid #F5F7FA;
  padding-left: 14px;
}

/* Label au-dessus du champ */
.hero-search-field__label {
  font-size: 10.5px;
  font-weight: 700;
  color: #2B2B2B;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.hero-search-field__label i {
  color: #2F5B8F;
  font-size: 13px;
}

/* Masquer le blob SVG décoratif du template dans le nouveau bloc */
.hero-search-block .shape-06 {
  display: none !important;
}

/* Contrôle (input / select) */
.hero-search-field__control {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 4px 0 0 !important;
  height: 30px !important;
  min-height: unset !important;
  font-size: 13.5px !important;
  color: #2B2B2B !important;
  background: transparent !important;
  width: 100%;
}

.hero-search-field__control::placeholder {
  color: #aab2bf !important;
  font-size: 13px !important;
}

select.hero-search-field__control {
  cursor: pointer;
}

/* Wrapper bouton */
.hero-search-btn-wrap {
  flex-shrink: 0;
  padding-left: 14px;
  border-left: 1.5px solid #F5F7FA;
  display: flex;
  align-items: stretch;
}

/* Bouton principal */
.hero-search-btn {
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 18px rgba(47,91,143,.24);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  min-width: 148px;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,.22);
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(47,91,143,.34);
  filter: brightness(1.06);
  color: #fff !important;
}

.hero-search-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(47,91,143,.2);
}

.hero-search-btn i {
  font-size: 16px;
  flex-shrink: 0;
}

/* CTA secondaire */
.hero-search-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-search-secondary__sep {
  font-size: 12.5px;
  color: #9aa3b2;
}

.hero-search-secondary__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #2F5B8F !important;
  border: 1.5px solid rgba(47,91,143,.28);
  border-radius: 8px;
  padding: 7px 16px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  line-height: 1.2;
}

.hero-search-secondary__link:hover {
  border-color: #2F5B8F;
  background: rgba(47,91,143,.05);
  transform: translateY(-1px);
}

/* Bande de réassurance */
.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.hero-reassurance__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #646d7b;
  white-space: nowrap;
}

.hero-reassurance__item i {
  color: #D4A64A;
  font-size: 15px;
  flex-shrink: 0;
}

/* Responsive : tablette */
@media (max-width: 991px) {
  .hero-search-btn {
    min-width: 128px;
    padding: 0 16px;
    font-size: 14px;
  }
}

/* Responsive : mobile */
@media (max-width: 767px) {
  .hero-search-block {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .hero-search-row {
    flex-direction: column;
  }

  .hero-search-field {
    padding: 8px 0;
    min-height: unset;
  }

  .hero-search-field + .hero-search-field {
    border-left: none;
    border-top: 1.5px solid #F5F7FA;
    padding-left: 0;
  }

  .hero-search-btn-wrap {
    padding-left: 0;
    border-left: none;
    border-top: 1.5px solid #F5F7FA;
    padding-top: 12px;
  }

  .hero-search-btn {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15.5px;
    min-height: 52px;
    min-width: unset;
  }

  .hero-search-secondary {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-search-secondary__link {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  .hero-reassurance {
    flex-direction: column;
    gap: 7px;
  }

  .hero-reassurance__item {
    white-space: normal;
  }
}

/* ============================================
   Loader (existant)
   ============================================ */
.loader_front {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(235, 255, 255, 0.9);
  z-index: 9999;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.loader_front .loader-content {
  margin-top: 23rem;
}

/* ── Badge de confiance hero ─────────────────────────────── */
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 10px 18px 10px 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(47,91,143,0.10), 0 1px 4px rgba(0,0,0,0.07);
  /* Bordure dégradée via pseudo-élément */
  isolation: isolate;
}
.hero-trust-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-trust-badge__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(212,166,74,0.30);
  animation: badge-pulse 2.8s ease-in-out infinite;
}
.hero-trust-badge__icon i {
  color: #fff;
  font-size: 18px;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(212,166,74,0.30); }
  50%       { box-shadow: 0 2px 16px rgba(212,166,74,0.55), 0 0 0 5px rgba(212,166,74,0.10); }
}
.hero-trust-badge__text {
  font-size: 13px;
  font-weight: 600;
  color: #2B2B2B;
  line-height: 1.45;
  text-transform: none;
}
.hero-trust-badge__sub {
  font-size: 12px;
  font-weight: 500;
  color: #2F5B8F;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR — REDESIGN PREMIUM
   ══════════════════════════════════════════════════════════ */

/* Navbar fond bleu — toujours visible, sticky au scroll */
.header.header-new {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  overflow: visible !important;
  background-color: #2F5B8F !important;
}
/* Classe .fixed ajoutée par JS au scroll — on maintient le fond bleu */
.header.header-new.fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: #2F5B8F !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.30) !important;
  z-index: 1001 !important;
}
/* Trait dégradé : border-image — fait partie du rendu de l'élément,
   toujours DERRIÈRE les enfants (logo inclus), quel que soit le z-index */
.header.header-new,
.header.header-new.fixed {
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #D4A64A, #2F5B8F) 1 !important;
}
/* On s'assure qu'aucun ::after résiduel ne vient interférer */
.header.header-new::after {
  display: none !important;
}

/* Navbar-header en flex sur desktop pour logo + tagline côte à côte */
@media (min-width: 992px) {
  .navbar-header {
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }
  /* Logo centré verticalement, reste DANS la navbar — pas de conflit avec le trait */
  .navbar-brand.logo {
    position: relative;
    z-index: 100;
    align-self: center;
    margin-top: 0;
  }
  /* Header fixe au scroll : maintenir le fond bleu */
  .header.fixed {
    background-color: #2F5B8F !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.28) !important;
  }
}

/* ── Tagline brand — couleurs adaptées au fond sombre #2F5B8F ── */
.navbar-tagline {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1.5px solid rgba(255,255,255,0.25);
  line-height: 1.25;
  flex-shrink: 0;
}
.navbar-tagline__line1,
.navbar-tagline__line2 {
  margin: 0;
  padding: 0;
}
.navbar-tagline__line1 {
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.01em;
}
.navbar-tagline__line1 em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-tagline__line1 sup {
  font-size: 9px;
  vertical-align: super;
}
.navbar-tagline__line2 {
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.navbar-tagline__dot {
  color: #D4A64A;
  font-style: normal;
}

/* Boutons header stylisés */
.header-navbar-rht .btn-linear-primary {
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 12px rgba(212,166,74,0.25);
  transition: box-shadow 0.2s, transform 0.15s;
}
.header-navbar-rht .btn-linear-primary:hover {
  box-shadow: 0 5px 18px rgba(47,91,143,0.30);
  transform: translateY(-1px);
}
.header-navbar-rht .btn-light {
  border: 1.5px solid #E1E2E5 !important;
  color: #2B2B2B !important;
  font-weight: 600;
  background: #fff !important;
  transition: border-color 0.2s, color 0.2s;
}
.header-navbar-rht .btn-light:hover {
  border-color: #2F5B8F !important;
  color: #2F5B8F !important;
}

/* ── Logo desktop ────────────────────────────────────────── */
.logo img {
  max-height: 120px !important;
  height: 120px !important;
  width: auto !important;
}
/* ── Logo dans le drawer mobile : taille raisonnable, non déformé ── */
.menu-logo img {
  height: auto !important;
  max-height: 60px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
}


/* ── Hamburger : à droite — tout mobile/tablette ── */
@media (max-width: 991.98px) {
  #mobile_btn {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid rgba(255,255,255,0.55) !important;
    border-radius: 7px !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .bar-icon {
    width: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  /* 3 traits identiques, blancs, bien espacés */
  .bar-icon span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    border-radius: 1px !important;
    background-color: #ffffff !important;
    margin: 0 !important;
  }
}
@media (max-width: 575.98px) {
  /* Logo plus grand sur téléphone */
  .navbar-brand.logo-small img {
    max-height: 110px !important;
    height: 110px !important;
    width: auto !important;
  }
}

/* ── Menu déplié mobile : droite, plus grand, harmonieux ──── */
@media (max-width: 991.98px) {
  /* Glissement depuis la DROITE */
  .main-menu-wrapper {
    width: min(320px, 90vw) !important;
    left: auto !important;
    right: 0 !important;
    transform: translateX(min(320px, 90vw)) !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.14) !important;
    padding-bottom: 40px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1) !important;
  }
  .menu-opened .main-menu-wrapper {
    transform: translateX(0) !important;
  }
  .menu-header {
    height: 72px !important;
    padding: 0 24px !important;
    border-bottom: 1px solid #E1E2E5;
    background: #fff;
  }
  .menu-header a.menu-logo img {
    max-height: 36px;
  }
  .menu-close {
    font-size: 22px !important;
    color: #333 !important;
  }
  .main-nav > li {
    border-bottom: 1px solid #F5F7FA !important;
  }
  .main-nav > li > a {
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 16px 24px !important;
    line-height: 1.4 !important;
    color: #2B2B2B !important;
    display: block;
  }
  .main-nav > li > a:hover {
    color: #2F5B8F !important;
    background: #F5F7FA !important;
  }
  .list-menus {
    padding: 8px 0 !important;
  }
}

/* ── Hamburger → Croix animée ────────────────────────────── */
/* gap:5px + height:2px → distance centre/centre = 1+5+1 = 7px */
.bar-icon span {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
html.menu-opened #mobile_btn .bar-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
html.menu-opened #mobile_btn .bar-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
html.menu-opened #mobile_btn .bar-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Desktop : masquer le bouton hamburger ─────────────── */
@media (min-width: 992px) {
  #mobile_btn {
    display: none !important;
  }
}

/* ── Pill auth compact ───────────────────────────────────── */
.nav-auth-pill {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  overflow: hidden;
  height: 38px;
  flex-shrink: 0;
}
/* Mobile : pleine largeur dans le drawer */
@media (max-width: 991.98px) {
  .nav-auth-pill.w-100 {
    height: 44px;
    border-radius: 10px;
    border-color: rgba(47,91,143,0.25);
  }
  .nav-auth-pill.w-100 .nav-auth-pill__signin {
    color: #2F5B8F !important;
    background: #F5F7FA;
  }
  .nav-auth-pill.w-100 .nav-auth-pill__signin:hover {
    background: #E1E2E5;
  }
  .nav-auth-pill.w-100 .nav-auth-pill__sep {
    background: rgba(47,91,143,0.20);
  }
}
.nav-auth-pill__signin,
.nav-auth-pill__join {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-auth-pill__signin {
  color: rgba(255,255,255,0.88) !important;
  background: transparent;
}
.nav-auth-pill__signin:hover {
  background: rgba(255,255,255,0.10);
  color: #fff !important;
}
.nav-auth-pill__sep {
  width: 1.5px;
  background: rgba(255,255,255,0.30);
  flex-shrink: 0;
}
.nav-auth-pill__join {
  color: #fff !important;
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E);
}
.nav-auth-pill__join:hover {
  filter: brightness(1.08);
  color: #fff !important;
}
.nav-auth-pill i {
  font-size: 15px;
}

/* ── Bouton "Devenir artisan labellisé" — contour blanc arrondi ── */
a.nav-link[data-bs-target="#provider"] {
  display: inline-flex !important;
  align-items: center;
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.60) !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,0.90) !important;
  padding: 6px 14px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s !important;
  text-decoration: none !important;
}
a.nav-link[data-bs-target="#provider"]:hover {
  border-color: #fff !important;
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

/* ── Croix de fermeture du drawer — visible dans le menu ── */
#menu_close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 7px;
  color: #333 !important;
  font-size: 18px !important;
  background: transparent;
  transition: background 0.2s;
  flex-shrink: 0;
}
#menu_close:hover {
  background: rgba(0,0,0,0.06);
}

/* ── "Devenir artisan labellisé" — visible + texte blanc ── */
@media (max-width: 991.98px) {
  /* Forcer la visibilité + pleine largeur dans le drawer mobile */
  li.d-lg-none {
    display: block !important;
    width: 100% !important;
    background: #2F5B8F !important;
  }
  li.d-lg-none > a.nav-link[data-bs-target="#provider"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }
  li.d-lg-none > a.nav-link[data-bs-target="#provider"]:hover {
    color: #D4A64A !important;
    background: #1E3F6E !important;
  }
}
/* Desktop nav */
li.nav-item > a.nav-link[data-bs-target="#provider"],
li.nav-item > a.submenu[data-bs-target="#provider"] {
  color: #ffffff !important;
}
li.nav-item > a.nav-link[data-bs-target="#provider"]:hover,
li.nav-item > a.submenu[data-bs-target="#provider"]:hover {
  color: #D4A64A !important;
}

/* ── Boutons primaires globaux ── */
.btn-primary,
.btn-primary:focus {
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E) !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover,
.btn-primary:active {
  background: linear-gradient(135deg, #2F5B8F, #1E3F6E) !important;
  color: #fff !important;
}

/* ── Shapes hero : même animation que l'image principale ── */
/* Même durée + même délai = mouvement parfaitement synchronisé */
.hero-section .hero-image .shape-03,
.hero-section .hero-image .shape-04,
.hero-section .hero-image .shape-05 {
  animation: float 3000ms linear 500ms infinite alternate both !important;
}
