/* =========================================================
   NurseTrack : page d'accueil (nursetrack.me)
   Même ADN que l'app : navy #114456, Geist + Geist Mono,
   cartes arrondies, carte solde navy, barre flottante en verre.
   Deux dispositions distinctes :
   - mobile (base)  : écran d'app empilé, cartes-lignes, barre du bas
   - PC (>= 60rem)  : en-tête avec liens, héros en deux colonnes,
                      fenêtre d'app large, grille « bento »
   Les maquettes d'écran sont en HTML/CSS (aria-hidden) : nettes à
   toutes les tailles, sans capture à maintenir.
   ========================================================= */

:root {
  --navy:     #114456;
  --navy-dk:  #0c3342;
  --sky:      #3b9dc8;
  --sky-lt:   #e8f4f8;
  --green:    #2a9d5c;
  --green-lt: #d4f0e2;
  --red:      #e05252;
  --amber:    #f4a261;
  --amber-lt: #fdf0e3;
  --violet:   #7c3aed;
  --violet-lt:#ede9fe;
  --g50:  #f8fafc;
  --g100: #f1f5f9;
  --g200: #e2e8f0;
  --g300: #cbd5e1;
  --g400: #94a3b8;
  --g500: #64748b;
  --g700: #334155;
  --g900: #0f172a;
  --sh-sm: 0 1px 2px rgba(15,23,42,.04), 0 3px 10px -4px rgba(15,23,42,.06);
  --sh:    0 2px 6px rgba(15,23,42,.05), 0 12px 26px -10px rgba(15,23,42,.10);
  --sh-lg: 0 4px 12px rgba(15,23,42,.06), 0 28px 56px -18px rgba(15,23,42,.20);
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

body.home {
  background: var(--g50);
  color: var(--g900);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}
.home h1, .home h2, .home h3 { color: var(--g900); letter-spacing: -.022em; }
.home p { max-width: none; }
:where(.home) a { color: var(--navy); }
:where(.home) svg.i { width: 1em; height: 1em; flex-shrink: 0; }
.home .wrap { max-width: 72rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */
.home .btn { border-radius: 999px; font-size: .97rem; padding: .7rem 1.25rem; gap: .5rem; }
.home .btn-primary { color: #fff; background: var(--navy); box-shadow: 0 6px 16px -6px rgba(17,68,86,.55); }
.home .btn-primary:hover { background: var(--navy-dk); color: #fff; }
.home .btn-outline { background: #fff; border-color: var(--g200); color: var(--g900); box-shadow: var(--sh-sm); }
.home .btn-outline { color: var(--g900); }
.home .btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.home .btn-lg { padding: .9rem 1.5rem; font-size: 1.02rem; }
.home .btn svg.i { width: 1.05em; height: 1.05em; }

/* ---------- En-tête ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248,250,252,.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.nav .wrap { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.nav .brand { color: var(--g900); font-size: 1.05rem; font-weight: 700; }
.nav .brand .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--navy); }
.nav .brand .mark img { width: 20px; height: 20px; }
.nav .brand .wm { font-weight: 500; color: var(--g500); }
.nav-links { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.nav-login { font-weight: 600; font-size: .95rem; color: var(--g700); text-decoration: none; padding: .5rem .3rem; }
.nav-login:hover { color: var(--navy); }
.nav .btn-primary { display: none; }

/* ---------- Héros (mobile) ---------- */
.hero2 { padding: 1.6rem 0 0; overflow: hidden; position: relative; }
.hero2 .wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--g200); border-radius: 999px;
  padding: .36rem .8rem .36rem .65rem; box-shadow: var(--sh-sm);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-lt); }
.hero2 h1 {
  font-size: clamp(2.15rem, 1.35rem + 4.4vw, 3rem); line-height: 1.04; letter-spacing: -.03em;
  font-weight: 700; margin-top: 1rem; text-wrap: balance;
}
.hero2 .lead { margin-top: 1rem; font-size: 1.08rem; color: var(--g500); line-height: 1.55; max-width: 34rem; }
.hero2 .cta { display: grid; gap: .65rem; margin-top: 1.5rem; }
.hero2 .cta .btn { width: 100%; }


/* ---------- Composants d'écran (partagés) ---------- */
.ui { font-size: 13px; line-height: 1.35; color: var(--g900); text-align: left; }
.ui * { box-sizing: border-box; }
.ui-top { display: flex; align-items: center; gap: 8px; padding: 2px 2px 10px; }
.ui-logo { width: 28px; height: 28px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; }
.ui-logo img { width: 17px; height: 17px; }
.ui-title { font-weight: 700; font-size: 15px; }
.ui-title span { font-weight: 500; color: var(--g500); }
.ui-month {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--g700);
  background: #fff; border: 1px solid var(--g200); border-radius: 999px; padding: 5px 11px; box-shadow: var(--sh-sm);
}
.ui-balance {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  border-radius: 20px; padding: 15px 15px 13px; box-shadow: var(--sh);
}
.ui-balance::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59,157,200,.5), transparent);
}
.ui-lab { position: relative; z-index: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .72; }
.ui-big { position: relative; z-index: 1; margin: 5px 0 12px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.ui-split { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-split > div { background: rgba(255,255,255,.09); border-radius: 12px; padding: 8px 10px; }
.ui-split small { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: .78; }
.ui-split small svg { width: 12px; height: 12px; }
.ui-split b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.ui-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.ui-card { background: #fff; border: 1px solid var(--g200); border-radius: 15px; padding: 10px 10px 9px; box-shadow: var(--sh-sm); min-width: 0; }
.ui-card .l { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--g400); }
.ui-card .v { margin: 5px 0 2px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.ui-card .s { font-size: 10.5px; color: var(--g500); }
.ui-card .bar { height: 4px; border-radius: 4px; background: var(--g100); margin-top: 7px; overflow: hidden; }
.ui-card .bar i { display: block; height: 100%; border-radius: 4px; }
.ui-row {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--g200);
  border-radius: 16px; padding: 10px 12px; box-shadow: var(--sh-sm); margin-top: 8px;
}
.ui-ico { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--sky-lt); color: var(--navy); }
.ui-ico svg { width: 17px; height: 17px; }
.ui-ico.v { background: var(--violet-lt); color: var(--violet); }
.ui-ico.r { background: #fde8e8; color: var(--red); }
.ui-ico.a { background: var(--amber-lt); color: #b86a1f; }
.ui-ico.g { background: var(--green-lt); color: var(--green); }
.ui-row .t { flex: 1; min-width: 0; }
.ui-row .t b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row .t small { display: block; font-size: 11px; color: var(--g500); }
.ui-row .amt { white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 600; }
.ui-row .amt.pos { color: var(--green); }
.ui-tabs {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 4;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(15,23,42,.08); border-radius: 999px; box-shadow: var(--sh);
}
.ui-tabs span { display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; color: var(--g400); }
.ui-tabs span svg { width: 18px; height: 18px; }
.ui-tabs span.on { background: var(--navy); color: #fff; }

/* ---------- Bandeau de confiance ---------- */
.trust { padding: 1.6rem 0 .4rem; }
.trust ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.trust li {
  display: flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid var(--g200);
  border-radius: 14px; padding: .7rem .8rem; font-size: .88rem; font-weight: 600; color: var(--g700); box-shadow: var(--sh-sm);
}
.trust li svg { width: 18px; height: 18px; color: var(--navy); }

/* ---------- Sections ---------- */
.sec { padding: 3rem 0 0; }
.sec-head { margin-bottom: 1.3rem; }
.sec-kick { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sky); }
.sec-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.1rem); font-weight: 700; line-height: 1.1; margin-top: .45rem; text-wrap: balance; }
.sec-head p { color: var(--g500); margin-top: .7rem; font-size: 1.02rem; max-width: 34rem; }


/* Fonctions : mobile = cartes-lignes empilées, PC = bento */
.bento { display: grid; gap: .8rem; }
.bt {
  background: #fff; border: 1px solid var(--g200); border-radius: 22px; padding: 1.15rem; box-shadow: var(--sh-sm);
  display: grid; gap: .9rem; align-content: start; overflow: hidden;
}
.bt-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-lt); color: var(--navy); }
.bt-ico svg { width: 20px; height: 20px; }
.bt h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.bt p { color: var(--g500); font-size: .96rem; margin-top: .3rem; }
.bt-vis { display: none; }
.bt.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.bt.dark h3 { color: #fff; } .bt.dark p { color: rgba(255,255,255,.72); }
.bt.dark .bt-ico { background: rgba(255,255,255,.12); color: #fff; }

/* Confidentialité + FAQ */
.faq2 { display: grid; gap: .55rem; }
.faq2 details { background: #fff; border: 1px solid var(--g200); border-radius: 18px; box-shadow: var(--sh-sm); }
.faq2 summary {
  list-style: none; cursor: pointer; position: relative; padding: 1rem 2.8rem 1rem 1.1rem;
  font-weight: 600; font-size: 1rem; color: var(--g900);
}
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--g400); border-bottom: 2px solid var(--g400); transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq2 details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq2 details > p { padding: 0 1.1rem 1.1rem; color: var(--g500); font-size: .97rem; }
.faq2 a { color: var(--navy); font-weight: 600; }

/* Appel final */
.final { padding: 3rem 0 0; }
.final-card {
  position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 26px;
  padding: 1.7rem 1.4rem; box-shadow: var(--sh-lg);
}
.final-card::after {
  content: ""; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59,157,200,.5), transparent); pointer-events: none;
}
.final-card > * { position: relative; z-index: 1; }
.final-card h2 { color: #fff; font-size: 1.65rem; font-weight: 700; line-height: 1.1; text-wrap: balance; }
.final-card p { color: rgba(255,255,255,.75); margin-top: .7rem; }
.final-card .cta { display: grid; gap: .6rem; margin-top: 1.3rem; }
.home .final-card .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.home .final-card .btn-primary:hover { background: var(--sky-lt); color: var(--navy); }
.home .final-card .btn-ghost { color: #fff; text-decoration: none; font-weight: 600; text-align: center; padding: .6rem; }

.home .site-foot { margin-top: 3rem; border-top: 0; background: var(--navy-dk); padding-bottom: calc(2.75rem + 5.4rem + env(safe-area-inset-bottom, 0px)); }

/* Barre flottante du bas (mobile) */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); z-index: 40;
  display: flex; align-items: center; gap: .7rem; padding: .45rem .45rem .45rem 1.05rem;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border: 1px solid rgba(15,23,42,.08); border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(15,23,42,.28);
  transition: transform .4s var(--ease), opacity .3s;
}
.dock.is-hidden { transform: translateY(140%); opacity: 0; }
.dock span { font-size: .86rem; font-weight: 600; color: var(--g700); line-height: 1.25; }
.dock span small { display: block; font-size: .74rem; font-weight: 500; color: var(--g500); }
.dock .btn { margin-left: auto; }


