/* =========================================================
   CRO Phase 1 : header et bandes transversales
   - 1.2 barre du haut restylée en barre utilitaire marine
     (elle contient déjà : téléphone, contact, livraison 300$+)
   - 1.5 téléphone lisible et proéminent
   - 1.6 bannière cookies (CookieYes) compacte
   ========================================================= */

/* ---- Barre utilitaire (subheader du haut) ---- */
.l-header .l-subheader.at_top {
  background: var(--cfs-navy);
  color: #D8E7F2;
  font-size: 13.5px;
}
.l-header .l-subheader.at_top .w-text-h,
.l-header .l-subheader.at_top a.w-text-h {
  color: #D8E7F2;
}
/* Hover : blanc franc sur le fond marine (l'orange du thème
   manque de contraste). Ne touche PAS les liens du déroulant
   de langue, qui vivent sur panneau blanc. */
.l-header .l-subheader.at_top a.w-text-h:hover,
.l-header .l-subheader.at_top a.w-text-h:hover .w-text-value,
.l-header .l-subheader.at_top .trp-ls-shortcode-current-language > a:hover {
  color: #fff !important;
}
.l-header .l-subheader.at_top .w-text i.fas,
.l-header .l-subheader.at_top .w-text i.fab,
.l-header .l-subheader.at_top .w-text i.far {
  color: var(--cfs-orange);
}

/* 1.5 : le téléphone passe de discret à dominant */
.l-header .l-subheader.at_top .ush_text_1 .w-text-h {
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.l-header .l-subheader.at_top .ush_text_1 .w-text-h:hover {
  color: #fff;
}

/* Livraison gratuite : le mot-clé ressort */
.l-header .l-subheader.at_top .ush_text_3 .w-text-value {
  font-weight: 600;
  color: #fff;
}

/* Mobile : le layout builder (migration 001) n'affiche que la
   livraison, centrée. On ajuste juste la taille. */
@media (max-width: 782px) {
  .l-header .l-subheader.at_top { font-size: 12.5px; }
}

/* ---- Sélecteur de langue TranslatePress dans la barre marine ----
   Le CSS du plugin impose 200px de large, 42px de haut, bordure grise,
   fond blanc et flèche en image; son JS pose une width inline.
   On neutralise tout ça, scopé à notre barre. */
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher {
  width: auto !important;   /* bat la width inline posée en JS */
  height: auto;
  white-space: nowrap;
}
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher > div {
  width: auto !important;
  border: none;
  border-radius: var(--cfs-radius-btn);
  background-color: transparent;
  background-image: none;   /* retire la flèche du plugin */
  padding: 0;
}
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher > div > a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 5px 10px;
}
/* Le déclencheur (FR) : clair sur le fond marine */
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher > .trp-ls-shortcode-current-language > a {
  color: #D8E7F2;
}
.l-subheader.at_top .cfs-lang-switcher .trp-ls-shortcode-current-language > a:hover {
  color: #fff;
  background: none;
}
/* Le déroulant : petit panneau blanc propre sous le déclencheur */
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher:focus .trp-ls-shortcode-language,
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher:hover .trp-ls-shortcode-language {
  background: var(--cfs-ground);
  border-radius: var(--cfs-radius-btn);
  box-shadow: var(--cfs-shadow-md);
  padding: 4px;
  min-width: 64px;
  z-index: 100;
}
/* Les liens du déroulant : foncés sur le panneau blanc */
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher > .trp-ls-shortcode-language > a {
  color: var(--cfs-navy);
  font-weight: 600;
}
.l-subheader.at_top .cfs-lang-switcher .trp-language-switcher > .trp-ls-shortcode-language > a:hover {
  background: var(--cfs-blue-soft);
  color: var(--cfs-navy);
}

/* ---- Langue dans le menu hamburger (inc/cro-header.php) ----
   Le menu passe en hamburger à 900 px, mais la barre du haut garde son
   sélecteur jusqu'à 601 px. Il ne s'affiche ici qu'à la fois à l'état
   « mobiles » et sous cette largeur : avec une barre de défilement classique,
   l'état « mobiles » dure jusqu'à 615 px, et il y aurait deux sélecteurs. */
