/* ==========================================================================
   Sites des logiciels PAPO (Prixalys, Administratys, Planificatys, Onitorys)
   Feuille commune aux quatre sites ; la couleur de chaque logiciel vient de
   l'attribut data-app de <html> (dégradé du suffixe « ys » de son logo).
   Fond « nuit » #06050B, identique à l'écosystème Vogea et aux visuels App Store.
   Polices du système (SF Pro sur Mac, iPhone et iPad, comme les logiciels).
   ========================================================================== */

:root {
  color-scheme: dark;
  --nuit: #06050B;
  --nuit-2: #0A0913;
  --nuit-3: #110F1D;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --filet: rgba(255, 255, 255, .08);
  --filet-2: rgba(255, 255, 255, .14);
  --filet-3: rgba(255, 255, 255, .22);
  --texte: #F4F4F8;
  --texte-2: #A9ACC0;            /* 8,9:1 sur le fond */
  --texte-3: #8286A3;            /* 5,4:1 : lisible en petit corps (WCAG AA) */
  --vert: #5AD18A;
  --ambre: #F5B544;
  --rouge: #FF6B6B;
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1200px;
  --large: 1320px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --entete: 64px;
  --r: 24px;
  --r-m: 18px;
  --r-s: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ombre: 0 40px 120px -20px rgba(0, 0, 0, .75), 0 18px 40px -18px rgba(0, 0, 0, .6);
}

/* Couleurs de chaque logiciel : c1 → c3 = dégradé du « ys » (fond sombre), g1/g2 = lueurs */
[data-app="prixalys"] {
  --c1: #51F0E4; --c2: #19B0D3; --c3: #2459B0;
  --g1: 64, 226, 230; --g2: 40, 96, 232;
  --accent: #3FD3E6; --accent-rgb: 63, 211, 230;
}
[data-app="administratys"] {
  --c1: #FFB4A2; --c2: #FF877C; --c3: #F73146;
  --g1: 255, 128, 104; --g2: 212, 24, 70;
  --accent: #FF8A7E; --accent-rgb: 255, 138, 126;
}
[data-app="planificatys"] {
  --c1: #FED229; --c2: #F8A025; --c3: #B64476;
  --g1: 255, 196, 40; --g2: 150, 52, 214;
  --accent: #FBB33A; --accent-rgb: 251, 179, 58;
}
[data-app="onitorys"] {
  --c1: #CAF15A; --c2: #83D03D; --c3: #38994B;
  --g1: 186, 236, 64; --g2: 30, 156, 96;
  --accent: #9BDC4A; --accent-rgb: 155, 220, 74;
}
:root { --degrade: linear-gradient(100deg, var(--c1), var(--c2) 52%, var(--c3)); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--nuit);
  overflow-x: hidden;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--police-titre); margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--max)); margin-inline: auto; }
