/* Site de présentation KARE Health — charte de l'application (sauge, papier chaud, vert profond, Inter).
   Aucune dépendance externe : polices, images et scripts servis par le site lui-même. */
@font-face {
  font-family: "Inter Variable";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fond: #f6f4ef;
  --fond-2: #eeebe3;
  --texte: #1f2b27;
  --discret: #5f6e67;
  --accent: #2e7a69;
  --accent-fort: #24675a;
  --accent-clair: #e5f0eb;
  --vif: #3ddba8;
  --profond: #0b6455;
  --nuit: #07231f;
  --nuit-2: #0b3f37;
  --bordure: #e6e1d7;
  --carte: #fffefb;
  --ombre: 0 1px 2px rgba(31, 43, 39, .04), 0 10px 30px rgba(31, 43, 39, .07);
  --ombre-forte: 0 40px 100px -20px rgba(7, 35, 31, .35), 0 20px 40px -20px rgba(7, 35, 31, .25);
  --rayon: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1513; --fond-2: #141c1a; --texte: #e3ebe6; --discret: #93a39b;
    --accent: #7cc4ad; --accent-fort: #9fd6c3; --accent-clair: #1a2a26;
    --bordure: #22302b; --carte: #151d1b;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte); overflow-x: hidden;
  font-family: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--vif) 70%, transparent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .6rem; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; font-weight: 680; line-height: 1.25; }
