/* ===========================================================
   CyNoLux — Signature + pages allégées
   Chargé en DERNIER, par index, about, services, packs, contact.

   ⚠️ POURQUOI un fichier de plus plutôt qu'une couche sur refonte.css :
   même règle que home.css — des classes à préfixe propre (sg- = signature
   partagée, lp- = pages allégées), aucune règle héritée des anciens blocs
   ne s'applique. En-tête, pied de page et jetons (clair / sombre) restent
   ceux du site.

   Règle de composition (reprise de l'accueil) : un seul point focal par
   écran, une seule couleur d'accent (l'or), des cadres à filet fin.
   Ce qui est NOUVEAU : un point focal qui BOUGE (l'œil le suit), et des
   choix à faire (onglets, interrupteurs) à la place de murs de texte.

   Mouvement : tout ce qui tourne ou défile est coupé par
   `prefers-reduced-motion` ; la mise en page ne dépend d'aucune animation.
   =========================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------
   sg-progress — filet de lecture dans l'en-tête (or)

   ⚠️ POURQUOI un anneau découpé et pas une ligne : l'en-tête est une
   pilule (border-radius: pill). Une ligne droite posée en bas dépassait
   des coins arrondis. On dessine donc le CONTOUR de la pilule (anneau de
   2 px obtenu par masque), on n'en garde que la moitié basse, et la
   progression le révèle de gauche à droite : le trait épouse la courbure
   aux deux extrémités. `inset: -1px` le cale sur la bordure de l'en-tête.
   ---------------------------------------------------------- */
.sg-progress {
  position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  border-radius: var(--r-pill); padding: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  clip-path: inset(50% calc((1 - var(--sp, 0)) * 100%) 0 0);
}

/* ----------------------------------------------------------
   sg-orbit — la signature graphique : trois anneaux, trois satellites.
   Pur CSS (3 <i>), animé par `transform` seul : coût négligeable.
   Se pose en absolu derrière un bloc ; la taille vient du parent.
   ---------------------------------------------------------- */
