/* ==========================================================
   Neolia — Site web
   Design system aligné sur le pitch deck (deep navy + energy green)
   ========================================================== */

:root {
  --ink: #0B1129;
  --ink-2: #131A3A;
  --ink-3: #1B2347;
  --paper: #F5F2EB;
  --paper-2: #ECE7DA;
  --on-ink: #F5F2EB;
  --on-ink-muted: rgba(245, 242, 235, 0.62);
  --on-ink-line: rgba(245, 242, 235, 0.10);
  --energy: #22D3A4;
  --energy-deep: #0FAE82;
  --signal: #FF6B47;
  --line: #E5E0D2;
  --muted: #6B6B6B;
  --muted-2: #9A9485;

  --font-display: "Söhne", "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --easing-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--energy); color: var(--ink); }

/* ----------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--energy);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,211,164,0.6);
}
.on-ink .eyebrow { color: rgba(255,255,255,0.55); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--on-ink); }

h1 { font-size: clamp(48px, 7vw, 120px); letter-spacing: -0.035em; line-height: 0.95; }
h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.03em; }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }

p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.on-ink p { color: var(--on-ink-muted); }

.lead { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; color: var(--ink); }
.on-ink .lead { color: rgba(255,255,255,0.85); }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all 0.3s var(--easing);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--energy);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--on-ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(11,17,41,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--on-ink);
}
.on-ink .btn-secondary {
  border-color: rgba(255,255,255,0.25);
  color: var(--on-ink);
}
.on-ink .btn-secondary:hover {
  background: var(--on-ink);
  color: var(--ink);
  border-color: var(--on-ink);
}
.btn-arrow { transition: transform 0.3s var(--easing); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--energy);
  transition: right 0.4s var(--easing);
}
.btn-ghost:hover::after { right: 0; }
.btn-ghost:hover { color: var(--ink); }
.on-ink .btn-ghost { color: rgba(255,255,255,0.55); }
.on-ink .btn-ghost:hover { color: var(--on-ink); }

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s var(--easing);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header.scrolled {
  background: rgba(245, 242, 235, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(11,17,41,0.06);
  padding: 14px 0;
}
.site-header.on-dark {
  /* When hero is dark and not scrolled */
}
.site-header.on-dark.scrolled {
  background: rgba(11,17,41,0.85);
  border-bottom-color: rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s var(--easing);
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
  /* White PNG by default — invert for light backgrounds */
  filter: invert(100%) brightness(0.1);
  transition: filter 0.3s var(--easing), height 0.3s var(--easing);
}
.site-header.scrolled .logo img { height: 30px; }
.on-dark .logo img,
.scrolled.on-dark .logo img {
  filter: none;
}
.logo:hover { opacity: 0.7; }
/* Footer logo always white */
.site-footer .logo img { filter: none; }

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: all 0.2s var(--easing);
  position: relative;
}
.on-dark .nav a { color: var(--on-ink); }
.nav a:hover { background: rgba(11,17,41,0.05); }
.on-dark .nav a:hover { background: rgba(255,255,255,0.08); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--energy);
}
.on-dark .nav a.active { color: var(--on-ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(11,17,41,0.15);
  border-radius: 999px;
  padding: 4px;
  position: relative;
}
.on-dark .lang-toggle { border-color: rgba(255,255,255,0.18); }
.lang-toggle button {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted-2);
  transition: all 0.2s var(--easing);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: 500;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--on-ink);
}
.on-dark .lang-toggle button.active {
  background: var(--energy);
  color: var(--ink);
}
.lang-toggle button:hover:not(.active) {
  color: var(--ink);
}
.on-dark .lang-toggle button:hover:not(.active) { color: var(--on-ink); }

.btn-cta-header {
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Largeur figée : header identique dans toutes les langues (le sélecteur de langue ne bouge plus).
     200px couvre le plus long libellé du site (« Réserver maintenant » + flèche). */
  min-width: 200px;
  white-space: nowrap;
  transition: all 0.3s var(--easing);
}
.btn-cta-header:hover {
  background: var(--energy);
  color: var(--ink);
}
.on-dark .btn-cta-header {
  background: var(--energy);
  color: var(--ink);
}
.on-dark .btn-cta-header:hover {
  background: var(--on-ink);
  color: var(--ink);
}
/* Bouton "Espace partenaire" : unique bouton du header (remplace l'ancien CTA démo).
   Style plein + largeur figée -> header identique dans toutes les langues. */
.btn-ph-header {
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  min-width: 168px;
  transition: all 0.3s var(--easing);
}
.btn-ph-header:hover { background: var(--energy); color: var(--ink); }
.on-dark .btn-ph-header { background: var(--energy); color: var(--ink); }
.on-dark .btn-ph-header:hover { background: var(--on-ink); color: var(--ink); }

/* Mobile menu toggle */
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .nav, .header-actions .lang-toggle { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
  }
  .menu-toggle span {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--easing);
  }
  .on-dark .menu-toggle span { background: var(--on-ink); }
}

/* ----------------------------------------------------------
   Hero (dark)
   ---------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
  padding: 200px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--on-ink); }
.hero p { color: rgba(255,255,255,0.78); }
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4 { color: var(--on-ink); }
.page-hero p { color: rgba(255,255,255,0.78); }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Animated gradient mesh */
.hero-mesh {
  position: absolute;
  inset: -10%;
  opacity: 0.5;
  background:
    radial-gradient(circle at 15% 30%, rgba(34,211,164,0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(34,211,164,0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(34,211,164,0.08) 0%, transparent 40%);
  filter: blur(40px);
  animation: meshDrift 20s ease-in-out infinite alternate;
  will-change: transform;          /* couche dediee : drift composite, pas de repaint */
}
/* Le batiment 3D apparait en fondu quand React le monte (apres les textes) */
#hero-archviz-mount > div { animation: archvizFade 0.9s ease both; }
@keyframes archvizFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #hero-archviz-mount > div { animation: none; }
  .hero-mesh { animation: none; }
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, -2%) scale(1.05); }
  100% { transform: translate(-2%, 1%) scale(0.98); }
}

/* Grid lines overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,242,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,235,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
}

/* Marquee data ticker */
.hero-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
}
.ticker-track {
  display: inline-flex;
  gap: 64px;
  animation: tickerScroll 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ticker-track span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--energy);
  border-radius: 50%;
  display: inline-block;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero h1 {
  margin: 28px 0 36px;
  letter-spacing: -0.045em;
}
.hero h1 .accent {
  color: var(--energy);
  font-style: italic;
  font-weight: 500;
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  top: 52%;
  height: 6px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  animation: strikeIn 1.2s 1.4s var(--easing-emphasized) forwards;
}
@keyframes strikeIn {
  to { transform: scaleX(1); }
}

.hero-sub {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.5;
  max-width: 700px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero stats */
.hero-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}
.hero-stat {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 24px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--on-ink);
  line-height: 1;
  display: block;
}
.hero-stat-num .unit {
  font-size: 0.5em;
  color: var(--energy);
  font-weight: 500;
  margin-left: 4px;
}
.hero-stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero-stat:nth-child(2) { border-right: none; }
}

/* ----------------------------------------------------------
   Section system
   ---------------------------------------------------------- */

section {
  padding: 120px 0;
  position: relative;
}
section.compact { padding: 80px 0; }
section.dark {
  background: var(--ink);
  color: var(--on-ink);
}
section.cream {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head h2 { max-width: 720px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
.section-head .lead { max-width: 540px; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ----------------------------------------------------------
   Pillars (4 cards)
   ---------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.4s var(--easing);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 380px;
}
.dark .pillar-card {
  background: var(--ink-2);
  border-color: rgba(255,255,255,0.08);
}
.pillar-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--energy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--easing);
}
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(11,17,41,0.18);
  border-color: var(--ink);
}
.dark .pillar-card:hover {
  border-color: rgba(34,211,164,0.4);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.5);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--energy);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.pillar-card h3 {
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.dark .pillar-card h3 { color: var(--on-ink); }
.pillar-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  flex-grow: 1;
}
.dark .pillar-card p { color: rgba(255,255,255,0.65); }
a.pillar-card { color: inherit; text-decoration: none; }
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pillar-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  background: rgba(11,17,41,0.06);
  color: var(--muted);
  border-radius: 999px;
}
.dark .pillar-tag {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   CAPEX teaser — big number callout
   ---------------------------------------------------------- */

.capex-section {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-xl);
  padding: 80px;
  margin: 0 auto;
  max-width: 1320px;
  position: relative;
  overflow: hidden;
}
.capex-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(34,211,164,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(34,211,164,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.capex-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.capex-num {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 200px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--on-ink);
}
.capex-num .currency {
  display: block;
  font-size: 0.25em;
  font-weight: 500;
  color: var(--energy);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.capex-num .negative { color: var(--energy); }
.capex-num small {
  display: block;
  font-size: 0.18em;
  color: rgba(255,255,255,0.55);
  margin-top: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.capex-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.capex-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}
.capex-row:last-child { border-bottom: none; }
.capex-row-label {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.4;
}
.capex-row-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--energy);
  white-space: nowrap;
  font-weight: 500;
}
.capex-row.total {
  border-top: 2px solid rgba(255,255,255,0.18);
  border-bottom: none;
  margin-top: 8px;
  padding-top: 18px;
}
.capex-row.total .capex-row-label { color: var(--on-ink); font-weight: 500; }
.capex-row.total .capex-row-val { color: var(--on-ink); font-size: 16px; font-weight: 600; }

@media (max-width: 880px) {
  .capex-section { padding: 48px 32px; border-radius: var(--radius-lg); }
  .capex-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ----------------------------------------------------------
   Compare — conventional vs Neolia
   ---------------------------------------------------------- */

.compare {
  position: relative;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.compare-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px 28px;
  border-radius: var(--radius-lg);
}
.compare-col--legacy {
  background: var(--paper-1, #F5F2EB);
  border: 1px solid var(--line, rgba(11,17,41,0.08));
  color: var(--ink);
}
.compare-col--neolia {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
}
.compare-col--neolia::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(34,211,164,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.compare-col > * { position: relative; }

.compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2, rgba(11,17,41,0.55));
}
.compare-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--energy);
}
.compare-col--neolia .compare-tag {
  color: rgba(255,255,255,0.65);
}

.compare-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
}
.compare-col--neolia .compare-title { color: var(--on-ink); }

.compare-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11,17,41,0.08);
  align-items: center;
}
.compare-col--neolia .compare-row { border-bottom-color: rgba(255,255,255,0.10); }
.compare-row:last-child { border-bottom: none; }
.compare-row-label {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(11,17,41,0.75);
}
.compare-col--neolia .compare-row-label { color: rgba(255,255,255,0.78); }
.compare-row-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(11,17,41,0.78);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.compare-col--neolia .compare-row-val { color: rgba(255,255,255,0.85); }

.compare-row.total {
  border-top: 1px solid rgba(11,17,41,0.18);
  border-bottom: none;
  margin-top: 6px;
  padding-top: 18px;
}
.compare-col--neolia .compare-row.total { border-top-color: rgba(255,255,255,0.20); }
.compare-row.total .compare-row-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.compare-col--neolia .compare-row.total .compare-row-label { color: var(--on-ink); }
.compare-row.total .compare-row-val {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
}
.compare-col--neolia .compare-row.total .compare-row-val { color: var(--on-ink); }
.compare-row-val--accent { color: var(--energy) !important; }

.compare-savings {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(34,211,164,0.12);
  color: var(--energy);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.compare-note {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2, rgba(11,17,41,0.5));
}
.compare-col--neolia .compare-note { color: rgba(255,255,255,0.45); }

@media (max-width: 880px) {
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-col { padding: 28px 22px 22px; }
  .compare-row.total .compare-row-val { font-size: 20px; }
}

/* ----------------------------------------------------------
   Logos / partners marquee
   ---------------------------------------------------------- */

