/* ==========================================================================
   LOGIVIAN — Lucas Barré
   Feuille de style commune à toutes les pages.
   Tout est porté sous #lgv-site pour rester compatible avec un bloc HTML
   Odoo : aucune règle ne fuit vers Bootstrap ni vers le thème du site.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Base */

#lgv-site {
  /* Noirs à peine bleutés : ils s'accordent au cyan de la marque et aux gris
     froids du portrait. */
  --bg:        #0a0b0d;
  --bg-2:      #0e1014;
  --surface:   #14171c;
  --surface-2: #1b1f25;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .20);
  --txt:       #f1f4f6;
  --muted:     #a3aab2;
  --dim:       #8e959d;   /* 5,4:1 au pire (sur --surface-2) : lisible en petit corps */
  --err:       #ff9080;
  --accent:    #00b5d3;
  --accent-2:  #56e2f7;
  --accent-sf: rgba(0, 181, 211, .11);
  --green:     #8fd324;
  --glass:     rgba(14, 16, 20, .72);
  --r:         18px;      /* rayon des cadres (portrait, captures, bandes) */

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 44px);

  /* Courbes : sortie longue, sortie très longue, aller-retour, rebond. */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --inout:    cubic-bezier(.76, 0, .24, 1);
  --back:     cubic-bezier(.34, 1.56, .64, 1);

  position: relative;
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  interpolate-size: allow-keywords;
}

#lgv-site *, #lgv-site *::before, #lgv-site *::after { box-sizing: border-box; }

#lgv-site h1, #lgv-site h2, #lgv-site h3, #lgv-site h4,
#lgv-site p, #lgv-site ul, #lgv-site ol, #lgv-site li,
#lgv-site figure, #lgv-site blockquote, #lgv-site dl, #lgv-site dd { margin: 0; padding: 0; }

#lgv-site ul, #lgv-site ol { list-style: none; }
#lgv-site img, #lgv-site svg { display: block; max-width: 100%; }
#lgv-site a { color: inherit; text-decoration: none; }
#lgv-site button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#lgv-site strong { font-weight: 600; color: var(--txt); }

#lgv-site h1, #lgv-site h2, #lgv-site h3, #lgv-site h4 {
  font-family: "Bricolage Grotesque", Archivo, Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

#lgv-site ::selection { background: var(--accent); color: #05171d; }
#lgv-site :focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }
/* Cibles où le script déplace le focus (contenu principal, section atteinte
   par une ancre) : la touche Tab repart de là, inutile d'entourer toute la zone. */
#lgv-site [tabindex="-1"]:focus { outline: none; }

#lgv-site .l-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
#lgv-site .l-wrap--narrow { max-width: 880px; }

#lgv-site .l-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Lien d'évitement, premier élément de la page : hors de vue jusqu'à ce que
   la touche Tab l'atteigne, puis pastille posée au-dessus de tout (en-tête,
   rideau, visionneuse). */
#lgv-site .l-skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid transparent;   /* visible en mode contraste élevé */
  border-radius: 999px;
  background: var(--accent);
  color: #05171d;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate3d(0, calc(-100% - 24px), 0);
  transition: transform .35s var(--ease);
}
#lgv-site .l-skip:focus { transform: none; }
#lgv-site .l-skip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 999px; }

/* Images clés partagées par les entrées en scène. Le « to » est implicite :
   l'élément rejoint son état normal, quel qu'il soit. */
@keyframes l-up    { from { opacity: 0; transform: translate3d(0, 30px, 0); } }
@keyframes l-left  { from { opacity: 0; transform: translate3d(-28px, 0, 0); } }
@keyframes l-fade  { from { opacity: 0; } }
@keyframes l-chip  { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.84); } }
@keyframes l-pop   { from { opacity: 0; transform: scale(.2) rotate(-100deg); } }
@keyframes l-dot   { from { transform: scale(0); } }
@keyframes l-drop  { from { transform: translate3d(0, -110%, 0); } }
@keyframes l-rise  { from { transform: translate3d(0, 120%, 0); } }
@keyframes l-char  { from { transform: translate3d(0, 125%, 0) rotate(10deg); } }
@keyframes l-word  { from { transform: translate3d(0, 125%, 0) rotate(5deg); } }
@keyframes l-unroll  { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes l-unveil  { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes l-wipe-x  { from { clip-path: inset(0 100% 0 0); transform: translate3d(-12px, 0, 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes l-zoom    { from { transform: scale(1.24); } }
@keyframes l-shade   { from { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0), 0 44px 80px -40px rgba(0, 0, 0, 0); } }
@keyframes l-veil-out { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -101%, 0); } }
@keyframes l-veil-in  { from { transform: translate3d(0, 101%, 0); } to { transform: translate3d(0, 0, 0); } }

/* Rang d'un élément dans son groupe : sert à décaler les apparitions. */
#lgv-site :is(.l-card, .l-work, .l-step, .l-figures, .l-refs, .l-next, .l-faq, .l-contact, .l-filters, .l-tools ul, .l-cta) > :nth-child(2)  { --k: 1; }
#lgv-site :is(.l-card, .l-work, .l-step, .l-figures, .l-refs, .l-next, .l-faq, .l-contact, .l-filters, .l-tools ul, .l-cta) > :nth-child(3)  { --k: 2; }
#lgv-site :is(.l-card, .l-work, .l-step, .l-figures, .l-refs, .l-next, .l-faq, .l-contact, .l-filters, .l-tools ul, .l-cta) > :nth-child(4)  { --k: 3; }
#lgv-site :is(.l-card, .l-work, .l-step, .l-figures, .l-refs, .l-next, .l-faq, .l-contact, .l-filters, .l-tools ul, .l-cta) > :nth-child(5)  { --k: 4; }
#lgv-site :is(.l-faq, .l-filters, .l-tools ul) > :nth-child(6)  { --k: 5; }
#lgv-site :is(.l-faq, .l-filters, .l-tools ul) > :nth-child(7)  { --k: 6; }
#lgv-site :is(.l-faq, .l-filters, .l-tools ul) > :nth-child(8)  { --k: 7; }
#lgv-site :is(.l-faq, .l-filters, .l-tools ul) > :nth-child(9)  { --k: 8; }
#lgv-site :is(.l-faq, .l-filters, .l-tools ul) > :nth-child(n+10) { --k: 9; }

/* ------------------------------------------------------ 2. Grain de l'image

   Un grain très fin posé sur toute la page : il casse l'aplat des grands
   fonds sombres et des dégradés (pas d'effet d'escalier sur le halo). Image
   fixe, calculée une fois, sans aucune animation. */

#lgv-site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 58;   /* sous l'en-tête et le menu, au-dessus du contenu */
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ------------------------------------------------- 3. Rideau de page

   Deux panneaux superposés : le sombre se lève, le cyan le suit avec un temps
   de retard, ce qui laisse passer une bande de couleur. L'ouverture est en CSS
   pur — sans script, le rideau se lève quand même. La fermeture (au clic sur
   un lien interne) est déclenchée par la classe .is-leaving. */

#lgv-site .l-veil {
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow: hidden;
  pointer-events: none;
}
#lgv-site .l-veil::before,
#lgv-site .l-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Pas de will-change permanent : l'animation CSS promeut le panneau
     d'elle-même, le temps qu'elle dure. */
}
#lgv-site .l-veil::before { background: var(--accent); animation: l-veil-out .85s var(--inout) .17s both; }
#lgv-site .l-veil::after  { background: var(--bg);     animation: l-veil-out .85s var(--inout) .08s both; }

/* Pages suivantes de la visite (classe posée sur <html> par le script) : le
   même geste, levé en moins d'une demi-seconde. */
.lgv-quick #lgv-site .l-veil::before { animation-duration: .36s; animation-delay: .06s; }
.lgv-quick #lgv-site .l-veil::after  { animation-duration: .36s; animation-delay: 0s; }

/* Départ vers une autre page : bref (250 ms), la navigation suit aussitôt. */
#lgv-site.is-leaving .l-veil::before { animation: l-veil-in .2s var(--inout) 0s both; }
#lgv-site.is-leaving .l-veil::after  { animation: l-veil-in .2s var(--inout) .05s both; }

/* Barre de progression de lecture, posée par le script. */
#lgv-site .l-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 2px;
  pointer-events: none;
}
#lgv-site .l-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--sp, 0));
  transform-origin: 0 50%;
}

/* -------------------------------------------------------------- 4. En-tête

   En haut de page, l'en-tête est posé sur le héros, sans fond. Dès que l'on
   descend, il se resserre en une barre flottante vitrée : ce fond est un
   pseudo-élément, le contenu ne bouge donc pas d'un pixel quand il apparaît. */

#lgv-site .l-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 18px 0;
  transition: padding .5s var(--ease), transform .6s var(--ease);
  animation: l-drop 1s var(--ease) .6s backwards;
}
#lgv-site .l-header.is-stuck { padding: 10px 0; }
#lgv-site .l-header.is-hidden { transform: translate3d(0, calc(-100% - 10px), 0); }
/* Jamais caché pendant que le focus clavier y est. */
#lgv-site .l-header:focus-within { transform: none; }

#lgv-site .l-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 46px; }
#lgv-site .l-nav::before {
  content: "";
  position: absolute;
  inset: -7px calc(var(--pad) - 14px);
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
          backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, .95);
  opacity: 0;
  transform: scale(.98, .7);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
#lgv-site .l-header.is-stuck .l-nav::before { opacity: 1; transform: none; }
/* Menu mobile ouvert : il couvre déjà l'écran, la barre vitrée s'efface. */
#lgv-site.is-menu .l-header .l-nav::before { opacity: 0; }

#lgv-site .l-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#lgv-site .l-brand img { height: 32px; width: auto; transition: transform .6s var(--back); }
#lgv-site .l-brand:hover img { transform: scale(1.07) rotate(-3deg); }
#lgv-site .l-brand span {
  display: block;
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  font-size: .65625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.45;
}

/* Navigation : une gélule de liens. Sans script, le lien survolé et la
   rubrique en cours ont leur propre fond ; avec le script, une seule
   pastille glisse d'un lien à l'autre et revient se poser sur la rubrique
   en cours quand la souris s'en va. */
#lgv-site .l-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  transition: background-color .45s, border-color .45s;
}
#lgv-site .l-header.is-stuck .l-links { background-color: transparent; border-color: transparent; }
#lgv-site .l-links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
  transition: color .25s, background-color .25s;
}
#lgv-site .l-links a:hover { color: var(--txt); background-color: rgba(255, 255, 255, .06); }
#lgv-site .l-links a:is([aria-current="page"], [aria-current="true"]) { color: var(--txt); background-color: rgba(255, 255, 255, .08); }
/* Point d'accent devant la rubrique en cours. */
#lgv-site .l-links a:is([aria-current="page"], [aria-current="true"])::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(86, 226, 247, .16);
}
#lgv-site .l-links.has-ind a { background-color: transparent; }
#lgv-site .l-links__ind {
  position: absolute;
  top: 4px; bottom: 4px; left: 0;
  width: var(--iw, 0px);
  border-radius: 999px;
  background: rgba(255, 255, 255, .085);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  opacity: var(--io, 0);
  transform: translate3d(var(--ix, 0px), 0, 0);
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .35s;
  pointer-events: none;
}
/* Première pose (et redimensionnement) : la pastille se place sans glisser. */
#lgv-site .l-links__ind.is-snap { transition: opacity .35s; }

#lgv-site .l-nav__cta { display: flex; align-items: center; gap: 10px; }

/* En colonne serrée : en grille, les trois traits s'étalaient sur la hauteur
   et la croix d'ouverture ne se formait pas. 44 px : une cible sûre au doigt. */
#lgv-site .l-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  transition: background-color .4s, border-color .4s;
}
#lgv-site .l-burger span { display: block; width: 16px; height: 1.5px; background: var(--txt); transition: transform .45s var(--ease), opacity .2s, background-color .4s; }
#lgv-site .l-burger span + span { margin-top: 4px; }
#lgv-site .l-burger.is-open { background: var(--txt); border-color: var(--txt); }
#lgv-site .l-burger.is-open span { background: var(--bg); }
#lgv-site .l-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
#lgv-site .l-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#lgv-site .l-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Menu mobile : plein écran, il se déroule depuis le haut. Fermé, il est
   hors de vue ET hors d'atteinte (clavier, lecteurs d'écran) : visibility
   bascule une fois le déroulé fini, et le script le rend inerte. Il n'existe
   que sous 860 px (section 24). Plus haut que l'écran (téléphone à
   l'horizontale), il défile en lui-même. */
#lgv-site .l-drawer {
  position: fixed;
  inset: 0;
  z-index: 59;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 96px var(--pad) max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(80% 46% at 100% 0%, rgba(0, 181, 211, .17), transparent 72%),
    radial-gradient(60% 40% at 0% 100%, rgba(0, 181, 211, .07), transparent 70%),
    var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--inout), visibility 0s linear .7s;
}
#lgv-site .l-drawer.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--inout), visibility 0s linear 0s; }

#lgv-site .l-drawer__links { display: flex; flex-direction: column; }
#lgv-site .l-drawer__links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.75rem, 8.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  border-bottom: 1px solid var(--line);
  transition: color .25s;
}
#lgv-site .l-drawer__links a:active { color: var(--accent-2); }
#lgv-site .l-drawer__links a i { font-style: normal; font-family: Inter, sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: .14em; color: var(--dim); }
#lgv-site .l-drawer__links a[aria-current],
#lgv-site .l-drawer__links a[aria-current] i { color: var(--accent-2); }

#lgv-site .l-drawer__foot { display: grid; gap: 18px; }
#lgv-site .l-drawer__foot .l-btn { justify-content: center; padding-block: 16px; }
#lgv-site .l-drawer__foot p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: .875rem; color: var(--muted); }
#lgv-site .l-drawer__foot p a { padding: 6px 0; transition: color .25s; }
#lgv-site .l-drawer__foot p a:hover { color: var(--accent-2); }

