/* =========================================================
   CyNoLux — Lab layer (v3)
   Filigranes · Thème sombre · Palette de commandes
   Transitions de page · Composants interactifs
   Se charge APRÈS style.css et ne remplace rien.
   ========================================================= */

/* ---------------------------------------------------------
   1. Tokens additionnels
   --------------------------------------------------------- */
:root {
  --wm-ink: rgba(11, 42, 107, 0.028); /* encre des filigranes */
  --wm-ink-strong: rgba(11, 42, 107, 0.042);
  --wm-gold: rgba(253, 185, 19, 0.06);
  --line: rgba(11, 42, 107, 0.1);
  --line-soft: rgba(11, 42, 107, 0.06);
  --surface-solid: #ffffff;
  --shadow-lift: 0 28px 70px -26px rgba(11, 42, 107, 0.42);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 86px;
}

/* ---------------------------------------------------------
   2. Thème sombre — "Nuit Dakar"
   --------------------------------------------------------- */
[data-theme="dark"] {
  --bg: #050d20;
  --bg-soft: #08142e;
  --bg-deep: #0a1b3b;
  --ink: #e9f0ff;
  --ink-muted: #a3b4d4;
  --ink-faint: #6f82a8;

  --glass-fill: rgba(19, 38, 76, 0.55);
  --glass-fill-strong: rgba(24, 48, 94, 0.78);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 26px 70px -24px rgba(0, 0, 0, 0.75);
  --glass-shadow-sm: 0 14px 36px -16px rgba(0, 0, 0, 0.6);

  --wm-ink: rgba(255, 255, 255, 0.022);
  --wm-ink-strong: rgba(255, 255, 255, 0.038);
  --wm-gold: rgba(253, 185, 19, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --surface-solid: #0b1730;
  color-scheme: dark;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
  color: #eaf1ff;
}
[data-theme="dark"] .brand-word {
  color: #eaf1ff;
}
[data-theme="dark"] .eyebrow {
  color: var(--gold-300);
}
[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active,
[data-theme="dark"] .mobile-nav a:hover,
[data-theme="dark"] .mobile-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .mobile-nav {
  background: rgba(5, 13, 32, 0.97);
}
[data-theme="dark"] .btn-ghost {
  color: #dce7ff;
}
[data-theme="dark"] .btn-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .btn-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .status-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cfddfb;
}
[data-theme="dark"] .tech-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}
[data-theme="dark"] .svc-tag,
[data-theme="dark"] .tool-chip,
[data-theme="dark"] .badge-soft {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cfddfb;
}
[data-theme="dark"] .value-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #cfddfb;
}
[data-theme="dark"] .process-item,
[data-theme="dark"] .value-row,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .pack-list li {
  border-color: rgba(255, 255, 255, 0.09);
}
[data-theme="dark"] .feature-list li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .card .card-link,
[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .link-inline {
  color: var(--gold-300);
}
[data-theme="dark"] .process-num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #eaf1ff;
}
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder {
  color: #6f82a8;
}
[data-theme="dark"] .filter-btn {
  color: #a3b4d4;
}
[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .filter-btn:hover {
  background: var(--gold-500);
  color: #071938;
}
[data-theme="dark"] .circuit-divider .line {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
}
[data-theme="dark"] .stack-marquee-wrap {
  background: #030a18;
}
[data-theme="dark"] .stack-marquee-wrap::before {
  background: linear-gradient(90deg, #030a18, transparent);
}
[data-theme="dark"] .stack-marquee-wrap::after {
  background: linear-gradient(270deg, #030a18, transparent);
}
[data-theme="dark"] .site-footer {
  background: #030a18;
}
[data-theme="dark"] .map-wrap iframe {
  filter: grayscale(40%) invert(92%) hue-rotate(180deg) saturate(120%);
}

/* Transition douce lors du basculement de thème */
html.theme-anim,
html.theme-anim body,
html.theme-anim .glass,
html.theme-anim .card,
html.theme-anim .header-inner {
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

/* ---------------------------------------------------------
   3. FILIGRANES — le système signature
   --------------------------------------------------------- */

/* 3a. Trame de fond persistante (grain + points + halo) */
html {
  background: var(--bg);
}
body {
  background: transparent;
}
.wm-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(var(--wm-ink) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, var(--wm-gold), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(30, 77, 183, 0.1), transparent 45%);
  background-size:
    36px 36px,
    100% 100%,
    100% 100%;
  opacity: 0.55;
}
[data-theme="dark"] .wm-canvas {
  opacity: 0.7;
}

/* Les sections filigranées rognent leur monogramme sans devenir des
   conteneurs de défilement — indispensable pour garder position:sticky. */
[data-wm] {
  position: relative;
  overflow: clip;
}

/* 3b. Filigrane monogramme géant, ancré par section */
.wm-mark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 26rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--wm-ink-strong);
  opacity: 0.7;
  white-space: nowrap;
}
.wm-mark--tr {
  top: -2.5rem;
  right: -3rem;
}
.wm-mark--bl {
  bottom: -3rem;
  left: -3rem;
}
.wm-mark--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 760px) {
  .wm-mark {
    display: none;
  }
}

/* 3c. Filigrane de page — le mot de la page, en creux derrière le hero */
.page-hero {
  isolation: isolate;
}
.wm-page {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--wm-ink-strong);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  white-space: nowrap;
  opacity: 0.8;
}
.wm-page::after {
  content: attr(data-word);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 0;
  color: var(--wm-gold);
  -webkit-mask-image: linear-gradient(180deg, transparent 42%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 42%, #000 100%);
}

/* 3d. Ruban diagonal microtexte — le tampon "papier de valeur" */
.wm-ribbon {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    #000 10%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    #000 10%,
    transparent 78%
  );
}
.wm-ribbon span {
  position: absolute;
  left: -30%;
  width: 170%;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--wm-ink-strong);
  white-space: nowrap;
  opacity: 0.75;
  transform-origin: center;
}
.wm-ribbon span:nth-child(1) {
  top: 16%;
  transform: rotate(-14deg);
}
.wm-ribbon span:nth-child(2) {
  top: 48%;
  transform: rotate(-14deg);
}
.wm-ribbon span:nth-child(3) {
  top: 80%;
  transform: rotate(-14deg);
}

/* 3e. Sceau circulaire tournant (texte le long d'un cercle), logo fixe au centre */
.wm-seal-wrap {
  position: absolute;
  width: 154px;
  height: 154px;
  pointer-events: none;
  z-index: 0;
}
.wm-seal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: wm-seal-spin 34s linear infinite;
}
.wm-seal text {
  font-family: var(--f-mono);
  font-size: 9.2px;
  letter-spacing: 2.4px;
  fill: #fff;
  opacity: 0.8;
  text-transform: uppercase;
}
[data-theme="dark"] .wm-seal text {
  fill: var(--gold-400);
  opacity: 0.4;
}
.wm-seal .seal-core {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1;
  opacity: 0.3;
}
.seal-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0.55;
}
@keyframes wm-seal-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .wm-seal-wrap {
    display: none;
  }
}

/* 3f. Filigrane d'impression — visible uniquement au print */
@media print {
  .site-header,
  .mobile-nav,
  .back-to-top,
  .lab-fab,
  .cmdk,
  .lab-progress,
  .wm-canvas,
  .cursor-glow,
  .page-curtain,
  .lab-toast-stack {
    display: none !important;
  }
  body::after {
    content: "CyNoLux · Cyber Novation Luxury · cynolux.sn";
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-28deg);
    font-family: var(--f-display);
    font-size: 44px;
    color: rgba(11, 42, 107, 0.1);
    letter-spacing: 0.04em;
    pointer-events: none;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9px;
    color: #666;
  }
}

/* =========================================================
   RIDEAU DE TRANSITION — un seul mouvement, en deux temps

   Départ  : le panneau monte et recouvre l'écran (.page-curtain.is-in)
   Arrivée : il poursuit sa montée et libère la page (html[data-nav="in"])

   Habillage commun : page blanche, logo et spinner horizontal — rien
   d'autre (pas de dégradé, pas de trame).
   ========================================================= */

/* --- Habillage commun --- */
.page-curtain,
html[data-nav="in"]::before {
  background: #fff;
}

/* --- Départ : le panneau monte --- */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 390;
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
}
.page-curtain.is-in {
  animation: curtain-in 0.52s var(--ease-in-out) forwards;
}
@keyframes curtain-in {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Marque centrale au départ : logo + spinner horizontal */
.page-curtain .curtain-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  opacity: 0;
  animation: curtain-mark-in 0.42s var(--ease) 0.12s forwards;
}

.page-curtain .cm-logo {
  width: 64px;
  height: auto;
  display: block;
}

