/*
 * FroggShop Website — CSS Variables & Theme
 * ==========================================
 * Feuille de style unique du site, éditée à la main (copiée telle quelle dans dist/).
 */

/* ── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

/* ── Root tokens — Light Mode ─────────────────────────────────────────── */
:root {
  /* Brand colors */
  --color-primary:          #122046;
  --color-primary-hover:    #131a30;
  --color-secondary:        #122046;
  --color-secondary-hover:  #2f9568;
  --color-accent:           #5CC696;
  --color-accent-light:     #a8dac9;
  --color-cta:              #3BAE7C;
  --color-cta-hover:        #2f9568;

  /* Light mode surfaces */
  --bg:           #F7F9FC;
  --bg-surface:   #FFFFFF;
  --bg-subtle:    #e7e7e7;
  --bg-hero:      #122046;
  --text:         #1F2840;
  --text-muted:   #5B6677;
  --text-on-dark: #F7F9FC;
  --border:       #E5E7EB;
  --border-subtle:#F3F4F6;

  /* Typography */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-py:   6rem;
  --container:    1280px;
  --radius:       0.75rem;
  --radius-sm:    0.375rem;
  --radius-lg:    1.25rem;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-card: 0 2px 8px -1px rgb(0 0 0 / 0.08), 0 1px 3px -1px rgb(0 0 0 / 0.05);

  /* Transitions */
  --transition:      200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode ────────────────────────────────────────────────────────── */
.dark {
  --bg:           #0F1219;
  --bg-surface:   oklch(21% 0.034 264.665);
  --bg-subtle:    #252D3D;
  --bg-hero:      #0a0d14;
  --text:         #F7F9FC;
  --text-muted:   #9CA3AF;
  --text-on-dark: #F7F9FC;
  --border:       #2D3748;
  --border-subtle:#1e2535;
  --shadow-card: 0 2px 8px -1px rgb(0 0 0 / 0.3), 0 1px 3px -1px rgb(0 0 0 / 0.2);
  --color-secondary: #F7F9FC;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

main{
  /* clip (et non hidden) : contient le débordement horizontal des décors de
     hero SANS créer de conteneur de défilement → préserve position:sticky */
  overflow-x: clip;
  padding-bottom: 100px;
}

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(3px);
  background-color: rgb(247 249 252 / 0.7);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.dark .site-header {
  background-color: rgb(15 18 25 / 0.92);
  border-bottom-color: var(--border);
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  align-self: stretch;
  line-height: 0;
}

.nav-logo img {
  height: 2rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo .logo-dark  { display: none; }
.dark .nav-logo .logo-light { display: none; }
.dark .nav-logo .logo-dark  { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  height: 100%;
}

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: -1.25rem;
  top: 100%;
  height: 0.75rem;
  display: none;
}

.nav-dropdown:hover::before,
.nav-dropdown:focus-within::before {
  display: block;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 20;
  min-width: 240px;
  display: none;
  padding: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: grid;
  gap: 0.15rem;
}

.nav-submenu a {
  display: block;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background-color: var(--bg-subtle);
}

.dark .nav-links a:hover,
.dark .nav-links a.active {
  background-color: var(--bg-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-cta);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgb(59 174 124 / 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.btn-ghost:hover {
  color: var(--text);
  background-color: var(--bg-subtle);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

/* ── Lang toggle ─────────────────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-toggle .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}

.lang-toggle .lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  opacity: 0.5;
  filter: grayscale(45%);
  transition: all var(--transition);
}

.lang-toggle .lang-btn:hover { color: var(--text); }
.lang-toggle .lang-btn:hover .lang-flag { opacity: 1; filter: none; }

.lang-toggle .lang-btn.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.lang-toggle .lang-btn.active .lang-flag { opacity: 1; filter: none; }

.dark .lang-toggle .lang-btn.active {
  background: var(--bg-surface);
  color: var(--text);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: var(--bg-surface);
  transition: all var(--transition);
}

.header-phone:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-1px);
}

.header-phone svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background-color: #122046;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
}


/* Transition diagonale signature (bas de TOUS les héros, compatible dark mode) */
.hero::after {
  content: '';
  position: absolute;
  left: -5px;
  right: 0;
  bottom: -40px;
  width: 104%;
  height: 62px;
  z-index: 4;
  pointer-events: none;
  background: var(--color-cta);
  transform: rotate(1deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-brand {
  margin-bottom: 1.75rem;
  width: 100%;
  max-width: 252px;
}

.hero-logo {
  display: block;
  height: clamp(44px, 5.5vw, 64px);
  width: auto;
}

.hero-by {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  width: 100%;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(247, 249, 252, 0.7);
}
.hero-by img {
  height: 30px;
  width: auto;
}

/* Héro accueil — aplat navy (couleur page 1 brochure), sans dégradé ni halo
   (on garde ::after = la diagonale) */
.hero-flat::before,
.hero-flat .hero-glow,
.hero-flat .vector-rings {
  display: none;
}
.hero-flat .hero-art-dark::after {
  background: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(59, 174, 124, 0.15);
  border: 1px solid rgba(59, 174, 124, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero h1 .highlight {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: white;
  max-width: 54ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Section ─────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-py) 1.5rem;
}

.section-alt {
  background-color: var(--bg-subtle);
}

.dark .section-alt {
  background-color: var(--bg-surface);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-tag {
  position: relative;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}
.section-tag::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-cta);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(59, 174, 124, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.625rem;
  color: var(--text);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(59, 174, 124, 0.08), transparent 42%),
    var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.contact-editorial-band {
  background: var(--bg-surface);
}

/* ── Page contact ─────────────────────────────────────────────────────── */
.hero.contact-hero {
  min-height: 0;
  padding: 3.5rem 1.5rem 4.5rem;
}
.contact-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0 0.75rem;
}
.contact-hero .hero-subtitle {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.contact-section {
  padding-top: 3.5rem;
}
.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.contact-card-primary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: var(--bg-surface);
  border: 2px solid var(--color-cta);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.contact-card-primary:hover {
  transform: translateY(-3px);
  background: rgba(59, 174, 124, 0.08);
}
.contact-card-icon {
  width: 3.75rem;
  height: 3.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cta);
  color: #fff;
}
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.contact-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-card-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.contact-card-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-cta);
}

.contact-response-note {
  margin: 1.25rem 0 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.contact-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition);
}
.contact-link svg,
.contact-link-mono {
  color: var(--color-cta);
}
.contact-link-mono {
  font-family: var(--font-display);
  font-weight: 800;
}
.contact-link:hover {
  border-color: var(--color-cta);
}

.contact-steps-block {
  margin-bottom: 4rem;
}
.contact-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.contact-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-steps strong {
  color: var(--text);
}
.contact-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-step-num {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--bg-surface);
  font-weight: 700;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .contact-primary { grid-template-columns: 1fr; }
  .contact-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .contact-card-primary { padding: 1.25rem 1rem; gap: 0.875rem; }
  .contact-card-icon { width: 2.75rem; height: 2.75rem; }
  .contact-card-icon svg { width: 22px; height: 22px; }
  .contact-card-value { font-size: 1.05rem; overflow-wrap: normal; }
  .contact-steps { grid-template-columns: 1fr; }
}

.no-gradient-band {
  background: var(--bg-surface);
}

.ai-ready-layout.no-gradient-band {
  background: var(--bg-surface);
}

.section-choice,
.section-ai-ready {
  padding-top: calc(var(--section-py) * 0.75);
}

.choice-band,
.ai-ready-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.ai-ready-layout {
  background:
    linear-gradient(135deg, rgba(59, 174, 124, 0.1), transparent 48%),
    var(--bg-surface);
}

.choice-band .section-subtitle,
.ai-ready-layout .section-subtitle {
  margin-bottom: 1.5rem;
}

.choice-points,
.ai-ready-grid {
  display: grid;
  gap: 1rem;
}

.choice-point,
.ai-ready-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}

.choice-point strong,
.ai-ready-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.choice-point span,
.ai-ready-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ai-ready-card:first-child {
  border-color: rgba(59, 174, 124, 0.45);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.risk-item {
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.risk-item span {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--color-secondary);
}

.risk-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.risk-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.architecture-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(29, 35, 51, 0.96), rgba(20, 29, 45, 0.98)),
    var(--color-primary);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-xl);
}