/* Les liens entrent l'un après l'autre, puis le pied du menu. */
@keyframes l-menu-in { from { opacity: 0; transform: translate3d(0, 38px, 0); } }
#lgv-site .l-drawer.is-open .l-drawer__links a { animation: l-menu-in .8s var(--ease) backwards; }
#lgv-site .l-drawer.is-open .l-drawer__links a:nth-child(1) { animation-delay: .18s; }
#lgv-site .l-drawer.is-open .l-drawer__links a:nth-child(2) { animation-delay: .24s; }
#lgv-site .l-drawer.is-open .l-drawer__links a:nth-child(3) { animation-delay: .30s; }
#lgv-site .l-drawer.is-open .l-drawer__links a:nth-child(4) { animation-delay: .36s; }
#lgv-site .l-drawer.is-open .l-drawer__links a:nth-child(5) { animation-delay: .42s; }
#lgv-site .l-drawer.is-open .l-drawer__foot { animation: l-up .8s var(--ease) .5s backwards; }

/* Menu ouvert : la page dessous ne défile plus. */
html.lgv-menu, html.lgv-menu body { overflow: hidden; }

/* -------------------------------------------------------------- 5. Boutons */

#lgv-site .l-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: .90625rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;   /* Safari : le remplissage reste rogné à l'arrondi */
  /* --bx / --by : attraction vers la souris, posée par le script. Le retour
     se fait avec un léger rebond. */
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: color .3s, border-color .3s, box-shadow .5s, transform .75s var(--back);
}
#lgv-site .l-btn:hover  { transition: color .3s, border-color .3s, box-shadow .5s, transform .22s var(--ease); }
#lgv-site .l-btn:active { transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(.96); }
#lgv-site .l-btn > * { position: relative; z-index: 1; }
#lgv-site .l-btn svg { width: 15px; height: 15px; flex: none; transition: transform .45s var(--ease); }
#lgv-site .l-btn:hover svg { transform: translateX(5px); }

#lgv-site .l-btn--solid { background: var(--accent); color: #05171d; font-weight: 600; box-shadow: 0 10px 28px -14px rgba(0, 181, 211, .55); }
#lgv-site .l-btn--solid:hover { box-shadow: 0 14px 34px -12px rgba(0, 181, 211, .7); }
#lgv-site .l-btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
#lgv-site .l-btn--solid:hover::before { transform: scaleY(1); }

#lgv-site .l-btn--line { border-color: var(--line-2); color: var(--txt); }
#lgv-site .l-btn--line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--txt);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
#lgv-site .l-btn--line:hover { color: var(--bg); border-color: var(--txt); }
#lgv-site .l-btn--line:hover::before { transform: scaleY(1); }

#lgv-site .l-btn--sm { padding: 10px 20px; font-size: .84375rem; }

/* Libellé qui « roule » : le texte sort par le haut, sa copie entre par le bas. */
#lgv-site .l-roll { display: inline-block; overflow: hidden; vertical-align: top; }
#lgv-site .l-roll__in { display: block; position: relative; transition: transform .55s var(--ease); }
#lgv-site .l-roll__in::after {
  content: attr(data-t);
  content: attr(data-t) / "";
  position: absolute;
  left: 0; top: 100%;
  white-space: nowrap;
}
@media (hover: hover) {
  #lgv-site .l-btn:hover .l-roll__in { transform: translate3d(0, -100%, 0); }
}

/* Lien texte avec flèche */
#lgv-site .l-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .90625rem;
  font-weight: 500;
  color: var(--accent-2);
}
#lgv-site .l-arrow svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
#lgv-site .l-arrow:hover svg { transform: translateX(6px); }

/* ---------------------------------------------------------------- 6. Héros */

#lgv-site .l-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(126px, 16vh, 172px) 0 clamp(54px, 7vh, 88px);
  overflow: hidden;
}
#lgv-site .l-hero--page { padding-bottom: clamp(36px, 5vh, 56px); }

/* Halo : déplacé par le script (souris + défilement), en transform seul. */
#lgv-site .l-hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 150%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(40% 44% at 66% 30%, rgba(0, 181, 211, .21), transparent 66%),
    radial-gradient(30% 34% at 22% 16%, rgba(0, 181, 211, .07), transparent 70%),
    radial-gradient(38% 40% at 12% 8%, rgba(255, 255, 255, .045), transparent 64%);
  will-change: transform;
  animation: l-fade 2s ease .3s backwards;
}

/* Grille fine, masquée en dégradé. */
#lgv-site .l-hero__grid {
  position: absolute;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  will-change: transform;
  animation: l-fade 2s ease .45s backwards;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 34%, #000 18%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 34%, #000 18%, transparent 78%);
}

#lgv-site .l-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

#lgv-site .l-eyebrow {
  display: block;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  max-width: 34ch;
}
#lgv-site .l-eyebrow b { color: var(--accent-2); font-weight: 600; }

/* Colonne : les marges négatives des lignes ne fusionnent pas entre elles. */
#lgv-site .l-h1 { display: flex; flex-direction: column; font-size: clamp(1.95rem, 4.9vw, 3.9rem); margin-bottom: 24px; }
#lgv-site .l-h1--page { font-size: clamp(1.85rem, 4.2vw, 3.3rem); }
#lgv-site .l-h1 em { font-style: normal; color: var(--accent-2); }

/* Chaque ligne est un masque : le texte monte de dessous. La marge rendue au
   masque évite de rogner les accents et les jambages. */
#lgv-site .l-line { display: block; overflow: hidden; padding: .1em 0 .16em; margin: -.1em 0 -.16em; }
#lgv-site .l-line > span { display: block; animation: l-rise 1.1s var(--ease) calc(.5s + var(--d, 0ms)) backwards; }

/* Avec le script, le titre est découpé lettre par lettre. */
#lgv-site .l-h1.is-split .l-line > span { animation: none; }
/* La copie découpée (masquée aux lecteurs d'écran, qui lisent le texte
   intact posé à côté en .l-sr) reprend la colonne de lignes du titre. */
#lgv-site .l-h1 > .l-vis { display: flex; flex-direction: column; }
#lgv-site .l-w { display: inline-block; white-space: nowrap; }
#lgv-site .l-c { display: inline-block; }
#lgv-site .l-h1 .l-c {
  transform-origin: 0 100%;
  animation: l-char 1.1s var(--ease) calc(var(--t, .5s) + var(--i, 0) * 22ms) backwards;
  transition: transform .8s var(--back), color .7s;
}
@media (hover: hover) {
  #lgv-site .l-h1 .l-c:hover { transform: translate3d(0, -.09em, 0); color: var(--accent-2); transition: transform .14s var(--ease), color .14s; }
  #lgv-site .l-h1 em .l-c:hover { color: var(--txt); }
}

#lgv-site .l-lead { max-width: 56ch; font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--muted); margin-bottom: 32px; }
#lgv-site .l-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Fil d'Ariane */
#lgv-site .l-crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; font-size: .78125rem; color: var(--dim); }
#lgv-site .l-crumbs a:hover { color: var(--accent-2); }
#lgv-site .l-crumbs span[aria-current] { color: var(--muted); }

/* Entrée en scène du héros, calée sur la levée du rideau. CSS pur. */
#lgv-site .l-hero .l-eyebrow,
#lgv-site .l-hero .l-crumbs { animation: l-up 1s var(--ease) .5s backwards; }
#lgv-site .l-hero .l-lead   { animation: l-up 1.1s var(--ease) .98s backwards; }
#lgv-site .l-hero .l-cta > * { animation: l-up 1s var(--ease) calc(1.12s + var(--k, 0) * 90ms) backwards; }

/* ------------------------------------------------------------- 7. Portrait */

/* Photo de studio au format 4:5. Elle se dévoile de bas en haut en
   dézoomant, puis s'incline vers la souris (script) pendant que l'image
   glisse un peu en sens inverse : la débordante de 6 % sur chaque bord
   couvre ce mouvement, jamais un bord vide. */
#lgv-site .l-portrait { position: relative; justify-self: center; width: min(100%, 400px); perspective: 1100px; }

/* Cadre décalé derrière la photo : il reste fixe quand elle s'incline, ce
   qui donne la profondeur. */
#lgv-site .l-portrait::before {
  content: "";
  position: absolute;
  top: -16px; left: 16px;
  z-index: -1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(86, 226, 247, .32);
  border-radius: var(--r);
  background: linear-gradient(200deg, rgba(0, 181, 211, .10), transparent 46%);
  animation: l-fade 1.2s ease 1.5s backwards;
  pointer-events: none;
}

#lgv-site .l-portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  background: #b8bbbf;   /* gris du fond de la photo : aucun éclair au chargement */
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 44px 80px -40px rgba(0, 0, 0, .95);
  will-change: transform;
  animation: l-unveil 1.3s var(--inout) .55s backwards, l-shade 1s ease 1.75s backwards;
}
/* Bas de la photo légèrement assombri : la pastille et la légende s'y posent. */
#lgv-site .l-portrait__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 11, 13, .34));
  pointer-events: none;
}
/* Reflet qui suit la souris. */
#lgv-site .l-portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid transparent;
  border-radius: inherit;
  background: radial-gradient(62% 52% at var(--hx, 50%) var(--hy, 0%), rgba(255, 255, 255, .16), transparent 70%);
  opacity: 0;
  transition: opacity .6s, border-color .6s;
  pointer-events: none;
}
#lgv-site .l-portrait:hover .l-portrait__frame::after { opacity: 1; border-color: rgba(86, 226, 247, .5); }

#lgv-site .l-portrait img {
  position: absolute;
  top: -6%; left: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
  /* --ix / --iy : léger contre-mouvement posé par le script (profondeur). */
  transform: translate3d(var(--ix, 0px), var(--iy, 0px), 0);
  transform-origin: 50% 40%;
  animation: l-zoom 2s var(--ease) .55s backwards;
}

#lgv-site .l-portrait figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
  font-size: .78125rem;
  color: var(--dim);
  animation: l-up 1s var(--ease) 1.35s backwards;
}
#lgv-site .l-portrait figcaption b { color: var(--txt); font-weight: 600; font-size: .84375rem; }

/* Pastille tournante posée sur le bord du portrait. */
#lgv-site .l-badge {
  position: absolute;
  left: -62px;
  bottom: 104px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 124px; height: 124px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--txt);
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: transform .8s var(--back), background .4s, color .4s, border-color .4s;
  animation: l-pop 1s var(--back) 1.45s backwards;
}
#lgv-site .l-badge:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #05171d;
  transition: transform .22s var(--ease), background .4s, color .4s, border-color .4s;
}
#lgv-site .l-badge__ring {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  max-width: none;
  /* Elle tourne avec le défilement (script), jamais d'elle-même. */
}
#lgv-site .l-badge__ring text {
  font-family: Inter, sans-serif;
  /* Unités du dessin (viewBox), pas du texte courant : la taille suit celle
     de la pastille et le texte doit tenir sur son cercle. Reste en px. */
  font-size: 8.6px;
  font-weight: 600;
  fill: currentColor;
}
#lgv-site .l-badge__arrow { width: 24px; height: 24px; transition: transform .6s var(--back); }
#lgv-site .l-badge:hover .l-badge__arrow { transform: rotate(45deg) scale(1.15); }

/* --------------------------------------------------------- 8. Indicateurs */

#lgv-site .l-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(44px, 6vw, 74px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
#lgv-site .l-fig { padding: 24px 22px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#lgv-site .l-fig b {
  display: block;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
#lgv-site .l-fig span { display: block; margin-top: 10px; font-size: .8125rem; color: var(--muted); line-height: 1.5; }

/* Compteur à rouleaux : chaque chiffre est une colonne qui défile. */
#lgv-site .l-fig .l-odo { display: inline-flex; align-items: flex-start; margin: 0; font-size: inherit; color: inherit; line-height: 1.1; }
#lgv-site .l-fig .l-odo__d { display: block; height: 1.1em; margin: 0; overflow: hidden; font-size: inherit; color: inherit; line-height: 1.1; }
#lgv-site .l-fig .l-odo__s {
  display: block;
  margin: 0;
  font-size: inherit;
  color: inherit;
  line-height: 1.1;
  transform: translate3d(0, calc(var(--n, 0) * -1.1em), 0);
}
#lgv-site .l-fig .l-odo__s i { display: block; height: 1.1em; font-style: normal; }
#lgv-site .l-fig .l-odo__x { display: block; margin: 0; font-size: inherit; color: inherit; line-height: 1.1; white-space: pre; }

/* ------------------------------------------------------------- 9. Sections */

#lgv-site .l-section { padding: clamp(72px, 9.5vw, 122px) 0; }
#lgv-site .l-section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
#lgv-site .l-section--tight { padding-block: clamp(54px, 7vw, 86px); }

#lgv-site .l-shead { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 54px); }
#lgv-site .l-shead--split { max-width: none; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; }
#lgv-site .l-shead--split > div { max-width: 660px; }

/* Sur-titre précédé d'un court filet d'accent. */
#lgv-site .l-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: .71875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-2);
}
#lgv-site .l-kicker::before { content: ""; flex: none; width: 22px; height: 1px; background: currentColor; }
#lgv-site .l-h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
#lgv-site .l-h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 14px; }
#lgv-site .l-sub { color: var(--muted); font-size: clamp(.97rem, 1.2vw, 1.05rem); max-width: 64ch; }

#lgv-site .l-rule {
  height: 1px;
  background: var(--line-2);
  transform-origin: 0 50%;
  margin-bottom: clamp(36px, 4.5vw, 54px);
}

/* Titres découpés mot par mot : chaque mot est son propre masque. */
#lgv-site .l-split .l-w { overflow: hidden; vertical-align: top; padding: .12em .05em .2em; margin: -.12em -.05em -.2em; }
#lgv-site .l-wi { display: inline-block; transform-origin: 0 100%; }

/* Bandeau défilant */
#lgv-site .l-marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--line);
  animation: l-fade 1.4s ease 1.2s backwards;
}
#lgv-site .l-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  width: max-content;
  will-change: transform;
}
#lgv-site .l-marquee span {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(2rem, 6.4vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}
#lgv-site .l-marquee .is-o { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .34); }
/* Séparateur : une croix qui tourne quand le bandeau avance (--mr, posé par
   le script au défilement), jamais d'elle-même. */
