/* Florska V2 — composants communs (fidèles à la maquette Main.dc.html + MK-SPEC). */

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  position: relative; isolation: isolate; overflow: clip;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--fl-font); font-size: 13px; font-weight: 600; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 0; border-radius: 0; cursor: pointer;
  transition: background var(--fl-t-s), box-shadow var(--fl-t-s), color var(--fl-t-s);
}
/* Remplissage directionnel : entre par la gauche, sort par la droite */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--fl-action-hover));
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--fl-t-s) var(--fl-ease-in);
}
.btn:is(:hover, :focus-visible)::before { transform: scaleX(1); transform-origin: left; transition: transform var(--fl-t-m) var(--fl-ease-out); }
.btn:active { scale: .98; }
.btn-red { --fill: var(--fl-action-hover); background: var(--fl-action); color: var(--fl-white); }
.btn-ghost { --fill: var(--fl-action); background: transparent; color: var(--fl-text); box-shadow: inset 0 0 0 1px rgb(242 240 235 / .5); }
.btn-ink { --fill: var(--fl-ink-hover); background: var(--fl-ink); color: var(--fl-white); }
.btn-red:hover, .btn-ghost:hover, .btn-ink:hover { color: var(--fl-white); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-wrap { height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; line-height: 1.35; }
.light .btn-ghost { color: var(--fl-ink); box-shadow: inset 0 0 0 1px rgb(11 11 12 / .5); }
.light .btn-ghost:hover { color: var(--fl-white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Lien-flèche : le trait de vitesse en soulignement */
.arrow {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--fl-accent);
  transform: scaleX(0); transform-origin: right; transition: transform var(--fl-t-s) var(--fl-ease-in);
}
.arrow svg { transition: translate var(--fl-t-s) var(--fl-ease-out); }
.arrow:is(:hover, :focus-visible)::after,
:is(.door, .row, .fl-card, .pcard):is(:hover, :focus-visible) .arrow::after { transform: scaleX(1); transform-origin: left; transition: transform var(--fl-t-m) var(--fl-ease-out); }
.arrow:is(:hover, :focus-visible) svg { translate: 4px 0; }

/* Puces (filtres en vrais liens) */
.chip, .fl-filter {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font-family: var(--fl-font); font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fl-text-2); border: 1px solid var(--fl-line); text-decoration: none; background: transparent;
  transition: border-color var(--fl-t-s), color var(--fl-t-s);
}
.chip:hover { color: var(--fl-white); border-color: var(--fl-line-strong); }
.chip[aria-current="true"], .chip[aria-current="page"] { color: var(--fl-ink); background: var(--fl-bone); border-color: var(--fl-bone); }
button.fl-filter { cursor: pointer; appearance: none; white-space: nowrap; }
.fl-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl-filter::before { content: ""; height: 6px; width: 0; margin-right: -8px; border-radius: 50%; background: var(--fl-accent); transition: width var(--fl-t-s) var(--fl-ease-out), margin var(--fl-t-s) var(--fl-ease-out); }
.fl-filter:is(:hover, :focus-visible), .fl-filter:is([aria-current="true"], [aria-current="page"], [aria-pressed="true"]) { border-color: var(--fl-bone); color: var(--fl-white); }
.fl-filter:is([aria-current="true"], [aria-current="page"], [aria-pressed="true"])::before { width: 6px; margin-right: 0; }

/* ==========================================================================
   En-tête et navigation
   ========================================================================== */
.hdr { position: absolute; top: 0; left: 0; right: 0; z-index: 30; view-transition-name: fl-header; }
.hdr--transparent { background: linear-gradient(rgb(11 11 12 / .55), rgb(11 11 12 / 0)); }
.hdr--solid, .hdr-solid { position: relative; background: var(--fl-bg); border-bottom: 1px solid var(--fl-line-soft); }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--fl-header-h); }
.hdr__logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.hdr__logo img { width: 140px; height: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > ul { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-item { position: relative; }
.navlink {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font-family: var(--fl-font); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--fl-text-2); background: transparent; border: 0; transition: color var(--fl-t-s) var(--fl-ease-out);
}
.navlink:hover, .navlink[aria-current], .navlink.is-current { color: var(--fl-white); }
.navlink::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 1px; background: var(--fl-bone);
  transform: scaleX(0); transform-origin: right; transition: transform var(--fl-t-s) var(--fl-ease-in);
}
.navlink:is(:hover, :focus-visible)::after { transform: scaleX(1); transform-origin: left; transition: transform var(--fl-t-m) var(--fl-ease-out); }
.nav-links .navlink:is([aria-current], .is-current) { box-shadow: inset 0 -2px 0 var(--fl-accent); }
.navlink .fl-icon--chevron { transition: rotate var(--fl-t-s) var(--fl-ease-out); }
.navlink[aria-expanded="true"] .fl-icon--chevron { rotate: 180deg; }