/* Spinner horizontal : piste discrète + reflet qui glisse */
.page-curtain .cm-spinner {
  position: relative;
  display: block;
  width: 130px;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(11, 42, 107, 0.1);
}
.page-curtain .cm-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  animation: cm-spinner-x 1.1s ease-in-out infinite;
}
@keyframes cm-spinner-x {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

@keyframes curtain-mark-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* --- Arrivée : le panneau poursuit sa montée et libère la page --- *
   Posé sur <html> par le script inline du <head> : il couvre l'écran
   avant même le premier rendu, donc aucun contenu ne clignote. Un
   pseudo-élément ne pouvant pas contenir d'enfants, logo et spinner
   sont posés en calques d'arrière-plan superposés — même composition
   qu'au départ. */
html[data-nav="in"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 391;
  pointer-events: none;
  animation: curtain-out 0.66s var(--ease-in-out) 0.08s forwards;
}
html[data-nav="in"]::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 392;
  pointer-events: none;
  width: 130px;
  height: 90px;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-image:
    url("../img/logo-mark.png"),
    linear-gradient(90deg, var(--gold-600), var(--gold-400)),
    linear-gradient(rgba(11, 42, 107, 0.1), rgba(11, 42, 107, 0.1));
  background-position: top center, bottom left, bottom center;
  background-size: 64px auto, 40% 4px, 100% 4px;
  animation: curtain-mark-out 0.46s var(--ease) forwards;
}
@keyframes curtain-out {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(0 0 100% 0);
  }
}
@keyframes curtain-mark-out {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -64%);
  }
}

@media (max-width: 640px) {
  .page-curtain .cm-logo {
    width: 52px;
  }
  .page-curtain .cm-spinner {
    width: 110px;
  }
  html[data-nav="in"]::after {
    width: 110px;
    height: 76px;
    background-size: 52px auto, 40% 4px, 100% 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-nav="in"]::before,
  html[data-nav="in"]::after {
    display: none !important;
  }
  .page-curtain .cm-spinner::after {
    animation: none;
    transform: translateX(0);
    width: 100%;
  }
}

/* ---------------------------------------------------------
   5. Barre d'outils flottante (FAB)
   --------------------------------------------------------- */
.lab-fab {
  position: fixed;
  right: 26px;
  bottom: 86px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-fab button,
.lab-fab a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--navy-700);
  box-shadow: var(--glass-shadow-sm);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
  position: relative;
}
[data-theme="dark"] .lab-fab button,
[data-theme="dark"] .lab-fab a {
  color: #dce7ff;
}
.lab-fab button:hover,
.lab-fab a:hover {
  transform: translateY(-3px) scale(1.05);
}
.lab-fab .fab-wa {
  background: #25d366;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px -10px rgba(37, 211, 102, 0.7);
}
.lab-fab .fab-tip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy-800);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s var(--ease);
}
.lab-fab button:hover .fab-tip,
.lab-fab a:hover .fab-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 640px) {
  .lab-fab {
    right: 16px;
    bottom: 78px;
  }
  .lab-fab .fab-tip {
    display: none;
  }
}

/* Bouton thème dans le header */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-700);
  font-size: 1.05rem;
  border: 1px solid var(--line);
  background: transparent;
  transition:
    background 0.25s,
    transform 0.35s var(--ease),
    color 0.25s;
}
[data-theme="dark"] .theme-toggle {
  color: var(--gold-400);
}
.theme-toggle:hover {
  background: rgba(11, 42, 107, 0.06);
  transform: rotate(-25deg);
}
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
.theme-toggle .bi-moon-stars {
  display: none;
}
[data-theme="dark"] .theme-toggle .bi-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .bi-moon-stars {
  display: inline-flex;
}

/* ---------------------------------------------------------
   6. Palette de commandes (⌘K)
   --------------------------------------------------------- */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(6, 16, 38, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cmdk.is-open {
  display: flex;
  animation: cmdk-fade 0.2s var(--ease);
}
@keyframes cmdk-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.cmdk-panel {
  width: 100%;
  max-width: 600px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: 0 40px 90px -30px rgba(7, 25, 56, 0.6);
  animation: cmdk-pop 0.28s var(--ease-out);
}
[data-theme="dark"] .cmdk-panel {
  background: rgba(12, 26, 54, 0.92);
}
@keyframes cmdk-pop {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cmdk-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.cmdk-search i {
  color: var(--gold-600);
  font-size: 1.1rem;
}
.cmdk-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}
.cmdk-search kbd {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  color: var(--ink-faint);
}
.cmdk-list {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 8px;
}
.cmdk-group {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 14px 6px;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.16s;
}
.cmdk-item i:first-child {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--line-soft);
  color: var(--navy-600);
  font-size: 0.95rem;
  flex-shrink: 0;
}
[data-theme="dark"] .cmdk-item i:first-child {
  color: var(--gold-400);
}
.cmdk-item .ci-txt {
  flex: 1;
  min-width: 0;
}
.cmdk-item .ci-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.cmdk-item .ci-sub {
  font-size: 0.76rem;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmdk-item.is-active {
  background: rgba(11, 42, 107, 0.07);
}
[data-theme="dark"] .cmdk-item.is-active {
  background: rgba(255, 255, 255, 0.08);
}
.cmdk-item .ci-go {
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.cmdk-empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
.cmdk-foot {
  display: flex;
  gap: 16px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
}
.cmdk-foot kbd {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ---------------------------------------------------------
   7. Notifications (toasts)
   --------------------------------------------------------- */
.lab-toast-stack {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 320;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 20px 40px -16px rgba(7, 25, 56, 0.6);
  animation: toast-in 0.38s var(--ease-out);
}
.lab-toast i {
  color: var(--gold-400);
  font-size: 1.1rem;
}
.lab-toast.is-out {
  animation: toast-out 0.32s var(--ease) forwards;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(-16px);
  }
}
@media (max-width: 640px) {
  .lab-toast-stack {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

/* ---------------------------------------------------------
   8. Animations de texte et micro-interactions
   --------------------------------------------------------- */
/* Révélation lettre par mot (appliquée par JS sur les h1/h2 marqués) */
.split-line {
  display: block;
  overflow: hidden;
}
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotate(3deg);
}
.is-split-in .split-word {
  animation: word-up 0.78s var(--ease-out) forwards;
}
@keyframes word-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Bouton magnétique */
.magnetic {
  will-change: transform;
}

/* Carte à projecteur : halo qui suit la souris */
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(253, 185, 19, 0.16),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::before {
  opacity: 1;
}
.spotlight > * {
  position: relative;
  z-index: 1;
}

/* Soulignement animé pour les liens de texte */
.link-anim {
  position: relative;
  font-weight: 700;
  color: var(--navy-700);
}
[data-theme="dark"] .link-anim {
  color: var(--gold-300);
}
.link-anim::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.6px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.38s var(--ease);
}
.link-anim:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Compteur de section discret dans la marge */
.section-index {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.section-index::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
}

/* ---------------------------------------------------------
   9. Témoignages — carrousel
   --------------------------------------------------------- */
.testi-wrap {
  position: relative;
  overflow: hidden;
  padding: 8px 0 4px;
}
.testi-track {
  display: flex;
  transition: transform 0.65s var(--ease-out);
}
.testi-slide {
  flex: 0 0 100%;
  padding: 0 6px;
}
.testi-card {
  padding: 46px 48px;
}
@media (max-width: 640px) {
  .testi-card {
    padding: 32px 26px;
  }
}
.testi-card .quote-mark {
  font-family: var(--f-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--gold-500);
  display: block;
  margin-bottom: 18px;
}
.testi-card blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.5;
  color: var(--navy-800);
  font-weight: 600;
}
[data-theme="dark"] .testi-card blockquote {
  color: #eaf1ff;
}
.testi-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
}
.testi-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.testi-role {
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.testi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.testi-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-700);
  transition:
    background 0.25s,
    transform 0.25s var(--ease);
}
[data-theme="dark"] .testi-nav button {
  color: #dce7ff;
}
.testi-nav button:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: scale(1.06);
}
.testi-dots {
  display: flex;
  gap: 7px;
}
.testi-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: 0.3s;
  cursor: pointer;
}
.testi-dots i.on {
  width: 24px;
  border-radius: 4px;
  background: var(--gold-500);
}

/* ---------------------------------------------------------
   10. Estimateur de projet
   --------------------------------------------------------- */
.est-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .est-grid {
    grid-template-columns: 1fr;
  }
}
.est-panel {
  padding: 40px;
}
@media (max-width: 640px) {
  .est-panel {
    padding: 26px 20px;
  }
}
.est-block + .est-block {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.est-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
[data-theme="dark"] .est-label {
  color: var(--gold-400);
}
.est-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}
.est-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: transparent;
  text-align: left;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.25s var(--ease);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  width: 100%;
}
.est-opt i {
  font-size: 1.1rem;
  color: var(--navy-600);
}
[data-theme="dark"] .est-opt i {
  color: var(--gold-400);
}
.est-opt:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 185, 19, 0.5);
}
.est-opt.on {
  border-color: var(--gold-500);
  background: rgba(253, 185, 19, 0.09);
  color: var(--ink);
}
.est-opt.on::after {
  content: "\F26E";
  font-family: "bootstrap-icons";
  margin-left: auto;
  color: var(--gold-600);
  font-size: 0.9rem;
}
.est-range {
  width: 100%;
  accent-color: var(--gold-500);
  margin-top: 6px;
}
.est-range-val {
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--navy-700);
}
[data-theme="dark"] .est-range-val {
  color: var(--gold-300);
}