.conteneur-large { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }
.evitement { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--nuit); padding: 10px 16px; border-radius: 10px; z-index: 200; font-weight: 600; }
.evitement:focus { left: 12px; }
.lecteur { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain très léger sur toute la page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Typographie ---------- */
.grad {
  background: var(--degrade);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em; /* jambages */
}
.surtitre {
  font-family: var(--mono);
  font-size: .76rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.surtitre::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.titre-1 { font-size: clamp(2.6rem, 6.4vw, 5.3rem); line-height: 1.02; letter-spacing: -.04em; }
.titre-2 { font-size: clamp(2.05rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.035em; }
.titre-3 { font-size: clamp(1.32rem, 2.1vw, 1.7rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 650; }
.chapeau { font-size: clamp(1.07rem, 1.45vw, 1.28rem); line-height: 1.55; color: var(--texte-2); max-width: 46rem; }
.petit { font-size: .86rem; color: var(--texte-3); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.chiffre { font-variant-numeric: tabular-nums; }

/* ---------- Boutons et badges ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  border: 1px solid var(--filet-2); background: var(--surface-2);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.bouton:hover { background: var(--surface-3); border-color: var(--filet-3); transform: translateY(-1px); }
.bouton-clair { background: #fff; color: #0A0913; border-color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .55); }
.bouton-clair:hover { background: #fff; box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), .75); }
.fleche { width: 16px; height: 16px; flex: none; }
.bouton .fleche { transition: transform .3s var(--ease); }
.bouton:hover .fleche { transform: translateX(3px); }
.bouton-petit { height: 38px; padding: 0 16px; font-size: .9rem; }

.badge-store {
  display: inline-flex; border-radius: 12px; line-height: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 34px -12px rgba(var(--accent-rgb), .6);
}
.badge-store:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(var(--accent-rgb), .8); }
.badge-store img { height: 54px; width: auto; }
.badge-store .repli {
  display: none; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 18px; border-radius: 12px;
  background: #000; border: 1px solid #A6A6A6; color: #fff; font-weight: 600; line-height: 1.15; font-size: 1.12rem;
  letter-spacing: -.01em; white-space: nowrap; text-align: left;
}
.badge-store .repli svg { width: 26px; height: 26px; flex: none; }
.badge-store.sans-image img { display: none; }
.badge-store.sans-image .repli { display: inline-flex; }
.badge-store .repli small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: 0; opacity: .9; }
.pastille .fleche { width: 14px; height: 14px; color: var(--texte-3); transition: transform .3s var(--ease); }
a.pastille:hover .fleche { transform: translateX(3px); }

.pastille {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--filet-2); background: rgba(255, 255, 255, .04);
  font-size: .86rem; color: var(--texte-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
a.pastille:hover { border-color: var(--filet-3); background: rgba(255, 255, 255, .07); }
.pastille img { width: 24px; height: 24px; border-radius: 7px; }
.pastille strong { color: var(--texte); font-weight: 600; }
.etiquette {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(var(--accent-rgb), .14); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .3);
}

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--entete);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.entete.defile, .entete.ouvert {
  background: rgba(6, 5, 11, .72);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--filet);
}
.entete .conteneur-large { display: flex; align-items: center; gap: 20px; }
.marque { display: flex; align-items: center; flex: none; }
.marque img { height: 34px; width: auto; }
.navigation { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.navigation a {
  padding: 8px 12px; border-radius: 999px; font-size: .9rem; color: var(--texte-2);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.navigation a:hover, .navigation a[aria-current="true"] { color: var(--texte); background: var(--surface-2); }
.outils-entete { display: flex; align-items: center; gap: 8px; flex: none; }

/* Sélecteur de l'écosystème */
.papo { position: relative; }
.papo-bouton {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px;
  border-radius: 999px; border: 1px solid var(--filet-2); background: var(--surface);
  font-size: .82rem; font-weight: 600; color: var(--texte-2); letter-spacing: .02em;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.papo-bouton:hover, .papo-bouton[aria-expanded="true"] { color: var(--texte); border-color: var(--filet-3); background: var(--surface-2); }
.papo-icones { display: flex; }
.papo-icones img { width: 20px; height: 20px; border-radius: 6px; margin-left: -5px; box-shadow: 0 0 0 2px var(--nuit); }
.papo-icones img:first-child { margin-left: 0; }
.papo-chevron { transition: transform .3s var(--ease); }
.papo-bouton[aria-expanded="true"] .papo-chevron { transform: rotate(180deg); }
.papo-panneau {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 32px));
  padding: 8px; border-radius: 20px; border: 1px solid var(--filet-2);
  background: rgba(14, 13, 24, .92); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--ombre);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
.papo-panneau.ouvert { opacity: 1; transform: none; pointer-events: auto; }
.papo-panneau p.petit { padding: 10px 12px 6px; }
.papo-lien {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 10px; border-radius: 14px; transition: background .2s var(--ease);
}
.papo-lien:hover { background: var(--surface-2); }
.papo-lien img { width: 40px; height: 40px; border-radius: 11px; }
.papo-lien strong { display: block; font-size: .95rem; }
.papo-lien span { display: block; font-size: .8rem; color: var(--texte-3); line-height: 1.35; }
.papo-lien em { font-style: normal; font-size: .72rem; color: var(--texte-3); font-family: var(--mono); }
.papo-lien[aria-current="page"] { background: rgba(var(--accent-rgb), .08); }
.papo-lien[aria-current="page"] em { color: var(--accent); }

.menu-bouton { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--filet-2); align-items: center; justify-content: center; }
.menu-bouton span { position: relative; width: 16px; height: 1.5px; background: var(--texte); transition: background .2s; }
.menu-bouton span::before, .menu-bouton span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--texte); transition: transform .3s var(--ease); }
.menu-bouton span::before { transform: translateY(-5px); }
.menu-bouton span::after { transform: translateY(5px); }
.entete.ouvert .menu-bouton span { background: transparent; }
.entete.ouvert .menu-bouton span::before { transform: rotate(45deg); }
.entete.ouvert .menu-bouton span::after { transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .navigation {
    position: fixed; inset: var(--entete) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gouttiere) 24px; background: var(--nuit); border-top: 1px solid var(--filet); overflow-y: auto;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease);
  }
  .entete.ouvert .navigation { opacity: 1; transform: none; pointer-events: auto; }
  .navigation a { padding: 14px 4px; font-size: 1.08rem; border-radius: 0; border-bottom: 1px solid var(--filet); }
  .navigation a:hover { background: none; }
  .menu-bouton { display: inline-flex; }
  .outils-entete { margin-left: auto; }
  .entete .bouton-telecharger { display: none; }
}
@media (max-width: 1280px) {
  .papo-bouton .papo-libelle { display: none; }
}
@media (max-width: 520px) {
  .marque img { height: 30px; }
}