.architecture-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
}

.layer-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 420px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.24);
}

.layer-node strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.layer-node small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(247,249,252,0.72);
}

.layer-node.core { bottom: 2rem; }
.layer-node.froggshop { bottom: 9rem; background: rgba(59, 174, 124, 0.22); }
.layer-node.project { bottom: 16rem; }

.floating-node {
  position: absolute;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: rgba(247,249,252,0.82);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.78rem;
  animation: node-float 7s ease-in-out infinite;
}

.floating-node:nth-child(4) { top: 2rem; left: 2rem; }
.floating-node:nth-child(5) { top: 5.5rem; right: 2.25rem; animation-delay: -1.8s; }
.floating-node:nth-child(6) { top: 12rem; left: 1.5rem; animation-delay: -3s; }
.floating-node:nth-child(7) { top: 15rem; right: 1.5rem; animation-delay: -4.2s; }

.shopware-carousel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 34px rgba(4, 18, 54, 0.08);
}

.shopware-carousel::before,
.shopware-carousel::after {
  content: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 18%;
  pointer-events: none;
}

.shopware-carousel::before {
  left: 0;
}

.shopware-carousel::after {
  right: 0;
}

.shopware-carousel-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  padding: 0 1.25rem;
  transform: translateY(-50%);
  animation: shopware-carousel-slide 34s linear infinite;
}

.shopware-carousel:hover .shopware-carousel-track {
  animation-play-state: paused;
}