#lgv-site .l-marquee i {
  position: relative;
  flex: none;
  width: clamp(14px, 2vw, 26px);
  height: clamp(14px, 2vw, 26px);
  transform: rotate(var(--mr, 0deg));
}
#lgv-site .l-marquee i::before,
#lgv-site .l-marquee i::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--accent);
}
#lgv-site .l-marquee i::after { transform: rotate(90deg); }

/* ---------------------------------------------------- 10. Grilles / cartes */

/* Les séparateurs sont portés par chaque cellule (et non par un fond + gap) :
   une dernière rangée incomplète ne laisse ainsi aucune case vide visible. */
#lgv-site .l-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(292px, 100%), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
#lgv-site .l-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }

#lgv-site .l-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 36px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background .4s;
}
#lgv-site .l-section--alt .l-card { background: var(--bg-2); }
/* Projecteur qui suit la souris. */
#lgv-site .l-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--accent-sf), transparent 62%);
}
#lgv-site .l-card:hover { background: var(--surface); }
#lgv-site .l-card:hover::before { opacity: 1; }
#lgv-site .l-card > * { position: relative; }

/* Filet d'accent qui se trace en haut de la cellule au survol, puis repart
   par l'autre côté. */
#lgv-site .l-card::after,
#lgv-site .l-work::after,
#lgv-site .l-ref::after,
#lgv-site .l-next a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .7s var(--ease);
  pointer-events: none;
}
#lgv-site .l-card:hover::after,
#lgv-site .l-work:hover::after,
#lgv-site .l-ref:hover::after,
#lgv-site .l-next a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

#lgv-site .l-card__n {
  display: block;
  margin-bottom: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  transition: color .3s, transform .6s var(--ease);
}
#lgv-site .l-card:hover .l-card__n { color: var(--accent-2); transform: translateX(7px); }
#lgv-site .l-card:hover .l-arrow svg { transform: translateX(6px); }

#lgv-site .l-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
#lgv-site .l-card p { color: var(--muted); font-size: .925rem; }
#lgv-site .l-card__more { margin-top: auto; padding-top: 22px; }

#lgv-site .l-ticks { margin-top: 18px; }
#lgv-site .l-ticks li { position: relative; padding-left: 17px; font-size: .85625rem; color: var(--muted); line-height: 1.78; }
#lgv-site .l-ticks li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--line-2); transition: width .4s var(--ease), background .3s; }
#lgv-site .l-card:hover .l-ticks li::before { width: 11px; background: var(--accent); }

/* -------------------------------------------------------------- 11. Outils */

#lgv-site .l-tools { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
#lgv-site .l-tools h3 {
  font-family: Inter, sans-serif;
  font-size: .71875rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 18px;
}
#lgv-site .l-tools ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
#lgv-site .l-tools li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--muted);
  transition: border-color .25s, color .25s, transform .45s var(--back);
}
#lgv-site .l-tools li:hover { border-color: var(--accent); color: var(--txt); transform: translateY(-3px); }

/* ------------------------------------------------------------- 12. Méthode */

#lgv-site .l-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
/* Trait de progression : il avance avec le défilement et allume les étapes. */
#lgv-site .l-steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  z-index: 1;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}
#lgv-site .l-step { position: relative; padding: 32px 26px 34px; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
#lgv-site .l-section--alt .l-step { background: var(--bg-2); }
#lgv-site .l-step:hover { background: var(--surface); }
#lgv-site .l-step b {
  display: block;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 2.1rem; font-weight: 700; line-height: 1;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .45);   /* 4,5:1 : lisible avant de s'allumer */
  margin-bottom: 18px;
  transition: color .6s, transform .6s var(--back);
}
#lgv-site .l-step.is-on b,
#lgv-site .l-step:hover b { color: var(--accent); }
#lgv-site .l-step:hover b { transform: translateY(-4px); }
#lgv-site .l-step h3 { font-size: 1.05rem; margin-bottom: 9px; }
#lgv-site .l-step p { font-size: .8875rem; color: var(--muted); }

/* ------------------------------------------------- 13. Projets / filtres */

#lgv-site .l-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
#lgv-site .l-filters button {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .825rem;
  color: var(--muted);
  transition: border-color .25s, color .25s, background .25s, transform .45s var(--back);
}
#lgv-site .l-filters button:hover { color: var(--txt); border-color: var(--line-2); transform: translateY(-2px); }
#lgv-site .l-filters button:active { transform: scale(.95); }
#lgv-site .l-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #05171d; font-weight: 600; }

#lgv-site .l-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

#lgv-site .l-work {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 34px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background .4s;
}
#lgv-site .l-section--alt .l-work { background: var(--bg-2); }
#lgv-site .l-work::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), var(--accent-sf), transparent 60%);
}
#lgv-site .l-work:hover { background: var(--surface); }
#lgv-site .l-work:hover::before { opacity: 1; }
#lgv-site .l-work > * { position: relative; }
#lgv-site .l-work[hidden] { display: none; }

#lgv-site .l-work__n { font-size: .71875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; transition: color .3s, transform .6s var(--ease); }
#lgv-site .l-work:hover .l-work__n { color: var(--accent-2); transform: translateX(7px); }
#lgv-site .l-work h3 { font-size: 1.1rem; margin-bottom: 11px; }
#lgv-site .l-work p { font-size: .9125rem; color: var(--muted); flex: 1; }
#lgv-site .l-work__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 20px; font-size: .78125rem; color: var(--dim); }

#lgv-site .l-work--next .l-work__n,
#lgv-site .l-work--next h3,
#lgv-site .l-work--next .l-work__tags { color: var(--accent-2); }
#lgv-site .l-work--next .l-work__tags svg { width: 14px; height: 14px; transition: transform .45s var(--ease); }
#lgv-site .l-work--next:hover .l-work__tags svg { transform: translateX(6px); }
/* Au focus, la carte passe au-dessus de ses voisines, qui sinon recouvrent l'anneau. */
#lgv-site a.l-work--next:focus-visible { z-index: 1; }

/* --------------------------------------------------------- 14. Références */

#lgv-site .l-refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
#lgv-site .l-ref {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* sans quoi le logo s'étire sur toute la largeur */
  gap: 20px;
  padding: 28px 26px 30px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s;
}
#lgv-site .l-section--alt .l-ref { background: var(--bg-2); }
#lgv-site .l-ref:hover { background: var(--surface); }

#lgv-site .l-ref__top { display: flex; align-items: center; height: 34px; transition: transform .6s var(--ease); }
#lgv-site .l-ref:hover .l-ref__top { transform: translateX(6px); }
#lgv-site .l-ref__top img { height: 30px; width: auto; opacity: .88; transition: opacity .3s; }
#lgv-site .l-ref:hover .l-ref__top img { opacity: 1; }
#lgv-site .l-ref__name { font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }

#lgv-site .l-ref b { display: block; font-size: .85rem; font-weight: 600; color: var(--txt); margin-bottom: 6px; }
#lgv-site .l-ref p { font-size: .8375rem; color: var(--muted); }
#lgv-site .l-ref__meta { margin-top: 14px; font-size: .775rem; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- 15. Citation */

#lgv-site .l-quote { max-width: 860px; }
#lgv-site .l-quote p {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.025em;
  text-wrap: balance;
}
#lgv-site .l-quote p em { font-style: normal; color: var(--accent-2); }
#lgv-site .l-quote footer,
#lgv-site .l-quote figcaption { margin-top: 22px; font-size: .84375rem; color: var(--dim); }

/* Les mots s'allument un à un à mesure que la citation remonte à l'écran.
   --qp est posé par le script ; sans lui, tout reste allumé. */
#lgv-site .l-qw {
  display: inline-block;
  opacity: calc(.16 + .84 * clamp(0, var(--qp, 1) * var(--n, 1) - var(--i, 0), 1));
}

/* ------------------------------------------------------------- 16. Parcours */

#lgv-site .l-time { position: relative; }
#lgv-site .l-time__rail { position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); overflow: hidden; }
#lgv-site .l-time__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(var(--tp, 0));
  transform-origin: 50% 0;
}
#lgv-site .l-item { position: relative; padding: 0 0 40px 38px; }
#lgv-site .l-item:last-child { padding-bottom: 0; }
#lgv-site .l-item__dot {
  position: absolute;
  left: 0; top: 8px;
  width: 11px; height: 11px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color .45s, background .45s;
}
#lgv-site .l-section--alt .l-item__dot { background: var(--bg-2); }
#lgv-site .l-item.is-in .l-item__dot { border-color: var(--accent); }
#lgv-site .l-item--now .l-item__dot { background: var(--accent); border-color: var(--accent); }
#lgv-site .l-item__date { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
#lgv-site .l-item--now .l-item__date { color: var(--accent-2); }
#lgv-site .l-item h3 { font-size: 1.14rem; margin-bottom: 6px; }
#lgv-site .l-item__org { display: block; font-size: .8375rem; color: var(--accent-2); margin-bottom: 8px; }
#lgv-site .l-item p { color: var(--muted); font-size: .91875rem; max-width: 64ch; }

/* ------------------------------------------------------------------ 17. FAQ */

#lgv-site .l-faq { border-top: 1px solid var(--line); }
#lgv-site .l-faq details { border-bottom: 1px solid var(--line); }
#lgv-site .l-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: color .25s, padding-left .5s var(--ease);
}
#lgv-site .l-faq summary::-webkit-details-marker { display: none; }
#lgv-site .l-faq summary:hover { color: var(--accent-2); padding-left: 10px; }
#lgv-site .l-faq summary i {
  position: relative;
  flex: none;
  width: 14px; height: 14px;
  transition: transform .5s var(--ease);
}
#lgv-site .l-faq details[open] summary i { transform: rotate(180deg); }
#lgv-site .l-faq summary i::before,
#lgv-site .l-faq summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transition: transform .45s var(--ease);
}
#lgv-site .l-faq summary i::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
#lgv-site .l-faq summary i::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
#lgv-site .l-faq details[open] summary i::after { transform: translate(-50%, -50%) scaleY(0); }
#lgv-site .l-faq details > div { padding-bottom: 24px; color: var(--muted); font-size: .925rem; max-width: 72ch; }

/* Ouverture en douceur, là où le navigateur sait animer une hauteur « auto ».
   Ailleurs la règle est ignorée et la réponse s'ouvre d'un coup. */
#lgv-site .l-faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .55s var(--ease), content-visibility .55s allow-discrete;
}
#lgv-site .l-faq details[open]::details-content { block-size: auto; }

/* -------------------------------------------------------- 18. Bande d'appel */

#lgv-site .l-band {
  position: relative;
  padding: clamp(46px, 6vw, 80px) clamp(26px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(70% 120% at 84% 10%, rgba(0, 181, 211, .15), transparent 62%),
    var(--surface);
  overflow: hidden;
}
#lgv-site .l-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 181, 211, .17), transparent 62%);
  pointer-events: none;
}
#lgv-site .l-band:hover::before { opacity: 1; }
#lgv-site .l-band__in { position: relative; display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; justify-content: space-between; }
#lgv-site .l-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 18ch; }
#lgv-site .l-band p { color: var(--muted); font-size: .9375rem; max-width: 46ch; margin-top: 14px; }

/* ------------------------------------------------------ 19. Pages suivantes */

#lgv-site .l-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
#lgv-site .l-next a { position: relative; padding: 30px 26px 32px; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
#lgv-site .l-section--alt .l-next a { background: var(--bg-2); }
#lgv-site .l-next a:hover { background: var(--surface); }
#lgv-site .l-next a:hover .l-arrow svg { transform: translateX(6px); }
#lgv-site .l-next a:focus-visible { z-index: 1; }   /* l'anneau passe au-dessus des cases voisines */
#lgv-site .l-next span { display: block; font-size: .71875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
#lgv-site .l-next h3 { font-size: 1.22rem; margin-bottom: 10px; transition: transform .6s var(--ease); }
#lgv-site .l-next a:hover h3 { transform: translateX(6px); }
#lgv-site .l-next p { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }

/* ------------------------------------------------------------- 20. Contact */

#lgv-site .l-contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 66px); align-items: start; }
#lgv-site .l-contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
#lgv-site .l-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--muted);
  transition: color .25s, border-color .25s;
}
#lgv-site .l-copy:hover { color: var(--txt); border-color: var(--accent); }
#lgv-site .l-copy svg { width: 15px; height: 15px; }

#lgv-site .l-infos { border-top: 1px solid var(--line); }
#lgv-site .l-infos div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .875rem; transition: padding-left .5s var(--ease); }
#lgv-site .l-infos div:hover { padding-left: 8px; }
#lgv-site .l-infos dt { color: var(--dim); flex: none; }
#lgv-site .l-infos dd { color: var(--txt); text-align: right; }
#lgv-site .l-infos dd a:hover { color: var(--accent-2); }

/* Formulaire */
#lgv-site .l-form { display: grid; gap: 16px; }
#lgv-site .l-field { display: grid; gap: 7px; }
#lgv-site .l-field label { font-size: .78125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
#lgv-site .l-field:focus-within label { color: var(--accent-2); }
#lgv-site .l-field input,
#lgv-site .l-field textarea,
#lgv-site .l-field select {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: .9125rem;
  color: var(--txt);
  background: var(--bg);
  /* Contour à 3,5:1 au moins sur tous les fonds : le champ se repère. */
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 12px;
  transition: border-color .25s, background-color .25s;
}
/* background-color et non le raccourci, qui effaçait la flèche du menu déroulant. */
#lgv-site .l-section--alt .l-field input,
#lgv-site .l-section--alt .l-field textarea,
#lgv-site .l-section--alt .l-field select { background-color: var(--bg-2); }
#lgv-site .l-field textarea { resize: vertical; min-height: 130px; }
#lgv-site .l-field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a3aab2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
#lgv-site .l-field select option { background: #14171c; color: #f1f4f6; }
/* Focus : un anneau franc, en plus du contour d'accent (un filet d'un pixel
   qui change de couleur ne suffisait pas à le voir). */