.est-result {
  padding: 34px 30px;
  position: sticky;
  top: 110px;
}
.est-total {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.1;
}
[data-theme="dark"] .est-total {
  color: var(--gold-300);
}
.est-total small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 600;
}
.est-lines {
  margin: 24px 0;
}
.est-lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-muted);
}
.est-lines li:last-child {
  border: none;
}
.est-lines li b {
  color: var(--ink);
  font-weight: 700;
}
.est-delay {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--navy-600);
  font-weight: 700;
  margin-bottom: 20px;
}
[data-theme="dark"] .est-delay {
  color: var(--gold-300);
}
.est-note {
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   11. Modale projet (portfolio)
   --------------------------------------------------------- */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 16, 38, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pmodal.is-open {
  display: flex;
  animation: cmdk-fade 0.22s var(--ease);
}
.pmodal-box {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--r-lg);
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  box-shadow: 0 50px 100px -30px rgba(7, 25, 56, 0.6);
  animation: cmdk-pop 0.3s var(--ease-out);
}
.pmodal-head {
  padding: 40px 40px 0;
  position: relative;
}
@media (max-width: 640px) {
  .pmodal-head,
  .pmodal-body {
    padding-left: 24px;
    padding-right: 24px;
  }
}
.pmodal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--line-soft);
  color: var(--ink-muted);
  transition:
    background 0.25s,
    transform 0.25s;
}
.pmodal-close:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: rotate(90deg);
}
.pmodal-banner {
  height: 180px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
}
.pmodal-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pmodal-banner-img.is-loaded {
  opacity: 0.6;
}
.pmodal-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    195deg,
    rgba(7, 25, 56, 0.25) 0%,
    rgba(7, 25, 56, 0.65) 60%,
    rgba(7, 25, 56, 0.92) 100%
  );
}
.pmodal-banner-foot {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pmodal-banner-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.pmodal-banner span.pmodal-banner-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: #fff;
  line-height: 1.15;
}
.pmodal-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pmodal-ribbon.is-produit {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}
.pmodal-body {
  padding: 0 40px 40px;
  transition: opacity 0.16s ease;
}
.pmodal-body.is-switching {
  opacity: 0;
}
.pmodal-body h3 {
  margin-bottom: 8px;
}
.pmodal-note {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-top: 10px;
}
.pmodal-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.pmodal-kv div span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.pmodal-kv div span i {
  color: var(--gold-600);
  font-size: 0.78rem;
}
.pmodal-kv div b {
  font-size: 0.92rem;
  color: var(--ink);
}
.pmodal-stack-row {
  margin-bottom: 22px;
}
.pmodal-stack-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.pmodal-stack-label i {
  color: var(--gold-600);
  font-size: 0.78rem;
}
.pmodal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pmodal-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  color: var(--ink-muted);
}
.pmodal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pmodal-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .pmodal-list li {
    animation: pmodal-item-in 0.4s var(--ease-out) both;
  }
  .pmodal-list li:nth-child(1) { animation-delay: 0.02s; }
  .pmodal-list li:nth-child(2) { animation-delay: 0.06s; }
  .pmodal-list li:nth-child(3) { animation-delay: 0.1s; }
  .pmodal-list li:nth-child(4) { animation-delay: 0.14s; }
  .pmodal-list li:nth-child(5) { animation-delay: 0.18s; }
  .pmodal-list li:nth-child(6) { animation-delay: 0.22s; }
  .pmodal-list li:nth-child(7) { animation-delay: 0.26s; }
  .pmodal-list li:nth-child(8) { animation-delay: 0.3s; }
}
@keyframes pmodal-item-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.pmodal-list i {
  color: var(--gold-600);
  margin-top: 3px;
}
.pmodal-related {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pmodal-related-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
  display: block;
}
.pmodal-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-700);
  background: rgba(253, 185, 19, 0.12);
  border: 1px solid rgba(253, 185, 19, 0.3);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  margin: 0 8px 8px 0;
  transition:
    background 0.2s,
    transform 0.2s;
}
[data-theme="dark"] .pmodal-related-chip {
  color: var(--gold-300);
}
.pmodal-related-chip:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}
.pmodal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  align-items: center;
}
.pmodal-progress {
  height: 3px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}
.pmodal-progress-bar {
  height: 100%;
  background: var(--gold-500);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}
.pmodal-foot-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 18px;
}
.pmodal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  transition:
    background 0.2s,
    color 0.2s;
}
.pmodal-nav-btn:hover {
  background: var(--navy-700);
  color: #fff;
}
.pmodal-counter {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.pmodal-hint {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-top: 10px;
}
@media (max-width: 640px) {
  .pmodal-hint {
    display: none;
  }
}

/* ---------------------------------------------------------
   12. Formulaire multi-étapes
   --------------------------------------------------------- */
.steps-head {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.step-pip {
  flex: 1;
}
.step-pip .bar {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.step-pip .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy-500), var(--gold-500));
  transition: width 0.5s var(--ease);
}
.step-pip.done .bar i,
.step-pip.on .bar i {
  width: 100%;
}
.step-pip small {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
  display: block;
}
.step-pip.on small {
  color: var(--gold-700);
  font-weight: 700;
}
[data-theme="dark"] .step-pip.on small {
  color: var(--gold-300);
}
.form-step {
  display: none;
}
.form-step.on {
  display: block;
  animation: step-in 0.42s var(--ease-out);
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}
.chip-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-choice button {
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: 0.25s var(--ease);
}
.chip-choice button:hover {
  border-color: rgba(253, 185, 19, 0.55);
  transform: translateY(-2px);
}
.chip-choice button.on {
  background: var(--gold-500);
  border-color: transparent;
  color: var(--navy-900);
}
.field-err {
  color: #dc2626;
  font-size: 0.78rem;
  margin-top: 6px;
  display: none;
}
.field.has-err input,
.field.has-err textarea {
  border-color: #dc2626;
}
.field.has-err .field-err {
  display: block;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  color: var(--navy-700);
  border: 1px solid var(--line);
  transition: 0.25s;
}
[data-theme="dark"] .copy-btn {
  color: #cfddfb;
}
.copy-btn:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: transparent;
}

/* ---------------------------------------------------------
   13. Frise chronologique (à propos)
   --------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--gold-500),
    var(--navy-500),
    transparent
  );
}
.tl-item {
  position: relative;
  padding: 0 0 40px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--gold-500);
  box-shadow: 0 0 0 4px rgba(253, 185, 19, 0.14);
}
.tl-year {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-700);
}
[data-theme="dark"] .tl-year {
  color: var(--gold-400);
}
.tl-item h4 {
  margin: 6px 0 6px;
  font-size: 1.08rem;
}
.tl-item p {
  font-size: 0.92rem;
}

/* ---------------------------------------------------------
   14. Journal / statut système (bloc "tech")
   --------------------------------------------------------- */
.sys-panel {
  padding: 0;
  overflow: hidden;
}
.sys-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.sys-head h4 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sys-head .status-dot {
  width: 8px;
  height: 8px;
}
.sys-rows {
  padding: 8px 10px;
}
.sys-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 12px;
  transition: background 0.25s;
}
.sys-row:hover {
  background: var(--line-soft);
}
.sys-row .sr-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sys-row .sr-name i {
  color: var(--navy-600);
}
[data-theme="dark"] .sys-row .sr-name i {
  color: var(--gold-400);
}
.sys-row .sr-val {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.sys-row .sr-badge {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
[data-theme="dark"] .sys-row .sr-badge {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}
.sys-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   15. Recherche FAQ + divers
   --------------------------------------------------------- */
.faq-search {
  position: relative;
  margin-bottom: 26px;
}
.faq-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
}
.faq-search input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--glass-fill);
  outline: none;
  transition: border-color 0.25s;
}
.faq-search input:focus {
  border-color: var(--gold-500);
}
.faq-item.hidden {
  display: none;
}
.faq-empty {
  text-align: center;
  padding: 30px;
  color: var(--ink-faint);
  display: none;
}

/* Bandeau d'annonce en haut de page */
.lab-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--navy-800), var(--navy-600));
  color: #fff;
  font-size: 0.83rem;
  text-align: center;
  padding: 10px 44px 10px 20px;
}
body.has-banner {
  padding-top: 38px;
}
.lab-banner a {
  color: var(--gold-300);
  font-weight: 700;
  border-bottom: 1px solid rgba(253, 185, 19, 0.5);
}
.lab-banner button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}
.lab-banner button:hover {
  color: #fff;
}
body.has-banner .site-header {
  top: 38px;
}
@media (max-width: 640px) {
  .lab-banner {
    font-size: 0.76rem;
  }
}