/* Apparition douce (uniquement si JS actif) */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   PC (>= 60rem) : disposition distincte
   ========================================================= */
@media (min-width: 60rem) {
  .dock { display: none; }

  .nav .wrap { min-height: 68px; }
  .nav-links { display: flex; gap: .3rem; margin-left: 2.2rem; }
  .nav-links a {
    font-size: .95rem; font-weight: 600; color: var(--g500); text-decoration: none;
    padding: .5rem .85rem; border-radius: 999px; transition: background-color .15s, color .15s;
  }
  .nav-links a:hover { background: var(--g100); color: var(--g900); }
  .nav .btn-primary { display: inline-flex; }

  /* Héros : deux colonnes */
  .hero2 { padding: 4.2rem 0 4.5rem; }
  .hero2 .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; }
  .hero2 h1 { font-size: clamp(2.7rem, 1.6rem + 2.2vw, 3.7rem); letter-spacing: -.035em; line-height: 1.03; }
  .hero2 .lead { font-size: 1.22rem; margin-top: 1.3rem; max-width: 31rem; }
  .hero2 .cta { display: flex; gap: .8rem; margin-top: 2rem; }
  .hero2 .cta .btn { width: auto; }

  .trust { padding: 0; margin-top: 0; }
  .trust ul { grid-template-columns: repeat(4, 1fr); gap: .9rem; }
  .trust li { padding: 1rem 1.15rem; font-size: .95rem; border-radius: 16px; }

  .sec { padding-top: 6.5rem; }
  .sec-head { margin-bottom: 2.4rem; text-align: center; }
  .sec-head h2 { font-size: 2.7rem; max-width: 20ch; margin-inline: auto; }
  .sec-head p { margin-inline: auto; font-size: 1.12rem; }


  /* Bento */
  .bento { grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
  .bt { padding: 1.6rem; border-radius: 28px; gap: 1.2rem; }
  .bt h3 { font-size: 1.3rem; }
  .bt p { font-size: 1rem; }
  .bt-vis { display: block; }
  .bt.w4 { grid-column: span 4; } .bt.w3 { grid-column: span 3; } .bt.w2 { grid-column: span 2; }
  .bt.split { grid-template-columns: 1fr 1fr; align-items: center; gap: 1.6rem; }
  .bt.split .bt-ico { margin-bottom: .9rem; }

  .bar-line { height: 12px; border-radius: 8px; background: var(--g200); overflow: hidden; display: flex; margin: 6px 0 8px; }
  .bar-line i { display: block; height: 100%; }
  .bar-cap { display: flex; justify-content: space-between; font-size: 12px; color: var(--g500); }
  .bar-cap b { font-family: var(--mono); color: var(--g900); font-weight: 600; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--g700);
    background: var(--g50); border: 1px solid var(--g200); border-radius: 12px; padding: 9px 12px;
  }
  .chip svg { width: 16px; height: 16px; color: var(--navy); }
  .off-pill {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--g700);
    background: var(--g100); border: 1px solid var(--g200); border-radius: 999px; padding: 8px 14px;
  }
  .off-pill svg { width: 15px; height: 15px; }
  .off-pill.ok { background: var(--green-lt); border-color: #b8e3cb; color: #1c7a45; }
  .arrow-mid { display: grid; place-items: center; color: var(--g400); margin: 6px 0 6px 18px; width: 20px; }
  .arrow-mid svg { width: 18px; height: 18px; transform: rotate(90deg); }

  /* FAQ : titre collant à gauche, liste à droite */
  .faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: start; }
  .faq-grid .sec-head { position: sticky; top: 6.5rem; text-align: left; margin-bottom: 0; }
  .faq-grid .sec-head h2 { margin-inline: 0; }
  .faq-grid .sec-head p { margin-inline: 0; }
  .faq2 { gap: .7rem; }
  .faq2 summary { padding: 1.15rem 3rem 1.15rem 1.35rem; font-size: 1.05rem; }
  .faq2 details > p { padding: 0 1.35rem 1.25rem; font-size: 1rem; max-width: 46rem; }

  .final { padding-top: 6.5rem; }
  .final-card { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 2rem; padding: 3.6rem 3.6rem; border-radius: 34px; }
  .final-card h2 { font-size: 2.6rem; }
  .final-card p { font-size: 1.1rem; max-width: 30rem; }
  .final-card .cta { margin-top: 0; justify-items: start; }
  .final-card .btn { min-width: 15rem; }
  .home .site-foot { margin-top: 6rem; padding-bottom: 2.75rem; }
}