.drop {
  position: absolute; top: 100%; left: 0; z-index: 40; min-width: 260px; padding: 8px;
  display: none; flex-direction: column; list-style: none;
  background: var(--fl-surface); border: 1px solid var(--fl-line);
}
.drop.is-open { display: flex; }
html:not(.fl-js) .nav-item:is(:hover, :focus-within) > .drop { display: flex; }
.drop a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--fl-text); }
.drop a:is(:hover, :focus-visible) { background: var(--fl-surface-2); }
.drop a[aria-current] { box-shadow: inset 2px 0 0 var(--fl-accent); }
.drop a:focus-visible { outline-offset: -2px; }

.menu-btn { display: none; }

/* Menu mobile : <dialog> plein écran, volet qui descend (MK §5.5) */
.overlay {
  position: fixed; inset: 0; z-index: 60; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
  border: 0; padding: 88px 24px 24px; overflow: auto; overscroll-behavior: contain;
  background: var(--fl-bg); color: var(--fl-text);
  flex-direction: column;
}
.overlay[open] { display: flex; }
.overlay::backdrop { background: var(--fl-bg); }
.overlay__close { position: absolute; top: 20px; right: 20px; min-height: 48px; }
.overlay__list { list-style: none; display: flex; flex-direction: column; }
.overlay a.big {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--fl-line-soft);
  font-size: 26px; font-stretch: 75%; font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--fl-text);
}
.overlay a.big[aria-current]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fl-accent); margin-left: 16px; }
.overlay__cta { margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .overlay[open] { animation: fl-menu-in var(--fl-t-l) var(--fl-ease-inout) both; }
  .overlay[open] .overlay__list > li { animation: fl-menu-item 160ms var(--fl-ease-out) both; animation-delay: calc(40ms + var(--i, 0) * 20ms); }
}
@keyframes fl-menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes fl-menu-item { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
html.fl-menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .fl-js .nav-links { display: none; }
  .fl-js .menu-btn { display: inline-flex; min-height: 48px; padding: 0 18px; }
  /* Sans JS : la navigation reste visible et passe à la ligne */
  html:not(.fl-js) .hdr__bar { height: auto; min-height: var(--fl-header-h); flex-wrap: wrap; padding: 12px 0; }
  html:not(.fl-js) .nav-links, html:not(.fl-js) .nav-links > ul { flex-wrap: wrap; gap: 8px 16px; }
}

/* ==========================================================================
   Images et placeholders
   ========================================================================== */
.fl-img { width: 100%; height: auto; object-fit: cover; }
.ph { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 55% at 58% 58%, #4A4A4F 0%, #232326 48%, #121214 100%); }
.ph::after { content: ''; position: absolute; left: 0; right: 0; top: 62%; height: 1px; background: rgb(242 240 235 / .08); }
.ph-tag { position: absolute; top: 12px; left: 12px; z-index: 1; max-width: calc(100% - 24px); padding: 4px 8px; font-family: var(--fl-mono); font-size: 12px; color: #E9E7E2; background: rgb(11 11 12 / .78); }
.ph-center { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; }
.ph-center p { margin: 0; color: var(--fl-text-2); }
.cap { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 12px; }
.frame { position: relative; overflow: clip; background: var(--fl-surface); }

/* Fil d'Ariane */
.fl-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fl-text-2); }
.fl-crumbs a:hover { color: var(--fl-white); }
.fl-crumbs__sep { color: var(--fl-muted); }
.fl-crumbs [aria-current] { color: var(--fl-text); }

/* ==========================================================================
   Carte projet (MK §5.3) : zoom ≤ 1.03, légende qui glisse sur pointeur fin
   ========================================================================== */