.shopware-carousel img {
  width: min(68vw, 520px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: inset 0 0 22px rgba(4, 18, 54, 0.08);
}

.alfred-carousel .shopware-carousel-track {
  animation-duration: 30s;
}

.alfred-carousel img {
  object-fit: contain;
}

@keyframes node-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shopware-carousel-slide {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-50%) translateX(-50%); }
}

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Feature grid ─────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(59, 174, 124, 0.08), var(--shadow-md);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Vitrine "fonctionnalités clés" — picto vert (style brochure) + chips */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--color-cta);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
}
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.feature-chip {
  padding: 0.375rem 0.75rem;
  background: rgba(59, 174, 124, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-card.featured {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(59, 174, 124, 0.15), var(--shadow-xl);
  position: relative;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59,174,124,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.pricing-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}
.dark .pricing-price {
  color: var(--text);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 2px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  gap: 1rem;
  user-select: none;
}

.faq-answer {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-secondary);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── CTA section ─────────────────────────────────────────────────────── */
.cta-section {
  background: #122046;
  position: relative;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(247,249,252,0.7);
  padding: 4rem 1.5rem 2rem;
}

.dark .site-footer {
  background: #090d14;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo img {
  height: 2rem;
  filter: brightness(0) invert(1) opacity(0.9);
  margin-bottom: 1rem;
}

.shopware-partner-badge {
  display: block;
  max-width: 220px;
  height: auto;
}

.contact-partner-badge {
  margin-top: 1rem;
}

.footer-powered {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(247,249,252,0.68);
}

.footer-powered a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-powered a:hover {
  text-decoration: underline;
}

.footer-powered .shopware-partner-badge {
  max-width: 145px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.18));
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 26ch;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(247,249,252,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ── Alfred images section ────────────────────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Mobile menu ──────────────────────────────────────────────────────── */
#mobile-menu {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

#mobile-menu.hidden,
.hidden {
  display: none !important;
}

#mobile-menu nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu-label {
  display: block;
  padding: 0.75rem 0 0.35rem;
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#mobile-menu nav a.mobile-sub-link {
  padding-left: 1rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ── Animations ───────────────────────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: none;
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ── Utilities ────────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.text-green { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Trust carousel */
.trust-carousel {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.trust-carousel-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.trust-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.trust-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: trust-scroll 22s linear infinite;
}

.trust-track:hover {
  animation-play-state: paused;
}

.trust-logo-link {
  width: 210px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.trust-logo-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.trust-logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-nav a {
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.925rem;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.legal-nav a:hover {
  color: var(--text);
  border-left-color: var(--color-secondary);
  background: var(--bg-subtle);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
}

.legal-section h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
}

.legal-section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

/* Hiérarchie des héros fonctionnalités :
   - page parente (.catalogue-hero) : grand format + visuel abstrait du catalogue ;
   - fiches enfants (.feature-detail-hero) : bandeau compact, texte seul. */
.catalogue-hero {
  min-height: 64vh;
  padding: 6rem 1.5rem;
  /* Pour remplacer le visuel : changer seulement l'url() ci-dessous. */
  background-color: #122046;
  background-image:
    linear-gradient(90deg, #122046 0%, rgb(18 32 70 / 0.94) 32%, rgb(18 32 70 / 0.35) 58%, rgb(18 32 70 / 0) 80%),
    url('/assets/svg/hero-fonctionnalites.svg');
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: center, right center;
}

.catalogue-hero .hero-subtitle {
  margin-bottom: 2rem;
}

.catalogue-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgb(247 249 252 / 0.75);
  font-size: 0.95rem;
}

.catalogue-hero-stats strong {
  margin-right: 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  vertical-align: -0.1em;
}

.feature-detail-hero {
  min-height: auto;
  padding: 3.5rem 1.5rem 4.5rem;
}

.feature-detail-hero h1 {
  max-width: 30ch;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

.feature-detail-hero .hero-subtitle {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  color: rgb(247 249 252 / 0.82);
}

.feature-detail-hero .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.feature-detail-hero .btn-primary {
  background-color: #278057;
}

.feature-detail-hero .btn-primary:hover,
.feature-detail-hero .btn-primary:focus-visible {
  background-color: #216c4a;
}

.feature-detail-hero .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.feature-detail-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.feature-detail-nav {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feature-detail-nav a {
  padding: 0.65rem 0.85rem;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.feature-detail-nav a:hover {
  color: var(--text);
  border-left-color: var(--color-secondary);
  background: var(--bg-subtle);
}

/* Section visible à l'écran (posé par initTocScrollSpy dans main.js) */
.feature-detail-nav a.is-active {
  color: var(--text);
  border-left-color: var(--color-cta);
  background: rgb(59 174 124 / 0.14);
}

.feature-category {
  scroll-margin-top: 5.5rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.feature-category:last-child {
  border-bottom: 0;
}

.feature-category h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
}

.feature-category-intro {
  max-width: 76ch;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Index : cartes Normale / Secondaire allégées, pour laisser la vitrine devant */
.feature-detail-grid > .feature-detail-card {
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

/* Bouton aligné en bas de carte, d'une carte à l'autre */
.feature-detail-grid > .feature-detail-card > p:last-child {
  margin-top: auto;
  padding-top: 0.85rem;
}

/* Lien de fiche en petit bouton (cartes du catalogue) */
.feature-detail-card a.feature-detail-link,
.feature-detail-card a.feature-detail-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.feature-detail-card a.feature-detail-link::after {
  content: '→';
}

.feature-detail-card a.feature-detail-link:hover,
.feature-detail-card a.feature-detail-link:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.dark .feature-detail-card a.feature-detail-link,
.dark .feature-detail-card a.feature-detail-link:visited {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.dark .feature-detail-card a.feature-detail-link:hover,
.dark .feature-detail-card a.feature-detail-link:focus-visible {
  background: var(--color-accent);
  color: #0F1219;
}

.feature-index-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-index-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Vitrine Premium : cartes navy en tête de groupe ────────────────────
   Visuel : assets/images/generated/<slug>.webp|jpg|png (sinon placeholder).
   Colonnes selon data-count : 1 → pleine largeur horizontale, 3 → 3 colonnes,
   sinon 2 colonnes. Les tailles suivent la largeur du groupe (container). */
.feature-category {
  container: feature-group / inline-size;
}

.feature-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-showcase[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

/* Double classe : doit l'emporter sur .feature-detail-card, déclarée plus bas */
.feature-detail-card.feature-detail-card--premium {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #122046;
  background: #122046;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.dark .feature-detail-card--premium {
  border-color: rgb(92 198 150 / 0.22);
  background: #16254f;
}

.feature-detail-card--premium:hover,
.feature-detail-card--premium:focus-within {
  border-color: var(--color-cta);
  box-shadow: var(--shadow-xl);
}

.feature-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 3px solid var(--color-cta);
  background: #1c2d5c;
}

/* Coin diagonal vert (géométrie brochure) posé sur le liseré */
.feature-card-media::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-cta);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.feature-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(92 198 150 / 0.75);
  background:
    radial-gradient(circle at 72% 28%, rgb(59 174 124 / 0.3), transparent 60%),
    linear-gradient(135deg, #1c2d5c, #2a4585);
}

.feature-card-media--placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(247 249 252 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(247 249 252 / 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.feature-card-media--placeholder svg {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
}

.feature-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.feature-detail-card--premium .feature-premium-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: #F4CE54;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-premium-badge svg {
  width: 0.8rem;
  height: 0.8rem;
}

.feature-detail-card.feature-detail-card--premium h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.feature-detail-card.feature-detail-card--premium p {
  margin: 0;
  color: rgb(247 249 252 / 0.78);
  font-size: 0.95rem;
}

.feature-detail-card.feature-detail-card--premium .feature-card-body > p:last-child {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Bouton vert plein (#278057 : contraste AA avec le texte blanc) */
.feature-detail-card--premium a.feature-detail-link,
.feature-detail-card--premium a.feature-detail-link:visited,
.dark .feature-detail-card--premium a.feature-detail-link,
.dark .feature-detail-card--premium a.feature-detail-link:visited {
  border-color: #278057;
  background: #278057;
  color: #fff;
}

.feature-detail-card--premium:hover a.feature-detail-link,
.feature-detail-card--premium a.feature-detail-link:focus-visible,
.dark .feature-detail-card--premium:hover a.feature-detail-link,
.dark .feature-detail-card--premium a.feature-detail-link:focus-visible {
  border-color: #216c4a;
  background: #216c4a;
  color: #fff;
}

/* Carte entière cliquable (le lien reste l'unique cible) */
.feature-detail-card--premium {
  position: relative;
}

.feature-detail-card--premium a.feature-detail-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Carte horizontale pleine largeur (évite un trou dans la grille de 2) :
   Premium seule dans son groupe, ou 3e Premium d'un trio */
.feature-showcase[data-count="1"] > .feature-detail-card--premium,
.feature-showcase[data-count="3"] > :last-child {
  grid-column: 1 / -1;
  flex-direction: row;
}

.feature-showcase[data-count="1"] .feature-card-media,
.feature-showcase[data-count="3"] > :last-child .feature-card-media {
  flex: 0 0 46%;
  aspect-ratio: auto;
  min-height: 240px;
  border-right: 3px solid var(--color-cta);
  border-bottom: 0;
}

.feature-showcase[data-count="1"] .feature-card-body,
.feature-showcase[data-count="3"] > :last-child .feature-card-body {
  justify-content: center;
  padding: 2rem;
}

/* Groupe étroit : une seule colonne, visuel au-dessus */
@container feature-group (max-width: 600px) {
  .feature-showcase,
  .feature-showcase[data-count="3"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-showcase > .feature-detail-card--premium,
  .feature-showcase[data-count="1"] > .feature-detail-card--premium,
  .feature-showcase[data-count="3"] > :last-child {
    grid-column: auto;
    flex-direction: column;
  }

  .feature-showcase .feature-card-media,
  .feature-showcase[data-count="1"] .feature-card-media,
  .feature-showcase[data-count="3"] > :last-child .feature-card-media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-right: 0;
    border-bottom: 3px solid var(--color-cta);
  }

  .feature-showcase[data-count="1"] .feature-card-body,
  .feature-showcase[data-count="3"] > :last-child .feature-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .feature-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-detail-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.feature-detail-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-detail-card p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-detail-card details {
  margin-top: 0.75rem;
}

.feature-detail-card summary {
  cursor: pointer;
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Bandeau d'une fiche avec visuel détouré (assets/images/features/<slug>/hero.webp) */
/* Réserve à droite > largeur max du visuel (38 %) : le texte ne passe jamais dessous */
.feature-detail-hero--visual .hero-content {
  padding-right: min(42vw, 520px);
}

.feature-detail-hero-visual {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: max(1.5rem, calc((100% - var(--container)) / 2));
  width: auto;
  height: min(90%, 420px);
  max-width: 38%;
  object-fit: contain;
  object-position: right center;
  transform: translateY(-50%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .feature-detail-hero--visual .hero-content {
    padding-right: 0;
  }

  .feature-detail-hero-visual {
    display: none;
  }
}

/* ── Fiche fonctionnalité : section = numéro, titre, texte, captures ─────
   Images : assets/images/features/<slug>/, déclarées dans src/data (sinon placeholder). */
.feature-section {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
}

.feature-section-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  color: var(--color-cta);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-section-number::after {
  content: '';
  width: 3rem;
  height: 2px;
  background: var(--color-cta);
}

.feature-section-text {
  max-width: 70ch;
}

.feature-section-text p {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.feature-section-text p:last-child {
  margin-bottom: 0;
}

.feature-section-text strong {
  color: var(--color-primary);
}

.dark .feature-section-text strong {
  color: var(--text);
}

.feature-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.feature-shots[data-count="0"],
.feature-shots[data-count="1"],
.feature-shots[data-layout="stack"] {
  grid-template-columns: minmax(0, 1fr);
}

/* Nombre impair (3, 5…) : la dernière image prend toute la largeur */
.feature-shots > .feature-shot:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature-shot {
  margin: 0;
}

.feature-shot-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.feature-shot-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2rem;
  padding: 0 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.feature-shot-dots {
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 1.6rem;
  border-radius: 50%;
  background: #c5cad3;
  box-shadow: 0.8rem 0 0 #c5cad3, 1.6rem 0 0 #c5cad3;
}

.dark .feature-shot-dots {
  background: #4b5563;
  box-shadow: 0.8rem 0 0 #4b5563, 1.6rem 0 0 #4b5563;
}

.feature-shot-kind {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-shot[data-kind="admin"] .feature-shot-kind {
  color: var(--color-secondary);
}

.feature-shot[data-kind="front"] .feature-shot-kind {
  color: #278057;
}

.dark .feature-shot[data-kind="front"] .feature-shot-kind {
  color: var(--color-accent);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-shot figcaption {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.feature-shot--placeholder .feature-shot-frame {
  border-style: dashed;
  box-shadow: none;
}

/* Illustration provisoire (motif SVG) en attendant la capture */
.feature-shot--motif {
  width: 100%;
  max-width: 300px;
}

.feature-shot--motif .feature-shot-frame {
  border-style: solid;
  box-shadow: var(--shadow-card);
}

.feature-shot--motif .feature-shot-bar {
  height: 1.1rem;
  padding: 0 0.5rem;
}

.feature-shot--motif .feature-shot-dots {
  width: 0.3rem;
  height: 0.3rem;
  box-shadow: 0.5rem 0 0 #c5cad3, 1rem 0 0 #c5cad3;
}

.dark .feature-shot--motif .feature-shot-dots {
  box-shadow: 0.5rem 0 0 #4b5563, 1rem 0 0 #4b5563;
}

.feature-shot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  color: var(--text-muted);
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 28px 28px;
}

.feature-shot-empty svg {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.6;
}

@container feature-group (max-width: 600px) {
  .feature-shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-shots > .feature-shot:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.feature-breadcrumb {
  color: var(--color-secondary);
}

a.feature-detail-link,
a.feature-detail-link:visited,
.feature-breadcrumb a,
.feature-breadcrumb a:visited {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.feature-premium-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid #b8860b;
  border-radius: var(--radius-full);
  background: #f4ce54;
  color: #122046;
  font-size: 0.75rem;
  font-weight: 700;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.roadmap-card {
  padding: 1.25rem;
  border: 1px solid rgba(59, 174, 124, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 174, 124, 0.12), var(--bg-surface));
}

.roadmap-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
}

.roadmap-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hero background laboratory */
.hero-lab-page {
  background: #f7f9fc;
  color: var(--text);
}

.hero-lab-intro {
  padding: 4rem 1.5rem 2rem;
  background: var(--bg);
}

.hero-lab-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

.hero-lab-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.hero-lab-dark {
  color: #fff;
  background: #0f1235;
}

.hero-lab-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-lab-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  max-width: 10ch;
}

.hero-lab-content p {
  max-width: 44ch;
  margin: 0 0 1.5rem;
  color: rgba(29, 35, 51, 0.68);
  font-size: 1rem;
}

.hero-lab-dark .hero-lab-content p {
  color: rgba(247, 249, 252, 0.72);
}

.hero-lab-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(59, 174, 124, 0.12);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lab-dark .hero-lab-label {
  color: #9ff0d3;
  background: rgba(92, 198, 150, 0.14);
}

.lab-logo {
  width: min(280px, 42vw);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(59, 174, 124, 0.28));
}

.phosphor-glow {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(92, 198, 150, 0.75), transparent 62%);
  filter: blur(26px);
  opacity: 0.65;
  animation: phosphor-pulse 4s ease-in-out infinite;
}

.cube-stack {
  position: absolute;
  right: 10%;
  top: 12%;
  width: 340px;
  height: 360px;
  transform: rotateX(58deg) rotateZ(-38deg);
  transform-style: preserve-3d;
}

.stack-layer {
  position: absolute;
  left: 50%;
  width: 220px;
  height: 220px;
  border-radius: 24px;
  transform: translateX(-50%) translateZ(var(--z));
  background: var(--layer-bg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), inset -14px -16px 24px rgba(0, 0, 0, 0.16), inset 12px 12px 22px rgba(255, 255, 255, 0.22);
  animation: stack-float 5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.stack-layer::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 65% 30%, rgba(255, 255, 255, 0.75), transparent 24%);
  opacity: 0.45;
}

.mini-cube {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, #dfe6f4, #8b94aa);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  animation: mini-drift 6s ease-in-out infinite;
}

.dot-wave {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  opacity: 0.82;
  background-image: radial-gradient(circle, rgba(92, 198, 150, 0.9) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 70% 60%, #000 0%, transparent 68%);
  transform: perspective(780px) rotateX(58deg) translateY(5%);
  animation: wave-slide 9s linear infinite;
}

.orbit-field {
  position: absolute;
  inset: 0;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(59, 174, 124, 0.25);
  border-radius: 999px;
  animation: orbit-spin 16s linear infinite;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5cc696;
  box-shadow: 0 0 18px #5cc696;
}

.logo-stage {
  position: absolute;
  right: 10%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(36vw, 420px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.logo-stage .lab-logo {
  animation: logo-breathe 4s ease-in-out infinite;
}

.container-rain {
  position: absolute;
  right: 4%;
  top: 10%;
  width: 54%;
  height: 78%;
}

.container-box {
  position: absolute;
  width: 150px;
  height: 88px;
  border: 1px solid rgba(59, 174, 124, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 50px rgba(29, 35, 51, 0.12);
  backdrop-filter: blur(12px);
  animation: box-hover 6s ease-in-out infinite;
}

.hero-lab-dark .container-box {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(92, 198, 150, 0.22);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.container-box strong {
  display: block;
  padding: 1rem 1rem 0.2rem;
  font-size: 0.75rem;
}

.container-box span {
  display: block;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.hero-lab-dark .container-box span {
  color: rgba(247, 249, 252, 0.62);
}

.neon-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 198, 150, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 198, 150, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(720px) rotateX(62deg) translateY(10%);
  transform-origin: center bottom;
  animation: grid-rush 8s linear infinite;
}

.signal-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(92, 198, 150, 0.9), transparent);
  filter: drop-shadow(0 0 12px rgba(92, 198, 150, 0.85));
  animation: signal-pass 5s ease-in-out infinite;
}

.phosphor-logo {
  position: absolute;
  right: 8%;
  top: 12%;
  width: min(34vw, 360px);
  opacity: 0.96;
  animation: phosphor-logo 6s ease-in-out infinite;
}

.tile-cluster {
  position: absolute;
  right: 8%;
  top: 12%;
  width: 420px;
  height: 360px;
}

.tile {
  position: absolute;
  width: 98px;
  height: 98px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(215,238,231,0.9));
  border: 1px solid rgba(59, 174, 124, 0.22);
  box-shadow: 0 20px 48px rgba(29, 35, 51, 0.12);
  animation: tile-bob 5s ease-in-out infinite;
}

.hero-lab-dark .tile {
  background: linear-gradient(145deg, rgba(92, 198, 150, 0.22), rgba(97, 65, 214, 0.26));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.spline-path {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: 68%;
  height: 70%;
  border-radius: 45%;
  border-top: 2px solid rgba(92, 198, 150, 0.36);
  transform: rotate(-9deg);
  filter: drop-shadow(0 0 18px rgba(92, 198, 150, 0.38));
  animation: spline-breathe 5s ease-in-out infinite;
}

.iso-stack {
  position: absolute;
  right: 12%;
  top: 13%;
  width: 360px;
  height: 360px;
  transform: rotateX(58deg) rotateZ(45deg);
  transform-style: preserve-3d;
}

.iso-stack-large {
  right: 8%;
  top: 8%;
  transform: scale(1.12) rotateX(58deg) rotateZ(45deg);
}

.iso-layer {
  position: absolute;
  left: 50%;
  top: var(--top);
  width: var(--size, 210px);
  height: var(--size, 210px);
  border-radius: 24px;
  transform: translateX(-50%) translateZ(var(--z, 0));
  background: var(--face);
  box-shadow:
    8px 10px 0 var(--side),
    0 26px 46px rgba(0, 0, 0, 0.24),
    inset -12px -14px 24px rgba(0, 0, 0, 0.18),
    inset 10px 10px 24px rgba(255, 255, 255, 0.26);
  animation: iso-float 5.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.iso-layer::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 72% 24%, rgba(255,255,255,0.85), transparent 18%);
  opacity: 0.4;
  pointer-events: none;
}

.iso-layer.hole::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  transform: translate(-50%, -50%);
  background: var(--hole, #0f1235);
  box-shadow: inset 8px 8px 18px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(255,255,255,0.08);
}

.iso-platform {
  position: absolute;
  left: 50%;
  top: 250px;
  width: 250px;
  height: 250px;
  border: 2px solid rgba(92, 198, 150, 0.5);
  transform: translateX(-50%) translateZ(-70px);
  animation: platform-pulse 5s ease-in-out infinite;
}

.floating-case-set {
  position: absolute;
  right: 8%;
  top: 16%;
  width: 430px;
  height: 330px;
}

.iso-stack-straight {
  transform: rotateX(58deg) rotateZ(45deg);
}

.iso-stack-straight .iso-layer {
  left: 50%;
}

.floating-case {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 20px;
  transform: rotateX(58deg) rotateZ(45deg);
  background: var(--face);
  box-shadow:
    12px 14px 0 var(--side),
    0 22px 44px rgba(0,0,0,0.26),
    inset -10px -10px 18px rgba(0,0,0,0.17),
    inset 8px 8px 18px rgba(255,255,255,0.24);
  animation: case-float 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.svg-floating-case {
  position: absolute;
  width: var(--w, 136px);
  filter: drop-shadow(0 24px 36px rgba(0,0,0,0.32));
  animation: case-float 5.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.floating-case::after {
  content: '';
  position: absolute;
  inset: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  box-shadow: inset 6px 6px 12px rgba(0,0,0,0.16);
}

.icon-orbit {
  position: absolute;
  right: 7%;
  top: 8%;
  width: 430px;
  height: 360px;
}

.icon-cloud {
  position: absolute;
  right: 4%;
  top: 5%;
  width: min(54vw, 620px);
  height: 430px;
}

.icon-cloud-logo {
  position: absolute;
  left: 35%;
  top: 45%;
  width: 118px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(59, 174, 124, 0.26));
  animation: logo-breathe 4s ease-in-out infinite;
}

.icon-cloud-logo.logo-vertical {
  width: 150px;
}

/* Logo "Alfred" : wordmark large avec fond blanc embarqué → plaque arrondie */
.icon-cloud-logo.logo-alfred {
  width: 210px;
  background: transparent;
}

.icon-cloud.icon-cloud-centered {
  top: 50%;
  transform: translateY(-50%);
}

.cloud-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 174, 124, 0.18);
  color: var(--color-primary);
  box-shadow: 0 16px 40px rgba(29, 35, 51, 0.11);
  animation: icon-drift 5.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.cloud-icon svg {
  color: var(--icon-color, var(--color-secondary));
}

.cloud-icon.text-icon {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-lab-dark .cloud-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(92, 198, 150, 0.24);
  color: #fff;
  box-shadow: 0 20px 54px rgba(0,0,0,0.28);
}

.integration-panel {
  position: absolute;
  right: 5%;
  top: 8%;
  width: min(56vw, 690px);
  height: 420px;
  display: grid;
  grid-template-columns: 150px 1fr 165px;
  gap: 1rem;
  align-items: center;
}

.integration-list {
  display: grid;
  gap: 0.85rem;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  min-height: 58px;
  border: 1px solid rgba(59, 174, 124, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(29, 35, 51, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.integration-core {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  border: 1px solid rgba(59, 174, 124, 0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 20px 60px rgba(29, 35, 51, 0.12);
}

.integration-core .iso-stack {
  position: relative;
  right: auto;
  top: auto;
  width: 260px;
  height: 270px;
  transform: scale(0.58) rotateX(58deg) rotateZ(45deg);
}

.connector-line {
  position: absolute;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(59,174,124,0.75) 0 7px, transparent 7px 13px);
  opacity: 0.55;
  filter: drop-shadow(0 0 10px rgba(92,198,150,0.4));
}

.point-surge {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background-image: radial-gradient(circle, rgba(92, 198, 150, 0.95) 1.6px, transparent 1.9px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at 72% 48%, #000 0%, transparent 68%);
  transform: perspective(820px) rotateX(58deg) translateY(16%);
  animation: wave-slide 4.8s linear infinite;
}

.cube-wave {
  position: absolute;
  right: 1%;
  bottom: -3%;
  width: 62%;
  height: 72%;
  transform: perspective(780px) rotateX(58deg) rotateZ(-12deg);
  transform-style: preserve-3d;
}

.wave-cube {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--cube-face);
  box-shadow:
    6px 7px 0 var(--cube-side),
    0 14px 28px rgba(0,0,0,0.22),
    inset 6px 6px 12px rgba(255,255,255,0.18);
  animation: cube-wave-bob 3.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.feature-strip {
  position: absolute;
  right: 5%;
  bottom: 10%;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.85rem;
  width: min(58vw, 690px);
}

.feature-pill-card {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid rgba(59, 174, 124, 0.16);
  border-radius: 16px;
  background: white;
  box-shadow: 0 16px 42px rgba(29,35,51,0.1);
}

.feature-pill-card svg {
  color: var(--color-secondary);
  margin-bottom: 0.55rem;
}

.feature-pill-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
}

.feature-pill-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.neon-ribbon {
  position: absolute;
  right: -6%;
  top: 16%;
  width: 64%;
  height: 58%;
  background:
    radial-gradient(circle at 30% 50%, rgba(92,198,150,0.42), transparent 22%),
    repeating-radial-gradient(ellipse at 30% 50%, rgba(92,198,150,0.55) 0 2px, transparent 2px 16px);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 82%, transparent);
  filter: blur(0.2px) drop-shadow(0 0 18px rgba(92,198,150,0.32));
  transform: rotate(-8deg);
  animation: ribbon-flow 5s ease-in-out infinite;
}

.icon-orbit-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 20px 40px rgba(59, 174, 124, 0.26));
  animation: logo-breathe 4s ease-in-out infinite;
}

.orbit-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(59, 174, 124, 0.2);
  color: var(--color-secondary);
  box-shadow: 0 18px 44px rgba(29, 35, 51, 0.13);
  animation: icon-drift 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-lab-dark .orbit-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(92, 198, 150, 0.24);
  box-shadow: 0 20px 54px rgba(0,0,0,0.28);
}

.wire-planes {
  position: absolute;
  right: -3%;
  top: 9%;
  width: 520px;
  height: 380px;
  transform: rotateX(58deg) rotateZ(45deg);
  transform-style: preserve-3d;
}

.wire-plane {
  position: absolute;
  left: 50%;
  top: var(--top);
  width: 270px;
  height: 270px;
  transform: translateX(-50%) translateZ(var(--z));
  border: 2px solid var(--wire);
  box-shadow: 0 0 28px color-mix(in srgb, var(--wire), transparent 48%);
  animation: wire-rise 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.commerce-radar {
  position: absolute;
  right: 8%;
  top: 9%;
  width: 420px;
  height: 380px;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(59, 174, 124, 0.22);
  border-radius: 999px;
  animation: orbit-spin 20s linear infinite;
}

.radar-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #5cc696;
  box-shadow: 0 0 18px #5cc696;
  animation: phosphor-pulse 3.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.iso-icon-map {
  position: absolute;
  right: 5%;
  top: 12%;
  width: 480px;
  height: 330px;
}

.map-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  color: var(--color-secondary);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(59, 174, 124, 0.22);
  box-shadow: 0 18px 40px rgba(29, 35, 51, 0.13);
  animation: icon-drift 5.5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.map-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(92,198,150,0), rgba(92,198,150,0.76), rgba(92,198,150,0));
  transform-origin: left center;
  filter: drop-shadow(0 0 12px rgba(92,198,150,0.55));
}

/* Reusable animated hero backgrounds */
.has-hero-art {
  position: relative;
  overflow: hidden;
}

.has-hero-art > .container,
.has-hero-art > .hero-content {
  position: relative;
  z-index: 3;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --mx: 0px;
  --my: 0px;
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 35, 51, 0.12), transparent 52%);
  pointer-events: none;
}

.hero-art-light::after {
  background: linear-gradient(90deg, #e7e7e7, whitesmoke 52%, transparent);
}


.hero-art .logo-stage,
.hero-art .icon-cloud,
.hero-art .wire-planes,
.hero-art .logo-badge-orbit,
.hero-art .svg-stack,
.hero-art .mini-svg-cloud,
.hero-art .point-surge,
.hero-art .vector-rings,
.hero-art .vector-dots,
.hero-art .feature-strip,
.hero-art .phosphor-glow,
.hero-art .orbit-field {
  pointer-events: none;
}

.section.has-hero-art {
  isolation: isolate;
}

.section.has-hero-art .editorial-band,
.section.has-hero-art .grid-2,
.section.has-hero-art .animate-on-scroll {
  position: relative;
  z-index: 3;
}

@keyframes iso-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

@keyframes platform-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) translateZ(-70px) scale(0.96); }
  50% { opacity: 1; transform: translateX(-50%) translateZ(-70px) scale(1.02); }
}

@keyframes case-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -18px; }
}

@keyframes icon-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes wire-rise {
  0%, 100% { margin-top: 0; opacity: 0.62; }
  50% { margin-top: -18px; opacity: 1; }
}

@keyframes cube-wave-bob {
  0%, 100% { transform: translateZ(0); }
  50% { transform: translateZ(34px); }
}

@keyframes ribbon-flow {
  0%, 100% { transform: rotate(-8deg) translateY(0); opacity: 0.7; }
  50% { transform: rotate(-5deg) translateY(-18px); opacity: 1; }
}

/* Hero examples 2 - SVG assets */
.hero2-page {
  background: #f6f8fb;
}

.hero2-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

.hero2-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  --mx: 0px;
  --my: 0px;
}

.hero2-dark {
  color: #fff;
  background: radial-gradient(circle at 80% 35%, rgba(97,65,214,0.28), transparent 32%), #0d1031;
}

.hero2-content {
  position: relative;
  z-index: 5;
  max-width: 560px;
  padding: clamp(2rem, 5vw, 4rem);
}

.hero2-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.4rem);
  max-width: 11ch;
}

.hero2-content p {
  max-width: 46ch;
  color: rgba(29, 35, 51, 0.66);
}

.hero2-dark .hero2-content p {
  color: rgba(247,249,252,0.7);
}

.hero2-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(59, 174, 124, 0.12);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero2-dark .hero2-label {
  color: #9ff0d3;
}

.svg-stack {
  position: absolute;
  right: 8%;
  top: 8%;
  width: min(46vw, 560px);
  height: 440px;
}

.svg-stack img {
  position: absolute;
  left: 50%;
  width: var(--w, 340px);
  transform: translateX(-50%) translateY(var(--y, 0)) scale(var(--hover-scale, 1));
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.24));
  animation: svg-layer-float 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: filter var(--transition), transform var(--transition);
}

.svg-stack img:hover,
.mini-svg-cloud img:hover,
.box-wave-svg img:hover,
.orbit-badge:hover {
  --hover-scale: 1.08;
  animation-duration: 2.3s;
  filter: drop-shadow(0 34px 58px rgba(92,198,150,0.38));
}

.svg-stack-tight img {
  --w: 360px;
}

.svg-etage0 { top: 255px; }
.svg-base { top: 210px; }
.svg-etage1 { top: 145px; }
.svg-etage2 { top: 82px; }
.svg-etage3 { top: 20px; }

.svg-stack-spread .svg-etage0 { top: 320px; }
.svg-stack-spread .svg-base { top: 250px; }
.svg-stack-spread .svg-etage1 { top: 168px; }
.svg-stack-spread .svg-etage2 { top: 88px; }
.svg-stack-spread .svg-etage3 { top: 8px; }

.svg-stack-vertical .svg-etage0 { animation-name: svg-layer-float-tall; }
.svg-stack-vertical .svg-base { animation-name: svg-layer-float-tall; }
.svg-stack-vertical .svg-etage1 { animation-name: svg-layer-float-tall; }
.svg-stack-vertical .svg-etage2 { animation-name: svg-layer-float-tall; }
.svg-stack-vertical .svg-etage3 { animation-name: svg-layer-float-tall; }

.svg-stack-vertical img {
  transform: translateX(-50%) translateY(calc(var(--y, 0px) + var(--py, 0px))) scale(var(--hover-scale, 1));
}

.svg-stack-xl {
  right: 3%;
  top: 1%;
  width: min(58vw, 720px);
  height: 520px;
}

.svg-stack-centered {
  top: 50%;
  transform: translateY(-50%);
}

.home-hero-stack {
  top: 50%;
  transform: translateY(-50%);
}

/* ── Home hero — refined floating stack (scoped to homepage) ───────────── */
.home-hero-stack img {
  /* Autonomous float (margin-top keyframe) + amplified per-layer mouse parallax
     via --mx/--my (set by JS on .hero-art) multiplied by per-layer --depth. */
  transform: translateX(-50%)
    translate(calc(var(--mx, 0px) * var(--depth, 1)), calc(var(--my, 0px) * var(--depth, 1)))
    translateY(var(--y, 0)) scale(var(--hover-scale, 1));
  animation-duration: var(--dur, 6s);
  /* Snappier cursor follow (the shared .svg-stack img transition was too damped) */
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter:
    drop-shadow(0 24px 38px rgba(0, 0, 0, 0.38))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.30));
  will-change: transform, margin-top;
}

/* Per-layer autonomous float — bigger amplitude, top layer moves most */
.home-hero-stack .svg-etage1 { animation-name: home-float-sm; }
.home-hero-stack .svg-etage2 { animation-name: home-float-md; }
.home-hero-stack .svg-etage3 { animation-name: home-float-lg; }

@keyframes home-float-sm { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
@keyframes home-float-md { 0%, 100% { margin-top: 0; } 50% { margin-top: -24px; } }
@keyframes home-float-lg { 0%, 100% { margin-top: 0; } 50% { margin-top: -38px; } }

.home-hero-stack img:hover {
  --hover-scale: 1.06;
  filter:
    drop-shadow(0 30px 52px rgba(23, 145, 102, 0.40))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.30));
}