#lgv-site .l-field input:focus,
#lgv-site .l-field textarea:focus,
#lgv-site .l-field select:focus,
#lgv-site .l-field input:focus-visible,
#lgv-site .l-field textarea:focus-visible,
#lgv-site .l-field select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-color: var(--accent);
  background-color: var(--surface);
}
/* Champ refusé (aria-invalid, posé par le script) : le contour le signale,
   le message sous le formulaire dit pourquoi. */
#lgv-site .l-field :is(input, textarea, select)[aria-invalid="true"] { border-color: var(--err); }
#lgv-site .l-field input::placeholder, #lgv-site .l-field textarea::placeholder { color: var(--dim); }
#lgv-site .l-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#lgv-site .l-form__note { font-size: .775rem; color: var(--dim); transition: color .3s; }
#lgv-site .l-form__note.is-ok  { color: var(--green); font-size: .8375rem; }
#lgv-site .l-form__note.is-err { color: var(--err); font-size: .8375rem; }

/* Champ piège anti-spam : hors écran, jamais vu ni atteint au clavier. */
#lgv-site .l-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Bouton pendant l'envoi : la flèche fait des allers-retours. */
@keyframes l-nudge { 50% { transform: translateX(7px); } }
#lgv-site .l-btn.is-busy { pointer-events: none; opacity: .8; }
#lgv-site .l-btn.is-busy svg { animation: l-nudge .9s var(--inout) infinite; }

/* -------------------------------------------------------- 21. Pied de page */

#lgv-site .l-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 34px; }
#lgv-site .l-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
#lgv-site .l-footer__top img { height: 34px; width: auto; margin-bottom: 18px; }
#lgv-site .l-footer__top p { font-size: .875rem; color: var(--muted); max-width: 40ch; }
/* Titres de colonne : <h4> ou <p class="l-footer__title">, même rendu. */
#lgv-site .l-footer h4,
#lgv-site .l-footer .l-footer__title { font-family: Inter, sans-serif; font-size: .71875rem; font-weight: 600; line-height: 1.06; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
#lgv-site .l-footer li { margin-bottom: 9px; font-size: .875rem; color: var(--muted); }
#lgv-site .l-footer li a { display: inline-block; transition: color .22s, transform .45s var(--ease); }
#lgv-site .l-footer li a:hover { color: var(--accent-2); transform: translateX(5px); }
#lgv-site .l-footer__bottom { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .79375rem; color: var(--dim); }
#lgv-site .l-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
#lgv-site .l-footer__bottom a:hover { color: var(--accent-2); }

/* Grand mot de fin, posé par le script : les lettres remontent en décalé à
   mesure que le bas de page arrive (--mp, de 0 à 1). */
#lgv-site .l-footer.has-mega { padding-bottom: 0; }
#lgv-site .l-mega {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 40px);
  padding-top: .05em;
  overflow: hidden;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(3.1rem, 16.4vw, 14.8rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: .005em;   /* lettres au trait : elles ne doivent pas se chevaucher */
  white-space: nowrap;
  /* Lettres au trait. La police variable a des contours qui se recouvrent
     (barre du A, du G) : un trait seul les dessinerait. Le trait est donc
     peint sous un remplissage couleur du fond, qui masque sa moitié
     intérieure et ces recouvrements. */
  color: var(--bg);
  -webkit-text-stroke: 2px rgba(255, 255, 255, .17);
  paint-order: stroke fill;
  -webkit-user-select: none;
          user-select: none;
}
#lgv-site .l-mega .l-c {
  transform: translate3d(0, calc((1 - var(--mp, 1)) * (36% + var(--i, 0) * 11%)), 0);
  transition: color .8s, -webkit-text-stroke-color .8s;
}
@media (hover: hover) {
  #lgv-site .l-mega .l-c:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); transition-duration: .12s; }
}

/* --------------------------------------------- 22. Contenu éditorial simple */

#lgv-site .l-prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 42px 0 14px; }
#lgv-site .l-prose h2:first-child { margin-top: 0; }
#lgv-site .l-prose p { color: var(--muted); font-size: .9375rem; margin-bottom: 14px; max-width: 76ch; }
#lgv-site .l-prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
#lgv-site .l-prose ul { margin: 0 0 14px; }
#lgv-site .l-prose li { position: relative; padding-left: 18px; color: var(--muted); font-size: .9375rem; }
#lgv-site .l-prose li::before { content: ""; position: absolute; left: 0; top: .82em; width: 9px; height: 1px; background: var(--line-2); }

/* ------------------------------------- 23. Apparitions au défilement

   Rien de ce qui suit ne s'applique sans la classe .js-anim, que le script
   pose en démarrant : sans JavaScript, ou s'il échoue, tout reste visible.

   Principe : un élément .l-rv est masqué tant qu'il n'a pas .is-in ; à
   l'arrivée de .is-in, une animation « backwards » le fait entrer depuis son
   état de départ. Aucun état ne reste accroché après coup, donc les survols
   et les mouvements pilotés par le script ne sont jamais gênés.

   --d : retard posé par le script (éléments arrivés ensemble à l'écran).
   --k : rang dans le groupe (voir section 1).                               */

/* 23.1 — Cas général : montée + fondu. :where() garde une spécificité faible
          pour que les variantes ci-dessous passent devant sans surenchère. */
#lgv-site.js-anim :where(.l-rv:not(.is-in)) { opacity: 0; }
#lgv-site.js-anim :where(.l-rv.is-in) { animation: l-up 1.05s var(--ease) var(--d, 0ms) backwards; }

/* 23.2 — Groupes qui règlent eux-mêmes l'entrée de leurs enfants. */
#lgv-site.js-anim :is(.l-shead, .l-figures, .l-refs, .l-next, .l-faq, .l-tools, .l-filters, .l-quote, .l-contact).l-rv {
  opacity: 1;
  animation: none;
}

/* 23.3 — Filets : ils se tracent de gauche à droite. */
#lgv-site.js-anim .l-rule { transform: scaleX(0); transition: transform 1.5s var(--inout) var(--d, 0ms); }
#lgv-site.js-anim .l-rule.is-in { transform: scaleX(1); }

/* 23.4 — En-têtes de section : sur-titre balayé, titre mot à mot, texte. */
#lgv-site.js-anim .l-rv:not(.is-in) .l-wi { transform: translate3d(0, 125%, 0); }
#lgv-site.js-anim .l-rv.is-in .l-wi {
  animation: l-word 1.1s var(--ease) calc(var(--d, 0ms) + 70ms + var(--i, 0) * 34ms) backwards;
}
#lgv-site.js-anim .l-shead.l-rv:not(.is-in) :is(.l-kicker, .l-sub, .l-arrow) { opacity: 0; }
#lgv-site.js-anim .l-shead.l-rv.is-in .l-kicker { animation: l-wipe-x 1s var(--inout) var(--d, 0ms) backwards; }
#lgv-site.js-anim .l-shead.l-rv.is-in .l-sub    { animation: l-up 1.05s var(--ease) calc(var(--d, 0ms) + 340ms) backwards; }
#lgv-site.js-anim .l-shead.l-rv.is-in .l-arrow  { animation: l-up 1.05s var(--ease) calc(var(--d, 0ms) + 460ms) backwards; }

/* 23.5 — Cellules de grille : la case se déroule de haut en bas, puis son
          contenu monte ligne après ligne. Le cadre de la grille apparaît avec
          sa première case. */
#lgv-site.js-anim :is(.l-grid, .l-steps, .l-works, .l-figures, .l-refs, .l-next) { transition: border-color 1.1s ease; }
#lgv-site.js-anim :is(.l-grid, .l-steps, .l-works, .l-figures, .l-refs, .l-next):not(.is-in) { border-color: transparent; }

#lgv-site.js-anim :is(.l-card, .l-work, .l-step).l-rv.is-in {
  animation: l-unroll 1.1s var(--inout) var(--d, 0ms) backwards;
}
#lgv-site.js-anim :is(.l-card, .l-work, .l-step).l-rv.is-in > * {
  animation: l-up 1s var(--ease) calc(var(--d, 0ms) + 280ms + var(--k, 0) * 75ms) backwards;
}

#lgv-site.js-anim :is(.l-refs, .l-next, .l-figures).l-rv:not(.is-in) > * { opacity: 0; }
#lgv-site.js-anim :is(.l-refs, .l-next, .l-figures).l-rv.is-in > * {
  animation: l-unroll 1.1s var(--inout) calc(var(--d, 0ms) + var(--k, 0) * 110ms) backwards;
}
#lgv-site.js-anim .l-figures.l-rv.is-in .l-fig > span {
  animation: l-up 1s var(--ease) calc(var(--d, 0ms) + 420ms + var(--k, 0) * 110ms) backwards;
}

/* Compteurs : les rouleaux partent de zéro et tournent jusqu'au bon chiffre. */
#lgv-site.js-anim .l-odo__s {
  transition: transform 2.1s var(--ease-out) calc(var(--d, 0ms) + 320ms + var(--k, 0) * 110ms + var(--i, 0) * 90ms);
}
#lgv-site.js-anim .l-rv:not(.is-in) .l-odo__s { transform: translate3d(0, 0, 0); }
#lgv-site.js-anim .l-rv:not(.is-in) .l-odo__x { opacity: 0; }
#lgv-site.js-anim .l-rv.is-in .l-odo__x { animation: l-fade .8s ease calc(var(--d, 0ms) + 1.3s + var(--k, 0) * 110ms) backwards; }

/* 23.6 — Étiquettes, filtres, questions, colonnes. */
#lgv-site.js-anim .l-tools.l-rv:not(.is-in) :is(h3, li) { opacity: 0; }
#lgv-site.js-anim .l-tools.l-rv.is-in h3 { animation: l-up .9s var(--ease) var(--d, 0ms) backwards; }
#lgv-site.js-anim .l-tools.l-rv.is-in li { animation: l-chip .8s var(--back) calc(var(--d, 0ms) + 160ms + var(--k, 0) * 50ms) backwards; }

#lgv-site.js-anim .l-filters.l-rv:not(.is-in) button { opacity: 0; }
#lgv-site.js-anim .l-filters.l-rv.is-in button { animation: l-chip .8s var(--back) calc(var(--d, 0ms) + var(--k, 0) * 60ms) backwards; }

#lgv-site.js-anim .l-faq.l-rv:not(.is-in) details { opacity: 0; }
#lgv-site.js-anim .l-faq.l-rv.is-in details { animation: l-up 1s var(--ease) calc(var(--d, 0ms) + var(--k, 0) * 85ms) backwards; }

#lgv-site.js-anim .l-contact.l-rv:not(.is-in) > * { opacity: 0; }
#lgv-site.js-anim .l-contact.l-rv.is-in > * { animation: l-up 1.15s var(--ease) calc(var(--d, 0ms) + var(--k, 0) * 150ms) backwards; }

/* 23.7 — Parcours : chaque étape glisse depuis la gauche, son point éclot. */
#lgv-site.js-anim .l-item.l-rv.is-in { animation: l-left 1.05s var(--ease) var(--d, 0ms) backwards; }
#lgv-site.js-anim .l-item.l-rv.is-in .l-item__dot { animation: l-dot .8s var(--back) calc(var(--d, 0ms) + 300ms) backwards; }

/* 23.8 — Citation : les mots s'allument au défilement (section 15). */
#lgv-site.js-anim .l-quote.l-rv:not(.is-in) :is(footer, figcaption) { opacity: 0; }
#lgv-site.js-anim .l-quote.l-rv.is-in :is(footer, figcaption) { animation: l-up 1s var(--ease) calc(var(--d, 0ms) + 500ms) backwards; }

/* 23.9 — Bande d'appel : elle grandit en entrant (--bp, de 0 à 1). */
#lgv-site.js-anim .l-band { transform: scale(calc(.92 + .08 * var(--bp, 1))); transform-origin: 50% 0; }
#lgv-site.js-anim .l-band.l-rv:not(.is-in) :is(p, .l-btn) { opacity: 0; }
#lgv-site.js-anim .l-band.l-rv.is-in p    { animation: l-up 1s var(--ease) calc(var(--d, 0ms) + 380ms) backwards; }
#lgv-site.js-anim .l-band.l-rv.is-in .l-btn { animation: l-up 1s var(--ease) calc(var(--d, 0ms) + 480ms + var(--k, 0) * 90ms) backwards; }

/* ---------------------------------------- 23 bis. Études de cas et médias

   Captures et vidéos d'écran présentées dans des cadres (navigateur,
   téléphone), cartes de cas sur l'accueil et la page Réalisations, pages
   d'étude de cas. Tout reste lisible sans JavaScript : les vidéos ont une
   image d'aperçu, les captures sont des liens vers l'image en grand. */

/* Cadre navigateur */
#lgv-site .l-browser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .4);
}
#lgv-site .l-browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #1a191c;
}
#lgv-site .l-browser__bar::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3a393d;
  box-shadow: 15px 0 0 #3a393d, 30px 0 0 #3a393d;
  margin-right: 30px;
}
#lgv-site .l-browser__url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 3px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  font-size: .71875rem;
  color: var(--dim);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#lgv-site .l-browser img,
#lgv-site .l-browser video { display: block; width: 100%; height: auto; background: #f3f3f1; }

/* Cadre téléphone */
#lgv-site .l-phone {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 38px;
  background: #0f0f10;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .8), inset 0 0 0 2px #1d1d20;
}
#lgv-site .l-phone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%;
  z-index: 2;
  width: 26%; height: 18px;
  margin-left: -13%;
  border-radius: 12px;
  background: #0f0f10;
}
#lgv-site .l-phone__screen { overflow: hidden; border-radius: 30px; background: #f3f3f1; aspect-ratio: 640 / 1386; }
#lgv-site .l-phone__screen img,
#lgv-site .l-phone__screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Document (PDF, rapport) : une feuille posée, légèrement inclinée */
#lgv-site .l-sheet {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8);
  transform: rotate(-1.2deg);
}
#lgv-site .l-sheet img { display: block; width: 100%; height: auto; }

