/* Accueil (10/11/2026) : la section « Donnez vie à votre guide en 20 minutes » reprend celle de /lp-video à
   l'identique (choix de Valentin, revue du 10/11). Le balisage est lu dans lp-video.html à la construction de
   l'accueil (tools/accueil-source, Methode remplacée) ; l'animation est js/lpv2-fil.js, la même que la LP.
   Cette feuille = css/lpv2-fil.css + les règles .mt-* de css/lpv4.css, lpv8.css et lpv9.css, plus les variables
   de la LP dont elles ont besoin. Une retouche de l'animation sur la LP se reporte ici. */
#comment .mt-fil {
    --lp2-sand: #E8DCCD; --lp2-muted: #4F453F; --lp2-sienna-ink: #80301A;
    --lp2-fd: 'Playfair Display', Georgia, serif; --lp2-fs: 'Raleway', system-ui, -apple-system, sans-serif;
    --lp2-ease: cubic-bezier(.22, 1, .36, 1); --ease: cubic-bezier(.32, .72, 0, 1);
    --sienna: #BA4A2C; --espresso: #1C1611; --linen: #F1E9E0; --t-texte: 17px;
}

/* ---- css/lpv2-fil.css ---- */
/* « Vingt minutes, pas vos soirées » : « Le fil », la mise en scène choisie pour la page d'accueil le 01/11, une étape à la
   fois, reprise ici le 04/11. La scène est dessinée pour 300 x 250 et se met à la largeur de son cadre (6:5). L'état
   composé (sans animation) : documents rangés à gauche, tablette remplie à droite, « Votre livret est prêt ». Les vols
   partent de cet état : le changer, c'est revoir MUR dans js/lpv2-fil.js. Le minutage aussi est dans ce script. */

