/* Le film : une journée avec le système (accueil et pages de campagne) */
.film .voir { display: none; }
/* Le film : un montage animé, en grand sous la promesse */
.film-cadre { position: relative; margin-top: 64px; padding: 12px; border-radius: 44px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55)); box-shadow: var(--ombre-forte), 0 0 0 1px var(--ligne); }
.film { position: relative; overflow: hidden; border-radius: 32px; background: var(--encre); text-align: left; container-type: inline-size; }
.ecran { position: relative; aspect-ratio: 16 / 9; overflow: hidden; --u: 1cqw; background: var(--fond); }
.sc { position: absolute; inset: 0; visibility: hidden; overflow: hidden; }
.sc.active { visibility: visible; }
/* Avant le script du film (22/10/2026) : l'image d'attente, le premier plan dans son état final, se voit
   sans attendre le chargement complet ; le script prend la main (classe pret) dès qu'il arrive. */
.film:not(.pret) .sc:first-of-type { visibility: visible; }
.sc:not(.active), .sc:not(.active) * { animation: none !important; }
.film.pause .sc.active, .film.pause .sc.active * { animation-play-state: paused !important; }
.a { animation-delay: calc(var(--d, 0s) - var(--decal, 0s)) !important; animation-fill-mode: both !important; }
.sc.clair { background: radial-gradient(55% 70% at 88% 12%, rgba(22, 209, 150, .2), rgba(22, 209, 150, 0) 62%), radial-gradient(45% 60% at 6% 100%, rgba(120, 200, 255, .2), rgba(120, 200, 255, 0) 60%), #F6F7F5; color: var(--encre); }
.sc.encre { background: radial-gradient(70% 80% at 50% 115%, rgba(22, 209, 150, .22), rgba(22, 209, 150, 0) 60%), #0B1220; color: #fff; }
.sc.menthe { background: radial-gradient(60% 80% at 80% 0%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), #16D196; color: var(--encre); }
.sc .plan { position: absolute; inset: 0; animation: approche var(--duree, 5s) linear both; }
@keyframes approche { from { transform: scale(1); } to { transform: scale(1.045); } }

/* Mots qui entrent un à un */
.mots .w { display: inline-block; animation: motIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d0, .1s) + var(--i) * .06s - var(--decal, 0s)) !important; }
@keyframes motIn { from { opacity: 0; transform: translateY(45%); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes carteIn { from { opacity: 0; transform: translate3d(12%, 8%, 0) rotate(-3deg) scale(.94); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes carteHaut { from { opacity: 0; transform: translate3d(0, 18%, 0) scale(.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.5); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ligneIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes sortie { to { opacity: 0; transform: scale(.7); } }
@keyframes anneau { 0% { box-shadow: 0 0 0 0 rgba(178, 111, 10, .45); } 100% { box-shadow: 0 0 0 calc(var(--u) * 1.2) rgba(178, 111, 10, 0); } }
@keyframes flotte { 0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate(0, -8%) rotate(var(--r, 0deg)); } }
@keyframes trace { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Plans « problème » et phrases-chocs */
.choc { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: calc(var(--u) * 2.2); padding: 0 8cqw; text-align: center; }
.choc .heure { display: inline-flex; align-items: center; gap: 10px; padding: calc(var(--u) * .7) calc(var(--u) * 1.3); border-radius: 999px; background: rgba(255, 255, 255, .08); font: 500 max(12px, calc(var(--u) * 1.5))/1 var(--mono); color: var(--menthe-vive); }
.choc .dit { max-width: 72cqw; font-size: 6.2cqw; font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; text-wrap: balance; }
.choc .dit em { font-style: normal; color: var(--menthe-vive); }
.sc.menthe .choc .dit { font-size: 6cqw; max-width: 90cqw; }
.sc.menthe .choc .dit em { font-style: normal; color: var(--encre); }
.garantie-f .dit .l:first-child { color: rgba(11, 18, 32, .58); }
.construit-f .dit .l:not(:last-child) { color: rgba(11, 18, 32, .58); }
.sc.menthe .choc .heure { background: rgba(11, 18, 32, .08); color: var(--encre); }
.sc.clair .choc .dit { color: var(--encre); }
/* Deux phrases longues (négoce, 26/10/2026) : un corps plus petit, une phrase par ligne ou presque */
.sc.long .choc .dit { font-size: 5.3cqw; max-width: 84cqw; }
/* Le client qui attend (négoce, 26/10/2026) : sa demande le lundi, sa relance le mercredi */
.messages-client { display: grid; gap: calc(var(--u) * 1.1); width: min(50cqw, 100%); justify-items: start; text-align: left; }
.messages-client p { padding: calc(var(--u) * 1.3) calc(var(--u) * 1.8); border-radius: calc(var(--u) * 1.6) calc(var(--u) * 1.6) calc(var(--u) * 1.6) calc(var(--u) * .4); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: max(14px, calc(var(--u) * 1.9)); line-height: 1.4; color: rgba(255, 255, 255, .55); transform-origin: left bottom; animation: popIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.messages-client p small { display: block; margin-bottom: calc(var(--u) * .5); font: 500 .72em/1 var(--mono); color: rgba(255, 255, 255, .4); }
.messages-client .relance { background: rgba(255, 255, 255, .12); color: #fff; }
.messages-client .relance small { color: rgba(255, 255, 255, .62); }
.outils-flottent { position: absolute; inset: 0; }
.outils-flottent span { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: calc(var(--u) * .9) calc(var(--u) * 1.5); border-radius: 999px; background: #fff; box-shadow: var(--ombre), 0 0 0 1px var(--ligne); font-size: max(12px, calc(var(--u) * 1.35)); font-weight: 600; color: var(--texte); white-space: nowrap; animation: popIn .6s cubic-bezier(.2, .8, .2, 1) both, flotte 3.4s ease-in-out infinite; }
.outils-flottent span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--voile); }
.sc.encre .outils-flottent span { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82); }
.sc.encre .outils-flottent span::before { background: rgba(255, 255, 255, .35); }

/* Plans « système » : texte à gauche, interface à droite */
.texte-plan { position: absolute; left: 5.5cqw; top: 50%; width: 42cqw; transform: translateY(-50%); }
.texte-plan .heure { display: inline-flex; align-items: center; gap: 10px; font: 500 max(12px, calc(var(--u) * 1.5))/1 var(--mono); color: var(--vert); }
.texte-plan .heure::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); box-shadow: 0 0 0 4px rgba(22, 209, 150, .18); }
.texte-plan .dit { margin-top: calc(var(--u) * 1.6); font-size: 4.3cqw; font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; text-wrap: balance; }
.texte-plan .dit em { font-style: normal; color: var(--vert); }
.dit .l { display: block; text-wrap: balance; }
.texte-plan .sous { margin-top: calc(var(--u) * 1.6); font-size: max(13px, calc(var(--u) * 1.55)); line-height: 1.5; color: var(--texte); animation: apparait .7s ease both; }
.compo { position: absolute; right: 5cqw; top: 50%; width: calc(var(--u) * 45); transform: translateY(-50%); display: grid; gap: calc(var(--u) * 1.2); font-size: max(11px, calc(var(--u) * 1.4)); perspective: 1200px; }
.carte { border-radius: calc(var(--u) * 1.6); background: #fff; box-shadow: 0 2px 6px rgba(11, 18, 32, .05), 0 30px 70px -30px rgba(11, 18, 32, .35), 0 0 0 1px var(--ligne); overflow: hidden; }
.carte-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(var(--u) * 1.1) calc(var(--u) * 1.4); border-bottom: 1px solid var(--ligne); font-weight: 600; }
.carte-tete small { font: 500 .88em/1 var(--mono); color: var(--texte-2); }
.carte-corps { display: grid; gap: calc(var(--u) * .7); padding: calc(var(--u) * 1.1) calc(var(--u) * 1.2) calc(var(--u) * 1.3); }
.rang { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px calc(var(--u) * 1); padding: calc(var(--u) * .8) calc(var(--u) * 1); border-radius: calc(var(--u) * 1); background: var(--fond); }
.rang b { font-weight: 500; }
.rang small { grid-column: 1; font-size: .88em; color: var(--texte-2); }
.rang .pastille, .rang .pile-etat { grid-row: 1 / span 2; grid-column: 2; }
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: calc(var(--u) * .35) calc(var(--u) * .8); border-radius: 999px; font-size: .9em; font-weight: 600; white-space: nowrap; }
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-ok { background: var(--menthe-pale); color: var(--vert); }
.p-doute { background: var(--ambre-pale); color: var(--ambre); }
.pile-etat { display: grid; justify-items: end; }
.pile-etat > * { grid-area: 1 / 1; }

/* 07:40 la question, dans une fenêtre de discussion */
.c-chat { display: flex; flex-direction: column; animation: carteHaut .7s cubic-bezier(.2, .8, .2, 1) both; }
.chat-tete { display: flex; align-items: center; gap: calc(var(--u) * 1); padding: calc(var(--u) * 1) calc(var(--u) * 1.3); border-bottom: 1px solid var(--ligne); }
.avatar-s { display: grid; place-items: center; width: calc(var(--u) * 2.8); height: calc(var(--u) * 2.8); min-width: 24px; min-height: 24px; border-radius: 50%; background: var(--encre); color: var(--menthe-vive); font-weight: 700; letter-spacing: -0.04em; }
.chat-tete b { display: block; font-weight: 600; line-height: 1.2; }
.chat-tete small { display: inline-flex; align-items: center; gap: 6px; font-size: .85em; color: var(--vert); }
.chat-tete small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--menthe); }
.fil-chat { display: flex; flex-direction: column; gap: calc(var(--u) * .8); padding: calc(var(--u) * 1.2) calc(var(--u) * 1.2) calc(var(--u) * .6); background: #FAFBFA; }
.msg { max-width: 86%; padding: calc(var(--u) * .85) calc(var(--u) * 1.15); border-radius: calc(var(--u) * 1.4); line-height: 1.45; }
.msg.moi { align-self: flex-end; background: var(--encre); color: #fff; border-bottom-right-radius: calc(var(--u) * .35); transform-origin: right bottom; animation: popIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.zone-rep { display: grid; align-items: start; }
.zone-rep > * { grid-area: 1 / 1; }
.msg.ecrit { justify-self: start; display: flex; gap: 5px; align-items: center; background: #fff; box-shadow: 0 0 0 1px var(--ligne); animation: pointille .65s ease both; }
.msg.ecrit i { width: 6px; height: 6px; border-radius: 50%; background: var(--voile); animation: rebond .6s ease-in-out infinite; }
.msg.ecrit i:nth-child(2) { animation-delay: .1s; }
.msg.ecrit i:nth-child(3) { animation-delay: .2s; }
@keyframes pointille { 0% { opacity: 0; transform: scale(.8); } 15% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.msg.lui { justify-self: start; width: 94%; max-width: none; background: #fff; color: var(--texte); box-shadow: 0 0 0 1px var(--ligne), 0 10px 24px -16px rgba(11, 18, 32, .3); border-bottom-left-radius: calc(var(--u) * .35); transform-origin: left top; animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.rep-titre { color: var(--texte); }
.rep-titre strong { margin-right: 4px; font-size: 1.3em; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--encre); }
.ligne-c { display: flex; justify-content: space-between; gap: calc(var(--u) * 1); margin-top: calc(var(--u) * .5); padding-top: calc(var(--u) * .5); border-top: 1px solid var(--ligne); animation: ligneIn .4s ease both; }
.ligne-c b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--encre); white-space: nowrap; }
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: calc(var(--u) * .8); animation: apparait .5s ease both; }
.sources::before { content: "Sources"; margin-right: 4px; font: 500 .85em/1 var(--mono); color: var(--texte-2); }
.sources span { padding: calc(var(--u) * .3) calc(var(--u) * .75); border-radius: 999px; background: var(--menthe-pale); color: var(--vert); font-size: .85em; font-weight: 600; }
.barre-chat { display: flex; align-items: center; gap: calc(var(--u) * .5); margin: calc(var(--u) * .6) calc(var(--u) * 1) calc(var(--u) * 1); padding: calc(var(--u) * .5) calc(var(--u) * .5) calc(var(--u) * .5) calc(var(--u) * 1.2); border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ligne-2), 0 6px 16px -10px rgba(11, 18, 32, .25); }
.saisie { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--encre); }
.saisie:empty::before { content: attr(data-vide); color: var(--texte-2); }
.curseur-t { flex: none; width: 2px; height: 1.15em; margin-right: auto; background: var(--encre); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.envoi { display: grid; place-items: center; width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); min-width: 24px; min-height: 24px; border-radius: 50%; background: var(--fond-2); color: var(--texte-2); flex: none; animation: envoiOn .35s ease both; }
.envoi svg { width: 55%; height: 55%; stroke-width: 2.4; }
@keyframes envoiOn { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { background: var(--menthe); color: var(--encre); transform: scale(1); } }
.calme .msg.ecrit { display: none; }

/* 08:02 commande */
.c-mail { width: 78%; transform-origin: left center; animation: carteIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.c-mail .carte-corps { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.pj { display: inline-flex; align-items: center; gap: 6px; padding: calc(var(--u) * .5) calc(var(--u) * .8); border-radius: calc(var(--u) * .7); background: #FDECEC; color: #B4232A; font: 600 .88em/1 var(--mono); }
.c-mail p { color: var(--texte); }
.fil-ia { justify-self: center; width: 2px; height: calc(var(--u) * 2.4); background: linear-gradient(var(--menthe), rgba(22, 209, 150, .2)); transform-origin: top; animation: trace .5s ease both; }
.c-cmd { animation: carteHaut .7s cubic-bezier(.2, .8, .2, 1) both; }
.c-cmd .rang { animation: ligneIn .45s ease both; }
.c-cmd .pastille { animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.c-cmd .doute { animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both, anneau 1.1s ease-out 3 both; }
.cree { display: flex; align-items: center; gap: 8px; padding: calc(var(--u) * .9) calc(var(--u) * 1.2); border-top: 1px solid var(--ligne); font-weight: 600; color: var(--vert); animation: apparait .5s ease both; }
.coche { display: grid; place-items: center; width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); min-width: 18px; min-height: 18px; border-radius: 50%; background: var(--menthe); color: var(--encre); }
.coche svg { width: 62%; height: 62%; stroke-width: 2.6; }

/* 09:30 devis */
.bulle { justify-self: start; max-width: 84%; padding: calc(var(--u) * 1.1) calc(var(--u) * 1.4); border-radius: calc(var(--u) * 1.6) calc(var(--u) * 1.6) calc(var(--u) * 1.6) calc(var(--u) * .4); background: var(--encre); color: #fff; line-height: 1.45; box-shadow: var(--ombre); transform-origin: left bottom; animation: popIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.bulle small { display: block; margin-bottom: 4px; font: 500 .85em/1 var(--mono); color: var(--menthe-vive); }
.c-devis { animation: carteHaut .7s cubic-bezier(.2, .8, .2, 1) both; }
.c-devis .rang { grid-template-columns: minmax(0, 1fr) auto; animation: ligneIn .45s ease both; }
.c-devis .rang span:last-child { font-variant-numeric: tabular-nums; color: var(--texte); }
.total { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--u) * 1) calc(var(--u) * 1.4); border-top: 1px solid var(--ligne); }
.total strong { font-size: 1.5em; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.total .pastille { animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both; }

/* 11:00 relances */
.c-fact .rang { animation: ligneIn .45s ease both; }
.c-fact .pile-etat .p-doute.avant { animation: sortie .3s ease forwards; }
.c-fact .pile-etat .apres { animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.avion { position: absolute; right: 22%; top: 30%; width: calc(var(--u) * 2); height: calc(var(--u) * 2); min-width: 16px; min-height: 16px; color: var(--vert); opacity: 0; animation: vol .9s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes vol { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; transform: translate(10%, -10%) scale(1); } 100% { opacity: 0; transform: translate(260%, -160%) scale(.9) rotate(-10deg); } }
.c-fact .appel { animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both, anneau 1.1s ease-out 2 both; }

/* 14:20 tri des comptes rendus */

/* 17:30 téléphone */
.compo.tel-compo { width: calc(var(--u) * 23); right: 13cqw; top: 50%; bottom: auto; transform: translateY(-50%); justify-items: center; font-size: max(10px, calc(var(--u) * 1.15)); }
.tel-f { position: relative; display: flex; width: 100%; aspect-ratio: 9 / 19.4; padding: calc(var(--u) * .85); border-radius: calc(var(--u) * 4.6); background: linear-gradient(150deg, #3a404b 0%, #161b23 35%, #0b0f16 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 calc(var(--u) * .35) #05080d, 0 50px 90px -40px rgba(11, 18, 32, .65), 0 18px 40px -24px rgba(11, 18, 32, .45); animation: carteHaut .8s cubic-bezier(.2, .8, .2, 1) both; }
.tel-f .bouton { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #4a515d, #1a1f27); }
.tel-f .b-action { left: -2.5px; top: 17%; height: 4.5%; }
.tel-f .b-plus { left: -2.5px; top: 25%; height: 8%; }
.tel-f .b-moins { left: -2.5px; top: 35%; height: 8%; }
.tel-f .b-veille { right: -2.5px; top: 29%; height: 12%; }
.tel-f .ile { position: absolute; z-index: 2; top: calc(var(--u) * .9); left: 50%; width: 31%; height: calc(var(--u) * 2.3); border-radius: 999px; background: #000; transform: translateX(-50%); }
.statut-f { display: flex; justify-content: space-between; align-items: center; height: calc(var(--u) * 4); margin: 0 calc(var(--u) * -.4) calc(var(--u) * .6); padding: 0 calc(var(--u) * .6) 0 calc(var(--u) * 1.4); font: 600 1em/1 -apple-system, "SF Pro Text", var(--sans); color: var(--encre); }
.statut-f .icones { display: inline-flex; align-items: center; gap: 3px; }
.statut-f svg { height: .8em; width: auto; fill: currentColor; }
.tel-f .ecr { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 calc(var(--u) * 1.2) calc(var(--u) * 2); border-radius: calc(var(--u) * 3.8); background: #fff; overflow: hidden; }
.bilan { margin-top: auto; margin-bottom: calc(var(--u) * 1.6); padding: calc(var(--u) * 1) calc(var(--u) * 1.1); border-radius: calc(var(--u) * 1.3); background: var(--menthe-pale); animation: apparait .6s ease both; }
.bilan small { display: block; font: 500 .85em/1 var(--mono); color: var(--vert); }
.bilan p { display: grid; gap: calc(var(--u) * .45); margin-top: calc(var(--u) * .8); }
.bilan span { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--encre); }
.bilan span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--menthe); flex: none; }
.tel-f .accueil-f { position: absolute; left: 50%; bottom: calc(var(--u) * .7); width: 38%; height: calc(var(--u) * .45); min-height: 3px; border-radius: 3px; background: var(--encre); transform: translateX(-50%); }
.tel-f .haut-t { display: flex; justify-content: space-between; font: 500 .88em/1 var(--mono); color: var(--texte-2); }
.compteur { display: grid; }
.compteur > * { grid-area: 1 / 1; }
.compteur .avant { animation: sortie .25s ease forwards; }
.compteur .apres { animation: apparait .3s ease both; color: var(--vert); }
.tel-f h4 { margin: calc(var(--u) * 1.3) 0 calc(var(--u) * 1); font-size: 1.5em; letter-spacing: -0.035em; }
.dec { padding: calc(var(--u) * 1.1); border-radius: calc(var(--u) * 1.3); background: var(--fond); line-height: 1.4; color: var(--texte); }
.dec + .dec { margin-top: calc(var(--u) * .8); }
.dec strong { display: block; color: var(--encre); }
.dec .boutons { display: flex; gap: 6px; margin-top: calc(var(--u) * .9); }
.dec .boutons > span { flex: 1; display: grid; place-items: center; height: calc(var(--u) * 2.9); min-height: 26px; border-radius: calc(var(--u) * .9); background: #fff; font-weight: 600; box-shadow: 0 0 0 1px var(--ligne); }
.bt { position: relative; display: grid !important; }
.bt > * { grid-area: 1 / 1; }
.bt .apres { animation: apparait .25s ease both; }
.bt-noir { background: var(--encre) !important; color: #fff; box-shadow: none !important; }
.bt .avant { animation: sortie .2s ease forwards; }
.bt .fond-ok { position: absolute; inset: 0; border-radius: inherit; background: var(--menthe-pale); animation: apparait .25s ease both; }
.bt .fond-ok + .apres { position: relative; }
.doigt { position: absolute; z-index: 3; width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); min-width: 26px; min-height: 26px; border-radius: 50%; background: rgba(11, 18, 32, .22); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 6px 16px rgba(11, 18, 32, .3); left: 66%; top: 50%; opacity: 0; animation: doigt 2.6s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes doigt {
  0% { opacity: 0; transform: translate(40%, 60%) scale(1.1); }
  12% { opacity: 1; transform: translate(0, 0) scale(1); }
  20% { transform: translate(0, 0) scale(.78); }
  28% { transform: translate(0, 0) scale(1); }
  55% { transform: translate(0, calc(var(--u) * 10.6)) scale(1); }
  63% { transform: translate(0, calc(var(--u) * 10.6)) scale(.78); }
  72% { opacity: 1; transform: translate(0, calc(var(--u) * 10.6)) scale(1); }
  100% { opacity: 0; transform: translate(30%, calc(var(--u) * 13)) scale(1); }
}

/* La fin : l'audit offert */
.appel-f .logo-f { font-size: 4.6cqw; }
.appel-f .appel-titre { max-width: 70cqw; font-size: 4.6cqw; font-weight: 600; letter-spacing: -0.05em; line-height: 1.04; text-wrap: balance; color: #fff; animation: none; }

/* L'idée centrale : la seconde phrase sur sa propre ligne */

.sc.clair .choc .heure { background: var(--menthe-pale); color: var(--vert); }

/* Chaque mois, une brique de plus */

/* Chaque mois, une brique de plus */
.mois-film { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--u) * 1); max-width: 70cqw; margin-top: calc(var(--u) * 1); }
.mois-film span { display: inline-flex; align-items: center; gap: 8px; padding: calc(var(--u) * .9) calc(var(--u) * 1.5); border-radius: 999px; background: var(--menthe-pale); box-shadow: 0 0 0 1px rgba(22, 209, 150, .4); font-size: max(12px, calc(var(--u) * 1.35)); font-weight: 600; color: var(--vert); animation: allume .6s ease both; }
.mois-film span b { font: 500 .9em/1 var(--mono); color: var(--texte-2); }
@keyframes allume { from { background: #fff; color: var(--texte-2); box-shadow: 0 0 0 1px var(--ligne); transform: scale(.94); } 60% { transform: scale(1.06); } to { background: var(--menthe-pale); color: var(--vert); transform: none; box-shadow: 0 0 0 1px rgba(22, 209, 150, .4); } }

/* Carton final */
.carton { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: calc(var(--u) * 2); text-align: center; padding: 0 8cqw; }
.carton .logo-f { font-size: 7.4cqw; font-weight: 650; letter-spacing: -0.06em; line-height: 1; animation: motIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.carton .logo-f span { color: var(--menthe-vive); }
.carton p { max-width: 60cqw; font-size: max(15px, calc(var(--u) * 2.2)); font-weight: 500; letter-spacing: -0.03em; color: rgba(255, 255, 255, .8); animation: apparait .7s ease both; }
.carton .rdv-f .rond { display: grid; place-items: center; width: calc(var(--u) * 2.8); height: calc(var(--u) * 2.8); min-width: 24px; min-height: 24px; border-radius: 50%; background: var(--encre); color: var(--menthe-vive); }
.carton .rdv-f .rond svg { width: 55%; height: 55%; }
.carton .rdv-f { padding-right: calc(var(--u) * .5) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: calc(var(--u) * 1) calc(var(--u) * 1.8); border-radius: 999px; background: var(--menthe); color: var(--encre); font-size: max(13px, calc(var(--u) * 1.5)); font-weight: 600; animation: popIn .6s cubic-bezier(.2, .8, .2, 1) both; }

/* Étiquette, bouton central, barre de lecture */
.filigrane { position: absolute; z-index: 4; left: 2.4cqw; top: 2.2cqw; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 500; color: var(--texte); box-shadow: 0 0 0 1px var(--ligne); }
.filigrane::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--menthe); animation: pouls 2.2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(22, 209, 150, .5); } 70% { box-shadow: 0 0 0 8px rgba(22, 209, 150, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 209, 150, 0); } }
.voir { position: absolute; z-index: 5; left: 2.4cqw; bottom: 2.4cqw; white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; border: 0; border-radius: 999px; background: rgba(11, 18, 32, .86); backdrop-filter: blur(10px); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 20px 50px -16px rgba(11, 18, 32, .6); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.voir:hover { transform: scale(1.03); }
.voir i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--menthe); color: var(--encre); }
.voir svg { width: 18px; height: 18px; fill: currentColor; }
.voir small { font: 500 13px/1 var(--mono); color: rgba(255, 255, 255, .6); }
.film:not(.attente) .voir { display: none; }
.film-bas { display: flex; align-items: center; gap: 18px; padding: 14px 22px; background: #fff; }
.lecture { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--encre); color: #fff; cursor: pointer; flex: none; }
.lecture svg { width: 16px; height: 16px; fill: currentColor; }
.piste { position: relative; flex: 1; height: 28px; cursor: pointer; }
.piste::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--fond-2); }
.piste .rempli { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 0; border-radius: 4px; background: var(--encre); }
.piste .rempli::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--encre); box-shadow: 0 0 0 3px #fff; }
.piste .repere { position: absolute; top: 50%; width: 2px; height: 8px; margin-top: -4px; border-radius: 2px; background: var(--voile); }
.chrono { font: 500 13px/1 var(--mono); color: var(--texte-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Le son, sur les films qui ont une voix : coupé au départ. L'étiquette sur l'image invite à l'activer ; le bouton de la barre le coupe ou le remet */
.son-film { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--fond-2); color: var(--encre); cursor: pointer; flex: none; }
.son-film svg, .son-ecran svg { width: 18px; height: 18px; fill: currentColor; }
.son-ecran svg { width: 20px; height: 20px; }
.son-ecran { position: absolute; z-index: 4; right: 2.4cqw; top: 2.2cqw; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 13px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); font: inherit; font-size: 15px; font-weight: 600; color: var(--encre); box-shadow: 0 0 0 1px var(--ligne); cursor: pointer; transition: opacity .3s, visibility 0s; }
/* Au démarrage du film sans le son, le bouton pulse quelques fois pour se faire voir */
.film:not(.attente, .avec-son) .son-ecran { animation: appelSon 1.6s ease-out .8s 4; }
@keyframes appelSon { 0% { box-shadow: 0 0 0 1px var(--ligne), 0 0 0 0 rgba(22, 209, 150, .6); } 70% { box-shadow: 0 0 0 1px var(--ligne), 0 0 0 14px rgba(22, 209, 150, 0); } 100% { box-shadow: 0 0 0 1px var(--ligne), 0 0 0 0 rgba(22, 209, 150, 0); } }
@media (prefers-reduced-motion: reduce) { .film .son-ecran { animation: none; } }
/* Sur le plan du téléphone, qui monte jusqu'en haut de l'image, le bouton se réduit à son icône */
.film:has(.sc.active .tel-compo) .son-ecran { gap: 0; padding: 10px; font-size: 0; }
.film:is(.avec-son, .attente, .fini) .son-ecran { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.film.sans-voix :is(.son-film, .son-ecran) { display: none; }
@media (min-width: 681px) { .film-cadre { max-width: calc((100svh - 230px) * 16 / 9 + 24px); margin-inline: auto; } }
.filigrane { transition: opacity .3s; }
.film:not(.avec-donnees) .filigrane { opacity: 0; }
.film.attente .rempli { width: 0 !important; }
.film-fin { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 26px; padding: 40px; background: rgba(246, 247, 245, .92); backdrop-filter: blur(10px); text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.film.fini .film-fin { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }
.film-fin p { max-width: 620px; font-size: clamp(26px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; }
.film-fin .actions { margin-top: 0; }
.revoir { min-height: 56px; padding: 0 24px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ligne-2); font-size: 16px; font-weight: 600; cursor: pointer; }

/* Le film sur un écran étroit : format vertical, texte au-dessus, interface dessous */
@container (max-width: 640px) {
  .ecran { aspect-ratio: 9 / 14; --u: 2.15cqw; }
  .carte-tete small { display: none; }
  .texte-plan .dit { text-wrap: balance; }
  .choc .dit { font-size: 9.6cqw; max-width: 86cqw; }
  .sc.menthe .choc .dit { font-size: 10cqw; }
  .sc.long .choc .dit { font-size: 8.6cqw; max-width: 88cqw; }
  .messages-client { width: 82cqw; }
  .texte-plan { left: 7cqw; right: 7cqw; top: 17cqw; width: auto; transform: none; }
  .texte-plan .dit { font-size: 7.6cqw; margin-top: 2.4cqw; }
  .texte-plan .sous { display: none; }
  .compo { left: 7cqw; right: 7cqw; top: auto; bottom: 6cqw; width: auto; transform: none; }
  .tel-f .haut-t span:first-child, .bilan { display: none; }
  .tel-f .ile { width: 26%; }
  .compo.tel-compo { left: 50%; right: auto; top: auto; bottom: 4cqw; width: 46cqw; transform: translateX(-50%); font-size: max(10px, calc(var(--u) * 1.2)); }
  .c-mail { width: 88%; }
  .outils-flottent span:nth-child(n+5) { display: none; }
  .appel-f .appel-titre { font-size: 8.4cqw; max-width: 86cqw; }
  .appel-f .logo-f { font-size: 9cqw; }
  .mois-film { max-width: 86cqw; }
  .outils-flottent span:is(:nth-child(2), :nth-child(4)) { left: auto !important; right: 5%; }
  .carton .logo-f { font-size: 13cqw; }
  .carton p { max-width: 84cqw; }
  .filigrane { padding: 4px 9px; font-size: 10.5px; opacity: .72; }
  /* Aucun texte de carte sous 11 px sur téléphone */
  .rang small, .sources span, .sources::before, .mois-film span b { font-size: 11px; }
  .mois-film span { font-size: 12px; }
}
@container (max-width: 640px) { .film-fin p { font-size: 26px; } .voir { display: none; } .statut-f .icones svg:first-child { display: none; } }

/* Compléments du film */
.ap { animation-name: apparait; animation-duration: .6s; animation-timing-function: ease; }
.c-fact { animation: carteHaut .7s cubic-bezier(.2, .8, .2, 1) both; }
.c-fact .pile-etat .appel { animation: popIn .5s cubic-bezier(.2, .8, .2, 1) both, anneau 1.1s ease-out 2 both; }
.bt .apres { color: var(--vert); }
.compteur { justify-items: end; }
.sc.clair .choc .dit em { color: var(--vert); }
.tap { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); min-width: 26px; min-height: 26px; border-radius: 50%; background: rgba(11, 18, 32, .22); box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 6px 16px rgba(11, 18, 32, .3); opacity: 0; pointer-events: none; animation: tap .9s ease both; }
@keyframes tap { 0% { opacity: 0; transform: translate(10%, 40%) scale(1.3); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(.72); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
.sc .plan { animation-delay: calc(0s - var(--decal, 0s)) !important; }
.calme .pile-etat .avant, .calme .bt .avant, .calme .compteur .avant, .calme .tap { display: none; }
@media (prefers-reduced-motion: reduce) { .pile-etat .avant, .bt .avant, .compteur .avant, .tap { display: none; } }

@media (max-width: 680px) {
  .voir { padding: 6px 14px 6px 6px; font-size: 13.5px; gap: 8px; }
  .voir i { width: 30px; height: 30px; }
  .voir small { display: none; }
  .film-cadre { margin-top: 44px; padding: 6px; border-radius: 28px; }
  .film { border-radius: 22px; }
  .film-bas { gap: 12px; padding: 10px 12px; }
  .lecture { width: 38px; height: 38px; }
  .chrono { font-size: 12px; }
  .son-film { width: 38px; height: 38px; }
  .son-ecran { padding: 6px 13px 6px 9px; gap: 6px; font-size: 13px; }
  .son-ecran svg { width: 17px; height: 17px; }
  .voir { font-size: 14.5px; padding: 8px 18px 8px 8px; gap: 10px; }
  .voir i { width: 36px; height: 36px; }
}