/* Séparateur "circuit" enrichi */
.circuit-divider--rich {
  gap: 10px;
}
.circuit-divider--rich .node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.6;
}

/* Grain léger sur les surfaces vitrées, pour éviter le plat */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.5) 0.5px,
    transparent 0.5px
  );
  background-size: 5px 5px;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.glass {
  position: relative;
}
[data-theme="dark"] .glass::after {
  opacity: 0.12;
}
.price-card.featured::after,
.cta-band::after {
  display: none;
}

/* ---------------------------------------------------------
   16. Accessibilité et mouvement réduit
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 500;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .wm-seal,
  .split-word {
    animation: none !important;
  }
  .split-word {
    opacity: 1;
    transform: none;
  }
  .page-curtain {
    display: none !important;
  }
  .testi-track {
    transition: none;
  }
}

/* =========================================================
   CyNoLux — Hero slider (v3.1)
   Bannière plein cadre avec photo, crossfade et fondu Ken Burns.
   ========================================================= */

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: min(34vh, 320px);
  display: flex;
  align-items: center;
  margin-top: 0;
  padding: 100px 0 64px;
  background: linear-gradient(
    135deg,
    var(--navy-900),
    var(--navy-700) 55%,
    var(--navy-600)
  );
  isolation: isolate;
}
@media (max-width: 900px) {
  .hero-slider {
    min-height: auto;
    padding: 92px 0 40px;
  }
}

/* Couche média : une image par slide, superposées */
.hs-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hs-media figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hs-media figure.on {
  opacity: 1;
}
.hs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition:
    transform 8s linear,
    opacity 0.8s var(--ease);
  opacity: 0;
}
.hs-media img.loaded {
  opacity: 1;
}
.hs-media figure.on img {
  transform: scale(1);
}
/* Repli si l'image n'est pas encore déposée : dégradé propre par slide */
.hs-media figure {
  background: var(
    --slide-fallback,
    linear-gradient(140deg, var(--navy-800), var(--navy-500))
  );
}

/* Voile de lisibilité — indispensable pour le texte blanc sur photo */
.hs-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 17, 40, 0.92) 0%,
      rgba(6, 17, 40, 0.78) 42%,
      rgba(6, 17, 40, 0.32) 78%,
      rgba(6, 17, 40, 0.55) 100%
    ),
    linear-gradient(0deg, rgba(6, 17, 40, 0.75), transparent 45%);
}
@media (max-width: 900px) {
  .hs-scrim {
    background: linear-gradient(
      0deg,
      rgba(6, 17, 40, 0.94) 15%,
      rgba(6, 17, 40, 0.72) 70%,
      rgba(6, 17, 40, 0.6)
    );
  }
}

.hs-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Toutes les slides occupent la même cellule de grille : le bloc prend la
   hauteur de la plus haute et ne bouge plus d'une slide à l'autre.
   visibility (et non display:none) conserve la mesure tout en retirant
   les slides inactives du tab et des lecteurs d'écran. */
.hs-slide {
  grid-area: 1 / 1;
  max-width: 680px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.hs-slide.on {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.hs-slide .eyebrow {
  color: var(--gold-300);
}
.hs-slide .eyebrow::before {
  background: var(--gold-400);
}
.hs-slide h1,
.hs-slide h2 {
  color: #fff;
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.hs-slide h1 em,
.hs-slide h2 em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--gold-300),
    var(--gold-500) 40%,
    #fff5d8 50%,
    var(--gold-500) 60%,
    var(--gold-300)
  );
  background-size: 240% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hs-shine 5s linear 1.1s infinite;
}
.hs-slide p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 500px;
  margin-bottom: 22px;
}
@keyframes hs-shine {
  to {
    background-position: -240% center;
  }
}
.hs-slide .hero-actions {
  margin-bottom: 0;
}

/* Entrée décalée du contenu à chaque changement de slide */
.hs-slide .hs-anim {
  will-change: transform, opacity, filter;
}
.hs-slide.on .hs-anim {
  animation: hs-up 0.85s var(--ease-out) both;
}
.hs-slide.on .hs-anim:nth-child(1) {
  animation-delay: 0.04s;
}
.hs-slide.on .hs-anim:nth-child(2) {
  animation-delay: 0.15s;
}
.hs-slide.on .hs-anim:nth-child(3) {
  animation-delay: 0.26s;
}
.hs-slide.on .hs-anim:nth-child(4) {
  animation-delay: 0.37s;
}
/* Le titre profite d'un fondu enchaîné avec flou et léger zoom,
   plus doux qu'un simple glissement — signature du slider. */
.hs-slide.on h1.hs-anim,
.hs-slide.on h2.hs-anim {
  animation-name: hs-up-title;
}
@keyframes hs-up {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes hs-up-title {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
    filter: blur(9px);
    clip-path: inset(0 100% -30% 0);
  }
  55% {
    filter: blur(0);
    clip-path: inset(0 0 -30% 0);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
    clip-path: inset(0 0 -30% 0);
  }
}

/* Commandes : compteur, puces à barre de progression, flèches */
.hs-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
.hs-count {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.1em;
}
.hs-count b {
  color: var(--gold-400);
}
.hs-bars {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 280px;
}
.hs-bars button {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  padding: 0;
}
.hs-bars button i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-500);
}
.hs-bars button.on i {
  animation: hs-fill var(--hs-dur, 6500ms) linear forwards;
}
.hs-bars button.done i {
  width: 100%;
}
@keyframes hs-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.hs-arrows {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.hs-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s,
    transform 0.25s var(--ease),
    color 0.25s;
}
.hs-arrows button:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: transparent;
  transform: scale(1.07);
}
@media (max-width: 760px) {
  .hs-controls {
    bottom: 40px;
    gap: 14px;
  }
  .hs-arrows {
    display: none;
  }
  .hs-count {
    font-size: 0.7rem;
  }
}

/* Bande sous le hero : statistiques + terminal */
.hero-under {
  padding: 44px 0 0;
  position: relative;
  z-index: 2;
  margin-top: -46px;
}
.hero-under-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero-under-grid {
    grid-template-columns: 1fr;
  }
  .hero-under {
    margin-top: -30px;
  }
}
.hero-under .stat-wrap {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-under .hero-stats {
  margin: 0;
}
.hero-under .stat-chip {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 0;
  backdrop-filter: none;
}
.hero-under .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .hero-under .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hero-under .terminal {
  max-width: none;
}

/* Bannière image des pages intérieures */
.page-hero.has-media {
  color: #fff;
}
.page-hero .ph-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
}
.page-hero .ph-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.page-hero .ph-media img.loaded {
  opacity: 0.55;
}
.page-hero .ph-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(6, 17, 40, 0.92) 8%,
    rgba(6, 17, 40, 0.62) 70%,
    rgba(6, 17, 40, 0.5)
  );
}
.page-hero.has-media > .container {
  position: relative;
  z-index: 2;
}
.page-hero.has-media h1 {
  color: #fff;
}
.page-hero.has-media .eyebrow,
.page-hero.has-media .section-index {
  color: var(--gold-300);
}
.page-hero.has-media .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
}
.page-hero.has-media .breadcrumb a {
  color: var(--gold-300);
}
.page-hero.has-media .wm-page {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.09);
}
.page-hero.has-media .wm-page::after {
  color: rgba(253, 185, 19, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .hs-media img,
  .hs-media figure.on img {
    transform: none;
    transition: opacity 0.3s;
  }
  .hs-slide.on .hs-anim {
    animation: none;
  }
  .hs-slide {
    transition: none;
  }
  .hs-bars button.on i {
    animation: none;
    width: 100%;
  }
}

/* =========================================================
   CyNoLux — Emplacements images (v3.1)
   Chaque visuel se superpose au repli CSS existant : si le
   fichier manque, l'initiale ou le dégradé reste visible.
   ========================================================= */

/* Vignettes de projet */
.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  z-index: 0;
}
.project-thumb img[src] {
  opacity: 1;
}
.project-card:hover .project-thumb img {
  transform: scale(1.06);
}
.project-thumb img[src] ~ span {
  opacity: 0;
}
.project-thumb::after {
  z-index: 1;
}
.project-thumb span {
  z-index: 2;
  transition: opacity 0.4s;
}
.project-thumb img[src] + span {
  opacity: 1;
  z-index: 2;
  background: rgba(6, 17, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 1rem;
  position: absolute;
  left: 16px;
  bottom: 16px;
}

/* Avatars de témoignage */
.testi-avatar {
  position: relative;
  overflow: hidden;
}
.testi-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-avatar img[src] + span {
  display: none;
}

/* Logos partenaires */

/* Visuel d'en-tête des panneaux de service */
.svc-media {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
}
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service-detail:hover .svc-media img {
  transform: scale(1.04);
}
@media (max-width: 900px) {
  .svc-media {
    aspect-ratio: 16/8;
  }
}

/* =========================================================
   Page Services — présentation à navigation latérale
   (structure inspirée d'une UI sidebar + hero + grille)
   ========================================================= */
.svc-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) {
  .svc-layout {
    grid-template-columns: 1fr;
  }
}