.sg-orbit { position: absolute; z-index: -1; aspect-ratio: 1; pointer-events: none; }
.sg-orbit i {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13);
  animation: sg-spin var(--t, 80s) linear infinite;
}
.sg-orbit i:nth-child(1) { width: 100%; height: 100%; --t: 110s; }
.sg-orbit i:nth-child(2) { width: 74%; height: 74%; --t: 70s; animation-direction: reverse; border-color: rgba(253, 185, 19, .26); }
.sg-orbit i:nth-child(3) { width: 48%; height: 48%; --t: 44s; border-style: dashed; border-color: rgba(255, 255, 255, .18); }
.sg-orbit i::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 14px 3px rgba(253, 185, 19, .55);
}
.sg-orbit i:nth-child(1)::after { width: 6px; height: 6px; margin-left: -3px; top: -3px; background: #fff; box-shadow: 0 0 12px 2px rgba(255, 255, 255, .6); }
.sg-orbit i:nth-child(3)::after { width: 5px; height: 5px; margin-left: -2.5px; top: -2.5px; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sg-orbit i { animation: none; } }
/* Appareils modestes / hors écran : la dérive s'arrête (cf. focus.js). */
.is-paused .sg-orbit i { animation-play-state: paused; }


/* ----------------------------------------------------------
   cn-mark — le filigrane « logo »
   La FORME EXACTE du logo CyNoLux, dessinée en traits fins : chaque calque réel
   (cn-c.webp, cn-n.webp, cn-ribbon.webp — déjà dans /assets/img, ce sont les
   fichiers de l'écran d'accueil animé) sert de masque, croisé avec un réseau
   d'arcs. Le C et le ruban gardent l'or du logo ; le N, marine, est éclairci
   (un N marine disparaîtrait sur le fond Nuit). Dessous : le logo lui-même, très
   pâle. Un reflet le traverse lentement. Aucun fichier de plus.
   Se pose en absolu derrière un bloc ; la largeur vient du parent.
   ---------------------------------------------------------- */
.cn-mark {
  position: absolute; z-index: -1; aspect-ratio: 1099 / 1002; pointer-events: none;
  animation: cn-draw 1.9s .15s var(--ease) both;
  --cn-stripes: repeating-radial-gradient(ellipse 90% 70% at 50% 130%, #000 0 1.6px, transparent 1.6px 8px);
}
.cn-mark > span { position: absolute; inset: 0; }
.cn-mark__base {
  background: url(../img/cn-c.webp) center / contain no-repeat, url(../img/cn-n.webp) center / contain no-repeat, url(../img/cn-ribbon.webp) center / contain no-repeat;
  opacity: .13;
}
.cn-mark__c, .cn-mark__n, .cn-mark__r {
  opacity: .85;
  -webkit-mask-size: contain, auto; mask-size: contain, auto;
  -webkit-mask-repeat: no-repeat, repeat; mask-repeat: no-repeat, repeat;
  -webkit-mask-position: center, 0 0; mask-position: center, 0 0;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: cn-sweep 9s ease-in-out 1.6s infinite;
}
.cn-mark__c {
  background: linear-gradient(104deg, transparent 40%, #fff 50%, transparent 60%) 130% 0 / 260% 100% no-repeat, linear-gradient(180deg, #FFDA6B, #FDB913 50%, #E5A20D);
  -webkit-mask-image: url(../img/cn-c.webp), var(--cn-stripes); mask-image: url(../img/cn-c.webp), var(--cn-stripes);
}
.cn-mark__n {
  background: linear-gradient(104deg, transparent 40%, #fff 50%, transparent 60%) 130% 0 / 260% 100% no-repeat, linear-gradient(135deg, #DCE8FF, #8FB2FF 55%, #5B86F0);
  -webkit-mask-image: url(../img/cn-n.webp), var(--cn-stripes); mask-image: url(../img/cn-n.webp), var(--cn-stripes);
}
.cn-mark__r {
  background: linear-gradient(104deg, transparent 40%, #fff 50%, transparent 60%) 130% 0 / 260% 100% no-repeat, linear-gradient(90deg, #FFE9A8, #FDB913);
  -webkit-mask-image: url(../img/cn-ribbon.webp), var(--cn-stripes); mask-image: url(../img/cn-ribbon.webp), var(--cn-stripes);
  opacity: 1;
}
@keyframes cn-sweep { from { background-position: 130% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
@keyframes cn-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.is-paused .cn-mark__c, .is-paused .cn-mark__n, .is-paused .cn-mark__r { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cn-mark, .cn-mark__c, .cn-mark__n, .cn-mark__r { animation: none; } }
/* Appareil modeste et téléphone : le reflet repeint toute la silhouette à chaque image — on le fige. */
.cyn-lite .cn-mark__c, .cyn-lite .cn-mark__n, .cyn-lite .cn-mark__r { animation: none; }
@media (max-width: 700px) { .cn-mark__c, .cn-mark__n, .cn-mark__r { animation: none; } }

/* Dans l'en-tête des pages allégées */
.lp-hero .cn-mark { right: 3%; top: 54%; width: min(500px, 46vw); transform: translateY(calc(-50% + var(--sy, 0) * .14px)); }
@media (max-width: 700px) { .lp-hero .cn-mark { right: -34%; width: 112vw; opacity: .4; } }

/* ----------------------------------------------------------
   sg-rot — le mot qui change (titre du hero)
   ---------------------------------------------------------- */
.sg-rot {
  position: relative; display: inline-block; vertical-align: bottom;
  height: 1.14em; overflow: hidden;
  transition: width .6s var(--ease, cubic-bezier(.22, 1, .36, 1));
}
.sg-rot__w {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  color: var(--gold-400); opacity: 0; transform: translateY(110%);
}
.sg-rot__w.is-on, .sg-rot__w.is-out { transition: transform .7s var(--ease), opacity .45s var(--ease); }
.sg-rot__w.is-on { opacity: 1; transform: none; }
.sg-rot__w.is-out { opacity: 0; transform: translateY(-110%); }
/* Variante BLOC : le mot occupe sa propre ligne (titre du hero). Sa largeur n'importe
   pas, donc quand le mot change, RIEN ne bouge autour. */
.sg-rot--block { display: block; width: auto !important; height: 1.16em; margin-bottom: -.04em; }
.sg-rot--block .sg-rot__w { padding-top: .02em; }
/* Sans JS : le premier mot est dans le flux (cf. gabarit) ; le gabarit JS le remplace. */
.sg-rot:not(.is-live) { overflow: visible; height: auto; }
.sg-rot:not(.is-live) .sg-rot__w { position: static; opacity: 1; transform: none; }
.sg-rot:not(.is-live) .sg-rot__w:not(:first-child) { display: none; }
@media (prefers-reduced-motion: reduce) { .sg-rot__w.is-on, .sg-rot__w.is-out { transition: none; } .sg-rot { transition: none; } }

/* ----------------------------------------------------------
   sg-tabs — un choix à faire plutôt qu'un mur de cartes
   ---------------------------------------------------------- */
.sg-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 18px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.sg-tabs::-webkit-scrollbar { display: none; }
.sg-tab {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-solid);
  font-weight: 700; font-size: .92rem; color: var(--ink-muted); white-space: nowrap; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.sg-tab i { color: var(--navy-500); font-size: 1.02rem; transition: color .3s var(--ease); }
.sg-tab:hover { border-color: var(--gold-500); color: var(--ink); }
.sg-tab[aria-selected="true"] {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff;
  box-shadow: 0 12px 26px -14px rgba(7, 25, 56, .7);
}
.sg-tab[aria-selected="true"] i { color: var(--gold-400); }
[data-theme="dark"] .sg-tab i { color: var(--gold-400); }
[data-theme="dark"] .sg-tab[aria-selected="true"] { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
[data-theme="dark"] .sg-tab[aria-selected="true"] i { color: var(--navy-900); }
.sg-panel[hidden] { display: none; }

/* ----------------------------------------------------------
   sg-chip — une étiquette courte (mono)
   ---------------------------------------------------------- */
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-solid);
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600; letter-spacing: .02em; color: var(--ink);
}
.sg-chip--gold { border-color: var(--gold-500); }
.sg-chip i { color: var(--gold-600); }
.sg-chip--ghost { background: transparent; color: var(--ink-muted); font-weight: 500; }

/* ----------------------------------------------------------
   sg-flow — des étapes qui s'allument l'une après l'autre
   Le fil se remplit et chaque étape prend l'or à son tour, UNE fois,
   quand le bloc entre dans l'écran (focus.js pose .is-run).
   ---------------------------------------------------------- */
.sg-flow { list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 18px; counter-reset: sg; }
.sg-flow::before, .sg-flow::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; border-radius: 2px;
}
.sg-flow::before { background: var(--line); }
.sg-flow::after {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transform-origin: left; transform: scaleX(0);
  transition: transform calc(var(--n, 4) * .42s) var(--ease) .15s;
}
.sg-flow.is-run::after { transform: scaleX(1); }
.sg-step { position: relative; padding-top: 64px; }
.sg-step__dot {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem;
  background: var(--surface-solid); border: 1.5px solid var(--line); color: var(--navy-600);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
  transition-delay: calc(var(--i, 0) * .42s + .15s);
}
[data-theme="dark"] .sg-step__dot { color: var(--gold-400); }
.sg-flow.is-run .sg-step__dot {
  background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900);
  transform: scale(1.06); box-shadow: 0 0 0 7px rgba(253, 185, 19, .16);
}
.sg-step__n { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--ink-faint); }
.sg-step h3 { font-size: 1.12rem; margin: 4px 0 6px; }
.sg-step p { font-size: .93rem; line-height: 1.55; }
@media (max-width: 860px) {
  .sg-flow { grid-template-columns: 1fr; gap: 26px; }
  .sg-flow::before, .sg-flow::after { left: 24px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .sg-flow::after { transform-origin: top; transform: scaleY(0); }
  .sg-flow.is-run::after { transform: scaleY(1); }
  .sg-step { padding: 0 0 0 70px; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-flow::after { transition: none; transform: none; }
  .sg-step__dot { transition: none; background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: none; box-shadow: none; }
}

/* ----------------------------------------------------------
   sg-switch — interrupteur (modules Ysraa)
   ---------------------------------------------------------- */
.sg-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .18); transition: background .35s var(--ease); }
.sg-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .4s var(--ease);
}
[aria-pressed="true"] > .sg-switch { background: var(--gold-500); }
[aria-pressed="true"] > .sg-switch::after { transform: translateX(18px); background: var(--navy-900); }

/* ----------------------------------------------------------
   lp-hero — l'en-tête compact des pages allégées
   Plus de photo de bandeau : un fond Nuit, le titre, une phrase — et
   l'orbite. Le texte du bandeau d'origine tenait sur 5 lignes ; ici, 2.
   ---------------------------------------------------------- */
.lp-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: 168px 0 72px; background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 100%);
}
.lp-hero .sg-orbit { right: -9%; top: 50%; width: min(560px, 62vw); transform: translateY(-50%); opacity: .9; }
.lp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 85% 20%, rgba(62, 107, 219, .28), transparent 70%);
}
.lp-crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: rgba(233, 240, 255, .6); margin-bottom: 20px; }
.lp-crumbs a:hover { color: var(--gold-300); }
.lp-hero .eyebrow { color: var(--gold-300); }
.lp-hero h1 { color: #fff; max-width: 17ch; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.07; letter-spacing: -.02em; }
.lp-hero h1 em { font-style: normal; color: var(--gold-400); }
.lp-lead { margin-top: 18px; max-width: 520px; font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.65; color: rgba(233, 240, 255, .84); }
.lp-hero__row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .lp-hero .container > * { animation: lp-rise .8s var(--ease) both; }
  .lp-hero .container > :nth-child(2) { animation-delay: .06s; }
  .lp-hero .container > :nth-child(3) { animation-delay: .12s; }
  .lp-hero .container > :nth-child(4) { animation-delay: .18s; }
  .lp-hero .container > :nth-child(5) { animation-delay: .24s; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 700px) { .lp-hero { padding: 132px 0 52px; } .lp-hero .sg-orbit { right: -40%; opacity: .55; } }

/* Les chiffres du bandeau (À propos) */
.lp-figures { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 6vw, 72px); margin-top: 34px; }
.lp-figure strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.lp-figure .counter-suffix { color: var(--gold-400); }
.lp-figure > span { display: block; margin-top: 6px; font-size: .88rem; color: rgba(233, 240, 255, .72); }

