/* « Un peu plus de liquid glass » sur les cartes et le menu (envol, glass, normaklinck — retour du 20/10).
   Matériau : verre translucide (flou + saturation de ce qui est derrière), bord lumineux, reflet spéculaire qui suit le pointeur (--mx/--my, lg-plus.js),
   réfraction liquide (filtre SVG #lgp) sur Chrome / Edge ; halos pastel fixes derrière la page pour que le verre ait quelque chose à réfracter. */
:root { --lgp-bg: linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.30) 52%, rgba(255,255,255,.48));
  --lgp-line: rgba(255,255,255,.82);
  --lgp-in: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), inset 0 0 26px rgba(255,255,255,.28);
  --lgp-out: 0 22px 54px rgba(60,45,20,.13), 0 2px 6px rgba(60,45,20,.05); }

/* halos aux couleurs du logo, très doux, derrière tout */
body.lgp::before { content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32vmax 28vmax at 10% 20%, rgba(107,192,178,.20), rgba(107,192,178,0) 70%),
    radial-gradient(28vmax 26vmax at 90% 26%, rgba(119,74,145,.14), rgba(119,74,145,0) 70%),
    radial-gradient(30vmax 28vmax at 80% 84%, rgba(245,163,67,.16), rgba(245,163,67,0) 70%),
    radial-gradient(26vmax 24vmax at 16% 88%, rgba(231,61,61,.10), rgba(231,61,61,0) 70%);
  animation: lgpDrift 30s ease-in-out infinite alternate; }
@keyframes lgpDrift { to { transform: translate3d(2vmax, -2vmax, 0) rotate(6deg) scale(1.05); } }

/* le matériau */
body.lgp .hd, body.lgp .nkm__in, body.lgp .why__row ul, body.lgp .mk__steps li, body.lgp .newsx__c figure, body.lgp .pcol,
body.lgp .bx, body.lgp .nc, body.lgp .pcat, body.lgp .tm p, body.lgp .ct2__form,
body.lgp .ft__pane, body.lgp .ft__ui, body.lgp .tl, body.lgp .nx__vis, body.lgp .nx__it[aria-selected="true"],
body.lgp .end__box, body.lgp .ft__tabs, body.lgp .hero__vis, body.lgp .bt--line {
  isolation: isolate;
  background: var(--lgp-bg) !important; border-color: var(--lgp-line) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lgp-in), var(--lgp-out) !important; }
/* les cartes « statiques » deviennent le repère du reflet (le menu, le méga-menu et la vignette vidéo gardent leur position fixe / absolue) */
body.lgp .why__row ul, body.lgp .pcol, body.lgp .bx, body.lgp .nc, body.lgp .pcat, body.lgp .ft__pane, body.lgp .fc, body.lgp .nx__vis, body.lgp .end__box, body.lgp .newsx__c figure { position: relative; }
body.lgp .pcol { border: 1px solid; }
body.lgp .hd { border: 1px solid; }
body.lgp .mk__steps li.is-on, body.lgp .nx__it[aria-selected="true"] { background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.5)) !important; }
body.lgp .tl__full { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* réfraction liquide : le bord du verre déforme légèrement ce qui est derrière (Chrome / Edge) */
@supports (backdrop-filter: url(#lgp)) {
  body.lgp.lgp-ok .why__row ul, body.lgp.lgp-ok .mk__steps li, body.lgp.lgp-ok .ft__tabs,
  body.lgp.lgp-ok .nx__it[aria-selected="true"], body.lgp.lgp-ok .bt--line {
    -webkit-backdrop-filter: url(#lgp) blur(12px) saturate(185%); backdrop-filter: url(#lgp) blur(12px) saturate(185%); }
}

/* reflet spéculaire : un éclat en haut + une tache de lumière qui suit le pointeur */
body.lgp .hd::after, body.lgp .pcat::after, body.lgp .why__row ul::after, body.lgp .mk__steps li::after, body.lgp .pcol::after, body.lgp .bx::after, body.lgp .nc::after,
body.lgp .ft__pane::after, body.lgp .fc::after, body.lgp .tl::after, body.lgp .nx__vis::after, body.lgp .end__box::after,
body.lgp .newsx__c figure::after, body.lgp .nkm__in::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(180px 140px at var(--mx, 30%) var(--my, -10%), rgba(255,255,255,.5), rgba(255,255,255,0) 70%),
              linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 34%);
  mix-blend-mode: soft-light; opacity: .9; transition: opacity .3s; }
body.lgp .tl::after { z-index: 1; }
body.lgp .newsx__c figure::after { mix-blend-mode: screen; opacity: .45; }

/* survol : le verre se soulève */
body.lgp .bx, body.lgp .nc, body.lgp .pcat, body.lgp .fc, body.lgp .pcol, body.lgp .mk__steps li { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
body.lgp .bx:hover, body.lgp .nc:hover, body.lgp .pcat:hover, body.lgp .fc:hover, body.lgp .pcol:hover { transform: translateY(-4px); box-shadow: var(--lgp-in), 0 30px 64px rgba(60,45,20,.17) !important; }

@media (prefers-reduced-transparency: reduce) {
  body.lgp *, body.lgp .hd { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  body.lgp::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { body.lgp::before { animation: none; } }

/* aucun trait vertical ni horizontal sur les cartes (retour du 20/10) */
body.lgp .pcol::before { display: none; }
body.lgp .pcol__ben { border-top: 0; }
body.lgp .mk__steps li i { display: none; }
body.lgp .nx__it[aria-selected="true"] { box-shadow: var(--lgp-in), var(--lgp-out) !important; }
body.lgp .nx__bar { display: none; }

/* cartes des familles : la photo reste en fond, seul le bord de verre et le reflet s'ajoutent */
body.lgp .fc { border-color: rgba(255,255,255,.7) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 24px rgba(255,255,255,.18), var(--lgp-out) !important; }