.partners {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partners-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  margin-bottom: 32px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
.partner-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.partner-name:hover { opacity: 1; color: var(--ink); }

@media (max-width: 720px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ----------------------------------------------------------
   Comparison table (vs concurrence)
   ---------------------------------------------------------- */

.compare-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dark .compare-table {
  background: var(--ink-2);
  border-color: rgba(255,255,255,0.08);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.dark .compare-row { border-bottom-color: rgba(255,255,255,0.06); }
.compare-row:last-child { border-bottom: none; }
.compare-row.header {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}
.dark .compare-row.header {
  background: var(--ink);
  border-bottom-color: var(--energy);
}
.compare-cell {
  padding: 18px 24px;
  font-size: 14.5px;
  border-right: 1px solid var(--line);
}
.dark .compare-cell { border-right-color: rgba(255,255,255,0.06); }
.compare-cell:last-child { border-right: none; }
.compare-cell.label {
  font-weight: 500;
  color: var(--ink);
}
.dark .compare-cell.label { color: var(--on-ink); }
.compare-cell.featured {
  background: rgba(34,211,164,0.08);
  font-weight: 500;
  color: var(--ink);
}
.dark .compare-cell.featured {
  background: rgba(34,211,164,0.12);
  color: var(--on-ink);
}
.compare-row.header .compare-cell {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 16px 24px;
}
.dark .compare-row.header .compare-cell { color: rgba(255,255,255,0.55); }
.compare-row.header .compare-cell.featured {
  color: var(--energy);
  font-weight: 600;
}
.compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 12px;
}
.compare-icon.yes { background: rgba(34,211,164,0.15); color: var(--energy-deep); }
.compare-icon.no { background: rgba(255,107,71,0.12); color: var(--signal); }
.compare-icon.partial { background: rgba(201,125,82,0.15); color: #C97D52; }
.dark .compare-icon.yes { color: var(--energy); }

@media (max-width: 880px) {
  .compare-table { overflow-x: auto; }
  .compare-row { min-width: 720px; }
}

/* Comparatif 4 colonnes (desktop) */
.compare-table--4 .compare-row { grid-template-columns: 1.3fr repeat(4, 1fr); }
/* Mobile : comparatif "Neolia vs 1 concurrent" via selecteur */
.compare-mobile-pick { display: none; }
@media (max-width: 720px) {
  .compare-mobile-pick {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 0 0 18px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted-2);
  }
  .compare-mobile-pick select {
    font-family: var(--font-body); font-size: 14px; text-transform: none;
    letter-spacing: 0; color: var(--ink); font-weight: 500;
    padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--paper);
  }
  /* on ne montre que Critere + Neolia + le concurrent choisi */
  .compare-table--4 .compare-row {
    grid-template-columns: 1.5fr 0.7fr 1fr !important;
    min-width: 0 !important;
  }
  .compare-table--4 .compare-cell:nth-child(n+3) { display: none !important; }
  .compare-table--4[data-vs="3"] .compare-cell:nth-child(3),
  .compare-table--4[data-vs="4"] .compare-cell:nth-child(4),
  .compare-table--4[data-vs="5"] .compare-cell:nth-child(5) { display: block !important; }
  .compare-table--4 { overflow-x: visible !important; }
}

/* ----------------------------------------------------------
   Pricing card
   ---------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: all 0.3s var(--easing);
}
.price-card.featured {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
  transform: scale(1.02);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.price-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.price-card.featured .price-tag { color: var(--energy); }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-amount .num {
  font-size: 72px;
  font-weight: 600;
}
.price-amount .currency {
  font-size: 24px;
  font-weight: 500;
  color: var(--muted);
}
.price-card.featured .price-amount .currency { color: rgba(255,255,255,0.6); }
.price-amount small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-left: 4px;
}
.price-card.featured .price-amount small { color: rgba(255,255,255,0.55); }

.price-card h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.price-card.featured h3 { color: var(--on-ink); }

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.price-card.featured .price-list li { color: rgba(255,255,255,0.78); }
.price-list li::before {
  content: "";
  width: 16px; height: 16px;
  background: var(--energy);
  flex-shrink: 0;
  margin-top: 4px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 11.5L3 8l1.5-1.5L6.5 8.5l5-5L13 5l-6.5 6.5z'/></svg>") no-repeat center/contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.5 11.5L3 8l1.5-1.5L6.5 8.5l5-5L13 5l-6.5 6.5z'/></svg>") no-repeat center/contain;
}

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--energy-deep); }
.faq-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s var(--easing);
}
.faq-item.open .faq-toggle {
  background: var(--energy);
  border-color: var(--energy);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--easing);
}
.faq-item.open .faq-a {
  max-height: 400px;
}
.faq-a-inner {
  padding: 0 0 28px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: 100px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 280px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--on-ink);
  margin-bottom: 64px;
  background: linear-gradient(180deg, var(--on-ink) 0%, rgba(245,242,235,0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--energy); }
.footer-logo {
  height: clamp(28px, 3.2vw, 44px);
  width: auto;
  display: block;
  margin-bottom: 32px;
  /* PNG has ~5% transparent padding on each side — pull glyph flush left */
  margin-left: calc(clamp(28px, 3.2vw, 44px) * (1500/349) * -0.05);
  opacity: 0.9;
}
.footer-pitch {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  max-width: 380px;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a:hover { color: var(--energy); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   CTA mega
   ---------------------------------------------------------- */

.cta-mega {
  background: var(--paper);
  padding: 120px 0;
  text-align: center;
}
.cta-mega h2 {
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.cta-mega h2 .accent {
  color: var(--energy-deep);
  font-style: italic;
  font-weight: 500;
}
.cta-mega p {
  font-size: clamp(18px, 1.5vw, 22px);
  max-width: 580px;
  margin: 0 auto 40px;
  color: var(--muted);
}

/* ----------------------------------------------------------
   Reveal animations
   ---------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--easing-emphasized),
              transform 0.9s var(--easing-emphasized);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* Cursor follower */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,164,0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity 0.3s;
  opacity: 0;
}
.hero:hover .cursor-glow,
.dark:hover .cursor-glow { opacity: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 999px; border: 2px solid var(--paper-2); }

/* Selection highlight numbers */
.num-tabular { font-variant-numeric: tabular-nums; }

/* ==========================================================
   MOBILE DRAWER + RESPONSIVE OVERRIDES
   ========================================================== */

/* Mobile drawer (hidden by default, shown when .open) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(11, 17, 41, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing);
  display: flex;
  justify-content: flex-end;
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-panel {
  width: min(420px, 88vw);
  height: 100%;
  background: var(--ink);
  color: var(--on-ink);
  padding: 96px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.4s var(--easing-emphasized);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--on-ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, padding 0.2s;
}
.mobile-drawer-panel a:hover,
.mobile-drawer-panel a.active {
  color: var(--energy);
  padding-left: 10px;
}
.mobile-drawer-panel a::after {
  content: "→";
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  font-family: var(--font-mono);
}
.mobile-drawer-cta,
.mobile-drawer-ph {
  margin-top: 28px;
  background: var(--energy) !important;
  color: var(--ink) !important;
  border-bottom: none !important;
  border-radius: 999px;
  padding: 18px 24px !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
}
.mobile-drawer-cta::after,
.mobile-drawer-ph::after { display: none; }
.mobile-drawer-langs {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-drawer-langs button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.mobile-drawer-langs button.active {
  background: var(--energy);
  border-color: var(--energy);
  color: var(--ink);
}
.mobile-drawer-meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  text-transform: uppercase;
}
body.drawer-open { overflow: hidden; }

/* Hamburger animation when open */
.menu-toggle {
  position: relative;
  z-index: 1200;
  background: transparent;
}
.menu-toggle.open { background: transparent; }
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.menu-toggle.open span { background: var(--on-ink) !important; }

/* ----------------------------------------------------------
   ≤ 920px — tablet / large phone
   ---------------------------------------------------------- */
@media (max-width: 920px) {
  .container { padding: 0 22px; }
  section { padding: 80px 0; }
  section.compact, section.tight { padding: 64px 0; }

  /* hide header CTA when hamburger is shown — keep just logo + lang + burger */
  .btn-cta-header, .btn-ph-header { display: none; }

  /* manifesto: stack and tighten */
  .manifesto { padding: 80px 0 72px; }
  .manifesto-inner { gap: 32px; }

  /* savings: lighter padding */
  .savings { padding: 80px 0; }
  .savings-head { margin-bottom: 48px; }

  /* cta mega */
  .cta-mega, .cta-mega.affirm { padding: 80px 0; }

  /* env section */
  .env { padding-top: 72px; }
}

/* ----------------------------------------------------------
   ≤ 720px — phone
   ---------------------------------------------------------- */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  section.compact, section.tight { padding: 48px 0; }

  /* Typography downscale */
  h1 { font-size: clamp(38px, 11vw, 56px); line-height: 0.98; }
  h2 { font-size: clamp(30px, 8vw, 44px); }
  h3 { font-size: clamp(22px, 6vw, 28px); }
  body, p { font-size: 16px; }
  .lead { font-size: 17px; line-height: 1.5; }

  /* Buttons */
  .btn { padding: 14px 22px; font-size: 14.5px; width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-actions .btn-ghost { justify-content: center; }

  /* Header */
  .site-header { padding: 12px 0; }
  .logo img { height: 28px; }
  .site-header.scrolled .logo img { height: 26px; }

  /* Hero */
  .hero { padding: 130px 0 96px; min-height: auto; }
  .hero h1.affirm {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }
  .hero h1.affirm br { display: none; }
  .hero-sub.affirm { font-size: 16.5px; line-height: 1.5; max-width: 100%; }
  .hero-kicker {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    padding: 7px 14px;
    gap: 10px;
  }
  .hero-stats {
    margin-top: 56px;
    padding-top: 28px;
    gap: 28px 0;
  }
  .hero-stat {
    padding-right: 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .hero-stat:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 16px; }
  .hero-stat-num { font-size: clamp(32px, 9vw, 44px); }
  .hero-stat-lbl { font-size: 10px; letter-spacing: 0.1em; margin-top: 8px; }
  .hero-ticker { padding: 14px 0; }
  .ticker-track { gap: 40px; font-size: 10.5px; }

  /* Manifesto */
  .manifesto { padding: 64px 0; }
  .manifesto-inner { gap: 24px; }
  .manifesto-body h2 {
    font-size: clamp(30px, 8.5vw, 44px);
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .manifesto-body h2 br { display: none; }
  .manifesto-body p.lead { font-size: 18px; line-height: 1.45; margin-bottom: 18px; }
  .manifesto-body p { font-size: 15.5px; }
  .manifesto-aside-note { max-width: 100%; }
  .shift-line {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    padding: 8px 14px;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  /* Savings */
  .savings { padding: 64px 0; }
  .savings-head { margin-bottom: 36px; }
  .savings-head h2 { font-size: clamp(32px, 9vw, 48px); line-height: 1.05; }
  .savings-head h2 br { display: none; }
  .savings-grid { grid-template-columns: 1fr; }
  .savings-cell {
    padding: 32px 0 !important;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    gap: 12px;
  }
  .savings-cell:last-child { border-bottom: none; padding-bottom: 0 !important; }
  .savings-cell .num { font-size: clamp(56px, 18vw, 88px); }
  .savings-cell .label { font-size: 15px; max-width: 100%; }
  .savings-foot { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .savings-foot p { font-size: 13.5px; }

  /* Pillars */
  .pillars { gap: 14px; }
  .pillar-card {
    padding: 28px 24px;
    min-height: 0;
    gap: 14px;
  }
  .pillar-card h3 {
    font-size: 24px;
    letter-spacing: -0.02em;
  }
  .pillar-card p { font-size: 15px; }
  .pillar-tag { font-size: 10.5px; }

  /* Env */
  .env { padding: 56px 0 0; }
  .env-head { gap: 16px; margin-bottom: 18px; }
  .env-head h2 { font-size: clamp(28px, 8vw, 40px); max-width: 100%; }
  .env-head-right { font-size: 15.5px; }
  .env-stage { height: 380px; }
  .env-meta { right: 16px; bottom: 14px; font-size: 9px; }

  /* Responsabilité section — its inline grids need to stack */
  .resp-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .resp-roles { grid-template-columns: 1fr !important; gap: 16px !important; padding-top: 24px !important; }
  .resp-roles > div {
    padding: 20px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
  .resp-roles > div:last-child { border-bottom: none; padding-bottom: 0 !important; }
  .resp-h2 {
    font-size: clamp(28px, 8.5vw, 40px) !important;
    margin-bottom: 22px !important;
    max-width: 100% !important;
  }
  .resp-h2 br { display: none; }

  /* CTA mega */
  .cta-mega, .cta-mega.affirm { padding: 64px 0; }
  .cta-mega h2, .cta-mega.affirm h2 {
    font-size: clamp(34px, 10vw, 52px);
    letter-spacing: -0.035em;
    margin-bottom: 20px;
  }
  .cta-mega.affirm h2 br { display: none; }
  .cta-mega p { font-size: 16px; margin-bottom: 28px; }

  /* Footer */
  .site-footer { padding: 64px 0 24px; }
  .footer-grid { gap: 36px; padding-bottom: 40px; }
  .footer-logo { margin-left: 0; height: 30px; margin-bottom: 20px; }
  .footer-pitch { font-size: 15px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
  }

  /* Hero archviz off on phone (already done) — also reduce mesh */
  .hero-mesh { opacity: 0.35; }

  /* CAPEX section */
  .capex-section { padding: 36px 22px; }
  .capex-num { font-size: clamp(64px, 18vw, 96px); }

  /* Compare */
  .compare-grid { gap: 14px; }
  .compare-col { padding: 24px 20px 20px; }

  /* Pricing */
  .price-card { padding: 28px 22px; }
}

/* ----------------------------------------------------------
   ≤ 480px — small phone
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding: 120px 0 88px; }
  .hero h1.affirm { font-size: clamp(34px, 10.5vw, 44px); }
  .hero-kicker { font-size: 10px; padding: 6px 12px; }
  .hero-kicker .arrow { display: none; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat-num { font-size: 30px; }

  .savings-cell .num { font-size: 64px; }
  .manifesto-body h2 { font-size: 30px; }
  .savings-head h2 { font-size: 32px; }

  .ticker-track { gap: 28px; font-size: 10px; }
  .ticker-track span::before { width: 5px; height: 5px; }
}

/* ============================================================
   MOBILE RESPONSIVENESS — Phase 1: stop overflows
   Many sections were authored with inline `style="display: grid;
   grid-template-columns: ..."` and no media query fallback. Below
   720px we force them to stack so nothing bleeds past the viewport.
   ============================================================ */

html, body { overflow-x: hidden; }

@media (max-width: 720px) {
  /* Catch-all for inline-grid 2/3/4-column layouts → stack on phone */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.5fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.55fr 1fr"],
  [style*="grid-template-columns: repeat(2,"],
  [style*="grid-template-columns: repeat(3,"],
  [style*="grid-template-columns: repeat(4,"] {
    grid-template-columns: 1fr !important;
  }

  /* Shrink oversized inline gaps when stacking */
  [style*="gap: 80px"]  { gap: 32px !important; }
  [style*="gap: 60px"]  { gap: 28px !important; }
  [style*="gap: 48px"]  { gap: 24px !important; }

  /* Reduce inline paddings that crowd tiny screens
     (40px+ inline paddings appear in many capex/compare cards) */
  [style*="padding: 40px"] { padding: 24px !important; }
  [style*="padding: 56px"] { padding: 28px !important; }
  [style*="padding: 48px"] { padding: 24px !important; }
  [style*="padding: 80px"] { padding: 40px 20px !important; }

  /* Prevent inline-fixed widths from busting the viewport */
  [style*="min-width: 200px"] { min-width: 0 !important; }

  /* Tables (rare on this site, but defensive) */
  table { display: block; max-width: 100%; overflow-x: auto; }

  /* Compare grid (.compare-grid in tarifs) — 4 cols, hardest to stack */
  .compare-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Capex formula token wraps on small width */
  .capex-formula { flex-wrap: wrap; gap: 8px; }
  /* Hero CAPEX/OPEX sticky labels avoid 2-line collisions */
  .capex-line {
    grid-template-columns: auto 1fr !important;
    row-gap: 12px;
  }
  .capex-line .capex-price {
    grid-column: 1 / -1;
    text-align: left;
  }
  .capex-line--sum .capex-price {
    text-align: left;
  }

  /* Headings: rein in clamp() upper bounds on phones */
  h1, h2 { word-wrap: break-word; overflow-wrap: anywhere; }

  /* Common cap on long-token monospace lines (prices etc.) */
  .capex-amount, .capex-amount--sum { word-break: keep-all; }
}

/* ============================================================
   MOBILE RESPONSIVENESS — Phase 2: density via accordions
   Don't hide content. Keep everything reachable, but wrap
   the heaviest blocks in collapsible <details>/<summary>
   accordions on phones (auto-wrapping done by script.js).
   Desktop is unchanged.
   ============================================================ */

@media (max-width: 720px) {
  /* Strip purely decorative left rail (Phase 01/02/03 vertical line) */
  .chapter {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .chapter-rail {
    display: none !important;
  }

  /* Tighten section paddings on long pages */
  .phase {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* Accordion wrapper (injected by script.js on mobile) */
  .mobile-accordion {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 24px 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
  }
  .mobile-accordion[open] {
    border-color: var(--ink);
  }
  .mobile-accordion > summary {
    cursor: pointer;
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
  }
  .mobile-accordion > summary::-webkit-details-marker { display: none; }
  .mobile-accordion > summary::marker { content: ""; }
  .mobile-accordion > summary::after {
    content: "+";
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: var(--energy-deep, var(--ink));
    transition: transform 0.2s ease;
  }
  .mobile-accordion[open] > summary::after { content: "−"; }
  .mobile-accordion[open] > summary {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  /* Give the wrapped content some breathing room and reset margins
     that would otherwise look broken inside a card */
  .mobile-accordion > *:not(summary) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 16px 16px 20px;
  }
  /* Keep wrapped blocks' OWN background/borders.
     They were authored with their own visual style (dark cards,
     callouts) — wiping it broke contrast. Only neutralise
     extra outer margin so they hug the accordion. */
  .mobile-accordion > .legal-callout,
  .mobile-accordion > .b2c-foot,
  .mobile-accordion > .capex-install,
  .mobile-accordion > .calc-card,
  .mobile-accordion > .compare-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* === Variant: --dark === accordion has a dark wrapped block,
     so the summary itself must be readable on light AND dark contexts.
     Used for: capex-install, calc-card, b2c-foot, option-card. */
  .mobile-accordion--dark {
    background: var(--ink) !important;
    border-color: rgba(255,255,255,0.12) !important;
  }
  .mobile-accordion--dark[open] {
    border-color: rgba(34,211,164,0.40) !important;
  }
  .mobile-accordion--dark > summary {
    color: var(--on-ink) !important;
    background: var(--ink) !important;
  }
  .mobile-accordion--dark[open] > summary {
    background: rgba(255,255,255,0.05) !important;
    border-bottom-color: rgba(255,255,255,0.12) !important;
  }
  .mobile-accordion--dark > summary::after {
    color: var(--energy) !important;
  }
  /* Inside --dark, the wrapped block can drop its now-redundant
     dark background to feel like one continuous card */
  .mobile-accordion--dark > .capex-install,
  .mobile-accordion--dark > .calc-card {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 16px !important;
  }

  /* === Variant: --inline === minimal, lives inside another card
     (e.g. .option-card). No outer chrome, just a discreet trigger. */
  .mobile-accordion--inline {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
  }
  .mobile-accordion--inline > summary {
    padding: 8px 0 !important;
    font-size: 10.5px !important;
    letter-spacing: 0.10em !important;
    background: transparent !important;
    opacity: 0.75;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .mobile-accordion--inline[open] > summary {
    border-bottom: none !important;
    opacity: 1;
  }
  .mobile-accordion--inline > *:not(summary) {
    padding: 8px 0 0 !important;
  }
  /* If the inline accordion is in a light card, use ink border instead */
  :not(.on-ink):not([style*="var(--ink)"]) > .mobile-accordion--inline > summary {
    border-top-color: rgba(11,17,41,0.10);
  }
}

/* ============================================================
   MOBILE RESPONSIVENESS — Phase 2b: tighten + compare-grid fit
   Reduce empty space aggressively on phones, and compress the
   4-column comparison grid so it fits the viewport without
   horizontal scroll.
   ============================================================ */

@media (max-width: 720px) {
  /* === Comparison grid: compress so all 5 columns fit === */
  .compare-table { overflow-x: visible !important; }
  .compare-row {
    min-width: 0 !important;
    grid-template-columns: 1.6fr repeat(4, 1fr) !important;
  }
  .compare-cell {
    padding: 8px 4px !important;
    font-size: 10.5px !important;
    border-right-width: 0 !important;
  }
  .compare-row.header .compare-cell {
    font-size: 8.5px !important;
    padding: 8px 4px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2;
    word-break: break-word;
  }
  .compare-cell.label {
    font-size: 11.5px !important;
    padding-left: 10px !important;
    line-height: 1.25;
  }
  .compare-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  /* === Aggressive vertical rhythm reduction === */

  /* Section paddings: site uses 80-120px top/bottom on desktop */
  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .phase {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
  .page-hero { padding: 110px 0 48px !important; }
  .hero {
    padding-top: 110px !important;
    padding-bottom: 56px !important;
  }
  .cta-mega {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* Section heads typically have 60-80px margin-bottom */
  .section-head { margin-bottom: 28px !important; }

  /* Heading rhythm */
  h1 { margin-bottom: 16px !important; }
  h2 { margin-bottom: 12px !important; }
  h3 { margin-bottom: 10px !important; }
  .chapter-title { margin-bottom: 12px !important; }
  .chapter-lead { margin-bottom: 0 !important; }

  /* Block-level vertical air on chained sub-elements */
  .capex-grid { margin-top: 16px !important; }
  .capex-line { padding: 18px 0 !important; }
  .capex-line--sum { padding: 22px 14px !important; }

  /* B2C cards stacked too far apart */
  .b2c-grid, .options-grid { gap: 14px !important; }

  /* Pricing card hero & numbers tightened */
  .price-card { padding: 24px 20px !important; }

  /* List items density */
  ul, ol { margin: 8px 0 0 !important; }
  ul > li, ol > li { margin-bottom: 0 !important; }

  /* Footer */
  .site-footer { padding: 36px 0 24px !important; }

  /* === Lifecycle (Tarifs hero — 3 phases CAPEX/OPEX/Options) ===
     On mobile each phase becomes a self-contained card. The desktop
     layout uses a horizontal axis + per-stop `border-top` above the
     price; when stacked vertically that line creates the illusion
     that the price belongs to the *next* phase. We strip it and
     enclose each stop in a clear card with proper boundaries. */
  .lifecycle {
    margin-top: 40px !important;
    padding-top: 28px !important;
  }
  .lifecycle-stops {
    gap: 14px !important;
    margin-top: 0 !important;
  }
  .lifecycle-stop {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 22px 20px !important;
    text-align: left !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .lifecycle-stop::before { display: none !important; }
  .lifecycle-when {
    min-height: 0 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    color: rgba(255,255,255,0.55) !important;
  }
  .lifecycle-num {
    font-size: 11px !important;
    margin-top: 0 !important;
    letter-spacing: 0.18em !important;
  }
  .lifecycle-title {
    font-size: 24px !important;
    margin-top: 2px !important;
  }
  .lifecycle-who {
    font-size: 10.5px !important;
    margin-top: 2px !important;
  }
  /* The price was visually attached to the NEXT card via this top border —
     remove it and instead tie the price to its own card via clear margin */
  .lifecycle-amount {
    margin-top: 10px !important;
    padding-top: 10px !important;
    font-size: 22px !important;
    border-top: 1px solid rgba(255,255,255,0.10) !important;
    width: 100%;
  }
  /* Reset all child spans first — the page-local CSS in tarifs.html
     sets `.lifecycle-amount span { display: block; font-size: 11px }`,
     which catches the OPEX tile's CHF unit and breaks it onto its
     own line at half size. Force the CHF span back inline and inherit. */
  .lifecycle-amount > span {
    display: inline !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    letter-spacing: inherit !important;
    margin: 0 !important;
  }
  /* Only the trailing caption (last span) is small + block — applies to
     "TTC, matériel / par bâtiment", "par logement / par mois", etc. */
  .lifecycle-amount > span:last-child {
    display: block !important;
    font-size: 10px !important;
    margin-top: 4px !important;
    color: rgba(255,255,255,0.55) !important;
    font-family: var(--font-mono) !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
  }
  .lifecycle-kind {
    font-size: 10px !important;
    margin-top: 4px !important;
    color: rgba(255,255,255,0.50) !important;
  }

  /* === Inline-flex rows inside accordions ===
     The site uses many `style="display: flex; justify-content: space-between;
     padding: 12px 0; border-bottom: …"` rows. Inside the narrow viewport
     of a mobile accordion, the price wraps below the label. Force the
     label to stay on its line and the price unit to stay together. */
  .mobile-accordion [style*="justify-content: space-between"] {
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .mobile-accordion [style*="justify-content: space-between"] > span:first-child,
  .mobile-accordion [style*="justify-content: space-between"] > strong:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .mobile-accordion [style*="justify-content: space-between"] > span:last-child,
  .mobile-accordion [style*="justify-content: space-between"] > strong:last-child {
    flex-shrink: 0;
    white-space: nowrap;
  }
  /* Add lateral breathing room to rows whose inline style only set vertical padding */
  .mobile-accordion [style*="padding: 12px 0"],
  .mobile-accordion [style*="padding: 16px 0 0"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* ============================================================
   MOBILE — Solutions page (produit.html) illustrations + sections
   The 4 pillar visuals (interphony, energy, domotics, app) have
   absolute-positioned children with HARDCODED pixel sizes (220px
   door-station, 3-column meter grids, scaled-up room scenes…)
   that don't fit a phone viewport — they overflow / get cropped.
   Below we tame them: compact frames, scaled or hidden subcomponents.
   ============================================================ */

@media (max-width: 720px) {

  /* Pillar visual: reduced height to keep the phone mockup from being
     stretched vertically. 380px is enough for door + phone proportions. */
  .pillar-visual {
    aspect-ratio: 1 / 1 !important;
    max-height: 380px !important;
  }

  /* Visuels en diagramme SVG (Connect / Prime / Link) : le cadre suit le ratio
     4/3 du SVG et le padding interne est reduit, sinon grand cadre bleu + petit
     dessin au centre sur mobile. */
  #connect .pillar-visual,
  #prime .pillar-visual,
  #link .pillar-visual {
    aspect-ratio: 4 / 3 !important;
    max-height: none !important;
  }
  #connect .pillar-visual > div,
  #prime .pillar-visual > div,
  #link .pillar-visual > div {
    padding: 14px !important;
  }
  #connect .pillar-visual svg,
  #prime .pillar-visual svg,
  #link .pillar-visual svg {
    width: 100% !important;
    height: 100% !important;
  }

  /* === viz-interphony: door-station + animated line + phone, like desktop === */
  .viz-interphony {
    grid-template-columns: 1fr 1px 1fr !important;
    align-items: center !important;
    padding: 14px !important;
    gap: 6px !important;
  }
  /* Keep the animated line (with the energy dot) — same as desktop */
  /* (no display: none — we explicitly want it visible) */
  /* Door-station: slightly squashed vertically (per request — accept proportion loss) */
  .door-station {
    width: 100% !important;
    max-width: 145px !important;
    margin: 0 auto !important;
    justify-self: center !important;
    transform: scaleY(0.92);
    transform-origin: center;
  }
  .door-screen {
    min-height: 170px !important;
    padding: 8px 7px !important;
  }
  .door-head { padding: 6px 10px 8px !important; }
  .door-time-h { font-size: 16px !important; }
  .door-time-meta { font-size: 7px !important; }
  .door-loc { font-size: 7.5px !important; }
  .door-langs { gap: 2px !important; }
  .door-lang { font-size: 7px !important; padding: 2px 4px !important; }
  .door-tiles { gap: 3px !important; }
  .door-tile { padding: 5px 3px !important; }
  .door-tile-ico { font-size: 11px !important; }
  .door-tile-label { font-size: 7.5px !important; }

  /* Phone mock: bigger frame + proportionally smaller internal text so
     buttons/logos/tiles don't dwarf the phone screen. */
  .phone-mock--home {
    height: auto !important;
    max-height: 310px !important;
    justify-self: center !important;
  }
  .phone-mock--home .phm-screen {
    padding: 10px 6px 4px !important;
    gap: 5px !important;
  }
  /* Header (logo + title + connection dot) */
  .phone-mock--home .phm-brand {
    font-size: 5px !important;
    letter-spacing: 0.16em !important;
  }
  .phone-mock--home .phm-title { font-size: 6px !important; }
  .phone-mock--home .phm-conn-dot {
    width: 4px !important;
    height: 4px !important;
  }
  /* Hero call card */
  .phone-mock--home .phm-call-tag { font-size: 5.5px !important; }
  .phone-mock--home .phm-call-pill {
    font-size: 4.8px !important;
    padding: 2px 4px !important;
    gap: 2px !important;
  }
  .phone-mock--home .phm-call-pill svg {
    width: 5px !important;
    height: 5px !important;
  }
  .phone-mock--home .phm-call-date { font-size: 6px !important; bottom: 14px !important; }
  .phone-mock--home .phm-call-cta { font-size: 5px !important; }
  /* Dots indicator */
  .phone-mock--home .phm-dot { width: 2.5px !important; height: 2.5px !important; }
  /* Today card */
  .phone-mock--home .phm-today-title { font-size: 6px !important; }
  .phone-mock--home .phm-today-date { font-size: 5px !important; }
  .phone-mock--home .phm-tile { padding: 4px 2px !important; }
  .phone-mock--home .phm-tile-top { gap: 3px !important; }
  .phone-mock--home .phm-tile-dot {
    width: 5px !important;
    height: 5px !important;
  }
  .phone-mock--home .phm-tile-lbl { font-size: 4.5px !important; }
  .phone-mock--home .phm-tile-val { font-size: 7px !important; }
  .phone-mock--home .phm-tile-val i { font-size: 5px !important; }
  /* Bottom navigation */
  .phone-mock--home .phm-nav {
    padding: 3px 5px !important;
  }
  .phone-mock--home .phm-nav-item {
    width: 13px !important;
    height: 13px !important;
  }
  .phone-mock--home .phm-nav-item svg {
    width: 9px !important;
    height: 9px !important;
  }

  /* === Pillar 2 (Energy) + Pillar 3 (Domotics) — container compact ===
     Override the global square aspect-ratio. The desktop CSS uses
     justify-content: space-between + flex-grow: 1 which spreads
     content to extremes and creates empty middle ground on mobile.
     Fix: cap height to 180px (~half of original 380px = -53%) and
     remove the flex stretching. */
  #energie .pillar-visual,
  #domotique .pillar-visual {
    aspect-ratio: auto !important;
    max-height: none !important;
    height: 180px !important;
  }

  /* === viz-energy: compact stack, meters auto-height, no inner white gap === */
  .viz-energy {
    padding: 12px !important;
    gap: 8px !important;
    justify-content: center !important;  /* don't stretch — center the stack */
  }
  .viz-energy-head { font-size: 9px !important; flex-shrink: 0; }
  .viz-energy-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    flex-grow: 0 !important;  /* key: stop stretching meters to fill height */
  }
  /* re-show the 3rd meter (Élec.) — landscape layout fits 3 cards */
  .viz-meter:nth-child(3) { display: flex !important; }
  .viz-meter {
    padding: 8px 8px !important;
    gap: 2px !important;
    justify-content: space-between !important;
  }
  .meter-icon { font-size: 7.5px !important; }
  .meter-val { font-size: 17px !important; line-height: 1 !important; }
  .meter-val .u { font-size: 8px !important; }
  .meter-bar { margin-top: 4px !important; height: 3px !important; }
  .viz-energy-chart { height: 32px !important; padding: 4px !important; flex-shrink: 0; }

  /* === viz-domo: drop the empty room, 3 prominent control cards instead ===
     The 2 windows/blinds animation reads well on desktop but is too tiny
     and lonely on mobile (lots of dark void around them). On mobile the
     3 controls ARE the visual — make them generous. */
  .viz-domo {
    padding: 16px !important;
    gap: 0 !important;
    justify-content: center !important;
  }
  .viz-domo-room { display: none !important; }
  .viz-domo-controls {
    grid-template-columns: repeat(3, 1fr) !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .domo-control {
    padding: 16px 10px !important;
    gap: 8px !important;
  }
  .domo-control-label { font-size: 9px !important; }
  .domo-control-val { font-size: 22px !important; }

  /* === viz-app: phone-left / role-tabs-right (matches desktop) === */
  .viz-app {
    flex-direction: row !important;
    align-items: center !important;
    padding: 14px !important;
    gap: 12px !important;
  }
  .app-phone {
    width: 110px !important;
    flex-shrink: 0;
    /* Desktop border-radius 32px à 200px width = ratio 16% (iPhone-like).
       Sans override, 32px sur un phone réduit à 110px = ratio 29% → effet
       pilule. Ramener à 18px conserve le ratio iPhone réaliste. */
    border-radius: 18px !important;
  }
  /* Screen inner radius : phone radius (18px) - padding (7px) = 11px,
     pour que les coins du screen suivent ceux du phone proprement. */
  .app-phone .app-screen { border-radius: 11px !important; }
  .app-roles {
    flex: 1;
    min-width: 0;
    gap: 6px !important;
  }
  .app-role {
    width: auto !important;
    padding: 8px 10px !important;
    gap: 2px !important;
  }
  .app-role .role-tag { font-size: 8px !important; }
  .app-role .role-name { font-size: 12px !important; font-weight: 600; }
  /* Hide the long description on phones — the role-name + tag are enough */
  .app-role .role-desc { display: none !important; }

  /* === arch-section: architecture diagram === */
  .arch-section { padding: 56px 0 !important; }
  .arch-diagram { padding: 20px !important; }
  .arch-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .arch-block { padding: 16px !important; }
  .arch-block h4 { font-size: 16px !important; }
  .arch-block li { font-size: 12px !important; }

  /* === arch-compare: avant / après === */
  .arch-compare {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .arch-card { padding: 22px !important; }

  /* === pillar-row tightening (the 880px MQ already stacks them, but
     we further reduce padding on small phones) === */
  .pillar-row,
  .pillar-row.reverse {
    padding: 36px 0 !important;
    gap: 22px !important;
  }
  .num-big {
    font-size: 60px !important;
    margin-bottom: 4px !important;
  }
  .pillar-content h2 {
    font-size: 28px !important;
    line-height: 1.1 !important;
  }
  .pillar-content p { font-size: 15px !important; }
  .pillar-content ul { gap: 8px !important; margin-top: 16px !important; }
  .pillar-content li { font-size: 14px !important; }

  /* ============================================================
     === INDEX (index.html) — compactage mobile supplémentaire ===
     L'index avait déjà beaucoup de règles mobile (lignes 1527+) +
     Phase 2b agressive (1971+). Reste à tighten l'espace inter-éléments
     dans chaque section + 4 pillar-cards empilées = ~1200px de scroll.
     ============================================================ */

  /* Catch inline padding 100px (#responsabilite — pas attrapé par
     le catch-all Phase 1 qui s'arrête à 80px) */
  [style*="padding: 100px 0"] { padding: 48px 0 !important; }

  /* Hero — rhythm vertical resserré entre kicker/h1/sub/promise/legend */
  .hero { padding-top: 96px !important; padding-bottom: 48px !important; }
  .hero-kicker { margin-bottom: 18px !important; }
  .hero h1.affirm { margin-bottom: 14px !important; }
  .hero-sub.affirm { margin-bottom: 12px !important; }
  .hero-promise { margin-bottom: 6px !important; font-size: 15px !important; }
  .hero-promise-legend { font-size: 11px !important; margin-bottom: 22px !important; }
  .hero-stats {
    margin-top: 32px !important;
    padding-top: 18px !important;
    gap: 20px 0 !important;
  }
  /* Ticker plus discret sur petit écran */
  .hero-ticker { padding: 10px 0 !important; }
  .ticker-track { font-size: 9.5px !important; gap: 32px !important; }

  /* Manifesto — marges internes */
  .manifesto-aside { margin-bottom: 4px !important; }
  .shift-line { margin-bottom: 14px !important; }
  .shift-line-legend { font-size: 11px !important; margin-bottom: 14px !important; }
  .manifesto-aside-note { font-size: 14px !important; line-height: 1.5 !important; margin-bottom: 0 !important; }
  .manifesto-body p.lead { margin-bottom: 12px !important; }
  .manifesto-body p { margin-bottom: 10px !important; }

  /* Savings cells — padding vertical réduit (-30% par cell) */
  .savings-cell { padding: 22px 0 !important; gap: 8px !important; }
  .savings-cell .tag { font-size: 10.5px !important; }
  .savings-cell .footnote { font-size: 11px !important; }
  .savings-foot { margin-top: 24px !important; }

  /* Pillars — 4 cards empilées, gros gain de scroll possible */
  .pillar-card { padding: 22px 20px !important; gap: 10px !important; }
  .pillar-num { font-size: 10.5px !important; }
  .pillar-card h3 { font-size: 22px !important; line-height: 1.1 !important; }
  .pillar-card p { font-size: 14.5px !important; line-height: 1.45 !important; }
  .pillar-tags { gap: 5px !important; margin-top: 4px !important; }
  .pillar-tag { padding: 3px 8px !important; font-size: 10px !important; }

  /* Env-stage — viz reste lisible à 320px */
  .env-stage { height: 320px !important; }

  /* CTA-mega — encore plus serré + h2 margin */
  .cta-mega, .cta-mega.affirm { padding-top: 48px !important; padding-bottom: 48px !important; }
  .cta-mega h2, .cta-mega.affirm h2 { margin-bottom: 14px !important; }
  .cta-mega p { margin-bottom: 20px !important; }

  /* === Accordéons inline injectés dans pillar-card + savings-cell ===
     (cf script.js __neoliaHomeCardAccordions). Le summary par défaut
     a color: var(--ink) — invisible sur fond sombre des savings.
     Override pour le contexte savings (.on-ink). */
  .savings-cell .mobile-accordion--inline > summary {
    color: rgba(255, 255, 255, 0.75) !important;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }
  .savings-cell .mobile-accordion--inline > summary::after {
    color: var(--energy) !important;
  }
  /* Marge entre titre/chiffre visibles et l'accordéon, dans les 2 contextes */
  .pillar-card > .mobile-accordion--inline,
  .savings-cell > .mobile-accordion--inline {
    margin-top: 10px !important;
  }

  /* === Hero archviz building — désactivé en mobile (décision Julien) ===
     Le wireframe 3D du composant React ne rend pas correctement sur Safari
     iOS, et toutes les tentatives de fallback SVG n'ont pas convaincu.
     Décision finale : pas de building en mobile. Le hero garde son fond
     sombre + .hero-grid + .hero-mesh, qui suffisent à l'ambiance. */
  .hero-archviz,
  .hero-archviz-mask {
    display: none !important;
  }

  /* === FAQ (contact.html) — padding question 28px → 14px ===
     Desktop : padding 28px haut/bas = 56px de hauteur "vide" par question.
     7 questions → ~390px de scroll juste pour le padding. Compactage mobile :
     - padding vertical 14px (économie 168px sur 7 questions)
     - toggle 36→28px (proportionné à la nouvelle hauteur)
     - font question 20→17px (clamp desktop garde 26px max) */
  .faq-q {
    padding: 14px 0 !important;
    font-size: 17px !important;
    gap: 14px !important;
  }
  .faq-toggle {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
  }
  .faq-a-inner {
    padding: 0 0 16px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}

/* ============================================================
   MODULES — grille cliquable (page Solution) + modale détail
   ============================================================ */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  font: inherit;
  text-align: left;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing), border-color 0.4s var(--easing);
}
.module-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--energy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--easing);
}
.module-card:hover::after,
.module-card:focus-visible::after { transform: scaleX(1); }
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(11,17,41,0.18);
  border-color: var(--ink);
}
.module-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.module-card h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.module-card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  flex-grow: 1;
}
.module-card-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--energy-deep);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .module-grid { grid-template-columns: 1fr; gap: 14px; }
  .module-card { padding: 28px 24px; }
  .module-card h3 { font-size: 23px; }
}

/* --- Illustration NeoliaCore + satellites (remplace la grille) --- */
.modules-core { margin-top: 12px; }
.modules-core-stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #1B2347 0%, #0B1129 55%, #070B1C 100%);
  border: 1px solid rgba(34,211,164,0.16);
  box-shadow: 0 40px 90px -45px rgba(11,17,41,0.65);
}
.core-svg { display: block; width: 100%; height: auto; }
.core-rings { transform-box: fill-box; transform-origin: center; animation: coreSpin 34s linear infinite; }
@keyframes coreSpin { to { transform: rotate(360deg); } }
.core-hub-label { fill: rgba(34,211,164,0.9); font-family: var(--font-mono); font-size: 17px; letter-spacing: 3px; }
.core-node { cursor: pointer; }
.core-node-scale { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--easing); }
.core-node:hover .core-node-scale,
.core-node:focus-visible .core-node-scale { transform: scale(1.08); }
.core-node:focus { outline: none; }
.core-node:focus-visible .cn-halo { opacity: 1; }
.core-node:focus-visible > .core-node-scale > circle:nth-child(3) { stroke: #22D3A4; }
/* Badge "+" sur chaque satellite : signale clairement une zone cliquable (mobile) */
.cn-plus { transform-box: fill-box; transform-origin: center; animation: cnPlusPulse 2.4s ease-in-out infinite; }
.core-node:hover .cn-plus, .core-node:focus-visible .cn-plus { animation: none; }
@keyframes cnPlusPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
/* Légende d'invite sous l'illustration (surtout utile au tactile) */
.modules-core-hint {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 20px 0 0;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--energy-deep);
  animation: hintPulse 2.6s ease-in-out infinite;
}
.modules-core-hint svg { width: 17px; height: 17px; flex-shrink: 0; }
@keyframes hintPulse { 0%, 100% { opacity: 0.62; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cn-plus, .modules-core-hint { animation: none; }
}
.cn-label { fill: #F5F2EB; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.cn-sub { fill: rgba(34,211,164,0.78); font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 1.5px; }
@media (max-width: 720px) {
  .cn-label { font-size: 32px; }
  .cn-sub { font-size: 18px; }
  .core-hub-label { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .core-rings { animation: none; }
}

/* App résident dans la modale : onglets recables en JS (voir script.js).
   .is-shown a une specificite (0,2,0) > .app-screen et > #app-tab:checked, donc gagne. */
.app-screen.is-shown { display: flex; }
.app-role.app-role--active {
  border-color: var(--energy);
  box-shadow: 0 6px 18px -8px rgba(34,211,164,0.45), inset 0 0 0 1px var(--energy);
}

/* Switch Neuf / Existant du calculateur : segmenté, bien visible (fond sombre) */
.calc-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.calc-toggle-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-family: inherit; font-size: 15.5px; font-weight: 600; color: rgba(245,242,235,0.8);
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 13px; padding: 15px 12px; cursor: pointer; text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.calc-toggle-btn small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; opacity: 0.7; }
.calc-toggle-btn.is-active { background: var(--energy); color: var(--ink); border-color: var(--energy); }
.calc-toggle-btn.is-active small { opacity: 0.9; }
.calc-toggle-btn:hover:not(.is-active) { border-color: rgba(34,211,164,0.55); color: var(--on-ink); }
/* Libellé secondaire du module (parenthèses) + aide sous chaque curseur */
.calc-mod { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: rgba(245,242,235,0.55); }
.calc-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: rgba(245,242,235,0.5); margin-top: 6px; line-height: 1.5; }

/* Capture plein cadre dans un pilier (ex : rapport energie) */
.pillar-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Note en bas de fiche module (ex : option ecran fixe Access) */
.pillar-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 56ch;
}

/* --- Téléphone Access : vraie capture d'appel (remplace le mock CSS) --- */
/* Largeur FIXE (comme .app-phone) pour ne jamais s'etirer dans la modale */
.phone-mock.phone-mock--shot {
  width: 200px;
  aspect-ratio: 9 / 19.5;
  max-height: 100%;
  padding: 7px;
  gap: 0;
  flex-shrink: 0;
}
.phone-mock--shot .phone-shot-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}
.phone-mock--shot .phone-shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Overlay livreur sur la zone camera (l'image reelle du flux ne veut rien dire) */
.phone-mock--shot .phone-shot-overlay {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 34%;
  transform: translateY(-50%);
  background: url('assets/delivery-hero.png') 55% 30% / cover no-repeat #1a2030;
  filter: saturate(0.82) brightness(0.96);
  pointer-events: none;
}

/* --- Modale --- */
.module-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.module-modal[hidden] { display: none; }
.module-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,17,41,0.55);
  backdrop-filter: blur(4px);
  animation: modalFade 0.25s var(--easing);
}
.module-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 56px 48px 48px;
  box-shadow: 0 40px 90px -30px rgba(11,17,41,0.5);
  animation: modalRise 0.3s var(--easing-emphasized);
}
.module-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFFFFF;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.module-modal-close:hover { background: var(--paper); border-color: var(--ink); }
/* Le détail (pillar-row) s'affiche en colonne dans la modale */
.module-modal-body .pillar-row,
.module-modal-body .pillar-row.reverse {
  display: block;
  padding: 0 !important;
  margin: 0;
}
.module-modal-body .pillar-content { margin-bottom: 32px; }
.module-modal-body .pillar-visual { margin-top: 8px; }
body.modal-open { overflow: hidden; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .module-modal { padding: 0; }
  .module-modal-panel {
    max-width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    padding: 64px 22px 40px;
  }
}