/* ----------------------------------------------------------
   lp-sec — squelette des sections
   ---------------------------------------------------------- */
.lp-sec { padding: 88px 0; }
.lp-sec--soft { background: var(--bg-soft); }
.lp-sec--tight { padding: 56px 0; }
.lp-head { max-width: 680px; margin-bottom: 36px; }
.lp-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lp-head p { margin-top: 12px; font-size: 1.02rem; }
@media (max-width: 900px) { .lp-sec { padding: 60px 0; } .lp-head { margin-bottom: 26px; } }

/* ----------------------------------------------------------
   lp-svc — services : une expertise à la fois
   ---------------------------------------------------------- */
.lp-tabbar {
  position: sticky; top: calc(var(--header-h, 86px) - 6px); z-index: 20;
  padding: 12px 0 0; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.lp-tabbar .sg-tabs { margin-bottom: 0; }
.lp-svc { padding: 52px 0 40px; }

.lp-svc__card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: var(--surface-solid); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.lp-svc__num {
  position: absolute; right: 28px; top: 8px; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(5rem, 11vw, 9rem); line-height: 1; color: var(--navy-700); opacity: .06; pointer-events: none;
}
[data-theme="dark"] .lp-svc__num { color: #fff; opacity: .05; }
.lp-svc__icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.5rem;
  color: var(--navy-600); border: 1.5px solid var(--gold-500); border-radius: 16px; margin-bottom: 18px;
}
[data-theme="dark"] .lp-svc__icon { color: var(--gold-400); }
.lp-svc h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.lp-svc__promise { margin-top: 12px; font-size: 1.06rem; line-height: 1.65; max-width: 46ch; }
.lp-svc__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.lp-pillars { display: grid; gap: 10px; align-content: start; }
.lp-pillar {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--bg);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.lp-pillar:hover { transform: translateX(4px); border-color: var(--gold-500); }
.lp-pillar > i { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(253, 185, 19, .16); color: var(--gold-700); font-size: .95rem; }
[data-theme="dark"] .lp-pillar > i { color: var(--gold-400); }
.lp-pillar strong { font-family: var(--f-display); font-size: 1.02rem; color: var(--navy-800); }
[data-theme="dark"] .lp-pillar strong { color: #eaf1ff; }
.lp-pillar span { font-size: .9rem; color: var(--ink-muted); line-height: 1.45; }
.lp-svc__cta .btn-ghost { color: var(--navy-700); background: transparent; border: 1.5px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lp-svc__cta .btn-ghost:hover { border-color: var(--gold-500); }
[data-theme="dark"] .lp-svc__cta .btn-ghost { color: #eaf1ff; }
.lp-svc__tech { margin-top: 18px; }
.lp-svc__tech > small { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

@media (prefers-reduced-motion: no-preference) {
  .sg-panel.is-active .lp-svc__card > * { animation: lp-rise .55s var(--ease) both; }
  .sg-panel.is-active .lp-pillar { animation: lp-pillar .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + .12s); }
}
@keyframes lp-pillar { from { opacity: 0; transform: translateX(18px); } }
@media (max-width: 900px) { .lp-svc__card { grid-template-columns: minmax(0, 1fr); } .lp-svc__num { font-size: 5rem; } }

/* Industrie : une chaîne, du capteur au rapport */
.lp-industry { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; }
.lp-industry .eyebrow { color: var(--gold-300); }
.lp-industry h2 { color: #fff; }
.lp-industry .lp-head p { color: rgba(233, 240, 255, .8); }
.lp-industry .sg-step__dot { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: var(--gold-400); }
.lp-industry .sg-flow.is-run .sg-step__dot { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.lp-industry .sg-flow::before { background: rgba(255, 255, 255, .16); }
.lp-industry .sg-step__n { color: rgba(233, 240, 255, .55); }
.lp-industry .sg-step h3 { color: #fff; font-size: 1rem; }
.lp-industry .sg-chip { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); color: #fff; }
.lp-industry details { margin-top: 38px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
.lp-industry summary { cursor: pointer; font-weight: 700; color: var(--gold-300); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.lp-industry summary::-webkit-details-marker { display: none; }
.lp-industry summary i { transition: transform .3s var(--ease); }
.lp-industry details[open] summary i { transform: rotate(90deg); }
.lp-industry details p { margin-top: 12px; max-width: 70ch; color: rgba(233, 240, 255, .8); }
.lp-industry .sg-chips { margin-top: 18px; }
.lp-industry .sg-flow { --n: 6; }
@media (max-width: 1060px) and (min-width: 861px) { .lp-industry .sg-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } .lp-industry .sg-flow::before, .lp-industry .sg-flow::after { display: none; } }

/* ----------------------------------------------------------
   lp-cta — le bandeau final (sobre)
   ---------------------------------------------------------- */
.lp-cta-wrap { padding: 0 0 88px; }
.lp-cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  padding: clamp(40px, 6vw, 68px) 24px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.lp-cta .sg-orbit { left: 50%; top: 50%; width: min(520px, 90vw); transform: translate(-50%, -50%); opacity: .55; }
.lp-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lp-cta p { margin: 12px auto 0; max-width: 460px; color: rgba(233, 240, 255, .82); }
.lp-cta__row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-cta .btn-ghost, .lp-hero .btn-ghost, .lp-industry .btn-ghost {
  color: #fff; background: transparent; border: 1.5px solid rgba(255, 255, 255, .4);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.lp-cta .btn-ghost:hover, .lp-hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
@media (max-width: 900px) { .lp-cta-wrap { padding-bottom: 60px; } }

/* ----------------------------------------------------------
   lp-time — À propos : une frise, un texte à la fois
   ---------------------------------------------------------- */
.lp-time__rail { position: relative; display: flex; gap: 6px; margin-bottom: 26px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.lp-time__rail::-webkit-scrollbar { display: none; }
.lp-year {
  flex: 1 0 auto; min-width: 74px; text-align: center; padding: 14px 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-solid); cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-faint);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.lp-year::after { content: ""; display: block; width: 8px; height: 8px; margin: 9px auto 0; border-radius: 50%; background: var(--line); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.lp-year:hover { border-color: var(--gold-500); }
.lp-year[aria-selected="true"] { color: var(--navy-800); border-color: var(--gold-500); transform: translateY(-3px); }
.lp-year[aria-selected="true"]::after { background: var(--gold-500); box-shadow: 0 0 0 5px rgba(253, 185, 19, .2); }
[data-theme="dark"] .lp-year[aria-selected="true"] { color: #fff; }
.lp-time__panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); max-width: 760px; }
.lp-time__panel h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lp-time__panel p { margin-top: 10px; font-size: 1.04rem; line-height: 1.7; }
@media (prefers-reduced-motion: no-preference) { .lp-time__panel.is-active { animation: lp-rise .5s var(--ease) both; } }

/* Équipe */
.lp-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-member { padding: 26px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.lp-member:hover { transform: translateY(-4px); border-color: var(--gold-500); }
.lp-member__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold-500); background: var(--bg-deep); margin-bottom: 8px; }
.lp-member small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.lp-member h3 { font-size: 1.2rem; }
.lp-member p { font-size: .92rem; }
.lp-member .sg-chips { margin-top: 10px; }
@media (max-width: 900px) { .lp-team { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* Valeurs */
.lp-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-value { padding: 24px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-solid); }
.lp-value i { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--gold-500); border-radius: 12px; font-size: 1.1rem; color: var(--navy-600); margin-bottom: 14px; }
[data-theme="dark"] .lp-value i { color: var(--gold-400); }
.lp-value strong { display: block; font-family: var(--f-display); font-size: 1.05rem; color: var(--navy-800); }
[data-theme="dark"] .lp-value strong { color: #eaf1ff; }
.lp-value span { display: block; margin-top: 4px; font-size: .92rem; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 1000px) { .lp-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lp-values { grid-template-columns: minmax(0, 1fr); } }

/* Secteurs */
.lp-sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-sector { padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-solid); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 9px; align-items: center; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.lp-sector i { color: var(--gold-600); }
.lp-sector:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.lp-more { margin-top: 22px; }
.lp-more summary { cursor: pointer; font-weight: 700; color: var(--navy-600); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.lp-more summary::-webkit-details-marker { display: none; }
.lp-more summary i { transition: transform .3s var(--ease); }
.lp-more[open] summary i { transform: rotate(90deg); }
[data-theme="dark"] .lp-more summary { color: var(--gold-400); }
.lp-more .sg-chips { margin-top: 16px; }
.lp-note { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--gold-500); max-width: 62ch; font-size: 1.04rem; color: var(--ink); }

/* ----------------------------------------------------------
   lp-seg — Packs : un groupe à la fois
   ---------------------------------------------------------- */
.lp-seg { display: inline-flex; padding: 5px; border-radius: var(--r-pill); background: var(--surface-solid); border: 1px solid var(--line); gap: 4px; margin-bottom: 34px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lp-seg::-webkit-scrollbar { display: none; }
.lp-seg button { padding: 11px 22px; border-radius: var(--r-pill); font-weight: 700; font-size: .93rem; color: var(--ink-muted); white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.lp-seg button[aria-selected="true"] { background: var(--navy-800); color: #fff; }
[data-theme="dark"] .lp-seg button[aria-selected="true"] { background: var(--gold-500); color: var(--navy-900); }

.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.lp-plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); }
.lp-plan--hot { border: 1.5px solid var(--gold-500); box-shadow: 0 26px 56px -34px rgba(229, 162, 13, .55); }
.lp-plan__tag { position: absolute; top: -13px; right: 22px; padding: 5px 13px; border-radius: var(--r-pill); background: var(--gold-500); color: var(--navy-900); font-size: .76rem; font-weight: 800; }
.lp-plan h3 { font-size: 1.28rem; }
.lp-plan__for { margin-top: 4px; font-size: .9rem; color: var(--ink-muted); min-height: 3.3em; }
.lp-plan__price { margin: 18px 0 2px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.05; color: var(--navy-800); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .lp-plan__price { color: #fff; }
.lp-plan__price small { font-family: var(--f-body); font-size: .86rem; font-weight: 600; color: var(--ink-muted); }
.lp-plan__setup { font-size: .86rem; color: var(--ink-faint); min-height: 1.4em; }
.lp-plan ul { margin: 18px 0 22px; display: grid; gap: 10px; }
.lp-plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .94rem; line-height: 1.45; color: var(--ink); }
.lp-plan li i { color: var(--gold-600); margin-top: 2px; }
.lp-plan .btn { margin-top: auto; width: 100%; }
.lp-plan__bonus { margin-top: 14px; font-size: .84rem; color: var(--ink-muted); text-align: center; }
.lp-plan__bonus i { color: var(--gold-600); }
.lp-fine { margin-top: 24px; font-size: .88rem; color: var(--ink-muted); max-width: 80ch; }
@media (max-width: 1000px) { .lp-plans, .lp-plans--2 { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* La bande NFC */
.lp-nfc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-solid); }
.lp-nfc__icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.5rem; border: 1.5px solid var(--gold-500); border-radius: 16px; color: var(--navy-600); }
[data-theme="dark"] .lp-nfc__icon { color: var(--gold-400); }
.lp-nfc h3 { font-size: 1.15rem; }
.lp-nfc p { font-size: .93rem; margin-top: 2px; }
.lp-nfc .sg-chips { margin-top: 10px; }
@media (max-width: 860px) { .lp-nfc { grid-template-columns: minmax(0, 1fr); } .lp-nfc .btn { width: 100%; } }

/* L'estimateur : on garde son balisage et sa logique (lab.js), on allège son cadre. */
.lp-est .est-grid { margin-top: 0; }

/* ----------------------------------------------------------
   lp-contact — le formulaire d'abord, le reste en retrait
   ---------------------------------------------------------- */
.lp-contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.lp-form-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--lift-soft, none); }
.lp-form-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.lp-form-card > p { margin: 8px 0 22px; font-size: .98rem; }
.lp-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h, 86px) + 20px); }
.lp-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-solid); }
.lp-line > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--gold-500); color: var(--navy-600); font-size: 1.1rem; }
[data-theme="dark"] .lp-line > i { color: var(--gold-400); }
.lp-line small { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.lp-line a, .lp-line span.v { display: block; font-weight: 700; font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; }
.lp-line a:hover { color: var(--navy-500); }
/* Le lien « Carte » est un .lp-copy : il garde la taille d'un bouton, pas celle d'un lien de ligne. */
.lp-line a.lp-copy { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--ink-muted); }
.lp-line a.lp-copy:hover { color: var(--ink); }
.lp-copy { padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--ink-muted); transition: border-color .3s var(--ease), color .3s var(--ease); }
.lp-copy:hover { border-color: var(--gold-500); color: var(--ink); }
.lp-free { padding: 22px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; }
.lp-free strong { display: block; font-family: var(--f-display); font-size: 1.12rem; color: var(--gold-400); }
.lp-free p { margin-top: 6px; font-size: .92rem; color: rgba(233, 240, 255, .82); }
.lp-free .sg-chips { margin-top: 14px; }
.lp-free .sg-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 960px) { .lp-contact { grid-template-columns: minmax(0, 1fr); } .lp-aside { position: static; order: -1; } }

