/* Visuels qui parlent sans qu'on ait à lire : journée avant / après, vignettes animées,
   deux chemins (seul / avec nous), frise des étapes. Animés par assets/js/visuels.js. */

/* ——— La journée, avant / après ——— */
.journee{max-width:68rem;margin-top:1rem}
.jr-ligne{display:grid;grid-template-columns:5.5rem 1fr;align-items:center;gap:1.25rem;margin-bottom:1rem}
.jr-nom{font-family:var(--fd);font-size:1.45rem}
.jr-barre{display:flex;gap:4px;height:4rem}
.jr-barre i{position:relative;display:flex;align-items:flex-end;min-width:4px;border-radius:9px;transform-origin:left;font-style:normal;overflow:hidden}
.jr-barre span{padding:.45rem .65rem;font-size:.8rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jr-adm{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.08);color:var(--brume)}
.jr-met{background:var(--cta);color:#0a0a0b;box-shadow:0 0 30px -10px var(--feu)}
.jr-heures{display:flex;justify-content:space-between;margin:.4rem 0 0 6.75rem;font-size:.8rem;color:var(--brume)}
.jr-legende{display:flex;flex-wrap:wrap;gap:.6rem 1.75rem;margin:1.5rem 0 0 6.75rem;font-size:.88rem;color:var(--brume)}
.jr-legende i{display:inline-block;width:.9rem;height:.9rem;border-radius:4px;margin-right:.5rem;vertical-align:-.12rem}
.jr-note{margin-left:auto;font-size:.78rem;opacity:.75}
.atouts{display:flex;flex-wrap:wrap;gap:.9rem 1rem;margin-top:3rem}
.atouts li{display:flex;align-items:center;gap:.7rem;padding:.85rem 1.25rem;border-radius:99px;border:1px solid var(--regle);color:var(--brume);font-size:.95rem}
.atouts li::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:var(--feu);box-shadow:0 0 10px var(--feu)}
.atouts b{color:var(--craie);font-weight:600}
@media(max-width:699px){.jr-ligne{grid-template-columns:1fr;gap:.4rem}.jr-barre{height:2.8rem}.jr-barre span{display:none}.jr-heures,.jr-legende{margin-left:0}}

/* ——— Les vignettes animées des cartes ——— */
.card--vignette{padding-top:0!important;border-top:0!important}
.card--vignette::before{display:none}
.vignette{position:relative;aspect-ratio:16/9;margin-bottom:1.4rem;border-radius:16px;overflow:hidden;border:1px solid var(--regle);
  background:radial-gradient(70% 90% at 50% 40%,color-mix(in srgb,var(--feu) 14%,transparent),transparent 70%),var(--nuit-3)}