.cfs-nav-lang { display: none; }
@media (max-width: 600px) {
  .state_mobiles .l-header .w-nav.type_mobile .cfs-nav-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 8px 12px;
    list-style: none;
    border-top: 1px solid var(--cfs-line);
  }
}
.cfs-nav-lang-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 600;
  color: var(--cfs-navy);
}
.cfs-nav-lang-item.is-current { color: var(--cfs-blue); font-weight: 700; }

/* ---- Rang principal : fond blanc net + CTA Soumission (mig. 004) ---- */
.l-header .l-subheader.at_middle {
  background: #fff;
}

/* Nav comme la maquette : gras, casse normale, hover bleu souligné.
   (annule le uppercase historique du style.css enfant) */
.l-header .w-nav.type_desktop .w-nav-anchor.level_1 {
  text-transform: none;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.l-header .w-nav.type_desktop .w-nav-item.level_1:hover > .w-nav-anchor.level_1,
.l-header .w-nav.type_desktop .w-nav-item.level_1.current-menu-item > .w-nav-anchor.level_1 {
  color: var(--cfs-blue);
  border-bottom-color: var(--cfs-blue);
}

/* Espace entre le logo et le menu (groupés à gauche, mig. 006) */
.l-header .l-subheader.at_middle .l-subheader-cell.at_left .w-nav {
  margin-left: 28px;
}
.l-header .cfs-header-cta {
  font-size: 14.5px;
  padding: 10px 18px;
  min-height: 42px;
  white-space: nowrap;
}

/* ---- Bandeau de titre des pages (block « Titre », mig. 008) :
   même traitement que le hero de l'accueil, partout ---- */
.l-section.cfs-titlebar {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(38, 139, 210, .32), transparent 62%),
    radial-gradient(700px 380px at -8% 112%, rgba(0, 100, 168, .38), transparent 60%),
    linear-gradient(160deg, #052E49 0%, #073E63 58%, #084A77 100%) !important;
  overflow: hidden;
}
.l-section.cfs-titlebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 52%, #000 88%);
  mask-image: linear-gradient(100deg, transparent 52%, #000 88%);
  pointer-events: none;
}
.l-section.cfs-titlebar .l-section-h { position: relative; z-index: 1; }
.cfs-titlebar h1 {
  color: #fff !important;
  font-size: clamp(26px, 3.2vw, 40px) !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  padding-top: 0 !important;
}
.cfs-titlebar .g-breadcrumbs,
.cfs-titlebar .g-breadcrumbs a {
  color: #C9DCEA !important;
}
.cfs-titlebar .g-breadcrumbs a:hover { color: #fff !important; }
/* Chemin complet dans le bandeau : l'élément Impreza masque la page
   courante (classe hide_current) ; sur les pages à deux niveaux il ne
   restait que « Accueil ». On l'affiche, en blanc, comme page courante. */
.cfs-titlebar .g-breadcrumbs.hide_current .g-breadcrumbs-item:last-child,
.cfs-titlebar .g-breadcrumbs.hide_current .g-breadcrumbs-separator:nth-last-child(2) {
  display: inline-block;
}
.cfs-titlebar .g-breadcrumbs .g-breadcrumbs-item:last-child,
.cfs-titlebar .g-breadcrumbs .g-breadcrumbs-item:last-child a {
  color: #fff !important;
}

/* ---- 1.6 Bannière cookies compacte (CookieYes / cookie-law-info) ---- */
.cky-consent-container {
  font-size: 13px !important;
}
.cky-consent-container .cky-consent-bar {
  padding: 12px 16px !important;
  box-shadow: 0 -2px 16px rgba(5, 49, 78, .12) !important;
}
.cky-notice-des,
.cky-notice-des p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.cky-notice-btn-wrapper .cky-btn {
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
}