/* ============================================================
   TARIFS — bandeau CAPEX condensé (3 stats)
   ============================================================ */
.capex-strip {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.capex-strip-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.capex-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.capex-strip-cell {
  border-left: 2px solid var(--energy);
  padding-left: 16px;
}
.capex-strip-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.capex-strip-num .unit { font-size: 0.5em; font-weight: 500; color: var(--muted-2); margin-left: 4px; }
.capex-strip-lbl {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 10px;
}
.capex-strip-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  margin-top: 18px;
}
@media (max-width: 720px) {
  .capex-strip-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   ACCUEIL — refonte 4 sections (premium / immobilier / ROI)
   ============================================================ */
@keyframes ecoPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.6); } }

.home-h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.accent-ink { color: var(--energy-deep); }

/* --- S1 Hero --- */
.home-hero { min-height: 90vh; padding: 150px 0 96px; }
.home-hero-content { position: relative; z-index: 2; }
.home-hero-content > * { max-width: 600px; }
.home-hero-content .eyebrow { margin-bottom: 18px; }
.home-hero-content h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.home-hero-content h1 .accent { color: var(--energy); font-style: italic; font-weight: 500; }
.home-hero-content .hero-sub {
  max-width: 540px; margin-bottom: 0;
  font-size: 18px; line-height: 1.55;
  color: rgba(245,242,235,0.8);
}
.vision-section .home-h2 .accent { color: var(--energy); }
.home-hero .hero-sub { max-width: 560px; margin-top: 22px; }
.hero-benefits {
  list-style: none;
  margin: 30px 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.hero-benefits li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(245,242,235,0.86);
}
.hero-benefits li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(34,211,164,0.16);
}
.hero-benefits li::after {
  content: "";
  position: absolute; left: 5px; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--energy);
}
.btn-ghost--on-ink { color: rgba(245,242,235,0.9); }