/* FAQ : quatre questions, des <details> */
.lp-faq { display: grid; gap: 10px; max-width: 820px; }
.lp-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-solid); padding: 0 22px; transition: border-color .3s var(--ease); }
.lp-faq details[open] { border-color: var(--gold-500); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i { color: var(--gold-600); transition: transform .3s var(--ease); flex-shrink: 0; }
.lp-faq details[open] summary i { transform: rotate(45deg); }
.lp-faq p { padding: 0 0 18px; font-size: .97rem; line-height: 1.65; }

/* ----------------------------------------------------------
   Zones tactiles & mouvement
   ---------------------------------------------------------- */
@media (pointer: coarse) {
  .lp-copy, .lp-faq summary, .lp-seg button, .lp-year { min-height: 44px; }
}
/* Mode allégé (appareil modeste) : l'orbite se fige, rien d'autre ne change. */
.cyn-lite .sg-orbit i { animation: none; }

/* Au doigt, un lien de 18 à 26 px de haut se rate une fois sur deux : même aspect, zone de 44 px. */
@media (pointer: coarse) {
  .hm-pick__go, .hm-more, .lp-more summary, .lp-industry summary { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer .footer-col a, .site-footer .footer-bottom a { display: inline-block; padding-block: 11px; }
  .sg-tab, .lp-copy, .lp-faq summary { min-height: 44px; }
  .hm-mod { min-height: 52px; }
}


/* ===========================================================
   v3 — L'ŒIL SUIT
   =========================================================== */

/* Titres : les mots se posent un à un (focus.js, data-split) */
.sp-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.sp-i { display: inline-block; }
.cyn-js [data-split] .sp-i { transform: translateY(108%); transition: transform .85s var(--ease) calc(var(--w, 0) * 65ms); }
.cyn-js [data-split].is-split-in .sp-i { transform: none; }
@media (prefers-reduced-motion: reduce) { .cyn-js [data-split] .sp-i { transform: none; transition: none; } }

/* Grilles : les cartes arrivent l'une après l'autre (data-stagger) */
.cyn-js [data-stagger] > * { opacity: 0; transform: translateY(30px) scale(.98); }
.cyn-js [data-stagger].is-in > * {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
@media (prefers-reduced-motion: reduce) { .cyn-js [data-stagger] > * { opacity: 1; transform: none; } }

/* ----------------------------------------------------------
   tl — la frise : un fil d'or qui se trace, des étapes qui s'éveillent
   Le fil suit le défilement (focus.js pose --tl-p, --tl-top, --tl-len) ;
   chaque jalon s'allume quand le fil l'atteint : année pleine, nœud doré,
   carte qui glisse en place. Alternée de part et d'autre du fil sur
   grand écran ; le fil passe à gauche sur mobile.
   ---------------------------------------------------------- */
.tl { list-style: none; padding: 0; margin: 8px 0 0; position: relative; --tl-p: 0; --tl-top: 40px; --tl-len: 60%; }
.tl__spine, .tl__fill { position: absolute; left: 50%; top: var(--tl-top); height: var(--tl-len); width: 3px; margin-left: -1.5px; border-radius: 3px; }
.tl__spine { background: var(--line); }
.tl__fill {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 45%, var(--gold-600));
  clip-path: inset(0 0 calc((1 - var(--tl-p)) * 100%) 0);
  box-shadow: 0 0 18px rgba(253, 185, 19, .45);
}
.tl__head {
  position: absolute; left: 50%; top: calc(var(--tl-top) + var(--tl-len) * var(--tl-p)); width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--gold-400); opacity: 0; transition: opacity .4s;
  box-shadow: 0 0 0 5px rgba(253, 185, 19, .22), 0 0 26px 5px rgba(253, 185, 19, .6);
}
.tl.has-on .tl__head { opacity: 1; }

.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: center; min-height: 200px; padding: 18px 0; }
.tl-node {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 2;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem;
  background: var(--surface-solid); border: 2px solid var(--line); color: var(--ink-faint);
  box-shadow: 0 0 0 9px var(--bg);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease);
}
.tl-sec-soft .tl-node { box-shadow: 0 0 0 9px var(--bg-soft); }
.tl-item.is-on .tl-node { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: scale(1.1); }
.tl-item.is-on .tl-node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold-400); animation: tl-ping 1.6s var(--ease) 1; }
@keyframes tl-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.tl-card {
  grid-row: 1; position: relative; padding: 24px 26px 26px; border-radius: 22px;
  background: var(--surface-solid); border: 1px solid var(--line);
  opacity: .32; filter: saturate(.7);
  transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease), filter .6s;
}
.tl-card h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-top: 10px; }
.tl-card p { margin-top: 8px; font-size: .98rem; line-height: 1.65; }
.tl-card small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
[data-theme="dark"] .tl-card small { color: var(--gold-400); }
.tl-item.is-on .tl-card { opacity: 1; transform: none !important; filter: none; border-color: color-mix(in srgb, var(--gold-500) 70%, var(--line)); box-shadow: 0 26px 50px -34px rgba(11, 42, 107, .45); }
/* la pointe de la carte vers le nœud */
.tl-card::before { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: inherit; border: inherit; border-bottom-color: transparent; border-left-color: transparent; }