.fl-card { position: relative; display: block; color: inherit; text-decoration: none; }
.fl-card__media { overflow: clip; background: var(--fl-surface); }
.fl-card__media > .ph, .fl-card__media > img { transition: scale var(--fl-t-s) var(--fl-ease-out); }
.fl-card__cap { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.fl-card__title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 15px/1.2 var(--fl-font); font-stretch: 75%; text-transform: uppercase; color: var(--fl-text); }
.fl-card__title::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--fl-accent); scale: 0; margin-right: -8px; transition: scale var(--fl-t-xs) var(--fl-ease-in), margin var(--fl-t-xs) var(--fl-ease-in); }
.fl-card__meta { color: var(--fl-muted); }
.fl-card--inst .fl-card__title::before { border-radius: 0; width: 12px; height: 1px; background: var(--fl-bone); scale: 1; margin-right: 0; }
.fl-card:is(:focus, :active) .fl-card__media > * { view-transition-name: fl-cover; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .fl-card { overflow: clip; }
  .fl-card__cap { position: absolute; inset: auto 0 0 0; padding: 14px 16px; background: var(--fl-scrim); translate: 0 101%; transition: translate var(--fl-t-s) var(--fl-ease-in); }
  .fl-card:is(:hover, :focus-visible) .fl-card__media > * { scale: 1.03; transition: scale var(--fl-t-l) var(--fl-ease-out); }
  .fl-card--inst:is(:hover, :focus-visible) .fl-card__media > * { scale: 1; }
  .fl-card:is(:hover, :focus-visible) .fl-card__cap { translate: 0 0; transition: translate var(--fl-t-m) var(--fl-ease-out); }
  .fl-card:is(:hover, :focus-visible) .fl-card__title::before { scale: 1; margin-right: 0; transition: scale var(--fl-t-s) var(--fl-ease-out) 60ms, margin var(--fl-t-s) var(--fl-ease-out) 60ms; }
}

/* Grille asymétrique à colonnes décalées (MK §8-B) */
.fl-stagger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.fl-col { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 64px); }
.fl-col:nth-child(2) { padding-top: clamp(64px, 14vw, 220px); }
.fl-col:nth-child(3) { padding-top: clamp(24px, 5vw, 80px); }
@media (max-width: 899px) {
  .fl-stagger { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; grid-auto-flow: dense; }
  .fl-col { display: contents; }
  .fl-card--wide { grid-column: 1 / -1; }
}

/* ==========================================================================
   Bloc factuel, témoignage, bande CTA
   ========================================================================== */
.fl-factsec { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.fl-fact { max-width: 70ch; }
.fl-fact a { text-decoration: underline; text-underline-offset: 3px; }

.slot { border: 1px dashed #4A4A52; background: transparent; color: var(--fl-muted); }
.slot-box { display: flex; flex-direction: column; gap: 24px; max-width: 880px; padding: clamp(28px, 4vw, 56px); }
.slot-box__text { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.4; color: var(--fl-text-2); }
.slot-box__meta { margin: 0; line-height: 1.9; }
.fl-quote { max-width: 880px; margin: 0; }
.fl-quote blockquote { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.4; color: var(--fl-text); }
.fl-quote blockquote p { margin: 0; }
.fl-quote figcaption { margin-top: 24px; color: var(--fl-muted); }
.fl-quote__mark { display: block; width: 32px; height: 2px; background: var(--fl-accent); margin-bottom: 24px; }

.fl-cta { background: var(--fl-action); color: var(--fl-white); }
.fl-cta__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.fl-cta__title { color: var(--fl-white); max-width: 18ch; }
.fl-cta__text { margin: 20px 0 0; max-width: 52ch; font-size: 18px; color: var(--fl-white); }
.fl-cta :focus-visible { outline-color: var(--fl-white); }

/* ==========================================================================
   Façade YouTube : rien n'est chargé avant le clic et le consentement
   ========================================================================== */
.fl-yt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fl-yt__media { position: relative; overflow: clip; background: var(--fl-surface); aspect-ratio: 16 / 9; }
.fl-yt--9x16 .fl-yt__media { aspect-ratio: 9 / 16; max-width: 420px; }
.fl-yt__media > .ph, .fl-yt__media > img, .fl-yt__media > iframe { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; }
.fl-yt__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--fl-text);
  border: 1px solid rgb(242 240 235 / .7); background: rgb(11 11 12 / .6);
  transition: border-color var(--fl-t-s), background var(--fl-t-s);
}
.fl-yt:hover .fl-yt__play { border-color: var(--fl-bone); background: rgb(11 11 12 / .8); }
.fl-yt.is-playing .fl-yt__play { display: none; }
.fl-yt__bar { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.fl-yt__bar p { margin: 4px 0 0; }
.fl-yt__note { margin: 0; }
.fl-yt__consent { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--fl-line); background: var(--fl-surface); }
.fl-yt__consent p { margin: 0; font-size: 15px; color: var(--fl-text-2); }
.fl-yt__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fl-yt__btns .btn { padding: 0 12px; }
@media (max-width: 600px) { .fl-yt__btns { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.ftr { background: var(--fl-bg); border-top: 1px solid var(--fl-line); }
.ftr__in { padding-top: 64px; padding-bottom: 40px; }
.foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot__brand { display: flex; flex-direction: column; gap: 16px; }
.foot__brand img { width: 160px; height: auto; }
.foot__brand p { margin: 0; line-height: 1.7; }
.foot nav ul { list-style: none; display: flex; flex-direction: column; align-items: flex-start; }
.foot .navlink { text-align: left; }
.foot .navlink[aria-current] { color: var(--fl-white); box-shadow: inset 2px 0 0 var(--fl-accent); padding-left: 10px; }
.ftr__legal { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--fl-line-soft); }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Bandeau cookies (3 boutons de même poids) + panneau Personnaliser
   ========================================================================== */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin-left: auto;
  display: flex; flex-direction: column; gap: 16px; padding: 24px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--fl-surface); border: 1px solid var(--fl-line); color: var(--fl-text);
}
.cookie__title { font-size: 20px; }
.cookie__text { margin: 0; font-size: 15px; color: var(--fl-text-2); }
.cookie__text a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cookie-btns .btn { min-height: 48px; padding: 0 12px; }
.cookie-panel { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--fl-line); }
.cookie-panel fieldset { margin: 0; padding: 0; border: 0; }
.ck-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--fl-line-soft); cursor: pointer; }
.ck-opt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--fl-action); cursor: pointer; }
.ck-opt input:disabled { cursor: not-allowed; }
.ck-opt b { display: block; font-size: 15px; font-weight: 600; }
.ck-opt span span { display: block; font-size: 14px; color: var(--fl-muted); }
.cookie-panel .btn { align-self: flex-start; margin-top: 12px; }
@media (max-width: 900px) { .cookie-btns { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .cookie:not([hidden]) { animation: fl-fade-up var(--fl-t-l) var(--fl-ease-out) both; }
}

/* ==========================================================================
   Accordéons [data-fl-accordion]
   ========================================================================== */
.fl-acc { border-top: 1px solid var(--fl-line); }
.fl-acc__item { border-bottom: 1px solid var(--fl-line); }
.fl-acc__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0;
  background: none; border: 0; color: inherit; text-align: left; font: inherit;
}
.fl-acc__btn .fl-icon--plus { flex: none; transition: rotate var(--fl-t-s) var(--fl-ease-out); }
.fl-acc__btn[aria-expanded="true"] .fl-icon--plus { rotate: 45deg; }
.fl-acc__panel { padding: 0 0 24px; }