/* ---------- Héro ---------- */
.hero { position: relative; padding-top: calc(var(--entete) + clamp(48px, 9vh, 104px)); overflow: hidden; isolation: isolate; }
.hero-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lueur {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform;
}
.lueur-1 { width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; left: -16vw; top: -24vw; background: radial-gradient(circle, rgba(var(--g1), .55), transparent 65%); animation: derive-1 22s ease-in-out infinite alternate; }
.lueur-2 { width: 58vw; height: 58vw; max-width: 860px; max-height: 860px; right: -18vw; top: 6vw; background: radial-gradient(circle, rgba(var(--g2), .6), transparent 65%); animation: derive-2 26s ease-in-out infinite alternate; }
@keyframes derive-1 { to { transform: translate(8vw, 6vw) scale(1.12); } }
@keyframes derive-2 { to { transform: translate(-7vw, 8vw) scale(.92); } }
.trame {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.hero-texte { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-texte .pastille { margin-bottom: 28px; }
.hero h1 { max-width: 24ch; }
.hero .chapeau { margin-top: 26px; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; list-style: none; font-size: .86rem; color: var(--texte-3); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }

.scene { position: relative; margin-top: clamp(56px, 8vw, 96px); perspective: 2000px; padding-bottom: clamp(40px, 6vw, 90px); }
.scene-plateau {
  position: relative; width: min(100%, 1120px); margin-inline: auto;
  transform: rotateX(var(--incl, 0deg)) scale(var(--echelle, 1)) translateY(var(--monte, 0px));
  transform-origin: 50% 0%; transform-style: preserve-3d; will-change: transform;
}
.scene-halo {
  position: absolute; left: 8%; right: 8%; top: 12%; bottom: 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--g2), .5), rgba(var(--g1), .18) 45%, transparent 70%);
  filter: blur(60px);
}
.scene .iphone { position: absolute; width: 21%; right: -3%; bottom: -9%; z-index: 3; }
.scene .flottant { position: absolute; z-index: 4; }
.flottant {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(16, 15, 28, .78); border: 1px solid var(--filet-2);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  font-size: .82rem; color: var(--texte-2); line-height: 1.3;
  animation: flotte 7s ease-in-out infinite;
}
.flottant strong { display: block; color: var(--texte); font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.flottant .rond { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.flottant .rond svg { width: 18px; height: 18px; }
.flottant-1 { left: -4%; top: 22%; }
.flottant-2 { left: 6%; bottom: 4%; animation-delay: -2.5s; }
.flottant-3 { right: 14%; top: -5%; animation-delay: -4.5s; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .flottant-1, .flottant-3 { display: none; }
  .flottant-2 { left: 2%; bottom: -2%; }
  .scene .iphone { width: 27%; right: 1%; bottom: -12%; }
}
@media (max-width: 560px) {
  .flottant { display: none; }
  .scene .iphone { width: 31%; }
}

/* ---------- Cadres d'appareils ---------- */
.fenetre { position: relative; margin: 0; border-radius: 1.05% / 1.7%; isolation: isolate; }
.fenetre::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--ombre), 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; z-index: -1; }
.fenetre img { width: 100%; height: auto; border-radius: inherit; }