.tl-year {
  grid-row: 1; font-family: var(--f-display); font-weight: 700; font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line); font-variant-numeric: lining-nums tabular-nums;
  transition: color .7s var(--ease), -webkit-text-stroke-color .7s var(--ease), transform .8s var(--ease);
}
.tl-item.is-on .tl-year { color: var(--gold-500); -webkit-text-stroke-color: var(--gold-500); text-shadow: 0 10px 40px rgba(253, 185, 19, .35); }

/* côtés : impair = carte à gauche, année à droite ; pair = l'inverse */
.tl-item:nth-child(odd) .tl-card { grid-column: 1; margin-right: 8px; transform: translateX(-34px); }
.tl-item:nth-child(odd) .tl-card::before { right: -8px; transform: rotate(45deg); }
.tl-item:nth-child(odd) .tl-year { grid-column: 3; padding-left: 14px; transform: translateX(26px); }
.tl-item:nth-child(even) .tl-card { grid-column: 3; margin-left: 8px; transform: translateX(34px); }
.tl-item:nth-child(even) .tl-card::before { left: -8px; transform: rotate(-135deg); }
.tl-item:nth-child(even) .tl-year { grid-column: 1; text-align: right; padding-right: 14px; transform: translateX(-26px); }
.tl-item.is-on .tl-year { transform: none; }