/* Scène : un navigateur et un téléphone qui se chevauchent. La profondeur
   (data-depth) est animée par le script au défilement. */
#lgv-site .l-stage { position: relative; padding: 0 0 6% 0; }
#lgv-site .l-stage .l-browser { width: 84%; }
#lgv-site .l-stage .l-phone { position: absolute; right: 0; bottom: 0; width: 23%; min-width: 128px; }
#lgv-site .l-stage--right .l-browser { margin-left: auto; }
#lgv-site .l-stage--right .l-phone { right: auto; left: 0; }
#lgv-site [data-depth] { will-change: transform; transform: translate3d(0, var(--dy, 0px), 0); }

/* Légende sous un visuel */
#lgv-site .l-caption { margin-top: 14px; font-size: .78125rem; color: var(--dim); }

/* Capture agrandissable : un lien vers l'image, ouvert dans une visionneuse. */
#lgv-site a.l-zoomable { display: block; cursor: zoom-in; }
#lgv-site a.l-zoomable img { transition: transform .9s var(--ease); }
@media (hover: hover) {
  #lgv-site a.l-zoomable:hover img { transform: scale(1.015); }
}
/* Dans un cadre qui rogne son contenu (navigateur, téléphone, feuille),
   l'anneau de focus passe à l'intérieur pour rester visible. */
#lgv-site :is(.l-browser, .l-phone__screen, .l-sheet) a.l-zoomable:focus-visible { outline-offset: -4px; }

#lgv-site .l-viewer {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  border: 0;
  background: rgba(8, 8, 9, .92);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
#lgv-site .l-viewer.is-open { opacity: 1; }
#lgv-site .l-viewer img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  transform: scale(.96);
  transition: transform .5s var(--ease);
}
#lgv-site .l-viewer.is-open img { transform: none; }
#lgv-site .l-viewer__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--txt);
  font-size: 1.375rem;
  line-height: 1;
}

/* Cartes de cas (accueil, page Réalisations) */
#lgv-site .l-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
#lgv-site .l-case {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color .4s, background .4s;
}
#lgv-site .l-section--alt .l-case { background: var(--bg-2); }
#lgv-site .l-case:hover { border-color: var(--line-2); background: var(--surface); }
#lgv-site .l-case__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) 0;
  background:
    radial-gradient(80% 90% at 70% 0%, rgba(0, 181, 211, .16), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
#lgv-site .l-case__visual .l-browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; transition: transform .9s var(--ease); }
#lgv-site .l-case__visual .l-browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
#lgv-site .l-case:hover .l-case__visual .l-browser { transform: translate3d(0, -8px, 0); }
#lgv-site .l-case__body { display: flex; flex: 1; flex-direction: column; padding: 26px 28px 30px; }
#lgv-site .l-case__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; font-size: .71875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
#lgv-site .l-case__meta b { color: var(--accent-2); font-weight: 600; }
#lgv-site .l-case h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); margin-bottom: 12px; }
#lgv-site .l-case p { font-size: .925rem; color: var(--muted); }
#lgv-site .l-case__more { margin-top: auto; padding-top: 22px; }
/* Toute la carte est cliquable, le lien reste le seul élément focalisable. */
#lgv-site .l-case__more a::after { content: ""; position: absolute; inset: 0; }
/* Un seul anneau de focus, autour de toute la carte : celui du lien n'en
   entourerait que le libellé. Clavier seulement, là où :has() permet de
   distinguer un focus clavier d'un clic. */
#lgv-site .l-case:focus-within { outline: 2px solid var(--accent-2); outline-offset: 2px; }
#lgv-site .l-case:focus-within:not(:has(:focus-visible)) { outline: none; }
#lgv-site .l-case__more a:focus-visible { outline: none; }
#lgv-site .l-case:hover .l-arrow svg { transform: translateX(6px); }
#lgv-site .l-case--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
#lgv-site .l-case--wide .l-case__visual { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
#lgv-site .l-case--wide .l-case__body { justify-content: center; padding: clamp(28px, 4vw, 48px); }

/* Étiquette d'état (« En test », « Projet LOGIVIAN »...) */
#lgv-site .l-badge-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(143, 211, 36, .35);
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}
#lgv-site .l-badge-state--test { border-color: rgba(86, 226, 247, .35); color: var(--accent-2); }

/* Fiche d'identité d'une étude de cas */
#lgv-site .l-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  margin-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
  animation: l-up 1s var(--ease) 1.15s backwards;
}
#lgv-site .l-facts > div { padding: 18px 22px 18px 0; }
#lgv-site .l-facts dt { margin-bottom: 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
#lgv-site .l-facts dd { font-size: .90625rem; color: var(--txt); line-height: 1.5; }

/* Rangées « ce que j'ai construit » : texte d'un côté, visuel de l'autre */
#lgv-site .l-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
#lgv-site .l-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
#lgv-site .l-row:nth-child(even) .l-row__text { order: 2; }
/* Le visuel garde la colonne large, qu'il soit à droite ou à gauche. */
#lgv-site .l-row:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
#lgv-site .l-row__text .l-kicker { margin-bottom: 14px; }
#lgv-site .l-row__text h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); margin-bottom: 14px; }
#lgv-site .l-row__text p { color: var(--muted); font-size: .95rem; }
#lgv-site .l-row__text .l-ticks { margin-top: 18px; }
#lgv-site .l-row__visual--phone { display: flex; justify-content: center; }
#lgv-site .l-row__visual--phone .l-phone { width: min(100%, 290px); }
#lgv-site .l-row__visual--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
#lgv-site .l-row__visual--pair > :nth-child(2) { margin-top: 18%; }

/* Points de résultat */
#lgv-site .l-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
#lgv-site .l-outcome { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#lgv-site .l-outcome b {
  display: block;
  margin-bottom: 10px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--txt);
}
#lgv-site .l-outcome p { font-size: .9rem; color: var(--muted); }

/* Lien vers l'étude de cas suivante */
#lgv-site .l-nextcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(30px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#lgv-site .l-nextcase span { display: block; margin-bottom: 12px; font-size: .71875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
#lgv-site .l-nextcase strong {
  display: block;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  transition: transform .7s var(--ease), color .4s;
}
#lgv-site .l-nextcase svg { width: clamp(34px, 5vw, 54px); height: auto; color: var(--accent); transition: transform .7s var(--ease); }
@media (hover: hover) {
  #lgv-site .l-nextcase:hover strong { transform: translateX(12px); color: var(--accent-2); }
  #lgv-site .l-nextcase:hover svg { transform: translateX(10px); }
}

/* Entrées en scène (mêmes principes que la section 23) */
#lgv-site.js-anim :is(.l-case, .l-row).l-rv { opacity: 1; animation: none; }
#lgv-site.js-anim .l-case.l-rv:not(.is-in) { opacity: 0; }
#lgv-site.js-anim .l-case.l-rv.is-in { animation: l-up 1.05s var(--ease) var(--d, 0ms) backwards; }
#lgv-site.js-anim .l-case.l-rv.is-in .l-case__visual .l-browser { animation: l-up 1.2s var(--ease) calc(var(--d, 0ms) + 200ms) backwards; }
#lgv-site.js-anim .l-row.l-rv:not(.is-in) > * { opacity: 0; }
#lgv-site.js-anim .l-row.l-rv.is-in .l-row__text { animation: l-up 1.05s var(--ease) var(--d, 0ms) backwards; }
#lgv-site.js-anim .l-row.l-rv.is-in .l-row__visual { animation: l-unveil 1.3s var(--inout) calc(var(--d, 0ms) + 120ms) backwards; }
#lgv-site.js-anim :is(.l-outcomes).l-rv { opacity: 1; animation: none; }
#lgv-site.js-anim .l-outcomes.l-rv:not(.is-in) > * { opacity: 0; }
#lgv-site.js-anim .l-outcomes.l-rv.is-in > * { animation: l-unroll 1.1s var(--inout) calc(var(--d, 0ms) + var(--k, 0) * 110ms) backwards; }
#lgv-site :is(.l-outcomes) > :nth-child(2) { --k: 1; }
#lgv-site :is(.l-outcomes) > :nth-child(3) { --k: 2; }
#lgv-site :is(.l-outcomes) > :nth-child(4) { --k: 3; }

@media (max-width: 980px) {
  #lgv-site .l-cases { grid-template-columns: minmax(0, 1fr); }
  #lgv-site .l-case--wide { grid-template-columns: minmax(0, 1fr); }
  #lgv-site .l-case--wide .l-case__visual { border-right: 0; border-bottom: 1px solid var(--line); }
  #lgv-site .l-row, #lgv-site .l-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  #lgv-site .l-row:nth-child(even) .l-row__text { order: 0; }
}

@media (max-width: 620px) {
  #lgv-site .l-stage .l-browser { width: 100%; }
  #lgv-site .l-stage .l-phone { width: 34%; min-width: 0; bottom: -8%; right: -2%; }
  #lgv-site .l-stage { padding-bottom: 16%; }
  #lgv-site .l-browser__url { display: none; }
  #lgv-site .l-row__visual--pair > :nth-child(2) { margin-top: 0; }
  #lgv-site .l-nextcase { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------- 23 ter. Preuves, maquettes et listes

   Bande de preuves de l'accueil, maquettes d'écran simplifiées (données
   fictives) qui illustrent les études de cas quand une capture réelle n'est
   pas publiable, schémas de circuit, liste des autres modules, liens
   « Exemple concret ». Les maquettes sont décoratives (aria-hidden) : leur
   légende dit ce qu'elles montrent. Sans JavaScript, tout est visible dans
   son état final ; les animations ne font qu'y conduire. */


@keyframes l-draw { from { stroke-dashoffset: var(--len, 600); } }
@keyframes l-grow { from { transform: scaleY(0); } }
@keyframes l-ring { from { transform: scale(.15); opacity: 0; } }
@keyframes l-ping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }

/* Bande de preuves (accueil) : trois réalisations vérifiables, cliquables */
#lgv-site .l-proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(44px, 6vw, 74px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
#lgv-site .l-proofs li { display: flex; }
#lgv-site .l-proofs a {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 54px 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s;
}
#lgv-site .l-proofs a:hover { background: var(--surface); }
#lgv-site .l-proofs .l-badge-state { align-self: flex-start; }
#lgv-site .l-proofs b {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
#lgv-site .l-proofs__txt { font-size: .875rem; line-height: 1.55; color: var(--muted); }
#lgv-site .l-proofs svg {
  position: absolute;
  top: 24px; right: 22px;
  width: 18px; height: 18px;
  color: var(--dim);
  transition: transform .6s var(--ease), color .3s;
}
#lgv-site .l-proofs a:hover svg { transform: translate3d(4px, -4px, 0); color: var(--accent-2); }
#lgv-site .l-proofs > :nth-child(2) { --k: 1; }
#lgv-site .l-proofs > :nth-child(3) { --k: 2; }

#lgv-site.js-anim .l-proofs.l-rv { opacity: 1; animation: none; transition: border-color 1.1s ease; }
#lgv-site.js-anim .l-proofs.l-rv:not(.is-in) { border-color: transparent; }
#lgv-site.js-anim .l-proofs.l-rv:not(.is-in) > * { opacity: 0; }
#lgv-site.js-anim .l-proofs.l-rv.is-in > * { animation: l-unroll 1.1s var(--inout) calc(var(--d, 0ms) + var(--k, 0) * 110ms) backwards; }
#lgv-site.js-anim .l-proofs.l-rv.is-in a > * { animation: l-up .9s var(--ease) calc(var(--d, 0ms) + 300ms + var(--k, 0) * 110ms) backwards; }

/* Lien « Exemple concret » en fin de section de service */
#lgv-site .l-example {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
  margin-top: clamp(34px, 4vw, 48px);
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-sf), transparent 70%);
  transition: border-color .4s, background-color .4s;
}
#lgv-site .l-example:hover { border-color: rgba(0, 181, 211, .45); background-color: var(--surface); }
#lgv-site .l-example span {
  grid-column: 1;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
#lgv-site .l-example b { grid-column: 1; font-weight: 600; font-size: 1rem; line-height: 1.45; }
#lgv-site .l-example svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 26px; height: 26px;
  color: var(--accent);
  transition: transform .6s var(--ease);
}
#lgv-site .l-example:hover svg { transform: translateX(6px); }

/* Sommaire des chapitres d'une étude de cas */
#lgv-site .l-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; }
#lgv-site .l-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--muted);
  transition: border-color .3s, color .3s, transform .5s var(--ease);
}
#lgv-site .l-toc a:hover { border-color: var(--accent); color: var(--txt); transform: translateY(-2px); }
#lgv-site .l-toc a i { font-style: normal; font-size: .75rem; color: var(--accent-2); }
#lgv-site .l-hero .l-toc { animation: l-up 1s var(--ease) 1.25s backwards; }

/* Grand visuel sous l'en-tête d'une étude de cas */
#lgv-site .l-casehero { margin-top: clamp(40px, 6vw, 70px); }
#lgv-site .l-hero .l-casehero { animation: l-up 1.2s var(--ease) 1.35s backwards; }

/* Liens externes (site en ligne) */
#lgv-site .l-ext { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-2); }
#lgv-site .l-ext svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
#lgv-site .l-ext:hover svg { transform: translate3d(3px, -3px, 0); }
#lgv-site .l-hero .l-ext { margin-top: 26px; animation: l-up 1s var(--ease) 1.2s backwards; }

/* Liste compacte : autres modules en service */
#lgv-site .l-mods { border-top: 1px solid var(--line); }
#lgv-site .l-mods li {
  display: grid;
  grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
#lgv-site .l-mods__date { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
#lgv-site .l-mods h3 { font-size: 1.08rem; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 6px; }
#lgv-site .l-mods p { font-size: .9375rem; color: var(--muted); line-height: 1.6; }
#lgv-site .l-mods__tag {
  justify-self: end;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
}
#lgv-site.js-anim .l-mods li.l-rv.is-in { animation: l-left .95s var(--ease) var(--d, 0ms) backwards; }