.iphone {
  position: relative; border-radius: 15.5% / 7.2%;
  padding: 3.4%; background: linear-gradient(145deg, #3a3b42, #121217 40%, #26272d 80%, #4a4b52);
  box-shadow: var(--ombre), inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 4px #0c0c10;
}
.iphone::before {
  /* Dynamic Island */
  content: ""; position: absolute; left: 50%; top: 4.6%; width: 27%; height: 3.1%; transform: translateX(-50%);
  background: #000; border-radius: 999px; z-index: 2;
}
.iphone img { width: 100%; height: auto; border-radius: 12.6% / 5.8%; background: #0A0B0D; }

.ipad {
  position: relative; border-radius: 5.4% / 4.1%;
  padding: 3%; background: linear-gradient(145deg, #3a3b42, #121217 40%, #26272d 80%, #4a4b52);
  box-shadow: var(--ombre), inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 4px #0c0c10;
}
.ipad img { width: 100%; height: auto; border-radius: 3% / 2.3%; background: #0A0B0D; }

/* Apparition douce des images quand elles arrivent */
.js img[loading="lazy"] { opacity: 0; transition: opacity .7s var(--ease); }
.js img[loading="lazy"].charge { opacity: 1; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section-tete { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-tete.centre { align-items: center; text-align: center; }
.section-tete.centre .chapeau { margin-inline: auto; }
.filet-section { height: 1px; background: linear-gradient(90deg, transparent, var(--filet-2), transparent); }
.lueur-section {
  position: absolute; left: 50%; top: 0; width: min(900px, 90vw); height: 420px; transform: translate(-50%, -40%);
  background: radial-gradient(ellipse at center, rgba(var(--g2), .22), transparent 65%); filter: blur(40px); pointer-events: none; z-index: -1;
}

/* Bandeau de chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.chiffres > div { padding: 30px 26px; border-left: 1px solid var(--filet); }
.chiffres > div:first-child { border-left: 0; }
.chiffres .valeur { font-family: var(--police-titre); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.chiffres .libelle { margin-top: 8px; font-size: .9rem; color: var(--texte-3); line-height: 1.45; }
@media (max-width: 860px) {
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .chiffres > div:nth-child(3) { border-left: 0; }
  .chiffres > div:nth-child(n+3) { border-top: 1px solid var(--filet); }
}
@media (max-width: 420px) { .chiffres > div { padding: 22px 16px; } }

/* Bande des métiers */
.publics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; list-style: none; }
.publics li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--filet); background: var(--surface); font-size: .86rem; color: var(--texte-2); }

/* ---------- Récit des fonctions (défilement) ---------- */
.recit-grille { display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.recit-visuel { position: sticky; top: calc(var(--entete) + 6vh); height: calc(100vh - var(--entete) - 12vh); display: flex; flex-direction: column; justify-content: center; order: 2; }
.ecran-pile { position: relative; aspect-ratio: 2880 / 1780; }
.ecran-pile figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(18px) scale(.975); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease-out), filter .7s var(--ease); }
.ecran-pile figure.actif { opacity: 1; transform: none; filter: none; z-index: 1; }
.recit-progression { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.recit-progression button { width: 30px; height: 4px; border-radius: 999px; background: var(--filet-2); transition: background .3s var(--ease), width .4s var(--ease); }
.recit-progression button.actif { width: 54px; background: var(--accent); }
.recit-etapes { order: 1; }
.etape { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 40px; opacity: .32; transition: opacity .6s var(--ease); }
.etape.actif { opacity: 1; }
.etape p { color: var(--texte-2); }
.etape .etape-image { display: none; }
.puces { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.puces li { position: relative; padding-left: 30px; color: var(--texte-2); font-size: .98rem; line-height: 1.5; }
.puces li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(var(--accent-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45);
}
.puces li strong { color: var(--texte); font-weight: 600; }
.formule {
  display: inline-block; margin-top: 4px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .06); font-family: var(--mono); font-size: .84rem; color: var(--texte); line-height: 1.5;
}
@media (max-width: 900px) {
  .recit-grille { grid-template-columns: 1fr; }
  .recit-visuel { display: none; }
  .etape { min-height: 0; opacity: 1; padding-block: 34px; border-top: 1px solid var(--filet); }
  .etape:first-child { border-top: 0; }
  .etape .etape-image { display: block; margin-top: 10px; }
}

/* ---------- Démonstration interactive ---------- */
.demo-cadre {
  position: relative; border-radius: 32px; padding: clamp(20px, 3.4vw, 44px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--filet-2); box-shadow: var(--ombre); overflow: hidden; isolation: isolate;
}
.demo-cadre::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(130deg, rgba(var(--g1), .7), transparent 30%, transparent 70%, rgba(var(--g2), .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.demo-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
@media (max-width: 900px) { .demo-grille { grid-template-columns: 1fr; } }
.demo-note { margin-top: 18px; font-size: .8rem; color: var(--texte-3); }

.reglage { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.reglage:last-child { border-bottom: 0; }
.reglage-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.reglage label { font-size: .9rem; color: var(--texte-2); }
.reglage output { font-family: var(--mono); font-size: .95rem; color: var(--texte); font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0;
  --pct: 50%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--pct), rgba(255, 255, 255, .12) var(--pct)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .3), 0 4px 10px rgba(0, 0, 0, .5); transition: box-shadow .2s; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .3), 0 4px 10px rgba(0, 0, 0, .5); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .55); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .55); }

.case { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: .9rem; color: var(--texte-2); cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }

.onglets-demo { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--filet); margin-bottom: 18px; }
.onglets-demo button { padding: 8px 16px; border-radius: 999px; font-size: .86rem; color: var(--texte-2); transition: background .25s var(--ease), color .25s var(--ease); }
.onglets-demo button[aria-selected="true"] { background: #fff; color: #0A0913; font-weight: 600; }

.resultat { display: grid; gap: 14px; align-content: start; }
.resultat-grand { padding: 22px 24px; border-radius: 20px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .3); }
.resultat-grand .libelle { font-size: .86rem; color: var(--texte-2); }
.resultat-grand .montant { font-family: var(--police-titre); font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.resultat-grand .detail { font-size: .86rem; color: var(--texte-3); margin-top: 4px; }
.cartes-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--filet); }
.kpi .libelle { font-size: .78rem; color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; }
.kpi .valeur { font-size: 1.36rem; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .valeur.bon { color: var(--vert); }
.kpi .valeur.alerte { color: var(--ambre); }
.kpi .valeur.mauvais { color: var(--rouge); }
.kpi .sous { font-size: .78rem; color: var(--texte-3); margin-top: 2px; }

.barre-empilee { display: flex; height: 44px; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--filet); }
.barre-empilee span { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: .74rem; font-weight: 600; color: rgba(0, 0, 0, .78); white-space: nowrap; overflow: hidden; transition: flex-basis .6s var(--ease-out); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--texte-3); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.explication { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--filet); font-size: .88rem; color: var(--texte-2); line-height: 1.55; }
.explication strong { color: var(--texte); }