.svc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 104px;
}

.svc-mobile-tabs {
  display: none;
}
@media (max-width: 980px) {
  .svc-sidebar {
    display: none;
  }
  .svc-mobile-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -20px 24px;
    padding: 2px 20px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .svc-mobile-tabs::-webkit-scrollbar {
    display: none;
  }
  .svc-mobile-tabs .filter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
}

.svc-nav-card {
  padding: 26px;
}
.svc-nav-head {
  margin-bottom: 16px;
}
.svc-nav-head .eyebrow {
  margin-bottom: 6px;
}
.svc-nav-head h3 {
  font-size: 1.15rem;
}

.svc-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  transition: background 0.3s var(--ease);
}
.svc-nav-link:hover {
  background: rgba(11, 42, 107, 0.06);
}
.svc-nav-link.active {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  box-shadow: 0 12px 26px -12px rgba(11, 42, 107, 0.5);
}
.svc-nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold-500);
  color: var(--navy-700);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: 0.3s var(--ease);
}
.svc-nav-link.active .svc-nav-icon {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold-300);
}
.svc-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.svc-nav-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-800);
}
.svc-nav-text small {
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.svc-nav-link.active .svc-nav-text strong {
  color: #fff;
}
.svc-nav-link.active .svc-nav-text small {
  color: rgba(255, 255, 255, 0.65);
}
.svc-nav-arrow {
  font-size: 0.82rem;
  color: var(--ink-faint);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}
.svc-nav-link:hover .svc-nav-arrow {
  transform: translateX(3px);
}
.svc-nav-link.active .svc-nav-arrow {
  color: #fff;
  transform: translateX(3px);
}

.svc-nav-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 2px 6px;
}
.svc-nav-divider::before,
.svc-nav-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.svc-nav-divider span {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  white-space: nowrap;
}
.svc-nav-link.is-produit .svc-nav-icon {
  border-color: var(--gold-500);
}
.svc-nav-link.is-produit.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 12px 26px -12px rgba(253, 185, 19, 0.5);
}
.svc-nav-link.is-produit.active .svc-nav-icon {
  background: rgba(7, 25, 56, 0.14);
  color: var(--navy-900);
}
.svc-nav-link.is-produit.active .svc-nav-text strong,
.svc-nav-link.is-produit.active .svc-nav-text small {
  color: var(--navy-900);
}
.svc-nav-link.is-produit.active .svc-nav-arrow {
  color: var(--navy-900);
}

.svc-tab-divider {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  background: var(--line);
  margin: 6px 2px;
}
.filter-btn.is-produit.active {
  background: var(--gold-500);
  color: var(--navy-900);
}

.svc-assist-card {
  padding: 28px;
  text-align: center;
}
.svc-assist-card .card-icon {
  margin: 0 auto 16px;
}
.svc-assist-card h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.svc-assist-card p {
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.svc-assist-card .btn {
  width: 100%;
}

.svc-hero-banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
}
.svc-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(6, 17, 40, 0.92) 12%,
    rgba(6, 17, 40, 0.4) 62%,
    rgba(6, 17, 40, 0.12) 100%
  );
}
.svc-hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px;
  color: #fff;
}
.svc-hero-text .eyebrow {
  margin-bottom: 10px;
}
.svc-hero-text h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.svc-hero-text p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0;
  font-size: 0.94rem;
}
@media (max-width: 600px) {
  .svc-hero-banner {
    aspect-ratio: 4/5;
  }
  .svc-hero-text {
    padding: 22px;
  }
}

.svc-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .svc-feature-grid {
    grid-template-columns: 1fr;
  }
}
.svc-feature-card {
  padding: 26px;
}
.svc-feature-card .card-icon {
  margin-bottom: 16px;
}
.svc-feature-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.svc-feature-card p {
  font-size: 0.86rem;
  margin: 0;
}

.svc-tech {
  margin-bottom: 28px;
}
.svc-tech h5 {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

/* ---- CyNoLux Industry : du logiciel à la machine ---- */
.ind-flow {
  margin: 8px 0 32px;
}
.ind-flow-head {
  margin-bottom: 22px;
}
.ind-flow-head .eyebrow {
  margin-bottom: 8px;
}
.ind-flow-head h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.ind-flow-head p {
  font-size: 0.88rem;
  max-width: 640px;
}
.ind-flow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  margin-top: 8px;
}
.ind-flow-steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line);
  z-index: 1;
}
.ind-flow-step {
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}
.ind-fnum {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  color: var(--gold-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 auto 12px;
  background: var(--surface-solid);
}
.ind-flow-step h4 {
  font-size: 0.84rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}
[data-theme="dark"] .ind-flow-step h4 {
  color: #eaf1ff;
}
.ind-flow-step p {
  font-size: 0.75rem;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 900px) {
  .ind-flow-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ind-flow-steps::before {
    display: none;
  }
  .ind-flow-step {
    text-align: left;
    padding-left: 52px;
    position: relative;
  }
  .ind-fnum {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}
.ind-flow-example {
  margin-top: 36px;
  background: var(--navy-800);
  color: #fff;
  padding: 28px 30px;
  border-radius: var(--r-md);
}
.ind-flow-example h5 {
  font-family: var(--f-display);
  color: var(--gold-400);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ind-flow-example p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  max-width: 760px;
  margin: 0;
}
.ind-equip-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ind-equip-tags .tool-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

[data-theme="dark"] .svc-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .svc-nav-text strong {
  color: #eaf1ff;
}

/* =========================================================
   CyNoLux — Bande de preuve unique (v3.2)
   Remplace les quatre bandes empilées sous le hero :
   piliers + terminal + chiffres dans un seul panneau.
   ========================================================= */
.proof-band {
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: -58px;
}
@media (max-width: 980px) {
  .proof-band {
    margin-top: -34px;
  }
}
.proof-panel {
  padding: 0;
  overflow: hidden;
}

/* Chiffres clés : bande fine, seul contenu du panneau */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof-stats .stat-chip {
  padding: 20px 26px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}
.proof-stats .stat-chip + .stat-chip {
  border-left: 1px solid var(--line);
}
.proof-stats .stat-chip strong {
  font-size: 1.7rem;
}
@media (max-width: 760px) {
  .proof-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-stats .stat-chip:nth-child(3) {
    border-left: none;
  }
  .proof-stats .stat-chip:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* =========================================================
   CyNoLux — Finitions (v3.3)
   Accessibilité clavier, contraste, performance de rendu.
   ========================================================= */

/* Anneau de focus visible uniquement au clavier, jamais à la souris */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible,
.cmdk-item:focus-visible,
.nav-menu a:focus-visible {
  outline-offset: 4px;
}
[data-theme="dark"] :focus-visible {
  outline-color: var(--gold-400);
}

/* Le navigateur ne calcule la mise en page des sections basses
   qu'au moment où elles approchent de l'écran. */
section:not(.hero-slider):not(.proof-band):not(.page-hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* Confort de lecture en contraste renforcé */
@media (prefers-contrast: more) {
  :root {
    --ink-muted: #2a3d5f;
    --ink-faint: #41557a;
    --line: rgba(11, 42, 107, 0.24);
  }
  .wm-canvas,
  .wm-ribbon,
  .wm-seal-wrap,
  .wm-mark,
  .wm-page {
    display: none;
  }
  .glass {
    background: var(--white);
    border-color: rgba(11, 42, 107, 0.3);
  }
  [data-theme="dark"] .glass {
    background: #0b1730;
    border-color: rgba(255, 255, 255, 0.32);
  }
}

/* Cible tactile minimale de 44 px sur mobile */
@media (max-width: 760px) {
  .nav-menu a,
  .mobile-nav a,
  .filter-btn,
  .chip-choice button,
  .testi-nav button,
  .lab-fab button,
  .lab-fab a {
    min-height: 44px;
  }
}

/* Empêche le décalage de mise en page quand la barre de défilement disparaît */
html {
  scrollbar-gutter: stable;
}

/* Impression : les images lourdes ne sortent pas */
@media print {
  .hs-media,
  .ph-media,
  .svc-media,
  .stack-marquee-wrap {
    display: none !important;
  }
  .hero-slider {
    min-height: auto;
    padding: 40px 0;
    background: none;
  }
  .hs-slide h1,
  .hs-slide h2,
  .hs-slide p {
    color: #000 !important;
  }
  .hs-slides {
    display: block;
  }
  .hs-slide {
    display: none;
  }
  .hs-slide.on {
    display: block;
    visibility: visible;
    opacity: 1;
  }
  section {
    content-visibility: visible !important;
    break-inside: avoid;
  }
}

/* Texte réservé aux lecteurs d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   CyNoLux — Hero à deux colonnes (v3.4)
   Le terminal accompagne les slides au lieu d'occuper une bande.
   ========================================================= */
.hs-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
  padding-bottom: 44px;
}
/* Conteneur des slides : grille à une cellule, toutes les slides s'y superposent */
.hs-slides {
  min-width: 0;
  display: grid;
  grid-template-columns: 100%;
  align-items: start;
}
.hs-slide {
  max-width: none;
}

.hs-term {
  min-width: 0;
  position: relative;
  animation: hs-term-in 0.9s var(--ease-out) both;
  animation-delay: 0.25s;
}
@keyframes hs-term-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Halo diffus derrière le terminal : décolle le panneau de la photo */
.hs-term::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      58% 52% at 68% 18%,
      rgba(253, 185, 19, 0.2),
      transparent 68%
    ),
    radial-gradient(
      62% 58% at 26% 82%,
      rgba(62, 107, 219, 0.3),
      transparent 70%
    );
  filter: blur(42px);
}

/* Verre dépoli : la photo du hero transparaît, floutée, sous le terminal.
   C'est ce qui donne la profondeur — le panneau flotte au lieu d'être collé. */
.hs-term .terminal {
  max-width: none;
  width: 100%;
  background: linear-gradient(
    165deg,
    rgba(9, 22, 52, 0.6),
    rgba(10, 34, 88, 0.46)
  );
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 46px 100px -34px rgba(0, 0, 0, 0.82),
    0 10px 30px -14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* Reflet oblique sur la vitre */
.hs-term .terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 38%,
    transparent 100%
  );
}
.hs-term .terminal {
  position: relative;
}
.hs-term .terminal-bar {
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hs-term .terminal-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hs-term .terminal-body {
  min-height: 150px;
}

/* Repli quand le flou d'arrière-plan n'est pas géré : on repasse en opaque,
   sinon le texte deviendrait illisible sur la photo. */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .hs-term .terminal {
    background: linear-gradient(
      165deg,
      rgba(9, 22, 52, 0.95),
      rgba(10, 34, 88, 0.95)
    );
  }
}