/* eco diagram (bâtiment ↔ résidents / régie / services) */
.home-hero-visual { display: flex; justify-content: center; }
.eco { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; }
.eco-hub, .eco-node {
  background: rgba(245,242,235,0.04);
  border: 1px solid rgba(245,242,235,0.12);
  border-radius: 14px;
  text-align: center;
}
.eco-hub { border-color: rgba(34,211,164,0.4); background: rgba(34,211,164,0.08); padding: 22px 26px; }
.eco-ico { display: flex; justify-content: center; margin-bottom: 8px; color: var(--energy); }
.eco-hub-lbl { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--on-ink); }
.eco-trunk { width: 2px; height: 30px; background: rgba(34,211,164,0.45); }
.eco-spokes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  padding-top: 26px;
}
.eco-spokes::before {
  content: "";
  position: absolute; top: 0; left: 16.66%; right: 16.66%;
  height: 2px; background: rgba(245,242,235,0.16);
}
.eco-node { position: relative; padding: 16px 8px; }
.eco-node::before {
  content: "";
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 26px; background: rgba(245,242,235,0.16);
}
.eco-node .eco-ico { color: rgba(245,242,235,0.88); margin-bottom: 6px; }
.eco-node-lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245,242,235,0.82); }

@media (max-width: 920px) {
  .home-hero { min-height: auto; padding: 120px 0 72px; }
  .hero-benefits { grid-template-columns: 1fr; }
}

