/* Présentations animées de la page d'accueil (ui_builder_accueil, static/js/accueil/presentations.js).
   Scène de 1 280 x 720 mise à l'échelle de son cadre ; chaque règle est préfixée par .pres (rien ne déborde sur la page).
   Fichier produit à partir de l'artefact « Présentations OptiBâti360 » : modifier les scènes ici et dans templates/presentations.html. */

/* Lecteur */
.pres{margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.pres-cadre{position:relative;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#0F172A;box-shadow:0 18px 44px rgba(15,23,42,.16)}
.pres-cadre:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border-radius:0}
.pres-racine{position:absolute;left:0;top:0;width:1280px;height:720px;transform-origin:0 0;font-family:'DM Sans',system-ui,sans-serif;color:#0F172A;line-height:1.35;text-align:left}
.pres-racine *,.pres-racine *::before,.pres-racine *::after{box-sizing:border-box}
.pres-commandes{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pres-bouton{font:inherit;font-size:14px;font-weight:600;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid #CBD5E1;background:#FFFFFF;color:#0F172A;cursor:pointer}
.pres-bouton[data-action="son"][aria-pressed="true"]{background:#047857;border-color:#047857;color:#FFFFFF}
.pres-bouton:focus-visible,.pres-grand:focus-visible{outline:3px solid #93C5FD;outline-offset:2px}
.pres-progression{flex:1 1 80px;height:5px;border-radius:999px;background:#E2E8F0;overflow:hidden;min-width:60px}
.pres-progression span{display:block;height:100%;width:0;background:#1D4ED8}
.pres-legende{margin:0;min-height:3.2em;font-size:15px;line-height:1.5;color:#334155}
.pres-grand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-height:52px;padding:0 22px;border:0;border-radius:999px;background:#1D4ED8;color:#FFFFFF;font:inherit;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 10px 30px rgba(15,23,42,.35);z-index:5}
.pres-grand[hidden]{display:none}
.pres-resume{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pres-progression{cursor:pointer;position:relative}
.pres-progression:focus-visible{outline:3px solid #93C5FD;outline-offset:3px}
.pres-duree{font-size:13px;color:#64748B;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Chapitres : une étape par bouton, l'étape en cours en bleu */
.pres-chapitres{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.pres-chapitre{font:inherit;font-size:13px;font-weight:600;min-height:32px;padding:0 10px;border-radius:999px;border:1px solid #E2E8F0;background:#F8FAFC;color:#334155;cursor:pointer}
.pres-chapitre:hover{border-color:#93C5FD}
.pres-chapitre[aria-current]{background:#1D4ED8;border-color:#1D4ED8;color:#FFFFFF}
.pres-chapitre:focus-visible{outline:3px solid #93C5FD;outline-offset:2px}
/* Déroulé écrit (lecteurs d'écran, moteurs de recherche, lecture sans le son) */
.pres-deroule{font-size:14px;color:#334155}
.pres-deroule summary{cursor:pointer;font-weight:600;color:#1D4ED8;width:max-content;max-width:100%}
.pres-deroule ol{margin:8px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:6px;line-height:1.55}
/* Écran de fin : la présentation ne tourne plus en boucle */
.pres-fin{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;background:rgba(15,23,42,.95);text-align:center}
.pres-fin[hidden]{display:none}
.pres-fin-titre{font-family:Outfit,sans-serif;font-size:clamp(17px,2.4vw,24px);font-weight:700;color:#FFFFFF}
.pres .pres-fin-bouton{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid #CBD5E1;background:#FFFFFF;color:#0F172A;font-size:15px;font-weight:700;text-decoration:none}
.pres .pres-fin-principal{background:#1D4ED8;border-color:#1D4ED8;color:#FFFFFF}
.pres .pres-fin-bouton:hover{color:#0F172A;border-color:#94A3B8}
.pres .pres-fin-principal:hover{color:#FFFFFF;background:#1E40AF}
.pres-fin-revoir{font:inherit;font-size:14px;font-weight:600;min-height:40px;padding:0 14px;border:0;background:none;color:#BFDBFE;text-decoration:underline;cursor:pointer}
.pres .pres-fin-bouton:focus-visible,.pres-fin-revoir:focus-visible{outline:3px solid #93C5FD;outline-offset:2px}
/* Petit écran : cadre plus haut, la caméra suit l'écran montré (presentations.js, cadrer) */
.pres-etroit .pres-cadre{aspect-ratio:4/5}
.pres-etroit .pres-cadre:fullscreen{aspect-ratio:auto}
.pres-etroit .pres-racine{transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.pres-etroit .pres-fin{gap:10px}
.pres-etroit .puce{display:none}                  /* l'étiquette du haut sort du cadre : la légende dit la même chose */
/* Fenêtre de la galerie et du film */
.pres-dialogue{width:min(1100px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0;border:0;border-radius:16px;background:#FFFFFF;color:#0F172A;box-shadow:0 30px 80px rgba(15,23,42,.45)}
.pres-dialogue::backdrop{background:rgba(15,23,42,.7)}
.pres-dialogue-haut{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #E2E8F0}
.pres-dialogue-titre{margin:0;font-family:Outfit,sans-serif;font-size:20px;font-weight:700}
.pres-dialogue-fermer{font:inherit;font-size:15px;font-weight:600;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid #CBD5E1;background:#FFFFFF;color:#0F172A;cursor:pointer}
.pres-dialogue-fermer:focus-visible{outline:3px solid #93C5FD;outline-offset:2px}
.pres-dialogue-corps{padding:16px;overflow:auto}

/* Scènes (couleurs fixes, comme une vidéo) */
.pres .scene{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s}
.pres .scene.active{opacity:1;visibility:visible;transition:opacity .5s ease}
.pres .fond-clair{background:#EEF2F8}
.pres .fond-nuit{background:#0F172A}
.pres .apparait{opacity:0;transform:translateY(16px);transition:opacity .45s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.pres .apparait.vu{opacity:1;transform:none}
.pres .fini{opacity:0!important;visibility:hidden!important}
.pres .tape.vu{animation:pres-appui .35s ease}
@keyframes pres-appui{50%{transform:scale(.88)}}
.pres .puce{position:absolute;left:60px;top:44px;display:flex;align-items:center;gap:10px;padding:10px 20px;border-radius:999px;background:#FFFFFF;font-size:20px;font-weight:600;color:#1E3A8A;box-shadow:0 4px 14px rgba(15,23,42,.08)}
.pres .etape{position:absolute;left:820px;top:190px;width:400px;display:flex;flex-direction:column;gap:14px}
.pres .etape-num{font-family:Outfit,sans-serif;font-size:96px;font-weight:700;line-height:.9;color:#1D4ED8}
.pres .etape-titre{font-family:Outfit,sans-serif;font-size:54px;font-weight:700;line-height:1.05}
.pres .etape-texte{font-size:25px;line-height:1.45;color:#334155}
.pres .toast{position:absolute;left:380px;top:48px;display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:12px;background:#065F46;color:#FFFFFF;font-size:18px;font-weight:600;box-shadow:0 10px 26px rgba(6,95,70,.3);z-index:4}
.pres .toast.bleu-toast{background:#1E3A8A;box-shadow:0 10px 26px rgba(30,58,138,.3)}

/* Téléphones */
.pres .telephone{position:absolute;left:380px;top:36px;width:330px;height:648px;border:12px solid #0F172A;border-radius:48px;background:#F8FAFC;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 60px rgba(15,23,42,.25)}
.pres .ecran-tel{position:absolute;inset:0;display:flex;flex-direction:column;background:#FAFAF9}
.pres .tel-entete{min-height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#FFFFFF;border-bottom:1px solid #E2E8F0;font-family:Outfit,sans-serif;font-size:20px;font-weight:600}
.pres .tel-info{font-family:'DM Sans',sans-serif;font-size:15px;font-weight:500;color:#64748B}
.pres .tel-bleu .tel-entete{background:#1D4ED8;color:#FFFFFF;border-bottom:0}
.pres .tel-corps{position:relative;flex-grow:1;min-height:0;padding:18px 16px;display:flex;flex-direction:column;gap:12px}
.pres .tel-corps.serre{padding:12px;gap:8px}
.pres .carte-tel{background:#FFFFFF;border:1px solid #E2E8F0;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:6px;font-size:15px;color:#334155}
.pres .carte-tel b{font-size:17px;color:#0F172A}
.pres .mini{font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#64748B}
.pres .notif-tel{position:absolute;left:10px;right:10px;top:10px;display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 12px 30px rgba(15,23,42,.3);transform:translateY(-140%);transition:transform .6s cubic-bezier(.2,.8,.2,1);z-index:3}
.pres .notif-tel.vu{transform:none}
.pres .notif-tel.fini{opacity:1!important;visibility:visible!important;transform:translateY(-140%)}
.pres .notif-tel b{display:block;font-size:15px;color:#0F172A}
.pres .notif-tel span{font-size:13px;color:#475569}
.pres .viseur{position:relative;flex-grow:1;background:#1F2937;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pres .coin{position:absolute;width:34px;height:34px;border:0 solid #60A5FA;opacity:0;transition:opacity .4s ease}
.pres .coin.vu{opacity:1}
.pres .c1{left:24px;top:28px;border-width:4px 0 0 4px}
.pres .c2{right:24px;top:28px;border-width:4px 4px 0 0}
.pres .c3{left:24px;bottom:28px;border-width:0 0 4px 4px}
.pres .c4{right:24px;bottom:28px;border-width:0 4px 4px 0}
.pres .flash{position:absolute;inset:0;background:#FFFFFF;opacity:0;pointer-events:none}
.pres .flash.vu{animation:pres-flash .7s ease-out forwards}
@keyframes pres-flash{0%{opacity:0}15%{opacity:.95}100%{opacity:0}}
.pres .tel-bas{height:150px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#0F172A}
.pres .vignette{width:58px;height:74px;border-radius:8px;background:#FFFFFF;display:flex;align-items:flex-end;justify-content:center;padding-bottom:5px;font-size:11px;font-weight:700;color:#1D4ED8;opacity:0;transform:scale(.6);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
.pres .vignette.vu{opacity:1;transform:none}
.pres .declencheur{width:78px;height:78px;border-radius:999px;background:#FFFFFF;box-shadow:0 0 0 6px rgba(255,255,255,.35)}
.pres .declencheur.vu{animation:pres-appui .35s ease}
.pres .terminer{height:44px;padding:0 14px;border-radius:12px;background:#1D4ED8;color:#FFFFFF;font-size:15px;font-weight:600;display:flex;align-items:center}
.pres .carte-envoi{display:flex;gap:14px;align-items:center;padding:14px;border:1px solid #E2E8F0;border-radius:14px;background:#FFFFFF}
.pres .carte-envoi .vignette{opacity:1;transform:none;box-shadow:0 2px 8px rgba(15,23,42,.15)}
.pres .bouton-scene{min-height:54px;border-radius:14px;background:#1D4ED8;color:#FFFFFF;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .3s ease}
.pres .bouton-scene.petit{min-height:46px;font-size:16px}
.pres .bouton-scene.vertb{background:#047857}
.pres .bouton-scene.vu{animation:pres-appui .35s ease}
.pres .bouton-scene.bascule.vu{background:#047857}
.pres .jauge{height:12px;border-radius:999px;background:#E2E8F0;overflow:hidden}
.pres .jauge span{display:block;height:100%;width:0;background:#1D4ED8}
.pres .jauge span.vu{width:100%;transition:width 1.8s linear}
.pres .reussi{display:flex;gap:12px;align-items:center;font-size:18px;font-weight:700;color:#065F46}
.pres .rond-vert{width:40px;height:40px;border-radius:999px;background:#DCFCE7;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pres .pad{height:120px;border:2px dashed #94A3B8;border-radius:10px;background:#FFFFFF;flex-shrink:0}
.pres .pad svg{width:100%;height:100%;display:block}
.pres .trace{fill:none;stroke:#0F172A;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1000;stroke-dashoffset:1000}
.pres .trace.vu{animation:pres-tracer 1.6s ease-in-out forwards}
@keyframes pres-tracer{to{stroke-dashoffset:0}}
.pres .coche{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.35;color:#334155}
.pres .case{width:22px;height:22px;border:2px solid #94A3B8;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .2s,border-color .2s}
.pres .case svg{opacity:0;transition:opacity .2s}
.pres .case.vu{background:#1D4ED8;border-color:#1D4ED8}
.pres .case.vu svg{opacity:1}
.pres .apercu-pdf{height:96px;border-radius:10px;background:#F8FAFC;border:1px solid #E2E8F0;padding:12px;display:flex;flex-direction:column;gap:8px;flex-shrink:0}
.pres .photo-maison{height:150px;border-radius:12px;overflow:hidden;background:#BFDBFE;flex-shrink:0}
.pres .photo-maison svg{width:100%;height:100%;display:block}
.pres .panneaux{position:relative;flex-grow:1}
.pres .panneaux>div{position:absolute;inset:0;display:flex;flex-direction:column;gap:10px}

/* Page de signature en ligne (commande ou devis) */
.pres .sig-haut{flex-shrink:0;padding:14px 16px;background:#FFFFFF;border-bottom:1px solid #E2E8F0;display:flex;flex-direction:column;gap:1px}
.pres .sig-haut small{font-size:12px;color:#64748B}
.pres .sig-haut b{font-family:Outfit,sans-serif;font-size:18px;color:#0F172A}
.pres .carte-sig{background:#FFFFFF;border:1px solid #E2E8F0;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:#334155}
.pres .carte-sig>b{font-size:15px;color:#0F172A}
.pres .etiquette{font-size:12px;font-weight:600;color:#64748B}
.pres .saisie{height:36px;border:1px solid #CBD5E1;border-radius:8px;background:#FFFFFF;display:flex;align-items:center;padding:0 10px;font-size:14px;color:#0F172A;overflow:hidden;white-space:nowrap}
.pres .deux-saisies{display:grid;grid-template-columns:1.5fr 1fr;gap:8px}
.pres .deux-saisies>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.pres .frappe{display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:bottom;max-width:0}
.pres .frappe.vu{max-width:16ch;transition:max-width 1s steps(16,end)}
.pres .code{height:42px;border:2px solid #1D4ED8;border-radius:8px;background:#FFFFFF;display:flex;align-items:center;gap:6px;padding:0 12px;font-family:Outfit,sans-serif;font-size:22px;font-weight:700;letter-spacing:2px;color:#0F172A}
.pres .code span{opacity:0}
.pres .code span.vu{opacity:1}
.pres .bouton-clair{height:40px;border:1px solid #CBD5E1;border-radius:10px;background:#F8FAFC;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#1E3A8A;flex-shrink:0}
.pres .message-ok{font-size:13px;font-weight:600;color:#065F46}
.pres .lien-pdf{font-size:12px;color:#1D4ED8;text-decoration:underline}

/* App Terrain (sous-traitants) */
.pres .terrain-haut{flex-shrink:0;background:#0F172A;color:#F8FAFC;padding:16px 18px 18px;display:flex;flex-direction:column;gap:12px;border-radius:0 0 22px 22px}
.pres .terrain-marque{display:flex;align-items:center;gap:8px;font-family:Outfit,sans-serif;font-size:15px;font-weight:800}
.pres .terrain-marque b{color:#93C5FD}
.pres .terrain-marque i{font-style:normal;color:#FDBA74}
.pres .terrain-salut{display:flex;flex-direction:column}
.pres .terrain-salut span{font-size:14px;color:#CBD5E1}
.pres .terrain-salut b{font-family:Outfit,sans-serif;font-size:24px;font-weight:700;line-height:1.15}
.pres .terrain-compteurs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pres .compteur-t{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:14px;background:#1E293B;font-size:12px;color:#CBD5E1;line-height:1.25}
.pres .compteur-t strong{font-family:Outfit,sans-serif;font-size:24px;color:#FFFFFF;line-height:1}
.pres .compteur-t.chaud{background:#EA580C;color:#FFEDD5}

/* Portail client */
.pres .tel-portail{background:#FAFAF9}
.pres .tel-portail .tel-corps{padding:14px 12px}
.pres .portail-haut{flex-shrink:0;display:flex;align-items:center;gap:10px;padding:14px 16px;background:#FFFFFF;border-bottom:1px solid #E7E5E4}
.pres .initiales{width:40px;height:40px;border-radius:50%;background:#064E3B;color:#FFFFFF;display:flex;align-items:center;justify-content:center;font-family:Outfit,sans-serif;font-size:18px;font-weight:700;flex-shrink:0}
.pres .bonjour{display:flex;flex-direction:column;font-size:13px;color:#57534E;line-height:1.3}
.pres .bonjour b{font-family:Outfit,sans-serif;font-size:18px;color:#1C1917}
.pres .avancement-t{padding:14px;border-radius:18px;background:#064E3B;color:#ECFDF5;display:flex;flex-direction:column;gap:10px;flex-shrink:0}
.pres .avancement-haut{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.pres .avancement-haut>span:first-child{display:flex;flex-direction:column;gap:2px}
.pres .avancement-t small{font-size:12px;color:#A7F3D0}
.pres .avancement-t strong{font-family:Outfit,sans-serif;font-size:19px;line-height:1.2}
.pres .pourcent{font-family:Outfit,sans-serif;font-size:22px;font-weight:700;white-space:nowrap}
.pres .jauge-p{height:9px;border-radius:999px;background:#065F46;overflow:hidden}
.pres .jauge-p span{display:block;height:100%;border-radius:999px;background:#34D399;width:var(--depart,0%)}
.pres .jauge-p span.vu{width:var(--cible,100%);transition:width 1.4s cubic-bezier(.2,.8,.2,1)}
.pres .prochaine{font-size:13px;color:#D1FAE5}
.pres .prochaine b{color:#FFFFFF}
.pres .sur-titre-p{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#78716C}
.pres .nav-bas{flex-shrink:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#FFFFFF;border-top:1px solid #E7E5E4;padding:6px 4px 10px}
.pres .nav-bas span{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:#78716C;padding:4px}
.pres .nav-bas svg{width:20px;height:20px}
.pres .nav-bas span.actif,.pres .nav-bas span.vu{color:#047857}
.pres .nav-bas span.fini{opacity:1!important;visibility:visible!important;color:#78716C}
.pres .ligne-p{display:flex;align-items:center;gap:8px;padding:9px 10px;background:#FFFFFF;border:1px solid #E7E5E4;border-radius:14px;font-size:13px;color:#57534E;line-height:1.35}
.pres .ligne-p>span:nth-child(2){display:flex;flex-direction:column;min-width:0}
.pres .ligne-p strong{font-size:14px;color:#1C1917}
.pres .ligne-p strong.nw{white-space:nowrap}
.pres .ligne-p .montant{margin-left:auto;text-align:right;font-weight:700;color:#1C1917;white-space:nowrap;display:flex;flex-direction:column}
.pres .ligne-p .montant small{font-size:10px;font-weight:600;color:#92400E}
.pres .ligne-p.lien-devis{border:2px solid #047857}
.pres .icone-p{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;flex-shrink:0}
.pres .icone-p.plan{background:#DBEAFE;color:#1E40AF}
.pres .icone-p.autre{background:#F5F5F4;color:#57534E}
.pres .icone-p.fac{background:#D1FAE5;color:#065F46;font-size:16px}
.pres .pastille-p{display:inline-block;font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px}
.pres .pastille-p.ok{background:#D1FAE5;color:#065F46}
.pres .pastille-p.attente{background:#FEF3C7;color:#92400E}
.pres .filtres-p{display:flex;gap:5px}
.pres .filtres-p span{padding:4px 8px;border-radius:999px;border:1px solid #E7E5E4;font-size:11px;font-weight:600;color:#57534E;background:#FFFFFF}
.pres .filtres-p span.actif{background:#064E3B;border-color:#064E3B;color:#FFFFFF}
.pres .reste-p{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:14px;background:#064E3B;color:#ECFDF5;font-size:14px}
.pres .reste-p strong{font-family:Outfit,sans-serif;font-size:20px;color:#FFFFFF}
.pres .carte-photo{background:#FFFFFF;border:1px solid #E7E5E4;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;flex-shrink:0}
.pres .carte-photo .photo-maison{border-radius:0;height:128px}
.pres .carte-photo-texte{padding:10px 12px;display:flex;flex-direction:column;gap:2px;font-size:13px;color:#57534E}
.pres .carte-photo-texte b{font-size:15px;color:#1C1917}

/* Papier (facture) */
.pres .papier{background:#FFFFFF;border-radius:4px;box-shadow:0 12px 30px rgba(0,0,0,.35);padding:16px;display:flex;flex-direction:column;gap:8px;font-size:10px;color:#334155}
.pres .papier-photo{width:230px;height:310px;transform:rotate(-4deg)}
.pres .papier-apercu{width:260px;height:350px;font-size:11px;box-shadow:0 8px 24px rgba(15,23,42,.15)}
.pres .papier-entete{display:flex;justify-content:space-between;align-items:baseline;gap:6px;border-bottom:2px solid #0F172A;padding-bottom:6px}
.pres .papier-entete b{font-size:1.2em;color:#0F172A}
.pres .ligne{height:7px;border-radius:4px;background:#E2E8F0;display:block}
.pres .l1{width:92%}
.pres .l2{width:76%}
.pres .l3{width:86%}
.pres .l4{width:64%}
.pres .l5{width:80%}
.pres .papier-totaux{margin-top:auto;display:grid;grid-template-columns:1fr auto;gap:3px 10px;border-top:1px solid #CBD5E1;padding-top:6px}
.pres .papier-totaux b{color:#0F172A;text-align:right}

/* Fenêtre du logiciel */
.pres .fenetre{position:absolute;left:60px;top:110px;width:720px;height:550px;background:#FFFFFF;border-radius:16px;box-shadow:0 30px 60px rgba(15,23,42,.18);display:flex;flex-direction:column}
.pres .fen-barre{height:44px;flex-shrink:0;display:flex;align-items:center;gap:8px;padding:0 16px;background:#F1F5F9;border-bottom:1px solid #E2E8F0;border-radius:16px 16px 0 0;font-size:15px;color:#475569}
.pres .fen-barre i{width:12px;height:12px;border-radius:99px;background:#CBD5E1;display:block}
.pres .fen-barre span{margin-left:10px}
.pres .fen-corps{flex-grow:1;display:flex;min-height:0}
.pres .fen-apercu{position:relative;width:320px;flex-shrink:0;background:#E2E8F0;border-radius:0 0 0 16px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pres .scan{position:absolute;left:30px;right:30px;top:78px;height:6px;border-radius:3px;background:rgba(29,78,216,.6);box-shadow:0 0 18px 6px rgba(29,78,216,.35);opacity:0}
.pres .scan.vu{animation:pres-balayage 4.8s linear forwards}
@keyframes pres-balayage{0%{opacity:0;transform:translateY(0)}6%{opacity:1}94%{opacity:1;transform:translateY(340px)}100%{opacity:0;transform:translateY(340px)}}
.pres .fen-champs{flex-grow:1;padding:20px 24px;display:flex;flex-direction:column;gap:9px}
.pres .fen-titre{font-family:Outfit,sans-serif;font-size:22px;font-weight:600;margin-bottom:4px}
.pres .champ{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;background:#F8FAFC;font-size:16px}
.pres .champ span{color:#64748B}
.pres .champ b{color:#0F172A;text-align:right}
.pres .champ.vu{animation:pres-surbrillance 1.3s ease}
@keyframes pres-surbrillance{0%{background:#DBEAFE}100%{background:#F8FAFC}}
.pres .rangee{display:flex;gap:10px;align-items:center;margin-top:4px}
.pres .badge{font-size:14px;font-weight:700;padding:6px 12px;border-radius:999px}
.pres .bleu{background:#E3EAFD;color:#1E3A8A}
.pres .vert{background:#DCFCE7;color:#065F46}
.pres .bouton-valider{position:relative;margin-left:auto;height:48px;padding:0 20px;border-radius:12px;background:#1D4ED8;color:#FFFFFF;font-size:17px;font-weight:600;display:flex;align-items:center;transition:background .3s ease}
.pres .bouton-valider .apres{display:none}
.pres .bouton-valider.vu{background:#047857}
.pres .bouton-valider.vu .avant{display:none}
.pres .bouton-valider.vu .apres{display:inline}
.pres .curseur{position:absolute;left:55%;top:55%;width:34px;height:34px;transform:translate(170px,120px);transition:transform 1s cubic-bezier(.3,.7,.2,1);z-index:2}
.pres .curseur.vu{transform:none}
.pres .onde{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:999px;background:rgba(255,255,255,.6);opacity:0;pointer-events:none}
.pres .onde.vu{animation:pres-onde .6s ease-out forwards}
@keyframes pres-onde{0%{opacity:.7;transform:scale(.2)}100%{opacity:0;transform:scale(2.4)}}
.pres .carte-chantier{position:absolute;left:84px;top:450px;width:300px;padding:18px 20px;border-radius:16px;background:#FFFFFF;box-shadow:0 20px 44px rgba(15,23,42,.22);display:flex;flex-direction:column;gap:4px}
.pres .carte-chantier .nom{font-family:Outfit,sans-serif;font-size:20px;font-weight:600}
.pres .carte-chantier .libelle{font-size:15px;color:#64748B}
.pres .carte-chantier .valeur{font-family:Outfit,sans-serif;font-size:36px;font-weight:700;font-variant-numeric:tabular-nums}
.pres .carte-chantier .plus{font-size:16px;font-weight:700;color:#047857}
.pres .fen-liste{position:relative;flex-grow:1;padding:14px 18px;display:flex;flex-direction:column;gap:2px;font-size:16px}
.pres .ligne-t{display:grid;grid-template-columns:1fr 1.3fr .9fr .8fr;gap:10px;align-items:center;padding:11px 10px;border-bottom:1px solid #F1F5F9}
.pres .ligne-t.entete-t{font-size:13px;font-weight:700;color:#64748B;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #E2E8F0}
.pres .ligne-t.surligne{background:#F5F8FF;border-radius:8px}
.pres .ligne-t.devis{grid-template-columns:2.2fr .7fr .8fr .9fr}
.pres .ligne-t.banque{grid-template-columns:1.5fr .9fr 1.6fr}
.pres .ligne-t.banque.large{grid-template-columns:2.2fr 1fr 1fr}
.pres .num{text-align:right;font-variant-numeric:tabular-nums}
.pres .pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.pres .gris{background:#F1F5F9;color:#475569}
.pres .orange-p{background:#FFEDD5;color:#9A3412}
.pres .vert-p{background:#DCFCE7;color:#065F46}
.pres .bleu-p{background:#E3EAFD;color:#1E3A8A}
.pres .ambre-p{background:#FEF3C7;color:#92400E}
.pres .bascule .apres{display:none}
.pres .bascule.vu .avant{display:none}
.pres .bascule.vu .apres{display:inline-flex}
.pres .pied-t{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:14px}
.pres .bouton-fen{height:46px;padding:0 18px;border-radius:12px;background:#1D4ED8;color:#FFFFFF;font-size:16px;font-weight:600;display:inline-flex;align-items:center;gap:8px;transition:background .3s ease;white-space:nowrap}
.pres .bouton-fen.vu{animation:pres-appui .35s ease}
.pres .bouton-fen.bascule.vu{background:#047857}
.pres .saisie-devis{color:#1D4ED8}
.pres .saisie-devis::after{content:"";display:inline-block;width:2px;height:1.1em;margin-left:2px;vertical-align:-3px;background:#1D4ED8}
.pres .menu-biblio{position:absolute;left:28px;top:194px;width:460px;background:#FFFFFF;border:1px solid #BFDBFE;border-radius:12px;box-shadow:0 16px 36px rgba(15,23,42,.18);padding:8px;display:flex;flex-direction:column;gap:4px;z-index:2}
.pres .menu-biblio span{padding:9px 12px;border-radius:8px;font-size:15px}
.pres .menu-biblio .choisi{background:#E3EAFD;color:#1E3A8A;font-weight:600}
.pres .totaux-devis{margin-top:auto;display:flex;justify-content:flex-end;align-items:baseline;gap:24px;padding:14px 10px 4px;border-top:2px solid #E2E8F0;font-size:16px;color:#475569}
.pres .totaux-devis b{font-family:Outfit,sans-serif;font-size:24px;color:#0F172A;font-variant-numeric:tabular-nums}
.pres .depot{position:relative;height:200px;border:3px dashed #93C5FD;border-radius:16px;background:#F5F8FF;display:flex;align-items:flex-end;justify-content:center;padding-bottom:18px;font-size:17px;color:#1E3A8A;font-weight:600;flex-shrink:0}
.pres .fichier{position:absolute;left:50%;top:22px;width:160px;margin-left:-80px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#0F172A;transform:translate(300px,-170px) rotate(-10deg);opacity:0;transition:transform 1.1s cubic-bezier(.3,.7,.2,1),opacity .3s}
.pres .fichier.vu{transform:none;opacity:1}
.pres .fichier .icone{width:64px;height:80px;border-radius:8px;background:#FFFFFF;border:2px solid #CBD5E1;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;font-size:12px;font-weight:800;color:#047857;box-shadow:0 8px 20px rgba(15,23,42,.18)}
.pres .encart{border:1px solid #BFDBFE;background:#F5F8FF;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:6px;font-size:16px;color:#334155}
.pres .encart b{color:#0F172A}
.pres .grand-compteur{font-family:Outfit,sans-serif;font-size:64px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:#1D4ED8}
.pres .bande-soldes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pres .bande-soldes>div{background:#F8FAFC;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;transition:background .4s ease}
.pres .bande-soldes span{font-size:13px;color:#64748B}
.pres .bande-soldes b{font-family:Outfit,sans-serif;font-size:22px;font-variant-numeric:tabular-nums;transition:color .4s ease}
.pres .bande-soldes .ecart{background:#FEF3C7}
.pres .bande-soldes .ecart b{color:#92400E}
.pres .bande-soldes .ecart.vu{background:#DCFCE7}
.pres .bande-soldes .ecart.vu b{color:#065F46}

/* Présentations ajoutées le 04/10/2026 (marge, trésorerie, réception, heures, vigilance, comptable, constructeur, film) */
.pres .modale{display:flex;flex-direction:column;gap:6px;border:1px solid #CBD5E1;border-radius:14px;padding:14px 16px;background:#FFFFFF;box-shadow:0 18px 40px rgba(15,23,42,.18)}
.pres .modale-titre{font-family:Outfit,sans-serif;font-size:20px}
.pres .choix-ligne{display:flex;align-items:center;gap:8px;font-size:15px;color:#334155}
.pres .radio{width:18px;height:18px;border:2px solid #94A3B8;border-radius:999px;display:inline-block;flex-shrink:0}
.pres .radio.coche-r{border:6px solid #1D4ED8}
.pres .ligne-t.lots{grid-template-columns:1.6fr .5fr 1fr 1fr;padding:7px 8px;font-size:15px}
.pres .ligne-t.bilan{grid-template-columns:1.1fr 1fr 1fr 1.2fr;padding:9px 8px;font-size:15px}
.pres .ligne-t.heures{grid-template-columns:1.5fr .7fr .8fr 1fr}
.pres .ligne-t.paie{grid-template-columns:1.2fr 1fr 1fr .7fr 1.2fr;font-size:15px}
.pres .ligne-t.compta{grid-template-columns:1fr 1.7fr 1fr .6fr}
.pres .ligne-t.emettre{grid-template-columns:1fr 2.2fr 1fr;background:#FFFBEB;border-radius:10px;border-bottom:0}
.pres .ligne-t.emettre small{font-size:13px;color:#64748B}
.pres .surligne-ambre{background:#FFFBEB;border-radius:8px}
.pres .ok-lot{color:#047857}
.pres .alerte-lot{display:block;font-size:13px;color:#B91C1C}
.pres .tuiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.pres .tuiles.trois{grid-template-columns:repeat(3,minmax(0,1fr))}
.pres .tuile{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.pres .tuile span{font-size:12px;color:#64748B;line-height:1.25}
.pres .tuile b{font-family:Outfit,sans-serif;font-size:22px;font-variant-numeric:tabular-nums;white-space:nowrap}
.pres .tuile small{font-size:12px;color:#64748B}
.pres .tuile-verte b{color:#047857}
.pres .tuile-ambre{background:#FFFBEB;border-color:#FDE68A}
.pres .tuile-ambre b{color:#92400E}
.pres .toast.ambre-toast{background:#92400E;box-shadow:0 10px 26px rgba(146,64,14,.3)}
.pres .cartes-marge{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pres .cartes-marge>div{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.pres .cartes-marge span{font-size:12px;font-weight:700;color:#64748B;letter-spacing:.02em}
.pres .cartes-marge b{font-family:Outfit,sans-serif;font-size:24px;font-variant-numeric:tabular-nums}
.pres .cartes-marge .marge-ok b{color:#047857}
.pres .encart-ambre{border-color:#FDE68A;background:#FFFBEB}
/* Graphique de trésorerie */
.pres .legende-g{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:#475569}
.pres .legende-g span{display:flex;align-items:center;gap:6px}
.pres .legende-g i{width:12px;height:12px;border-radius:3px;display:inline-block}
.pres .carre-e{background:#10B981}
.pres .carre-s{background:#F97316}
.pres .carre-solde{background:#1D4ED8;border-radius:999px!important}
.pres .graphe{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:end;height:300px;padding:10px 6px 0;border-bottom:2px solid #CBD5E1}
.pres .mois-g{display:flex;flex-direction:column;align-items:center;gap:8px;height:100%;justify-content:flex-end}
.pres .solde-g{font-family:Outfit,sans-serif;font-size:19px;color:#1D4ED8;opacity:0;transition:opacity .4s ease .5s;font-variant-numeric:tabular-nums}
.pres .solde-g.bas-g{color:#B45309}
.pres .mois-g.vu .solde-g{opacity:1}
.pres .barres-g{display:flex;gap:6px;align-items:flex-end;height:160px}
.pres .barres-g span{width:30px;height:0;border-radius:6px 6px 0 0;transition:height .8s cubic-bezier(.2,.8,.2,1)}
.pres .barre-e{background:#10B981}
.pres .barre-s{background:#F97316}
.pres .mois-g.vu .barres-g span{height:var(--h)}
.pres .nom-g{font-size:15px;font-weight:600;color:#334155;padding-bottom:6px}
.pres .indice-g{font-size:13px;color:#64748B;line-height:1.45}
.pres .detail-haut{display:flex;justify-content:space-between;align-items:center;font-size:18px;padding-bottom:6px;border-bottom:1px solid #E2E8F0}
.pres .detail-haut span{font-size:14px;color:#64748B}
.pres .groupe-d{display:flex;flex-direction:column;gap:4px;padding:6px 0}
.pres .groupe-d>b{font-size:15px;color:#0F172A}
.pres .ligne-d{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:6px 10px;border-radius:8px;background:#F8FAFC;font-size:14px;color:#334155}
.pres .ligne-d span{display:flex;flex-direction:column}
.pres .ligne-d small{font-size:12px;color:#64748B}
.pres .ligne-d b{white-space:nowrap;font-variant-numeric:tabular-nums}
.pres .ligne-d b.entree-d{color:#047857}
/* Réception des travaux */
.pres .piece-r{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;background:#FFFFFF;border:1px solid #E2E8F0;border-radius:12px;font-size:15px;font-weight:600}
.pres .piece-r .pill{font-size:11px}
.pres .surligne-r{border:2px solid #F97316}
.pres .bouton-scene.orange-b{background:#EA580C}
.pres .photo-defaut{height:110px;border-radius:10px;overflow:hidden;flex-shrink:0}
.pres .photo-defaut svg{width:100%;height:100%;display:block}
.pres .segments{display:flex;gap:4px}
.pres .segments span{flex:1;text-align:center;padding:6px 4px;border:1px solid #CBD5E1;border-radius:8px;font-size:12px;font-weight:600;color:#334155;background:#FFFFFF}
.pres .segments .actif-s,.pres .segments .bascule-s.vu{background:#1D4ED8;border-color:#1D4ED8;color:#FFFFFF}
/* Mon pointage */
.pres .onglets-t{display:flex;gap:6px}
.pres .onglets-t span{padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;color:#CBD5E1;background:#1E293B}
.pres .onglets-t .actif-o{background:#FFFFFF;color:#0F172A}
.pres .semaine-t{display:flex;justify-content:space-between;align-items:center;font-size:15px}
.pres .semaine-t span{font-size:20px;color:#64748B;padding:0 6px}
.pres .jour-t{display:grid;grid-template-columns:1fr auto;gap:6px 8px;align-items:center;padding:10px 12px;background:#FFFFFF;border:1px solid #E2E8F0;border-radius:12px;font-size:15px}
.pres .jour-t .prevu-t{grid-column:1/-1;font-size:13px;color:#64748B}
.pres .jour-t .bouton-clair{grid-column:1/-1;height:36px}
/* Vigilance */
.pres .vig-ligne{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:10px;align-items:center;padding:10px;border-bottom:1px solid #F1F5F9;font-size:15px}
.pres .vig-date{font-size:13px;color:#64748B}
.pres .feu{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;white-space:nowrap}
.pres .feu::before{content:"";width:10px;height:10px;border-radius:999px;background:currentColor}
.pres .feu-orange{color:#C2410C}
.pres .feu-vert{color:#047857}
.pres .boite-confirmer{position:absolute;left:60px;right:60px;top:150px;display:flex;flex-direction:column;gap:6px;padding:18px 20px;border-radius:14px;background:#FFFFFF;border:1px solid #CBD5E1;box-shadow:0 24px 50px rgba(15,23,42,.28);font-size:16px;color:#334155}
.pres .boite-confirmer b{color:#0F172A}
/* Espace comptable, facturation */
.pres .onglets-f{display:flex;gap:4px;border-bottom:1px solid #E2E8F0}
.pres .onglets-f span{padding:8px 12px;font-size:14px;font-weight:600;color:#64748B;border-bottom:3px solid transparent}
.pres .onglets-f .actif-o{color:#1D4ED8;border-bottom-color:#1D4ED8}
.pres .pdf-l{justify-self:start;font-size:12px;font-weight:800;color:#B91C1C;background:#FEF2F2;border-radius:6px;padding:3px 8px}
.pres .fichier.fichier-ligne{position:relative;left:auto;top:auto;margin:0;transform:translateY(24px)}
.pres .fichier.fichier-ligne.vu{transform:none}
.pres .sous-titre-f{font-family:Outfit,sans-serif;font-size:17px;margin-top:4px}
.pres .echeancier{display:flex;flex-wrap:wrap;gap:6px}
.pres .echeancier span{padding:5px 10px;border-radius:999px;border:1px solid #E2E8F0;font-size:13px;color:#475569;background:#FFFFFF}
.pres .echeancier .eche-ok{background:#DCFCE7;border-color:#DCFCE7;color:#065F46}
.pres .echeancier .eche-encours{background:#FEF3C7;border-color:#FDE68A;color:#92400E;font-weight:700}
.pres .etape-num.orange-n{color:#EA580C}
.pres .etape-num.vert-n{color:#047857}

/* Titres de début et de fin */
.pres .centre{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center;color:#FFFFFF}
.pres .centre .grand{font-family:Outfit,sans-serif;font-size:60px;font-weight:700;line-height:1.08;max-width:1000px}
.pres .centre .moyen{font-size:26px;color:#CBD5E1}
.pres .centre .site{font-family:Outfit,sans-serif;font-size:30px;font-weight:600;color:#93C5FD}
.pres .cube{width:130px;height:130px;opacity:0;transform:scale(.7);transition:opacity .5s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.pres .cube.vu{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  .pres-racine *,.pres .scene{transition:none!important;animation:none!important}
  .pres .trace.vu{stroke-dashoffset:0}
}
