:root {
  --paper: #f3f0e8;
  --paper-strong: #fffaf1;
  --ink: #15272d;
  --muted: #596c70;
  --line: rgba(21, 39, 45, 0.12);
  --teal: #316f73;
  --gold: #b57943;
  --olive: #697c48;
  --terracotta: #a85c52;
  --plum: #6f5a93;
  --accent: var(--teal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf7ef 0%, #f1f4ee 48%, #ebe5d8 100%);
}

/* ===== Accessibilité (socle commun) ===== */

/* Lien d'évitement : masqué jusqu'au focus clavier. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Focus clavier homogène. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Contenu réservé aux lecteurs d'écran. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* « Mouvement minimal » : on neutralise animations et transitions. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.theme-examia { --accent: var(--teal); }
.theme-radar { --accent: var(--gold); }
.theme-portfolio { --accent: var(--olive); }
.theme-quiz { --accent: var(--plum); }

h1,
.product-promise,
.section-copy h2,
.detail h2,
.story-cards .detail h2,
.final-cta h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.product-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.product-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 58px);
  background: rgba(255, 250, 241, .92);
  border-bottom: 1px solid rgba(150, 134, 104, .55);
}

/* En-tête identique à la vitrine : marque « g » + menu hamburger. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #d7a46e);
  color: #fffdf8;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(181, 121, 67, 0.24);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.site-menu {
  position: relative;
}
.site-menu > summary {
  list-style: none;
  cursor: pointer;
}
.site-menu > summary::-webkit-details-marker {
  display: none;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(21, 39, 45, 0.2);
  background: var(--paper-strong);
  color: var(--ink);
}

/* Libellé « Menu » réservé aux lecteurs d'écran (bouton en icône seule). */
.menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-bars {
  position: relative;
}
.menu-bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}
.menu-bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}
.site-menu[open] .menu-bars {
  background: transparent;
}
.site-menu[open] .menu-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.site-menu[open] .menu-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 761px) {
  .site-menu > summary {
    display: none;
  }
  .site-menu > .site-nav {
    display: inline-flex !important;
  }
  /* Chrome ≥131 masque le contenu d'un <details> fermé via content-visibility
     sur ::details-content ; on le neutralise pour afficher la nav en desktop
     (ignoré sans risque par les navigateurs sans ce pseudo-élément). */
  .site-menu::details-content {
    content-visibility: visible !important;
  }

  /* Nav façon AOF : trait sous le lien actif (et au survol). */
  .site-nav a {
    position: relative;
    padding-bottom: 4px;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

@media (max-width: 760px) {
  .site-menu > summary {
    display: inline-flex;
    position: relative;
    z-index: 1001;
  }
  .site-menu > .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    margin: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 104px 26px 36px;
    background: linear-gradient(180deg, #fbf7ef 0%, #f1f4ee 55%, #ebe5d8 100%);
    overflow-y: auto;
    animation: menu-fade 0.28s ease both;
  }
  .site-menu[open] > .site-nav {
    display: flex;
  }
  .site-menu > .site-nav a {
    padding: 14px 4px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.25rem, 4.5vw, 1.55rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .site-menu > .site-nav a:hover,
  .site-menu > .site-nav a[aria-current="page"] {
    color: var(--accent);
  }
}

@keyframes menu-fade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.product-hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(420px, 1.22fr);
  gap: clamp(24px, 4vw, 76px);
  align-items: center;
  padding: 116px clamp(24px, 6vw, 92px) 48px;
  background:
    radial-gradient(circle at 72% 34%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f5f0e6 58%, #ffffff 100%);
}

.product-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 610px;
  animation: riseIn .9s cubic-bezier(.2, .8, .2, 1) both;
}

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: .98;
  letter-spacing: -.03em;
}

.lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: #4a5b5f;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
  border-color: var(--line);
  box-shadow: none;
}