/* Panneau : support des schémas et maquettes hors cadre */
#lgv-site .l-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(0, 181, 211, .12), transparent 70%),
    var(--surface);
}
#lgv-site .l-panel__title { margin-bottom: 18px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
#lgv-site .l-panel + .l-panel { margin-top: 18px; }
#lgv-site .l-stack > .l-panel + .l-panel { margin-top: 0; }

/* Circuit : étapes reliées par un trait qui s'allume dans l'ordre */
#lgv-site .l-flow { position: relative; display: grid; gap: 14px; }
#lgv-site .l-flow::before {
  content: "";
  position: absolute;
  top: 10px; bottom: 10px; left: 9px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(0, 181, 211, .25));
  transform-origin: 50% 0;
}
#lgv-site .l-flow li { position: relative; display: grid; gap: 2px; padding-left: 36px; }
#lgv-site .l-flow li::before {
  content: "";
  position: absolute;
  top: 4px; left: 2px;
  width: 16px; height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--surface);
}
#lgv-site .l-flow li:last-child::before { background: var(--accent); }
#lgv-site .l-flow b { font-size: .95rem; font-weight: 600; line-height: 1.4; }
#lgv-site .l-flow span { font-size: .84rem; color: var(--muted); line-height: 1.5; }
#lgv-site .l-flow--warn::before { background: linear-gradient(#e8a13a, rgba(232, 161, 58, .25)); }
#lgv-site .l-flow--warn li::before { border-color: #e8a13a; }
#lgv-site .l-flow--warn li:last-child::before { background: #e8a13a; }
#lgv-site .l-flow > :nth-child(2) { --k: 1; }
#lgv-site .l-flow > :nth-child(3) { --k: 2; }
#lgv-site .l-flow > :nth-child(4) { --k: 3; }
#lgv-site .l-flow > :nth-child(5) { --k: 4; }
#lgv-site.js-anim .is-in .l-flow::before { animation: l-grow 1.4s var(--inout) calc(var(--d, 0ms) + 300ms) backwards; }
#lgv-site.js-anim .is-in .l-flow li { animation: l-left .9s var(--ease) calc(var(--d, 0ms) + 380ms + var(--k, 0) * 230ms) backwards; }
#lgv-site.js-anim .is-in .l-flow li::before { animation: l-dot .7s var(--back) calc(var(--d, 0ms) + 420ms + var(--k, 0) * 230ms) backwards; }

/* ---- Maquettes d'écran: interface claire, comme les vraies applications */
#lgv-site .l-ui {
  --ui-bg: #f5f5f2;
  --ui-card: #ffffff;
  --ui-line: #e3e2de;
  --ui-txt: #1b1c1f;
  --ui-mut: #65666b;
  --ui-ok: #3f7d0c;
  --ui-ok-bg: #edf6e1;
  --ui-ok-line: #b9dc8a;
  --ui-acc: #0a7f95;
  height: 100%;
  overflow: hidden;
  background: var(--ui-bg);
  color: var(--ui-txt);
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  --fs: 11px;
  --u: calc(var(--fs) / 11);
  font-size: var(--fs);
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  user-select: none;
}
#lgv-site .l-ui b { font-weight: 600; color: var(--ui-txt); }

/* Les maquettes gardent leurs proportions quelle que soit la taille du cadre :
   toutes leurs mesures dépendent de --u, lui-même tiré de la largeur du cadre. */
#lgv-site .l-browser { display: block; }
#lgv-site :is(.l-phone__screen, .l-browser, .l-sheet, .l-panel) { container-type: inline-size; }
@supports (width: 1cqw) {
  #lgv-site .l-ui--cmr { --fs: 4.4cqw; }
  #lgv-site .l-ui--dash { --fs: 1.75cqw; }
  #lgv-site :is(.l-ui--offers, .l-ui--list) { --fs: 1.95cqw; }
  #lgv-site .l-ui--doc { --fs: 2.05cqw; }
  #lgv-site .l-ui--chart { --fs: 1.6cqw; }
  #lgv-site .l-ui--sim { --fs: 2.1cqw; }
}
#lgv-site .l-ui__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(10 * var(--u));
  padding: calc(34 * var(--u)) calc(16 * var(--u)) calc(12 * var(--u));
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-card);
  font-size: calc(12.5 * var(--u));
}
#lgv-site .l-ui__lang { display: inline-flex; padding: 2px; border: 1px solid var(--ui-line); border-radius: 999px; font-size: calc(10 * var(--u)); }
#lgv-site .l-ui__lang i { padding: 1px calc(7 * var(--u)); border-radius: 999px; font-style: normal; color: var(--ui-mut); }
#lgv-site .l-ui__lang i.is-on { background: var(--ui-txt); color: #fff; }
#lgv-site .l-ui__body { display: grid; gap: calc(8 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u)); }
#lgv-site .l-ui__ref { font-size: calc(10.5 * var(--u)); color: var(--ui-mut); }
#lgv-site .l-ui__row,
#lgv-site .l-ui__field {
  display: grid;
  gap: 1px;
  padding: calc(7 * var(--u)) calc(10 * var(--u));
  border: 1px solid var(--ui-line);
  border-radius: calc(8 * var(--u));
  background: #ecebe7;
}
#lgv-site .l-ui__row span,
#lgv-site .l-ui__field span { font-size: calc(9.5 * var(--u)); text-transform: uppercase; letter-spacing: .06em; color: var(--ui-mut); }
#lgv-site .l-ui__row b { font-weight: 500; color: #4c4d52; }
#lgv-site .l-ui__field { border-color: var(--ui-ok-line); background: var(--ui-ok-bg); }
#lgv-site .l-ui__field b { font-weight: 600; color: var(--ui-ok); }
#lgv-site .l-ui__sign {
  padding: calc(7 * var(--u)) calc(10 * var(--u)) calc(4 * var(--u));
  border: 1px dashed #c9c8c3;
  border-radius: calc(8 * var(--u));
  background: var(--ui-card);
}
#lgv-site .l-ui__sign span { font-size: calc(9.5 * var(--u)); text-transform: uppercase; letter-spacing: .06em; color: var(--ui-mut); }
#lgv-site .l-ui__sign svg { width: 100%; height: calc(54 * var(--u)); }
#lgv-site .l-ui__sign path { fill: none; stroke: #20345c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; --len: 600; }
#lgv-site .l-ui__btn {
  padding: calc(9 * var(--u)) calc(12 * var(--u));
  border-radius: calc(9 * var(--u));
  background: var(--ui-txt);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
#lgv-site .l-ui__ok {
  display: flex;
  align-items: center;
  gap: calc(7 * var(--u));
  padding: calc(7 * var(--u)) calc(10 * var(--u));
  border-radius: calc(8 * var(--u));
  background: var(--ui-ok-bg);
  color: var(--ui-ok);
  font-size: calc(10.5 * var(--u));
  font-weight: 600;
}
#lgv-site .l-ui__ok::before { content: "✓"; display: grid; place-items: center; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: var(--ui-ok); color: #fff; font-size: calc(9 * var(--u)); }
#lgv-site.js-anim .is-in .l-ui__sign path { animation: l-draw 1.9s cubic-bezier(.45, .05, .25, 1) calc(var(--d, 0ms) + 900ms) backwards; }
#lgv-site.js-anim .is-in .l-ui--cmr .l-ui__field b { animation: l-fade .5s ease calc(var(--d, 0ms) + 600ms + var(--k, 0) * 250ms) backwards; }
#lgv-site.js-anim .is-in .l-ui__ok { animation: l-chip .7s var(--back) calc(var(--d, 0ms) + 2.7s) backwards; }
#lgv-site .l-ui--cmr .l-ui__field + .l-ui__field { --k: 1; }

/* Tableau de bord (maquette) */
#lgv-site .l-ui--dash { display: grid; grid-template-columns: 22% minmax(0, 1fr); font-size: calc(10 * var(--u)); }
#lgv-site .l-ui__side { display: grid; align-content: start; gap: calc(5 * var(--u)); padding: calc(14 * var(--u)) calc(10 * var(--u)); border-right: 1px solid var(--ui-line); background: var(--ui-card); }
#lgv-site .l-ui__side i { display: block; height: calc(7 * var(--u)); border-radius: calc(4 * var(--u)); background: #e6e5e1; font-style: normal; }
#lgv-site .l-ui__side i.is-on { background: #cfeef3; }
#lgv-site .l-ui__side i:first-child { width: 60%; height: calc(10 * var(--u)); margin-bottom: calc(8 * var(--u)); background: var(--ui-txt); }
#lgv-site .l-ui__main { display: grid; align-content: start; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)); }
#lgv-site .l-ui__head { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); }
#lgv-site .l-ui__head b { font-size: calc(12 * var(--u)); }
#lgv-site .l-ui__chips { display: flex; gap: calc(5 * var(--u)); }
#lgv-site .l-ui__chips i { padding: 2px calc(7 * var(--u)); border: 1px solid var(--ui-line); border-radius: 999px; background: var(--ui-card); font-style: normal; color: var(--ui-mut); white-space: nowrap; }
#lgv-site .l-ui__chips i.is-on { border-color: var(--ui-acc); color: var(--ui-acc); }
#lgv-site .l-ui__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
#lgv-site .l-ui__tile { display: grid; gap: calc(6 * var(--u)); padding: calc(9 * var(--u)); border: 1px solid var(--ui-line); border-radius: calc(8 * var(--u)); background: var(--ui-card); }
#lgv-site .l-ui__tile span { color: var(--ui-mut); line-height: 1.3; }
#lgv-site .l-ui__tile svg { width: 100%; height: calc(26 * var(--u)); }
#lgv-site .l-ui__tile path { fill: none; stroke: var(--ui-acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; --len: 100; }
#lgv-site .l-ui__card { padding: calc(10 * var(--u)) calc(10 * var(--u)) calc(8 * var(--u)); border: 1px solid var(--ui-line); border-radius: calc(8 * var(--u)); background: var(--ui-card); }
#lgv-site .l-ui__legend { display: flex; flex-wrap: wrap; gap: calc(4 * var(--u)) calc(10 * var(--u)); margin-bottom: calc(8 * var(--u)); color: var(--ui-mut); }
#lgv-site .l-ui__legend i { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); font-style: normal; }
#lgv-site .l-ui__legend i::before { content: ""; width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 2px; background: var(--c); }
#lgv-site .l-ui__bars { display: flex; align-items: flex-end; gap: 5%; height: calc(92 * var(--u)); padding: 0 2%; border-bottom: 1px solid var(--ui-line); }
#lgv-site .l-ui__bars span { display: flex; flex: 1; flex-direction: column-reverse; height: var(--h); transform-origin: 50% 100%; }
#lgv-site .l-ui__bars i { display: block; flex: var(--f); background: var(--c); }
#lgv-site .l-ui__bars i:last-child { border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; }
#lgv-site .l-ui__bars span:nth-child(2) { --k: 1; }
#lgv-site .l-ui__bars span:nth-child(3) { --k: 2; }
#lgv-site .l-ui__bars span:nth-child(4) { --k: 3; }
#lgv-site .l-ui__bars span:nth-child(5) { --k: 4; }
#lgv-site .l-ui__bars span:nth-child(6) { --k: 5; }
#lgv-site .l-ui__bars span:nth-child(7) { --k: 6; }
#lgv-site .l-ui__bars span:nth-child(8) { --k: 7; }
#lgv-site.js-anim .is-in .l-ui__bars span { animation: l-grow 1s var(--ease) calc(var(--d, 0ms) + 500ms + var(--k, 0) * 70ms) backwards; }
#lgv-site.js-anim .is-in .l-ui__tile path { animation: l-draw 1.4s var(--ease) calc(var(--d, 0ms) + 700ms) backwards; }

/* Offres anonymes (maquette) */
#lgv-site .l-ui--offers { display: grid; align-content: start; gap: calc(9 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(20 * var(--u)); font-size: calc(11 * var(--u)); }
#lgv-site .l-ui__title { font-size: calc(14 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
#lgv-site .l-ui__meta { color: var(--ui-mut); font-size: calc(10.5 * var(--u)); }
#lgv-site .l-ui__offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px calc(12 * var(--u));
  align-items: center;
  padding: calc(10 * var(--u)) calc(12 * var(--u));
  border: 1px solid var(--ui-line);
  border-radius: calc(9 * var(--u));
  background: var(--ui-card);
}
#lgv-site .l-ui__offer > b { grid-row: 1 / span 2; display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; background: #ecebe7; font-size: calc(12 * var(--u)); }
#lgv-site .l-ui__offer span { color: var(--ui-mut); }
#lgv-site .l-ui__offer strong { font-weight: 600; color: var(--ui-txt); font-size: calc(12 * var(--u)); }
#lgv-site .l-ui__offer em { grid-row: 1 / span 2; grid-column: 3; padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: calc(7 * var(--u)); background: var(--ui-txt); color: #fff; font-style: normal; font-weight: 600; font-size: calc(10.5 * var(--u)); }
#lgv-site .l-ui__offer.is-best { border-color: var(--ui-ok-line); background: var(--ui-ok-bg); }
#lgv-site .l-ui__offer.is-best > b { background: var(--ui-ok); color: #fff; }
#lgv-site .l-ui__offer.is-wait { border-style: dashed; background: transparent; }
#lgv-site .l-ui__offer.is-wait em { background: transparent; border: 1px solid var(--ui-line); color: var(--ui-mut); }
#lgv-site .l-ui__offer:nth-of-type(2) { --k: 1; }
#lgv-site .l-ui__offer:nth-of-type(3) { --k: 2; }
#lgv-site.js-anim .is-in .l-ui__offer { animation: l-up .8s var(--ease) calc(var(--d, 0ms) + 600ms + var(--k, 0) * 220ms) backwards; }