/* Soft green glow halo behind the stack */
.hero-glow {
  position: absolute;
  right: 10%;
  top: 50%;
  width: clamp(320px, 36vw, 480px);
  height: clamp(320px, 36vw, 480px);
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(23, 145, 102, 0.38) 0%,
    rgba(23, 145, 102, 0.12) 42%,
    transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  animation: hero-glow-pulse 4s linear infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.55; transform: translateY(-50%) scale(0.94); }
  50%      { opacity: 1;    transform: translateY(-50%) scale(2); }
}

.svg-stack-xl img {
  --w: 470px;
}

.vector-rings {
  position: absolute;
  inset: 0;
  /* Static ring texture = the "radar grid" */
  background:
    radial-gradient(circle at 79% 52%, rgba(92,198,150,0.14), transparent 18%),
    repeating-radial-gradient(circle at 79% 52%, rgba(92,198,150,0.13) 0 1px, transparent 1px 46px);
  opacity: 0.6;
  animation: rings-breathe 6s linear infinite;
  background-position: right center;
  right: 0;
}


/* Expanding ping for the "signal emanation" accent */
.vector-rings::after {
  content: '';
  position: absolute;
  left: 79%;
  top: 52%;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 2px solid rgba(110,200,165,0.75);
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(92,198,150,0.5));
  animation: sonar-ping 3.8s ease-out infinite;
}