@media (min-width: 75rem) {
  .hero2 .wrap { gap: 4.5rem; }
}


/* =========================================================
   v2 : fond aurore animé, verre dépoli, héros avec l'image iPhone,
   animations d'entrée et de défilement
   ========================================================= */

/* ---------- Fond aurore : trois halos qui dérivent lentement ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--g50); }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .a1 {
  width: 78vmax; height: 78vmax; left: -28vmax; top: -34vmax;
  background: radial-gradient(closest-side, rgba(59,157,200,.42), rgba(59,157,200,0));
  animation: drift1 24s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 66vmax; height: 66vmax; right: -30vmax; top: -6vmax;
  background: radial-gradient(closest-side, rgba(17,68,86,.30), rgba(17,68,86,0));
  animation: drift2 30s ease-in-out infinite alternate;
}
.aurora .a3 {
  width: 58vmax; height: 58vmax; left: 8vw; bottom: -36vmax;
  background: radial-gradient(closest-side, rgba(42,157,92,.18), rgba(42,157,92,0));
  animation: drift3 34s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(22vmax, 12vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-20vmax, 18vmax, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(26vmax, -14vmax, 0) scale(1.16); } }
/* lueur qui suit le pointeur (PC), posée sur le héros */
.hero2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(28rem circle at var(--mx, 70%) var(--my, 40%), rgba(59,157,200,.22), transparent 60%);
  /* fondu vers le bas : sinon la lueur est coupée net à la limite du héros */
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
}
.hero2.is-hover::before { opacity: 1; }