.product-visual {
  position: relative;
  min-height: min(66vw, 620px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(150, 134, 104, .82);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(150deg, rgba(255, 255, 255, .86), color-mix(in srgb, var(--accent) 10%, #faf6ee));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: 0 36px 90px rgba(36, 43, 36, .16);
  animation: visualIn 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.animation-frame {
  padding: 0;
  background: #fff;
}

.animation-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.animation-frame:after {
  display: none;
}

.demo-window-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  text-decoration: none;
}

.demo-window-link:before,
.demo-window-link:after {
  position: absolute;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.demo-window-link:before {
  content: "";
  inset: 0;
  background: rgba(36, 43, 36, .05);
}

.demo-window-link:after {
  content: "Ouvrir la démo";
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(150, 134, 104, .84);
  border-radius: 999px;
  color: #fff;
  background: rgba(36, 43, 36, .74);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(6px);
}

.demo-window-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 36%),
    linear-gradient(160deg, #f7f2e8, #ffffff);
}

.demo-window-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-poster-pill {
  position: absolute;
  left: 18px;
  top: 18px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(150, 134, 104, .88);
  border-radius: 999px;
  color: #213338;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-demo-frame:hover .demo-window-link:before,
.product-demo-frame:hover .demo-window-link:after,
.demo-window-link:focus-visible:before,
.demo-window-link:focus-visible:after {
  opacity: 1;
  transform: translateY(0);
}

.product-demo-frame.demo-has-embed .demo-window-link:after {
  content: "Plein écran";
}

.product-demo-frame.demo-is-loading .demo-window-link:after {
  content: "Chargement…";
}

.demo-window-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 4px;
}

.product-story {
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30%),
    linear-gradient(180deg, #faf6ee 0%, #f3eee3 48%, #ffffff 100%);
}

.product-story .product-nav {
  background: rgba(255, 250, 241, .92);
}

.product-story .story-hero {
  min-height: clamp(560px, calc(100svh - 120px), 690px);
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 58px);
  padding-top: 96px;
  padding-bottom: clamp(32px, 4vw, 54px);
}

.product-story .product-copy,
.product-story .product-visual {
  animation: none;
}

.product-story .kicker {
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-story h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: .98;
}

.product-promise {
  max-width: 680px;
  margin: 24px 0 0;
  color: #213338;
  font-size: clamp(24px, 2.35vw, 38px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}

.product-story .lead {
  max-width: 600px;
  margin-top: 18px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.64;
  overflow-wrap: break-word;
}

.story-actions {
  margin-top: 24px;
}

.product-story .product-visual {
  width: 100%;
  min-width: 0;
  min-height: min(42vw, 500px);
  border-radius: 28px;
}

.product-demo-frame {
  --demo-scale: 1;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #faf6ee;
}

.demo-window-viewport {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1640px;
  height: 922.5px;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(var(--demo-scale));
  transform-origin: center;
  transition: opacity .18s ease;
}

.product-demo-frame.demo-is-ready .demo-window-viewport {
  opacity: 1;
}

.product-demo-frame.demo-is-ready .demo-window-poster {
  opacity: 0;
  pointer-events: none;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, .58fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: start;
  padding: clamp(40px, 5.4vw, 72px) clamp(24px, 6vw, 92px);
  border-top: 1px solid rgba(150, 134, 104, .86);
}

.ai-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, #ffffff), #ffffff 58%);
}

.structure-section {
  background: #fff;
}

.value-section {
  background:
    linear-gradient(180deg, #faf6ee, color-mix(in srgb, var(--accent) 5%, #ffffff));
}

.section-copy {
  max-width: 540px;
}

.section-copy h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-text {
  max-width: 760px;
  color: #4a5b5f;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.66;
}

.section-stack {
  display: grid;
  gap: 18px;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, .98fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.support-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(150, 134, 104, .2);
  border: 1px solid rgba(150, 134, 104, .18);
  border-radius: 24px;
  overflow: hidden;
}

.support-block {
  padding: 26px 24px;
  background: rgba(255, 255, 255, .92);
}

.support-block h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.support-block p {
  margin: 12px 0 0;
  color: #5a5b50;
  font-size: 15px;
  line-height: 1.56;
}

.support-visual {
  margin: 0;
  min-height: 100%;
}

.support-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 78% center;
  border-radius: 28px;
  border: 1px solid rgba(150, 134, 104, .18);
  box-shadow: 0 24px 56px rgba(36, 43, 36, .12);
}

.section-text p {
  margin: 0;
}

.section-text p + p,
.section-text p + .document-list,
.section-text p + .process-line {
  margin-top: 18px;
}

.story-image {
  margin: 0;
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.story-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(150, 134, 104, .18);
  box-shadow: 0 22px 50px rgba(36, 43, 36, .12);
}

.story-image-aside {
  max-width: none;
}

.theme-examia .story-image-aside img {
  object-position: 78% center;
}

.story-image figcaption {
  color: #5a5b50;
  font-size: 14px;
  line-height: 1.5;
}

.product-details.story-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-cards .detail {
  min-height: 220px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.story-cards .detail h2 {
  font-size: clamp(24px, 2vw, 32px);
}

.process-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.process-line span,
.document-list li {
  border: 1px solid rgba(150, 134, 104, .32);
  background: rgba(255, 255, 255, .74);
}

.process-line span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #213338;
  font-size: 14px;
  font-weight: 600;
}

.document-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.document-list li {
  padding: 14px 16px;
  border-radius: 16px;
  color: #213338;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.product-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, .36), transparent 50%);
  pointer-events: none;
}

.product-details {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.detail {
  min-height: 260px;
  padding: clamp(24px, 3vw, 44px);
  background: #fff;
}

.detail span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.detail h2 {
  margin: 16px 0 12px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.02;
}

.detail p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 68px) clamp(24px, 6vw, 92px);
  background: #213338;
  color: #fff;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 64px);
  line-height: .98;
}

.final-cta p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #d9cdb8;
  font-size: 18px;
  line-height: 1.5;
}

