/* ============================================================
   DEVALEX — Feuille de style (Bootstrap 5 + Poppins)
   ------------------------------------------------------------
   Sommaire :
     1.  VARIABLES & THÈME
     2.  BASE / RESET / SCROLL (Lenis, scroll fluide)
     3.  TYPO & UTILITAIRES
     4.  BOUTONS & BADGES
     5.  HEADER (liquid glass) + MENU MOBILE
     6.  SWITCHER WEB / MOBILE
     7.  HERO — VISUEL LAPTOP (3D)
     8.  HERO — VISUEL SMARTPHONE (3D)
     9.  HERO FIXE + CONTENU QUI GLISSE
     10. SECTIONS DE CONTENU & COMPOSANTS
     11. RÉALISATIONS — INDEX TYPOGRAPHIQUE
     12. FOOTER
     13. RESPONSIVE ≤ 991.98px (bloc unique tablette/smartphone)
     14. CHANGEMENT DE PRODUIT — VIEW TRANSITIONS + TEXTE
     15. PREFERS-REDUCED-MOTION
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* ============================================================
   1. VARIABLES & THÈME
   ============================================================ */

:root {
  --devalex-accent: #2563eb;
  --devalex-accent-light: #3b82f6;
  --devalex-accent-dark: #1d4ed8;
  --devalex-ink: #0f172a;
  --devalex-muted: #64748b;
  --devalex-secondary: #475569;
  --devalex-border: rgba(15, 23, 42, 0.08);
  --devalex-bg-soft: #fafafa;
  --devalex-radius-lg: 1.5rem;
  --devalex-header-height: 5rem;
  --devalex-glass-bg: rgba(255, 255, 255, 0.8);
  --devalex-glass-blur: 8px;
  --bs-body-font-family: "Poppins", system-ui, sans-serif;
  --bs-primary: var(--devalex-accent);
  --bs-primary-rgb: 37, 99, 235;
  --bs-body-color: var(--devalex-ink);
  --bs-link-color: var(--devalex-accent);
  --bs-link-hover-color: var(--devalex-accent-light);
}

[data-service="mobile"] {
  --devalex-accent: #f97316;
  --devalex-accent-light: #fb923c;
  --devalex-accent-dark: #ea580c;
  --bs-primary: #f97316;
  --bs-primary-rgb: 249, 115, 22;
}

[data-service="web"] .show-mobile { display: none !important; }
[data-service="mobile"] .show-web { display: none !important; }

.nav-link-custom,
.chip-tech,
.check-icon,
.step-number,
.contact-perk,
.footer-link {
  transition: color 0.45s ease, background-color 0.45s ease,
              background-image 0.45s ease, border-color 0.45s ease,
              box-shadow 0.45s ease, fill 0.45s ease;
}

/* ============================================================
   2. BASE / RESET / SCROLL (Lenis, scroll fluide)
   ============================================================ */

html {
  scroll-padding-top: var(--devalex-header-height);
}

html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--devalex-ink);
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: var(--devalex-header-height);
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   3. TYPO & UTILITAIRES
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-muted-custom { color: var(--devalex-muted) !important; }
.text-secondary-custom { color: var(--devalex-secondary) !important; }
.bg-soft { background-color: var(--devalex-bg-soft) !important; }

/* ============================================================
   4. BOUTONS & BADGES
   ============================================================ */

.btn-press {
  background: var(--devalex-accent);
  border: none;
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: 0 6px 0 var(--devalex-accent-dark);
  transition: background-color 0.2s ease, transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-press:hover { background: var(--devalex-accent-light); color: #fff; }
.btn-press:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--devalex-accent-dark);
}

.btn-outline-press {
  background: #fff;
  color: var(--devalex-accent);
  border: 2px solid var(--devalex-accent);
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: 0 6px 0 var(--devalex-accent-dark);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-outline-press:hover { background: var(--devalex-accent); color: #fff; }
.btn-outline-press:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--devalex-accent-dark);
}

.btn-particle {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--devalex-accent);
  pointer-events: none;
  z-index: 1080;
}

.card-devalex {
  border: 1px solid var(--devalex-border);
  border-radius: var(--devalex-radius-lg);
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
}

.section-padding { padding: clamp(4.5rem, 3rem + 9vw, 7rem) 0; }

/* ============================================================
   5. HEADER (liquid glass) + MENU MOBILE
   ============================================================ */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  width: 100%;
  background: var(--devalex-glass-bg);
  backdrop-filter: blur(var(--devalex-glass-blur));
  -webkit-backdrop-filter: blur(var(--devalex-glass-blur));
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 24px rgba(15, 23, 42, 0.06);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

#site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: var(--devalex-accent);
  transition: background 0.35s ease;
  pointer-events: none;
}

#site-header .navbar {
  position: static;
  background: transparent !important;
  padding: 0;
}

#site-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(var(--devalex-glass-blur));
  -webkit-backdrop-filter: blur(var(--devalex-glass-blur));
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 6px 28px rgba(15, 23, 42, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--devalex-header-height);
}

.navbar-logo {
  display: block;
  height: 2rem;
  width: auto;
}

.navbar-brand {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
}

@media (min-width: 992px) {
  #site-header[data-scrolled="true"] {
    --devalex-header-height: 4.5rem;
  }

  #site-header[data-scrolled="true"] .navbar-inner {
    min-height: 4.5rem;
  }

  .navbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    transition: min-height 0.4s ease;
  }

  .navbar-brand { grid-column: 1; }

  .nav-desktop {
    grid-column: 2;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
  }

  .navbar-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.nav-desktop { display: flex; }

.nav-link-custom {
  color: var(--devalex-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.nav-link-custom:hover {
  color: var(--devalex-accent);
  background: rgba(var(--bs-primary-rgb), 0.08);
}

.nav-link-custom.is-active {
  color: var(--devalex-accent);
  background: rgba(var(--bs-primary-rgb), 0.10);
  font-weight: 600;
}

.navbar-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.navbar-burger:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.03);
}

.navbar-burger-line {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: var(--devalex-ink);
}

.mobile-drawer.offcanvas {
  --bs-offcanvas-zindex: 1060;
  --bs-offcanvas-width: 80vw;
  width: 80vw;
  max-width: 80vw;
  top: 0;
  height: 100vh;
  height: 100dvh;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.78) 100%
  );
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: 8px 0 40px rgba(15, 23, 42, 0.1);
  z-index: 1060;
}

.offcanvas-backdrop {
  z-index: 1055 !important;
}

.mobile-drawer .offcanvas-header {
  padding: 1.125rem 1.25rem 0.5rem;
  border: none;
  justify-content: flex-start;
}