/* ---------- Verre dépoli : cartes translucides sur l'aurore ---------- */
.nav { background: rgba(248,250,252,.6); }
.pill, .trust li, .bt, .fcard, .faq2 details {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -14px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.9);
}
.bt.dark { background: linear-gradient(155deg, rgba(17,68,86,.96), rgba(12,51,66,.94)); border-color: rgba(255,255,255,.1); }
.home .btn-outline { background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---------- Héros : image iPhone + cartes en verre ---------- */
.hero-visual { position: relative; margin: 1.6rem auto 0; width: min(100%, 25rem); }
.hv-glow {
  position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(17,68,86,.30), rgba(17,68,86,0) 70%);
  animation: glow 7s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glow { from { opacity: .55; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
.hv-crop {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1.4;
  -webkit-mask-image: linear-gradient(#000 86%, transparent); mask-image: linear-gradient(#000 86%, transparent);
}
.hv-phone { transform-style: preserve-3d; will-change: transform; transition: transform .25s ease-out; }
.hv-phone img {
  display: block; width: 118%; max-width: none; height: auto; margin-left: -9%;
}
.gl {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem; text-align: left;
  background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border-radius: 18px; padding: .6rem .85rem;
  box-shadow: 0 16px 36px -12px rgba(17,68,86,.32), inset 0 1px 0 rgba(255,255,255,.9);
}
.gl .l { display: block; font-size: .72rem; color: var(--g500); line-height: 1.3; }
.gl .v { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 600; color: var(--g900); }
.gl .v.pos { color: var(--green); }
.gl b { display: block; font-size: .82rem; font-weight: 700; }
.gl small { display: block; font-size: .72rem; color: var(--g500); }
.gl .ui-ico { width: 34px; height: 34px; }
.gl-a { left: -3%; top: 24%; }
.gl-b { right: -3%; top: 62%; }
.gl-c, .gl-d { display: none; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* ---------- Entrée du héros (au chargement) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .27s; }
.hero-copy > :nth-child(4) { animation-delay: .39s; }
.hero-visual .hv-crop { animation: pop 1s var(--ease) .25s both; }
.gl-a { animation: pop .8s var(--ease) .75s both, bob 6s ease-in-out 1.6s infinite; }
.gl-b { animation: pop .8s var(--ease) .95s both, bob 7s ease-in-out 1.8s infinite; }

/* ---------- Défilement : apparition en cascade ---------- */
.js .fcard, .js .bt, .js .faq2 details {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s; transition-delay: var(--d, 0s);
}
.js .flow.in .fcard, .js .bento.in .bt, .js .faq2.in details { opacity: 1; transform: none; }
.js .flow.in li:nth-child(2) .fcard, .js .bento.in .bt:nth-child(2), .js .faq2.in details:nth-child(2) { --d: .09s; }
.js .flow.in li:nth-child(3) .fcard, .js .bento.in .bt:nth-child(3), .js .faq2.in details:nth-child(3) { --d: .18s; }
.js .bento.in .bt:nth-child(4), .js .faq2.in details:nth-child(4) { --d: .27s; }
.js .bento.in .bt:nth-child(5), .js .faq2.in details:nth-child(5) { --d: .36s; }
.js .bento.in .bt:nth-child(6), .js .faq2.in details:nth-child(6) { --d: .45s; }
.js .bento.in .bt:nth-child(7), .js .faq2.in details:nth-child(7) { --d: .54s; }
.js .trust li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .trust ul.in li { opacity: 1; transform: none; }
.js .trust ul.in li:nth-child(2) { transition-delay: .08s; }
.js .trust ul.in li:nth-child(3) { transition-delay: .16s; }
.js .trust ul.in li:nth-child(4) { transition-delay: .24s; }
/* le conteneur lui-même ne doit plus s'effacer : ce sont ses cartes qui entrent */
.js .flow.rv, .js .bento.rv, .js .faq2.rv, .js .trust ul.rv { opacity: 1; transform: none; }

/* barres qui se remplissent, pastille qui pulse */
.js .bt .bar-line i { transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .5s; }
.js .bento.in .bt .bar-line i { transform: none; }
.pill i { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(42,157,92,.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(42,157,92,0); } }

/* boutons : relief au survol + reflet */
.home .btn { transition: transform .25s var(--ease), box-shadow .25s, background-color .15s, border-color .15s, color .15s; }
.home .btn-primary { position: relative; overflow: hidden; }
.home .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transition: left .7s var(--ease);
}
.home .btn-primary:hover::after { left: 130%; }
.home .btn:active { transform: scale(.97); }
.nav { transition: box-shadow .3s, background-color .3s; }
.nav.scrolled { box-shadow: 0 8px 24px -14px rgba(15,23,42,.25); background: rgba(248,250,252,.8); }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .hv-glow, .gl, .pill i { animation: none !important; }
  .hero-copy > *, .hero-visual .hv-crop { animation: none !important; }
  .js .fcard, .js .bt, .js .faq2 details, .js .trust li, .js .bt .bar-line i { opacity: 1; transform: none; transition: none; }
}

/* ---------- PC : grand téléphone incliné au pointeur + quatre cartes ---------- */
@media (min-width: 60rem) {
  .hero-visual { width: min(100%, 36rem); margin: 0 0 0 auto; perspective: 1400px; }
  .hv-crop { aspect-ratio: 1 / 1.22; -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent); }
  .hv-phone img { width: 104%; margin-left: -2%; }
  .gl { padding: .75rem 1rem; border-radius: 20px; gap: .75rem; }
  .gl .v { font-size: 1.22rem; }
  .gl .l, .gl small { font-size: .78rem; }
  .gl b { font-size: .9rem; }
  .gl .ui-ico { width: 38px; height: 38px; }
  .gl-a { left: -6%; top: 20%; }
  .gl-b { right: -2%; top: 58%; }
  .gl-c, .gl-d { display: flex; }
  .gl-c { left: 0; top: 66%; animation: pop .8s var(--ease) 1.15s both, bob 8s ease-in-out 2s infinite; }
  .gl-d { right: 2%; top: 7%; animation: pop .8s var(--ease) 1.3s both, bob 6.5s ease-in-out 2.2s infinite; }
}


/* ---------- Fond allégé : un seul halo doux, limité au héros ---------- */
.aurora { position: absolute; inset: 0 0 auto 0; height: max(100vh, 46rem); z-index: -1; background: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.aurora .a1 { background: radial-gradient(closest-side, rgba(59,157,200,.26), rgba(59,157,200,0)); }
.aurora .a2 { background: radial-gradient(closest-side, rgba(17,68,86,.10), rgba(17,68,86,0)); }
.aurora .a3 { display: none; }
.hv-glow { background: radial-gradient(closest-side, rgba(17,68,86,.14), rgba(17,68,86,0) 70%); }
.hero2::before { background: radial-gradient(24rem circle at var(--mx, 70%) var(--my, 40%), rgba(59,157,200,.10), transparent 60%); }
.bt.dark { background: var(--navy); }
.final-card::after, .ui-balance::after { opacity: .7; }


/* ---------- Comment ça marche : fil conducteur + mini-écrans ---------- */
.flow { list-style: none; display: grid; gap: 1rem; position: relative; }
.flow li { position: relative; padding-left: 3.2rem; display: flex; }
.flow::before, .flow::after { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; }
.flow::before { background: var(--g200); }
.flow::after { background: linear-gradient(var(--navy), var(--sky)); transform-origin: top; transition: transform 1.8s var(--ease) .3s; }
.js .flow::after { transform: scaleY(0); }
.js .flow.in::after { transform: none; }
.node {
  position: absolute; left: 0; top: .3rem; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
  box-shadow: 0 0 0 6px var(--g50), 0 8px 16px -6px rgba(17,68,86,.55);
}
.fcard { flex: 1; min-width: 0; border-radius: 22px; padding: 1rem; display: grid; gap: .85rem; align-content: start; }
.fvis {
  display: grid; gap: .5rem; align-content: center; min-height: 7.5rem; padding: .8rem;
  border-radius: 16px; background: linear-gradient(160deg, var(--sky-lt), rgba(255,255,255,.45));
}
.fvis .ui-row { margin-top: 0; }
.fcard h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.25; }
.fcard p { color: var(--g500); font-size: .95rem; margin-top: .3rem; }
.cfield { background: #fff; border: 1px solid var(--g200); border-radius: 14px; padding: .65rem .8rem; box-shadow: var(--sh-sm); }
.cfield .l { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--g400); }
.cfield .val { display: flex; align-items: center; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 600; margin-top: 3px; }
.caret { width: 2px; height: 1.15em; margin-left: 3px; background: var(--sky); border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--g700);
  background: rgba(255,255,255,.85); border: 1px solid var(--g200); border-radius: 12px; padding: 8px 11px;
}
.chip svg { width: 16px; height: 16px; color: var(--navy); }
.chip.ok { background: var(--green-lt); border-color: #b8e3cb; color: #1c7a45; }
.chip.ok svg { color: #1c7a45; }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } .js .flow::after { transform: none; transition: none; } }

@media (min-width: 60rem) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .flow li { padding: 3.7rem 0 0; }
  .flow::before, .flow::after { left: 18px; right: calc((100% - 2.8rem) / 3 - 18px); top: 17px; bottom: auto; width: auto; height: 2px; }
  .flow::after { background: linear-gradient(90deg, var(--navy), var(--sky)); transform-origin: left; }
  .js .flow::after { transform: scaleX(0); }
  .js .flow.in::after { transform: none; }
  .node { top: 0; width: 38px; height: 38px; }
  .fcard { padding: 1.3rem; gap: 1.1rem; border-radius: 26px; }
  .fvis { min-height: 9.5rem; padding: 1rem; }
  .fcard h3 { font-size: 1.22rem; }
  .fcard p { font-size: 1rem; margin-top: .4rem; }
}


/* =========================================================
   Pages intérieures : demande d'accès, installation, pages légales
   Même en-tête, même fond et mêmes cartes en verre que l'accueil.
   ========================================================= */
.page .site-foot { margin-top: 3.5rem; padding-bottom: 2.75rem; }

/* Bouton retour */
.page .doc-back {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.1rem;
  font-size: .9rem; font-weight: 600; color: var(--g700); text-decoration: none;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.85); border-radius: 999px; padding: .45rem .95rem;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), color .15s;
}
.page .doc-back:hover { color: var(--navy); }
.page .doc-back:active { transform: scale(.97); }