.eye-scene .eye-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1.92;
  transform: translate(-50%, -50%) rotate(-10deg);
  border: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 65% 35% 65% 35% / 58% 42% 58% 42%;
  background: rgba(255, 255, 255, .56);
}

.eye-scene .iris,
.eye-scene .pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.eye-scene .iris {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, #f0e6d4 0 22%, var(--accent) 23% 62%, #f6efe2 63%);
}

.eye-scene .pupil {
  width: 58px;
  height: 58px;
  background: #111827;
}

.eye-scene .scan {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanProduct 4s linear infinite;
}

.radar-scene .ring,
.radar-scene .sweep,
.market-scene .axis,
.market-scene .curve,
.market-scene .ticker {
  position: absolute;
}

.radar-scene .ring {
  inset: 18%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
}

.radar-scene .ring.two {
  inset: 30%;
}

.radar-scene .ring.three {
  inset: 42%;
}

.radar-scene .sweep {
  left: 50%;
  top: 50%;
  width: 34%;
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: rotateProduct 6s linear infinite;
}

.radar-scene .paper {
  position: absolute;
  width: 126px;
  height: 164px;
  border-radius: 18px;
  border: 1px solid #e3dccb;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 44px rgba(36, 43, 36, .12);
}

.radar-scene .paper.one {
  left: 15%;
  bottom: 18%;
  transform: rotate(-9deg);
}

.radar-scene .paper.two {
  right: 12%;
  top: 15%;
  transform: rotate(8deg);
}

.market-scene .axis {
  left: 12%;
  right: 10%;
  bottom: 18%;
  height: 2px;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: -1px -330px 0 -1px color-mix(in srgb, var(--accent) 32%, transparent);
}

.market-scene .curve {
  inset: 16% 10% 20% 12%;
  clip-path: polygon(0 72%, 12% 60%, 24% 68%, 37% 43%, 48% 52%, 62% 22%, 76% 32%, 100% 8%, 100% 20%, 76% 44%, 62% 34%, 48% 64%, 37% 55%, 24% 80%, 12% 72%, 0 84%);
  background: linear-gradient(90deg, var(--accent), #cda56a);
  animation: pulseLine 2.8s ease-in-out infinite;
}

.market-scene .ticker {
  left: 12%;
  bottom: 9%;
  display: flex;
  gap: 10px;
}

.market-scene .ticker b {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(36, 43, 36, .08);
  font-size: 12px;
}

.radar-scene .paper:before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 34px;
  height: 7px;
  border-radius: 999px;
  background: #d9cdb8;
  box-shadow: 0 24px 0 #e0d6c2, 0 48px 0 #e6ddca, 0 72px 0 #efe8d8;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes visualIn {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scanProduct {
  0%, 100% { transform: translateY(-140px); opacity: .2; }
  50% { transform: translateY(140px); opacity: 1; }
}

@keyframes rotateProduct {
  to { transform: rotate(360deg); }
}

@keyframes pulseLine {
  0%, 100% { opacity: .76; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-8px); }
}