@keyframes rings-breathe {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.8; }
}

@keyframes radar-sweep {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sonar-ping {
  0%   { width: 0;     height: 0;     opacity: 0; }
  6%   { opacity: 0.9; }
  70%  { opacity: 0.25; }
  100% { width: 800px; height: 800px; opacity: 0; }
}


.vector-dots {
  position: absolute;
  inset: -40px; /* marge pour que la parallaxe ne révèle pas de bord */
  background-image: radial-gradient(circle, rgba(92,198,150,0.72) 1.2px, transparent 1.7px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 35%, #000 86%, transparent);
  opacity: 0.42;
  /* Parallaxe curseur (couche de fond → bouge peu) via --mx/--my de .hero-art */
  transform: translate(calc(var(--mx, 0px) * var(--dots-depth, 0.4)), calc(var(--my, 0px) * var(--dots-depth, 0.4)));
  transition: transform 0.3s ease-out;
  /* Dérive diagonale lente et continue (boucle sur une tuile de 28px) */
  animation: dots-drift 16s linear infinite;
  will-change: transform, background-position;
}

@keyframes dots-drift {
  from { background-position: 0 0; }
  to   { background-position: 28px 28px; }
}

.hero2-light-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 55%, rgba(59,174,124,0.16) 55.2%, transparent 55.8%),
    linear-gradient(145deg, transparent 0 60%, rgba(97,65,214,0.12) 60.2%, transparent 60.8%);
}

