/* ═══════════════════════════════════════════════════════════════
   SITE-CHROME.CSS — en-tête, menus, menu mobile, boutons et pied de page
   ───────────────────────────────────────────────────────────────
   Chargé par toutes les pages : home, pages « Solutions », landings Ads
   et pages du site. Markup produit par scripts/site-chrome.js (home,
   Solutions) et posé dans les pages statiques par
   scripts/apply-site-chrome.js. Comportements : js/site-chrome.js
   (menus, menu mobile, teinte des pages du site) et js/lp.js (teinte
   de l'en-tête des pages à hero sombre).

   Trois en-têtes :
   - home, Solutions, landings (data-header) : fixe, transparent sur le
     hero sombre, verre blanc au-dessus des sections claires ;
   - pages du site (.lx-header--page) : collant dans le flux, verre blanc,
     sombre au-dessus des sections sombres ([data-nav-dark]…) ;
   - pages de conversion (.lx-header--mini) : logo et lien retour, fixe.

   Les jetons sont posés sur les éléments eux-mêmes : les pages du site
   n'ont pas body.lx (css/lp.css) ni ses remises à zéro.
   ═══════════════════════════════════════════════════════════════ */

.lx-header, .hx-mobile, .lx-footer, .lx-btn {
  --ink: #0B1220; --ink-2: #4A5568; --ink-3: #6B778C; --line: #E1E7F0;
  --blue: #006DE5; --sky-hi: #8EC2FF; --ease: cubic-bezier(.22, 1, .36, 1);
}
/* bundle.css met overflow-x: hidden sur html ET sur body : body devient alors un conteneur de
   défilement et position: sticky n'y colle jamais (l'ancienne barre défilait avec la page).
   clip rogne pareil sans créer de conteneur. */
body { overflow-x: clip; }
.lx-header :where(ul, ol), .hx-mobile :where(ul, ol), .lx-footer :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.lx-header :where(h2, h3, p), .hx-mobile :where(h2, h3, p), .lx-footer :where(h2, h3, p) { margin: 0; }
.lp-ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

/* ═════════════ 1. EN-TÊTE ═════════════ */

