/* =====================================================================
   SolaWeb — accueil immersif (25.11.2026)
   La page se déroule à la molette : chaque « scène » reste épinglée à l'écran
   pendant qu'on fait défiler, et son contenu avance avec le défilement
   (variable --p de 0 à 1, calculée par js/scenes.js).
   Chargé seulement par index.html, après solaweb.css.
   ===================================================================== */

.scene { position: relative; height: var(--h, 300vh); }
.scene-colle { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- Scène 1 : le chantier ---------- */
.scene-chantier { background: var(--nuit-fonce); color: var(--clair-sur-nuit); }
.scene-chantier .scene-colle { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); width: var(--largeur); margin-inline: auto; overflow: visible; }
.chantier-texte h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 0 0 2.2rem; }
.legendes { position: relative; min-height: 11rem; }
.legende { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .7s var(--doux); }
.legende.active { opacity: 1; transform: none; }
.legende b { display: block; font-family: var(--titre); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); color: #fff; margin-bottom: .5rem; }
.legende p { margin: 0; color: rgba(243, 238, 228, .82); max-width: 30rem; }
.compteur { display: flex; gap: .45rem; margin-top: 1.6rem; }
.compteur i { width: 2.2rem; height: 3px; border-radius: 3px; background: rgba(243, 238, 228, .2); overflow: hidden; position: relative; }
.compteur i::after { content: ""; position: absolute; inset: 0; background: var(--soleil); transform: scaleX(var(--f, 0)); transform-origin: left; }
/* l'ordinateur */
.chantier-scene { position: relative; }
.ordi { position: relative; width: 100%; }
.ordi-ecran { position: relative; border-radius: 14px 14px 4px 4px; background: #0B111E; padding: 12px 12px 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .08); }
.ordi-adresse { display: flex; align-items: center; gap: .55rem; height: 2rem; padding: 0 .8rem; margin-bottom: 8px; border-radius: 6px; background: #161F33; color: rgba(243, 238, 228, .55); font-size: .82rem; }
.ordi-adresse .pastille { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(243, 238, 228, .25); transition: background-color .5s; }
.scene-chantier.en-ligne .ordi-adresse .pastille { background: #3DBB7A; }
.ordi-adresse .curseur { display: inline-block; width: 1px; height: 1em; background: currentColor; margin-left: 1px; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.ordi-page { position: relative; aspect-ratio: 900 / 506; border-radius: 4px; overflow: hidden; background: #101A2E; }
.filaire { position: absolute; inset: 0; width: 100%; height: 100%; }
.filaire .t { fill: none; stroke: rgba(243, 238, 228, .7); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--trace, 0)); vector-effect: non-scaling-stroke; }
.filaire .t.o { stroke: var(--soleil-clair); }
.filaire .r { fill: rgba(243, 238, 228, .07); opacity: var(--remplit, 0); }
.ordi-page .reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 calc(100% - var(--lum, 0) * 100%) 0 0); }
.ordi-page .balayage { position: absolute; top: 0; bottom: 0; width: 22%; left: calc(var(--lum, 0) * 100% - 11%); background: linear-gradient(90deg, transparent, rgba(255, 214, 170, .55), transparent); opacity: calc(var(--lum, 0) * (1 - var(--lum, 0)) * 4); pointer-events: none; mix-blend-mode: screen; }
.notes { position: absolute; inset: 0; pointer-events: none; }
.notes span { position: absolute; background: #FFF1CF; color: var(--encre); font-size: clamp(.7rem, 1vw, .85rem); font-weight: 600; padding: .35rem .6rem; border-radius: 4px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); opacity: var(--notes, 0); transform: translateY(calc((1 - var(--notes, 0)) * 14px)) rotate(-2deg); }
.notes span:nth-child(1) { top: 46%; left: 64%; }
.notes span:nth-child(2) { top: 72%; left: 10%; transform: translateY(calc((1 - var(--notes, 0)) * 14px)) rotate(2deg); }
.ordi-pied { height: 14px; margin: 0 -6%; border-radius: 0 0 12px 12px; background: linear-gradient(#2A3246, #161C2A); }
/* le téléphone sort de l'ordinateur à la fin */
.tel-sort { position: absolute; right: -4%; bottom: -6%; width: 22%; aspect-ratio: 500 / 1100; border-radius: 1.2rem; background: #0B111E; padding: .45rem; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8); opacity: var(--tel, 0); transform: translate(calc((1 - var(--tel, 0)) * -40%), calc((1 - var(--tel, 0)) * 20%)) rotate(calc((1 - var(--tel, 0)) * -8deg)); }
.tel-sort img { width: 100%; height: 100%; object-fit: cover; border-radius: .85rem; }
.chantier-legende { margin-top: 2.4rem; font-size: .82rem; color: rgba(243, 238, 228, .55); }
@media (max-width: 860px) {
  .scene-chantier .scene-colle { grid-template-columns: 1fr; align-content: center; gap: 1.6rem; }
  .chantier-texte h2 { margin-bottom: 1rem; font-size: 1.6rem; }
  .legendes { min-height: 8.5rem; }
  .legende p { font-size: .95rem; }
  .chantier-legende { margin-top: 1.6rem; }
}

/* ---------- Scène 2 : les services, en défilement horizontal ---------- */
.scene-services { background: var(--papier); }
.scene-services .scene-colle { display: flex; flex-direction: column; justify-content: center; }
.services-tete { width: var(--largeur); margin: 0 auto 2.2rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.services-tete h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.services-tete p { margin: 0; color: var(--texte); max-width: 26rem; }
.piste { display: flex; gap: 2rem; padding-left: calc((100vw - var(--largeur)) / 2); width: max-content; transform: translateX(calc(var(--decale, 0) * -1px)); will-change: transform; }
.panneau { position: relative; flex: none; width: min(36rem, 78vw); min-height: min(30rem, 62vh); border-radius: 12px; background: #fff; border: 1px solid var(--filet-s); padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; overflow: hidden; transition: border-color .5s; }
.panneau.au-centre { border-color: rgba(31, 45, 77, .35); }
.panneau .p-3d { width: clamp(7rem, 12vw, 10rem); aspect-ratio: 1; margin: -.5rem 0 1.2rem -.6rem; transform: scale(calc(.85 + var(--proche, 0) * .2)); transition: transform .3s linear; }
.panneau .p-3d img { width: 100%; height: 100%; object-fit: contain; }
.panneau h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .8rem; }
.panneau p { margin: 0 0 1.4rem; color: var(--texte); font-size: 1.08rem; max-width: 28rem; }
.panneau ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.panneau li { font-size: .9rem; padding: .3rem .7rem; border-radius: 6px; background: var(--pierre); color: var(--encre); }
.panneau .p-pied { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--filet-s); }
.panneau .p-pied strong { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; }
.panneau-fin { background: var(--nuit); color: var(--clair-sur-nuit); border-color: var(--nuit); justify-content: center; }
.panneau-fin h3 { color: #fff; }
.panneau-fin p { color: rgba(243, 238, 228, .82); }
/* l'horizon de progression, avec son petit soleil */
.horizon-progres { width: var(--largeur); margin: 2.4rem auto 0; height: 2px; background: var(--filet-s); position: relative; }
.horizon-progres::before { content: ""; position: absolute; inset: 0; background: var(--soleil); transform: scaleX(var(--p, 0)); transform-origin: left; }
.horizon-progres i { position: absolute; top: -9px; left: calc(var(--p, 0) * 100% - 9px); width: 18px; height: 9px; border-radius: 18px 18px 0 0; background: var(--soleil); }
@media (max-width: 820px) {
  .scene-services { height: auto !important; }
  .scene-services .scene-colle { position: static; height: auto; padding: 4.5rem 0; }
  .services-tete { flex-direction: column; align-items: start; }
  .piste { flex-direction: column; width: var(--largeur); margin-inline: auto; padding: 0; transform: none !important; gap: 1.2rem; }
  .panneau { width: 100%; min-height: 0; }
  .horizon-progres { display: none; }
}

/* ---------- Scène 3 : la promesse s'allume mot à mot ---------- */
.scene-promesse { background: var(--nuit-fonce); color: var(--clair-sur-nuit); }
.scene-promesse .scene-colle { display: flex; flex-direction: column; justify-content: center; }
.scene-promesse .scene-colle::before { content: ""; position: absolute; left: 50%; bottom: -60vmax; width: 120vmax; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, calc((1 - var(--p, 0)) * 30%)); background: radial-gradient(circle, rgba(224, 123, 57, .55) 0%, rgba(224, 123, 57, .18) 35%, rgba(224, 123, 57, 0) 62%); opacity: calc(.25 + var(--p, 0) * .75); pointer-events: none; }
.promesse { position: relative; width: var(--largeur); margin: 0 auto; }
.promesse-texte { margin: 0; font-family: var(--titre); font-weight: 600; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.12; letter-spacing: -.025em; max-width: 18ch; }
.promesse-texte .m { color: rgba(243, 238, 228, .16); transition: color .5s ease; }
.promesse-texte .m.allume { color: #fff; }
.promesse-texte .m.allume.chaud { color: var(--soleil-clair); }
.promesse-faits { list-style: none; margin: 3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.promesse-faits li { max-width: 17rem; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .8s var(--doux); color: rgba(243, 238, 228, .85); }
.promesse-faits li b { display: block; color: #fff; font-family: var(--titre); font-weight: 600; margin-bottom: .2rem; }
.scene-promesse.faits .promesse-faits li { opacity: 1; transform: none; }
.scene-promesse.faits .promesse-faits li:nth-child(2) { transition-delay: .1s; }
.scene-promesse.faits .promesse-faits li:nth-child(3) { transition-delay: .2s; }
.promesse-faits a { color: var(--clair-sur-nuit); }

/* ---------- Exemples : légère profondeur ---------- */
.exemples .exemple .e-img { transform: translateY(calc(var(--prof, 0) * 1px)); }

/* ---------- Scène 4 : le coucher de soleil ---------- */
.scene-couchant { --h: 170vh; background: var(--nuit-fonce); color: var(--clair-sur-nuit); }
.scene-couchant .scene-colle { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, #2B3D63 calc((1 - var(--p, 0)) * 100%), #141C2E) 0%, color-mix(in srgb, #8A5A4A calc((1 - var(--p, 0)) * 70%), #1C2438) 100%); }
.couchant-ciel { position: absolute; left: 50%; bottom: 30%; width: clamp(14rem, 34vw, 26rem); aspect-ratio: 2 / 1; overflow: hidden; transform: translateX(-50%); }
.couchant-ciel span { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #F4A266, var(--soleil) 60%, #C9602A); transform: translateY(calc(var(--p, 0) * 52%)); }
.couchant-horizon { position: absolute; left: 0; right: 0; bottom: 30%; height: 2px; background: rgba(243, 238, 228, .7); }
.couchant-reflet { position: absolute; left: 50%; bottom: calc(30% - 14px); width: clamp(8rem, 20vw, 15rem); height: 3px; border-radius: 3px; background: var(--soleil); transform: translateX(-50%) scaleX(calc(1 - var(--p, 0) * .8)); opacity: calc(.7 - var(--p, 0) * .5); }
.couchant-texte { position: relative; z-index: 1; margin-bottom: 18vh; opacity: calc(var(--p, 0) * 2.2 - .4); transform: translateY(calc((1 - min(var(--p, 0) * 1.6, 1)) * 30px)); }
.couchant-texte h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 1rem; }
.couchant-texte p { margin: 0 auto 2rem; max-width: 30rem; color: rgba(243, 238, 228, .85); }

/* ---------- Le soleil de la journée (progression de la page) ---------- */
.journee { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40; width: 64px; height: 36px; pointer-events: none; opacity: 0; transition: opacity .6s; }
html.pret .journee { opacity: .9; }
.journee svg { width: 100%; height: 100%; overflow: visible; }
.journee .arc { fill: none; stroke: rgba(120, 130, 150, .45); stroke-width: 1.5; stroke-dasharray: 3 3; }
.journee .sol { stroke: rgba(120, 130, 150, .7); stroke-width: 1.5; }
.journee circle { fill: var(--soleil); }
@media (max-width: 820px) { .journee { display: none; } }

/* ---------- Haut de page : le téléphone suit la souris ---------- */
.accueil .vitrine .tel { transform: perspective(900px) rotateY(calc(var(--sx, 0) * 8deg)) rotateX(calc(var(--sy, 0) * -6deg)); transition: transform .6s var(--doux); }
.accueil-fond video { translate: calc(var(--sx, 0) * -12px) calc(var(--sy, 0) * -8px); transition: translate .8s var(--doux); }

/* ---------- Animations réduites : tout est posé, rien n'est épinglé ---------- */
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto !important; }
  .scene-colle { position: static; height: auto; padding: 5rem 0; }
  .scene-chantier { --trace: 1; --remplit: 1; --lum: 1; --tel: 1; --notes: 0; }
  .legende { position: static; opacity: 1; transform: none; margin-bottom: 1.4rem; }
  .legendes { min-height: 0; }
  .piste { flex-wrap: wrap; width: var(--largeur); margin-inline: auto; padding: 0; transform: none !important; }
  .promesse-texte .m { color: #fff; }
  .promesse-faits li { opacity: 1; transform: none; }
  .scene-couchant { --p: .6; }
  .couchant-texte { opacity: 1; transform: none; }
  .accueil .vitrine .tel, .accueil-fond video { transform: none; translate: none; }
  .journee { display: none; }
}
/* bouton clair sur le ciel du soir */
html body .scene-couchant .bouton, html body .panneau-fin .bouton { --b-soleil: #F6D3B4; background: var(--clair-sur-nuit) !important; border-color: var(--clair-sur-nuit) !important; color: var(--nuit) !important; }

/* =====================================================================
   VERSION AÉRÉE (25.11.2026, soir)
   ===================================================================== */
/* ---------- Le téléphone : de vrais petits sites, nets et animés ---------- */
.tel-ecran { container-type: size; background: #fff; }
.mini { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: scale(.97); transition: opacity .45s ease, transform .6s var(--doux); font-family: var(--corps); }
.mini.actif { opacity: 1; transform: none; }
.mini-defile { animation: mini-defile 16s ease-in-out infinite; }
.tel:hover .mini-defile { animation-play-state: paused; }
@keyframes mini-defile { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(calc(var(--course, 0px) * -1)); } 100% { transform: translateY(0); } }
.mn-tete { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem .9rem .7rem; font-size: .82rem; }
.mn-tete b { font-weight: 700; letter-spacing: .01em; }
.mn-tete i { width: 1rem; height: .6rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.mn-tete i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.mn-heros { position: relative; height: 62cqh; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem; padding: 1rem .9rem 1.2rem; color: #fff; }
.mn-heros::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .65)); }
.mn-heros > * { position: relative; }
.mn-heros small { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.mn-heros strong { font-size: 1.05rem; line-height: 1.2; }
.mn-btn { display: inline-block; align-self: flex-start; padding: .45rem .8rem; border-radius: 6px; font-size: .68rem; font-weight: 700; background: var(--mn-acc); color: #fff; }
.mn-btn-l { background: transparent; border: 1px solid rgba(255, 255, 255, .7); margin-top: -.1rem; }
.mn-bloc { padding: 1rem .9rem 0; font-size: .74rem; }
.mn-bloc em { display: block; font-style: normal; font-weight: 700; font-size: .85rem; margin-bottom: .55rem; }
.mn-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.mn-photos span { aspect-ratio: 4 / 5; border-radius: 6px; background-size: cover; background-position: center; }
.mn-bloc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mn-bloc li { padding: .45rem .6rem; border-radius: 6px; background: var(--mn-fond2); }
.mn-pied { margin-top: 1rem; padding: .9rem; font-size: .66rem; text-align: center; background: var(--mn-fond2); }
.mini-peintre { --mn-acc: #D2692B; --mn-fond2: #EEF4F4; background: #fff; color: #173B44; }
.mini-peintre .mn-tete b { color: #1E5F6A; font-family: Georgia, serif; }
.mini-beaute { --mn-acc: #B5737B; --mn-fond2: #F7ECE8; background: #FDF8F5; color: #4A3236; }
.mini-beaute .mn-tete b { font-family: Georgia, serif; font-weight: 400; letter-spacing: .06em; }
.mini-resto { --mn-acc: #B8955A; --mn-fond2: #26211C; background: #171412; color: #EFE6D6; }
.mini-resto .mn-tete b { font-family: Georgia, serif; font-weight: 400; color: #D8BD86; }
.mini-autre { background: #fff; color: var(--nuit); }
.mini-autre .mini-defile { animation: none; }
.mn-vide { margin: .8rem .9rem 0; height: 50cqh; border: 1.5px dashed rgba(31, 45, 77, .35); border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.mn-vide-p { height: 12cqh; }
.accueil .vitrine { width: min(17.5rem, 100%); }

/* ---------- Services : au choix, avec une démonstration ---------- */
.scene-offre { background: var(--papier); }
.offre { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); width: var(--largeur); margin-inline: auto; overflow: visible; }
.offre-liste h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0 0 2rem; }
.offre-liste ol { list-style: none; margin: 0 0 2rem; padding: 0; }
.o-item { position: relative; border-top: 1px solid var(--filet-s); }
.o-item:last-child { border-bottom: 1px solid var(--filet-s); }
.o-item button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 0; }
.o-item button:focus-visible { outline: 2px solid var(--soleil); outline-offset: 4px; border-radius: 4px; }
.o-item img { width: 2.6rem; height: 2.6rem; object-fit: contain; opacity: .55; filter: grayscale(.6); transition: opacity .4s, filter .4s, transform .5s var(--doux); }
.o-nom { font-family: var(--titre); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); color: rgba(22, 33, 58, .45); transition: color .4s; }
.o-prix { font-size: .92rem; color: rgba(58, 69, 96, .6); transition: color .4s; }
.o-item:hover .o-nom { color: rgba(22, 33, 58, .75); }
.o-item.actif .o-nom { color: var(--encre); }
.o-item.actif .o-prix { color: var(--texte); }
.o-item.actif img { opacity: 1; filter: none; transform: scale(1.12) rotate(-4deg); }
.o-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--doux); }
.o-desc p { overflow: hidden; margin: 0; padding-left: 3.6rem; color: var(--texte); }
.o-item.actif .o-desc { grid-template-rows: 1fr; }
.o-item.actif .o-desc p { padding-bottom: 1.3rem; }
.o-trait { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--soleil); transform: scaleX(var(--f, 0)); transform-origin: left; }
.lien-simple { color: var(--nuit); text-decoration: none; background: linear-gradient(var(--soleil), var(--soleil)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; }
.lien-simple:hover { animation: trait-trace .55s var(--doux); }
/* les démonstrations */
.offre-demo { position: relative; min-height: min(30rem, 66vh); border-radius: 16px; background: linear-gradient(160deg, #EEF0F4, #E7E3DA); overflow: hidden; }
.demo { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .5s ease, transform .7s var(--doux), visibility 0s .5s; }
.demo.actif { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .1s, transform .7s var(--doux) .1s, visibility 0s; }
.d-legende { position: absolute; left: 1.4rem; bottom: 1rem; margin: 0; font-size: .8rem; color: var(--texte); }
.demo-site .d-ordi { width: 86%; border-radius: 10px; overflow: hidden; border: 8px solid #10182A; border-bottom-width: 12px; box-shadow: 0 30px 50px -30px rgba(22, 33, 58, .55); transform: perspective(1200px) rotateY(-8deg); transition: transform .8s var(--doux); }
.demo-site .d-tel { position: absolute; right: 7%; bottom: 14%; width: 18%; border-radius: 14px; overflow: hidden; border: 5px solid #10182A; box-shadow: 0 20px 40px -20px rgba(22, 33, 58, .6); transform: translateY(20px); transition: transform .9s var(--doux) .15s; }
.demo-site.actif .d-tel { transform: none; }
.offre-demo:hover .demo-site .d-ordi { transform: perspective(1200px) rotateY(0deg); }
.d-chat { width: min(24rem, 92%); background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -30px rgba(22, 33, 58, .5); padding: 0 1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.d-chat-tete { display: flex; align-items: center; gap: .5rem; margin: 0 -1rem .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--filet-s); font-size: .85rem; font-weight: 600; }
.d-chat-tete span { width: .55rem; height: .55rem; border-radius: 50%; background: #3DBB7A; }
.msg { margin: 0; max-width: 85%; padding: .55rem .8rem; border-radius: 12px; font-size: .88rem; line-height: 1.45; opacity: 0; transform: translateY(8px); }
.msg.client { align-self: flex-end; background: var(--nuit); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #F1EEE8; color: var(--encre); border-bottom-left-radius: 4px; }
.demo-ia.actif .msg { animation: msg-arrive .5s var(--doux) forwards; }
.demo-ia.actif .msg:nth-of-type(2) { animation-delay: .9s; }
.demo-ia.actif .msg:nth-of-type(3) { animation-delay: 2s; }
.demo-ia.actif .msg:nth-of-type(4) { animation-delay: 3s; }
@keyframes msg-arrive { to { opacity: 1; transform: none; } }
.d-flux { list-style: none; margin: 0; padding: 0; width: min(25rem, 94%); display: grid; gap: .7rem; counter-reset: f; }
.d-flux li { position: relative; background: #fff; border-radius: 12px; padding: .85rem 1rem .85rem 3.2rem; font-size: .88rem; color: var(--texte); box-shadow: 0 14px 30px -24px rgba(22, 33, 58, .5); opacity: 0; transform: translateX(-14px); }
.d-flux li b { display: block; color: var(--encre); font-weight: 600; }
.d-flux li::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 1.3rem; height: 1.3rem; margin-top: -.65rem; border-radius: 50%; border: 1.5px solid var(--filet-s); background: #fff; }
.d-flux li::after { content: ""; position: absolute; left: 1.42rem; top: 50%; width: .45rem; height: .25rem; margin-top: -.2rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.demo-auto.actif .d-flux li { animation: flux-arrive .5s var(--doux) forwards; }
.demo-auto.actif .d-flux li::before { animation: flux-coche .3s ease forwards; }
.demo-auto.actif .d-flux li:nth-child(2), .demo-auto.actif .d-flux li:nth-child(2)::before { animation-delay: .7s; }
.demo-auto.actif .d-flux li:nth-child(3), .demo-auto.actif .d-flux li:nth-child(3)::before { animation-delay: 1.4s; }
.demo-auto.actif .d-flux li:nth-child(4), .demo-auto.actif .d-flux li:nth-child(4)::before { animation-delay: 2.1s; }
.demo-auto.actif .d-flux li:nth-child(1)::before { animation-delay: .3s; }
@keyframes flux-arrive { to { opacity: 1; transform: none; } }
@keyframes flux-coche { to { background: #3DBB7A; border-color: #3DBB7A; } }
@media (max-width: 860px) {
  .scene-offre { height: auto !important; }
  .scene-offre .scene-colle { position: static; height: auto; padding: 4.5rem 0; }
  .offre { grid-template-columns: 1fr; gap: 1.6rem; }
  .offre-demo { min-height: 22rem; }
}

/* ---------- Fin de page : une demande en deux gestes ---------- */
.fin { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--papier); border-top: 1px solid var(--filet-s); }
.fin-boite { text-align: center; }
.fin-boite h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0 0 1rem; }
.fin-boite > p { margin: 0 auto 2.4rem; max-width: 34rem; color: var(--texte); font-size: 1.1rem; }
.fin-form { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.choix-fin { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.choix-fin label { position: relative; cursor: pointer; }
.choix-fin input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix-fin span { position: relative; display: inline-flex; align-items: center; min-height: 2.9rem; padding: .5rem 1.15rem; border-radius: 999px; border: 1px solid rgba(31, 45, 77, .25); color: var(--encre); font-weight: 500; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s; }
.choix-fin span::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 160%; aspect-ratio: 1; border-radius: 50%; background: var(--nuit); z-index: -1; transform: translate(-50%, 101%); transition: transform .5s var(--doux); }
.choix-fin label:hover span { border-color: var(--nuit); }
.choix-fin input:checked + span { color: #fff; border-color: var(--nuit); }
.choix-fin input:checked + span::before { transform: translate(-50%, 25%); }
.choix-fin input:focus-visible + span { outline: 2px solid var(--soleil); outline-offset: 3px; }

/* ---------- Animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  .mini-defile { animation: none; }
  .scene-offre { height: auto !important; }
  .scene-offre .scene-colle { position: static; height: auto; padding: 5rem 0; }
  .msg, .d-flux li { opacity: 1; transform: none; animation: none !important; }
}

/* chantier : se joue tout seul, sans épinglage (26.11.2026) */
.scene-chantier.scene-auto { height: auto !important; }
.scene-chantier.scene-auto .scene-colle { position: relative; height: auto; min-height: min(100svh, 820px); padding-block: clamp(4.5rem, 9vw, 7rem); }