.mobile-drawer .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.5rem;
}

.btn-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  color: var(--devalex-ink);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-drawer-close:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.03);
}

.mobile-drawer-label {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--devalex-muted);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  flex: 1;
}

.mobile-nav-links a {
  display: block;
  width: 100%;
  padding: 0.9rem 0;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--devalex-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-nav-links a:hover {
  color: var(--devalex-accent);
  padding-left: 0.35rem;
}

.mobile-nav-links a.is-active {
  color: var(--devalex-accent);
  font-weight: 600;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ============================================================
   6. SWITCHER WEB / MOBILE
   ============================================================ */

.service-switcher {
  --switch-index: 0;
  --switch-pad: 0.1875rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding: var(--switch-pad);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 12px rgba(15, 23, 42, 0.05);
}

.navbar-actions .service-switcher {
  width: auto;
  min-width: 20.5rem;
}

.service-switcher-capsule {
  position: absolute;
  top: var(--switch-pad);
  left: var(--switch-pad);
  width: calc((100% - (var(--switch-pad) * 2)) / 2);
  height: calc(100% - (var(--switch-pad) * 2));
  border-radius: 999px;
  background: linear-gradient(135deg, var(--devalex-accent), var(--devalex-accent-light));
  box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.35);
  transform: translateX(calc(var(--switch-index) * 100%));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.service-switcher-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 0.5625rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--devalex-secondary);
  text-align: center;
  white-space: nowrap;
  min-width: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.service-switcher-btn.is-active {
  color: #fff;
}

.service-switcher-btn:not(.is-active):hover {
  color: var(--devalex-ink);
}


/* ============================================================
   7. HERO — VISUEL LAPTOP (3D)
   ============================================================ */

.hero-lead,
.hero-title {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-title { min-height: 1.2em; }

.hero-laptop-col {
  position: relative;
  min-height: clamp(320px, 48vh, 500px);
}

.hero-laptop-wrap {
  position: relative;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-mockup {
  margin: 0;
  width: 100%;
  height: 100%;
}

.laptop-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(520px, 66vw, 770px);
  aspect-ratio: 520 / 294;
  transform: translate(-50%, -50%);
}

[data-visual].is-revealing:not(.is-revealed) .laptop-stage {
  animation: laptop-stage-enter 1.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Ombre de contact au sol (remplace les drop-shadow : un filter sur la scène
   aplatirait son espace 3D) */
.laptop-shadow {
  position: absolute;
  left: 3%;
  right: 0%;
  top: 80%;
  height: 34%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 32% at 48% 44%, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0) 72%),
    radial-gradient(60% 52% at 50% 50%, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0) 78%);
  filter: blur(4px);
}

/* La perspective vit SOUS l'élément dont le JS anime l'opacité : une opacité
   < 1 force l'aplatissement 3D du nœud qui la porte, donc le porteur de
   perspective doit être un descendant pour que la projection reste correcte
   pendant le flottement. */
.laptop-persp {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 2400px;
  perspective-origin: 50% 30%;
  container-type: size;
}

.laptop-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(-14deg + var(--ambient-spin, 0deg))) rotateX(var(--ambient-tilt, 9deg));
}

/* --- Charnière ------------------------------------------------------ */

.laptop-hinge {
  position: absolute;
  left: 18.5%;
  top: 79.9%;
  width: 63%;
  height: 3.1%;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a4b51 0%, #101115 62%, #2a2b30 100%);
  transform: translateZ(-0.6cqh);
}

/* --- Base (châssis + clavier) --------------------------------------- */

.laptop-base {
  position: absolute;
  left: 14.7%;
  top: 82%;
  width: 70.6%;
  height: 77.6%;
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  transform: rotateX(84deg);
}

.laptop-base-body {
  --base-th: 3.2cqh;
  --base-radius: 1.5cqw;
  position: relative;
  width: 100%;
  height: 100%;
  container-type: size;
  transform-style: preserve-3d;
}

.laptop-deck {
  position: absolute;
  inset: 0;
  border-radius: var(--base-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, #a7a8af 0%, #cfd0d6 8%, #dadbe0 42%, #c9cad1 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 3px rgba(15, 23, 42, 0.10);
  transform: translateZ(calc(var(--base-th) / 2));
}

/* Ombre portée du capot sur l'arrière du châssis */
.laptop-deck-shade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 16%;
  border-radius: var(--base-radius) var(--base-radius) 0 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0) 100%);
}

.laptop-speaker {
  position: absolute;
  top: 6.5%;
  width: 8.6%;
  height: 47%;
  border-radius: 0.6cqw;
  background-image: radial-gradient(circle at 50% 45%, rgba(15, 17, 23, 0.34) 22%, rgba(255, 255, 255, 0.22) 33%, transparent 42%);
  background-size: 0.9cqw 0.9cqw;
}

.laptop-speaker-left { left: 3.4%; }
.laptop-speaker-right { right: 3.4%; }

