/* La vitrine en blanc : une barre du haut nette, une page blanche, et une section de
   vraie vie (photos de banque d'images, montrées comme décor, jamais comme témoignages).
   Chargé après les autres feuilles : ne fait que préciser la vitrine. */

:root { --vp-bord: #eceef2; --vp-bleu: #2f6fed; --vp-ombre: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 44px -24px rgba(16, 24, 40, 0.22); }

@media (min-width: 901px) {
  /* ---------------- le fond : blanc ---------------- */
  html.vitrine body::before { background: #fff; }
  html.vitrine body::after { display: none; }

  /* ---------------- la barre du haut ---------------- */
  html.vitrine #view-home .home-top {
    position: sticky; top: 0; z-index: 50; padding: 0;
    background: rgba(255, 255, 255, 0.88); border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  html.vitrine #view-home .home-top.is-scrolled { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--vp-bord); box-shadow: 0 6px 24px -20px rgba(16, 24, 40, 0.35); }
  html.vitrine #view-home .home-top-inner {
    max-width: 1240px; margin: 0 auto; min-height: 68px; padding: 0 32px; gap: 24px;
    display: flex; align-items: center; border-radius: 0;
    background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html.vitrine #view-home .home-top .brand { white-space: nowrap; flex: none; }
  html.vitrine #view-home .home-top .brand span { font-size: 13px; letter-spacing: 0.22em; }
  html.vitrine #view-home .nav-actes { gap: 4px; flex: none; margin-left: auto; }
  /* plus de sur-titres au-dessus des sections (« Ce que MAXX fait », « Pourquoi »…) : le titre suffit */
  html.vitrine .tete-ordi .k { display: none; }
  html.vitrine .tete-ordi h2 { margin-top: 0; }
  html.vitrine #view-home .nav-actes .text {
    white-space: nowrap; padding: 8px 12px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #4a4f59; text-decoration: none;
  }
  html.vitrine #view-home .nav-actes .text:hover { color: #0e0f11; }
  html.vitrine #view-home .nav-actes button.primary { min-height: 40px; padding: 10px 18px; font-size: 14px; margin-left: 6px; white-space: nowrap; box-shadow: none; }
  html.vitrine #view-home .home-top .lang-switch { padding: 0; gap: 0; background: transparent; border: 0; margin-right: 4px; }
  html.vitrine #view-home .home-top .lang-switch-lab { display: none; }
  html.vitrine #view-home .home-top .lang-switch select {
    height: 34px; min-height: 0; padding: 0 28px 0 12px; border: 1px solid var(--vp-bord); border-radius: 999px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%234a4f59' stroke-width='1.5' stroke-linecap='round'/></svg>") no-repeat right 11px center;
    -webkit-appearance: none; appearance: none; font-size: 13px; font-weight: 500; color: #33373f; cursor: pointer;
  }
  html.vitrine #view-home .home-top .lang-switch select:hover { border-color: #d6d9e0; }

  /* ---------------- sous la barre : l'app iPhone, le code à viser ---------------- */
  .bandeau-app { border-bottom: 1px solid var(--vp-bord); background: linear-gradient(180deg, #fbfbfc, #f6f7f9); }
  .bandeau-app-inner { max-width: 1240px; margin: 0 auto; padding: 11px 32px; display: flex; align-items: center; gap: 16px; }
  .bandeau-qr { flex: none; width: 58px; height: 58px; padding: 5px; box-sizing: border-box; border-radius: 12px; background: #fff; border: 1px solid var(--vp-bord); box-shadow: 0 6px 16px -10px rgba(16, 24, 40, 0.35); }
  .bandeau-icone { display: none; }
  .bandeau-mots { margin: 0; flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.2; }
  .bandeau-mots b { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; color: #0e0f11; }
  .bandeau-mots span { font-size: 13px; color: #7a7f88; }
  .bandeau-store {
    flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px 0 11px; border-radius: 10px;
    background: #0e0f11; color: #fff; text-decoration: none; line-height: 1; transition: opacity 0.2s ease;
  }
  .bandeau-store:hover { opacity: 0.88; }
  .bandeau-store span { display: grid; gap: 1px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
  .bandeau-store small { font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.72); }

  /* Le tableau de bord ne se remplit qu'une fois connecté : au visiteur, il n'afficherait que des tirets. */
  html.vitrine #suivi-apercu { display: none; }
  html.vitrine .hero-screen h1 { font-size: clamp(48px, 4.7vw, 70px); max-width: 15ch; }
  html.vitrine .hero-screen { min-height: calc(100svh - 164px); }

  /* ---------------- les cartes, sur blanc ---------------- */
  html.vitrine #view-home .verre { border-color: var(--vp-bord); }

  html.vitrine #view-home .grille-audience .public { overflow: hidden; padding-top: 24px; }
  html.vitrine #view-home .grille-audience .public .chip.num { z-index: 1; background: rgba(255, 255, 255, 0.9); }
  html.vitrine #view-home .public-photo {
    /* les photos sont livrées au format de la carte (1000×480), visage dans le tiers haut : presque rien n'est rogné */
    display: block; width: calc(100% + 2 * var(--pp, 24px)); max-width: none; height: 190px; object-fit: cover; object-position: center 40%;
    margin: calc(-1 * var(--pp, 24px)) calc(-1 * var(--pp, 24px)) 18px; transition: scale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.vitrine #view-home .public:hover .public-photo { scale: 1.04; }
  html.vitrine #view-home .public .fiche { border-top-color: var(--vp-bord); }
  html.vitrine #view-home .reseau-ordi { --rz-bord: var(--vp-bord); }
  html.vitrine #view-home .rz-fils path { stroke: #d6d9e0; }

  /* ---------------- le hero : le portable où MAXX remplit Workday, et le téléphone ---------------- */
  html.vitrine .hero-screen { position: relative; }
  html.vitrine .hero-screen::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none; right: 4%; top: 8%; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
    background: radial-gradient(closest-side, rgba(47, 111, 237, 0.09), rgba(47, 111, 237, 0.03) 55%, transparent 72%);
    animation: vp-halo 14s ease-in-out infinite alternate;
  }
  html.vitrine .scene .flot-a, html.vitrine .scene .flot-b, html.vitrine .scene .flot-c { display: none; }
  html.vitrine .scene .tel-cadre { left: auto; right: -12px; top: 236px; translate: none; scale: 0.62; transform-origin: top right; z-index: 3; }
  /* l'écran du téléphone : gris très clair, comme sur le téléphone — plus de glacier bleu */
  html.vitrine .scene .tel-ecran { background: linear-gradient(180deg, #f7f8fa, #eef0f3); }
  html.vitrine .scene .tel-ecran .flux-offres li { background: #fff; border-color: #e6e8ec; }

  /* Le portable : un MacBook vu de face. Un écran 16:10 dans un cadre noir fin, l'encoche
     de la caméra, la charnière, puis le socle en aluminium plus large que l'écran, avec le
     creux du pouce au centre — et son ombre au sol. */
  .poste { position: absolute; left: -16px; top: 92px; width: 584px; z-index: 1; }
  #view-home.ready .poste { animation: vp-entre 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
  .poste-ecran {
    position: relative; padding: 9px 9px 11px; border-radius: 16px 16px 2px 2px; background: #101114;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 50px 90px -40px rgba(16, 24, 40, 0.5), 0 20px 40px -24px rgba(16, 24, 40, 0.35);
  }
  .poste-encoche { position: absolute; z-index: 3; left: 50%; top: 0; width: 76px; height: 11px; translate: -50% 0; border-radius: 0 0 7px 7px; background: #101114; }
  .poste-encoche::after { content: ""; position: absolute; left: 50%; top: 3px; width: 5px; height: 5px; translate: -50% 0; border-radius: 50%; background: #1d2a40; box-shadow: inset 0 0 0 1px #0a0d14, 0 0 0 1px #262a33; }
  .poste-fenetre {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px 9px 1px 1px; background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d2330; text-align: left;
  }
  .poste-charniere { height: 5px; margin: 0 6px; background: linear-gradient(180deg, #0c0d10, #2a2d33 60%, #4a4e56); border-radius: 0 0 2px 2px; }
  .poste-socle {
    position: relative; height: 19px; margin: -1px -48px 0; border-radius: 3px 3px 14px 14px / 3px 3px 18px 18px;
    background: linear-gradient(180deg, #f6f7f9 0%, #e3e6ea 30%, #cdd1d7 62%, #b4b9c1 88%, #9aa0a9 100%);
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 2px 0 #7f848c, 0 22px 34px -18px rgba(16, 24, 40, 0.5);
  }
  .poste-socle::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 1px; background: rgba(255, 255, 255, 0.35); }
  .poste-creux { position: absolute; left: 50%; top: 0; width: 128px; height: 6px; translate: -50% 0; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #9ea3ab, #c3c7ce); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
  .poste-ombre { position: absolute; left: 0; right: 0; bottom: -26px; height: 40px; margin: 0 -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 24, 40, 0.28), rgba(16, 24, 40, 0)); filter: blur(6px); z-index: -1; }
  .pf-barre { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f4f6; border-bottom: 1px solid #e7e9ed; }
  .pf-barre i { width: 9px; height: 9px; border-radius: 50%; background: #d7dae0; }
  .pf-barre i:nth-child(1) { background: #ff5f57; } .pf-barre i:nth-child(2) { background: #febc2e; } .pf-barre i:nth-child(3) { background: #28c840; }
  .pf-url { margin-left: 12px; flex: 0 1 250px; height: 18px; line-height: 18px; padding: 0 10px; border-radius: 6px; background: #fff; font-size: 10px; color: #6b7280; white-space: nowrap; overflow: hidden; }
  .pf-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 84px 0 18px; }
  .pf-titre { display: grid; gap: 1px; }
  .pf-titre b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
  .pf-titre small { font-size: 11px; color: #6b7280; }
  .pf-etat { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; background: #eef3fe; color: var(--vp-bleu); font-size: 10.5px; font-weight: 650; }
  .pf-etat i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: vp-pouls 1.4s ease-in-out infinite; }
  .pf-etapes { list-style: none; display: flex; gap: 6px; margin: 12px 18px 0; padding: 0; }
  .pf-etapes li { flex: 1; padding-top: 7px; border-top: 3px solid #e5e7eb; font-size: 9.5px; font-weight: 600; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s, border-color 0.3s; }
  .pf-etapes li.fait { border-color: #1d2330; color: #1d2330; }
  .pf-etapes li.ici { border-color: var(--vp-bleu); color: var(--vp-bleu); }
  .pf-champs { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px 12px; margin: 14px 18px 0; max-width: 360px; }
  .pf-champ { display: grid; gap: 3px; }
  .pf-champ:nth-child(4), .pf-champ:nth-child(5) { grid-column: 1 / -1; }
  .pf-champ label { font-size: 10px; font-weight: 600; color: #4b5563; text-transform: none; letter-spacing: 0; margin: 0; }
  .pf-valeur { position: relative; height: 26px; padding: 0 9px; border: 1px solid #d9dce1; border-radius: 6px; display: flex; align-items: center; padding-right: 22px; font-size: 10.5px; color: #111827; white-space: nowrap; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
  .pf-champ.actif .pf-valeur { border-color: var(--vp-bleu); box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.16); }
  .pf-champ.actif .pf-valeur span::after { content: ""; display: inline-block; width: 1px; height: 12px; margin-left: 1px; vertical-align: -2px; background: #111827; animation: vp-clign 0.8s steps(1) infinite; }
  .pf-champ.ok .pf-valeur::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 4px; margin-top: -3px; border: solid #16a34a; border-width: 0 0 2px 2px; rotate: -45deg; }
  .pf-champ.fichier .pf-valeur span:not(:empty)::before { content: "PDF"; margin-right: 7px; padding: 2px 4px; border-radius: 3px; background: #fee2e2; color: #b91c1c; font-size: 8px; font-weight: 700; }
  .pf-envoyer {
    position: absolute; left: 18px; bottom: 16px; min-height: 0; height: 30px; padding: 0 18px; border: 0; border-radius: 7px;
    background: #1d2330; color: #fff; font: 600 11.5px system-ui, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: none; transition: transform 0.15s, background 0.3s;
  }
  .pf-envoyer.presse { transform: scale(0.94); }
  .pf-envoyer.fait { background: #16a34a; }
  .pf-curseur {
    position: absolute; left: 0; top: 0; width: 18px; height: 18px; z-index: 2; opacity: 0; pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 2l15 9.5-6.6 1.4L16 21l-3 1.3-3.6-8.1L4 19z' fill='%23111827' stroke='white' stroke-width='1.4' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  }
  .pf-curseur.la { opacity: 1; }
  .pf-curseur::after { content: "MAXX"; position: absolute; left: 15px; top: 15px; padding: 2px 6px; border-radius: 5px; background: var(--vp-bleu); color: #fff; font: 700 8.5px system-ui, sans-serif; letter-spacing: 0.08em; }

  html.vitrine .scene .flot { z-index: 4; background: rgba(255, 255, 255, 0.9); box-shadow: var(--vp-ombre); }
  .flot-d { left: -10px; top: 478px; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; opacity: 0; translate: 0 14px; scale: 0.96; transition: opacity 0.4s ease, translate 0.6s cubic-bezier(0.16, 1, 0.3, 1), scale 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .flot-d.montre { opacity: 1; translate: 0 0; scale: 1; }
  .flot-d > span { display: grid; gap: 2px; }
  .flot-d b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
  .flot-d small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
  .flot-pastille { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; }
  .flot-pastille svg { width: 17px; height: 17px; }
}

@keyframes vp-pouls { 50% { opacity: 0.35; } }
@keyframes vp-clign { 50% { opacity: 0; } }
@keyframes vp-flotte { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes vp-entre { from { opacity: 0; translate: 30px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes vp-halo { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }

/* ---------------- le téléphone du hero : l'application en démonstration ----------------
   Trois écrans dans le même cadre (300 × 610 avant réduction) : le fil du jour et le
   curseur MAXX qui choisit, les trois candidatures en parallèle, le résultat. */
.demo-ecran { position: relative; }
.demo-ecran .de-vue { display: none; flex: 1; min-height: 0; flex-direction: column; gap: 10px; }
.demo-ecran .de-vue.on { display: flex; animation: de-vue-entre 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes de-vue-entre { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.demo-ecran .flux-offres li { position: relative; transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.demo-ecran .flux-offres li.choisi { background: #fff; border-color: #0e0f11; box-shadow: 0 0 0 1px #0e0f11, 0 10px 22px -16px rgba(16, 24, 40, 0.5); }
.demo-ecran .flux-offres li.choisi time { opacity: 0; }
.de-coche { position: absolute; right: 10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #0e0f11; opacity: 0; scale: 0.4; transition: opacity 0.25s ease, scale 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.de-coche::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.demo-ecran .flux-offres li.choisi .de-coche { opacity: 1; scale: 1; }
.demo-ecran .tel-bouton { transition: transform 0.18s ease, background 0.3s ease; }
.demo-ecran .tel-bouton.pret { background: var(--vp-bleu, #2b7fe0); }
.demo-ecran .tel-bouton.presse { transform: scale(0.96); }
.de-curseur { position: absolute; left: 0; top: 0; z-index: 9; width: 26px; height: 26px; pointer-events: none; opacity: 0; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); }
.de-curseur.la { opacity: 1; }
.de-curseur svg { width: 26px; height: 26px; display: block; transition: scale 0.14s ease; }
.de-curseur.tape svg { scale: 0.82; }
.de-curseur b { position: absolute; left: 20px; top: 20px; padding: 3px 7px; border-radius: 6px; background: var(--vp-bleu, #2b7fe0); color: #fff; font: 700 10px system-ui, sans-serif; letter-spacing: 0.08em; white-space: nowrap; }
.de-curseur.tape::before { content: ""; position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--vp-bleu, #2b7fe0); animation: de-onde 0.5s ease-out both; }
@keyframes de-onde { from { opacity: 0.9; scale: 0.4; } to { opacity: 0; scale: 1.8; } }

/* écran 2 : MAXX postule aux trois */
.de-tete { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.de-tete .pouls { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: vp-pouls 1.6s ease-in-out infinite; }
.de-tete em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.de-cartes { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; }
.de-carte { position: relative; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto auto; column-gap: 9px; row-gap: 6px; padding: 10px 10px 9px; border-radius: 16px; background: #fff; border: 1px solid #e6e8ec; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); opacity: 0.55; transition: opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; overflow: hidden; }
.de-carte.en-cours { opacity: 1; border-color: #c9d3e3; box-shadow: 0 8px 20px -14px rgba(43, 127, 224, 0.5); }
.de-carte.ok { opacity: 1; border-color: #bfe3cb; }
.de-carte .lettre { position: relative; width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid #e6e8ec; display: grid; place-items: center; overflow: hidden; font-style: normal; grid-row: 1; }
.de-carte .lettre em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); }
.de-carte .lettre img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; opacity: 0; transition: opacity 0.3s ease; }
.de-carte .lettre.a-logo img { opacity: 1; }
.de-carte .lettre.a-logo em { opacity: 0; }
.de-qui { display: grid; min-width: 0; grid-row: 1; align-self: center; }
.de-qui b { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.de-qui small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.de-etat { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); min-height: 14px; }
.de-etat i { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1.5px solid #c9ced6; position: relative; }
.de-carte.en-cours .de-etat i { border-color: var(--vp-bleu, #2b7fe0); border-top-color: transparent; animation: de-tourne 0.9s linear infinite; }
.de-carte.ok .de-etat i { border-color: #16a34a; background: #16a34a; }
.de-carte.ok .de-etat i::after { content: ""; position: absolute; left: 3px; top: 1px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.de-carte.ok .de-etat { color: #15803d; font-weight: 600; }
@keyframes de-tourne { to { rotate: 360deg; } }
.de-form { grid-column: 1 / -1; display: grid; gap: 4px; height: 0; opacity: 0; overflow: hidden; transition: height 0.35s ease, opacity 0.3s ease; }
.de-carte.phase-form .de-form, .de-carte.phase-envoi .de-form { height: 40px; opacity: 1; }
.de-champ { position: relative; height: 10px; border-radius: 4px; background: #f1f3f6; border: 1px solid #e6e8ec; overflow: hidden; }
.de-champ em { position: absolute; left: 5px; top: 0; font: 500 7.5px/9px system-ui, sans-serif; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; font-style: normal; }
.de-champ.actif { border-color: var(--vp-bleu, #2b7fe0); background: #fff; }
.de-champ.actif::after { content: ""; position: absolute; top: 2px; bottom: 2px; width: 1px; background: var(--vp-bleu, #2b7fe0); left: calc(5px + var(--l, 0px)); animation: vp-clign 0.8s steps(1) infinite; }
.de-champ.ok { background: #fff; }
.de-champ.ok::before { content: ""; position: absolute; right: 4px; top: 2px; width: 3px; height: 5px; border: solid #16a34a; border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.de-barre { grid-column: 1 / -1; display: block; height: 3px; border-radius: 2px; background: #eceef2; overflow: hidden; }
.de-barre b { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--vp-bleu, #2b7fe0); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease; }
.de-carte.ok .de-barre b { background: #16a34a; }
.de-note { margin: auto 0 0; text-align: center; font-size: 10.5px; color: var(--muted); }
.de-pointe { position: absolute; left: 0; top: 0; z-index: 2; width: 16px; height: 16px; pointer-events: none; opacity: 0; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.de-pointe.la { opacity: 1; }
.de-pointe svg { width: 16px; height: 16px; display: block; }

/* écran 3 : fait */
.de-fini-tete { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.de-fini-tete i { width: 18px; height: 18px; border-radius: 50%; background: #16a34a; position: relative; animation: de-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.de-fini-tete i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
@keyframes de-pop { from { scale: 0.3; } to { scale: 1; } }
.de-grand { margin: 2px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.de-grand b { font-weight: 500; font-size: 40px; display: block; line-height: 1; }
.de-bilan { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.de-bilan li { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid #e6e8ec; animation: de-vue-entre 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.de-bilan li:nth-child(2) { animation-delay: 0.1s; }
.de-bilan li:nth-child(3) { animation-delay: 0.2s; }
.de-bilan .lettre { position: relative; width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid #e6e8ec; display: grid; place-items: center; overflow: hidden; font-style: normal; }
.de-bilan .lettre em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); }
.de-bilan .lettre img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; opacity: 0; transition: opacity 0.3s ease; }
.de-bilan .lettre.a-logo img { opacity: 1; }
.de-bilan .lettre.a-logo em { opacity: 0; }
.de-bilan span { display: grid; min-width: 0; }
.de-bilan span b { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.de-bilan span small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.de-bilan em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 10px; font-weight: 600; color: #15803d; white-space: nowrap; font-variant-numeric: tabular-nums; }
.de-bilan em i { width: 12px; height: 12px; border-radius: 50%; background: #16a34a; position: relative; }
.de-bilan em i::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 5px; border: solid #fff; border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.de-suite { margin: auto 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); }

/* ---------------- la vraie vie ---------------- */
.vie { max-width: 1240px; margin: 0 auto; padding: 120px 40px 40px; }
.vie-tete { text-align: center; max-width: 760px; margin: 0 auto; }
.vie-sur { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--vp-bleu); }
.vie-tete h2 { text-transform: none; margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }
.vie-tete h2 em { display: block; color: var(--muted); }
.vie-une { margin: 20px auto 0; max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--muted); }
.vie-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.vie-carte { margin: 0; }
.vie-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #f1f2f4; isolation: isolate; }
.vie-photo img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.vie.in .vie-photo img { scale: 1; }
.vie-carte:hover .vie-photo img { scale: 1.03; transition-duration: 0.8s; }
.vie-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(10, 12, 18, 0.28)); pointer-events: none; }
.vie-bulle {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.84); border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 40px -22px rgba(10, 12, 18, 0.55);
  opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.vie.in .vie-bulle { opacity: 1; translate: 0 0; animation: vp-flotte 6s ease-in-out 1.6s infinite alternate; }
.vie.in .vie-carte:nth-child(1) .vie-bulle { transition-delay: 0.5s; }
.vie.in .vie-carte:nth-child(2) .vie-bulle { transition-delay: 0.75s; animation-delay: 2.1s; }
.vie.in .vie-carte:nth-child(3) .vie-bulle { transition-delay: 1s; animation-delay: 2.6s; }
.vie-bulle > span { display: grid; gap: 2px; min-width: 0; }
.vie-bulle b { font-size: 14px; font-weight: 600; color: #0e0f11; }
.vie-bulle small { font-size: 12px; color: #5b616b; }
.vie-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #0e0f11; color: #fff; }
.vie-ic.bleu { background: var(--vp-bleu); }
.vie-ic svg { width: 17px; height: 17px; }
.vie-carte figcaption { margin-top: 16px; padding: 0 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.vie-carte figcaption b { color: var(--ink); font-weight: 600; }
.vie-grille .vie-carte:nth-child(2) { transition-delay: 0.12s; }
.vie-grille .vie-carte:nth-child(3) { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .vie { padding: 64px 0 24px; position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 140px); }
  .vie-tete { padding: 0 22px; }
  .vie-tete h2 { font-size: 34px; }
  .vie-une { font-size: 15px; }
  .vie-grille {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; margin-top: 32px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 22px 8px; scroll-padding: 0 22px; scrollbar-width: none;
  }
  .vie-grille::-webkit-scrollbar { display: none; }
  .vie-carte { scroll-snap-align: start; }
  .vie-photo { border-radius: 22px; }
  .vie-carte figcaption { font-size: 14px; }
}

/* ---------------- téléphone : la vitrine en blanc ----------------
   Plus de fond glacier ni de halos bleus : une page blanche, des surfaces qui se
   distinguent par un gris très clair et un trait fin. Le noir reste la seule couleur
   d'action ; le bleu ne sert qu'aux étapes qui avancent. */
@media (max-width: 900px) {
  /* les jetons (fond blanc, verre blanc, trait fin) sont dans jetons.css */
  html.vitrine body::before { background: #fff; }
  html.vitrine body::after { display: none; }
  html.vitrine .hero-screen::before, html.vitrine .hero-screen::after, html.vitrine .demo-frame::after { display: none; }
  html.vitrine .carte-produit:not(.encre):not(.photo)::before, html.vitrine .carte-produit:not(.encre):not(.photo)::after { display: none; }
  html.vitrine .carte-produit:not(.encre):not(.photo) { background: #f6f7f9; border: 1px solid var(--vp-bord); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.vitrine .carte-produit.encre { border: 0; }
  html.vitrine .carte-produit.photo { border: 1px solid var(--vp-bord); }

  /* sous la pilule du haut : l'app iPhone, façon bannière d'app — l'icône, deux mots, l'App Store */
  html.vitrine .bandeau-app { margin: calc(64px + env(safe-area-inset-top)) 16px 0; }
  html.vitrine .bandeau-app-inner { display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 10px; border-radius: 18px; background: #f6f7f9; border: 1px solid var(--vp-bord); }
  html.vitrine .bandeau-icone { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #0e0f11; display: grid; place-items: center; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
  html.vitrine .bandeau-icone img { width: 20px; height: 18px; object-fit: contain; }
  html.vitrine .bandeau-mots { flex: 1; min-width: 0; margin: 0; display: grid; gap: 1px; line-height: 1.2; }
  html.vitrine .bandeau-mots b { font-size: 14px; font-weight: 600; color: var(--ink); }
  html.vitrine .bandeau-mots span { font-size: 12px; color: var(--muted); }
  html.vitrine .bandeau-store { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: #0e0f11; color: #fff; text-decoration: none; }
  html.vitrine .bandeau-store svg { width: 15px; height: 15px; }
  html.vitrine .bandeau-store span { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
  html.vitrine .bandeau-store small { display: none; }
  html.vitrine .hero-screen { padding-top: 14px; }

  /* la barre du haut : une pilule blanche, nette */
  html.vitrine .home-top-inner { background: rgba(255, 255, 255, 0.92); border: 1px solid var(--vp-bord); box-shadow: 0 8px 24px -18px rgba(16, 24, 40, 0.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

  /* le hero : la pastille, le téléphone, les deux cartes qui flottent */
  html.vitrine .hero-tag-tel { background: #fff; border-color: var(--vp-bord); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
  html.vitrine .tel-mini .flot-mini.verre { background: #fff; border: 1px solid var(--vp-bord); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 22px 44px -22px rgba(16, 24, 40, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.vitrine .tel-mini .tel-ecran { background: linear-gradient(180deg, #f7f8fa, #eef0f3); }
  html.vitrine .tel-mini .tel-cadre { box-shadow: 0 40px 70px -34px rgba(16, 24, 40, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.4); }
  html.vitrine .tel-mini .flux-offres li { background: #fff; border: 1px solid #e6e8ec; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
  html.vitrine .tel-mini .flux-offres .lettre { border-color: #e6e8ec; }
  html.vitrine .tel-mini .filigrane { display: none; }
  /* la démonstration montre déjà le CV adapté : une seule carte flottante, le rythme, posée
     sur le coin du téléphone sans cacher l'écran */
  html.vitrine .tel-mini .flot-mini-a { display: none; }
  html.vitrine .tel-mini .flot-mini-b { left: -128px; bottom: -14px; top: auto; }
  @media (min-width: 480px) { html.vitrine .tel-mini .flot-mini-b { left: -150px; bottom: 8px; } }

  /* la nuit de MAXX : le compte, et la pile des logos déjà partis cette nuit */
  html.vitrine .nuit { background: #fff; border: 1px solid var(--vp-bord); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 24px 48px -30px rgba(16, 24, 40, 0.35); }
  html.vitrine .nuit::before { display: none; }
  html.vitrine .nuit .cand-une.nuit-offre { background: #f6f7f9; border-color: var(--vp-bord); box-shadow: none; }
  html.vitrine .nuit-pas li { background: #f6f7f9; border-color: var(--vp-bord); }
  html.vitrine .nuit-pas li.encours { background: #fff; border-color: #0e0f11; }
  .nuit-bilan { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .nuit-bilan .nuit-compte { flex: none; }
  .nuit-bilan .nuit-compte span { white-space: nowrap; font-size: 11.5px; }
  .nuit-faites li:nth-child(n+4) { opacity: 0.45; }
  .nuit-faites { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
  .nuit-faites li { position: relative; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--vp-bord); display: grid; place-items: center; overflow: visible; animation: de-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .nuit-faites li em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); }
  .nuit-faites li img { position: absolute; inset: 6px; width: 22px; height: 22px; object-fit: contain; opacity: 0; transition: opacity 0.3s ease; }
  .nuit-faites li.a-logo img { opacity: 1; }
  .nuit-faites li.a-logo em { opacity: 0; }
  .nuit-faites li::after { content: ""; position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7.5'/></svg>"); background-size: 8px; background-position: center; background-repeat: no-repeat; }
  .nuit-faites li:nth-child(n+4) { opacity: 0.55; }

  /* trois gestes, déclaration, ruban */
  html.vitrine .trois-gestes li { background: #fff; border-color: var(--vp-bord); }
  html.vitrine .ruban-piste span { background: #fff; border-color: var(--vp-bord); }

  /* dans les cartes : du blanc sur gris clair, un trait fin, pas de verre */
  html.vitrine .nuit, html.vitrine .flottant .flux-offres li, html.vitrine .diapo, html.vitrine .reseau-gens li, html.vitrine .audience-photo .verre,
  html.vitrine .carte-produit .num, html.vitrine .carte-produit .tag, html.vitrine .page-cv, html.vitrine .message-vitrine, html.vitrine .cand-une .lettre,
  html.vitrine .flottant .flux-offres .lettre, html.vitrine .objections details, html.vitrine .avis, html.vitrine .rythme-vitrine b {
    background: #fff; border-color: #e6e8ec; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html.vitrine .rythme-vitrine b.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  html.vitrine .carte-produit.encre .num, html.vitrine .carte-produit.encre .tag { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); }
  html.vitrine .carte-produit.encre .page-cv { background: rgba(255, 255, 255, 0.92); }
  html.vitrine .objections details { border: 1px solid var(--vp-bord); }
  html.vitrine .vie { background: none; }
  html.vitrine .vie-bulle { background: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .vie-photo img, .vie-bulle { transition: none; scale: 1; translate: 0 0; opacity: 1; }
  .vie.in .vie-bulle, #view-home.ready .poste, html.vitrine .hero-screen::before { animation: none; }
}