/* --- S2 Le monde a changé --- */
.shift-section { background: var(--paper); padding: 110px 0; border-bottom: 1px solid var(--line); }
.shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; align-items: start; }
.shift-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.shift-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.shift-from { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.shift-arrow { color: var(--muted-2); font-size: 16px; }
.shift-to {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.shift-to .shift-check { color: var(--energy-deep); font-size: 13px; }
.shift-to--now { color: var(--energy-deep); font-weight: 600; }
.shift-to--now .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--energy); display: inline-block; animation: ecoPulse 1.8s infinite; }
.shift-text { display: flex; flex-direction: column; gap: 18px; }
.shift-text p { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 880px) { .shift-grid { grid-template-columns: 1fr; gap: 36px; } }

/* --- S3 Vision (dark) --- */
.vision-section { background: var(--ink); padding: 120px 0; }
.vision-body { max-width: 760px; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.vision-body p { font-size: 17px; line-height: 1.6; color: rgba(245,242,235,0.78); }
.vision-punch { margin-top: 44px; border-top: 1px solid rgba(245,242,235,0.12); padding-top: 32px; }
.vision-punch p { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--on-ink); line-height: 1.15; margin: 0; }
.vision-punch-sub { color: var(--energy) !important; margin-top: 6px !important; }