@media (max-width: 1080px) {
  .hs-grid {
    gap: 36px;
    grid-template-columns: 1fr 0.9fr;
  }
}
@media (max-width: 900px) {
  .hs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }
  .hs-term {
    display: none;
  }
}

/* La bande de chiffres devient une simple réglette */
.proof-band {
  margin-top: -46px;
}
.proof-stats .stat-chip {
  padding: 22px 26px;
}
@media (max-width: 980px) {
  .proof-band {
    margin-top: -30px;
  }
}

/* ===========================================================
   CyNoLux — Sections portées depuis SamaTech (navy + or)
   A) Pourquoi CyNoLux   B) Fonctionnalités
   C) Partenaires        D) Témoignages
   E) Articles récents
   =========================================================== */

/* ---------- A) Pourquoi CyNoLux ---------- */
.cnx-why-us__header{ max-width:760px; margin:0 auto 56px; text-align:center; }
.cnx-why-us__title{ font-size:clamp(2.2rem,5vw,3.4rem); display:inline-flex; align-items:baseline; gap:10px; background:linear-gradient(120deg, var(--navy-700), var(--navy-500) 45%, var(--gold-500) 90%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.cnx-why-us__excl{ -webkit-text-fill-color:var(--gold-500); color:var(--gold-500); }
.cnx-why-us__underline{ display:flex; align-items:center; justify-content:center; gap:10px; margin:18px auto 0; }
.cnx-why-us__underline span{ width:56px; height:2px; border-radius:2px; background:linear-gradient(90deg, transparent, var(--gold-500)); }
.cnx-why-us__underline span:last-child{ background:linear-gradient(90deg, var(--gold-500), transparent); }
.cnx-why-us__underline i{ width:9px; height:9px; border-radius:50%; background:var(--gold-500); box-shadow:0 0 0 4px rgba(253,185,19,.22); flex-shrink:0; }
.cnx-why-us__subtitle{ margin-top:20px; font-size:1.05rem; }
.cnx-why-us__highlight{ color:var(--navy-700); font-weight:700; }
[data-theme="dark"] .cnx-why-us__highlight{ color:var(--gold-300); }

.cnx-why-us__content{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:center; }
@media (max-width:980px){ .cnx-why-us__content{ grid-template-columns:1fr; gap:36px; } }

.cnx-why-us__frame{ position:relative; border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--glass-shadow); aspect-ratio:4/5; }
.cnx-why-us__frame img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 25%; }
.cnx-why-us__frame::after{ content:""; position:absolute; inset:0; background:linear-gradient(200deg, rgba(7,25,56,.05), rgba(7,25,56,.55) 100%); }
.cnx-why-us__badge{ position:absolute; left:22px; bottom:22px; z-index:1; display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:var(--r-pill); background:rgba(255,255,255,.92); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:0 14px 30px -10px rgba(7,25,56,.4); }
.cnx-why-us__badge i{ color:var(--gold-600); font-size:1.1rem; }
.cnx-why-us__badge span{ font-weight:700; font-size:.85rem; color:var(--navy-800); }

.cnx-why-us__track{ position:relative; min-height:460px; }
.cnx-why-us__card{
  --depth:0;
  position:absolute; inset:0; height:100%;
  background:var(--glass-fill); backdrop-filter:blur(22px) saturate(160%); -webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid var(--glass-border); border-radius:var(--r-lg); padding:40px 38px; box-shadow:var(--glass-shadow-sm);
  transform:translate(calc(var(--depth) * 16px), calc(var(--depth) * 18px)) rotate(calc(var(--depth) * 3deg)) scale(calc(1 - var(--depth) * 0.035));
  transform-origin:bottom left;
  z-index:calc(10 - var(--depth));
  opacity:calc(1 - var(--depth) * 0.14);
  transition:transform .55s var(--ease), opacity .5s var(--ease), box-shadow .4s var(--ease);
  pointer-events:none;
}
.cnx-why-us__card.is-front{ pointer-events:auto; box-shadow:var(--glass-shadow); }
.cnx-why-us__slider:hover .cnx-why-us__card{
  transform:translate(0, calc(var(--depth) * 12px)) rotate(0deg) scale(calc(1 - var(--depth) * 0.02));
}
@media (max-width:640px){ .cnx-why-us__track{ min-height:520px; } }

/* La carte qui arrive au premier plan "s'ouvre" : son contenu se révèle
   en cascade au lieu d'apparaître d'un bloc. */
.cnx-why-us__card > *{
  opacity:0; transform:translateY(14px);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.cnx-why-us__card.is-front > *{ animation:cnx-card-open .6s var(--ease) both; }
.cnx-why-us__card.is-front > *:nth-child(1){ animation-delay:.05s; }
.cnx-why-us__card.is-front > *:nth-child(2){ animation-delay:.12s; }
.cnx-why-us__card.is-front > *:nth-child(3){ animation-delay:.19s; }
.cnx-why-us__card.is-front > *:nth-child(4){ animation-delay:.26s; }
.cnx-why-us__card.is-front > *:nth-child(5){ animation-delay:.33s; }
@keyframes cnx-card-open{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .cnx-why-us__card > *{ opacity:1; transform:none; transition:none; animation:none; }
}
[data-theme="dark"] .cnx-why-us__card{ background:var(--glass-fill-dark); border-color:var(--glass-border-dark); }
.cnx-why-us__card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.cnx-why-us__card-icon{ width:58px; height:58px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, var(--navy-700), var(--navy-500)); color:var(--gold-300); font-size:1.5rem; box-shadow:0 12px 26px -10px rgba(11,42,107,.5); flex-shrink:0; }
.cnx-why-us__card-num{ font-family:var(--f-mono); font-size:2.2rem; font-weight:700; color:rgba(11,42,107,.12); line-height:1; }
[data-theme="dark"] .cnx-why-us__card-num{ color:rgba(255,255,255,.14); }
.cnx-why-us__card-title{ margin-bottom:10px; }
.cnx-why-us__card-sub{ font-family:var(--f-body); font-size:.98rem; font-weight:700; color:var(--navy-700); margin-bottom:10px; }
[data-theme="dark"] .cnx-why-us__card-sub{ color:var(--gold-300); }
.cnx-why-us__card-desc{ font-size:.92rem; margin-bottom:20px; }
.cnx-why-us__card-list{ display:flex; flex-direction:column; gap:10px; }
.cnx-why-us__card-list li{ display:flex; align-items:center; gap:10px; font-size:.88rem; color:var(--ink-muted); font-weight:600; }
.cnx-why-us__card-list i{ color:var(--gold-600); font-size:.95rem; }