.side-integrations {
  position: absolute;
  right: 4%;
  top: 11%;
  width: min(58vw, 680px);
  height: 410px;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  gap: 1rem;
}

.side-list {
  display: grid;
  gap: 0.75rem;
}

.side-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.75rem;
  border: 1px solid rgba(59,174,124,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 34px rgba(29,35,51,0.08);
  font-weight: 700;
  font-size: 0.78rem;
}

.hero2-dark .side-chip {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(92,198,150,0.18);
}

.mini-svg-cloud {
  position: absolute;
  inset: 0;
}

.mini-svg-cloud img {
  position: absolute;
  width: var(--w, 82px);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.18));
  animation: svg-layer-float 4.8s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: var(--o, 1);
  filter: blur(var(--blur, 0)) drop-shadow(0 18px 28px rgba(0,0,0,0.18));
  transform: translate(calc(var(--mx) * var(--depth, 0)), calc(var(--my) * var(--depth, 0))) scale(var(--scale, 1));
  transition: transform 120ms linear, filter var(--transition), opacity var(--transition);
}

.vector-wire {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(92,198,150,0.8), transparent);
  filter: drop-shadow(0 0 12px rgba(92,198,150,0.64));
  animation: signal-pass 4.2s ease-in-out infinite;
}

.box-wave-svg {
  position: absolute;
  right: 0;
  bottom: -4%;
  width: min(62vw, 760px);
  height: 430px;
}