/* Bon de livraison signé (maquette) */
#lgv-site .l-ui--doc { display: grid; align-content: start; gap: calc(12 * var(--u)); padding: calc(20 * var(--u)) calc(22 * var(--u)) calc(22 * var(--u)); background: #fff; font-size: calc(10.5 * var(--u)); }
#lgv-site .l-ui__dochead { display: flex; align-items: baseline; justify-content: space-between; gap: calc(10 * var(--u)); padding-bottom: calc(10 * var(--u)); border-bottom: 2px solid var(--ui-txt); }
#lgv-site .l-ui__dochead b { font-size: calc(14 * var(--u)); letter-spacing: -.01em; }
#lgv-site .l-ui__dochead span { color: var(--ui-mut); }
#lgv-site .l-ui__docgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--u)); }
#lgv-site .l-ui__docgrid div { display: grid; gap: 1px; }
#lgv-site .l-ui__docgrid span,
#lgv-site .l-ui__signs span { font-size: calc(9 * var(--u)); text-transform: uppercase; letter-spacing: .06em; color: var(--ui-mut); }
#lgv-site .l-ui__table { width: 100%; border-collapse: collapse; }
#lgv-site .l-ui__table th { padding: calc(5 * var(--u)) calc(6 * var(--u)); border-bottom: 1px solid var(--ui-line); font-size: calc(9 * var(--u)); font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .05em; color: var(--ui-mut); }
#lgv-site .l-ui__table td { padding: calc(6 * var(--u)); border-bottom: 1px solid var(--ui-line); }
#lgv-site .l-ui__table :is(th, td):not(:first-child) { text-align: right; width: 18%; }
#lgv-site .l-ui__signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
#lgv-site .l-ui__signs div { padding: calc(6 * var(--u)) calc(8 * var(--u)) 2px; border: 1px solid var(--ui-line); border-radius: calc(6 * var(--u)); }
#lgv-site .l-ui__signs svg { width: 100%; height: calc(34 * var(--u)); }
#lgv-site .l-ui__signs path { fill: none; stroke: #20345c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; --len: 300; }
#lgv-site .l-ui__signs div:nth-child(2) { --k: 1; }
#lgv-site .l-ui__signs div:nth-child(3) { --k: 2; }
#lgv-site.js-anim .is-in .l-ui__signs path { animation: l-draw 1.2s cubic-bezier(.45, .05, .25, 1) calc(var(--d, 0ms) + 600ms + var(--k, 0) * 700ms) backwards; }

/* Détail d'une prévision (maquette) */
#lgv-site .l-ui--list { display: grid; align-content: start; gap: calc(10 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)); font-size: calc(11 * var(--u)); }
#lgv-site .l-ui__lines { display: grid; gap: calc(6 * var(--u)); }
#lgv-site .l-ui__lines li { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); border: 1px solid var(--ui-line); border-radius: calc(8 * var(--u)); background: var(--ui-card); }
#lgv-site .l-ui__lines em { flex: none; padding: 2px calc(8 * var(--u)); border-radius: 999px; font-style: normal; font-size: calc(10 * var(--u)); font-weight: 600; }
#lgv-site .l-ui__lines em.is-ok   { background: var(--ui-ok-bg); color: var(--ui-ok); }
#lgv-site .l-ui__lines em.is-wait { background: #fdf1dd; color: #9a5b00; }
#lgv-site .l-ui__lines em.is-next { background: #e3f3f6; color: #08707f; }
#lgv-site .l-ui__lines em.is-off  { background: #eeeeec; color: var(--ui-mut); }
#lgv-site .l-ui__lines li:nth-child(2) { --k: 1; }
#lgv-site .l-ui__lines li:nth-child(3) { --k: 2; }
#lgv-site .l-ui__lines li:nth-child(4) { --k: 3; }
#lgv-site .l-ui__lines li:nth-child(5) { --k: 4; }
#lgv-site .l-ui__foot { display: flex; align-items: center; gap: calc(7 * var(--u)); color: var(--ui-mut); font-size: calc(10.5 * var(--u)); }
#lgv-site .l-ui__foot::before { content: "✓"; display: grid; place-items: center; width: calc(15 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%; background: var(--ui-ok); color: #fff; font-size: calc(9 * var(--u)); }
#lgv-site.js-anim .is-in .l-ui__lines li { animation: l-left .8s var(--ease) calc(var(--d, 0ms) + 500ms + var(--k, 0) * 140ms) backwards; }

/* Baromètre : courbes et simulateur (maquettes) */
#lgv-site .l-ui--chart,
#lgv-site .l-ui--sim { display: grid; align-content: start; gap: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)); border-radius: 10px; }
#lgv-site .l-ui__form { display: grid; gap: calc(7 * var(--u)); }
#lgv-site .l-ui__form .l-ui__row b { font-weight: 600; color: var(--ui-txt); }
#lgv-site .l-ui__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(6 * var(--u)) calc(12 * var(--u));
  align-items: baseline;
  padding: calc(12 * var(--u)) calc(14 * var(--u));
  border: 1px solid var(--ui-ok-line);
  border-radius: calc(9 * var(--u));
  background: var(--ui-ok-bg);
}
#lgv-site .l-ui__result span { color: var(--ui-mut); }
#lgv-site .l-ui__result strong { font-size: calc(17 * var(--u)); font-weight: 600; color: var(--ui-ok); }
#lgv-site .l-ui .l-blur { filter: blur(calc(4 * var(--u))); }
#lgv-site .l-ui--sim .l-ui__btn { background: #45820f; }
#lgv-site.js-anim .is-in .l-ui__result { animation: l-up .9s var(--ease) calc(var(--d, 0ms) + 700ms) backwards; }

/* Rayon de diffusion : les partenaires proches reçoivent la demande */
#lgv-site .l-radar { display: block; width: 100%; height: auto; overflow: visible; }
#lgv-site .l-radar .l-radar__zone { fill: rgba(0, 181, 211, .07); stroke: rgba(0, 181, 211, .55); stroke-width: 1.5; stroke-dasharray: 5 6; transform-origin: 200px 150px; }
#lgv-site .l-radar .l-radar__grid { fill: none; stroke: rgba(255, 255, 255, .07); }
#lgv-site .l-radar .l-radar__in { fill: var(--accent-2); }
#lgv-site .l-radar .l-radar__out { fill: #4a494d; }
#lgv-site .l-radar .l-radar__client { fill: #fff; }
#lgv-site .l-radar .l-radar__pulse { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; transform-origin: 200px 150px; transform-box: view-box; }
#lgv-site .l-radar text { fill: var(--muted); font-family: Inter, sans-serif; font-size: 11px; }
#lgv-site .l-radar .l-radar__lbl { fill: var(--txt); font-weight: 600; }
#lgv-site .l-radar line { stroke: rgba(86, 226, 247, .5); stroke-width: 1; stroke-dasharray: 3 4; }
#lgv-site .l-radar .l-radar__dot { transform-box: fill-box; transform-origin: center; }
#lgv-site.js-anim .is-in .l-radar .l-radar__zone { animation: l-ring 1.4s var(--ease) calc(var(--d, 0ms) + 300ms) backwards; }
#lgv-site.js-anim .is-in .l-radar .l-radar__dot { animation: l-pop .8s var(--back) calc(var(--d, 0ms) + 900ms + var(--k, 0) * 120ms) backwards; }
#lgv-site.js-anim .is-in .l-radar line { animation: l-fade .6s ease calc(var(--d, 0ms) + 1.3s + var(--k, 0) * 120ms) backwards; }
/* Deux ondes au plus (moins de 5 s de mouvement), à l'arrivée à l'écran. */
#lgv-site.js-anim .is-in .l-radar .l-radar__pulse { animation: l-ping 2.4s ease-out calc(var(--d, 0ms) + 1.6s) 2; }

/* Courbes du baromètre (illustration) : valeurs floutées, verrou */
#lgv-site .l-chart { position: relative; }
#lgv-site .l-chart svg { display: block; width: 100%; height: auto; }
#lgv-site .l-chart .l-chart__grid { stroke: var(--ui-line); stroke-width: 1; }
#lgv-site .l-chart .l-chart__a,
#lgv-site .l-chart .l-chart__b { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; --len: 900; }
#lgv-site .l-chart .l-chart__a { stroke: #4f8f12; }
#lgv-site .l-chart .l-chart__b { stroke: #1c6fd6; }
#lgv-site .l-chart text { fill: var(--ui-mut); font-family: Inter, sans-serif; font-size: 11px; }
#lgv-site .l-chart .l-chart__val { filter: blur(3.5px); }
#lgv-site .l-chart__lock {
  position: absolute;
  right: 6%; bottom: 12%;
  display: grid;
  gap: calc(7 * var(--u));
  width: min(62%, calc(250 * var(--u)));
  padding: calc(12 * var(--u)) calc(13 * var(--u));
  border: 1px solid var(--ui-line);
  border-radius: calc(10 * var(--u));
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 calc(14 * var(--u)) calc(30 * var(--u)) -12px rgba(0, 0, 0, .35);
  font-size: calc(11 * var(--u));
}
#lgv-site .l-chart__lock b { font-size: calc(12 * var(--u)); }
#lgv-site .l-chart__lock i { display: block; padding: calc(6 * var(--u)) calc(9 * var(--u)); border: 1px solid var(--ui-line); border-radius: calc(7 * var(--u)); font-style: normal; color: var(--ui-mut); }
#lgv-site .l-chart__lock em { display: block; padding: calc(6 * var(--u)) calc(9 * var(--u)); border-radius: calc(7 * var(--u)); background: #45820f; color: #fff; font-style: normal; font-weight: 600; text-align: center; }
#lgv-site.js-anim .is-in .l-chart .l-chart__a { animation: l-draw 2s var(--ease) calc(var(--d, 0ms) + 400ms) backwards; }
#lgv-site.js-anim .is-in .l-chart .l-chart__b { animation: l-draw 2s var(--ease) calc(var(--d, 0ms) + 650ms) backwards; }
#lgv-site.js-anim .is-in .l-chart__lock { animation: l-up .9s var(--ease) calc(var(--d, 0ms) + 1.6s) backwards; }

/* Visuels « maquette » dans les cartes de cas */
#lgv-site .l-case__visual .l-browser .l-ui { aspect-ratio: 16 / 10; height: auto; }
#lgv-site .l-case__visual .l-sheet { width: 88%; margin: 0 auto; transform: rotate(-1.5deg) translate3d(0, 4%, 0); transition: transform .9s var(--ease); }
#lgv-site .l-case:hover .l-case__visual .l-sheet { transform: rotate(-.5deg) translate3d(0, 1%, 0); }
#lgv-site .l-case__visual--phone { display: flex; justify-content: center; }
#lgv-site .l-case__visual--phone .l-phone { width: min(48%, 230px); margin-bottom: -18%; transition: transform .9s var(--ease); }
#lgv-site .l-case:hover .l-case__visual--phone .l-phone { transform: translate3d(0, -8px, 0); }
#lgv-site.js-anim .l-case.l-rv.is-in .l-case__visual :is(.l-sheet, .l-phone) { animation: l-up 1.2s var(--ease) calc(var(--d, 0ms) + 200ms) backwards; }

/* Deux visuels empilés dans une rangée (cadre + panneau) */
#lgv-site .l-stack { display: grid; gap: 18px; }

@media (max-width: 980px) {
  #lgv-site .l-proofs { grid-template-columns: minmax(0, 1fr); }
  #lgv-site .l-mods li { grid-template-columns: minmax(0, 1fr); }
  #lgv-site .l-mods__tag { justify-self: start; }
}

@media (max-width: 620px) {
  #lgv-site .l-proofs a { padding: 20px 48px 20px 18px; }
  #lgv-site .l-example { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  #lgv-site .l-radar__pulse { display: none; }
}

/* Lien au fil d'un texte : souligné, pas seulement coloré (WCAG 1.4.1). */
#lgv-site .l-lien { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .3s; }
#lgv-site .l-lien:hover { text-decoration-thickness: 2px; }

/* Page courante : signalée aussi dans le menu mobile et le pied de page. */
#lgv-site .l-drawer a[aria-current] { color: var(--accent-2); }
#lgv-site .l-footer a[aria-current] { color: var(--txt); }

/* Maquettes des en-têtes d'étude de cas : elles s'animent avec l'entrée de
   l'en-tête (le grand visuel arrive à 1,35 s), sans attendre le défilement. */
#lgv-site .l-casehero .l-ui__sign path { animation: l-draw 1.9s cubic-bezier(.45, .05, .25, 1) 2.3s backwards; }
#lgv-site .l-casehero .l-ui--cmr .l-ui__field b { animation: l-fade .5s ease calc(2s + var(--k, 0) * 250ms) backwards; }
#lgv-site .l-casehero .l-ui__ok { animation: l-chip .7s var(--back) 4.1s backwards; }
#lgv-site .l-casehero .l-ui__bars span { animation: l-grow 1s var(--ease) calc(1.8s + var(--k, 0) * 70ms) backwards; }
#lgv-site .l-casehero .l-ui__tile path { animation: l-draw 1.4s var(--ease) 2s backwards; }
#lgv-site .l-casehero .l-chart .l-chart__a { animation: l-draw 2s var(--ease) 1.8s backwards; }
#lgv-site .l-casehero .l-chart .l-chart__b { animation: l-draw 2s var(--ease) 2.05s backwards; }
#lgv-site .l-casehero .l-chart__lock { animation: l-up .9s var(--ease) 3s backwards; }

/* Commande des vidéos d'écran (posée par le script) : pause et reprise. */
#lgv-site .l-phone__screen { position: relative; }
#lgv-site .l-vidctl {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(11, 11, 12, .72);
  color: #fff;
  opacity: .78;
  transition: opacity .3s, background .3s;
}
#lgv-site .l-vidctl:hover, #lgv-site .l-vidctl:focus-visible { opacity: 1; background: rgba(0, 181, 211, .9); }
#lgv-site .l-vidctl svg { width: 14px; height: 14px; }
/* Dans un navigateur, sous la barre d'adresse : le bas peut être recouvert
   par le téléphone d'une scène. Sur un téléphone, en haut à droite : le bas
   de l'écran porte la barre d'onglets de l'application filmée. */
#lgv-site .l-browser .l-vidctl { top: 44px; right: 10px; bottom: auto; }
#lgv-site .l-phone .l-vidctl { top: 14px; right: 14px; bottom: auto; width: 32px; height: 32px; }