@media (max-width: 820px) {
  .tl__spine, .tl__fill { left: 30px; }
  .tl__head { left: 30px; }
  .tl-item { grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; min-height: 0; padding: 14px 0 24px; align-items: start; }
  .tl-node { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; font-size: 1.15rem; }
  .tl-item:nth-child(n) .tl-year { grid-column: 2; grid-row: 1; text-align: left; padding: 0; transform: none; font-size: 2.6rem; }
  .tl-item:nth-child(n) .tl-card { grid-column: 2; grid-row: 2; margin: 0; transform: translateX(26px); }
  .tl-card::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-card, .tl-year { opacity: 1; transform: none !important; filter: none; transition: none; }
  .tl-year { color: var(--gold-500); -webkit-text-stroke-color: var(--gold-500); }
  .tl-node { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transition: none; }
  .tl-item.is-on .tl-node::after { animation: none; display: none; }
}

/* Les listes du site reçoivent une puce dorée globale (li::before) : la frise a ses propres nœuds. */
.tl-item::before, .tl-item::after, .sg-step::before, .lp-plan li::before { content: none !important; display: none; }

/* ----------------------------------------------------------
   sx — la galerie des secteurs (À propos)
   Douze tranches d'image ; celle qui est ouverte prend la place, titre et
   description se posent dessus. Elle change toute seule (l'œil suit), au
   survol / clic / clavier la main revient au visiteur. Sur téléphone :
   un accordéon vertical.
   ---------------------------------------------------------- */