.vignette *{position:absolute;box-sizing:border-box;animation-play-state:paused}
.vignette.vue *{animation-play-state:running}
.v-ok{width:13%;aspect-ratio:1;border-radius:50%;background:var(--feu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/62% no-repeat;box-shadow:0 0 18px var(--feu)}
/* facture : le document file dans le dossier */
[data-v="facture"] .v-doc{left:16%;top:22%;width:22%;height:56%;border-radius:5px;background:#f4f3ef;padding:9% 3%;animation:v-facture 3.6s infinite cubic-bezier(.6,0,.3,1)}
.vignette .v-doc u,.vignette .v-feuille u,.vignette .v-trouve u{position:static;display:block;height:7%;min-height:3px;margin:8% 0;border-radius:3px;background:#cfccc2;text-decoration:none}
[data-v="facture"] .v-dossier{left:60%;top:34%;width:26%;height:42%;border-radius:4px 8px 8px 8px;background:linear-gradient(160deg,#e8c878,#9a6a22)}
[data-v="facture"] .v-dossier b{left:0;top:-14%;width:42%;height:18%;border-radius:4px 4px 0 0;background:#d4a24c}
[data-v="facture"] .v-ok{left:79%;top:18%;animation:v-pop 3.6s infinite}
@keyframes v-facture{0%,12%{transform:none;opacity:1}55%{transform:translate(185%,10%) scale(.55) rotate(8deg);opacity:1}62%,100%{transform:translate(190%,14%) scale(.4);opacity:0}}
@keyframes v-pop{0%,58%{transform:scale(0)}68%{transform:scale(1.2)}75%,92%{transform:scale(1)}100%{transform:scale(0)}}
/* devis : la feuille se remplit, puis « Prêt » */
[data-v="devis"] .v-feuille{left:33%;top:12%;width:34%;height:76%;border-radius:6px;background:#f4f3ef;padding:10% 9%}
[data-v="devis"] .v-feuille u{width:0;animation:v-ligne 4s infinite}
[data-v="devis"] .v-feuille u:nth-child(2){animation-delay:.25s}[data-v="devis"] .v-feuille u:nth-child(3){animation-delay:.5s}[data-v="devis"] .v-feuille u:nth-child(4){animation-delay:.75s}
[data-v="devis"] em{right:-22%;bottom:8%;font-style:normal;font-weight:700;font-size:clamp(.7rem,1.2vw,.9rem);padding:.25em .7em;border:2px solid var(--feu);color:var(--feu);border-radius:6px;transform:rotate(-12deg) scale(0);animation:v-tampon 4s infinite}
@keyframes v-ligne{0%,8%{width:0}30%,90%{width:88%}100%{width:0}}
@keyframes v-tampon{0%,55%{transform:rotate(-12deg) scale(0)}65%{transform:rotate(-12deg) scale(1.25)}72%,92%{transform:rotate(-12deg) scale(1)}100%{transform:rotate(-12deg) scale(0)}}
/* relance : la cloche sonne, le message part */
[data-v="relance"] .v-cloche{left:12%;top:30%;width:18%;aspect-ratio:1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2b866' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0112 0v5l2 2H4zM10 20a2 2 0 004 0'/%3E%3C/svg%3E") center/contain no-repeat;transform-origin:50% 10%;animation:v-sonne 3.6s infinite}
[data-v="relance"] .v-enveloppe{left:34%;top:36%;width:20%;height:28%;border-radius:4px;background:#f4f3ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28' fill='none' stroke='%239a6a22' stroke-width='2'%3E%3Cpath d='M1 1l19 14L39 1'/%3E%3C/svg%3E") center/100% 100% no-repeat;animation:v-envol 3.6s infinite cubic-bezier(.5,0,.3,1)}
[data-v="relance"] .v-ok{left:79%;top:34%;animation:v-pop 3.6s infinite}
@keyframes v-sonne{0%,4%,36%,100%{transform:rotate(0)}8%{transform:rotate(16deg)}14%{transform:rotate(-14deg)}20%{transform:rotate(10deg)}26%{transform:rotate(-6deg)}}
@keyframes v-envol{0%,28%{transform:none;opacity:1}58%{transform:translate(180%,-12%) rotate(-6deg);opacity:1}64%,100%{transform:translate(200%,-12%);opacity:0}}
/* mails : la pile se trie en deux bacs */
[data-v="mails"] .v-pile{left:14%;top:20%;width:22%;height:60%}
[data-v="mails"] .v-pile i{left:0;width:100%;height:20%;border-radius:4px;background:#f4f3ef;animation:v-tri 4s infinite cubic-bezier(.6,0,.3,1)}
[data-v="mails"] .v-pile i:nth-child(1){top:0}[data-v="mails"] .v-pile i:nth-child(2){top:26%;animation-name:v-tri2;animation-delay:.35s}
[data-v="mails"] .v-pile i:nth-child(3){top:52%;animation-delay:.7s}[data-v="mails"] .v-pile i:nth-child(4){top:78%;animation-name:v-tri2;animation-delay:1.05s}
[data-v="mails"] .v-bac{left:62%;width:26%;height:30%;border-radius:6px;border:2px solid var(--feu)}
[data-v="mails"] .v-bac--1{top:14%}[data-v="mails"] .v-bac--2{top:56%;border-color:rgba(255,255,255,.3)}
@keyframes v-tri{0%,10%{transform:none;opacity:1}45%,80%{transform:translate(210%,40%) scale(.7);opacity:1}90%,100%{transform:translate(210%,40%) scale(.7);opacity:0}}
@keyframes v-tri2{0%,10%{transform:none;opacity:1}45%,80%{transform:translate(210%,160%) scale(.7);opacity:1}90%,100%{transform:translate(210%,160%) scale(.7);opacity:0}}
/* recherche : la question s'écrit, le document apparaît */
[data-v="recherche"] .v-barre{left:12%;top:16%;width:76%;height:20%;border-radius:99px;background:#f4f3ef;padding:0 6%;display:flex;align-items:center}
[data-v="recherche"] .v-barre span{position:static;display:block;overflow:hidden;white-space:nowrap;font-size:clamp(.62rem,1.1vw,.85rem);color:#2a2418;width:0;animation:v-tape 4s infinite steps(18)}
[data-v="recherche"] .v-trouve{left:24%;top:48%;width:52%;height:38%;border-radius:8px;background:#f4f3ef;padding:4% 6%;border:2px solid var(--feu);box-shadow:0 0 24px -6px var(--feu);opacity:0;animation:v-apparait 4s infinite}
@keyframes v-tape{0%,5%{width:0}45%,92%{width:100%}100%{width:0}}
@keyframes v-apparait{0%,48%{opacity:0;transform:translateY(12%)}60%,92%{opacity:1;transform:none}100%{opacity:0}}
/* assistant : la question, puis la réponse */
.vignette .v-bulle{max-width:62%;padding:.45em .8em;border-radius:12px;font-size:clamp(.62rem,1.1vw,.85rem);line-height:1.3;opacity:0}
[data-v="assistant"] .v-bulle--q{right:10%;top:18%;background:#f4f3ef;color:#2a2418;border-bottom-right-radius:3px;animation:v-q 4.4s infinite}
[data-v="assistant"] .v-bulle--r{left:10%;top:52%;background:color-mix(in srgb,var(--feu) 22%,transparent);border:1px solid var(--feu);color:var(--craie);border-bottom-left-radius:3px;animation:v-r 4.4s infinite}
@keyframes v-q{0%,6%{opacity:0;transform:translateY(20%)}16%,90%{opacity:1;transform:none}100%{opacity:0}}
@keyframes v-r{0%,38%{opacity:0;transform:translateY(20%)}50%,90%{opacity:1;transform:none}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.vignette *{animation:none!important;opacity:1!important}}

/* ——— Deux chemins : seul / avec nous ——— */
.chemins-intro{color:var(--brume);max-width:46rem;margin-bottom:3rem}
.chemins{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,4rem)}
.chemin{position:relative;height:640px;border-radius:20px;border:1px solid var(--regle);padding:1.5rem 1.75rem;overflow:hidden}
.chemin--nous{border-color:color-mix(in srgb,var(--feu) 45%,transparent);background:radial-gradient(80% 60% at 30% 40%,color-mix(in srgb,var(--feu) 9%,transparent),transparent 70%)}
.ch-titre{font-family:var(--fd);font-size:1.6rem}
.chemin--nous .ch-titre{color:var(--cordeau-clair)}
.chemin svg{position:absolute;left:0;top:4.75rem;width:28%;height:520px;overflow:visible}
.ch-trace{fill:none;stroke-width:2.5;stroke-dasharray:1;stroke-linecap:round;vector-effect:non-scaling-stroke}
.chemin--seul .ch-trace{stroke:rgba(255,255,255,.35)}
.chemin--nous .ch-trace{stroke:var(--feu);filter:drop-shadow(0 0 6px var(--feu))}
.chemin ol{list-style:none}
.ch-point{position:absolute;left:calc(14% - 1rem);top:calc(4.75rem + var(--y));display:flex;align-items:center;gap:.9rem;padding-right:1.5rem;font-size:1rem;line-height:1.3;transform:translateY(-50%)}
.ch-point i{flex:none;width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:700;font-size:.95rem}
.ch-ko{background:rgba(229,72,77,.18);color:#ff8a8e;border:1px solid rgba(229,72,77,.6)}
.chemin--seul .ch-point{color:var(--brume)}
.ch-ok{background:var(--feu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/60% no-repeat;box-shadow:0 0 16px var(--feu)}
.ch-fin{position:absolute;left:1.75rem;bottom:1.5rem;padding:.6rem 1.1rem;border-radius:99px;font-size:.92rem;font-weight:600}
.ch-fin--seul{background:rgba(255,255,255,.07);color:var(--brume);text-decoration:line-through;text-decoration-color:rgba(229,72,77,.7)}
.ch-fin--nous{background:var(--cta);color:#0a0a0b}
@media(max-width:799px){.chemins{grid-template-columns:1fr}.chemin{height:600px}}

/* ——— Frise des étapes ——— */
.frise{--trace:1;position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;list-style:none;padding-top:.5rem}
.frise::before,.frise::after{content:"";position:absolute;left:1.7rem;right:12%;top:2.2rem;height:2px;border-radius:2px}
.frise::before{background:var(--regle)}
.frise::after{background:var(--cta);transform-origin:left;transform:scaleX(var(--trace));box-shadow:0 0 12px var(--feu)}
.frise li{position:relative;z-index:1}
.fr-num{display:flex;align-items:center;justify-content:center;width:3.4rem;height:3.4rem;margin-bottom:1.3rem;border-radius:50%;font-family:var(--fd);font-weight:400;font-size:1.35rem;
  background:var(--nuit);border:1.5px solid var(--cordeau-clair);color:var(--cordeau-clair);box-shadow:0 0 26px -8px var(--feu)}
.frise h3{font-family:var(--fd);font-weight:400;font-size:1.55rem;margin-bottom:.5rem}
.frise p{color:var(--brume);font-size:.96rem}
@media(max-width:799px){.frise{grid-template-columns:1fr;gap:2.25rem;padding-left:4.5rem}.frise::before,.frise::after{left:1.7rem;right:auto;top:0;bottom:0;width:2px;height:auto;transform:scaleY(var(--trace));transform-origin:top}.fr-num{position:absolute;left:-4.5rem;top:-.4rem}}

/* ——— Frise générée par l'Orbe ——— */
.frise.en-attente li h3,.frise.en-attente li p{opacity:0;transform:translateY(-10px);clip-path:inset(0 0 100% 0);transition:opacity .6s,transform .7s cubic-bezier(.2,.7,.2,1),clip-path .8s cubic-bezier(.2,.7,.2,1)}
.frise.en-attente li p{transition-delay:.15s}
.frise.en-attente .fr-num{opacity:.35;border-color:var(--regle);color:var(--brume);box-shadow:none;transition:all .5s}
.frise.en-attente li.genere h3,.frise.en-attente li.genere p{opacity:1;transform:none;clip-path:inset(0 0 0 0)}
.frise.en-attente li.genere .fr-num{opacity:1;border-color:var(--cordeau-clair);color:var(--cordeau-clair);box-shadow:0 0 34px -4px var(--feu);animation:genere .8s ease-out}
@keyframes genere{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--feu) 80%,transparent)}100%{box-shadow:0 0 0 1.4rem transparent,0 0 34px -4px var(--feu)}}
.orbe.au-travail .orbe-corps img{animation:orbe-travail .9s ease-in-out infinite}
@keyframes orbe-travail{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}.orbe.au-travail{z-index:6}

.cordeau path{transition:opacity .6s}
.page:has(.orbe.au-travail) .cordeau path{opacity:.15}

/* Page retenue par une scène (téléphone) : la barre de défilement garde sa place, rien ne bouge */
html.page-tenue{scrollbar-gutter:stable}