/* --- S4 Écosystème + CTA finale --- */
.audience-section { background: #FFFFFF; padding: 110px 0; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.audience-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px; }
.audience-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--energy-deep); margin-bottom: 16px; }
.audience-card h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 12px; }
.audience-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.home-final-cta { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 56px; text-align: center; }
.home-final-cta p { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 760px; margin: 0 auto 28px; }
@media (max-width: 980px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .audience-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ACCUEIL — finitions premium (S2/S3/S4)
   ============================================================ */

/* S2 : lignes plus vivantes + ligne « en transition » mise en avant */
.shift-row { transition: padding-left 0.3s var(--easing); border-radius: 8px; }
.shift-row:hover { padding-left: 8px; }
.shift-row--now {
  background: linear-gradient(90deg, rgba(34,211,164,0.08) 0%, rgba(34,211,164,0) 70%);
  border-bottom-color: transparent;
  padding: 18px 14px;
  margin-top: 4px;
}
.shift-row--now .shift-from { color: var(--ink); }
.shift-to .shift-check { display: inline-flex; }

/* S3 : profondeur (halo + grille) et bloc « punch » en citation accentuée */
.vision-section { position: relative; overflow: hidden; }
.vision-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(34,211,164,0.14) 0%, transparent 45%),
    linear-gradient(rgba(245,242,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,235,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 75% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 75% 30%, black 0%, transparent 70%);
}
.vision-section .container { position: relative; z-index: 1; }
.vision-punch {
  margin-top: 44px;
  border-top: none;
  border-left: 3px solid var(--energy);
  padding: 4px 0 4px 26px;
}

/* S4 : cartes premium (lift + filet d'accent), CTA finale en panneau */
.audience-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--easing), box-shadow 0.35s var(--easing), border-color 0.35s var(--easing);
}
.audience-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--energy);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--easing);
}
.audience-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(11,17,41,0.22); border-color: var(--ink); }
.audience-card:hover::before { transform: scaleX(1); }
.audience-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--energy-line, rgba(34,211,164,0.35));
  background: rgba(34,211,164,0.08);
  color: var(--energy-deep);
  margin-bottom: 18px;
}
.home-final-cta {
  margin-top: 64px;
  border-top: none;
  padding: 52px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--paper) 0%, #FFFFFF 100%);
}

/* S2 : animation orbitale (mobile connecté aux secteurs, immobilier à l'écart) */
@keyframes w2spin { to { transform: rotate(360deg); } }
@keyframes w2spinrev { to { transform: rotate(-360deg); } }
@keyframes w2pulse { 0% { top: 4px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 138px; opacity: 0; } }
@keyframes w2float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.w2-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: center; text-align: left; }
.w2-text .eyebrow { margin-bottom: 14px; }
.w2-text .home-h2 { margin-bottom: 22px; }
.w2-text p { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.w2-stage { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.w2-orbit { position: relative; width: 300px; height: 300px; }
.w2-orbit-ring { position: absolute; inset: 0; border: 1px dashed rgba(11,17,41,0.12); border-radius: 50%; }
.w2-phone {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 154px;
  margin: -77px 0 0 -39px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(34,211,164,0.14), #FFFFFF);
  border: 1px solid rgba(34,211,164,0.45);
  box-shadow: 0 18px 40px -18px rgba(34,211,164,0.4);
  display: flex; align-items: center; justify-content: center; color: var(--energy-deep);
  z-index: 4; animation: w2float 6s ease-in-out infinite;
}
.w2-phone svg { width: 30px; height: 30px; }
.w2-spin { position: absolute; inset: 0; animation: w2spin 26s linear infinite; }
.w2-node { position: absolute; left: 50%; top: 50%; }
.w2-node.n1 { transform: rotate(0deg)   translateY(-150px); }
.w2-node.n2 { transform: rotate(90deg)  translateY(-150px); }
.w2-node.n3 { transform: rotate(180deg) translateY(-150px); }
.w2-node.n4 { transform: rotate(270deg) translateY(-150px); }
.w2-link { position: absolute; left: -1px; top: 6px; width: 2px; height: 144px; background: linear-gradient(180deg, rgba(34,211,164,0), rgba(34,211,164,0.55)); }
.w2-pulse { position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--energy); box-shadow: 0 0 8px var(--energy); animation: w2pulse 2.4s linear infinite; }
.w2-node.n2 .w2-pulse { animation-delay: 0.6s; }
.w2-node.n3 .w2-pulse { animation-delay: 1.2s; }
.w2-node.n4 .w2-pulse { animation-delay: 1.8s; }
.w2-counter { animation: w2spinrev 26s linear infinite; }
.w2-chip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.w2-node.n1 .w2-chip { transform: translate(-50%, -50%) rotate(0deg); }
.w2-node.n2 .w2-chip { transform: translate(-50%, -50%) rotate(-90deg); }
.w2-node.n3 .w2-chip { transform: translate(-50%, -50%) rotate(-180deg); }
.w2-node.n4 .w2-chip { transform: translate(-50%, -50%) rotate(-270deg); }
.w2-chip .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(34,211,164,0.12); border: 1px solid rgba(34,211,164,0.32); color: var(--energy-deep); display: flex; align-items: center; justify-content: center; }
.w2-chip .ico svg { width: 22px; height: 22px; }
.w2-chip .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
/* Immobilier : isolé dans le coin, déconnecté */
.w2-lonely { position: absolute; right: 2px; bottom: 6px; display: flex; flex-direction: column; align-items: center; gap: 7px; opacity: 0.55; }
.w2-lonely .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(11,17,41,0.03); border: 1px dashed rgba(11,17,41,0.28); color: var(--muted-2); display: flex; align-items: center; justify-content: center; }
.w2-lonely .ico svg { width: 22px; height: 22px; }
.w2-lonely .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.w2-lonely .w2-cut { position: absolute; left: -34px; top: 22px; width: 30px; height: 1px; border-top: 1px dashed rgba(11,17,41,0.2); }

@media (max-width: 880px) {
  .w2-grid { grid-template-columns: 1fr; gap: 36px; }
  .w2-text { order: 1; }
  .w2-stage { order: 2; min-height: 360px; }
}

/* S2 (ancienne forme — bloc typographique éditorial centré, conservé inutilisé) */
.world-section { text-align: center; }
.world-eyebrow { justify-content: center; display: inline-flex; margin-bottom: 30px; }
.world-type {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.16; letter-spacing: -0.03em;
  max-width: 18ch; margin: 0 auto; color: var(--muted-2);
}
.world-type .world-sector { display: inline-block; }
.world-type .world-result { display: block; color: var(--ink); margin-top: 12px; }
.world-type .world-result .arrow { color: var(--energy-deep); margin-right: 8px; }
.world-punch {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -0.03em;
  color: var(--ink); margin: 18px auto 0; max-width: 18ch;
}
.world-punch .world-now { color: var(--energy-deep); }
.world-sub { max-width: 600px; margin: 36px auto 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
@media (max-width: 600px) {
  .world-type, .world-punch { font-size: clamp(28px, 8.5vw, 40px); max-width: 100%; }
}

/* S2 (ancienne forme — cartes migration, conservé inutilisé) : illustration à gauche, titre + texte à droite */
.shift-section .shift-grid {
  margin-top: 0;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.shift-text .eyebrow { margin-bottom: 14px; }
.shift-text .home-h2 { margin-bottom: 26px; }
.migrate-stack { display: flex; flex-direction: column; gap: 12px; }
.migrate-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}
.migrate-card:hover { transform: translateX(5px); box-shadow: 0 16px 34px -22px rgba(11,17,41,0.22); }
.migrate-ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--muted-2);
}
.migrate-ico svg { width: 22px; height: 22px; }
.migrate-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.migrate-status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.migrate-status.done { color: var(--energy-deep); }
.migrate-card.is-now {
  border-color: rgba(34,211,164,0.5);
  background: linear-gradient(180deg, rgba(34,211,164,0.08), #FFFFFF 70%);
  box-shadow: 0 0 0 1px rgba(34,211,164,0.18), 0 20px 44px -26px rgba(34,211,164,0.45);
}
.migrate-card.is-now .migrate-ico { background: rgba(34,211,164,0.14); color: var(--energy-deep); }
.migrate-status.now { color: var(--energy-deep); font-weight: 600; }
.migrate-status.now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--energy); box-shadow: 0 0 8px var(--energy); animation: ecoPulse 1.8s infinite; }
@media (max-width: 880px) {
  .shift-section .shift-grid { grid-template-columns: 1fr; gap: 32px; }
  .shift-text { order: 1; }
  .shift-visual { order: 2; }
}