.sx { display: flex; gap: 10px; height: clamp(400px, 58vh, 520px); }
.sx-cell {
  position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; text-align: left; color: #fff; cursor: pointer;
  border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--navy-800);
  transition: flex .85s var(--ease);
}
.sx-cell.is-active { flex: 7 1 0; cursor: default; }
.sx-cell img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: brightness(.62) saturate(.8); transform: scale(1.12);
  transition: filter .85s var(--ease), transform 1.2s var(--ease);
}
.sx-cell.is-active img { filter: none; transform: scale(1); }
.sx-cell:hover:not(.is-active) img { filter: brightness(.82) saturate(.95); }
.sx-cell::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 25, 56, .15) 30%, rgba(7, 25, 56, .88)); }
.sx-cell:focus-visible { outline: 2.5px solid var(--gold-500); outline-offset: 3px; }
.sx-num { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: rgba(255, 255, 255, .75); }
.sx-cell.is-active .sx-num { text-align: right; padding-right: 22px; color: var(--gold-300); }
/* Fermée : le nom se lit à la verticale, en bas */
.sx-label {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-weight: 700; font-size: .95rem; white-space: nowrap; max-height: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis;
  transition: opacity .35s var(--ease);
}
.sx-cell.is-active .sx-label { opacity: 0; }
/* Ouverte : icône, titre, description */
.sx-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; display: grid; gap: 8px; opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .6s var(--ease); pointer-events: none; }
.sx-cell.is-active .sx-body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.sx-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--gold-500); border-radius: 14px; color: var(--gold-400); font-size: 1.2rem; backdrop-filter: none; }
.sx-body strong { font-family: var(--f-display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; }
.sx-desc { max-width: 52ch; font-size: .97rem; line-height: 1.6; color: rgba(233, 240, 255, .86); }
.sx-bar { height: 3px; margin-top: 16px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sx-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.sx-bar i.is-run { animation: sx-fill var(--sx-dur, 4.2s) linear forwards; }
@keyframes sx-fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sx-cell, .sx-cell img, .sx-body { transition: none; } .sx-bar i.is-run { animation: none; } }

@media (max-width: 860px) {
  .sx { flex-direction: column; height: auto; gap: 8px; }
  .sx-cell { flex: none; height: 76px; transition: height .7s var(--ease); }
  .sx-cell.is-active { flex: none; height: 330px; }
  .sx-label { writing-mode: horizontal-tb; transform: none; left: 20px; bottom: auto; top: 50%; margin-top: -.7em; max-height: none; }
  .sx-num { top: 50%; margin-top: -.6em; text-align: right; padding-right: 20px; }
  .sx-body { padding: 20px; }
}

/* ----------------------------------------------------------
   À propos — « Notre histoire » (cartes empilées, lab.css)

   ⚠️ POURQUOI : lab.css pose les cartes en `position:absolute` dans une
   piste de hauteur fixe (460 / 520 px). La 1ʳᵉ carte (l'histoire, trois
   paragraphes) est bien plus longue que les trois autres : à 390 px de
   large son texte dépassait de 200 px. On met donc toutes les cartes dans
   la MÊME cellule d'une grille : la piste prend la hauteur de la plus
   haute, quelle que soit la largeur, et l'empilement (transform par
   --depth, posé par lab.js) ne change pas.
   ---------------------------------------------------------- */
#notre-histoire .cnx-why-us__track { display: grid; min-height: 0; }
#notre-histoire .cnx-why-us__card { position: relative; inset: auto; grid-area: 1 / 1; height: auto; }
/* Les cartes du fond (jusqu'à 3 × 18 px de décalage) passaient sur les boutons ; on les en écarte. */
#notre-histoire .cnx-why-us__nav { position: relative; z-index: 20; margin-top: 76px; }