/* ------------------------- 23 quater. Fonds clairs, bleu pétrole, visibilité

   Le site n'est pas noir d'un bout à l'autre : des sections passent sur un
   fond clair (.l-section--light) ou bleu pétrole (.l-section--deep). Les
   composants sont écrits avec les variables de couleur, il suffit donc de
   les redéfinir sur la section ; seules les couleurs écrites en dur sont
   reprises ici. Sur fond clair, l'accent de texte devient un pétrole foncé
   (5,3:1) : le cyan clair y serait illisible. */

#lgv-site .l-section--light {
  --bg:        #f3f5f6;
  --bg-2:      #f3f5f6;
  --surface:   #ffffff;
  --surface-2: #e8edf0;
  --line:      rgba(13, 20, 24, .12);
  --line-2:    rgba(13, 20, 24, .24);
  --txt:       #0d1418;
  --muted:     #47525c;
  --dim:       #5b6670;
  --accent-2:  #006f82;
  --accent-sf: rgba(0, 181, 211, .10);
  position: relative;
  color: var(--txt);
  background:
    radial-gradient(56% 46% at 100% 0%, rgba(0, 181, 211, .08), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(0, 181, 211, .05), transparent 70%),
    var(--bg);
}
#lgv-site .l-section--light + .l-section--light { border-top: 1px solid var(--line); }
#lgv-site .l-section--light strong { color: var(--txt); }
#lgv-site .l-section--light .l-step b { color: rgba(13, 20, 24, .5); }   /* 3,9:1, grand corps */
#lgv-site .l-section--light .l-step.is-on b,
#lgv-site .l-section--light .l-step:hover b { color: var(--accent-2); }
#lgv-site .l-section--light .l-example svg { color: var(--accent-2); }
#lgv-site .l-section--light .l-example:hover { border-color: rgba(0, 111, 130, .45); }
#lgv-site .l-section--light .l-btn--solid { box-shadow: 0 10px 26px -14px rgba(0, 111, 130, .55); }
#lgv-site .l-section--light .l-card:hover,
#lgv-site .l-section--light .l-step:hover,
#lgv-site .l-section--light .l-next a:hover { background: var(--surface); }

/* Bleu pétrole : une section sombre, mais d'une autre couleur que le reste. */
#lgv-site .l-section--deep {
  --bg:        #0b171c;
  --bg-2:      #0b171c;
  --surface:   #10222a;
  --surface-2: #153039;
  --line:      rgba(160, 222, 236, .14);
  --line-2:    rgba(160, 222, 236, .26);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46% 70% at 84% 34%, rgba(0, 181, 211, .24), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(0, 181, 211, .10), transparent 70%),
    linear-gradient(180deg, #0a1419, #0c1b21);
}

/* Familles de prestations (accueil). */
#lgv-site .l-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
#lgv-site .l-grid + .l-group { margin-top: clamp(40px, 5vw, 60px); }
#lgv-site .l-group b {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--txt);
}
#lgv-site .l-group b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-sf); }
#lgv-site .l-group span { font-size: .875rem; color: var(--muted); }

/* Sommaire des prestations (page Services). */
#lgv-site .l-toc {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 20px 40px;
  max-width: 900px;
  margin-top: 34px;
  animation: l-up 1s var(--ease) 1.2s backwards;
}
#lgv-site .l-toc p { margin-bottom: 11px; font-size: .71875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
#lgv-site .l-toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
#lgv-site .l-toc a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font-size: .84375rem;
  color: var(--muted);
  transition: color .25s, border-color .25s, transform .45s var(--back);
}
#lgv-site .l-toc a:hover { color: var(--txt); border-color: var(--accent); transform: translateY(-2px); }
#lgv-site .l-toc i {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-sf);
  font-style: normal;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

/* Visibilité locale (accueil) : texte et maquette d'une fiche d'établissement. */
#lgv-site .l-geo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
#lgv-site .l-geo__steps { margin-top: 30px; border-top: 1px solid var(--line); counter-reset: lgv-geo; }
#lgv-site .l-geo__steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 3px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: lgv-geo;
}
#lgv-site .l-geo__steps li::before {
  content: counter(lgv-geo, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: var(--accent-2);
}
#lgv-site .l-geo__steps b { font-size: 1.02rem; font-weight: 600; color: var(--txt); }
#lgv-site .l-geo__steps span { font-size: .9rem; color: var(--muted); line-height: 1.6; }
#lgv-site .l-geo__more { margin-top: 26px; }
#lgv-site .l-geo__visual .l-caption { max-width: 460px; margin: 18px auto 0; text-align: center; }

#lgv-site .l-local {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  color: #1b2328;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 90px -40px rgba(0, 0, 0, .95);
}
#lgv-site .l-local__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #e1e6e9;
  border-radius: 999px;
  color: #3b464e;
  box-shadow: 0 2px 6px rgba(13, 20, 24, .06);
}
#lgv-site .l-local__bar svg { width: 17px; height: 17px; flex: none; color: #6a757d; }
#lgv-site .l-local__map {
  position: relative;
  margin-top: 10px;
  aspect-ratio: 400 / 190;
  border-radius: 14px;
  overflow: hidden;
}
#lgv-site .l-local__map svg { width: 100%; height: 100%; }
#lgv-site .l-local__pin {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 18px; height: 18px;
  margin: -18px 0 0 -9px;
  border-radius: 50% 50% 50% 0;
  background: #8e99a1;
  transform: rotate(-45deg);
  box-shadow: 0 3px 6px rgba(13, 20, 24, .25);
}
#lgv-site .l-local__pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
#lgv-site .l-local__pin.is-you { width: 26px; height: 26px; margin: -26px 0 0 -13px; background: #00a3be; z-index: 1; }
#lgv-site .l-local__pin.is-you::after { inset: 8px; }
#lgv-site .l-local__card { padding: 14px 8px 6px; }
#lgv-site .l-local__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#lgv-site .l-local__head b { font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #0d1418; }
#lgv-site .l-local__head em { padding: 3px 10px; border-radius: 999px; background: #e3f4e6; color: #1d6b2f; font-style: normal; font-size: 12px; font-weight: 600; }
#lgv-site .l-local__rate { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
#lgv-site .l-local__rate b { font-weight: 600; color: #0d1418; }
#lgv-site .l-local__rate i { font-style: normal; color: #5b6670; font-size: 13px; }
#lgv-site .l-local__stars { width: 88px; height: 16px; fill: #f4b400; }
#lgv-site .l-local__card p { margin-top: 3px; color: #5b6670; font-size: 13px; }
#lgv-site .l-local__acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
#lgv-site .l-local__acts span {
  padding: 7px 13px;
  border: 1px solid #d4dde2;
  border-radius: 999px;
  color: #006f82;
  font-size: 13px;
  font-weight: 600;
}
#lgv-site .l-local__acts span.is-on { background: #006f82; border-color: #006f82; color: #fff; }
#lgv-site .l-local__toast {
  position: absolute;
  right: -30px;
  top: 118px;
  z-index: 3;
  display: grid;
  gap: 1px;
  padding: 12px 16px 12px 46px;
  border-radius: 14px;
  background: #0d1418;
  color: #f1f4f6;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
}
#lgv-site .l-local__toast::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(143, 211, 36, .2);
}
#lgv-site .l-local__toast b { font-size: 13.5px; font-weight: 600; }
#lgv-site .l-local__toast span { font-size: 12px; color: #a3aab2; }

/* Entrée en scène : les repères tombent sur la carte, le vôtre en dernier,
   la fiche monte, les étoiles se remplissent, puis la demande arrive. */
@keyframes l-pin   { from { opacity: 0; transform: translate3d(0, -26px, 0) rotate(-45deg); } }
@keyframes l-stars { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
#lgv-site.js-anim .l-geo__visual.l-rv { opacity: 1; animation: none; }
#lgv-site.js-anim .l-geo__visual.l-rv:not(.is-in) :is(.l-local, .l-caption) { opacity: 0; }
#lgv-site.js-anim .l-geo__visual.l-rv.is-in .l-local { animation: l-up 1.1s var(--ease) var(--d, 0ms) backwards; }
#lgv-site.js-anim .l-geo__visual.l-rv.is-in .l-caption { animation: l-fade 1s ease calc(var(--d, 0ms) + 1.4s) backwards; }
#lgv-site.js-anim .l-geo__visual.l-rv.is-in .l-local__pin { animation: l-pin .7s var(--back) calc(var(--d, 0ms) + 450ms + var(--k, 0) * 140ms) backwards; }
#lgv-site.js-anim .l-geo__visual.l-rv.is-in .l-local__card { animation: l-up .9s var(--ease) calc(var(--d, 0ms) + 900ms) backwards; }
#lgv-site.js-anim .l-geo__visual.l-rv.is-in .l-local__stars { animation: l-stars .9s var(--inout) calc(var(--d, 0ms) + 1.25s) backwards; }
#lgv-site.js-anim .l-geo__visual.l-rv.is-in .l-local__toast { animation: l-chip .8s var(--back) calc(var(--d, 0ms) + 1.9s) backwards; }
#lgv-site.js-anim .l-geo__text.l-rv.is-in .l-geo__steps li { animation: l-up 1s var(--ease) calc(var(--d, 0ms) + 380ms + var(--k, 0) * 110ms) backwards; }
#lgv-site .l-geo__steps li:nth-child(2) { --k: 1; }
#lgv-site .l-geo__steps li:nth-child(3) { --k: 2; }

@media (max-width: 980px) {
  #lgv-site .l-geo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  #lgv-site .l-toc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  #lgv-site .l-local__toast { right: 8px; top: -24px; }
}

/* ----------------------------------------------------------- 24. Responsive */

@media (max-width: 1040px) {
  #lgv-site .l-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  /* minmax(0, …) : sans ça, un titre un peu long élargit la colonne et fait
     déborder toute la page horizontalement. */
  #lgv-site .l-hero__in { grid-template-columns: minmax(0, 1fr); }
  #lgv-site .l-portrait { justify-self: start; width: min(74%, 300px); margin-top: 8px; }
  #lgv-site .l-badge { left: auto; right: -50px; bottom: 84px; width: 104px; height: 104px; }
  #lgv-site .l-badge__arrow { width: 20px; height: 20px; }
  #lgv-site .l-figures { grid-template-columns: repeat(2, 1fr); }
  #lgv-site .l-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  #lgv-site .l-links { display: none; }
  #lgv-site .l-burger { display: flex; }
  #lgv-site .l-drawer { display: flex; }
  #lgv-site .l-nav__cta .l-btn { display: none; }
}

/* Téléphone à l'horizontale : le menu mobile se resserre, « Contact » reste
   à portée (au besoin, le menu défile en lui-même). */
@media (max-height: 500px) {
  #lgv-site .l-drawer { justify-content: flex-start; gap: 18px; padding-top: 76px; padding-bottom: 14px; }
  #lgv-site .l-drawer__links a { padding: 8px 0; font-size: 1.25rem; }
}

@media (max-width: 620px) {
  #lgv-site { font-size: .9625rem; }
  #lgv-site .l-brand span { display: none; }
  #lgv-site .l-footer__top { grid-template-columns: 1fr; gap: 28px; }
  #lgv-site .l-infos div { flex-direction: column; gap: 2px; }
  #lgv-site .l-infos dd { text-align: left; }
  #lgv-site .l-form__row { grid-template-columns: 1fr; }
  #lgv-site .l-figures { grid-template-columns: 1fr; }
  /* Le texte courant ne descend pas sous 15 px. */
  #lgv-site .l-card p,
  #lgv-site .l-work p,
  #lgv-site .l-case p,
  #lgv-site .l-step p,
  #lgv-site .l-ref b,
  #lgv-site .l-ref p,
  #lgv-site .l-next p,
  #lgv-site .l-outcome p,
  #lgv-site .l-item p,
  #lgv-site .l-faq details > div,
  #lgv-site .l-ticks li,
  #lgv-site .l-fig span,
  #lgv-site .l-infos div,
  #lgv-site .l-caption,
  #lgv-site .l-footer__top p,
  #lgv-site .l-footer li,
  #lgv-site .l-form__note,
  #lgv-site .l-form__note.is-ok,
  #lgv-site .l-form__note.is-err { font-size: .9375rem; }
  /* 16 px dans les champs : Safari sur iPhone n'agrandit plus la page au focus. */
  #lgv-site .l-field input,
  #lgv-site .l-field textarea,
  #lgv-site .l-field select { font-size: 1rem; }
}

/* ------------------------------------------ 25. Accessibilité / impression */

@media (prefers-reduced-motion: reduce) {
  #lgv-site *, #lgv-site *::before, #lgv-site *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  #lgv-site .l-veil, #lgv-site .l-progress { display: none !important; }
}

/* Contraste élevé (Windows) : les fonds sont remplacés par la couleur du
   système, les traits dessinés en fond disparaîtraient. */
@media (forced-colors: active) {
  #lgv-site .l-burger span,
  #lgv-site .l-faq summary i::before,
  #lgv-site .l-faq summary i::after { forced-color-adjust: none; background: CanvasText; }
  /* Menu déroulant : la flèche du système plutôt que l'image en fond. */
  #lgv-site .l-field select { appearance: auto; background-image: none; padding-right: 15px; }
  /* Grain, pastille et vitrage n'ont plus de sens avec les couleurs du système. */
  #lgv-site::after, #lgv-site .l-links__ind, #lgv-site .l-nav::before { display: none; }
  #lgv-site .l-links a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
}

@media print {
  #lgv-site { background: #fff; color: #000; }
  #lgv-site::after, #lgv-site .l-header,
  #lgv-site .l-veil, #lgv-site .l-progress, #lgv-site .l-hero__glow,
  #lgv-site .l-hero__grid, #lgv-site .l-marquee, #lgv-site .l-badge,
  #lgv-site .l-mega, #lgv-site .l-skip, #lgv-site .l-drawer { display: none !important; }
  #lgv-site *, #lgv-site *::before, #lgv-site *::after { animation: none !important; transition: none !important; }
  #lgv-site .l-rv, #lgv-site .l-rv * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  #lgv-site .l-qw { opacity: 1 !important; }
}