/* Carte de lecture */
.page .doc { padding: 1.6rem 0 0; }
.page .doc .wrap { max-width: 54rem; }
.doc-card {
  background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.8); border-radius: 26px; padding: 1.4rem 1.25rem 1.6rem;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 44px -20px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.9);
}
.page .doc h1 { font-size: clamp(1.9rem, 1.35rem + 2.6vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin-bottom: .8rem; text-wrap: balance; }
.page .doc .updated {
  display: inline-block; font-size: .82rem; font-weight: 500; color: var(--g500); margin-bottom: 1.6rem;
  background: var(--g100); border-radius: 999px; padding: .28rem .75rem;
}
.page .doc h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.018em; margin-top: 2.1rem; padding-top: 1.4rem; border-top: 1px solid rgba(15,23,42,.08); }
.page .doc h3 { font-size: 1.04rem; font-weight: 700; color: var(--g900); margin-top: 1.4rem; }
.page .doc p, .page .doc li { color: var(--g700); font-size: 1rem; line-height: 1.68; }
.page .doc strong { color: var(--g900); }
.page .doc ul, .page .doc ol { margin-left: 1.15rem; }
.page .doc li::marker { color: var(--sky); }
.page .doc a { color: var(--navy); font-weight: 600; text-decoration-color: rgba(17,68,86,.35); }
.page .doc .callout {
  background: var(--sky-lt); border: 0; border-left: 3px solid var(--sky); border-radius: 16px; padding: 1rem 1.15rem; margin: 1.4rem 0;
}