@keyframes glow {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@media (max-width: 980px) {
  .product-nav {
    position: sticky;
  }

  .product-hero,
  .product-details {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
    padding-top: 54px;
  }

  .product-story .story-hero,
  .story-section,
  .story-cards {
    grid-template-columns: 1fr;
  }

  .product-story .story-hero {
    padding-top: 48px;
  }

  .product-promise {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .section-copy h2 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .document-list {
    grid-template-columns: 1fr;
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .support-grid,
  .support-text-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 360px;
  }

  .final-cta {
    display: block;
  }

  .final-cta .button {
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .product-shell {
    width: 100%;
  }

  .brand strong {
    font-size: 19px;
  }

  .product-story h1 {
    font-size: clamp(46px, 13vw, 64px);
    overflow-wrap: break-word;
  }

  .product-story .kicker {
    font-size: 11px;
    letter-spacing: .13em;
  }

  .product-story .story-hero {
    padding: 34px 20px 38px;
    overflow: hidden;
  }

  .product-promise {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.08;
    max-width: min(100%, 19rem);
    overflow-wrap: anywhere;
  }

  .product-story .lead {
    max-width: min(100%, 20.5rem);
    font-size: 15.5px;
  }

  .product-story .lead,
  .section-text {
    line-height: 1.58;
  }

  .section-stack {
    gap: 16px;
  }

  .story-image {
    max-width: 100%;
  }

  .support-block {
    padding: 22px 20px;
  }

  .support-visual img {
    min-height: 280px;
    border-radius: 22px;
  }

  .product-story .product-visual {
    min-height: 300px;
    border-radius: 22px;
  }

  .product-demo-frame:not(.demo-is-ready) .demo-window-link:before,
  .product-demo-frame:not(.demo-is-ready) .demo-window-link:after {
    opacity: 1;
    transform: translateY(0);
  }

  .story-section {
    padding: 42px 20px;
  }

  .story-cards .detail {
    min-height: auto;
  }

  .process-line span {
    width: 100%;
  }
}

/* ===== Méga-menu desktop (porté de refonte AOF : panneau partagé morph + cross-fade) ===== */
.nav-wrap {
  display: none;
}

@media (min-width: 761px) {
  .js-nav .site-menu {
    display: none;
  }
  .js-nav .nav-wrap {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav__top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.96rem;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.nav__top:hover,
.nav__top:focus-visible,
.nav__top[aria-current="page"],
.nav__top[aria-expanded="true"] {
  color: var(--ink);
  background: rgba(49, 111, 115, 0.08);
}
.nav__caret {
  display: inline-flex;
  margin-top: 1px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.nav__top[aria-expanded="true"] .nav__caret {
  transform: rotate(180deg);
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.55rem;
  width: var(--mm-w, 0);
  height: var(--mm-h, 0);
  transform: translateX(var(--mm-left, 0));
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(36, 43, 36, 0.16),
    0 6px 16px rgba(36, 43, 36, 0.07);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.3s;
  z-index: 60;
}
.megamenu--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s;
}
.megamenu--instant {
  transition: opacity 0.2s ease !important;
}

.megamenu__inner {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  max-width: min(820px, calc(100vw - 2rem));
  padding: 1.5rem;
}
.megamenu__inner--enter {
  animation: mm-enter-down 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.megamenu__inner--enter[data-slide="right"] {
  animation-name: mm-enter-right;
}
.megamenu__inner--enter[data-slide="left"] {
  animation-name: mm-enter-left;
}
.megamenu__inner--leave {
  pointer-events: none;
  animation: mm-leave-fade 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.megamenu__inner--leave[data-slide="right"] {
  animation-name: mm-leave-right;
}
.megamenu__inner--leave[data-slide="left"] {
  animation-name: mm-leave-left;
}
@keyframes mm-enter-down {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mm-enter-right {
  from {
    opacity: 0;
    transform: translateX(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mm-enter-left {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mm-leave-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes mm-leave-right {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(-34px);
  }
}
@keyframes mm-leave-left {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(34px);
  }
}

.megamenu__scrim {
  position: fixed;
  left: 0;
  right: 0;
  top: 66px;
  bottom: 0;
  background: rgba(21, 39, 45, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
  z-index: 30;
}
.megamenu__scrim--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.nav__group {
  min-width: 210px;
  max-width: 300px;
  padding: 0 1.4rem;
}
.nav__group:first-child {
  padding-left: 0.25rem;
}
.nav__group:last-child {
  padding-right: 0.25rem;
}
.nav__group + .nav__group {
  border-left: 1px solid var(--line);
}
.nav__group-title {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--teal);
  padding: 0 0.6rem;
  margin-bottom: 0.5rem;
}
.nav__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.nav__link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.12s ease;
}
.nav__link:hover {
  background: rgba(49, 111, 115, 0.08);
}
.nav__link-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(49, 111, 115, 0.1);
  color: var(--teal);
}
.nav__link-icon svg {
  width: 19px;
  height: 19px;
}
.nav__link-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.nav__link-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.nav__link:hover .nav__link-title {
  color: var(--teal);
}
.nav__link-desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .megamenu,
  .megamenu--open {
    transition:
      opacity 0.15s ease,
      visibility 0s linear 0.15s;
  }
  .megamenu__inner--enter {
    animation: mm-rm-enter 0.01s both;
  }
  .megamenu__inner--leave {
    animation: mm-rm-leave 0.01s both;
  }
  .nav__caret {
    transition: none;
  }
}
@keyframes mm-rm-enter {
  to {
    opacity: 1;
  }
}
@keyframes mm-rm-leave {
  to {
    opacity: 0;
  }
}
