/* Accueil Diamix Studio : DA « spectre » (à l'essai).
   - Socle repris du vieux Strive (monde outil) : quasi-noir chaud, blanc
     chaud, Geist ; en clair, un papier légèrement chaud. Interface
     monochrome : la couleur n'est jamais un contrôle, seulement l'identité.
   - Spectre de la suite : une teinte pastel par app, en lueurs et liserés
     discrets, jamais en aplat vif ni en couleur de texte (sauf les encres
     --halo-ink / --violet-ink, contrastées pour le texte). Le violet est à Halo.
   - Verre sur ce qui flotte (en-tête, tableau de la suite), grain sur toute la
     page, courbes de niveau pour le côté nature, serif italique sur un mot
     par titre. Au plus deux teintes visibles à la fois, hors tableau. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efeee8;
  --text: #1a1a17;
  --muted: #64635d;
  --border: rgba(26, 26, 23, .11);
  --accent: #1a1a17;
  --accent-text: #f6f5f1;
  --line: rgba(26, 26, 23, .10);
  --line-strong: rgba(26, 26, 23, .18);
  --glass: rgba(255, 255, 255, .58);
  --glass-edge: rgba(26, 26, 23, .09);
  --contour: rgba(26, 26, 23, .11);
  --aura-o: .34;
  --grain-o: .07;
  --halo-ink: #9a4518;
  --violet-ink: #5f4bd0;
  --halo-glow-y: rgba(255, 169, 122, .22);
  --halo-glow-v: rgba(155, 140, 240, .18);
  --shadow-float: 0 10px 40px -18px rgba(26, 26, 23, .28);

  /* Le spectre de la suite : Halo (orange pêche + violet), puis les prochaines apps */
  --c-peach: #FFA97A;
  --c-violet: #9B8CF0;
  --c-green: #8FC79A;
  --c-blue: #8BB8E8;
  --c-red: #E5677F;
  --spectrum: linear-gradient(90deg, var(--c-blue), var(--c-green), var(--c-peach), var(--c-violet), var(--c-red));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --surface: #131315;
    --surface-2: #1c1c20;
    --text: #f0f0eb;
    --muted: #908f89;
    --border: rgba(255, 255, 255, .08);
    --accent: #f0f0eb;
    --accent-text: #0b0b0c;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .15);
    --glass: rgba(20, 20, 23, .52);
    --glass-edge: rgba(255, 255, 255, .09);
    --contour: rgba(240, 240, 235, .085);
    --aura-o: .2;
    --grain-o: .055;
    --halo-ink: #FFA97A;
    --violet-ink: #b5aaf6;
    --halo-glow-y: rgba(255, 169, 122, .13);
    --halo-glow-v: rgba(155, 140, 240, .14);
    --shadow-float: 0 18px 50px -20px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-2: #1c1c20;
  --text: #f0f0eb;
  --muted: #908f89;
  --border: rgba(255, 255, 255, .08);
  --accent: #f0f0eb;
  --accent-text: #0b0b0c;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --glass: rgba(20, 20, 23, .52);
  --glass-edge: rgba(255, 255, 255, .09);
  --contour: rgba(240, 240, 235, .085);
  --aura-o: .2;
  --grain-o: .055;
  --halo-ink: #FFA97A;
  --violet-ink: #b5aaf6;
  --halo-glow-y: rgba(255, 169, 122, .13);
  --halo-glow-v: rgba(155, 140, 240, .14);
  --shadow-float: 0 18px 50px -20px rgba(0, 0, 0, .6);
}

.home { overflow-x: hidden; }

/* Grain : un bruit fin fixe sur toute la page, ce qui rend le fond « matière ». */
.home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* En-tête en verre, qui flotte au-dessus de la page */
.home .site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  max-width: 1120px;
  width: calc(100% - 32px);
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-float);
}

/* Sur écran tactile, le flou d'arrière-plan se recalcule à chaque image du
   défilement : on le remplace par un fond presque opaque. Le grain fixe
   plein écran saute aussi (il coûte du remplissage à chaque image). */
@media (pointer: coarse) {
  .home .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
  }
  .home::after { display: none; }
}

.h-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typographie ---------- */

.h-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.h-idx {
  color: var(--text);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.h-title {
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
  margin: 0 0 22px;
}

.h-h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0 0 16px;
  text-wrap: balance;
}