/* S3 : Vision en 2 colonnes + schéma smartphone orbital */
.vision-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.vision-col { min-width: 0; }
.vision-col .vision-body { max-width: 620px; }
.vision-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.phone-orbit { position: relative; width: 340px; height: 440px; display: flex; align-items: center; justify-content: center; }
.orbit-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(34,211,164,0.16); border-radius: 50%; }
.orbit-ring.r1 { width: 280px; height: 280px; }
.orbit-ring.r2 { width: 370px; height: 370px; border-color: rgba(34,211,164,0.10); }
.orbit-ring.r3 { width: 460px; height: 460px; border-color: rgba(34,211,164,0.06); }
.orbit-pulse { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border: 1px solid rgba(34,211,164,0.5); border-radius: 50%; animation: orbitPulse 3.4s ease-out infinite; }
@keyframes orbitPulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.65); opacity: 0; } }
.orbit-spin { position: absolute; inset: 0; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--energy); box-shadow: 0 0 12px var(--energy); }
.orbit-dot.a1 { transform: rotate(20deg) translateY(-140px); }
.orbit-dot.a2 { transform: rotate(110deg) translateY(-140px); }
.orbit-dot.a3 { transform: rotate(200deg) translateY(-185px); opacity: 0.7; }
.orbit-dot.a4 { transform: rotate(300deg) translateY(-185px); opacity: 0.7; }
.phone-frame {
  position: relative; z-index: 2;
  width: 168px; height: 338px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(245,242,235,0.08), rgba(245,242,235,0.02));
  border: 1px solid rgba(245,242,235,0.18);
  box-shadow: 0 36px 70px -30px rgba(0,0,0,0.6), 0 0 60px rgba(34,211,164,0.14);
  display: flex; align-items: center; justify-content: center;
}
.phone-frame::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 3px; background: rgba(245,242,235,0.22); }
.phone-glyph { color: var(--energy); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-glyph svg { width: 72px; height: 72px; filter: drop-shadow(0 0 14px rgba(34,211,164,0.55)); }
.phone-glyph .phone-bars { display: flex; gap: 5px; align-items: flex-end; height: 26px; }
.phone-glyph .phone-bars i { width: 7px; background: var(--energy); border-radius: 2px; opacity: 0.85; animation: barPulse 1.8s ease-in-out infinite; }
.phone-glyph .phone-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.phone-glyph .phone-bars i:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.phone-glyph .phone-bars i:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.phone-glyph .phone-bars i:nth-child(4) { height: 55%; animation-delay: 0.6s; }
@keyframes barPulse { 0%, 100% { transform: scaleY(0.7); } 50% { transform: scaleY(1); } }
@media (max-width: 880px) {
  .vision-grid { grid-template-columns: 1fr; gap: 36px; }
  .vision-visual { min-height: 360px; order: 2; }
}

/* S4 : icône par carte */
.audience-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(34,211,164,0.10); color: var(--energy-deep);
  margin-bottom: 18px;
}
.audience-ico svg { width: 24px; height: 24px; }
.audience-num--corner {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted-2);
}
/* Cartes acteurs cliquables (ouvrent une modale) */
.audience-card { font: inherit; text-align: left; width: 100%; cursor: pointer; }
.audience-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.audience-more { display: block; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--energy-deep); }
/* Contenu de la modale acteur */
.eco-detail { max-width: 640px; }
.eco-detail-ico { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(34,211,164,0.10); color: var(--energy-deep); margin-bottom: 20px; }
.eco-detail-ico svg { width: 28px; height: 28px; }
.eco-detail h3 { font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.eco-detail-lead { font-size: 17px; line-height: 1.55; color: var(--muted); margin-bottom: 26px; }
.eco-detail-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.eco-detail-list li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.eco-detail-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(34,211,164,0.14); }
.eco-detail-list li::after { content: "✓"; position: absolute; left: 4.5px; top: 1px; font-size: 11px; font-weight: 700; color: var(--energy-deep); }

/* Respect de prefers-reduced-motion (animations continues) */
@media (prefers-reduced-motion: reduce) {
  .building-3d-sway, .signal-pulse, .shift-to--now .dot,
  .orbit-pulse, .orbit-spin, .phone-glyph .phone-bars i,
  .w2-spin, .w2-counter, .w2-pulse, .w2-phone,
  .na-spin, .na-counter, .na-pulse { animation: none !important; }
}

/* ============================================================
   ACCUEIL — section fusionnée « Le monde est devenu mobile » (S2 + S3)
   ============================================================ */
.merge-section { background: var(--ink); padding: 130px 0; position: relative; overflow: hidden; }
.merge-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 45%, rgba(34,211,164,0.12) 0%, transparent 55%); pointer-events: none; }
.merge-section .container { position: relative; z-index: 1; }
.merge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.merge-section .eyebrow { display: inline-flex; margin-bottom: 22px; }
.merge-h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; color: var(--on-ink); max-width: 14ch; margin: 0; }
.merge-h2 .accent { color: var(--energy); }
.merge-lead { max-width: 520px; margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: rgba(245,242,235,0.72); }

.na-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 500px; margin: 0; }
.na-orbit { position: relative; width: 400px; height: 400px; }
.na-ring { position: absolute; inset: 0; border: 1px dashed rgba(245,242,235,0.12); border-radius: 50%; }
.na-phone { position: absolute; left: 50%; top: 50%; width: 92px; height: 184px; margin: -92px 0 0 -46px; border-radius: 20px; background: linear-gradient(160deg, rgba(34,211,164,0.16), rgba(11,17,41,0.55)); border: 1px solid rgba(34,211,164,0.4); box-shadow: 0 0 28px rgba(34,211,164,0.16); display: flex; align-items: center; justify-content: center; color: var(--energy); z-index: 5; transition: box-shadow 1s ease 2s; }
.na-stage.in .na-phone { box-shadow: 0 0 64px rgba(34,211,164,0.42); }
.na-phone svg { width: 32px; height: 32px; }
.na-spin { position: absolute; inset: 0; animation: w2spin 30s linear infinite; z-index: 3; }
.na-node { position: absolute; left: 50%; top: 50%; }
.na-node.n1 { transform: rotate(0deg)   translateY(-190px); }
.na-node.n2 { transform: rotate(72deg)  translateY(-190px); }
.na-node.n3 { transform: rotate(144deg) translateY(-190px); }
.na-node.n4 { transform: rotate(216deg) translateY(-190px); }
.na-node.n5 { transform: rotate(288deg) translateY(-190px); }
.na-link { position: absolute; left: -1px; top: 4px; width: 2px; height: 186px; background: linear-gradient(180deg, rgba(34,211,164,0), rgba(34,211,164,0.5)); }
.na-link-off { position: absolute; left: 0; top: 4px; width: 0; height: 186px; border-left: 2px dashed rgba(245,242,235,0.22); }
.na-pulse { position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--energy); box-shadow: 0 0 8px var(--energy); animation: w2pulse 2.6s linear infinite; }
.na-node.n2 .na-pulse { animation-delay: 0.7s; }
.na-node.n4 .na-pulse { animation-delay: 1.4s; }
.na-node.n5 .na-pulse { animation-delay: 2.1s; }
.na-counter { animation: w2spinrev 30s linear infinite; }
.na-chip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.na-node.n1 .na-chip { transform: translate(-50%, -50%) rotate(0deg); }
.na-node.n2 .na-chip { transform: translate(-50%, -50%) rotate(-72deg); }
.na-node.n3 .na-chip { transform: translate(-50%, -50%) rotate(-144deg); }
.na-node.n4 .na-chip { transform: translate(-50%, -50%) rotate(-216deg); }
.na-node.n5 .na-chip { transform: translate(-50%, -50%) rotate(-288deg); }
.na-chip .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(34,211,164,0.12); border: 1px solid rgba(34,211,164,0.3); color: var(--energy); display: flex; align-items: center; justify-content: center; transition: background .7s, border-color .7s, color .7s; }
.na-chip .ico svg { width: 22px; height: 22px; }
.na-chip .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(245,242,235,0.82); white-space: nowrap; transition: color .7s; }

/* Immobilier — déconnecté/grisé, s'active au reveal */
.na-node.immo .na-link { opacity: 0; transition: opacity .9s ease 1.2s; }
.na-node.immo .na-link-off { opacity: 1; transition: opacity .9s ease 1.2s; }
.na-node.immo .na-pulse { opacity: 0; }
.na-node.immo .na-chip .ico { background: rgba(245,242,235,0.05); border-color: rgba(245,242,235,0.22); color: rgba(245,242,235,0.5); transition-delay: 1.6s; }
.na-node.immo .na-chip .lbl { color: rgba(245,242,235,0.45); transition-delay: 1.6s; }
.na-stage.in .na-node.immo .na-link { opacity: 1; }
.na-stage.in .na-node.immo .na-link-off { opacity: 0; }
.na-stage.in .na-node.immo .na-pulse { opacity: 1; animation: w2pulse 2.6s linear 2s infinite; }
.na-stage.in .na-node.immo .na-chip .ico { background: rgba(34,211,164,0.12); border-color: rgba(34,211,164,0.3); color: var(--energy); }
.na-stage.in .na-node.immo .na-chip .lbl { color: rgba(245,242,235,0.82); }

/* Services Neolia (inner) — apparaissent après l'activation */
.na-inner { position: absolute; inset: 0; z-index: 4; }
.na-svc { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(.8); transition: opacity .7s ease, transform .7s ease; }
.na-svc .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--energy); box-shadow: 0 0 8px var(--energy); }
.na-svc .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245,242,235,0.8); white-space: nowrap; }
.na-svc.s1 { --x: 0px;    --y: -122px; transition-delay: 2.1s; }
.na-svc.s2 { --x: -106px; --y: 66px;   transition-delay: 2.3s; }
.na-svc.s3 { --x: 106px;  --y: 66px;   transition-delay: 2.5s; }
.na-stage.in .na-svc { opacity: 1; transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(1); }

/* Bloc de mise en avant */
.merge-highlight { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(245,242,235,0.12); }
.merge-highlight p { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--on-ink); margin: 0; max-width: 30ch; }
.merge-highlight .sub { color: var(--energy); margin-top: 6px; }

@media (max-width: 880px) {
  .merge-grid { grid-template-columns: 1fr; gap: 24px; }
  .merge-text { order: 1; }
  .na-stage { order: 2; min-height: 460px; }
}
@media (max-width: 600px) {
  .na-orbit { transform: scale(0.72); }
  .merge-section { padding: 96px 0; }
}

/* ============================================================
   ACCUEIL — visuel « écran d'accueil » (smartphone + apps + Logement)
   ============================================================ */