.box-wave-svg img {
  position: absolute;
  width: 116px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.24));
  animation: svg-wave-float 4.4s ease-in-out infinite;
  animation-delay: var(--delay);
  transform: scale(var(--scale, 1));
}

.logo-badge-orbit {
  position: absolute;
  right: 11%;
  top: 16%;
  display: grid;
  place-items: center;
  width: min(36vw, 430px);
  aspect-ratio: 1;
}

.logo-badge-orbit img {
  width: 118px;
  z-index: 2;
  filter: drop-shadow(0 18px 36px rgba(59,174,124,0.3));
  animation: logo-breathe 4s ease-in-out infinite;
}

.logo-badge-orbit.hero2-orbit-large {
  right: 5%;
  top: 7%;
  width: min(46vw, 560px);
}

.logo-badge-orbit.hero2-orbit-large > img {
  width: 172px;
}

.twinkle-logo {
  animation: logo-breathe 4s ease-in-out infinite, logo-twinkle 1.8s ease-in-out infinite !important;
}

.orbit-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(59,174,124,0.16);
  color: var(--color-secondary);
  box-shadow: 0 18px 40px rgba(29,35,51,0.1);
  animation: icon-drift 5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.hero2-dark .orbit-badge {
  background: rgba(255,255,255,0.08);
}

.orbit-fragment {
  position: absolute;
  width: var(--w, 76px);
  filter: drop-shadow(0 22px 34px rgba(0,0,0,0.34));
  animation: svg-layer-float 4.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes svg-layer-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

@keyframes svg-layer-float-tall {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -18px; }
}

@keyframes svg-wave-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(2deg); }
}

@keyframes logo-twinkle {
  0%, 100% { opacity: 0.92; }
  45% { opacity: 1; filter: drop-shadow(0 0 32px rgba(92,198,150,0.75)); }
  60% { opacity: 0.82; }
  74% { opacity: 1; filter: drop-shadow(0 0 46px rgba(92,198,150,0.95)); }
}

@keyframes phosphor-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.42; }
  50% { transform: scale(1.12); opacity: 0.72; }
}

@keyframes stack-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

@keyframes mini-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(12px, -18px, 0) rotate(8deg); }
}

@keyframes wave-slide {
  from { background-position: 0 0; }
  to { background-position: 180px -90px; }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logo-breathe {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 18px 34px rgba(59, 174, 124, 0.28)); }
  50% { transform: translateY(-12px) scale(1.035); filter: drop-shadow(0 24px 54px rgba(92, 198, 150, 0.44)); }
}

@keyframes box-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes grid-rush {
  from { background-position: 0 0; }
  to { background-position: 0 96px; }
}

@keyframes signal-pass {
  0%, 100% { transform: translateX(-18%); opacity: 0.2; }
  50% { transform: translateX(18%); opacity: 0.9; }
}

@keyframes phosphor-logo {
  0%, 100% { transform: rotate(-3deg) translateY(0); filter: drop-shadow(0 0 18px rgba(92, 198, 150, 0.38)); }
  50% { transform: rotate(2deg) translateY(-14px); filter: drop-shadow(0 0 34px rgba(92, 198, 150, 0.72)); }
}