/* Le mot en serif italique : la touche organique d'un titre technique */
.h-serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -.01em;
  line-height: .9;
}

#halo .h-serif, .h-final .h-serif { color: var(--halo-ink); }

.h-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; margin: 0 0 30px; }

.h-body { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 560px; }

.h-meta { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

.h-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-lg { padding: 12px 20px; border-radius: 11px; font-size: 15px; }

.btn-app { background: var(--c-peach); color: #1d1604; }

.btn-app:hover { filter: brightness(1.05); }

/* ---------- Décor commun : courbes de niveau et lueurs ---------- */

.h-decor { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

/* Les courbes (img/brand/contours-*.svg, générées) : couleur et fondu vers
   les bords sont DANS le fichier, un par thème. Le navigateur les peint une
   fois puis ne fait que les déplacer : un masque CSS, lui, se repeignait à
   chaque image de l'animation (c'était le premier poste de lenteur). */
.h-contours {
  position: absolute;
  inset: -4%;
  background: url("/img/brand/contours-light.svg") center / cover no-repeat;
  animation: contour-breathe 46s ease-in-out infinite alternate;
  will-change: transform;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .h-contours { background-image: url("/img/brand/contours-dark.svg"); }
}

:root[data-theme="dark"] .h-contours { background-image: url("/img/brand/contours-dark.svg"); }

.aura {
  position: absolute;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 62%);
  opacity: calc(var(--aura-o) * var(--k, 1));
  animation: aura-drift 38s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes contour-breathe {
  from { scale: 1; rotate: -.8deg; }
  to { scale: 1.06; rotate: .9deg; }
}

.aura-peach { --c: var(--c-peach); right: -60px; top: -170px; }
.aura-violet { --c: var(--c-violet); right: 300px; top: 140px; width: 460px; animation-duration: 46s; animation-delay: -12s; }
.aura-green { --c: var(--c-green); --k: .6; left: -240px; bottom: -300px; animation-duration: 52s; }
.aura-blue { --c: var(--c-blue); --k: .6; right: -220px; bottom: -280px; width: 440px; animation-duration: 44s; animation-delay: -20s; }

@keyframes aura-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, -24px, 0) scale(1.06); }
}

/* ---------- Hero ---------- */

/* overflow: hidden obligatoire : les lueurs débordent, et sur mobile un
   débordement élargit la page entière (le navigateur dézoome), même avec
   overflow-x: hidden sur body. */
.h-hero {
  position: relative;
  padding: 80px 0 104px;
  margin-top: -76px;
  padding-top: 156px;
  isolation: isolate;
  overflow: hidden;
}

.h-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Schéma de la suite (js/suite-map.js) ----------
   Un arbre : le compte Strive est le tronc, chaque app une branche. Le repère
   est celui du SVG (480 x 440) : le cadre garde ce rapport, et tout ce qui est
   dedans se dimensionne en cqi (largeur du cadre) pour rester aligné sur les
   branches, du mobile au grand écran. */

.suite-map {
  position: relative;
  margin: 0;
  aspect-ratio: 480 / 440;
  container-type: inline-size;
  color: var(--text);
}

.suite-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.suite-caption span + span { letter-spacing: .02em; text-transform: none; }

.suite-branches { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Les branches poussent une fois (classe is-grown), l'une après l'autre */
.suite-branch { transition: opacity .35s ease; }

.suite-branch-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s cubic-bezier(.65, 0, .35, 1), stroke-width .3s ease;
}

.suite-branch:nth-of-type(3) .suite-branch-line { transition-delay: .15s; }
.suite-branch:nth-of-type(4) .suite-branch-line { transition-delay: .3s; }
.suite-branch:nth-of-type(5) .suite-branch-line { transition-delay: .45s; }

.is-grown .suite-branch-line { stroke-dashoffset: 0; }

/* Les branches des apps à venir sont en pointillé : elles apparaissent en fondu */
.suite-branch.is-future .suite-branch-line { stroke-dasharray: .012 .016; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s ease .5s, stroke-width .3s ease; }

.is-grown .suite-branch.is-future .suite-branch-line { opacity: .9; }

.suite-roots { opacity: 0; transition: opacity 1.2s ease .2s; }

.is-grown .suite-roots { opacity: 1; }

/* Survol d'une app : sa branche s'allume, les autres s'effacent */
.has-focus .suite-branch:not(.is-focus) { opacity: .3; }