/* Administratys : échéancier */
.echeancier { display: grid; gap: 8px; }
.echeance { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--filet); transition: border-color .4s var(--ease), background .4s var(--ease); }
.echeance .nom { font-size: .92rem; font-weight: 600; }
.echeance .date { font-size: .78rem; color: var(--texte-3); font-family: var(--mono); }
.statut { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; white-space: nowrap; transition: background .4s var(--ease), color .4s var(--ease); }
.statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.statut.valide { color: var(--vert); background: rgba(90, 209, 138, .12); }
.statut.bientot { color: var(--ambre); background: rgba(245, 181, 68, .13); }
.statut.expire { color: var(--rouge); background: rgba(255, 107, 107, .13); }
.echeance.expire { border-color: rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .05); }
.echeance.bientot { border-color: rgba(245, 181, 68, .3); }
.frise { position: relative; height: 54px; margin: 6px 0 4px; }
.frise-axe { position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--filet-2); border-radius: 2px; }
.frise-point { position: absolute; top: 20px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--nuit); transition: background .3s; }
.frise-point.valide { background: var(--vert); }
.frise-point.bientot { background: var(--ambre); }
.frise-point.expire { background: var(--rouge); }
.frise-repere { position: absolute; top: 4px; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), .8); }
.frise-repere::after { content: attr(data-libelle); position: absolute; top: -2px; left: 8px; font-family: var(--mono); font-size: .7rem; color: var(--accent); white-space: nowrap; }
.frise-aujourdhui { position: absolute; top: 14px; bottom: 6px; width: 1px; background: var(--texte-3); }
.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; border: 1px solid; transition: background .4s var(--ease), border-color .4s var(--ease); }
.verdict.pret { border-color: rgba(90, 209, 138, .4); background: rgba(90, 209, 138, .08); }
.verdict.manque { border-color: rgba(245, 181, 68, .45); background: rgba(245, 181, 68, .07); }
.verdict svg { width: 26px; height: 26px; flex: none; }
.verdict.pret svg { color: var(--vert); }
.verdict.manque svg { color: var(--ambre); }
.verdict strong { display: block; font-size: 1.02rem; }
.verdict span { font-size: .86rem; color: var(--texte-2); }

