/* L'accueil vivant « Le jour sur le camp » (#/bienvenue, js/bienvenue/), natif Le Fil, préfixe fbv-. Portage du prototype validé (docs/design/accueil-vivant-prototype.html) :
   en tête une scène vivante pleine largeur dont le ciel suit l'heure ; dessous, ce qu'on peut ouvrir (le prochain séjour, les autres, les souvenirs, les portes).
   Règle de rendu : FOND VIVANT, PREMIER PLAN NET — aucune lueur ni ombre colorée sur les cartes, le focus passe par l'élévation et un reflet blanc.
   Les palettes de la scène sont posées en JS sur la section (--fbv-*) ; le contenu suit les jetons du Fil (--f-*) ; les couleurs fixes (blanc des étiquettes, lavis des portes) sont des jetons
   de css/tokens.css (--bv-*) : aucune couleur en dur ici (tests/charte.test.mjs). */
.fbv { --fbv-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; --fbv-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; --fbv-ressort: cubic-bezier(.2, .9, .25, 1); --fbv-voile: 1;
  color: var(--f-encre); font: 400 15px/1.45 var(--fbv-sans); min-width: 0; }
[data-theme="sombre"] .fbv { --fbv-voile: .8; }
.fbv *, .fbv *::before, .fbv *::after { box-sizing: border-box; }
:where(.fbv) a { color: inherit; text-decoration: none; }   /* sans poids : les composants (bouton, étiquette…) posent leur propre couleur */

/* La page prend toute la largeur du Fil, sous la barre du haut qui se pose en transparence sur la scène (elle redevient pleine dès que la scène a défilé). */
[data-interface="fil"] [data-app]:has(.fbv) { padding-top: 0; }
@media (min-width: 900px) { [data-interface="fil"] [data-app]:has(.fbv) { padding: 0 0 40px; } }
[data-interface="fil"]:has(.fbv) .f-top { background: transparent; border-bottom-color: transparent; transition: background-color .3s ease, border-color .3s ease; }
[data-interface="fil"]:has(.fbv[data-haut="plein"]) .f-top { background: var(--f-fond); border-bottom-color: var(--f-filet); }

/* La casse et l'interlettrage du Fil sont normaux partout dans l'espace de travail (css/fil.css, socle) ; le petit genre au-dessus du nom d'une carte garde ses capitales espacées, comme le prototype validé. */
[data-interface="fil"] [data-app] .fbv .fbv-genre { text-transform: uppercase; letter-spacing: .08em; }

/* ---------- La scène ---------- */
.fbv-scene { position: relative; height: clamp(380px, 52vh, 500px); overflow: hidden; isolation: isolate;
  background: linear-gradient(to bottom, var(--fbv-top, var(--bv-ciel-haut)) 0%, var(--fbv-mid, var(--bv-ciel-milieu)) 40%, var(--fbv-bas, var(--bv-ciel-bas)) 66%); }   /* avant que la scène pose l'heure : le ciel de jour */