/* Installation : étapes numérotées avec un fil */
.page .steps { gap: 0; margin-top: 1.8rem; }
.page .steps li { position: relative; padding: 0 0 1.9rem 3.1rem; gap: .55rem; }
.page .steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 38px; bottom: .3rem; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--navy), var(--sky)); opacity: .28;
}
.page .steps li h2 { border: 0; padding: 0; margin: 0; font-size: 1.12rem; display: block; }
.page .steps li h2::before {
  content: counter(st); position: absolute; left: 0; top: -.05rem; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: .9rem; box-shadow: 0 0 0 5px rgba(255,255,255,.8), 0 8px 16px -6px rgba(17,68,86,.5);
}
.page .shot {
  border: 1.5px dashed rgba(17,68,86,.25); background: linear-gradient(160deg, var(--sky-lt), rgba(255,255,255,.5));
  border-radius: 18px; color: var(--g500); font-size: .85rem; aspect-ratio: 9 / 5; max-width: 22rem;
}

.page .shot-img { margin: .5rem 0 0; max-width: 17rem; }
.page .shot-img img {
  display: block; width: 100%; height: auto; border-radius: 26px;
  border: 1px solid rgba(17,68,86,.14);
  box-shadow: 0 24px 48px -24px rgba(17,68,86,.45), 0 4px 12px -4px rgba(17,68,86,.18);
}