.ph-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 640px; }
.ph {
  position: relative; width: 290px; height: 580px; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1a2238, #0b1129);
  border: 1px solid rgba(245,242,235,0.14);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 60px rgba(34,211,164,0.10);
  opacity: 0; transform: translateY(24px) scale(0.985);
  transition: opacity .7s var(--easing-emphasized), transform .7s var(--easing-emphasized);
}
.ph-stage.in .ph { opacity: 1; transform: none; }
.ph-island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #05070f; border-radius: 14px; z-index: 6; }
.ph-screen { position: absolute; inset: 12px; border-radius: 36px; overflow: visible; background: radial-gradient(circle at 50% 16%, rgba(34,211,164,0.12), transparent 52%), linear-gradient(180deg, #0e1530, #0a0f24); }
.ph-status { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; font-family: var(--font-mono); font-size: 12px; color: rgba(245,242,235,0.7); }
.ph-status .bars { display: inline-flex; gap: 3px; align-items: flex-end; }
.ph-status .bars i { width: 3px; background: rgba(245,242,235,0.7); border-radius: 1px; }
.ph-status .bars i:nth-child(1){ height: 6px; } .ph-status .bars i:nth-child(2){ height: 9px; } .ph-status .bars i:nth-child(3){ height: 12px; }
.ph-grid { position: absolute; top: 66px; left: 0; right: 0; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; justify-items: center; }
.ph-app { display: flex; flex-direction: column; align-items: center; gap: 9px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--easing), transform .5s var(--easing); }
.ph-stage.in .ph-app { opacity: 1; transform: none; }
.ph-stage.in .ph-app:nth-child(1) { transition-delay: .30s; }
.ph-stage.in .ph-app:nth-child(2) { transition-delay: .42s; }
.ph-stage.in .ph-app:nth-child(3) { transition-delay: .54s; }
.ph-stage.in .ph-app:nth-child(4) { transition-delay: .66s; }
.ph-ico { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 20px -10px rgba(0,0,0,0.65); }
.ph-ico svg { width: 30px; height: 30px; }
.ph-lbl { font-size: 11px; color: rgba(245,242,235,0.82); }
.a-bank .ph-ico { background: linear-gradient(160deg, #4f7cf6, #5b5bef); }
.a-shop .ph-ico { background: linear-gradient(160deg, #fb9a3c, #f5772b); }
.a-chat .ph-ico { background: linear-gradient(160deg, #3fc1f2, #2f7bf0); }
.a-car  .ph-ico { background: linear-gradient(160deg, #2dd4bf, #0bb0c8); }

.ph-slot { position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 16px; border: 1.5px dashed rgba(245,242,235,0.22); opacity: 1; }
.ph-stage.in .ph-slot { animation: phSlot 9s ease-in-out infinite; }

.ph-home { position: absolute; left: 50%; bottom: 104px; display: flex; flex-direction: column; align-items: center; gap: 9px; z-index: 7;
  transform: translateX(calc(-50% + 188px)) translateY(6px); filter: grayscale(1) brightness(0.82); }
.ph-home .ph-ico { background: linear-gradient(160deg, #22D3A4, #0FAE82); }
.ph-home .ph-lbl { color: rgba(245,242,235,0.9); }
.ph-home::before { content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 26px; background: radial-gradient(circle, rgba(34,211,164,0.55), transparent 70%); opacity: 0; z-index: -1; }
.ph-stage.in .ph-home { animation: phHome 9s ease-in-out infinite; }
.ph-stage.in .ph-home::before { animation: phGlow 9s ease-in-out infinite; }

.ph-pulse { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(34,211,164,0.6); opacity: 0; pointer-events: none; }
.ph-stage.in .ph-pulse { animation: phPulse 9s ease-out infinite; }

.ph-caption { position: relative; height: 30px; width: 100%; text-align: center; }
.ph-caption span { position: absolute; left: 0; right: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.ph-caption .cap-out { color: rgba(245,242,235,0.55); }
.ph-caption .cap-in { color: var(--energy); opacity: 0; }
.ph-stage.in .ph-caption .cap-out { animation: phCapOut 9s ease-in-out infinite; }
.ph-stage.in .ph-caption .cap-in  { animation: phCapIn 9s ease-in-out infinite; }

@keyframes phHome {
  0%, 16%  { transform: translateX(calc(-50% + 188px)) translateY(6px); filter: grayscale(1) brightness(0.82); }
  40%, 66% { transform: translateX(-50%) translateY(0); filter: grayscale(0) brightness(1); }
  88%, 100%{ transform: translateX(calc(-50% + 188px)) translateY(6px); filter: grayscale(1) brightness(0.82); }
}
@keyframes phGlow { 0%, 8% { opacity: 0; } 18% { opacity: 1; } 38% { opacity: .5; } 46%, 100% { opacity: 0; } }
@keyframes phSlot { 0%, 18% { opacity: 1; } 30% { opacity: 0; } 80% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes phPulse { 0%, 34% { opacity: 0; transform: scale(0.4); } 40% { opacity: .8; transform: scale(0.6); } 56% { opacity: 0; transform: scale(6); } 100% { opacity: 0; transform: scale(6); } }
@keyframes phCapOut { 0%, 24% { opacity: 1; } 32% { opacity: 0; } 82% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes phCapIn { 0%, 32% { opacity: 0; } 42% { opacity: 1; } 80% { opacity: 1; } 88%, 100% { opacity: 0; } }

@media (max-width: 880px) { .ph-stage { min-height: 560px; order: 2; } }
@media (max-width: 600px) { .ph-stage { transform: scale(0.82); } }

@media (prefers-reduced-motion: reduce) {
  .ph, .ph-app { transition: none !important; }
  .ph-stage.in .ph-home, .ph-stage.in .ph-home::before, .ph-stage.in .ph-slot,
  .ph-stage.in .ph-pulse, .ph-stage.in .ph-caption .cap-out, .ph-stage.in .ph-caption .cap-in { animation: none !important; }
  .ph-home { transform: translateX(-50%) translateY(0) !important; filter: none !important; }
  .ph-slot { opacity: 0 !important; }
  .ph-caption .cap-out { opacity: 0 !important; }
  .ph-caption .cap-in { opacity: 1 !important; }
}

/* ============================================================
   ACCUEIL — section économique « coûts de construction » (sous le Hero)
   ============================================================ */
.econ-section { background: var(--paper); padding: 110px 0; border-bottom: 1px solid var(--line); }
.econ-head { max-width: 760px; }
.econ-lead { max-width: 600px; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.econ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.econ-cell { border-top: 2px solid var(--ink); padding-top: 22px; }
.econ-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--energy-deep); margin-bottom: 16px; }
.econ-num { font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 70px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.econ-num .unit { font-size: 0.42em; font-weight: 500; color: var(--muted-2); margin-left: 4px; }
.econ-desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 14px; }
.econ-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.econ-foot p { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--muted-2); line-height: 1.6; max-width: 62ch; margin: 0; }
@media (max-width: 780px) { .econ-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============================================================
   ACCUEIL — section exploitation (régie / SAV / intervenants)
   ============================================================ */
.ops-section { background: #FFFFFF; padding: 110px 0; border-bottom: 1px solid var(--line); }
.ops-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.ops-text .eyebrow { margin-bottom: 14px; }
.ops-text .home-h2 { margin-bottom: 20px; }
.ops-lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 44ch; }
.ops-highlight { margin: 26px 0 0; padding-left: 18px; border-left: 3px solid var(--energy); font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.ops-note { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(34,211,164,0.08); font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.ops-note strong, .ops-note b { color: var(--energy-deep); font-weight: 600; }
.ops-list { display: flex; flex-direction: column; gap: 16px; }
.ops-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; transition: transform .3s var(--easing), box-shadow .3s var(--easing), border-color .3s var(--easing); }
.ops-item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(11,17,41,0.2); border-color: var(--ink); }
.ops-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(34,211,164,0.10); color: var(--energy-deep); display: flex; align-items: center; justify-content: center; }
.ops-ico svg { width: 24px; height: 24px; }
.ops-item h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 6px; }
.ops-item p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 880px) { .ops-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   MOTION — Lenis smooth scroll + finitions hover/dégradés
   ============================================================ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.btn-primary, .btn-ghost, .btn-ghost--on-ink { transition: transform .25s var(--easing), background .3s var(--easing), color .3s var(--easing), box-shadow .3s var(--easing); }
.btn-arrow, .btn-ghost svg { display: inline-block; transition: transform .25s var(--easing); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(34,211,164,0.5); }
.btn-primary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow,
.btn-ghost:hover svg { transform: translateX(4px); }

/* Dégradé qui dérive doucement dans la section sombre fusionnée */
@keyframes meshDrift { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(3%, -2%, 0) scale(1.08); } }
.merge-section::before { animation: meshDrift 20s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .merge-section::before { animation: none !important; }
}

/* GSAP pilote les révélations : neutralise les transitions CSS, garde le store
   de la modale visible (il est cloné dans la pop-up). */
html.gsap-on [data-reveal] { transition: none !important; }
html.gsap-on #module-details [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Animation v2 « bâtiment -> app -> téléphone » : GSAP pilote ; on neutralise
   les anciennes boucles CSS (slot / pulse / légende) quand GSAP est actif. */
html.gsap-on .ph-stage.in .ph-slot,
html.gsap-on .ph-stage.in .ph-pulse,
html.gsap-on .ph-stage.in .ph-caption .cap-out,
html.gsap-on .ph-stage.in .ph-caption .cap-in { animation: none !important; }

.morph { position: absolute; bottom: 96px; left: calc(50% - 36px); width: 72px; height: 86px; z-index: 7; }
.morph-building, .morph-app { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.morph-building svg { width: 88px; height: 88px; filter: drop-shadow(0 0 16px rgba(34,211,164,0.45)); }
.morph-app .ph-ico { background: linear-gradient(160deg, #22D3A4, #0FAE82); }
.morph-app .ph-lbl { color: rgba(245,242,235,0.92); }
/* État de repli (sans GSAP / reduced-motion) : l'app est intégrée dans le slot */
.morph-building { opacity: 0; }
.morph-app { opacity: 1; }

/* Vidéo « bâtiment -> app dans le smartphone » (remplace l'animation morph) */
.merge-video {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.merge-video-el { display: block; width: 100%; height: auto; }
@media (max-width: 880px) { .merge-video { order: 2; } }

/* Solution — « Deux façons d'installer Neolia » : deux tuiles côte à côte, espacées */
.lc-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .lc-paths { grid-template-columns: 1fr; gap: 20px; } }

/* ============================================================
   Correctifs mobile (passe visualisation mobile)
   ============================================================ */
@media (max-width: 720px) {
  /* Accueil : décoller le bouton « Découvrir Neolia » de la liste.
     padding-top (ne collapse jamais) pour un espace garanti au-dessus du bouton. */
  .home-hero .hero-actions { padding-top: 30px; }
}
@media (max-width: 768px) {
  /* === Pop-ups (clones) sur mobile ===
     Les visuels Access/Energy ne s'affichent plus QUE dans la modale (la page
     montre l'illustration NeoliaCore). Mais d'anciennes règles « page »
     (@media 720px) en !important + sélecteurs id (#energie, .door-station,
     .pillar-visual) écrasaient mes overrides : platine compressée à 145px en
     3 colonnes, rapport Energy bridé à 180px de haut → coupé.
     On les bat ici avec .module-modal-body + id + !important (spécificité
     supérieure ET !important), sans :has() (non garanti sur tous les mobiles). */

  /* Cadres Access + Energy : hauteur libre, pas de ratio impose */
  .module-modal-body #interphonie .pillar-visual,
  .module-modal-body #energie .pillar-visual {
    aspect-ratio: auto !important;
    max-height: none !important;
    height: auto !important;
  }

  /* Access : platine empilée AU-DESSUS du téléphone, reliées par le trait animé */
  .module-modal-body .viz-interphony {
    position: relative !important; inset: auto !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    gap: 14px !important; padding: 28px 16px !important;
  }
  /* Trait vertical reliant la platine au téléphone, avec le point animé
     (va-et-vient) hérité de .viz-line::after — montre que les deux communiquent. */
  .module-modal-body .viz-interphony .viz-line {
    display: block !important;
    width: 2px !important;
    height: 46px !important;
    align-self: center !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
  }
  .module-modal-body .door-station {
    width: 200px !important; max-width: 200px !important; height: auto !important;
    margin: 0 auto !important; justify-self: center !important;
    transform: none !important;
  }
  .module-modal-body .door-screen { min-height: 240px !important; }
  .module-modal-body .phone-mock.phone-mock--shot {
    width: 190px !important; max-height: none !important;
  }

  /* Energy : le rapport (image presque carrée) s'affiche en entier */
  .module-modal-body .pillar-shot {
    height: auto !important; object-fit: contain !important;
    object-position: center !important;
  }
}