.fbv-scene canvas, .fbv-scene .fbv-paysage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fbv-vie { pointer-events: none; }
.fbv-s-far1 { fill: var(--fbv-far1); } .fbv-s-far2 { fill: var(--fbv-far2); } .fbv-s-col { fill: var(--fbv-col); }
.fbv-s-pin { fill: var(--fbv-pin); } .fbv-s-f1 { fill: var(--fbv-f1); } .fbv-s-f2 { fill: var(--fbv-f2); } .fbv-s-f3 { fill: var(--fbv-f3); }
.fbv-s-tronc { fill: var(--fbv-avant); } .fbv-s-pres { fill: var(--fbv-pres); } .fbv-s-avant { fill: var(--fbv-avant); }
.fbv-s-nuage { fill: var(--fbv-nuage); } .fbv-s-maison { fill: var(--fbv-maison); } .fbv-s-toit { fill: var(--fbv-toit); }
.fbv-s-fenetre { fill: var(--fbv-fenetre); } .fbv-s-soleil { fill: var(--fbv-soleil); } .fbv-s-lune { fill: var(--bv-lune); }
.fbv-s-mir { fill: var(--bv-blanc-pur); opacity: .34; }
.fbv-couleurs { filter: brightness(calc(1 - .58 * var(--fbv-n, 0))) saturate(calc(1 - .3 * var(--fbv-n, 0))); }
.fbv-feu { opacity: var(--fbv-feu, 0); }
.fbv-brume { opacity: var(--fbv-brume, 0); }
.fbv-fil-trait { fill: none; stroke: var(--bv-blanc); stroke-width: 1.6; stroke-linecap: round; opacity: .92; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes fbv-monte { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fbv-balance { from { transform: rotate(-1.4deg); } to { transform: rotate(1.6deg); } }
@keyframes fbv-flotte { from { transform: rotate(-12deg) skewX(-6deg); } to { transform: rotate(10deg) skewX(8deg); } }
@keyframes fbv-derive { from { transform: translateX(-260px); } to { transform: translateX(calc(var(--fbv-W) * 1px + 260px)); } }
@keyframes fbv-miroite { 0%, 100% { opacity: .08; transform: translateX(-10px); } 50% { opacity: .42; transform: translateX(10px); } }
@keyframes fbv-flamme { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.86, 1.16) skewX(5deg); } }
@keyframes fbv-fumee { from { transform: translate(0, 0) scale(.6); opacity: .5; } to { transform: translate(22px, -70px) scale(2.1); opacity: 0; } }
@keyframes fbv-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fbv-eclot { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes fbv-pouls { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
@keyframes fbv-leve { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fbv-tourne { to { transform: rotate(360deg); } }

.fbv-scene:not(.fbv-joue) .fbv-entree { animation: none; }
.fbv-entree { animation: fbv-monte 1.1s var(--fbv-ressort) both; animation-delay: calc(var(--d, 0) * 1ms); }
.fbv-sway { animation: fbv-balance 4.2s ease-in-out infinite alternate; transform-origin: 0 0; animation-delay: calc(var(--k, 0) * -1s); }
.fbv-fanion { animation: fbv-flotte 1.9s ease-in-out infinite alternate; transform-origin: 0 0; animation-delay: calc(var(--k, 0) * -.31s); }
.fbv-nuage { animation: fbv-derive linear infinite; animation-duration: calc(var(--t, 120) * 1s); animation-delay: calc(var(--k, 0) * -1s); }
.fbv-mir { animation: fbv-miroite 5s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -1s); }
.fbv-flamme { animation: fbv-flamme .42s ease-in-out infinite alternate; transform-origin: 0 0; animation-delay: calc(var(--k, 0) * -.13s); }
.fbv-fumee circle { animation: fbv-fumee 6s linear infinite; animation-delay: calc(var(--k, 0) * -1.5s); transform-origin: 0 0; fill: var(--bv-blanc-pur); opacity: 0; }
.fbv-fumee { opacity: calc(.75 - var(--fbv-n, 0)); }
.fbv-scene.fbv-joue .fbv-fil-trait { animation: fbv-trace 1.5s cubic-bezier(.6, 0, .2, 1) .55s both; }

/* ---------- Le mot d'accueil (dans la scène) ---------- */
.fbv-salut { position: absolute; z-index: 4; left: 40px; top: 92px; max-width: min(520px, 46%); color: var(--bv-noir); transition: color .6s ease; }
.fbv-scene[data-texte="clair"] .fbv-salut { color: var(--bv-creme); }
.fbv-salut h1 { font: 400 clamp(40px, 5vw, 64px)/1.02 var(--fbv-serif); margin: 0 0 12px; letter-spacing: -.01em; text-wrap: balance; }
.fbv-salut p { margin: 0 0 20px; font-size: 17px; line-height: 1.45; max-width: 34ch; font-weight: 500; }
.fbv-salut p strong { font-weight: 700; }
.fbv-salut p[data-attend] { min-height: 2.9em; }   /* la phrase se complète quand les étapes arrivent : sans saut de mise en page */
.fbv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.fbv-bouton { display: inline-flex; align-items: center; gap: 10px; background: var(--bv-noir); color: var(--bv-blanc); border: 0; border-radius: 14px; padding: 14px 20px; min-height: 48px; font-weight: 600; font-size: 15px; transition: transform .25s var(--fbv-ressort), box-shadow .25s; box-shadow: 0 10px 22px -14px var(--bv-ombre-bouton); }
.fbv-bouton:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -14px var(--bv-ombre-bouton-haute); }
.fbv-bouton:active { transform: scale(.97); }
.fbv-bouton small { font-weight: 500; opacity: .72; font-size: 13px; }
.fbv-scene[data-texte="clair"] .fbv-bouton { background: var(--bv-creme); color: var(--bv-noir); }
.fbv-lien-sobre { font-weight: 600; font-size: 14px; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.fbv-scene.fbv-joue .fbv-salut > * { animation: fbv-leve .9s var(--fbv-ressort) both; }
.fbv-scene.fbv-joue .fbv-salut > :nth-child(1) { animation-delay: .35s; }
.fbv-scene.fbv-joue .fbv-salut > :nth-child(2) { animation-delay: .5s; }
.fbv-scene.fbv-joue .fbv-salut > :nth-child(3) { animation-delay: .65s; }
.fbv :focus-visible { outline: 2px solid var(--f-encre); outline-offset: 3px; border-radius: 6px; }
.fbv-scene .fbv-bouton:focus-visible, .fbv-scene .fbv-lien-sobre:focus-visible, .fbv-scene .fbv-anneau:focus-visible { outline-color: var(--bv-blanc); box-shadow: 0 0 0 2px var(--bv-noir); }

/* ---------- Le fil : les anneaux dans la scène ---------- */
.fbv-anneaux { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fbv-anneau { position: absolute; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--bv-blanc); background: var(--f-preparer); transform: translate(-50%, -50%); transition: width .25s var(--fbv-ressort), height .25s var(--fbv-ressort), box-shadow .25s; box-shadow: 0 2px 6px var(--bv-ombre-anneau); }
.fbv-anneau::after { content: ''; position: absolute; inset: -12px; }
.fbv-scene.fbv-joue .fbv-anneau { animation: fbv-eclot .55s var(--fbv-ressort) both; animation-delay: calc(1s + var(--i, 0) * 110ms); }
.fbv-anneau--fait { width: 10px; height: 10px; border-width: 2px; background: var(--bv-blanc); opacity: .85; }
.fbv-anneau--jour { width: 14px; height: 14px; background: var(--bv-blanc); border-color: var(--bv-blanc); }
.fbv-anneau--jour::before { content: ''; position: absolute; inset: -2.5px; border-radius: 50%; border: 2px solid var(--bv-blanc); animation: fbv-pouls 2.4s ease-out infinite; }
.fbv-anneau:hover, .fbv-anneau:focus-visible, .fbv-anneau.fbv-vu { width: 24px; height: 24px; z-index: 2; }
.fbv-etiq { position: absolute; left: 50%; bottom: calc(100% + 12px + var(--haut, 0px)); transform: translateX(-50%); background: var(--bv-blanc); color: var(--bv-noir); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 14px -8px var(--bv-ombre-etiquette); pointer-events: none; transition: opacity .2s, transform .25s var(--fbv-ressort); display: inline-flex; align-items: baseline; max-width: 300px; }
.fbv-etiq-nom { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fbv-etiq em { font-style: normal; font-weight: 500; color: var(--bv-gris); margin-left: 6px; flex: none; }
.fbv-etiq::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: calc(10px + var(--haut, 0px)); background: var(--bv-blanc); opacity: .8; }
.fbv-anneau--jour .fbv-etiq { bottom: auto; top: calc(100% + 12px); }
.fbv-anneau--jour .fbv-etiq::after { top: auto; bottom: 100%; height: 10px; }
.fbv-anneau:not(.fbv-dit) .fbv-etiq { opacity: 0; transform: translateX(-50%) translateY(6px); }
.fbv-anneau:hover .fbv-etiq, .fbv-anneau:focus-visible .fbv-etiq, .fbv-anneau.fbv-vu .fbv-etiq { opacity: 1; transform: translateX(-50%); }

/* ---------- Le contenu sous la scène ---------- */
.fbv-contenu { padding: 34px 40px 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; max-width: 1320px; }   /* minmax(0, …) : la rangée de souvenirs défile, elle ne pousse pas la page */
.fbv-contenu > section { min-width: 0; }
.fbv-rang-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }   /* le lien de droite passe à la ligne quand il ne tient pas à côté du titre (téléphone) */
.fbv-rang-titre h2 { font: 400 30px/1.1 var(--fbv-serif); margin: 0; }
.fbv-rang-titre a { font-weight: 600; font-size: 14px; color: var(--f-encre-2); border-bottom: 1.5px solid var(--f-filet); padding-bottom: 2px; white-space: nowrap; }
.fbv-rang-titre a:hover { color: var(--f-encre); border-color: var(--f-encre); }

.fbv-sejours { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.fbv-carte { position: relative; display: flex; flex-direction: column; grid-column: span 3; background: var(--f-surface); border-radius: 22px; overflow: hidden; box-shadow: var(--bv-ombre); transition: transform .45s var(--fbv-ressort), box-shadow .45s var(--fbv-ressort), background-color .9s ease; min-width: 0; }
.fbv-carte:hover, .fbv-carte:has(:focus-visible), .fbv-carte.fbv-vu { transform: translateY(-7px); box-shadow: var(--bv-ombre-haute); }
.fbv-carte:active { transform: translateY(-3px) scale(.985); }
.fbv-carte:has(.fbv-carte-lien:focus-visible) { outline: 2px solid var(--f-encre); outline-offset: 3px; }
.fbv-carte .fbv-carte-lien:focus-visible { outline: none; }
.fbv-carte-lien::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* toute la carte est le lien (le crédit d'une photo reste cliquable au-dessus) */
.fbv-carte--une { grid-column: span 6; grid-row: span 2; }
.fbv-vignette { position: relative; overflow: hidden; height: 132px; flex: none; background: var(--f-surface-2); }
.fbv-carte--une .fbv-vignette { height: auto; flex: 1 1 250px; min-height: 230px; }
.fbv-vignette svg, .fbv-vignette img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: brightness(var(--fbv-voile)); transition: transform 1.2s var(--fbv-ressort), filter .9s ease; }
.fbv-vignette img { object-fit: cover; }
.fbv-carte:hover .fbv-vignette svg, .fbv-carte.fbv-vu .fbv-vignette svg, .fbv-carte:hover .fbv-vignette img, .fbv-carte.fbv-vu .fbv-vignette img { transform: scale(1.06); }
.fbv-vignette::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 46%; background: linear-gradient(100deg, var(--bv-reflet-0), var(--bv-reflet), var(--bv-reflet-0)); transform: skewX(-14deg); transition: left 0s; pointer-events: none; }
.fbv-carte:hover .fbv-vignette::after, .fbv-carte.fbv-vu .fbv-vignette::after { left: 120%; transition: left .9s ease; }
.fbv-credit { position: absolute; z-index: 2; right: 8px; bottom: 6px; margin: 0; max-width: calc(100% - 16px); padding: 2px 8px; border-radius: 999px; background: var(--bv-blanc); color: var(--bv-gris); font: 500 11px/1.4 var(--fbv-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbv-credit a { color: inherit; text-decoration: underline; }
.fbv-etat { position: absolute; z-index: 1; left: 14px; top: 14px; background: var(--bv-blanc); color: var(--bv-noir); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.fbv-etat i { width: 7px; height: 7px; border-radius: 50%; background: var(--f-preparer); }
.fbv-etat--cours i { background: var(--f-vivre); }
.fbv-corps { padding: 16px 18px 18px; display: grid; gap: 4px; }
.fbv-genre { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--f-encre-3); }
.fbv-carte h3 { font: 400 22px/1.12 var(--fbv-serif); margin: 0; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fbv-carte--une h3 { font-size: 34px; }
.fbv-meta { color: var(--f-encre-2); font-size: 13.5px; overflow-wrap: anywhere; }
.fbv-carte--une .fbv-corps { padding: 22px 26px 24px; gap: 8px; }
.fbv-carte--une .fbv-meta { font-size: 15px; }
.fbv-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--f-filet); }
.fbv-avant-partir { display: grid; gap: 7px; min-width: 190px; flex: 1 1 200px; font-size: 13px; font-weight: 600; }
.fbv-avant-partir b { font-weight: 500; color: var(--f-encre-2); }
.fbv-pas { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 5px; }
.fbv-pas i { height: 5px; border-radius: 3px; background: var(--f-surface-2); }
.fbv-pas i.fbv-ok { background: var(--f-fait); }
.fbv-equipe { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--f-encre-2); font-weight: 500; }
.fbv-visages { display: flex; padding-left: 7px; }
.fbv-visages span { width: 30px; height: 30px; margin-left: -7px; border-radius: 50%; background: var(--f-surface-2); border: 2px solid var(--f-surface); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--f-encre); transition: transform .35s var(--fbv-ressort); transition-delay: calc(var(--i) * 28ms); }
.fbv-visages span.fbv-moi { background: var(--f-encre); color: var(--f-fond); }
.fbv-carte:hover .fbv-visages span, .fbv-carte.fbv-vu .fbv-visages span { transform: translateY(-4px); }