/* Demande d'accès */
.page .request { padding: 1.6rem 0 0; }
.req-grid { display: grid; gap: 1.5rem; }
.page .request h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.page .request-intro { color: var(--g500); font-size: 1.05rem; margin: 1rem 0 0; max-width: 34rem; }
.req-points { list-style: none; display: grid; gap: .7rem; margin-top: 1.4rem; }
.req-points li { display: flex; align-items: center; gap: .65rem; font-size: .97rem; font-weight: 600; color: var(--g700); }
.req-points i {
  width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--green-lt); color: var(--green);
}
.req-points svg { width: 15px; height: 15px; }
.req-card {
  background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.85); border-radius: 26px; padding: 1.25rem;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 22px 50px -22px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.9);
}
.page .request-form { max-width: none; gap: 1.1rem; }
.page .request-form label { color: var(--g900); }
.page .request-form input[type="text"], .page .request-form input[type="email"], .page .request-form textarea {
  background: rgba(255,255,255,.9); border: 1px solid var(--g200); border-radius: 14px; padding: .8rem .95rem; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.page .request-form input:focus, .page .request-form textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(59,157,200,.18); }
.page .request-form .btn-primary { justify-self: stretch; }
.page .request-form .consent input { accent-color: var(--navy); }

@media (min-width: 60rem) {
  .page .doc { padding-top: 2.6rem; }
  .doc-card { padding: 2.6rem 3rem 3rem; border-radius: 30px; }
  .page .request { padding-top: 3.4rem; }
  .req-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; }
  .req-copy { position: sticky; top: 7rem; padding-top: 1rem; }
  .req-card { padding: 2rem; border-radius: 30px; }
  .page .request-form .btn-primary { justify-self: start; }
  .page .site-foot { margin-top: 6rem; }
}

/* les ancres du menu ne passent pas sous la barre fixe */
.sec[id] { scroll-margin-top: 4.5rem; }

/* ─── Version ordinateur (capture du tableau de bord) ─── */
.hero-note { margin-top: .9rem; font-size: .9rem; color: var(--g500); }
.hero-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pc-shot { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--g200); box-shadow: 0 30px 70px -28px rgba(15,23,42,.35); }
.pc-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--g100); border-bottom: 1px solid var(--g200); }
.pc-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--g300); }
.pc-bar span { margin: 0 auto; transform: translateX(-24px); padding: 3px 28px; border-radius: 8px; background: #fff; border: 1px solid var(--g200); font-size: .72rem; color: var(--g500); }
.pc-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .pc-bar span { padding: 3px 12px; font-size: .66rem; } }