.laptop-keys {
  position: absolute;
  left: 14%;
  top: 6.5%;
  width: 72%;
  height: 47%;
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
  padding: 0.8cqw;
  border-radius: 0.9cqw;
  background: linear-gradient(180deg, #b1b2b9 0%, #bfc0c7 100%);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.28),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.5);
}

.laptop-key-row {
  display: flex;
  flex: 1;
  gap: 0.5cqw;
}

.laptop-key-row.is-fn { flex: 0.62; }

.laptop-key {
  flex: 1 1 0;
  border-radius: 0.4cqw;
  background: linear-gradient(180deg, #2c2d33 0%, #121318 100%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 1.5px rgba(0, 0, 0, 0.45);
}

.laptop-key.is-arrows {
  display: flex;
  gap: 0.35cqw;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.laptop-key.is-arrows .laptop-arrow {
  flex: 1 1 0;
  align-self: flex-end;
  height: 48%;
  border-radius: 0.3cqw;
  background: linear-gradient(180deg, #2c2d33 0%, #121318 100%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
}

.laptop-arrow-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
  align-self: stretch;
}

.laptop-key.is-arrows .laptop-arrow-col .laptop-arrow {
  flex: 1 1 0;
  height: auto;
  align-self: stretch;
}

.laptop-trackpad {
  position: absolute;
  left: 33%;
  top: 58.5%;
  width: 34%;
  height: 35.5%;
  border-radius: 1cqw;
  background: linear-gradient(175deg, #d6d7dc 0%, #c7c8cf 100%);
  box-shadow:
    inset 0 0 0 1px rgba(90, 92, 100, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 0.5px 0 rgba(255, 255, 255, 0.35);
}

/* Encoche d'ouverture du pouce, au centre du bord avant */
.laptop-deck-scoop {
  position: absolute;
  left: 45.5%;
  bottom: -0.5%;
  width: 9%;
  height: 6%;
  border-radius: 999px 999px 0 0 / 100% 100% 0 0;
  background: radial-gradient(100% 190% at 50% 100%, rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.06) 55%, transparent 78%);
}

.laptop-base-bottom {
  position: absolute;
  inset: 0;
  border-radius: var(--base-radius);
  background: linear-gradient(180deg, #86878e 0%, #6f7076 100%);
  transform: translateZ(calc(var(--base-th) / -2));
}

.laptop-base-edge {
  position: absolute;
  pointer-events: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.laptop-base-edge-left,
.laptop-base-edge-right {
  top: var(--base-radius);
  left: 50%;
  width: var(--base-th);
  height: calc(100% - var(--base-radius) * 2);
  margin-left: calc(var(--base-th) / -2);
}

.laptop-base-edge-left {
  transform: rotateY(-90deg) translateZ(calc(50cqw - var(--base-th) / 2));
  background: linear-gradient(180deg, #b3b4bb 0%, #898a91 100%);
}

.laptop-base-edge-right {
  transform: rotateY(90deg) translateZ(calc(50cqw - var(--base-th) / 2));
  background: linear-gradient(180deg, #aeafb6 0%, #83848b 100%);
}

.laptop-base-edge-rear,
.laptop-base-edge-front {
  left: var(--base-radius);
  top: 50%;
  width: calc(100% - var(--base-radius) * 2);
  height: var(--base-th);
  margin-top: calc(var(--base-th) / -2);
}

.laptop-base-edge-rear {
  transform: rotateX(90deg) translateZ(calc(50cqh - var(--base-th) / 2));
  background: linear-gradient(90deg, #74757c 0%, #97989f 50%, #74757c 100%);
}

.laptop-base-edge-front {
  transform: rotateX(-90deg) translateZ(calc(50cqh - var(--base-th) / 2));
  background:
    radial-gradient(10% 170% at 50% 0%, rgba(31, 34, 42, 0.42), transparent 70%),
    linear-gradient(180deg, #d4d5da 0%, #b9bac1 55%, #94959c 100%);
}

/* --- Capot (écran) --------------------------------------------------- */

.laptop-lid {
  --lid-open: -4deg;
  --lid-lift: 2.5cqh;
  position: absolute;
  left: 15.4%;
  top: 2.4%;
  width: 69.2%;
  height: 79.6%;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transform: translateZ(var(--lid-lift)) rotateX(calc(var(--lid-open) + var(--ambient-exit, 0) * -92deg));
}

[data-visual].is-revealing:not(.is-revealed) .laptop-lid {
  animation: laptop-lid-open 2.05s cubic-bezier(0.32, 1.12, 0.36, 1) both;
}

.laptop-lid-body {
  --lid-depth: 2.4cqh;
  --lid-radius: 2.4cqw;
  position: relative;
  width: 100%;
  height: 100%;
  container-type: size;
  transform-style: preserve-3d;
}

/* Couche médiane : remplit la silhouette quand le capot est vu par la
   tranche pendant l'ouverture */
.laptop-lid-mid {
  position: absolute;
  inset: 0;
  border-radius: var(--lid-radius);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  background: linear-gradient(165deg, #c9cad0 0%, #a3a4ab 100%);
}

.laptop-lid-edge {
  position: absolute;
  pointer-events: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.laptop-lid-edge-left,
.laptop-lid-edge-right {
  top: var(--lid-radius);
  left: 50%;
  width: var(--lid-depth);
  height: calc(100% - var(--lid-radius) * 2);
  margin-left: calc(var(--lid-depth) / -2);
}

.laptop-lid-edge-left {
  transform: rotateY(-90deg) translateZ(calc(50cqw - var(--lid-depth) / 2));
  background: linear-gradient(180deg, #c6c7cd 0%, #96979e 100%);
}

.laptop-lid-edge-right {
  transform: rotateY(90deg) translateZ(calc(50cqw - var(--lid-depth) / 2));
  background: linear-gradient(180deg, #c2c3c9 0%, #91929a 100%);
}

.laptop-lid-edge-top,
.laptop-lid-edge-bottom {
  left: var(--lid-radius);
  top: 50%;
  width: calc(100% - var(--lid-radius) * 2);
  height: var(--lid-depth);
  margin-top: calc(var(--lid-depth) / -2);
}

.laptop-lid-edge-top {
  transform: rotateX(90deg) translateZ(calc(50cqh - var(--lid-depth) / 2));
  background: linear-gradient(90deg, #c9cad0 0%, #dfe0e5 50%, #c9cad0 100%);
}

.laptop-lid-edge-bottom {
  transform: rotateX(-90deg) translateZ(calc(50cqh - var(--lid-depth) / 2));
  background: linear-gradient(90deg, #8e8f96 0%, #a5a6ad 50%, #8e8f96 100%);
}

/* Dos du capot : aluminium + logo embossé */
.laptop-lid-back {
  position: absolute;
  inset: 0;
  border-radius: var(--lid-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, 0.30), transparent 55%),
    linear-gradient(160deg, #d9dade 0%, #c3c4cb 48%, #a6a7ae 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transform: rotateY(180deg) translateZ(calc(var(--lid-depth) / 2));
}

.laptop-lid-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13%;
  aspect-ratio: 1.15 / 1;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 100% 100%, 78% 100%, 50% 32%, 22% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(90, 92, 100, 0.55), rgba(122, 124, 132, 0.35));
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

/* Face écran : contour noir bord à bord */
.laptop-lid-front {
  position: absolute;
  inset: 0;
  border-radius: var(--lid-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, #17181d 0%, #0b0c10 55%, #101116 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 0 2.5px rgba(10, 11, 14, 0.9);
  transform: translateZ(calc(var(--lid-depth) / 2));
}

.laptop-screen {
  position: absolute;
  inset: 3% 2.7% 3.8%;
  overflow: hidden;
  border-radius: 1cqw;
  background: #fff;
}

.laptop-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Écran éteint avant l'allumage pendant l'ouverture du capot */
.laptop-screen-boot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #05070c;
  opacity: 0;
}

[data-visual].is-revealing:not(.is-revealed) .laptop-screen-boot {
  animation: laptop-screen-boot 0.85s ease-out 1.2s both;
}

.laptop-screen-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
}

[data-visual].is-revealing:not(.is-revealed) .laptop-screen-glow {
  animation: laptop-screen-on 1.05s ease-out 1.3s both;
}

.laptop-screen-notch {
  position: absolute;
  left: 50%;
  top: 3%;
  width: 10.5%;
  height: 2.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0.8cqw 0.8cqw;
  background: #0b0c10;
  transform: translateX(-50%);
}

.laptop-camera {
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3b4252 0%, #10131b 70%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

@keyframes laptop-screen-boot {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes laptop-screen-on {
  0% { opacity: 0.85; }
  100% { opacity: 0; }
}

@keyframes laptop-stage-enter {
  0% {
    transform: translate(calc(-50% - 75vw), -50%);
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes laptop-lid-open {
  0%, 24% {
    transform: translateZ(var(--lid-lift)) rotateX(-96deg);
  }
  100% {
    transform: translateZ(var(--lid-lift)) rotateX(var(--lid-open, -4deg));
  }
}


/* ============================================================
   8. HERO — VISUEL SMARTPHONE (3D)
   ============================================================ */

.hero-phone-col {
  position: relative;
  min-height: clamp(360px, 48vh, 520px);
}

.hero-phone-wrap {
  position: relative;
  height: 100%;
  min-height: inherit;
}

.phone-mockup {
  margin: 0;
  width: 100%;
  height: 100%;
}

.phone-stage {
  position: absolute;
  right: clamp(0rem, 3vw, 2rem);
  top: 50%;
  width: clamp(200px, 32vw, 280px);
  aspect-ratio: 390 / 844;
  perspective: 1400px;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateY(-50%);
}

[data-visual].is-revealing:not(.is-revealed) .phone-stage {
  animation: phone-stage-enter 1.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(325deg);
}

[data-visual].is-revealing:not(.is-revealed) .phone-flip {
  animation: phone-flip-reveal 1.85s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.phone-body {
  --phone-depth: 1.5rem;
  --phone-radius: 2.5rem;
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateX(var(--ambient-phone-tilt, 5deg));
  transform-style: preserve-3d;
  container-type: size;
}

.phone-depth-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.phone-depth-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--phone-radius);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  pointer-events: none;
  background: linear-gradient(165deg, #52525b 0%, #3f3f46 42%, #27272a 100%);
}

.phone-depth-layer:nth-child(1) { transform: translateZ(calc(var(--phone-depth) * -0.4)); background: linear-gradient(165deg, #27272a 0%, #18181b 100%); }
.phone-depth-layer:nth-child(2) { transform: translateZ(calc(var(--phone-depth) * -0.2)); background: linear-gradient(165deg, #3f3f46 0%, #27272a 100%); }
.phone-depth-layer:nth-child(3) { transform: translateZ(0); background: linear-gradient(165deg, #52525b 0%, #3f3f46 45%, #27272a 100%); }
.phone-depth-layer:nth-child(4) { transform: translateZ(calc(var(--phone-depth) * 0.2)); background: linear-gradient(165deg, #71717a 0%, #52525b 100%); }
.phone-depth-layer:nth-child(5) { transform: translateZ(calc(var(--phone-depth) * 0.4)); background: linear-gradient(165deg, #71717a 0%, #52525b 55%, #3f3f46 100%); }

.phone-edge {
  position: absolute;
  pointer-events: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.phone-edge-left,
.phone-edge-right {
  top: var(--phone-radius);
  left: 50%;
  width: var(--phone-depth);
  height: calc(100% - 2 * var(--phone-radius));
  margin-left: calc(var(--phone-depth) / -2);
  background: linear-gradient(
    180deg,
    #71717a 0%,
    #52525b 16%,
    #3f3f46 50%,
    #27272a 84%,
    #18181b 100%
  );
}

.phone-edge-left { transform: rotateY(-90deg) translateZ(calc(50cqw - var(--phone-depth) / 2)); }
.phone-edge-right { transform: rotateY(90deg) translateZ(calc(50cqw - var(--phone-depth) / 2)); }

.phone-edge-top,
.phone-edge-bottom {
  left: var(--phone-radius);
  top: 50%;
  width: calc(100% - 2 * var(--phone-radius));
  height: var(--phone-depth);
  margin-top: calc(var(--phone-depth) / -2);
}

.phone-edge-top {
  transform: rotateX(90deg) translateZ(calc(50cqh - var(--phone-depth) / 2));
  background: linear-gradient(90deg, #3f3f46 0%, #52525b 50%, #3f3f46 100%);
}

.phone-edge-bottom {
  transform: rotateX(-90deg) translateZ(calc(50cqh - var(--phone-depth) / 2));
  background: linear-gradient(90deg, #27272a 0%, #18181b 50%, #27272a 100%);
}

.phone-face {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: none;
  border-radius: var(--phone-radius);
  overflow: hidden;
  padding: 0.55rem;
  box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.45);
}

.phone-face-back {
  background: linear-gradient(165deg, #1c1c1e 0%, #050505 48%, #0a0a0a 100%);
  transform: rotateY(180deg) translateZ(calc(var(--phone-depth) / 2 + 0.5px));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone-face-front {
  background: linear-gradient(160deg, #334155 0%, #0f172a 55%, #020617 100%);
  transform: rotateY(0deg) translateZ(calc(var(--phone-depth) / 2 + 0.5px));
  box-shadow:
    0 32px 64px -16px rgba(15, 23, 42, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-camera-module {
  position: absolute;
  top: 11%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 42%;
  padding: 0.65rem 0.55rem;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

.phone-lens {
  position: relative;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #5c6b82 0%, #1e293b 38%, #030712 72%);
  box-shadow:
    inset 0 0 0 2px #0a0a0a,
    inset 0 -4px 8px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-lens::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 20%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(0.5px);
}

.phone-lens::after {
  content: "";
  position: absolute;
  bottom: 18%;
  right: 16%;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.35);
}

.phone-lens-sm {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #475569 0%, #0f172a 100%);
  box-shadow: inset 0 0 0 1px #000;
}

.phone-lens-sm--flash {
  background: radial-gradient(circle at 40% 35%, #fef3c7 0%, #78716c 100%);
}

.phone-notch {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  z-index: 2;
  width: 32%;
  height: 0.4rem;
  border-radius: 999px;
  background: #020617;
  transform: translateX(-50%);
}

.phone-screen {
  overflow: hidden;
  height: 100%;
  border-radius: calc(var(--phone-radius) - 0.5rem);
  background: #fff;
}

.phone-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-home-bar {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
}

@keyframes phone-stage-enter {
  0% {
    transform: translate(calc(-100vw + 25vw), -50%);
    opacity: 0.35;
  }
  100% {
    transform: translateY(-50%);
    opacity: 1;
  }
}

@keyframes phone-flip-reveal {
  0%, 22% {
    transform: rotateY(168deg);
  }
  100% {
    transform: rotateY(325deg);
  }
}


/* ============================================================
   9. HERO FIXE + CONTENU QUI GLISSE
   ============================================================ */

.hero-section {
  position: sticky;
  top: var(--devalex-header-height);
  z-index: 0;
  min-height: calc(100svh - var(--devalex-header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.34s ease;
  will-change: transform;
  transform: translateZ(0);
}

#accueil.is-hero-hidden {
  opacity: 0;
  pointer-events: none;
}

#accueil.is-hero-unloaded {
  will-change: auto;
}

#accueil.is-hero-unloaded [data-visual],
#accueil.is-hero-unloaded .hero-bg {
  display: none !important;
}

.content-over-hero {
  position: relative;
  z-index: 1;
  background: transparent;
}

.phone-stage.is-ambient-float {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 0;
  width: clamp(215px, 23vw, 320px);
  margin: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
}

.phone-stage.is-ambient-float .phone-flip {
  animation: none !important;
  transform:
    rotateY(calc(325deg + var(--ambient-spin, 0deg)))
    rotateZ(var(--ambient-roll, 0deg));
}

.laptop-stage.is-ambient-float {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 0;
  width: clamp(520px, 66vw, 770px);
  aspect-ratio: 520 / 294;
  margin: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
}

/* La scène laptop consomme --ambient-spin / --ambient-exit dans sa règle de
   base : aucun override nécessaire en flottement. */

.content-over-hero > section {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body:has(.phone-stage.is-ambient-float) .content-over-hero > section,
body:has(.laptop-stage.is-ambient-float) .content-over-hero > section {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: rgba(255, 255, 255, 0.9);
}

.content-over-hero > section.bg-soft {
  background-color: rgba(250, 250, 250, 0.58) !important;
}

.content-over-hero > section#faq {
  background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(var(--bs-primary-rgb), 0.16) 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(var(--bs-primary-rgb), 0.07) 0%, transparent 50%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--devalex-accent), var(--devalex-accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-init.is-visible { opacity: 1; transform: none; }

.reveal-from-left,
.reveal-from-right {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.reveal-from-left { transform: translateX(calc(-1 * min(42vw, 28rem))); }
.reveal-from-right { transform: translateX(min(42vw, 28rem)); }
.reveal-from-left.is-visible,
.reveal-from-right.is-visible {
  opacity: 1;
  transform: none;
}

.realisation-body.reveal-from-left,
.realisation-body.reveal-from-right {
  transition-delay: 0.1s;
}

/* ============================================================
   RÉALISATIONS — INDEX TYPOGRAPHIQUE
   ============================================================ */

.realisations-index {
  border-top: 1px solid var(--devalex-border);
}

.realisation {
  border-bottom: 1px solid var(--devalex-border);
  overflow: clip;
}

.realisation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.realisation--flip .realisation-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.realisation--flip .realisation-media { order: 2; }
.realisation--flip .realisation-body { order: 1; }

.realisation-media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--devalex-radius-lg) - 0.25rem);
  background: var(--devalex-bg-soft);
}

.realisation-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.object-fit-contain {
  object-fit: contain;
  object-position: center;
}

@media (hover: hover) and (pointer: fine) {
  .realisation:hover .realisation-media img {
    transform: scale(1.03);
  }
}

.realisation-body {
  position: relative;
  min-width: 0;
}

.realisation-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--devalex-accent);
  margin-bottom: 0.85rem;
}

.realisation-title {
  font-size: clamp(1.85rem, 1.1rem + 2.8vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
  color: var(--devalex-ink);
}

.realisation-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 600;
  border: none;
}

.realisation-badge--web {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

.realisation-badge--mobile {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.14);
}

.realisation-tags li {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.realisation-desc {
  max-width: 38ch;
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.realisation-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--devalex-accent);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.realisation-cta:hover,
.realisation-cta:focus-visible {
  color: var(--devalex-accent-dark);
  gap: 0.75rem;
}

.realisation-cta-url {
  font-weight: 500;
  color: var(--devalex-muted);
}

.realisation-cta-url::before {
  content: "·";
  margin-inline: 0.35rem 0.45rem;
  color: var(--devalex-border);
}

.realisation-cta:hover .realisation-cta-url,
.realisation-cta:focus-visible .realisation-cta-url {
  color: inherit;
}

.realisation-cta svg {
  flex-shrink: 0;
}

.realisation-private {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--devalex-muted);
}

/* Tablette : image et contenu face à face, centrés horizontalement */
@media (min-width: 768px) and (max-width: 991.98px) {
  .realisation-grid,
  .realisation--flip .realisation-grid {
    grid-template-columns: minmax(0, 22rem) minmax(0, 22rem);
    justify-content: center;
    gap: 2rem;
  }

  .realisation-media {
    width: 100%;
  }

  .realisation-body {
    align-self: center;
  }
}

/* Mobile : vignettes intégrées à l'index typographique */
/* ============================================================
   SECTION IMMERSION
   ============================================================ */

.immersion-section {
  position: relative;
  height: 340vh;
  background-color: rgba(255, 255, 255, 0.38) !important;
}

.immersion-sticky {
  position: sticky;
  top: var(--devalex-header-height);
  height: calc(100svh - var(--devalex-header-height));
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(110% 85% at 78% 12%, rgba(var(--bs-primary-rgb), 0.1) 0%, transparent 55%),
    radial-gradient(90% 75% at 12% 92%, rgba(var(--bs-primary-rgb), 0.07) 0%, transparent 52%);
  transition: background 0.6s ease;
}

.immersion-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 55%, rgba(var(--bs-primary-rgb), 0.08) 0%, transparent 70%);
}

.immersion-overlay {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.immersion-copy { max-width: 50%; }

.immersion-title {
  color: var(--devalex-ink);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.immersion-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.immersion-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--devalex-ink);
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.2);
}

.immersion-step .step-number {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
}

.immersion-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.immersion-step p {
  font-size: 0.8rem;
  color: var(--devalex-muted);
  line-height: 1.45;
  margin: 0;
}

@media (max-height: 760px) {
  .immersion-title { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem); }
  .immersion-step { padding: 0.5rem 0.85rem; }
  .immersion-step p { font-size: 0.74rem; }
}

.immersion-sticky.is-managed [data-immersion-step] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.immersion-sticky.is-managed [data-immersion-step].is-on {
  opacity: 1;
  transform: none;
}

.immersion-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--devalex-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  transition: opacity 0.4s ease;
}

.immersion-hint-arrow {
  display: inline-block;
  animation: immersion-hint-bob 1.6s ease-in-out infinite;
}

.immersion-hint.is-hidden { opacity: 0; }

@keyframes immersion-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.immersion-fallback { height: auto; }

.immersion-fallback .immersion-sticky {
  position: relative;
  top: auto;
  height: auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.immersion-fallback .immersion-hint { display: none; }

/* ============================================================
   SOLUTIONS — GRAPHE DE NODES (reveal scroll épinglé)
   ============================================================ */

.solutions-graph {
  position: relative;
  height: 230vh;
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.solutions-graph-sticky {
  position: sticky;
  top: var(--devalex-header-height);
  height: calc(100svh - var(--devalex-header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.solutions-graph-stage {
  position: relative;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  aspect-ratio: 1000 / 620;
  max-height: 78vh;
}

.solutions-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.solutions-edge {
  fill: none;
  stroke: rgba(var(--bs-primary-rgb), 0.32);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.solutions-edge.is-on { opacity: 1; }

.solutions-node {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  width: 24rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.solutions-node.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.solutions-node--label-top { flex-direction: column-reverse; }

.solutions-node-dot {
  width: clamp(1.2rem, 2.1vw, 1.7rem);
  height: clamp(1.2rem, 2.1vw, 1.7rem);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--devalex-accent), var(--devalex-accent-light));
  box-shadow: 0 0 0 7px rgba(var(--bs-primary-rgb), 0.14), 0 8px 20px -6px rgba(15, 23, 42, 0.35);
  flex-shrink: 0;
}

.solutions-node-text {
  max-width: 23rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--devalex-border);
  border-radius: 1.3rem;
  padding: 1rem 1.6rem;
  box-shadow: 0 16px 34px -16px rgba(15, 23, 42, 0.32);
}

.solutions-node-label {
  display: block;
  line-height: 1.25;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--devalex-ink);
}

.solutions-node-desc {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--devalex-secondary);
}

.solutions-graph-fallback,
.solutions-graph-fallback .solutions-graph-sticky {
  position: relative;
  top: auto;
  height: auto;
}
.solutions-graph-fallback { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.solutions-graph-fallback .solutions-graph-stage { padding-bottom: clamp(2rem, 5vw, 3rem); }


.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 35s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.chip-tech {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--devalex-border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--devalex-secondary);
  white-space: nowrap;
}

.chip-tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
}
.chip-tech-icon svg,
.chip-tech-icon img {
  height: 1.85rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.chip-tech-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: var(--devalex-secondary);
  letter-spacing: 0.01em;
}

.marquee-wrap[data-techno-open] { cursor: pointer; }

.techno-modal-list {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.techno-modal-list li {
  margin: 0;
  padding: 0;
}
.techno-modal-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 0.6rem;
  color: var(--devalex-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.techno-modal-tab:hover { background: rgba(var(--bs-primary-rgb), 0.06); }
.techno-modal-tab.is-active {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--devalex-ink);
}
.techno-tab-icon { height: 1.4rem; width: 1.4rem; object-fit: contain; }

.techno-modal-detail {
  flex: 1 1 auto;
  border-left: 1px solid var(--devalex-border);
  padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
}
.techno-modal-panel { display: none; }
.techno-modal-panel.is-active { display: block; }
.techno-modal-panel-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.techno-panel-icon {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
}

footer {
  position: relative;
  z-index: 2;
}

.footer-accordion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-accordion-item {
  min-width: 0;
}

.footer-accordion-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  text-align: left;
  cursor: default;
}

.footer-accordion-panel {
  overflow: visible;
}

.footer-accordion-content {
  padding-top: 0.9rem;
}

.footer-accordion-icon {
  display: none;
}

.footer-link { color: var(--devalex-secondary); text-decoration: none; }
.footer-link:hover { color: var(--devalex-accent); }


/* ============================================================
   10. SECTIONS DE CONTENU & COMPOSANTS
   ============================================================ */

.section-intro { max-width: 48rem; }

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--devalex-accent);
}

.contact-perk {
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.16);
  color: var(--devalex-ink);
  font-size: 0.8rem;
}

.contact-perk .check-icon {
  width: 1.15rem;
  height: 1.15rem;
  background: rgba(var(--bs-primary-rgb), 0.18);
}

.contact-perk .check-icon svg { width: 11px; height: 11px; }

.label-section { letter-spacing: 0.18em; }

.step-number {
  width: 3rem;
  height: 3rem;
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--devalex-accent);
}

#a-propos {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ============================================================
   RESPONSIVE — max-width: 991.98px (tablette + smartphone)
   ------------------------------------------------------------
   Bloc unique après les styles de base des composants concernés.
   Le raffinement 767px des solutions reste juste après.
   ============================================================ */

@media (max-width: 991.98px) {
  :root {
    --devalex-header-height: 5rem;
  }

  #site-header[data-scrolled="true"] .navbar-inner {
    min-height: 5rem;
  }

  .navbar-inner {
    display: grid;
    grid-template-columns: 2.75rem 1fr 2.75rem;
    align-items: center;
    min-height: 5rem;
  }

  .navbar-burger { grid-column: 1; justify-self: start; }
  .navbar-brand { grid-column: 2; justify-self: center; }
  .navbar-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .navbar-spacer {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
  }
  .mobile-drawer-footer .service-switcher-btn {
    padding: 0.6875rem 0.625rem;
    font-size: 0.78125rem;
  }
  .hero-laptop-col {
    min-height: auto;
    margin-top: 0.5rem;
  }

  .hero-laptop-wrap {
    min-height: clamp(240px, 68vw, 360px);
  }

  .laptop-stage {
    width: clamp(340px, 92vw, 520px);
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-inline: auto;
    transform: none;
  }

  [data-visual].is-revealing:not(.is-revealed) .laptop-stage {
    animation: laptop-stage-enter-mobile 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes laptop-stage-enter-mobile {
    0% {
      transform: translateX(calc(-50vw + 25vw));
      opacity: 0.4;
    }
    100% {
      transform: none;
      opacity: 1;
    }
  }
  .hero-phone-col {
    min-height: auto;
    margin-top: 0.5rem;
  }

  .hero-phone-wrap {
    min-height: clamp(320px, 70vw, 420px);
  }

  .phone-stage {
    position: relative;
    right: auto;
    top: auto;
    margin-inline: auto;
    transform: none;
  }

  [data-visual].is-revealing:not(.is-revealed) .phone-stage {
    animation: phone-stage-enter-mobile 1.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes phone-stage-enter-mobile {
    0% {
      transform: translateX(calc(-50vw + 25vw));
      opacity: 0.4;
    }
    100% {
      transform: none;
      opacity: 1;
    }
  }
  /* Tablette / smartphone : on garde la partie épinglée, mais les sous-solutions
     s'empilent à la verticale en pleine largeur et apparaissent une par une. */
  .solutions-graph {
    height: 140vh;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    margin-top: clamp(1.25rem, 4vw, 2rem);
    margin-bottom: 0;
  }

  .solutions-graph-sticky { padding: 0 clamp(0.75rem, 3vw, 1.5rem); }

  .solutions-graph-stage {
    position: static;
    width: 100%;
    max-width: 32rem;
    aspect-ratio: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .solutions-graph-lines { display: none; }

  .solutions-node {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    transform: translateY(24px);
  }
  .solutions-node.is-on {
    transform: none;
  }
  .solutions-node--label-top { flex-direction: row; }

  .solutions-node-dot {
    width: 1.1rem;
    height: 1.1rem;
    box-shadow: 0 0 0 5px rgba(var(--bs-primary-rgb), 0.14), 0 6px 14px -6px rgba(15, 23, 42, 0.35);
  }

  .solutions-node-text {
    flex: 1 1 auto;
    max-width: none;
    text-align: left;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
  }

  .solutions-node-label { font-size: 0.98rem; }
  .solutions-node-desc { font-size: 0.85rem; margin-top: 0.25rem; }
  .footer-layout {
    row-gap: 2rem;
  }

  .footer-layout > :first-child {
    text-align: center;
  }

  .footer-layout > :first-child .footer-logo {
    margin-bottom: 0.25rem;
  }

  .footer-accordion {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--devalex-border);
  }

  .footer-accordion-item {
    border-bottom: 1px solid var(--devalex-border);
  }

  .footer-accordion-trigger {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
  }

  .footer-accordion-icon {
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
    border-right: 2px solid var(--devalex-muted);
    border-bottom: 2px solid var(--devalex-muted);
    transform: rotate(45deg);
    transition: transform 0.28s ease, border-color 0.28s ease;
  }

  .footer-accordion-trigger[aria-expanded="true"] .footer-accordion-icon {
    transform: rotate(225deg);
    border-color: var(--devalex-accent);
  }

  .footer-accordion-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.32s ease;
  }

  .footer-accordion-content {
    padding: 0 0 1rem;
  }
  #a-propos {
    min-height: 0;
    display: block;
  }

  #services.section-padding {
    padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  }

  #services .text-center.reveal-init:has(.btn-press) {
    margin-top: 0.75rem;
  }

  #realisations.section-padding {
    padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  #a-propos.section-padding {
    padding-top: clamp(2rem, 4vw, 3rem);
  }
}


/* Raffinements smartphone — après le bloc ≤991.98px */
@media (max-width: 767.98px) {
  .realisation-grid,
  .realisation--flip .realisation-grid {
    display: block;
    padding-block: 1.6rem;
  }

  .realisation-grid::after {
    content: "";
    display: table;
    clear: both;
  }

  .realisation-media,
  .realisation--flip .realisation-media {
    float: left;
    width: 5.75rem;
    margin: 0.1rem 1rem 0.65rem 0;
    border-radius: 0.85rem;
  }

  .realisation-media img {
    aspect-ratio: 1;
  }

  .realisation-num { margin-bottom: 0.35rem; }

  .realisation-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 0.35rem;
  }

  .realisation-tags {
    display: none !important;
  }

  .realisation-desc {
    clear: both;
    max-width: none;
    margin-top: 0.15rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
  }

  .reveal-from-left { transform: translateX(-18vw); }
  .reveal-from-right { transform: translateX(18vw); }

  .immersion-section { height: 280vh; }
  .immersion-copy { max-width: 100%; }
  .content-over-hero > section {
    background-color: rgba(255, 255, 255, 0.84);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .techno-modal-list { flex-basis: auto; flex-direction: row; flex-wrap: wrap; }
  .techno-modal-detail {
    border-left: none;
    border-top: 1px solid var(--devalex-border);
    padding-left: 0;
    padding-top: 1.25rem;
  }

  .modal-dialog-centered { min-height: auto; }
  .apropos-modal {
    max-height: 85vh;
    max-height: 85dvh;
    overflow: hidden;
  }
  .apropos-modal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .solutions-node-text { padding: 0.65rem 0.9rem; }
  .solutions-node-label { font-size: 0.92rem; }
  .solutions-node-desc { font-size: 0.8rem; line-height: 1.35; }
}

.apropos-stats { row-gap: 1.5rem; }

.apropos-stats li {
  flex: 1 1 40%;
  min-width: 10rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(var(--bs-primary-rgb), 0.35);
}

.apropos-stats .h3 { color: var(--devalex-accent); }

.badge-formule {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  color: var(--devalex-accent);
  background: rgba(var(--bs-primary-rgb), 0.1);
  font-size: 0.72rem;
}

.apropos-eyebrow { color: var(--devalex-accent); letter-spacing: 0.08em; }

.apropos-modal {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.4);
}

.apropos-modal .modal-body { padding: clamp(1.75rem, 3vw, 3rem); }

.apropos-modal-frame {
  flex: 1 1 0;
  border: 1px solid var(--devalex-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.apropos-modal-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.apropos-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--devalex-border);
  border-radius: 999px;
  background: #fff;
  color: var(--devalex-ink);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.apropos-modal-close:hover {
  background: var(--devalex-accent);
  color: #fff;
  transform: rotate(90deg);
}

.accordion {
  --bs-accordion-active-color: var(--devalex-accent);
  --bs-accordion-active-bg: rgba(var(--bs-primary-rgb), 0.06);
  --bs-accordion-btn-focus-border-color: rgba(var(--bs-primary-rgb), 0.25);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

/* ============================================================
   10c. RÉALISATIONS PLEIN ÉCRAN (écran laptop / smartphone 3D)
   ============================================================ */

/* Rail de scroll : desktop pointeur fin, Sites Web ou Apps Mobiles,
   une fois la fonctionnalité initialisée côté JS (html.realfs-ready). */
.realfs-driver { display: none; }

/* Surcouche fixe transparente ; le cadre interne est calé chaque frame sur
   l'écran réel du modèle 3D : le contenu ne peut jamais en déborder. */
.realfs {
  position: fixed;
  inset: 0;
  z-index: 520;
  visibility: hidden;
  pointer-events: none;
}

.realfs.is-on { visibility: visible; }

.realfs-frame {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  /* width / height / transform / border-radius pilotés par le JS */
}

.realfs.is-live .realfs-frame { pointer-events: auto; }

.realfs-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  will-change: transform, opacity;
  background: linear-gradient(135deg, var(--devalex-accent), var(--devalex-accent-dark));
}

.realfs-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.realfs-slide:has(.object-fit-contain) {
  background: #fff;
}

/* Voile de lisibilité sous les informations */
.realfs-slide-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 7, 12, 0.72) 0%, rgba(5, 7, 12, 0.25) 32%, transparent 55%),
    linear-gradient(to right, rgba(5, 7, 12, 0.35) 0%, transparent 40%);
}

.realfs-slide-info {
  position: absolute;
  left: clamp(1.25rem, 3.5vw, 3.25rem);
  bottom: clamp(1.25rem, 5vh, 3rem);
  max-width: min(480px, 70%);
  color: #fff;
}

.realfs-slide-title {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 600;
  margin: 0 0 0.9rem;
  color: #fff;
}

.realfs-slide-tags li {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.realfs-slide-private {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

/* HUD : compteur, points de progression, indication de scroll (dans l'écran).
   pointer-events none : il ne doit jamais intercepter un clic destiné à la diapositive. */
.realfs-hud {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.75rem);
  bottom: clamp(1.25rem, 4.5vh, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.realfs-counter {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.realfs-counter b { font-size: 1.5rem; font-weight: 600; }
.realfs-counter i { font-style: normal; opacity: 0.55; margin: 0 0.15rem; }

.realfs-dots { display: inline-flex; gap: 0.45rem; }

.realfs-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background-color 0.3s ease, width 0.3s ease;
}

.realfs-dot.is-active {
  width: 1.6rem;
  background: var(--devalex-accent-light);
}

.realfs-hint {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Pendant la phase plein écran, l'objet 3D flottant passe au-dessus des
   sections (sinon il resterait derrière leur voile translucide). */
.laptop-stage.is-ambient-float.is-realfs,
.phone-stage.is-ambient-float.is-realfs { z-index: 500; }

/* Bascule liste <-> expérience : grands écrans et tablettes (tactile inclus),
   Sites Web ou Apps Mobiles. Seul le mobile (<768px) garde la liste. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  html.realfs-ready[data-service="web"] .realfs-driver,
  html.realfs-ready[data-service="mobile"] .realfs-driver {
    display: block;
    height: calc((var(--real-slides, 2) + 2) * 100vh);
  }

  html.realfs-ready[data-service="web"] #realisations .realisations-index,
  html.realfs-ready[data-service="mobile"] #realisations .realisations-index {
    display: none;
  }

  /* Le titre reste collé en haut de l'écran pendant toute l'expérience */
  html.realfs-ready[data-service="web"] #realisations > .container,
  html.realfs-ready[data-service="mobile"] #realisations > .container {
    position: sticky;
    top: calc(var(--devalex-header-height) + 0.75rem);
    z-index: 2;
  }

  /* Fond transparent uniquement pendant l'expérience 3D (objet visible derrière) */
  html.realfs-ready[data-service="web"] #realisations,
  html.realfs-ready[data-service="mobile"] #realisations {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.realfs-ready[data-service="web"] #a-propos,
  html.realfs-ready[data-service="mobile"] #a-propos {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Contenu un peu plus compact dans l'écran paysage du smartphone */
.realfs.is-phone .realfs-slide-info {
  left: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(0.85rem, 3vh, 1.75rem);
  max-width: min(420px, 58%);
}

.realfs.is-phone .realfs-slide-title {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  margin-bottom: 0.55rem;
}

.realfs.is-phone .realfs-hud {
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(0.85rem, 3vh, 1.75rem);
  gap: 0.45rem;
}

.realfs.is-phone .realfs-counter b { font-size: 1.2rem; }

/* ============================================================
   11. FOOTER
   ============================================================ */

.footer-logo {
  height: 2rem;
  width: auto;
}

/* ============================================================
   12. CHANGEMENT DE PRODUIT — ANIMATIONS AU SWITCH
   ============================================================ */

[data-switch-group] { perspective: 1400px; }

.switch-item {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.switch-item.is-leaving {
  animation: switch-card-out 0.34s cubic-bezier(0.55, 0, 0.78, 0.2) both;
  animation-delay: calc(var(--i, 0) * 0.045s);
}

@keyframes switch-card-out {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: perspective(1400px) translateY(-1.5rem) scale(0.82) rotateX(35deg) rotateZ(-4deg);
  }
}

.switch-item.is-entering {
  animation: switch-card-in 0.62s cubic-bezier(0.22, 1.1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.075s);
}

@keyframes switch-card-in {
  0% {
    opacity: 0;
    transform: perspective(1400px) translateY(1.75rem) scale(0.8) rotateX(-45deg) rotateZ(3deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: perspective(1400px) translateY(0) scale(1) rotateX(0) rotateZ(0);
  }
}

.hero-title[data-typed].is-typing::after {
  content: "";
  display: inline-block;
  width: 0.06em;
  height: 1em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: var(--devalex-accent);
  animation: type-caret 0.7s steps(1) infinite;
}

@keyframes type-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-lead.is-leaving {
  animation: hero-lead-out 0.3s ease-in both;
}
.hero-lead.is-entering {
  animation: hero-lead-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes hero-lead-out {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-0.5rem); }
}
@keyframes hero-lead-in {
  0% { opacity: 0; transform: translateY(0.8rem); }
  100% { opacity: 1; transform: none; }
}

/* ============================================================
   13. PREFERS-REDUCED-MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .realfs { display: none !important; }

  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-init,
  .reveal-from-left,
  .reveal-from-right { opacity: 1; transform: none; }
  .marquee-track { animation: none; }

  .phone-stage,
  .phone-flip,
  .laptop-stage,
  .laptop-scene,
  .laptop-screen-glow,
  .laptop-screen-boot,
  .laptop-lid,
  [data-visual].is-revealing:not(.is-revealed) .laptop-stage,
  [data-visual].is-revealing:not(.is-revealed) .laptop-lid,
  [data-visual].is-revealing:not(.is-revealed) .laptop-screen-glow,
  [data-visual].is-revealing:not(.is-revealed) .laptop-screen-boot,
  [data-visual].is-revealing:not(.is-revealed) .phone-stage,
  [data-visual].is-revealing:not(.is-revealed) .phone-flip { animation: none !important; }
  .laptop-screen-glow,
  .laptop-screen-boot { opacity: 0; }
  .phone-flip { transform: rotateY(325deg); }
  .phone-stage { transform: translateY(-50%); }
  .laptop-stage { transform: translate(-50%, -50%); }
  .laptop-lid { transform: translateZ(var(--lid-lift)) rotateX(var(--lid-open, -4deg)); }

  .hero-lead.is-leaving,
  .hero-lead.is-entering,
  .switch-item.is-leaving,
  .switch-item.is-entering {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
  .hero-title[data-typed].is-typing::after { display: none; }

  @media (max-width: 991.98px) {
    .phone-stage { transform: none; }
    .laptop-stage { transform: none; }
  }
}