/* Planificatys : Gantt */
.gantt-defile { overflow-x: auto; border-radius: 18px; -webkit-overflow-scrolling: touch; }
.gantt { border-radius: 18px; border: 1px solid var(--filet); background: rgba(0, 0, 0, .25); overflow: hidden; overflow: clip; }
@media (max-width: 680px) {
  .gantt { min-width: 620px; background: #0B0A13; }
  .gantt-tete, .gantt-ligne { grid-template-columns: 150px 1fr; }
  .gantt-nom, .gantt-tete > div:first-child { position: sticky; left: 0; z-index: 3; background: #0B0A13; box-shadow: 1px 0 0 var(--filet); }
  .gantt-ligne.choisie .gantt-nom { background: #1a1612; }
}
.gantt-tete, .gantt-ligne { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; }
.gantt-tete { font-size: .7rem; font-family: var(--mono); color: var(--texte-3); border-bottom: 1px solid var(--filet); }
.gantt-tete > div { padding: 8px 12px; }
.gantt-semaines { display: grid; position: relative; }
.gantt-semaines span { border-left: 1px solid var(--filet); padding: 8px 6px; }
.gantt-ligne { font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .04); cursor: pointer; transition: background .2s; }
.gantt-ligne:hover, .gantt-ligne.choisie { background: rgba(var(--accent-rgb), .07); }
.gantt-ligne:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gantt-nom { padding: 8px 12px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.gantt-nom span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-nom .duree { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--texte-3); flex: none; }
.gantt-ligne.lot { font-weight: 650; cursor: default; }
.gantt-ligne.lot .gantt-nom { color: var(--texte); }
.gantt-ligne.tache .gantt-nom { padding-left: 24px; color: var(--texte-2); }
.gantt-piste { position: relative; background-image: linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); }
.gantt-barre { position: absolute; top: 9px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, .22); transition: left .5s var(--ease-out), width .5s var(--ease-out), background .4s; }
.gantt-barre.critique { background: var(--degrade); box-shadow: 0 0 16px rgba(var(--accent-rgb), .45); }
.gantt-barre.lot { height: 8px; top: 13px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
.gantt-marge { position: absolute; top: 15px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 4px, transparent 4px 7px); transition: left .5s var(--ease-out), width .5s var(--ease-out); }
.gantt-jalon { position: absolute; top: 10px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: #fff; border-radius: 2px; transition: left .5s var(--ease-out); }
.gantt-jalon.critique { background: var(--c1); box-shadow: 0 0 12px rgba(var(--accent-rgb), .7); }
.gantt-delai { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--rouge); z-index: 2; }
.gantt-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.histogramme { position: relative; height: 170px; display: flex; align-items: flex-end; gap: 2px; padding: 0 2px; border-bottom: 1px solid var(--filet-2); }
.histogramme span { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--c1), var(--c2)); transition: height .25s var(--ease); }
.histogramme span.tard { background: linear-gradient(180deg, rgba(255, 107, 107, .75), rgba(255, 107, 107, .25)); }
.histo-repere { position: absolute; bottom: 0; top: 0; width: 0; border-left: 1.5px dashed #fff; }
.histo-repere::after { content: attr(data-libelle); position: absolute; top: 0; left: 6px; font-family: var(--mono); font-size: .7rem; color: #fff; white-space: nowrap; background: rgba(6, 5, 11, .7); padding: 1px 4px; border-radius: 4px; }
.histo-axe { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; color: var(--texte-3); margin-top: 6px; }

/* Onitorys : prévision à fin de chantier */
.jauge { position: relative; height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--filet); overflow: visible; }
.jauge-barres { position: absolute; inset: 0; display: flex; border-radius: 14px; overflow: hidden; }
.jauge-barres span { height: 100%; transition: width .6s var(--ease-out); }
.jauge-trait { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; transition: left .6s var(--ease-out); }
.jauge-trait::after { content: attr(data-libelle); position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; white-space: nowrap; }
.jauge-trait.budget { background: var(--ambre); }
.jauge-trait.budget::after { color: var(--ambre); }
.jauge-trait.marche { background: #fff; }
.jauge-trait.marche::after { color: #fff; bottom: auto; top: calc(100% + 2px); }

/* ---------- Mosaïque ---------- */
.mosaique { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tuile {
  position: relative; grid-column: span 2; padding: 26px; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  border: 1px solid var(--filet); min-height: 230px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.tuile:hover { border-color: var(--filet-2); }
.tuile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .12), transparent 60%);
}
.tuile:hover::after { opacity: 1; }
.tuile.l { grid-column: span 3; }
.tuile.xl { grid-column: span 4; }
.tuile.pleine { grid-column: span 6; }
.tuile h3 { font-size: 1.14rem; font-weight: 650; letter-spacing: -.015em; }
.tuile p { font-size: .93rem; color: var(--texte-2); line-height: 1.55; }
.tuile .icone { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .3); }
.tuile .icone svg { width: 22px; height: 22px; }
.tuile .visuel { margin-top: auto; padding-top: 10px; }
.tuile .etiquette { position: absolute; top: 22px; right: 22px; }
@media (max-width: 1020px) {
  .mosaique { grid-template-columns: repeat(2, 1fr); }
  .tuile, .tuile.l, .tuile.xl { grid-column: span 1; }
  .tuile.pleine { grid-column: span 2; }
}
@media (max-width: 640px) {
  .mosaique { grid-template-columns: 1fr; }
  .tuile, .tuile.l, .tuile.xl, .tuile.pleine { grid-column: span 1; min-height: 0; }
}

/* Petits visuels des tuiles */
.mini-barres { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.mini-barres span { flex: 1; height: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--c1), var(--c3)); opacity: .85; transform-origin: bottom; transform: scaleY(var(--h, .5)); transition: transform 1.1s var(--ease-out); }
.js .mini-barres span { transform: scaleY(.04); }
.js .visible .mini-barres span { transform: scaleY(var(--h, .5)); }
.mini-plage { position: relative; height: 46px; }
.mini-plage .axe { position: absolute; left: 0; right: 0; top: 21px; height: 4px; border-radius: 4px; background: var(--surface-3); }
.mini-plage .boite { position: absolute; top: 15px; height: 16px; border-radius: 6px; background: rgba(var(--accent-rgb), .35); border: 1px solid rgba(var(--accent-rgb), .7); }
.mini-plage .mediane { position: absolute; top: 11px; width: 2px; height: 24px; background: #fff; }
.mini-plage .poste { position: absolute; top: 0; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--ambre); margin-left: -7px; }
.mini-plage .bornes { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .66rem; color: var(--texte-3); }
.mini-fichiers { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .74rem; color: var(--texte-2); }
.mini-fichiers .fichier { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--filet-2); background: var(--surface-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mini-fichiers .fichier b { font-weight: 700; padding: 2px 5px; border-radius: 4px; font-size: .64rem; color: #0A0913; }
.mini-fichiers .xlsx b { background: #3FBF7F; }
.mini-fichiers .pdf b { background: #FF6B6B; }
.mini-fichiers .ics b { background: #8AB4FF; }
.mini-fichiers .zip b { background: #F5B544; }
.mini-fichiers .fleche-anim { flex: 1; height: 1px; min-width: 24px; background: linear-gradient(90deg, var(--filet-2), var(--accent)); position: relative; overflow: hidden; }
.mini-fichiers .fleche-anim::after { content: ""; position: absolute; top: -1px; left: -30%; width: 30%; height: 3px; background: linear-gradient(90deg, transparent, #fff, transparent); animation: glisse 2.4s ease-in-out infinite; }
@keyframes glisse { to { left: 100%; } }
.mini-liste { display: grid; gap: 6px; list-style: none; }
.mini-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--filet); font-size: .82rem; color: var(--texte-2); }
.mini-liste li b { font-weight: 600; color: var(--texte); }
.mini-courbe svg { width: 100%; height: 80px; overflow: visible; }
.mini-courbe path.trace { fill: none; stroke: url(#degrade-courbe); stroke-width: 2.5; stroke-linecap: round; }
.js .mini-courbe path.trace { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s var(--ease-out); }
.js .visible .mini-courbe path.trace { stroke-dashoffset: 0; }
.mini-courbe path.aire { fill: url(#degrade-aire); opacity: .5; }
.mini-courbe path.reel { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .7; }
.mini-doc { position: relative; height: 96px; }
.mini-doc .page { position: absolute; width: 74px; height: 96px; border-radius: 8px; background: #F5F6F8; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); padding: 10px 8px; display: grid; gap: 5px; align-content: start; }
.mini-doc .page i { display: block; height: 4px; border-radius: 2px; background: #CBD0DA; }
.mini-doc .page i.t { height: 6px; width: 60%; background: var(--c3); }
.mini-doc .page i.c { width: 70%; }
.mini-doc .page:nth-child(1) { left: 0; transform: rotate(-6deg); }
.mini-doc .page:nth-child(2) { left: 46px; transform: rotate(2deg); z-index: 1; }
.mini-doc .page:nth-child(3) { left: 92px; transform: rotate(8deg); }

/* ---------- Écosystème ---------- */
.eco-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .eco-grille { grid-template-columns: 1fr; } }
.eco-schema { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.eco-schema svg { width: 100%; height: 100%; overflow: visible; }
.eco-anneau { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 280px 280px; animation: tourne 90s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.eco-rayon { stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; transition: stroke .4s var(--ease), stroke-width .4s var(--ease); }
.eco-rayon.actif { stroke: rgba(var(--accent-rgb), .7); stroke-width: 2; }
.eco-arc { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.2; transition: stroke .4s var(--ease); }
.eco-arc.actif { stroke: rgba(var(--accent-rgb), .45); }
.eco-particule { transition: opacity .4s; }
.eco-noeud { cursor: pointer; }
.eco-noeud .halo { opacity: 0; transition: opacity .4s var(--ease); }
.eco-noeud.actif .halo { opacity: 1; }
.eco-noeud text { font-family: var(--police-titre); font-size: 15px; font-weight: 650; fill: var(--texte); }
.eco-noeud text.role { font-family: var(--police); font-size: 11.5px; font-weight: 400; fill: var(--texte-3); }
.eco-noeud:focus-visible { outline: none; }
.eco-noeud:focus-visible .cadre-focus { stroke: var(--accent); stroke-width: 2; }
.eco-centre text { font-family: var(--police); font-size: 12px; fill: var(--texte-2); }
.eco-centre text.fort { font-family: var(--police-titre); font-size: 14px; font-weight: 650; fill: var(--texte); }
.eco-panneau { display: grid; gap: 18px; }
.eco-onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-onglets button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--filet); background: var(--surface); font-size: .86rem; color: var(--texte-2);
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.eco-onglets button img { width: 26px; height: 26px; border-radius: 8px; }
.eco-onglets button[aria-selected="true"] { color: var(--texte); border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .1); }
.eco-colonnes { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) and (max-width: 960px) { .eco-colonnes { grid-template-columns: 1fr 1fr; } }
.eco-colonne { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--filet); }
.eco-colonne h4 { font-size: .74rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.eco-colonne ul { list-style: none; display: grid; gap: 10px; }
.eco-colonne li { font-size: .9rem; color: var(--texte-2); line-height: 1.45; padding-left: 16px; position: relative; }
.eco-colonne li::before { content: "→"; position: absolute; left: 0; color: var(--texte-3); }
.eco-colonne.recoit li::before { content: "←"; }
.principes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.principe { padding: 22px; border-radius: 20px; border: 1px solid var(--filet); background: var(--surface); }
.principe svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 14px; }
.principe h3 { font-size: 1rem; font-weight: 650; margin-bottom: 6px; }
.principe p { font-size: .88rem; color: var(--texte-2); line-height: 1.5; }
@media (max-width: 1020px) { .principes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principes { grid-template-columns: 1fr; } }

.famille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.membre {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px;
  border: 1px solid var(--filet); background: var(--surface); transition: border-color .3s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}
a.membre:hover { border-color: var(--filet-3); transform: translateY(-3px); background: var(--surface-2); }
.membre img { width: 52px; height: 52px; border-radius: 14px; }
.membre strong { font-size: 1.05rem; }
.membre span { font-size: .86rem; color: var(--texte-3); line-height: 1.4; }
.membre .prix { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: .8rem; color: var(--texte-2); }
.membre .ici { position: absolute; top: 18px; right: 18px; }
.membre.courant { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); }
@media (max-width: 1020px) { .famille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .membre { padding: 16px; } .membre .ici { position: static; align-self: flex-start; } .membre .prix { font-size: .72rem; } }
@media (max-width: 340px) { .famille { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .eco-noeud text { font-size: 24px; }
  .eco-noeud text.role { display: none; }
  .eco-centre text { font-size: 15px; }
  .eco-centre text.fort { font-size: 17px; }
}

/* ---------- Appareils ---------- */
.appareils-scene { position: relative; display: grid; grid-template-columns: 1fr; place-items: center; padding-bottom: 5%; }
.appareils-scene .fenetre { width: 82%; }
.appareils-scene .ipad { position: absolute; width: 25%; left: 0; bottom: 0; }
.appareils-scene .iphone { position: absolute; width: 14%; right: 2%; bottom: -2%; }
.appareils-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(48px, 6vw, 76px); }
.appareil-point { padding: 24px; border-radius: 22px; border: 1px solid var(--filet); background: var(--surface); }
.appareil-point h3 { font-size: 1.06rem; font-weight: 650; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.appareil-point h3 svg { width: 22px; height: 22px; color: var(--accent); }
.appareil-point ul { list-style: none; display: grid; gap: 8px; }
.appareil-point li { font-size: .9rem; color: var(--texte-2); line-height: 1.45; padding-left: 14px; position: relative; }
.appareil-point li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.badges-store { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
@media (max-width: 860px) {
  .appareils-points { grid-template-columns: 1fr; }
  .appareils-scene .fenetre { width: 100%; }
  .appareils-scene .ipad { width: 30%; left: -2%; bottom: -14%; }
  .appareils-scene .iphone { width: 18%; right: -1%; bottom: -16%; }
  .appareils-scene { padding-bottom: 16%; }
}

/* ---------- Données ---------- */
.confiance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.carte-confiance { padding: 28px; border-radius: 24px; border: 1px solid var(--filet); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); }
.carte-confiance svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.carte-confiance h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; }
.carte-confiance p { font-size: .93rem; color: var(--texte-2); line-height: 1.55; }
@media (max-width: 960px) { .confiance { grid-template-columns: 1fr; } }

/* ---------- Tarif ---------- */
.tarif-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .tarif-grille { grid-template-columns: 1fr; } }
.offre {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: 32px; isolation: isolate;
  background: linear-gradient(180deg, rgba(20, 18, 34, .95), rgba(10, 9, 19, .95));
  box-shadow: var(--ombre);
}
.offre::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--c1), var(--c2), var(--c3), rgba(255, 255, 255, .1), var(--c1));
  animation: tour-bordure 8s linear infinite;
}
.offre::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(180deg, #14122a, #0a0913); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tour-bordure { to { --angle: 360deg; } }
.offre-tete { display: flex; align-items: center; gap: 14px; }
.offre-tete img { width: 56px; height: 56px; border-radius: 15px; }
.offre-tete strong { display: block; font-size: 1.2rem; }
.offre-tete span { font-size: .88rem; color: var(--texte-3); }
.prix-grand { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; }
.prix-grand .montant { font-family: var(--police-titre); font-size: clamp(3.2rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.prix-grand .periode { font-size: 1.05rem; color: var(--texte-2); }
.prix-note { font-size: .86rem; color: var(--texte-3); margin-top: 8px; }
.offre .puces { margin-top: 26px; }
.offre .actions { justify-content: flex-start; margin-top: 30px; }
.offre .petit { margin-top: 18px; }
.tarifs-famille { display: grid; gap: 10px; margin-top: 22px; }
.tarifs-famille a, .tarifs-famille div { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--filet); background: var(--surface); transition: border-color .3s var(--ease), background .3s var(--ease); }
.tarifs-famille a:hover { border-color: var(--filet-2); background: var(--surface-2); }
.tarifs-famille img { width: 36px; height: 36px; border-radius: 10px; }
.tarifs-famille strong { font-size: .95rem; }
.tarifs-famille span { display: block; font-size: .8rem; color: var(--texte-3); }
.tarifs-famille em { font-style: normal; font-family: var(--mono); font-size: .86rem; color: var(--texte); }
.tarifs-famille .courant { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 20px; border: 1px solid var(--filet); background: var(--surface); transition: border-color .3s var(--ease), background .3s var(--ease); }
.faq details[open] { border-color: var(--filet-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--filet-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .reponse { padding: 0 24px 22px; color: var(--texte-2); font-size: .96rem; line-height: 1.6; }
.faq .reponse p + p { margin-top: 10px; }
.faq .reponse a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Appel final ---------- */
.final { text-align: center; overflow: hidden; isolation: isolate; }
.final .icone-app { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 30px; box-shadow: 0 30px 80px -20px rgba(var(--g2), .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.final .chapeau { margin: 22px auto 0; }
.final .lueur-1 { left: 10%; top: 10%; }
.final .lueur-2 { right: 5%; top: 20%; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--filet); padding: 64px 0 40px; font-size: .9rem; color: var(--texte-3); }
.pied-grille { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.pied h4 { font-size: .74rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 14px; }
.pied ul { list-style: none; display: grid; gap: 10px; }
.pied a { transition: color .2s; }
.pied a:hover { color: var(--texte); }
.pied-marque img { height: 36px; width: auto; margin-bottom: 16px; }
.pied-marque p { max-width: 30rem; line-height: 1.55; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--filet); font-size: .8rem; }
.pied-bas p { max-width: 52rem; }
.pied li a { display: inline-flex; align-items: center; gap: 10px; }
.pied li img { width: 22px; height: 22px; border-radius: 6px; }
@media (max-width: 860px) { .pied-grille { grid-template-columns: 1fr 1fr; } .pied-marque { grid-column: 1 / -1; } }

/* ---------- Pages légales ---------- */
.page-texte { padding-top: calc(var(--entete) + 72px); padding-bottom: 96px; }
.page-texte .conteneur { max-width: 820px; }
.page-texte h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.035em; margin: 14px 0 28px; }
.page-texte h2 { font-size: 1.25rem; margin: 38px 0 10px; letter-spacing: -.015em; }
.page-texte p, .page-texte li { color: var(--texte-2); line-height: 1.7; }
.page-texte ul { padding-left: 20px; margin-top: 8px; }
.page-texte a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.page-404 .code { font-family: var(--mono); color: var(--accent); letter-spacing: .2em; }

/* ---------- Apparitions au défilement ---------- */
.js [data-apparait] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .9s var(--ease), transform 1s var(--ease-out), filter .9s var(--ease); transition-delay: var(--retard, 0s); }
.js [data-apparait].visible { opacity: 1; transform: none; filter: none; }
.js .titre-anime .mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .titre-anime .mot > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms + .1s); }
.js .titre-anime.visible .mot > span { transform: none; }
.js .titre-anime .grad .mot > span, .js .titre-anime .mot > span.grad { padding-bottom: .06em; }

/* Barre de progression de lecture */
.progression { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 70; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--degrade); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-apparait] { opacity: 1; transform: none; filter: none; }
  .js .titre-anime .mot > span { transform: none; }
  .scene-plateau { transform: none !important; }
  .lueur { animation: none; }
}