.suite-branch.is-focus .suite-branch-line { stroke-width: 2.8; }

/* Les nœuds : une orbe de verre teintée, puis l'étiquette */
.suite-nodes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }

.suite-node { position: absolute; transform: translate(-50%, -100%); }

.suite-node-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.8cqi;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.suite-orb {
  width: 15cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--tint) 34%, transparent), color-mix(in srgb, var(--tint-2) 16%, transparent) 72%),
    var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--tint) 48%, var(--glass-edge));
  box-shadow: 0 0 0 1.4cqi color-mix(in srgb, var(--tint) 9%, transparent), var(--shadow-float);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.suite-orb img { width: 70%; height: 70%; border-radius: 26%; display: block; }

.suite-orb-plus { font-size: 5.4cqi; font-weight: 300; line-height: 1; color: color-mix(in srgb, var(--tint) 55%, var(--muted)); }

.is-slot .suite-orb { border-style: dashed; }

.suite-node-inner:hover .suite-orb,
.suite-node-inner:focus-visible .suite-orb {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 0 2.2cqi color-mix(in srgb, var(--tint) 16%, transparent), var(--shadow-float);
}

.suite-node-inner:focus-visible .suite-label { outline: 2px solid var(--focus); outline-offset: 2px; }

.suite-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1cqi 2.6cqi;
  border-radius: 2.6cqi;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--glass-edge);
  line-height: 1.25;
  white-space: nowrap;
}

.suite-label-name { font-size: clamp(11px, 2.9cqi, 14px); font-weight: 600; }

.suite-label-status { font-size: clamp(10px, 2.3cqi, 11.5px); color: var(--muted); }

.is-app .suite-label-status { color: var(--text); font-weight: 500; }

.is-slot .suite-label-name { color: var(--muted); font-weight: 500; }

@container (max-width: 400px) {
  .is-slot .suite-label-status { display: none; }
}

/* Le tronc : le compte Strive, avec son avatar cerclé du spectre de la suite */
.suite-root {
  position: absolute;
  left: 50%;
  top: calc(346 / 440 * 100%);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2.6cqi;
  padding: 2cqi 4cqi 2cqi 2cqi;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

.suite-avatar {
  width: 9.4cqi;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  padding: 2px;
  position: relative;
}

.suite-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c-blue), var(--c-green), var(--c-peach), var(--c-violet), var(--c-red), var(--c-blue));
  animation: suite-spin 14s linear infinite;
  will-change: transform;
}

@keyframes suite-spin { to { rotate: 360deg; } }

/* Le logo de la suite Strive, posé sur la surface au centre de l'anneau */
.suite-avatar img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 18%;
  border-radius: 50%;
  background: var(--surface);
  object-fit: contain;
}

.suite-root-text { display: flex; flex-direction: column; line-height: 1.3; }

.suite-root-text strong { font-size: clamp(13px, 3.4cqi, 16px); }

.suite-root-text span { font-size: clamp(10.5px, 2.6cqi, 13px); color: var(--muted); }

/* Contour lumineux (js/border-glow.js) sur les orbes et le compte. La carte
   du composant exige un fond plein (--card-bg), repris ici selon le thème ;
   en clair, la lueur passe en fusion normale (plus-lighter disparaîtrait sur
   le papier), comme la variante --light du composant. */
.suite-orb.border-glow-card {
  --card-bg: color-mix(in srgb, var(--tint) 13%, var(--surface)) !important;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%), var(--card-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid color-mix(in srgb, var(--tint) 45%, var(--line));
  box-shadow: 0 0 0 1.4cqi color-mix(in srgb, var(--tint) 9%, transparent), var(--shadow-float);
}

.is-slot .suite-orb.border-glow-card { border-style: dashed; }

.suite-orb .border-glow-inner { width: 100%; height: 100%; align-items: center; justify-content: center; overflow: visible; border-radius: inherit; }

.suite-root.border-glow-card {
  --card-bg: var(--surface) !important;
  background: var(--card-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-float);
  transform: translateX(-50%);
}

.suite-root .border-glow-inner { flex-direction: row; align-items: center; gap: 2.6cqi; overflow: visible; }