p { margin: 0 0 1rem; }
.conteneur { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.discret { color: var(--discret); }
.centre { text-align: center; }
.passer { position: absolute; left: -999px; }
.passer:focus { left: 12px; top: 12px; background: var(--carte); padding: 8px 12px; z-index: 100; }
.sur-titre {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.sur-titre::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.degrade {
  background: linear-gradient(100deg, var(--profond) 0%, #1f9a7d 40%, var(--vif) 70%, #1f9a7d 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brille 8s linear infinite;
}
@media (prefers-color-scheme: dark) { .degrade { background-image: linear-gradient(100deg, #9fd6c3 0%, var(--vif) 40%, #e9fff6 60%, var(--vif) 100%); } }
.sombre .degrade { background-image: linear-gradient(100deg, #9fe8cf 0%, var(--vif) 35%, #e9fff6 55%, var(--vif) 80%); }
@keyframes brille { to { background-position: 200% center; } }

/* Barre de progression de lecture */
.progression { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--profond), var(--vif)); }

/* ---------- En-tête ---------- */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, box-shadow .4s, color .4s; }
.entete .conteneur { display: flex; align-items: center; gap: 28px; height: 78px; }
.entete.defile { background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--bordure); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }
.logo .cartouche { background: #fffefb; border-radius: 12px; padding: 6px 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { position: relative; color: inherit; text-decoration: none; font-size: .95rem; font-weight: 550; padding: 8px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.nav a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--vif); }
.entete-sur-sombre:not(.defile) { color: #eaf6f1; }
.entete-sur-sombre:not(.defile) .nav a[aria-current="page"] { color: var(--vif); }
.entete-sur-sombre:not(.defile) .nav a:hover { background: rgba(255, 255, 255, .08); }
.menu-bouton { display: none; margin-left: auto; background: color-mix(in srgb, var(--carte) 70%, transparent); border: 1px solid var(--bordure); border-radius: 12px; padding: 9px 11px; color: var(--texte); cursor: pointer; }
.nav .nav-connexion { display: none; }
@media (max-width: 980px) {
  .menu-bouton { display: inline-flex; }
  .entete .actions-entete { display: none; }
  .nav { display: none; position: absolute; top: 78px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; background: var(--carte); color: var(--texte); border: 1px solid var(--bordure); border-radius: 20px; padding: 10px; box-shadow: var(--ombre-forte); }
  .nav.ouvert { display: flex; animation: deplie .35s var(--ease); }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .entete-sur-sombre:not(.defile) .nav a[aria-current="page"] { color: var(--accent); }
  .nav .nav-connexion { display: block; background: var(--accent); color: #fff; text-align: center; margin-top: 6px; }
}
@keyframes deplie { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- Boutons ---------- */
.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.bouton svg { transition: transform .3s var(--ease); }
.bouton:hover svg { transform: translateX(4px); }
.bouton-plein { background: linear-gradient(135deg, var(--accent), var(--profond)); color: #fff; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.bouton-plein::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.bouton-plein:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.bouton-plein:hover::after { transform: translateX(120%); }
.bouton-vif { background: var(--vif); color: var(--nuit); box-shadow: 0 10px 40px -8px rgba(61, 219, 168, .6); }
.bouton-vif:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px rgba(61, 219, 168, .8); }
.bouton-contour { border-color: var(--bordure); color: var(--texte); background: var(--carte); }
.bouton-contour:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.bouton-verre { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.bouton-verre:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.bouton-petit { padding: 10px 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections sombres (aurore) ---------- */
.sombre { position: relative; color: #e7f3ee; background: var(--nuit); overflow: hidden; isolation: isolate; }
.sombre h1, .sombre h2, .sombre h3 { color: #fff; }
.sombre .discret, .sombre p { color: #b5d2c8; }
.sombre .sur-titre { color: var(--vif); }
.aurore { position: absolute; inset: -20%; z-index: -1; filter: blur(70px) saturate(1.2); opacity: .9; pointer-events: none; }
.aurore span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: flotte 18s ease-in-out infinite alternate; }
.aurore span:nth-child(1) { width: 52vw; height: 52vw; left: 50%; top: 0; background: radial-gradient(circle, rgba(61, 219, 168, .55), transparent 65%); }
.aurore span:nth-child(2) { width: 46vw; height: 46vw; left: 5%; top: 30%; background: radial-gradient(circle, rgba(11, 100, 85, .9), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.aurore span:nth-child(3) { width: 34vw; height: 34vw; left: 30%; top: 55%; background: radial-gradient(circle, rgba(217, 141, 95, .28), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes flotte {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, 4vw) scale(1.12); }
  100% { transform: translate(5vw, -3vw) scale(.95); }
}
.grille-fond {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  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: 64px 64px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

/* ---------- Accroche de l'accueil ---------- */
.accroche { padding: 150px 0 0; }
.accroche .texte { max-width: 1000px; margin: 0 auto; text-align: center; }
.accroche h1 { margin-bottom: 1.4rem; font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.accroche .chapeau { font-size: clamp(1.1rem, 1.6vw, 1.32rem); max-width: 720px; margin: 0 auto 2.2rem; color: #c3dcd3; }
.accroche .actions { justify-content: center; }
.pastille-annonce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; margin-bottom: 1.6rem; border-radius: 999px; font-size: .9rem; color: #d9efe7;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); text-decoration: none;
}
.pastille-annonce b { background: var(--vif); color: var(--nuit); border-radius: 999px; padding: 3px 10px; font-size: .75rem; letter-spacing: .04em; }
.mot-tournant { display: inline-grid; vertical-align: bottom; perspective: 600px; justify-items: start; transition: width .6s var(--ease); color: var(--vif); font-weight: 700; }
.mot-tournant > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%) rotateX(-60deg); transition: opacity .6s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.mot-tournant > span.actif { opacity: 1; transform: none; }
.mot-tournant > span.sort { opacity: 0; transform: translateY(-40%) rotateX(60deg); }

/* Scène d'appareils */
.scene { position: relative; margin: 70px auto 0; max-width: 1120px; perspective: 2000px; }
.js .scene .portable { transform: rotateX(22deg) scale(.94); transform-origin: 50% 100%; transition: transform 1.4s var(--ease); }
.scene.visible .portable { transform: rotateX(0) scale(1); }
.scene .telephone { position: absolute; right: -20px; bottom: -40px; width: clamp(130px, 21%, 250px); transform: rotate(5deg); z-index: 2; }
.js .scene .telephone { transform: translateY(80px) rotate(5deg); opacity: 0; transition: transform 1.2s .4s var(--ease), opacity 1s .4s; z-index: 2; }
.scene.visible .telephone { transform: translateY(0) rotate(5deg); opacity: 1; }
.scene .telephone.gauche { right: auto; left: -20px; transform: rotate(-5deg); }
.js .scene .telephone.gauche { transform: translateY(80px) rotate(-5deg); transition-delay: .6s; }
.scene.visible .telephone.gauche { transform: translateY(0) rotate(-5deg); }
.bulle {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; font-size: .86rem; color: #1f2b27; text-align: left;
  background: rgba(255, 254, 251, .94); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .35); animation: plane 6s ease-in-out infinite;
}
.bulle b { display: block; font-size: .95rem; }
.bulle .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #e5f0eb; color: #2e7a69; flex: none; }
@keyframes plane { 50% { transform: translateY(-12px); } }
.bulle.b1 { left: -50px; top: 22%; }
.bulle.b2 { right: 16%; top: -28px; animation-delay: -2s; }
.bulle.b3 { left: 14%; bottom: 6%; animation-delay: -4s; }
@media (max-width: 760px) { .bulle { display: none; } .scene .telephone { right: -6px; bottom: -24px; } .scene .telephone.gauche { display: none; } }
.fondu-bas { height: 140px; background: linear-gradient(to bottom, transparent, var(--fond)); margin-top: -100px; position: relative; z-index: 1; }

/* ---------- Cadres d'appareils (vrais écrans) ---------- */
.portable { position: relative; }
.portable .ecran-portable {
  position: relative; border-radius: 18px 18px 6px 6px; padding: 12px 12px 14px; background: linear-gradient(180deg, #1d2a27, #0d1614);
  box-shadow: var(--ombre-forte), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.portable .ecran-portable::before { content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2d3b37; }
.portable img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #f6f4ef; }
.portable .socle { height: 16px; margin: 0 -5%; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #c9cfcc, #8f9995); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .4); position: relative; }
.portable .socle::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%; border-radius: 0 0 10px 10px; background: #7d8783; }
.navigateur { border-radius: 16px; overflow: hidden; background: var(--carte); box-shadow: var(--ombre-forte); border: 1px solid var(--bordure); }
.navigateur .barre { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--fond-2); border-bottom: 1px solid var(--bordure); }
.navigateur .barre i { width: 11px; height: 11px; border-radius: 50%; background: #e0b3a3; }
.navigateur .barre i:nth-child(2) { background: #e8d29a; }
.navigateur .barre i:nth-child(3) { background: #a9d8bf; }
.navigateur .barre span { margin: 0 auto; flex: 1; max-width: 340px; font-size: .75rem; color: var(--discret); background: var(--carte); border-radius: 8px; padding: 4px 12px; text-align: center; }
.navigateur img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.telephone {
  position: relative; border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #2a3a36, #0b1412);
  box-shadow: var(--ombre-forte), inset 0 0 0 1.5px rgba(255, 255, 255, .1); aspect-ratio: 390 / 844;
}
.telephone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 26%; height: 18px; margin-left: -13%; border-radius: 20px; background: #050a09; z-index: 2; }
.telephone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; background: #f6f4ef; }
.zoomable { cursor: zoom-in; }
.inclinable { transition: transform .4s var(--ease); transform-style: preserve-3d; }

/* ---------- Bandeau défilant ---------- */
.defilant { padding: 30px 0; border-block: 1px solid var(--bordure); overflow: hidden; background: var(--carte); }
.defilant .piste { display: flex; gap: 56px; width: max-content; animation: defile 45s linear infinite; }
.defilant:hover .piste { animation-play-state: paused; }
.defilant span { display: inline-flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 650; color: var(--discret); white-space: nowrap; }
.defilant span svg { color: var(--accent); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 120px 0; position: relative; }
section.alt { background: var(--fond-2); }
.entete-section { max-width: 800px; margin-bottom: 64px; }
.entete-section.centre { margin-left: auto; margin-right: auto; }
.entete-section p { color: var(--discret); font-size: 1.15rem; }
.sombre .entete-section p { color: #b5d2c8; }
.grille { display: grid; gap: 22px; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grille-4 { grid-template-columns: repeat(2, 1fr); } .grille-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; } section { padding: 84px 0; } }

.carte {
  position: relative; background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 30px; box-shadow: var(--ombre);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.carte:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(7, 35, 31, .25); border-color: color-mix(in srgb, var(--accent) 35%, var(--bordure)); }
.carte p { color: var(--discret); margin: 0; }
.carte ul, .verre ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .97rem; }
.carte ul li, .verre ul li { display: flex; gap: 10px; }
.carte ul li::before, .verre ul li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .2em; border-radius: 50%; background: var(--accent-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7a69' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.verre ul li::before { background-color: rgba(61, 219, 168, .9); }
.icone { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-clair); color: var(--accent); margin-bottom: 20px; transition: transform .5s var(--ease); }
.carte:hover .icone, .verre:hover .icone { transform: rotate(-8deg) scale(1.08); }
.carte-lien { text-decoration: none; color: inherit; display: block; }
.carte-lien .plus { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 650; color: var(--accent); }
.verre.carte-lien .plus { color: var(--vif); }
.carte-lien .plus svg { transition: transform .3s var(--ease); }
.carte-lien:hover .plus svg { transform: translateX(5px); }

/* Carte de verre (sur fond sombre) */
.verre { position: relative; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--rayon); padding: 30px; backdrop-filter: blur(10px); transition: transform .5s var(--ease), background .5s, border-color .5s; }
.verre:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: rgba(61, 219, 168, .4); }
.verre .icone { background: rgba(61, 219, 168, .14); color: var(--vif); }
.verre p, .verre li { color: #b5d2c8; margin: 0; }

/* Bordure lumineuse tournante */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.lumineux::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 65%, var(--vif) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: tourne 5s linear infinite;
}
@keyframes tourne { to { --angle: 360deg; } }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.chiffre { text-align: center; padding: 34px 18px; }
.chiffre b { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.chiffre span { color: var(--discret); font-size: .98rem; }
.sombre .chiffre span { color: #b5d2c8; }
@media (max-width: 800px) { .chiffres { grid-template-columns: 1fr 1fr; } }

/* ---------- Récit défilant (écran collant + frise) ---------- */
.recit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.recit .colle { position: sticky; top: 96px; height: calc(100vh - 120px); max-height: 800px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.recit .colle .telephone { height: min(62vh, 620px); width: auto; }
.recit .colle .telephone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.recit .colle .telephone img.actif { opacity: 1; transform: none; }
.recit .colle .halo { position: absolute; top: 50%; left: 50%; width: 90%; aspect-ratio: 1; margin: -45% 0 0 -45%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--vif) 35%, transparent), transparent 65%); filter: blur(30px); z-index: -1; }
.points-recit { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.points-recit li { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--discret); background: var(--carte); border: 1px solid var(--bordure); transition: all .4s var(--ease); }
.points-recit li.actif { color: #fff; background: var(--accent); border-color: var(--accent); transform: scale(1.12); box-shadow: 0 8px 20px -8px var(--accent); }
.legende-ecran { display: grid; margin: 0; font-size: .9rem; font-weight: 600; color: var(--discret); text-align: center; }
.legende-ecran span { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.legende-ecran span.actif { opacity: 1; transform: none; }

.etapes-recit { list-style: none; margin: 0; padding: 0 0 0 76px; position: relative; }
.ligne-recit { position: absolute; left: 26px; top: 0; height: 100%; width: 3px; border-radius: 3px; background: var(--bordure); }
.ligne-recit span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--accent), var(--vif)); transform-origin: top; transform: scaleY(0); }
.etape-recit { position: relative; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; }
.etape-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.etape-tete .num { position: absolute; left: -76px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: var(--discret); background: var(--carte); border: 2px solid var(--bordure); transition: all .5s var(--ease); z-index: 1; }
.etape-recit.actif .etape-tete .num { color: #fff; background: linear-gradient(135deg, var(--accent), var(--profond)); border-color: transparent; box-shadow: 0 0 0 8px color-mix(in srgb, var(--vif) 18%, transparent), 0 12px 30px -10px var(--accent); }
.moment { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.etape-corps { background: var(--carte); border: 1px solid var(--bordure); border-radius: 24px; padding: 30px 32px; box-shadow: var(--ombre); opacity: .45; transform: scale(.97); transform-origin: left center; transition: opacity .6s, transform .6s var(--ease), box-shadow .6s, border-color .6s; }
.etape-recit.actif .etape-corps { opacity: 1; transform: none; box-shadow: 0 30px 70px -30px rgba(7, 35, 31, .35); border-color: color-mix(in srgb, var(--accent) 30%, var(--bordure)); }
.etape-corps h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: .5rem; }
.etape-corps > p { font-size: 1.08rem; color: var(--discret); margin-bottom: 18px; }
.etape-corps .qui { display: inline-flex; gap: 8px; align-items: center; font-size: .84rem; font-weight: 650; color: var(--accent); background: var(--accent-clair); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.benefices { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px dashed var(--bordure); display: grid; gap: 10px; }
.benefices li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.benefices li svg { flex: none; margin-top: 4px; color: var(--accent); }
.etape-recit .apercu-mobile { display: none; }
@media (max-width: 900px) {
  .recit { grid-template-columns: 1fr; gap: 0; }
  .recit .colle { display: none; }
  .etapes-recit { padding-left: 56px; }
  .ligne-recit { left: 19px; }
  .etape-recit { min-height: auto; padding: 22px 0; }
  .etape-tete .num { left: -56px; width: 42px; height: 42px; font-size: 1rem; }
  .etape-corps { opacity: 1; transform: none; padding: 24px 22px; }
  .etape-recit .apercu-mobile { display: block; width: 200px; margin: 24px auto 0; }
}

/* ---------- Mosaïque (bento) ---------- */
.mosaique { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.tuile { position: relative; overflow: hidden; border-radius: 28px; background: var(--carte); border: 1px solid var(--bordure); padding: 34px; box-shadow: var(--ombre); transition: transform .6s var(--ease), box-shadow .6s; }
.tuile:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(7, 35, 31, .35); }
.tuile p { color: var(--discret); max-width: 32em; }
.tuile .visuel { margin: 28px -34px -34px 34px; position: relative; }
.tuile .visuel img { width: 100%; height: auto; border-top-left-radius: 14px; box-shadow: -10px -10px 40px -10px rgba(7, 35, 31, .25); transition: transform .9s var(--ease); border: 1px solid var(--bordure); border-right: 0; border-bottom: 0; }
.tuile:hover .visuel img { transform: translate(-6px, -8px); }
.tuile.large { grid-column: span 4; }
.tuile.moyenne { grid-column: span 3; }
.tuile.etroite { grid-column: span 2; }
.tuile.verte { background: linear-gradient(160deg, var(--nuit-2), var(--profond)); border-color: transparent; color: #fff; }
.tuile.verte p { color: #c6e3d9; }
.tuile.verte h3 { color: #fff; }
.tuile .tel-tuile { width: 70%; margin: 30px auto -140px; transition: transform .9s var(--ease); }
.tuile:hover .tel-tuile { transform: translateY(-14px) rotate(-2deg); }
@media (max-width: 1000px) { .tuile.large, .tuile.moyenne, .tuile.etroite { grid-column: span 6; } .tuile .tel-tuile { width: 52%; } }

/* ---------- Galerie à onglets ---------- */
.onglets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 44px; }
.onglets button { border: 1px solid var(--bordure); background: var(--carte); color: var(--texte); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .93rem; cursor: pointer; transition: all .3s var(--ease); }
.onglets button:hover { border-color: var(--accent); color: var(--accent); }
.onglets button[aria-selected="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.sombre .onglets button { background: rgba(255, 255, 255, .05); color: #d4ebe2; border-color: rgba(255, 255, 255, .15); }
.sombre .onglets button[aria-selected="true"] { background: var(--vif); color: var(--nuit); border-color: var(--vif); }
.panneau { display: none; }
.panneau.actif { display: block; animation: apparaitPanneau .7s var(--ease); }
@keyframes apparaitPanneau { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.legende { display: grid; grid-template-columns: 1fr 1.7fr; gap: 54px; align-items: center; }
.legende h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.12; }
.legende p { color: var(--discret); font-size: 1.08rem; }
.sombre .legende p { color: #b5d2c8; }
@media (max-width: 900px) { .legende { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Défilement horizontal de téléphones ---------- */
.entete-carrousel { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.carrousel { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 24px 50px; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.carrousel figure { flex: none; width: 250px; margin: 0; scroll-snap-align: center; text-align: center; }
.carrousel figure .telephone { margin-bottom: 18px; transition: transform .6s var(--ease); }
.carrousel figure:hover .telephone { transform: translateY(-10px) rotate(-1.5deg); }
.carrousel figcaption { font-weight: 650; }
.carrousel figcaption small { display: block; font-weight: 450; color: var(--discret); font-size: .88rem; }
.sombre .carrousel figcaption small { color: #9fc1b5; }
.fleches { display: flex; gap: 10px; }
.fleches button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--carte); color: var(--texte); cursor: pointer; display: grid; place-items: center; transition: all .3s; }
.fleches button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sombre .fleches button { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Bloc alterné texte / visuel ---------- */
.bloc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: center; }
.bloc + .bloc { margin-top: 140px; }
.bloc.inverse { grid-template-columns: 1.3fr 1fr; }
.bloc.inverse .bloc-texte { order: 2; }
.bloc-texte p { color: var(--discret); font-size: 1.1rem; }
.sombre .bloc-texte p { color: #b5d2c8; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.points li .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-clair); color: var(--accent); }
.sombre .points li .ico { background: rgba(61, 219, 168, .14); color: var(--vif); }
.points li b { display: block; font-size: 1.03rem; }
.points li span { color: var(--discret); font-size: .97rem; }
.sombre .points li span { color: #a9c9be; }
.duo { position: relative; padding-bottom: 50px; padding-right: 8%; }
.duo .telephone { position: absolute; width: 27%; right: 0; bottom: 0; }
@media (max-width: 900px) { .bloc, .bloc.inverse { grid-template-columns: 1fr; gap: 44px; } .bloc.inverse .bloc-texte { order: 0; } .bloc + .bloc { margin-top: 100px; } }

/* ---------- Bannières de page ---------- */
.banniere { padding: 170px 0 0; text-align: center; }
.banniere .chapeau { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 780px; margin: 0 auto 2rem; }
.banniere .actions { justify-content: center; }
.banniere.sans-scene { padding-bottom: 120px; }

/* ---------- Appel final ---------- */
.appel { padding: 40px 0 120px; }
.appel .boite { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: 96px 40px; text-align: center; background: var(--nuit); color: #fff; }
.appel .boite h2 { color: #fff; max-width: 820px; margin: 0 auto .8rem; }
.appel .boite p { color: #b5d2c8; max-width: 640px; margin: 0 auto 2.2rem; font-size: 1.15rem; }
.appel .boite .actions { justify-content: center; }

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--carte); border: 1px solid var(--bordure); border-radius: 18px; padding: 0 26px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--ombre); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 650; font-size: 1.06rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--discret); padding-bottom: 22px; margin: 0; }

/* ---------- Contact ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contacts .carte { text-decoration: none; color: inherit; }
.contacts .carte b { display: block; font-size: 1.2rem; margin-bottom: 6px; letter-spacing: -0.01em; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: #a9c9be; padding: 90px 0 40px; position: relative; overflow: hidden; isolation: isolate; }
.pied .haut { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pied h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied a { color: #a9c9be; text-decoration: none; transition: color .2s; }
.pied a:hover { color: var(--vif); }
.pied .devise { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin: 22px 0 8px; }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 30px; font-size: .9rem; }
.pied .geant { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); z-index: -1; font-size: clamp(8rem, 26vw, 24rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(61, 219, 168, .14); white-space: nowrap; pointer-events: none; }
@media (max-width: 900px) { .pied .haut { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied .haut { grid-template-columns: 1fr; } }

/* ---------- Agrandissement d'une capture ---------- */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 94vh; overflow: visible; }
.visionneuse::backdrop { background: rgba(7, 20, 18, .85); backdrop-filter: blur(8px); }
.visionneuse[open] { animation: zoomEntre .45s var(--ease); }
.visionneuse img { max-width: 100%; max-height: 86vh; border-radius: 14px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); margin: 0 auto; }
.visionneuse p { color: #d4ebe2; text-align: center; margin: 14px 0 0; }
.visionneuse button { position: absolute; top: -16px; right: -16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #07231f; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
@keyframes zoomEntre { from { opacity: 0; transform: scale(.92); } }
.mention-demo { font-size: .85rem; color: var(--discret); text-align: center; margin-top: 26px; }
.sombre .mention-demo { color: #8fb2a6; }

/* ---------- Pages légales ---------- */
.page-texte { padding: 150px 0 100px; }
.page-texte .conteneur { max-width: 820px; }
.page-texte h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-texte h2 { font-size: 1.4rem; margin-top: 2.4rem; letter-spacing: -0.02em; }
.page-texte p, .page-texte li { color: color-mix(in srgb, var(--texte) 86%, var(--discret)); }
.page-texte .version { color: var(--discret); font-size: .92rem; margin-bottom: 2rem; }

/* ---------- Apparitions au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .apparait { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delai, 0s); }
  .js .apparait.gauche { transform: translateX(-50px); }
  .js .apparait.droite { transform: translateX(50px); }
  .js .apparait.zoom { transform: scale(.92); }
  .js .apparait.visible { opacity: 1; transform: none; }
  .mots .mot { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(10px); animation: motEntre 1s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + .15s); }
  .mots .mot.degrade { animation: motEntre 1s var(--ease) forwards, brille 8s linear infinite; animation-delay: calc(var(--i) * 80ms + .15s), 0s; }
  @keyframes motEntre { to { opacity: 1; transform: none; filter: blur(0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scene .portable, .scene .telephone { opacity: 1 !important; }
}
.pied .logo { display: inline-flex; }
.marge-haut { margin-top: 44px; }

/* ---------- Aperçu réservé à la démonstration ---------- */
.voile-demo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre-forte); border: 1px solid var(--bordure); }
.voile-demo img { width: 100%; height: auto; transform: scale(1.06); }
.voile-demo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(7, 35, 31, .25), rgba(7, 35, 31, .65)); }
.cadenas-demo { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #fff; padding: 20px; }
.cadenas-demo svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); color: var(--vif); margin-bottom: 8px; animation: plane 5s ease-in-out infinite; }
.cadenas-demo b { font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -0.02em; }
.cadenas-demo span { color: #c6e3d9; font-size: .95rem; }

/* ---------- Trois téléphones ---------- */
.trio-tel { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 40px); margin: 70px auto 0; max-width: 900px; }
.trio-tel .telephone { width: clamp(150px, 26%, 260px); }
.trio-tel .telephone:nth-child(1) { transform: rotate(-6deg) translateY(30px); }
.trio-tel .telephone:nth-child(2) { width: clamp(170px, 30%, 290px); z-index: 1; }
.trio-tel .telephone:nth-child(3) { transform: rotate(6deg) translateY(30px); }
@media (max-width: 600px) { .trio-tel .telephone:nth-child(1), .trio-tel .telephone:nth-child(3) { display: none; } .trio-tel .telephone:nth-child(2) { width: 230px; } }

/* Devise signée (comme dans l'application) */
.pied .devise { margin: 22px 0 14px; padding: 0; border: 0; }
.pied .devise p { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin: 0; font-style: italic; }
.pied .devise cite { display: block; margin-top: 6px; font-style: normal; font-weight: 650; color: var(--vif); letter-spacing: .08em; }
.pied .devise cite::before { content: "— "; }
.pied .mission { font-style: italic; }
.pied .cartouche { background: #fffefb; border-radius: 12px; padding: 6px 10px; }
.pied .mission b { font-style: normal; font-weight: 700; color: var(--vif); }