.cnx-why-us__nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:26px; }
.cnx-why-us__prev, .cnx-why-us__next{ display:inline-flex; align-items:center; gap:10px; font-weight:700; font-size:.85rem; color:var(--navy-700); }
[data-theme="dark"] .cnx-why-us__prev, [data-theme="dark"] .cnx-why-us__next{ color:#DCE7FF; }
.cnx-why-us__prev em, .cnx-why-us__next em{ font-style:normal; }
.cnx-why-us__nav-circle{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--glass-fill); border:1px solid var(--glass-border); transition:background .3s, color .3s, transform .3s var(--ease); }
[data-theme="dark"] .cnx-why-us__nav-circle{ background:var(--glass-fill-dark); border-color:var(--glass-border-dark); }
.cnx-why-us__prev:hover .cnx-why-us__nav-circle, .cnx-why-us__next:hover .cnx-why-us__nav-circle{ background:var(--gold-500); color:var(--navy-900); transform:scale(1.06); }
.cnx-why-us__dots{ display:flex; gap:7px; }
.cnx-why-us__dots i{ width:7px; height:7px; border-radius:50%; background:rgba(11,42,107,.18); transition:.3s; cursor:pointer; }
[data-theme="dark"] .cnx-why-us__dots i{ background:rgba(255,255,255,.2); }
.cnx-why-us__dots i.on{ width:22px; border-radius:4px; background:var(--gold-500); }
@media (max-width:640px){
  .cnx-why-us__card{ padding:30px 24px; }
  .cnx-why-us__nav{ flex-wrap:wrap; }
}

/* ---------- B) Fonctionnalités ---------- */
.cnx-features__header{ max-width:760px; margin-bottom:56px; }
.cnx-features__title{ display:flex; flex-direction:column; gap:6px; }
.cnx-features__title span{ display:block; font-family:var(--f-display); font-weight:700; font-size:clamp(1.4rem,2.6vw,2rem); color:var(--ink-muted); }

.cnx-features__layout{ display:grid; grid-template-columns:1.5fr 1fr; gap:48px; align-items:start; }
@media (max-width:980px){ .cnx-features__layout{ grid-template-columns:1fr; } }

.cnx-features__grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:560px){ .cnx-features__grid{ grid-template-columns:1fr; } }
.cnx-features__card{ padding:26px 24px; border-radius:var(--r-lg); background:var(--glass-fill); border:1px solid var(--glass-border); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); transition:transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease); }
[data-theme="dark"] .cnx-features__card{ background:var(--glass-fill-dark); border-color:var(--glass-border-dark); }
.cnx-features__card:hover{ transform:translateY(-6px); box-shadow:var(--glass-shadow-sm); }
.cnx-features__card-icon{ width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; border:1.5px solid var(--gold-500); color:var(--navy-700); font-size:1.3rem; margin-bottom:16px; }
[data-theme="dark"] .cnx-features__card-icon{ color:var(--gold-300); }
.cnx-features__card h4{ font-size:1rem; margin-bottom:8px; }
.cnx-features__card p{ font-size:.85rem; margin:0; }

.cnx-features__widget{ padding:0; overflow:hidden; }
.cnx-features__widget-bar{ display:flex; align-items:center; gap:8px; padding:16px 20px; background:var(--navy-900); }
.cnx-features__widget-dot{ width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.25); }
.cnx-features__widget-dot:nth-child(1){ background:#FF5F57; }
.cnx-features__widget-dot:nth-child(2){ background:#FEBC2E; }
.cnx-features__widget-dot:nth-child(3){ background:#28C840; }
.cnx-features__widget-bar em{ margin-left:8px; font-style:normal; font-family:var(--f-mono); font-size:.72rem; color:rgba(255,255,255,.5); }
.cnx-features__widget-body{ padding:30px 26px 32px; }
.cnx-features__widget-body h4{ margin-bottom:10px; }
.cnx-features__widget-body p{ font-size:.88rem; margin-bottom:22px; }
.cnx-features__widget-rows{ display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.cnx-features__widget-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-radius:12px; background:var(--bg-soft); }
[data-theme="dark"] .cnx-features__widget-row{ background:rgba(255,255,255,.05); }
.cnx-features__widget-row span{ display:flex; align-items:center; gap:8px; font-size:.85rem; font-weight:600; color:var(--ink); }
.cnx-features__widget-row i{ color:var(--gold-600); }
.cnx-features__widget-row b{ font-family:var(--f-mono); color:var(--navy-700); }
[data-theme="dark"] .cnx-features__widget-row b{ color:var(--gold-300); }

.cnx-features__vision{ margin-top:60px; text-align:center; max-width:680px; margin-inline:auto; padding:48px 40px; border-radius:var(--r-xl); background:linear-gradient(160deg, var(--navy-800), var(--navy-600)); color:#fff; }
.cnx-features__vision h3{ color:#fff; margin-bottom:16px; }
.cnx-features__vision p{ color:rgba(255,255,255,.78); margin-bottom:26px; }
.cnx-features__vision-link{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--gold-300); transition:gap .25s; }
.cnx-features__vision-link:hover{ gap:12px; }
@media (max-width:640px){ .cnx-features__vision{ padding:34px 24px; } }

/* ---------- C) Partenaires ---------- */
.cnx-partners__header{ text-align:center; max-width:640px; margin:0 auto 52px; }
.cnx-partners__title{ display:inline-flex; align-items:center; gap:14px; }
.cnx-partners__dots{ display:inline-flex; gap:6px; }
.cnx-partners__dots span{ width:8px; height:8px; border-radius:50%; background:var(--gold-500); animation:cnx-dot-pulse 1.4s ease-in-out infinite; }
.cnx-partners__dots span:nth-child(2){ animation-delay:.2s; }
.cnx-partners__dots span:nth-child(3){ animation-delay:.4s; }
@keyframes cnx-dot-pulse{ 0%,100%{ opacity:.35; transform:scale(.8); } 50%{ opacity:1; transform:scale(1.15); } }
.cnx-partners__subtitle{ margin-top:14px; font-size:1.02rem; }

.cnx-partners__grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:22px 28px; }
@media (max-width:980px){ .cnx-partners__grid{ grid-template-columns:repeat(3,1fr); gap:30px 24px; } }
@media (max-width:560px){ .cnx-partners__grid{ grid-template-columns:repeat(2,1fr); gap:28px 18px; } }

/* Pile de fiches : deux feuilles décalées/tournées derrière la carte visible,
   qui s'écartent davantage au survol pour un effet de profondeur. */
.cnx-partners__item{ position:relative; aspect-ratio:4/3; }
.cnx-partners__item::before,
.cnx-partners__item::after{
  content:""; position:absolute; inset:0; border-radius:var(--r-lg);
  background:var(--glass-fill-strong); border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow-sm);
  transition:transform .45s var(--ease), opacity .4s var(--ease);
}
[data-theme="dark"] .cnx-partners__item::before,
[data-theme="dark"] .cnx-partners__item::after{ background:var(--glass-fill-dark); border-color:var(--glass-border-dark); }
.cnx-partners__item::after{ z-index:0; opacity:.4; transform:rotate(6deg) translate(7px,7px); }
.cnx-partners__item::before{ z-index:1; opacity:.7; transform:rotate(-4deg) translate(-4px,5px); }
.cnx-partners__item:hover::after{ opacity:.6; transform:rotate(10deg) translate(13px,12px); }
.cnx-partners__item:hover::before{ opacity:.85; transform:rotate(-8deg) translate(-9px,10px); }

.cnx-partners__card{ position:absolute; inset:0; z-index:2; border-radius:var(--r-lg); overflow:hidden; background:var(--glass-fill); border:1px solid var(--glass-border); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); box-shadow:var(--glass-shadow-sm); transition:transform .4s var(--ease), box-shadow .4s var(--ease); }
[data-theme="dark"] .cnx-partners__card{ background:var(--glass-fill-dark); border-color:var(--glass-border-dark); }
.cnx-partners__item:hover .cnx-partners__card{ transform:translateY(-8px) rotate(-1.5deg); box-shadow:var(--glass-shadow); }
.cnx-partners__logo{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:22px; }
.cnx-partners__logo img{ max-width:100%; max-height:100%; object-fit:contain; filter:saturate(.9); transition:transform .35s var(--ease); }
.cnx-partners__item:hover .cnx-partners__logo img{ transform:scale(1.06); }
.cnx-partners__overlay{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; text-align:center; padding:16px; background:linear-gradient(160deg, var(--navy-800), var(--navy-600)); opacity:0; transform:translateY(10px); transition:opacity .35s var(--ease), transform .35s var(--ease); }
.cnx-partners__item:hover .cnx-partners__overlay{ opacity:1; transform:translateY(0); }
.cnx-partners__overlay h4{ color:#fff; font-size:1.05rem; }
.cnx-partners__overlay p{ color:var(--gold-300); font-size:.8rem; font-weight:600; }
.cnx-partners__sparkle{ position:absolute; width:5px; height:5px; border-radius:50%; background:var(--gold-400); box-shadow:0 0 8px 2px rgba(253,185,19,.7); }
.cnx-partners__sparkle:nth-child(3){ top:16%; left:18%; }
.cnx-partners__sparkle:nth-child(4){ top:24%; right:16%; }
.cnx-partners__sparkle:nth-child(5){ bottom:18%; left:44%; }

.cnx-partners__cta{ margin-top:56px; border-radius:var(--r-xl); padding:56px 48px; text-align:center; background:linear-gradient(135deg, var(--navy-900), var(--navy-700)); position:relative; overflow:hidden; }
.cnx-partners__cta::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% 20%, rgba(253,185,19,.18), transparent 55%); pointer-events:none; }
.cnx-partners__cta-content{ position:relative; z-index:1; max-width:560px; margin-inline:auto; }
.cnx-partners__cta-content h3{ color:#fff; margin-bottom:14px; }
.cnx-partners__cta-content p{ color:rgba(255,255,255,.78); margin-bottom:28px; }
@media (max-width:640px){ .cnx-partners__cta{ padding:40px 26px; } }

/* ---------- D) Témoignages ---------- */
.cnx-testimonials__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media (max-width:980px){ .cnx-testimonials__grid{ grid-template-columns:1fr; max-width:560px; margin-inline:auto; } }

/* Pile de fiches, même principe que les cartes partenaires :
   deux feuilles décalées/tournées derrière la carte visible. */
.cnx-testimonials__card{ position:relative; }
.cnx-testimonials__card::before,
.cnx-testimonials__card::after{
  content:""; position:absolute; inset:0; border-radius:var(--r-lg);
  background:var(--glass-fill-strong); border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow-sm);
  transition:transform .45s var(--ease), opacity .4s var(--ease);
}
[data-theme="dark"] .cnx-testimonials__card::before,
[data-theme="dark"] .cnx-testimonials__card::after{ background:var(--glass-fill-dark); border-color:var(--glass-border-dark); }
.cnx-testimonials__card::after{ z-index:0; opacity:.4; transform:rotate(5deg) translate(7px,7px); }
.cnx-testimonials__card::before{ z-index:1; opacity:.7; transform:rotate(-3.5deg) translate(-4px,5px); }
.cnx-testimonials__card:hover::after{ opacity:.6; transform:rotate(9deg) translate(13px,12px); }
.cnx-testimonials__card:hover::before{ opacity:.85; transform:rotate(-7deg) translate(-9px,10px); }