/* ==========================================================================
   Reveals au scroll (MK §4) : visibles par défaut, animés seulement si supporté
   ========================================================================== */
.fl-line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.fl-line > span { display: block; }
@keyframes fl-line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fl-rise { from { clip-path: inset(14% 0 0 0); } to { clip-path: inset(0); } }
@keyframes fl-fade-up { from { opacity: 0; translate: 0 var(--fl-shift); } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fl-lines { view-timeline: --fl-title block; }
    html:not(.fl-gsap) .fl-lines .fl-line > span { animation: fl-line-up linear both; animation-timeline: --fl-title; animation-range: entry calc(10% + var(--i, 0) * 8%) cover calc(22% + var(--i, 0) * 4%); }
    html:not(.fl-gsap) :is(.fl-reveal, .fl-rv, .fl-clip) { animation: fl-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    html:not(.fl-gsap) .fl-fade { animation: fl-fade-up linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  }
}
/* html.fl-gsap (assets/js/motion.js) : GSAP prend le relais, ces règles s'effacent (pas de double animation). */
/* Repli IntersectionObserver : masqué seulement après exécution du JS (html.fl-io) */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.fl-io:not(.fl-gsap) :is(.fl-fade, .fl-reveal, .fl-rv, .fl-clip) { transition: opacity var(--fl-t-l) var(--fl-ease-out), translate var(--fl-t-l) var(--fl-ease-out), clip-path var(--fl-t-l) var(--fl-ease-out); }
    html.fl-io:not(.fl-gsap) .fl-fade:not(.is-in) { opacity: 0; translate: 0 var(--fl-shift); }
    html.fl-io:not(.fl-gsap) :is(.fl-reveal, .fl-rv, .fl-clip):not(.is-in) { clip-path: inset(14% 0 0 0); }
  }
}

