/* Rempart Assurances · Immersive « Ma protection, couche après couche » (core 1.0.17 ; v1.0.17 : étiquettes avec halo couleur du plateau et déplacées hors des traits ; core 1.0.16, prompt 7 de Benoit, V117). Couleurs
   et polices du cabinet (charte du thème ws-rempart-assurances : #F6F4EF, #ECE7DD, #17283A, #4E5D6C, #1F5F5B, #B5561E, #2C5A86, #5B4B8A ;
   DM Serif Display et Manrope, hébergées dans le thème), dessin de la scène. Tout est encapsulé sous .wsra-scene ; aucune
   règle globale. Mise en page : feuille commune scene.css. Version de cette feuille liée à sa date (filemtime). */
.wsra-scene { --wsra-scene-fond: #F6F4EF; --wsra-scene-texte: #17283A; --wsra-scene-discret: #4E5D6C; --wsra-scene-accent: #1F5F5B; --wsra-scene-accent-texte: #FFFFFF; --wsra-scene-ligne: rgba(23, 40, 58, .32); --wsra-scene-focus: #B5561E; --wsra-scene-titre-police: var(--f-display, "DM Serif Display", Georgia, serif); --wsra-scene-corps-police: var(--f-body, "Manrope", "Segoe UI", Arial, sans-serif); --wsra-scene-plateau: #ECE7DD; --wsra-scene-plateau-mobile: #ECE7DD; --wsra-scene-r: 999px; --wsra-scene-r-plateau: 16px; --wsra-scene-maxw: 1240px; --c-hab: #1F5F5B; --c-auto: #2C5A86; --c-fam: #9A4515; --c-ind: #5B4B8A; }
/* Aperçu de l'intro (statique) */
.wsra-scene .wsra-scene-apercu .ap-arc { fill: none; stroke: #1F5F5B; stroke-width: 6; stroke-linecap: round; }
.wsra-scene .wsra-scene-apercu .ap-arc-2 { stroke: #B5561E; stroke-width: 4; stroke-dasharray: 10 10; }
.wsra-scene .wsra-scene-apercu .ap-toit { fill: #17283A; }
.wsra-scene .wsra-scene-apercu .ap-mur { fill: #CFE5DC; stroke: #17283A; stroke-width: 3; }
.wsra-scene .wsra-scene-apercu .ap-porte { fill: #17283A; }
.wsra-scene .wsra-scene-apercu .ap-sol { stroke: #17283A; stroke-width: 3; }
/* Scène */
.wsra-scene .wsra-sv .halo { fill: #1F5F5B; opacity: .05; transition: opacity .8s ease; }
.wsra-scene .wsra-sv .sol { stroke: #17283A; stroke-width: 3; stroke-linecap: round; }
.wsra-scene .wsra-sv .toit { fill: #17283A; }
.wsra-scene .wsra-sv .mur { fill: #E9DFCC; stroke: #17283A; stroke-width: 3; transition: fill .6s ease; }
.wsra-scene .wsra-sv .porte { fill: #17283A; }
.wsra-scene .wsra-sv .fenetre { fill: #FFFFFF; stroke: #17283A; stroke-width: 2; }
.wsra-scene .wsra-sv .cle, .wsra-scene .wsra-sv .drapeau, .wsra-scene .wsra-sv .mallette { opacity: 0; transition: opacity .5s ease; }
.wsra-scene .wsra-sv .cle circle { fill: none; stroke: #B5561E; stroke-width: 3; }
.wsra-scene .wsra-sv .cle path { fill: none; stroke: #B5561E; stroke-width: 3; stroke-linecap: round; }
.wsra-scene .wsra-sv .drapeau { fill: #1F5F5B; stroke: #17283A; stroke-width: 2; }
.wsra-scene .wsra-sv .mallette rect { fill: #5B4B8A; }
.wsra-scene .wsra-sv .mallette path { fill: none; stroke: #5B4B8A; stroke-width: 2; }
.wsra-scene .wsra-sv .tete { fill: #17283A; }
.wsra-scene .wsra-sv .corps { fill: #4E5D6C; }
.wsra-scene .wsra-sv .carrosserie { fill: #2C5A86; stroke: #17283A; stroke-width: 2; stroke-linejoin: round; }
.wsra-scene .wsra-sv .vitre { fill: #DCE7F1; }
.wsra-scene .wsra-sv .roue { fill: #17283A; stroke: #ECE7DD; stroke-width: 4; }
/* Couches de protection : tracées une à une au fil des étapes */
.wsra-scene .wsra-sv .couche { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.wsra-scene .wsra-sv .c-hab { stroke: var(--c-hab); }
.wsra-scene .wsra-sv .c-auto { stroke: var(--c-auto); }
.wsra-scene .wsra-sv .c-fam { stroke: var(--c-fam); }
.wsra-scene .wsra-sv .c-ind { stroke: var(--c-ind); stroke-width: 5; }
.wsra-scene .wsra-sv .et { opacity: 0; font-family: var(--f-body, "Manrope", "Segoe UI", Arial, sans-serif); font-size: 15px; font-weight: 700; text-anchor: middle; paint-order: stroke fill; stroke: #ECE7DD; stroke-width: 6px; stroke-linejoin: round; transition: opacity .5s ease .5s; }
.wsra-scene .wsra-sv .et-hab { fill: var(--c-hab); }
.wsra-scene .wsra-sv .et-auto { fill: var(--c-auto); }
.wsra-scene .wsra-sv .et-fam { fill: var(--c-fam); }
.wsra-scene .wsra-sv .et-ind { fill: var(--c-ind); }
/* Étapes : habitation (2), voiture (3), famille (4), activité (5), récapitulatif (6) */
.wsra-scene:not([data-etape="0"]) .wsra-sv .c-hab, .wsra-scene:not([data-etape="0"]) .wsra-sv .et-hab { stroke-dashoffset: 0; opacity: 1; }
.wsra-scene[data-etape="2"] .wsra-sv .c-auto, .wsra-scene[data-etape="3"] .wsra-sv .c-auto, .wsra-scene[data-etape="4"] .wsra-sv .c-auto, .wsra-scene[data-etape="5"] .wsra-sv .c-auto,
.wsra-scene[data-etape="2"] .wsra-sv .et-auto, .wsra-scene[data-etape="3"] .wsra-sv .et-auto, .wsra-scene[data-etape="4"] .wsra-sv .et-auto, .wsra-scene[data-etape="5"] .wsra-sv .et-auto { stroke-dashoffset: 0; opacity: 1; }
.wsra-scene[data-etape="3"] .wsra-sv .c-fam, .wsra-scene[data-etape="4"] .wsra-sv .c-fam, .wsra-scene[data-etape="5"] .wsra-sv .c-fam,
.wsra-scene[data-etape="3"] .wsra-sv .et-fam, .wsra-scene[data-etape="4"] .wsra-sv .et-fam, .wsra-scene[data-etape="5"] .wsra-sv .et-fam { stroke-dashoffset: 0; opacity: 1; }
.wsra-scene[data-etape="4"] .wsra-sv .c-ind, .wsra-scene[data-etape="5"] .wsra-sv .c-ind, .wsra-scene[data-etape="4"] .wsra-sv .et-ind, .wsra-scene[data-etape="5"] .wsra-sv .et-ind { stroke-dashoffset: 0; opacity: 1; }
/* Hors indépendant, la couche « activité » reste en pointillés (pas nécessaire) */
.wsra-scene:not([data-situation="independant"])[data-etape="4"] .wsra-sv .c-ind, .wsra-scene:not([data-situation="independant"])[data-etape="5"] .wsra-sv .c-ind { stroke-dasharray: .012 .012; opacity: .5; }
.wsra-scene:not([data-situation="independant"])[data-etape="4"] .wsra-sv .et-ind, .wsra-scene:not([data-situation="independant"])[data-etape="5"] .wsra-sv .et-ind { opacity: .55; }
.wsra-scene[data-etape="5"] .wsra-sv .halo { opacity: .12; }
/* Choix de la situation : style mesurable du témoin (couleur du mur) et repères dessinés */
.wsra-scene[data-situation="locataire"] .wsra-sv .mur { fill: #E9DFCC; }
.wsra-scene[data-situation="proprietaire"] .wsra-sv .mur { fill: #CFE5DC; }
.wsra-scene[data-situation="independant"] .wsra-sv .mur { fill: #E4DDF0; }
.wsra-scene[data-situation="locataire"] .wsra-sv .cle, .wsra-scene[data-situation="proprietaire"] .wsra-sv .drapeau, .wsra-scene[data-situation="independant"] .wsra-sv .mallette { opacity: 1; }
/* Récapitulatif final : un seul visible, celui de la situation choisie */
.wsra-scene .wsra-scene-recap { display: none; }
.wsra-scene[data-situation="locataire"] .wsra-scene-recap[data-recap="locataire"], .wsra-scene[data-situation="proprietaire"] .wsra-scene-recap[data-recap="proprietaire"], .wsra-scene[data-situation="independant"] .wsra-scene-recap[data-recap="independant"] { display: grid; gap: 12px; }
.wsra-scene .wsra-scene-recap ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; }
.wsra-scene .wsra-scene-recap a.wsra-scene-devis { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: #1F5F5B; color: #FFFFFF; text-decoration: none; font-weight: 700; }
.wsra-scene .wsra-scene-recap a.wsra-scene-devis:hover { background: #17283A; }
.wsra-scene .wsra-scene-recap a.wsra-scene-devis:focus-visible { outline: 3px solid #B5561E; outline-offset: 3px; }
.wsra-scene .wsra-scene-mention { font-size: 14px; color: var(--wsra-scene-discret); }
/* Le dock « Mon espace / Gestion » est fixé en bas à droite : le plateau et la dernière étape lui laissent la place */
@media (min-width: 761px) { .wsra-scene .wsra-scene-plateau { height: calc(100vh - var(--wsra-scene-haut) - 24px - 76px); height: calc(100svh - var(--wsra-scene-haut) - 24px - 76px); } }
.wsra-scene .wsra-scene-corps { padding-bottom: clamp(96px, 10vw, 140px); }
.wsra-scene .wsra-scene-etape:last-child { padding-bottom: 96px; }
/* Leçon Lisière v1.0.16 : de 761 à 1199 px (mesuré à 800 × 800 et 1100 × 800), le dessin garde au moins 180 px de haut et
   les choix défilent dans leur cadre si besoin ; le plateau tient dans l'écran sous l'en-tête. */
@media (min-width: 761px) and (max-width: 1199px) {
  .wsra-scene .wsra-scene-plateau { grid-template-rows: auto minmax(180px, 1fr) auto auto; min-height: 0; }
  .wsra-scene .wsra-scene-svg { min-height: 180px; }
  .wsra-scene .wsra-scene-commandes { min-height: 0; max-height: 46%; overflow-y: auto; overscroll-behavior: contain; }
  .wsra-scene .wsra-scene-sortie { font-size: 12.5px; line-height: 1.35; }
}
@media (max-width: 760px) {
  .wsra-scene .wsra-scene-etape:last-child { padding-bottom: 112px; }
  .wsra-scene .wsra-sv .et { font-size: 17px; }
}