.fbv-invitation { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; padding: 26px 28px; background: var(--f-surface); border-radius: 22px; box-shadow: var(--bv-ombre); }
.fbv-invitation h3 { font: 400 28px/1.15 var(--fbv-serif); margin: 0; text-wrap: balance; }
.fbv-invitation p { margin: 0; color: var(--f-encre-2); font-size: 15px; max-width: 52ch; }
.fbv-invitation-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fbv-invitation .fbv-bouton { background: var(--f-encre); color: var(--f-fond); }
.fbv-invitation .fbv-bouton--discret { background: var(--f-surface-2); color: var(--f-encre); box-shadow: none; }

.fbv-souvenirs { display: flex; gap: 30px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.fbv-souvenir { position: relative; flex: none; width: 124px; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; }
.fbv-souvenir small { display: block; font-weight: 500; color: var(--f-encre-3); font-size: 12px; }
.fbv-souvenir-lien::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.fbv-souvenir-texte { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fbv-souvenir .fbv-credit { position: relative; z-index: 2; right: auto; bottom: auto; max-width: 124px; background: none; padding: 0; font-size: 10.5px; color: var(--f-encre-3); }
.fbv-medaillon { position: relative; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--f-surface), 0 0 0 4px var(--f-filet), var(--bv-ombre); transition: transform .45s var(--fbv-ressort), box-shadow .45s; background: var(--f-surface-2); }
.fbv-medaillon svg, .fbv-medaillon img { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(var(--fbv-voile)); }
.fbv-medaillon img { object-fit: cover; }
.fbv-souvenir:hover .fbv-medaillon, .fbv-souvenir:has(:focus-visible) .fbv-medaillon { transform: translateY(-5px) rotate(-4deg) scale(1.06); }
.fbv-souvenir .fbv-souvenir-lien:focus-visible { outline: none; }
.fbv-souvenir:has(.fbv-souvenir-lien:focus-visible) .fbv-medaillon { outline: 2px solid var(--f-encre); outline-offset: 4px; }

.fbv-portes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fbv-portes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fbv-porte { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 196px; padding: 20px; border-radius: 22px; background: var(--l); color: var(--f-encre); overflow: hidden; transition: transform .45s var(--fbv-ressort), box-shadow .45s, background-color .9s ease; }
.fbv-porte:hover, .fbv-porte:focus-visible { transform: translateY(-6px); box-shadow: var(--bv-ombre-haute); }
.fbv-porte:active { transform: translateY(-2px) scale(.985); }
.fbv-porte svg.fbv-motif { width: 100%; height: 84px; display: block; overflow: visible; stroke: var(--t); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fbv-porte svg.fbv-motif .fbv-plein { fill: var(--t); stroke: none; }
.fbv-porte svg.fbv-motif .fbv-fond { fill: var(--f-surface); }
.fbv-porte h3 { font: 400 26px/1.05 var(--fbv-serif); margin: 0 0 4px; }
.fbv-porte p { margin: 0; font-size: 13.5px; color: var(--f-encre-2); line-height: 1.4; }
.fbv-va { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--t); color: var(--l); display: grid; place-items: center; transform: translateX(-8px); opacity: 0; transition: transform .4s var(--fbv-ressort), opacity .3s; }
.fbv-va svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fbv-porte:hover .fbv-va, .fbv-porte:focus-visible .fbv-va { transform: none; opacity: 1; }
.fbv-porte .fbv-texte { padding-right: 34px; }
.fbv-m-lien { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease; }
.fbv-porte:hover .fbv-m-lien.fbv-plus { stroke-dashoffset: 0; } .fbv-m-lien.fbv-plus { stroke-dashoffset: 1; }
.fbv-m-point { transition: transform .5s var(--fbv-ressort); transform-box: fill-box; transform-origin: center; }
.fbv-porte:hover .fbv-m-point { transform: scale(1.25); }
.fbv-m-de { transition: transform .8s var(--fbv-ressort); transform-box: fill-box; transform-origin: center; }
.fbv-porte:hover .fbv-m-de { transform: rotate(180deg) translateY(-6px); }
.fbv-m-aiguille { animation: fbv-tourne 8s linear infinite; transform-origin: 78px 44px; }
.fbv-m-fiche { transition: transform .55s var(--fbv-ressort); transform-origin: 60px 84px; }
.fbv-porte:hover .fbv-m-fiche.fbv-a { transform: rotate(-16deg) translateX(-12px); }
.fbv-porte:hover .fbv-m-fiche.fbv-c { transform: rotate(16deg) translateX(12px); }
.fbv-porte:hover .fbv-m-fiche.fbv-b { transform: translateY(-8px); }
.fbv-m-fanion { transition: transform .6s var(--fbv-ressort); }
.fbv-porte:hover .fbv-m-fanion { transform: translateY(-20px); }

.fbv-rise { animation: fbv-leve .9s var(--fbv-ressort) both; animation-delay: calc(1.05s + var(--i, 0) * 80ms); }
.fbv[data-ouverture="rejouee"] .fbv-rise, .fbv[data-ouverture="rejouee"] .fbv-salut > * { animation: none; }

@media (max-width: 1180px) {
  .fbv-carte--une { grid-column: span 12; grid-row: auto; }
  .fbv-carte { grid-column: span 6; }
  .fbv-portes, .fbv-portes--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .fbv-scene { height: 430px; }
  .fbv-salut { left: 16px; right: 16px; top: 78px; max-width: none; }
  .fbv-salut p { font-size: 15.5px; max-width: 30ch; margin-bottom: 16px; }
  .fbv-lien-sobre { display: none; }
  .fbv-contenu { padding: 26px 16px 24px; gap: 40px; }
  .fbv-rang-titre h2 { font-size: 26px; }
  .fbv-sejours { gap: 12px; }
  .fbv-carte { grid-column: span 12; flex-direction: row; border-radius: 18px; }
  .fbv-carte .fbv-vignette { width: 104px; height: auto; flex: none; }
  .fbv-carte .fbv-etat { display: none; }
  .fbv-carte .fbv-corps { padding: 14px 16px; align-content: center; min-width: 0; flex: 1 1 auto; }
  .fbv-carte h3 { font-size: 19px; }
  .fbv-carte:not(.fbv-carte--une) .fbv-credit { left: 6px; right: 6px; bottom: 6px; max-width: none; white-space: normal; border-radius: 10px; font-size: 10px; line-height: 1.25; text-overflow: clip; text-align: center; }
  .fbv-carte--une { flex-direction: column; }
  .fbv-carte--une .fbv-vignette { width: auto; min-height: 170px; flex-basis: 170px; }
  .fbv-carte--une .fbv-etat { display: inline-flex; }
  .fbv-carte--une h3 { font-size: 28px; }
  .fbv-carte--une .fbv-corps { padding: 18px; }
  .fbv-portes { gap: 12px; }
  .fbv-porte { min-height: 178px; padding: 16px; border-radius: 18px; }
  .fbv-porte h3 { font-size: 22px; }
  .fbv-porte p { font-size: 12.5px; }
  .fbv-va { display: none; }
  .fbv-porte .fbv-texte { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fbv *, .fbv *::before, .fbv *::after { animation: none !important; transition: none !important; }
}