.cnx-testimonials__body{ position:relative; z-index:2; padding:38px 32px; border-radius:var(--r-lg); background:var(--glass-fill); border:1px solid var(--glass-border); backdrop-filter:blur(22px) saturate(160%); -webkit-backdrop-filter:blur(22px) saturate(160%); box-shadow:var(--glass-shadow-sm); display:flex; flex-direction:column; height:100%; transition:transform .4s var(--ease), box-shadow .4s var(--ease); }
[data-theme="dark"] .cnx-testimonials__body{ background:var(--glass-fill-dark); border-color:var(--glass-border-dark); }
.cnx-testimonials__card:hover .cnx-testimonials__body{ transform:translateY(-8px) rotate(-1deg); box-shadow:var(--glass-shadow); }
.cnx-testimonials__badge{ position:absolute; top:-12px; right:24px; background:linear-gradient(135deg, var(--gold-500), var(--gold-600)); color:var(--navy-900); font-family:var(--f-mono); font-size:.68rem; font-weight:700; letter-spacing:.04em; padding:6px 14px; border-radius:var(--r-pill); box-shadow:0 10px 20px -8px rgba(253,185,19,.55); }
.cnx-testimonials__stars{ display:flex; gap:3px; color:var(--gold-500); font-size:.9rem; margin-bottom:18px; }
.cnx-testimonials__quote{ font-size:.96rem; color:var(--ink-muted); line-height:1.7; margin-bottom:26px; flex:1; }
.cnx-testimonials__profile{ display:flex; align-items:center; gap:14px; padding-top:20px; border-top:1px solid rgba(11,42,107,.1); }
[data-theme="dark"] .cnx-testimonials__profile{ border-top-color:rgba(255,255,255,.12); }
.cnx-testimonials__avatar{ width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0; border:2px solid var(--gold-500); }
.cnx-testimonials__avatar img{ width:100%; height:100%; object-fit:cover; }
.cnx-testimonials__profile h3{ font-size:.98rem; color:var(--navy-800); }
[data-theme="dark"] .cnx-testimonials__profile h3{ color:#EAF1FF; }
.cnx-testimonials__profile h4{ font-size:.78rem; font-weight:600; color:var(--ink-faint); margin-top:2px; }
@media (max-width:640px){ .cnx-testimonials__body{ padding:30px 24px; } }

/* ---------- E) Articles récents ---------- */
.cnx-articles__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
@media (max-width:1080px){ .cnx-articles__grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .cnx-articles__grid{ grid-template-columns:1fr; } }

.cnx-articles__card{ position:relative; overflow:hidden; border-radius:var(--r-lg); background:var(--glass-fill-strong); border:1px solid var(--glass-border); box-shadow:var(--glass-shadow-sm); display:flex; flex-direction:column; transition:transform .4s var(--ease), box-shadow .4s var(--ease); }
[data-theme="dark"] .cnx-articles__card{ background:rgba(255,255,255,.045); border-color:var(--glass-border-dark); }
.cnx-articles__card:hover{ transform:translateY(-6px); box-shadow:var(--glass-shadow); }
.cnx-articles__badges{ position:absolute; top:16px; left:16px; right:16px; z-index:2; display:flex; justify-content:space-between; gap:8px; }
.cnx-articles__badge{ font-family:var(--f-mono); font-size:.66rem; font-weight:700; letter-spacing:.03em; padding:6px 12px; border-radius:var(--r-pill); background:rgba(7,25,56,.7); color:#fff; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.cnx-articles__badge--accent{ background:linear-gradient(135deg, var(--gold-500), var(--gold-600)); color:var(--navy-900); }
.cnx-articles__image{ aspect-ratio:3/2; overflow:hidden; }
.cnx-articles__image img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.cnx-articles__card:hover .cnx-articles__image img{ transform:scale(1.08); }
.cnx-articles__meta{ display:flex; gap:16px; padding:18px 22px 0; font-family:var(--f-mono); font-size:.72rem; color:var(--ink-faint); }
.cnx-articles__meta i{ color:var(--gold-600); margin-right:5px; }
.cnx-articles__title{ padding:12px 22px 0; font-size:1.05rem; line-height:1.35; }
.cnx-articles__excerpt{ padding:10px 22px 0; font-size:.86rem; flex:1; }
.cnx-articles__link{ display:inline-flex; align-items:center; gap:8px; margin:18px 22px 24px; font-weight:700; font-size:.85rem; color:var(--navy-700); transition:gap .25s; }
[data-theme="dark"] .cnx-articles__link{ color:var(--gold-300); }
.cnx-articles__link:hover{ gap:12px; }

.cnx-articles__overlay{ position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; justify-content:center; padding:30px; background:linear-gradient(165deg, rgba(11,42,107,.94), rgba(7,25,56,.96)); opacity:0; transform:translateY(12px); transition:opacity .4s var(--ease), transform .4s var(--ease); }
.cnx-articles__card:hover .cnx-articles__overlay{ opacity:1; transform:translateY(0); }
.cnx-articles__overlay h4{ color:#fff; font-size:1.1rem; margin-bottom:12px; }
.cnx-articles__overlay p{ color:rgba(255,255,255,.82); font-size:.88rem; margin-bottom:20px; }
.cnx-articles__overlay a{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.85rem; color:var(--gold-300); align-self:flex-start; }

/* ===========================================================
   CyNoLux — Finitions de lisibilité
   =========================================================== */

/* Le bandeau de chiffres chevauche volontairement le hero : il repose
   donc sur DEUX fonds à la fois, l'un sombre, l'autre clair. Un panneau
   translucide y perdait tout contraste. On lui donne une surface pleine :
   les chiffres restent lisibles quelle que soit la section derrière. */
.proof-panel {
  background: var(--white);
  border: 1px solid rgba(11, 42, 107, 0.08);
  border-radius: var(--r-lg, 20px);
  box-shadow: 0 22px 50px -26px rgba(11, 42, 107, 0.45);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.proof-stats .stat-chip strong { color: var(--navy-700); }
.proof-stats .stat-chip span { color: var(--ink-muted); }
.proof-stats .stat-chip + .stat-chip { border-left-color: rgba(11, 42, 107, 0.1); }

[data-theme="dark"] .proof-panel {
  background: var(--navy-900);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .proof-stats .stat-chip strong { color: var(--white); }
[data-theme="dark"] .proof-stats .stat-chip span { color: rgba(255, 255, 255, 0.62); }
[data-theme="dark"] .proof-stats .stat-chip + .stat-chip { border-left-color: rgba(255, 255, 255, 0.1); }