.lx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; font-family: var(--fb); transition: background .4s, box-shadow .4s, color .4s; }
.lx-header.is-scrolled { background: rgba(6, 10, 22, .72); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.lx-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.lx-header__brand { position: relative; display: block; flex: none; }
.lx-header__logo { display: block; width: 150px; height: auto; transition: opacity .35s; }
.lx-header__logo--light { position: absolute; left: 0; top: 0; opacity: 0; }
/* Au-dessus d'une section claire, l'en-tête passe en verre blanc. */
.lx-header.is-light.is-scrolled { background: rgba(255, 255, 255, .78); box-shadow: 0 1px 0 rgba(11, 18, 32, .08); }
.lx-header.is-light .lx-header__logo--dark { opacity: 0; }
.lx-header.is-light .lx-header__logo--light { opacity: 1; }
.lx-header.is-light .lx-header__more, .lx-header.is-light .lx-header__login { color: var(--ink-2); }
.lx-header.is-light .lx-header__more:hover, .lx-header.is-light .lx-header__login:hover { color: var(--ink); }
.lx-header.is-light .lx-header__hint { color: var(--ink-3); }
.lx-header.is-light .lx-btn--glass { color: #fff; background: var(--ink); box-shadow: none; }
.lx-header__nav { display: flex; align-items: center; gap: 1.4rem; }
.lx-header__more, .lx-header__login { font-family: var(--fd); font-weight: 600; font-size: .9375rem; color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.lx-header__more:hover, .lx-header__login:hover { color: #fff; }
.lx-header__hint { color: rgba(255, 255, 255, .5); font-weight: 400; }
.lx-header__login { display: inline-flex; align-items: center; gap: .3rem; }
.lx-header__login-ico { display: none; width: 18px; height: 18px; }

/* Pages du site : en-tête collant, dans le flux (même hauteur que l'ancienne barre), verre blanc
   par défaut, verre sombre au-dessus d'une section sombre. */
.lx-header--page { position: sticky; background: rgba(6, 10, 22, .78); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.lx-header--page.is-light { background: rgba(255, 255, 255, .86); box-shadow: 0 1px 0 rgba(11, 18, 32, .07); }
/* Pages de conversion (contact, rendez-vous, webinaires…) : l'ancienne barre était fixe et la page
   décale déjà son contenu de la hauteur de la barre. */
.lx-header--mini { position: fixed; }
.lx-header__back {
  display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .95rem 0 .7rem; border-radius: 99px;
  font-family: var(--fd); font-weight: 600; font-size: .9375rem; color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s, background .2s;
}
.lx-header__back .lp-ico { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .35s var(--ease); }
.lx-header__back:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lx-header__back:hover .lp-ico { transform: rotate(90deg) translateY(3px); }
.lx-header.is-light .lx-header__back { color: var(--ink-2); }
.lx-header.is-light .lx-header__back:hover { color: var(--ink); background: rgba(11, 18, 32, .05); }

/* Sélecteur de langue : drapeau + code vers la page jumelle */
.lx-lang { display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .8rem 0 .65rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .86); font-family: var(--fd); font-weight: 600; font-size: .8125rem; letter-spacing: .06em; line-height: 1; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.lx-lang:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); color: #fff; }
.lx-lang:focus-visible { outline: 2px solid var(--sky-hi); outline-offset: 2px; }
.lx-flag { display: block; flex: none; width: 21px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.lx-header.is-light .lx-lang { border-color: rgba(11, 18, 32, .14); background: rgba(11, 18, 32, .03); color: var(--ink-2); }
.lx-header.is-light .lx-lang:hover { border-color: rgba(11, 18, 32, .3); color: var(--ink); }
.lx-header.is-light .lx-flag { box-shadow: 0 0 0 1px rgba(11, 18, 32, .12); }

/* ═════════════ 2. BOUTONS ═════════════ */

.lx-btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 58px; padding: 0 1.6rem; border: 0; border-radius: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--fd); font-weight: 700; font-size: 1.03rem; letter-spacing: -.01em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.lx-btn--primary {
  color: #fff; background: linear-gradient(135deg, #2A8CFF 0%, #006DE5 42%, #5B3DF5 100%);
  box-shadow: 0 14px 34px -12px rgba(0, 109, 229, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.lx-btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .45) 50%, transparent 75%);
  transform: translateX(-130%); animation: lxShine 5.5s var(--ease) 2.2s infinite;
}
.lx-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(0, 109, 229, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.lx-btn--primary:active { transform: translateY(0) scale(.98); }
.lx-btn__ico { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.lx-btn:hover .lx-btn__ico { transform: translateX(4px); }
.lx-btn--glass { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.lx-btn--glass:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.lx-btn--sm { height: 42px; padding: 0 1.05rem; border-radius: 12px; font-size: .9rem; }
.lx-btn--sm .lx-btn__ico { width: 17px; height: 17px; }
.lx-btn[disabled] { opacity: .75; cursor: progress; }
@keyframes lxShine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }

/* ═════════════ 3. NAVIGATION ═════════════ */

.hx-header .lx-header__inner { gap: 1.2rem; }
.hx-menu { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.hx-menu__list { display: flex; align-items: center; gap: .15rem; }
.hx-menu__item { position: relative; }
.hx-menu__link {
  display: inline-flex; align-items: center; gap: .3rem; height: 40px; padding: 0 .8rem; border: 0; border-radius: 11px; background: none; cursor: pointer;
  font: inherit; font-family: var(--fd); font-weight: 600; font-size: .9375rem; color: rgba(255, 255, 255, .78); text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.hx-menu__link .lp-ico { width: 15px; height: 15px; opacity: .7; transition: transform .35s var(--ease); }
.hx-menu__link:hover, .hx-menu__item.is-open > .hx-menu__link, .hx-menu__link[aria-current] { color: #fff; background: rgba(255, 255, 255, .07); }
.hx-menu__item.is-open > .hx-menu__link .lp-ico { transform: rotate(180deg); }
.hx-menu__link:focus-visible { outline: 2px solid var(--sky-hi); outline-offset: 2px; }
.lx-header.is-light .hx-menu__link { color: var(--ink-2); }
.lx-header.is-light .hx-menu__link:hover, .lx-header.is-light .hx-menu__item.is-open > .hx-menu__link, .lx-header.is-light .hx-menu__link[aria-current] { color: var(--ink); background: rgba(11, 18, 32, .05); }

/* Panneaux déroulants : survol à la souris, clic au clavier et au doigt (js/site-chrome.js) */
.hx-dd {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 2; display: grid; gap: .15rem; min-width: 340px; padding: .5rem; border-radius: 20px;
  background: rgba(9, 14, 32, .97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: 50% 0;
  transition: opacity .22s, transform .4s var(--ease), visibility 0s .4s;
}
.hx-dd::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }  /* pont de survol */
.hx-menu__item.is-open .hx-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .22s, transform .4s var(--ease), visibility 0s; }
@media (hover: hover) and (pointer: fine) {
  .hx-menu__item:hover .hx-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .22s, transform .4s var(--ease), visibility 0s; }
  .hx-menu__item:hover > .hx-menu__link { color: #fff; background: rgba(255, 255, 255, .07); }
  .hx-menu__item:hover > .hx-menu__link .lp-ico { transform: rotate(180deg); }
  .lx-header.is-light .hx-menu__item:hover > .hx-menu__link { color: var(--ink); background: rgba(11, 18, 32, .05); }
}
.hx-dd a { display: flex; gap: .85rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 14px; text-decoration: none; transition: background .2s; }
.hx-dd a:hover, .hx-dd a:focus-visible, .hx-dd a[aria-current] { background: rgba(255, 255, 255, .06); outline: none; }
.hx-dd .lx-tile { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; color: #BFDAFF; background: rgba(59, 155, 255, .14); box-shadow: inset 0 0 0 1px rgba(142, 194, 255, .25); }
.hx-dd .lx-tile .lp-ico { width: 19px; height: 19px; }
.hx-dd strong { display: block; font-family: var(--fd); font-size: .9688rem; font-weight: 600; color: #fff; }
.hx-dd small { display: block; margin-top: .15rem; font-size: .8438rem; line-height: 1.45; color: rgba(255, 255, 255, .58); }
.lx-header.is-light .hx-dd { background: rgba(255, 255, 255, .98); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -30px rgba(0, 40, 110, .45); }
.lx-header.is-light .hx-dd a:hover, .lx-header.is-light .hx-dd a:focus-visible, .lx-header.is-light .hx-dd a[aria-current] { background: #F2F6FC; }
.lx-header.is-light .hx-dd strong { color: var(--ink); }
.lx-header.is-light .hx-dd small { color: var(--ink-3); }
.lx-header.is-light .hx-dd .lx-tile { color: var(--blue); background: linear-gradient(145deg, #EAF2FF, #DCE8FF); box-shadow: inset 0 0 0 1px rgba(0, 109, 229, .14); }

/* Bouton du menu mobile */
.hx-burger {
  display: none; position: relative; flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.hx-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease), background .3s; }
.hx-burger span:nth-child(1) { top: 16px; }
.hx-burger span:nth-child(2) { top: 24px; }
.hx-header.is-menu .hx-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hx-header.is-menu .hx-burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
.lx-header.is-light .hx-burger { background: rgba(11, 18, 32, .04); box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .14); }
.lx-header.is-light .hx-burger span { background: var(--ink); }

/* Menu mobile : panneau plein écran sous l'en-tête */
.hx-mobile {
  position: fixed; inset: 0; z-index: 59; overflow-y: auto; padding: 84px 0 32px; font-family: var(--fb);
  background: radial-gradient(ellipse 80% 50% at 80% 0%, rgba(0, 109, 229, .28), transparent 70%), #060A16;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.hx-mobile.is-open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.hx-mobile__group { padding: 1rem 0 .6rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hx-mobile__label { margin-bottom: .3rem; font-family: var(--fd); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.hx-mobile__group a { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; font-family: var(--fd); font-size: 1.125rem; font-weight: 600; color: #fff; text-decoration: none; }
.hx-mobile__group a .lp-ico { width: 20px; height: 20px; color: var(--sky-hi); }
.hx-mobile.is-open .hx-mobile__group a { animation: scPop .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.hx-mobile__cta { display: grid; gap: .7rem; margin-top: 1.6rem; }
.hx-mobile__cta .lx-btn { width: 100%; justify-content: center; }
.hx-mobile__lang { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .6rem; font-family: var(--fd); font-weight: 600; color: rgba(255, 255, 255, .8); text-decoration: none; }
html.hx-lock, html.hx-lock body { overflow: hidden; }
@keyframes scPop { from { opacity: 0; transform: translateY(20px) scale(.85); } to { opacity: 1; transform: none; } }

/* ═════════════ 4. PIED DE PAGE ═════════════ */

.lx-footer { padding: 2.6rem 0 6.5rem; background: #04070F; color: rgba(255, 255, 255, .55); font-family: var(--fb); font-size: .8438rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.lx-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem 2rem; align-items: center; }
.lx-footer__logo { width: 130px; height: auto; }
.lx-footer__site { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.6rem; }
.lx-footer__site a { color: #fff; font-family: var(--fd); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.lx-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.lx-footer__legal a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.lx-footer a:hover { color: #fff; text-decoration: underline; }

.hx-footer { padding: 4.5rem 0 6.5rem; }
.hx-footer--page { padding-bottom: 3rem; }
.hx-footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 3rem; }
.hx-footer__brand p { margin-top: 1rem; max-width: 330px; font-size: .9063rem; line-height: 1.65; color: rgba(255, 255, 255, .6); }
.hx-footer__brand .hx-footer__addr { display: flex; gap: .45rem; align-items: center; font-size: .8438rem; color: rgba(255, 255, 255, .5); }
.hx-footer__addr .lp-ico { width: 16px; height: 16px; }
.hx-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.hx-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 11px; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: color .2s, background .2s; }
.hx-social a:hover { color: #fff; background: rgba(59, 155, 255, .25); text-decoration: none; }
.hx-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.hx-footer__cols h3 { font-family: var(--fd); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.hx-footer__cols ul { display: grid; gap: .6rem; margin-top: 1rem; }
.hx-footer__cols a { font-size: .9375rem; color: rgba(255, 255, 255, .8); text-decoration: none; }
.hx-footer__backers { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.hx-footer__backers span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.hx-footer__backers img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .6; }
.hx-footer .lx-footer__legal { margin-top: 1.6rem; }

/* ═════════════ 5. MOUVEMENT RÉDUIT, RESPONSIVE ═════════════ */

@media (prefers-reduced-motion: reduce) {
  .lx-btn--primary::before, .hx-mobile.is-open .hx-mobile__group a { animation: none !important; }
}

@media (max-width: 1240px) {
  .hx-menu__link { padding: 0 .6rem; font-size: .9063rem; }
  .hx-header .lx-header__nav { gap: .9rem; }
}
@media (max-width: 1100px) {
  .hx-menu, .hx-header .lx-header__login { display: none; }
  .hx-burger { display: inline-block; }
  .hx-header .lx-header__nav { gap: .6rem; }
  .hx-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hx-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .lx-header__more, .lx-header__hint { display: none; }
  .lx-header__nav { gap: .7rem; }
  .lx-lang { height: 36px; padding: 0 .65rem 0 .55rem; }
  .lx-header__inner { min-height: 62px; }
  .lx-header__logo { width: 128px; }
  .lx-header--page .lx-header__inner, .lx-header--mini .lx-header__inner { min-height: 72px; }
  .lx-footer__inner { grid-template-columns: 1fr; }
  .lx-footer__site { justify-content: flex-start; }
}
/* Téléphones : l'en-tête porte logo + connexion + langue + essai. Le logo ne rétrécit jamais ;
   le drapeau reste seul et la connexion passe en icône (texte gardé pour les lecteurs d'écran). */
@media (max-width: 480px) {
  .lx-header__inner { gap: .5rem; }
  .lx-header__nav { gap: .55rem; }
  .lx-lang { padding: 0 .6rem; }
  .lx-lang span { display: none; }
  .lx-header__login { justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
  .lx-header__login-ico { display: block; }
  .lx-header__login-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lx-header.is-light .lx-header__login { border-color: rgba(11, 18, 32, .14); background: rgba(11, 18, 32, .03); }
  .hx-header__cta { display: none; }
}
@media (max-width: 380px) {
  .lx-header__logo { width: 116px; }
  .lx-header__nav { gap: .45rem; }
  .lx-header .lx-btn--sm { padding: 0 .8rem; font-size: .875rem; }
}