/* ==========================================================================
   Transition de page « Le passage » (MK §3) : volet + trait rouge de 2 px, 280 ms
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(fl-header) { animation-duration: 0s; }
  ::view-transition-old(root) { animation: fl-vt-dim var(--fl-t-l) var(--fl-ease-inout) both; }
  ::view-transition-new(root) { animation: fl-vt-wipe var(--fl-t-l) var(--fl-ease-inout) both; }
  ::view-transition-group(fl-sweep) { animation: fl-vt-line var(--fl-t-l) var(--fl-ease-inout) both; }
  ::view-transition-new(fl-sweep) { animation: none; }
  ::view-transition-old(fl-sweep) { display: none; }
  ::view-transition-group(fl-cover) { animation-duration: var(--fl-t-l); animation-timing-function: var(--fl-ease-out); }
}
@keyframes fl-vt-dim { to { opacity: .4; } }
@keyframes fl-vt-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fl-vt-line { from { transform: translateX(0); } to { transform: translateX(100vw); } }
.fl-vt-sweep { display: none; }
.fl-vt .fl-vt-sweep { display: block; position: fixed; inset: 0 auto 0 0; width: 2px; z-index: 9999; background: var(--fl-accent); pointer-events: none; view-transition-name: fl-sweep; }

/* ==========================================================================
   Loader « Allumage » (MK §9) : 800 ms, une fois par session, jamais bloquant
   ========================================================================== */
.fl-loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: var(--fl-bg); pointer-events: none; animation: fl-a-panel 800ms linear forwards; }
.fl-noload .fl-loader { display: none; }
.fl-loader__logo { display: block; width: min(56vw, 440px); height: auto; overflow: visible; animation: fl-a-logo 800ms linear forwards; }
.fl-logo__word, .fl-logo__arc { fill: var(--fl-text); }
.fl-logo__dot { fill: var(--fl-accent); transform-box: fill-box; transform-origin: center; animation: fl-a-dot 800ms linear forwards; }
.fl-logo__word { animation: fl-a-word 800ms linear forwards; }
.fl-logo__arc { animation: fl-a-arc 800ms linear forwards; }
@keyframes fl-a-dot { 0% { scale: 0; opacity: 0; animation-timing-function: cubic-bezier(.19, 1, .22, 1); } 15% { scale: 1.35; opacity: 1; animation-timing-function: cubic-bezier(.6, 0, .4, 1); } 25% { scale: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes fl-a-word { 0%, 15% { clip-path: inset(0 68.7% 0 31.3%); animation-timing-function: cubic-bezier(.19, 1, .22, 1); } 50% { clip-path: inset(0); } 100% { clip-path: inset(0); } }
@keyframes fl-a-arc { 0%, 40% { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(.7, 0, .2, 1); } 67.5% { clip-path: inset(0); } 100% { clip-path: inset(0); } }
@keyframes fl-a-logo { 0%, 70% { translate: 0 0; opacity: 1; animation-timing-function: cubic-bezier(.55, 0, .9, .4); } 100% { translate: 0 -12px; opacity: 0; } }
@keyframes fl-a-panel { 0%, 70% { clip-path: inset(0); visibility: visible; animation-timing-function: cubic-bezier(.7, 0, .2, 1); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ==========================================================================
   Coupe-circuit reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  .fl-loader, .fl-vt-sweep { display: none !important; }
}

/* Date de mise à jour en bas de page */
.fl-updated { margin: 0 auto; padding-block: 24px 40px; font-size: 12px; }

/* Sélecteur de langue : FR · EN · PL, filet fin entre les codes, point rouge sous la langue active */
.lang { display: inline-flex; align-items: center; margin: 0; font-family: var(--fl-font); font-size: 12px; font-weight: 600; letter-spacing: .16em; line-height: 1; }
.lang__a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 0 9px; color: var(--fl-text-2); text-decoration: none; transition: color var(--fl-t-s); }
.lang__a + .lang__a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; translate: 0 -50%; background: var(--fl-line); }
.lang__a:is(:hover, :focus-visible) { color: var(--fl-white); }
.lang__a[aria-current="true"] { color: var(--fl-white); }
.lang__a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; translate: -50% 0; border-radius: 50%; background: var(--fl-accent); }
.lang--menu { align-self: flex-start; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fl-line-soft); width: 100%; font-size: 14px; }
.lang--menu .lang__a { min-width: 56px; min-height: 52px; padding: 0 16px 0 0; justify-content: flex-start; }
.lang--menu .lang__a + .lang__a::before { display: none; }
.lang--menu .lang__a[aria-current="true"]::after { left: 0; bottom: 10px; translate: 0 0; width: 18px; height: 2px; border-radius: 0; }
.lang--menu .lang__a { margin-right: 12px; }
.nav-links .lang { margin-left: 4px; }

/* Langues à mots longs (polonais, anglais) : aucun titre ne dépasse son conteneur */
html:not([lang^="fr"]) :is(.disp, .row-name, .fl-cta__title, h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 379px) { html:not([lang^="fr"]) .row-name { font-size: clamp(22px, 8.4vw, 30px); } }