@keyframes tile-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes spline-breathe {
  0%, 100% { transform: rotate(-9deg) scale(1); opacity: 0.72; }
  50% { transform: rotate(-7deg) scale(1.04); opacity: 1; }
}

.audience-page .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.audience-page .grid-2 > *,
.audience-page .grid-3 > * {
  min-width: 0;
}

.audience-page .grid-3 + .btn {
  margin-top: 1.5rem;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-container {
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .site-header .nav-container { gap: 0.5rem; padding-inline: 0.75rem; }
  .site-header .nav-logo img { height: 1.375rem; }
}

@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .header-phone {
    width: 2rem;
    height: 2rem;
    justify-content: center;
    padding: 0;
  }
  .header-phone-text { display: none; }

  /* Header compact : évite le débordement horizontal sur mobile */
  .nav-container { gap: 1rem; padding: 0 1rem; }
  .nav-actions { gap: 0.4rem; }
  .lang-toggle { padding: 2px; }
  .lang-toggle .lang-btn { padding: 0.3rem 0.45rem; }
  .lang-toggle .lang-code { display: none; } /* drapeaux seuls sur mobile */

  .hero { padding: 4rem 1.5rem; min-height: auto; }
  .feature-detail-hero { padding: 3rem 1.5rem 4rem; min-height: auto; }
  .catalogue-hero {
    background-image:
      linear-gradient(180deg, rgb(18 32 70 / 0.96) 0%, rgb(18 32 70 / 0.88) 55%, rgb(18 32 70 / 0.55) 100%),
      url('/assets/svg/hero-fonctionnalites.svg');
  }
  .hero h1 { font-size: 2rem; }
  .hero-art {
    opacity: 0.32;
    transform: scale(0.78);
    transform-origin: 80% 50%;
  }

  .grid-3, .grid-2, .stats-grid {
    grid-template-columns: 1fr;
  }

  .editorial-band,
  .choice-band,
  .ai-ready-layout,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .editorial-band,
  .choice-band,
  .ai-ready-layout {
    padding: 2rem;
  }

  .architecture-visual,
  .shopware-carousel {
    min-height: 500px;
  }

  .floating-node {
    position: relative;
    display: inline-flex;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-carousel-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-copy {
    align-items: flex-start;
  }

  .trust-logo-link {
    width: 180px;
    height: 78px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-nav,
  .feature-detail-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .feature-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-art {
    display: none;
  }

  .shopware-carousel {
    min-height: 300px;
  }

  .shopware-carousel img {
    width: 82vw;
  }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .legal-nav,
  .feature-detail-nav {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Kit « brochure » — composants partagés (alignement identité brochure)
   ══════════════════════════════════════════════════════════════════════ */

/* Flèche des CTA qui avance au survol */
.btn svg {
  transition: transform var(--transition);
}
.btn:hover svg {
  transform: translateX(3px);
}

/* Listes à coches vertes (façon brochure) */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.check-list li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.45;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.02em;
  width: 1.4rem;
  height: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233BAE7C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list strong {
  font-weight: 700;
  color: var(--text);
}

/* Encart de citation navy (mots-clés surlignés en vert) */
.pull-quote {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.25;
  box-shadow: var(--shadow-lg);
}
.pull-quote .hl {
  color: var(--color-accent);
}
.pull-quote::before {
  content: '\201C';
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 2.4em;
  line-height: 0;
  margin-right: 0.12em;
  vertical-align: -0.4em;
}
/* Bloc éditorial qui porte un pull-quote : pas de carte autour */
.editorial-quote {
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
  align-items: center;
}

/* ── Géométrie signature brochure : diagonales + filigrane grenouille ──── */

/* Filigrane contour grenouille (navy-on-navy, façon couverture/p.8) */
.frog-watermark {
  position: absolute;
  left: -6%;
  bottom: 10%;
  width: min(36vw, 400px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.frog-watermark path {
  fill: #041136; /* navy ton sur ton, un cran plus clair que le fond */
  stroke: none;
}

/* Transition diagonale en bas d'une section sombre (héro) */
.hero-cut {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 62px;
  z-index: 5;
  display: block;
  pointer-events: none;
}
.hero-cut .hc-fill {
  fill: var(--bg);
}
.hero-cut .hc-line {
  stroke: var(--color-cta);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Transition diagonale en haut d'une section sombre (CTA final) */
.section-cut-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
  display: block;
  pointer-events: none;
}
.section-cut-top .sc-fill {
  fill: var(--bg-subtle);
}
.section-cut-top .sc-line {
  stroke: var(--color-cta);
  stroke-width: 10;
  vector-effect: non-scaling-stroke;
}

/* Séparateur diagonal réutilisable entre deux sections */
.diag-divider {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  line-height: 0;
}
.diag-divider .dd-line {
  stroke: var(--color-cta);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* ── Cadre photo en diagonale (façon brochure) ───────────────────────────
   <div class="photo-diagonal"><img src="…"></div>
   Variante : ajouter .photo-diagonal--left si la photo est à gauche. */
.photo-diagonal {
  position: relative;
  min-height: 360px;
  align-self: stretch;
  isolation: isolate;
  padding: 20px;
}
.photo-diagonal > img {
  width: 100%;
  height: 100%;
}
/* ── Origami : image de pliage zoomable (lightbox CSS pur, sans JS) ───────── */
.origami-zoom-trigger {
  display: block;
  position: relative;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}
.origami-zoom-trigger img {
  display: block;
  width: 100%;
  height: auto;
}
.origami-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(9, 14, 30, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}
.origami-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(9, 14, 30, 0.94);
}
.origami-lightbox:target {
  display: block;
}
/* conteneur scrollable : image en taille réelle, pannable + pinch-zoom natif.
   Pas de centrage → évite tout rognage du coin haut/gauche au scroll. */
.origami-lightbox__scroll {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem;
}
.origami-lightbox__scroll img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
}
.origami-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}
.origami-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* ── Démos vidéo "FroggShop en action" — card vidéo + texte (alternés) ──── */
.demo-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
}
.demo-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
}
/* alternance : 1 vidéo à gauche, la suivante à droite, etc. */
.demo-card:nth-child(even) {
  flex-direction: row-reverse;
}
.demo-video-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;

}
.demo-video-wrap video {
  display: block;
  width: 100%;
  max-width: 470px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.demo-text {
  margin: 0 auto;
  width: 100%;
  max-width: 28%;
  display: flex;
  flex-flow: column;
}
.demo-caption {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
}
.demo-sub {
  display: block;
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.demo-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(59, 174, 124, 0.1);
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .demo-gallery {
    width: 100%;
  }
  .demo-card {
    padding: 10px;
  }
  .demo-card,
  .demo-card:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .demo-text {
    max-width: 100%;
  }
}
/* Cards vidéo au format paysage 4/3 : vidéo agrandie, texte plus compact */
@media (min-width: 641px) {
  .demo-card--wide .demo-text {
    max-width: 30%;
    padding-inline: 1.75rem;
  }
  .demo-card--wide .demo-video-wrap {
    flex: 1;
  }
  .demo-card--wide .demo-video-wrap video {
    max-width: 760px;
  }
  /* vidéo collée au bord extérieur de la card selon son côté */
  .demo-card--video-left .demo-video-wrap {
    justify-content: flex-start;
  }
  .demo-card--video-right .demo-video-wrap {
    justify-content: flex-end;
  }
}
.hero-actions .alfred-detail-link {
  white-space: normal;
}