:root[data-theme="light"] .suite-map .border-glow-card::after,
:root[data-theme="light"] .suite-map .border-glow-card > .edge-light { mix-blend-mode: normal; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .suite-map .border-glow-card::after,
  :root:not([data-theme]) .suite-map .border-glow-card > .edge-light { mix-blend-mode: normal; }
}

.suite-map .border-glow-card > .edge-light::before {
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 4px 0 var(--glow-color-50),
    inset 0 0 14px 0 var(--glow-color-30),
    0 0 2px 0 var(--glow-color-60),
    0 0 8px 0 var(--glow-color-40),
    0 0 18px 0 var(--glow-color-20),
    0 0 36px 2px var(--glow-color-10);
}

/* L'impulsion : un trait court à la couleur de l'app, qui descend la branche
   jusqu'au compte (relancée par js/suite-map.js à chaque tour). Le motif
   (.07 puis 1.2 de vide) est plus long que la branche : un seul trait. */
.suite-pulse {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: .07 1.2;
  stroke-dashoffset: -1;
  opacity: 0;
}

.is-future .suite-pulse { stroke-width: 2.4; }

.suite-pulse.is-on { animation: suite-sap 1.6s cubic-bezier(.45, 0, .25, 1) both; }

@keyframes suite-sap {
  0% { stroke-dashoffset: -1; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: .08; opacity: 0; }
}

/* Les orbes flottent doucement, chacun à sa phase. L'amplitude reste dans
   les 3 unités où la branche entre sous l'orbe : jamais de jour entre eux. */
.suite-node-inner { animation: suite-float 7s ease-in-out var(--float-delay, 0s) infinite alternate; will-change: transform; }

@keyframes suite-float {
  from { translate: 0 -2px; }
  to { translate: 0 3px; }
}

/* ---------- Sections ---------- */

.h-section { padding: 104px 0; border-top: 1px solid var(--line); }

.h-section-last { border-top: 0; padding-top: 32px; }

.h-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }

.h-split .h-h2 { margin: 0; }

.h-head { margin-bottom: 44px; }

.h-head .h-body { margin-top: 4px; }

.h-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.h-head-row .h-h2 { margin: 0; }

.h-more { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s ease; }

.h-more:hover { color: var(--text); }

/* Principes */
.h-principles {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.h-principles li { padding: 28px 28px 0 0; }

.h-principles li + li { padding-left: 28px; border-left: 1px solid var(--line); }

.h-num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); }

.h-principles h3, .h-card h3, .h-trust h3, .h-next h3 { font-size: 17px; letter-spacing: -.01em; margin: 12px 0 8px; }

.h-principles p, .h-card p, .h-trust p, .h-next p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Halo : la seule section aux couleurs d'une app (jaune + violet) */
.app-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 45% 55% at 84% 28%, var(--halo-glow-y), transparent 70%),
    radial-gradient(ellipse 50% 55% at 68% 88%, var(--halo-glow-v), transparent 70%),
    var(--surface);
  overflow: hidden;
  isolation: isolate;
}

/* Le fluide (js/halo-flow-bg.js, option transparent) : il se peint en
   transparence avec son propre fondu côté texte. Ni mode de fusion ni masque
   CSS : rien à recomposer à chaque image. */
.app-flow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.app-flow canvas { display: block; width: 100%; height: 100%; animation: fade-in 1.2s ease both; }

.app-feature > .app-feature-text { position: relative; z-index: 1; }

.app-feature > .app-feature-visual { z-index: 1; }

.app-feature::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-peach), var(--c-violet), transparent);
  opacity: .7;
}

.app-feature-id { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }

.app-feature-id img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }

.app-feature-id div { display: flex; flex-direction: column; }

.app-feature-id strong { font-size: 18px; }

.app-tag { font-size: 13px; font-weight: 600; color: var(--halo-ink); }

.app-points { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }

.app-points li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.app-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--c-peach), var(--c-violet));
}

.app-points strong { color: var(--text); font-weight: 600; }

.app-feature-visual {
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  position: absolute;
  width: 220px;
  aspect-ratio: 9 / 20;
  padding: 6px;
  border-radius: 34px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}

.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

.phone-back { transform: translate(-62px, -18px) rotate(-5deg); opacity: .9; }

.phone-front { transform: translate(70px, 22px) rotate(3deg); }

/* Téléphones 3D (js/home-phones-3d.js) : le canevas remplace les téléphones
   en image une fois sa première image peinte (classe is-3d). */
.phones-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: fade-in .8s ease both; }

