.frise-dossier{ --fd-pastille: 32px; width: 100%; max-width: var(--mesure, 68ch); margin-inline: auto; display: grid; gap: clamp(20px, 3vw, 32px); }
.fd-liste{ list-style: none; margin: 0; padding: 0; display: grid; }
.fd-etape{ position: relative; display: grid; gap: 4px; padding: 0 0 clamp(20px, 3vw, 28px) calc(var(--fd-pastille) + 16px); transition: opacity 0.4s ease; }
.fd-ico{ position: absolute; left: 0; top: 0; width: var(--fd-pastille); height: var(--fd-pastille); box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--accent); background: var(--accent); color: var(--fond, #103C32); }
.fd-ico svg{ width: 18px; height: 18px; display: block; }
.fd-creux .fd-ico{ background: var(--fond, #103C32); color: var(--accent); border-style: dashed; }
.fd-etape::before{ content: ""; position: absolute; left: calc(var(--fd-pastille) / 2 - 1px); top: calc(var(--fd-pastille) + 4px); width: 2px; bottom: -4px; background: var(--accent); }
.fd-etape:last-child::before{ display: none; }
.fd-creux::before{ background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 9px); }
.fd-nom{ margin: 4px 0 0; font: 400 var(--t-h3, 1.375rem)/1.2 var(--titre, Georgia, serif); color: var(--texte); }
.fd-metier{ margin: 0; font-size: var(--t-petit, 0.9375rem); line-height: 1.4; color: var(--texte-2); }
.fd-metier a{ color: inherit; text-underline-offset: 3px; }
.fd-phrase{ margin: 4px 0 0; font-size: var(--t-corps, 1.0625rem); line-height: 1.5; color: var(--texte); max-width: 52ch; }
.fd-ajout{ margin: 6px 0 0; font-size: var(--t-petit, 0.9375rem); line-height: 1.4; color: var(--texte-2); }
.fd-ajout span{ color: var(--accent); }
.fd-fiche{ border: 1px solid var(--filet); background: linear-gradient(180deg, rgba(241, 240, 223, 0.08), rgba(241, 240, 223, 0.03)); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55); }
.fd-fiche-bar{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--filet); }
.fd-fiche-tete{ margin: 0; font: 400 var(--t-h3, 1.375rem)/1.2 var(--titre, Georgia, serif); color: var(--texte); }
.fd-fiche-note{ margin: 0; font: 400 var(--t-mono, 0.8125rem)/1.4 var(--corps, sans-serif); color: var(--texte-2); }
.fd-fiche-corps{ display: grid; gap: 0; }
.fd-plan{ padding: clamp(12px, 2vw, 18px); border-bottom: 1px solid var(--filet); background: rgba(0, 0, 0, 0.14); }
.fd-plan svg{ display: block; width: 100%; height: auto; margin-inline: auto; }
.fd-fiche ul{ list-style: none; margin: 0; padding: 6px clamp(14px, 2vw, 22px) 10px; display: grid; }
.fd-fiche li{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--filet); }
.fd-fiche li:first-child{ border-top: 0; }
.fd-l{ font-size: var(--t-corps, 1.0625rem); line-height: 1.35; color: var(--texte); }
.fd-qui{ flex: none; padding: 2px 9px; border: 1px solid var(--filet); font: 400 var(--t-mono, 0.8125rem)/1.5 var(--corps, sans-serif); color: var(--texte-2); }
.fd-retour{ margin: 0; font-size: var(--t-corps, 1.0625rem); line-height: 1.5; color: var(--texte); }
.fd-retour a{ color: var(--accent); text-underline-offset: 3px; }
.fd-anime .fd-etape:not(.is-atteint){ opacity: 0.55; }
.fd-plan svg *{ vector-effect: non-scaling-stroke; }
.fd-route{ fill: rgba(241, 240, 223, 0.07); }
.fd-voisines rect{ fill: none; stroke: rgba(241, 240, 223, 0.3); stroke-width: 1.5; transition: fill 0.5s ease, stroke 0.5s ease; }
.fd-parcelle{ fill: rgba(185, 198, 163, 0.08); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.fd-maison{ fill: rgba(241, 240, 223, 0.16); stroke: rgba(241, 240, 223, 0.75); stroke-width: 1.5; }
.fd-toit{ fill: none; stroke: rgba(241, 240, 223, 0.75); stroke-width: 1.5; stroke-linejoin: round; }
.fd-piscine{ fill: rgba(185, 198, 163, 0.28); stroke: var(--accent); stroke-width: 1.5; }
.fd-repere-pin path{ fill: var(--accent); }
.fd-repere-pin circle{ fill: var(--fond, #103C32); }
.fd-icone{ fill: none; stroke: var(--texte); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fd-doc{ stroke-dasharray: 5 4; }
.fd-pastille{ fill: var(--accent); }
.fd-coche{ fill: none; stroke: var(--fond, #103C32); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-cote{ fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.fd-creux-trait{ fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.fd-plu{ fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 7 5; stroke-linejoin: round; }
.fd-ajout-forme{ fill: rgba(185, 198, 163, 0.35); stroke: var(--accent); stroke-width: 1.5; }
.fd-acces{ fill: none; stroke: var(--texte); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.fd-depot{ fill: var(--accent); }
.fd-dict{ fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fd-epingle-actif > .tete,
.fd-epingle-actif > .corps > p:first-child,
.fd-epingle-actif .frise-dossier{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fd-epingle-actif > .corps{ margin-top: 0; }
.fd-epingle-actif{ padding-top: 0; }
.fd-scene{ --fd-pastille: 36px; color: var(--texte); }
.fd-scene *, .fd-scene *::before, .fd-scene *::after{ box-sizing: border-box; }
.fd-piste{ position: relative; }
.fd-epingle{ position: sticky; top: 0; height: 100svh; min-height: 560px; display: flex; align-items: center; }
.fd-cadre{ width: 100%; max-width: 1280px; margin-inline: auto; padding-top: calc(76px + clamp(4px, 1.4svh, 16px)); padding-bottom: clamp(12px, 2.4svh, 28px); display: grid; gap: clamp(8px, 1.6svh, 18px); align-content: center; }
.fd-repere{ margin: 0; font: 400 var(--t-mono, 0.8125rem)/1.4 var(--corps, sans-serif); color: var(--accent); }
.fd-titre{ margin: 0; max-width: 36ch; font: 400 min(clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem), 5.4svh)/1.1 var(--titre, Georgia, serif); letter-spacing: -0.01em; text-wrap: balance; color: var(--texte); }
.fd-rail{ position: relative; padding-top: 56px; margin-top: clamp(10px, 2.4svh, 26px); }
.fd-boucle{ position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.fd-boucle-trait{ stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dashoffset: 99999; }
.fd-boucle-fleche{ fill: var(--accent); opacity: 0; transition: opacity 0.2s ease; }
.fd-boucle-texte{ position: absolute; left: 0; right: 0; top: -18px; margin: 0; text-align: center; font-size: var(--t-corps, 1.0625rem); line-height: 1.3; color: var(--texte); opacity: 0; transition: opacity 0.4s ease; }
.is-retour .fd-boucle-texte{ opacity: 1; }
.fd-pas{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--fd-n), minmax(0, 1fr)); position: relative; z-index: 1; }
.fd-p{ display: grid; justify-items: center; gap: 8px; padding-inline: 6px; text-align: center; }
.fd-noeud{ width: var(--fd-pastille); height: var(--fd-pastille); display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--accent); background: var(--fond, #103C32); color: var(--accent); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.fd-noeud svg{ width: 20px; height: 20px; display: block; }
.fd-p.fd-creux .fd-noeud{ border-style: dashed; }
.fd-p.is-allume .fd-noeud{ background: var(--accent); color: var(--fond, #103C32); }
.fd-p.fd-creux.is-allume .fd-noeud{ background: var(--fond, #103C32); color: var(--accent); }
.fd-p.is-courant .fd-noeud{ box-shadow: 0 0 0 6px rgba(185, 198, 163, 0.22); }
.fd-n{ font-size: var(--t-corps, 1.0625rem); line-height: 1.25; color: var(--texte-2); transition: color 0.3s ease; text-wrap: balance; }
.fd-p.is-allume .fd-n, .fd-p.is-courant .fd-n{ color: var(--texte); }
.fd-metiers{ display: grid; grid-template-columns: repeat(var(--fd-n), minmax(0, 1fr)); margin-top: 10px; padding-inline: 6px; column-gap: 6px; }
.fd-metiers span{ border-top: 1px solid var(--filet); padding-top: 6px; text-align: center; font-size: var(--t-petit, 0.9375rem); line-height: 1.3; color: var(--texte-2); }
.fd-trait{ position: absolute; left: calc(100% / (2 * var(--fd-n))); right: calc(100% / (2 * var(--fd-n))); top: calc(56px + var(--fd-pastille) / 2 - 1px); height: 2px; background: var(--filet); z-index: 0; }
.fd-remplissage{ position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(var(--fd-fill, 0)); display: block; }
.fd-bas{ display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3.4vw, 56px); align-items: center; margin-top: clamp(4px, 1.2svh, 14px); }
.fd-courant{ margin: 0; display: grid; gap: 12px; align-content: center; justify-items: start; opacity: 0; }
.fd-courant.is-entre{ animation: fd-entree 0.3s ease-out forwards; }
.fd-c-nom{ font: 400 var(--t-h3, 1.5rem)/1.2 var(--titre, Georgia, serif); color: var(--accent); }
.fd-c-qui{ padding: 3px 10px; border: 1px solid var(--filet); font-size: var(--t-petit, 0.9375rem); line-height: 1.4; color: var(--texte-2); }
.fd-c-phrase{ font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); line-height: 1.3; color: var(--texte); max-width: 22ch; }
@keyframes fd-entree{ from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fd-scene .fd-fiche-corps{ grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.fd-scene .fd-plan{ border-bottom: 0; border-right: 1px solid var(--filet); display: grid; align-items: center; }
.fd-scene .fd-plan svg{ max-height: min(340px, 40svh); }
.fd-scene .fd-fiche ul{ align-content: center; }
.fd-scene .fd-fiche li{ opacity: 0; transition: opacity 0.35s ease; }
.fd-scene .fd-fiche li.is-ajoutee{ opacity: 1; }
.fd-scene .fd-fiche li.is-nouvelle{ animation: fd-allume 0.6s ease-out; }
@keyframes fd-allume{ 0% { background: rgba(185, 198, 163, 0.28); } 100% { background: transparent; } }
.fd-scene .fd-couche{ opacity: 0; transition: opacity 0.5s ease; }
.fd-scene .fd-couche.is-on{ opacity: 1; }
.fd-scene .fd-parcelle{ stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s ease; }
.fd-scene .fd-couche.is-on .fd-parcelle{ stroke-dashoffset: 0; }
.fd-scene.is-retour .fd-voisines rect{ stroke: var(--accent); fill: rgba(185, 198, 163, 0.35); }
@media (max-width: 899px){.fd-bas{ grid-template-columns: minmax(0, 1fr); }
.fd-c-phrase{ max-width: none; }
}
@media (min-width: 768px) and (max-width: 1199px){.fd-scene .fd-qui{ display: none; }
.fd-bas{ grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); }
.fd-c-phrase{ font-size: clamp(1.25rem, 1rem + 0.9vw, 1.5rem); }
}
@media (max-height: 860px){.fd-scene{ --fd-pastille: 30px; }
.fd-noeud svg{ width: 16px; height: 16px; }
.fd-scene .fd-fiche li{ padding-block: 5px; }
.fd-fiche-bar{ padding-block: 10px; }
.fd-cadre{ padding-top: 72px; gap: 8px; }
.fd-rail{ margin-top: 8px; }
.fd-metiers{ margin-top: 8px; }
.fd-scene .fd-plan svg{ max-height: min(240px, 34svh); }
}
@media (prefers-reduced-motion: reduce){.fd-etape, .fd-noeud, .fd-n, .fd-scene .fd-fiche li, .fd-scene .fd-couche, .fd-voisines rect{ transition: none; }
.fd-courant.is-entre{ animation: none; opacity: 1; }
}