.mt-box { --mt-encre: #241E1A; --mt-papier: #FFFDF8; --mt-ligne: #E8DFD3; --mt-ligne-fonce: #D3C7B8; --mt-surligne: rgba(200, 164, 77, .42); --mt-vol: rgba(200, 164, 77, .5); --mt-vide: #E9E0D4; --mt-case: rgba(255, 255, 255, .6); --mt-ombre-doc: 0 1px 2px rgba(36, 30, 26, .07), 0 14px 26px -18px rgba(36, 30, 26, .42); position: relative; display: block; width: 100%; aspect-ratio: 6 / 5; overflow: hidden; isolation: isolate; border-radius: 22px; background: radial-gradient(110% 90% at 60% 34%, #F7F1EA 0%, var(--linen) 72%); color: var(--mt-encre); font-family: var(--lp2-fs); -webkit-font-smoothing: antialiased; contain: layout paint; }
.mt-scene { position: absolute; left: 50%; top: 0; width: 300px; height: 250px; margin-left: -150px; transform: scale(var(--mt-k, 1)); transform-origin: 50% 0; transition: opacity .25s ease; }
/* Avec le script : rien tant que la scène n'est pas réglée sur sa première image (pas d'éclair de l'état composé) */
.lp2-js .mt-box:not(.is-prete) .mt-scene { visibility: hidden; }
.mt-box.is-fondu .mt-scene { opacity: 0; }
.mt-scene > * { position: absolute; }
.mt-box img { display: block; max-width: none; border: 0; }
/* ─── La photo du mur : 375 x 250 (la photo entière en hauteur), cadrée à gauche, la tablette au tiers ─── */
.mt-mur { z-index: 0; left: 0; top: 0; width: 375px; height: 250px; opacity: 0; transform-origin: 35.13% 51.12%; }
.mt-mur picture, .mt-mur img { display: block; width: 100%; height: 100%; }
.mt-mur img { object-fit: cover; }
/* ─── Les documents (position de dépôt ; l'état composé les range en colonne à gauche) ─── */
.mt-doc { z-index: 2; box-sizing: border-box; transform-origin: 0 0; box-shadow: var(--mt-ombre-doc); }
.mt-livret { left: 39px; top: 50px; width: 100px; height: 136px; border-radius: 3px 7px 7px 3px; background: var(--mt-papier); transform: translate(-27px, -24px) scale(.64); }
.mt-page { position: absolute; inset: 0; box-sizing: border-box; padding: 17px 13px 0 15px; display: flex; flex-direction: column; gap: 8px; }
.mt-ligne { position: relative; display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--mt-ligne); }
.mt-ligne--titre { width: 56%; height: 6px; margin-bottom: 6px; background: var(--mt-ligne-fonce); }
.mt-ligne--m { width: 80%; }
.mt-ligne--c { width: 58%; }
.mt-sur { position: absolute; left: -3px; right: -3px; top: -3px; bottom: -3px; border-radius: 3px; background: var(--mt-surligne); transform-origin: 0 50%; opacity: 0; }
.mt-couv { position: absolute; z-index: 1; inset: 0; border-radius: inherit; overflow: hidden; background: var(--mt-papier); transform-origin: 0 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.mt-couv img { width: 100%; height: 80px; object-fit: cover; }
.mt-couv b { display: block; padding: 10px 10px 0 12px; font: 600 13px/1.12 var(--lp2-fd); color: var(--mt-encre); }
.mt-livret::after { content: ''; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(36, 30, 26, .07); }
/* L'annonce : photo, logo discret, deux lignes */
.mt-annonce { left: 157px; top: 55px; width: 104px; height: 124px; padding: 4px; border-radius: 12px; background: #FFF; transform: translate(-145px, 69px) scale(.64); }
.mt-photo { position: relative; display: block; width: 96px; height: 72px; border-radius: 9px; overflow: hidden; background: #CDBFAE; }
.mt-photo img { width: 96px; height: 72px; object-fit: cover; }
.mt-photo .mt-sur { inset: 0; border-radius: 9px; background: rgba(255, 248, 230, .12); box-shadow: inset 0 0 0 2px rgba(200, 164, 77, .95); }
.mt-ab { display: flex; align-items: center; gap: 5px; margin: 10px 6px 0; }
.mt-ab svg { flex: none; width: 10px; height: 10px; fill: #FF385C; }
.mt-ab .mt-ligne { width: 52%; height: 5px; background: var(--mt-ligne-fonce); }
.mt-annonce > .mt-ligne { margin: 9px 6px 0; width: 80%; }
.mt-annonce > .mt-ligne--c { margin-top: 7px; width: 56%; }
/* Le surlignage qui glisse de son passage jusqu'à sa case (positions écrites par js/lpv2-fil.js) */
.mt-vol { z-index: 5; left: 0; top: 0; width: 10px; height: 4px; border-radius: 3px; background: var(--mt-vol); opacity: 0; pointer-events: none; }
.mt-vol--photo { overflow: hidden; background: #CDBFAE; box-shadow: 0 10px 22px -12px rgba(36, 30, 26, .45); }
.mt-vol--photo img { width: 100%; height: 100%; object-fit: cover; }
/* ─── La tablette (taille pleine ; l'état composé la réduit à droite) ─── */
.mt-tablette { z-index: 1; left: 18px; top: 16px; width: 264px; box-sizing: border-box; padding: 8px; border-radius: 20px; background: var(--mt-encre); transform-origin: 0 0; box-shadow: 0 0 0 1px rgba(36, 30, 26, .06), 0 20px 36px -22px rgba(36, 30, 26, .5); transform: translate(90px, 34px) scale(.7); }
.mt-ecran { position: relative; width: 248px; height: 175px; border-radius: 12px; overflow: hidden; background: var(--mt-vide); }
/* Les cases aux places exactes des tuiles du vrai écran (methode-ecran-lena.webp, 826 x 582, en %) */
.mt-case { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border-radius: 6px; background: var(--mt-case); }
.mt-case-in { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; }
.mt-case-in img { position: absolute; width: calc(10000% / var(--w)); height: calc(10000% / var(--h)); left: calc(-100% * var(--x) / var(--w)); top: calc(-100% * var(--y) / var(--h)); }
.mt-case--accueil { --x: 2.42; --y: 10.74; --w: 53.75; --h: 82.04; border-radius: 7px; }
.mt-case--sejour { --x: 59; --y: 11.2; --w: 18.3; --h: 23.9; }
.mt-case--adresses { --x: 79.45; --y: 11.2; --w: 18.2; --h: 23.9; }
.mt-case--services { --x: 59; --y: 38.3; --w: 18.3; --h: 24; }
.mt-case--histoire { --x: 79.45; --y: 38.3; --w: 18.2; --h: 24; }
.mt-case--wifi { --x: 59; --y: 65.3; --w: 38.6; --h: 28.1; }
.mt-plein { position: absolute; inset: 0; width: 100%; height: 100%; }
/* La phrase de fin du chapitre 2 (sous la tablette ; l'état composé la place sous la petite tablette) */
.mt-pret { z-index: 4; left: 0; top: 217px; width: 300px; display: flex; justify-content: center; align-items: center; gap: 6px; font: 600 11.5px/1 var(--lp2-fs); letter-spacing: .01em; white-space: nowrap; transform: translate(50px, -20px); }
.mt-pret svg { flex: none; width: 14px; height: 14px; padding: 2.5px; box-sizing: border-box; border-radius: 50%; background: var(--sienna); fill: none; stroke: #FFF; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
/* ─── La validation : un voile, puis la feuille (celle de Valentin, à l'échelle de la scène) ─── */
.mt-voile { z-index: 6; inset: 0; background: rgba(28, 22, 17, .3); opacity: 0; }
.mt-feuille { z-index: 7; left: 52px; top: 36px; width: 196px; box-sizing: border-box; display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 18px; background: #FFF; box-shadow: 0 1px 2px rgba(36, 30, 26, .08), 0 24px 40px -24px rgba(36, 30, 26, .55); opacity: 0; }
.mt-point { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 9px 0 10px; border-radius: 10px; background: #F7F2EA; }
.mt-point > svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--sienna); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-point > svg .mt-plein-pt { fill: var(--sienna); stroke: none; }
.mt-point b { flex: 1; font: 600 12px/1 var(--lp2-fs); color: var(--mt-encre); }
.mt-point > i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid var(--sienna); border-radius: 50%; background: var(--sienna); }
.mt-point > i svg { width: 12px; height: 12px; fill: none; stroke: #FFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 0; }
.mt-valider { position: relative; display: grid; place-items: center; height: 34px; margin-top: 3px; border-radius: 999px; overflow: hidden; background: var(--sienna); color: #FFF; font: 600 12px/1 var(--lp2-fs); box-shadow: 0 8px 18px -10px rgba(186, 74, 44, .9); }
.mt-valider > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 5px; }
.mt-valider__b { opacity: 0; }
.mt-valider__b svg { width: 13px; height: 13px; fill: none; stroke: #FFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mt-tap { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .5); opacity: 0; }

/* ---------- Les textes des étapes ---------- */
.mt-tag { display: flex; align-items: center; gap: 10px; margin: 20px 4px 0; font: 600 11px/1.5 var(--lp2-fs); letter-spacing: .17em; text-transform: uppercase; color: var(--lp2-sienna-ink); }
.mt-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sienna); font: 700 12px/1 var(--lp2-fs); letter-spacing: 0; color: #FFF; }
.mt-t { margin: 12px 4px 0; font: 600 22px/1.25 var(--lp2-fd); color: var(--espresso); }
.mt-d { margin: 8px 4px 0; font: 500 16px/1.6 var(--lp2-fs); color: var(--lp2-muted); text-wrap: pretty; }
.mt-fil__barre i, .mt-frise__barre i { display: block; width: 100%; height: 100%; background: var(--sienna); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.mt-fil { display: grid; gap: 28px; max-width: 560px; margin: 44px auto 0; }
.mt-fil__vis { position: relative; }
.mt-revoir { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 13px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: 0 1px 4px rgba(28, 22, 17, .14); font: 600 13px/1 var(--lp2-fs); color: var(--espresso); cursor: pointer; animation: mt-revoir .5s var(--lp2-ease) both; transition: transform .15s ease; -webkit-tap-highlight-color: transparent; }
.mt-revoir[hidden] { display: none; }
.mt-revoir:active { transform: scale(.94); }
.mt-revoir:focus-visible { outline: 2px solid var(--sienna); outline-offset: 3px; }
.mt-revoir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes mt-revoir { from { opacity: 0; transform: translateY(6px); } }
.mt-fil__liste { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mt-chap { position: relative; padding: 12px 4px 14px 22px; cursor: pointer; transition: opacity .6s var(--lp2-ease); -webkit-tap-highlight-color: transparent; }
.mt-fil.is-lecture .mt-chap:not(.is-actif) { opacity: .42; }
.mt-fil__barre { position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; overflow: hidden; border-radius: 2px; background: var(--lp2-sand); }
.mt-fil__barre i { transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
.mt-chap .mt-tag { margin: 0; }
.mt-chap .mt-t { margin: 10px 0 0; }
.mt-chap .mt-d { margin: 0; padding-top: 6px; }
.mt-frise { display: none; }
@media (max-width: 1023px) {
    .mt-fil { gap: 0; }
    .mt-frise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
    .mt-frise__pas { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .6s var(--lp2-ease); -webkit-tap-highlight-color: transparent; }
    .mt-fil.is-lecture .mt-frise__pas:not(.is-actif) { opacity: .42; }
    .mt-frise__pas .mt-n { flex: none; width: 24px; height: 24px; font-size: 11px; }
    .mt-frise__barre { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: var(--lp2-sand); }
    .mt-frise__pas:focus-visible { border-radius: 6px; outline: 2px solid var(--sienna); outline-offset: 2px; }
    .mt-fil__liste { margin-top: 8px; }
    .mt-chap { grid-area: 1 / 1; padding: 0 2px; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
    .mt-fil.is-lecture .mt-chap:not(.is-actif), .mt-chap:not(.is-actif) { opacity: 0; visibility: hidden; }
    .mt-chap.is-actif { transition: opacity .45s var(--lp2-ease) .2s, visibility 0s; }
    .mt-chap .mt-n, .mt-fil__barre { display: none; }
}
.mt-chap__btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mt-chap__btn:focus-visible { border-radius: 4px; outline: 2px solid var(--sienna); outline-offset: 4px; }
@media (min-width: 1024px) {
    .mt-fil { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; column-gap: clamp(40px, 5vw, 80px); max-width: 1080px; margin-top: 56px; }
}

/* Étape 1 (Valentin, 07/11 : « on doit comprendre que les infos sont lues par l'IA ») : une ligne de lecture balaie le
   livret puis l'annonce, et une pastille « L'IA lit vos documents » s'affiche au-dessus (temps : js/lpv2-fil.js) */
.mt-scan { position: absolute; z-index: 3; left: 3px; right: 3px; top: 0; height: 16px; border-radius: 3px; pointer-events: none; opacity: 0;
    background: linear-gradient(to bottom, rgba(200, 164, 77, 0), rgba(200, 164, 77, .3)); border-bottom: 1.5px solid #BA4A2C; box-shadow: 0 6px 12px -6px rgba(186, 74, 44, .6); }
.mt-annonce .mt-scan { border-radius: 8px 8px 3px 3px; }
.mt-ia { z-index: 4; left: 0; top: 12px; width: 300px; display: flex; justify-content: center; opacity: 0; pointer-events: none; }
.mt-ia-in { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: #FFF; color: var(--mt-encre);
    font: 600 11px/1 var(--lp2-fs); letter-spacing: .01em; white-space: nowrap; box-shadow: 0 0 0 1px rgba(36, 30, 26, .06), 0 8px 18px -10px rgba(36, 30, 26, .45); }
.mt-ia-in svg { flex: none; width: 12px; height: 12px; fill: #BA4A2C; }
.mt-ia-pts { display: inline-flex; gap: 2px; margin-left: 1px; }
.mt-ia-pts i { width: 2.5px; height: 2.5px; border-radius: 50%; background: currentColor; opacity: .25; animation: mt-ia-pt 1.2s ease-in-out infinite; }
.mt-ia-pts i:nth-child(2) { animation-delay: .2s; } .mt-ia-pts i:nth-child(3) { animation-delay: .4s; }
@keyframes mt-ia-pt { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mt-ia-pts i { animation: none; opacity: .6; } }

/* ---- règles .mt-* des autres feuilles de la LP ---- */
/* lpv4.css */ .mt-page .mt-page-t { display: block; margin: 0 0 2px; font: 600 12px/1.12 var(--lp2-fd, 'Playfair Display', Georgia, serif); color: var(--mt-encre, #241E1A); }
/* lpv4.css */ .mt-tag:empty, .mt-tag { gap: 0; }
/* lpv8.css */ .mt-d { font-size: var(--t-texte); }
/* lpv8.css */ #comment .mt-chap__btn { min-height: 44px; padding: 10px 0; }
/* lpv9.css */ @media (min-width: 1100px) { #comment .mt-fil { max-width: 1120px; } }
/* lpv9.css */ @media (max-width: 767px) { #comment .mt-chap { padding-left: 0 !important; } }
/* lpv9.css */ .mt-fil.is-lecture .mt-frise__pas:not(.is-actif) { opacity: 1 !important; }
/* lpv9.css */ .mt-fil.is-lecture .mt-frise__pas:not(.is-actif) .mt-n { background: transparent !important; color: #8A5A48 !important; box-shadow: inset 0 0 0 1.5px rgba(186, 74, 44, .55); }
/* lpv9.css */ .mt-fil.is-lecture .mt-chap:not(.is-actif) { opacity: 1 !important; }
/* lpv9.css */ .mt-fil.is-lecture .mt-chap:not(.is-actif) .mt-chap__btn, .mt-fil.is-lecture .mt-chap:not(.is-actif) .mt-d { color: #6E6259; transition: color .6s var(--ease); }
/* lpv9.css */ .mt-valider { background: #1C1611 !important; box-shadow: none !important; }
/* lpv9.css */ .mt-box { background: #FBF7F2 !important; box-shadow: 0 0 0 1px rgba(28, 22, 17, .06) !important; }
/* lpv9.css */ .mt-tablette { background: #2A2A2D !important; box-shadow: 0 0 0 1px rgba(205, 205, 210, .9), 0 0 0 2px rgba(36, 30, 26, .08), 0 20px 36px -22px rgba(36, 30, 26, .45) !important; }
/* lpv9.css */ .mt-feuille { top: 26px !important; }
/* lpv9.css */ .mt-feuille-t { display: flex; align-items: center; gap: 6px; margin: 1px 2px 1px; font: 600 11px/1.2 var(--lp2-fs); color: #6E6259; }
/* lpv9.css */ .mt-feuille-t svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--sienna); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* lpv9.css */ .mt-point { position: relative; }
/* lpv9.css */ .mt-point > i.mt-tap { position: absolute; left: auto; right: 5px; top: 50%; width: 26px; height: 26px; margin: -13px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(186, 74, 44, .32); opacity: 0; display: block; pointer-events: none; }
.mt-revoir:active { transform: scale(.96); transition-duration: .12s; }
.mt-box { border-radius: 24px !important; }