.app-feature-visual.is-3d .phone { display: none; }

/* Textes révélés mot par mot (js/scroll-reveal.js) */
.scroll-reveal .word { display: inline-block; }

/* Compte Strive */
.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.h-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .25s ease;
}

.h-card:hover { border-color: var(--line-strong); }

.h-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text);
}

.h-next {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}

.h-next > div:first-child { max-width: 560px; }

.h-next h3 { margin-top: 0; }

/* Confiance */
.h-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.h-legal-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 40px 0 0; font-size: 14px; }

.h-legal-links a { color: var(--muted); text-underline-offset: 3px; }

.h-legal-links a:hover { color: var(--text); }

/* Journal */
.h-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.h-news .news-card { padding: 24px; border-radius: 18px; border-color: var(--line); }

.h-news .news-card h3 { font-size: 17px; letter-spacing: -.01em; }

/* Appel final : on referme la page sur les courbes du hero */
.h-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 88px 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.h-final .h-contours { background-position: 30% 60%; }

.h-final .aura { width: 420px; }

.h-final .aura-peach { right: -120px; top: -220px; }

.h-final .aura-violet { left: -140px; right: auto; top: auto; bottom: -240px; }

.h-final .h-body { margin: 0 auto 30px; }

.h-final .h-actions { justify-content: center; }

/* Pied de page : la suite signe la page d'un fil au spectre */
.h-footer { position: relative; padding: 56px 0 32px; color: var(--muted); font-size: 14px; }

.h-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--spectrum);
  opacity: .4;
}

.h-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }

.h-footer-brand .brand { color: var(--text); }

.h-footer-brand p { margin: 14px 0 0; max-width: 300px; line-height: 1.6; }

.h-footer nav { display: flex; flex-direction: column; gap: 10px; }

.h-footer h3 { margin: 0 0 4px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }

.h-footer a { color: var(--muted); text-decoration: none; transition: color .2s ease; }

.h-footer a:hover { color: var(--text); }

.h-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ---------- Apparition au défilement (js/home.js) ----------
   Le contenu n'est masqué que si le script a armé l'observateur : sans JS,
   ou si l'observateur manque, tout reste visible. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }

.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .h-hero { padding-bottom: 80px; padding-top: 132px; }
  .h-hero-grid, .h-split, .app-feature { grid-template-columns: 1fr; }
  .h-hero-grid { gap: 48px; }
  .h-split { gap: 20px; }
  .app-feature { padding: 40px 32px 0; gap: 8px; }
  .app-feature-visual { height: 420px; overflow: hidden; }
  .phone { width: 190px; }
  .phone-back { transform: translate(-52px, 30px) rotate(-5deg); }
  .phone-front { transform: translate(58px, 60px) rotate(3deg); }
  .h-cards, .h-trust, .h-news { grid-template-columns: 1fr; }
  .h-trust { gap: 32px; }
  .h-principles { grid-template-columns: 1fr; border-top: 0; margin-top: 40px; }
  .h-principles li, .h-principles li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .h-footer-grid { grid-template-columns: 1fr 1fr; }
  .h-footer-brand { grid-column: 1 / -1; }
  .aura { width: 420px; }
  .aura-violet { right: 120px; width: 340px; }
}

@media (max-width: 720px) {
  .home .site-header { width: calc(100% - 24px); padding: 10px 12px; top: 8px; margin-top: 8px; }
  .h-hero { padding-top: 156px; }
}

@media (max-width: 560px) {
  .h-wrap { padding: 0 16px; }
  .h-section { padding: 76px 0; }
  .h-lead { font-size: 17px; }
  .h-actions .btn { flex: 1 1 auto; }
  .app-feature { padding: 32px 20px 0; border-radius: 22px; }
  .app-feature-visual { height: 360px; }
  .phone { width: 160px; border-radius: 28px; }
  .phone img { border-radius: 23px; }
  .phone-back { transform: translate(-46px, 34px) rotate(-5deg); }
  .phone-front { transform: translate(50px, 62px) rotate(3deg); }
  .h-card, .h-next { padding: 22px; }
  .h-final { padding: 56px 20px; }
  .aura { width: 320px; }
  .aura-violet { right: 40px; top: 260px; width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .aura, .h-contours, .suite-node-inner, .suite-avatar::before { animation: none; }
  .suite-pulse { display: none; }
}
