@import url('polices.css');

/* François d'Assise · Ombre et lumière — styles des composants.
   Toutes les valeurs viennent de tokens.css (var(--…)). Préfixe : fa-. */

/* ---------- Base ---------- */
html, body { margin: 0; }
.fa {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
}
.fa *, .fa *::before, .fa *::after { box-sizing: border-box; }
.fa :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.fa img { max-width: 100%; }
.fa [hidden] { display: none !important; }
.fa p { margin: 0; }
.fa h1, .fa h2, .fa h3, .fa h4 { margin: 0; }
.fa-texture {
  background-color: var(--fond);
  background-image: url(../img/motifs/texture_nuit.jpg);
  background-size: 1200px auto;
}
.fa-visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.fa-attenue { color: var(--texte-attenue); }
.fa-surtitre { font-family: var(--font-uisc); font-size: 14px; line-height: 1.3; font-weight: 500; letter-spacing: 0.1em; }
.fa-ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.25em; }
.fa-oiseau { width: 1.7em; height: 1em; fill: var(--or); flex: none; }
.fa-demo-label { font-family: var(--font-uisc); font-size: 14px; letter-spacing: 0.1em; color: var(--texte-attenue); margin: 0 0 var(--espace-3); }
.fa-pile { display: flex; flex-direction: column; gap: var(--espace-6); }
.fa-pad { padding: var(--espace-7); }
@container (max-width: 639px) { .fa-pad { padding: var(--espace-5) var(--espace-4); } }

/* Couleur de partie : posez data-partie="1|2|3" sur un conteneur. */
[data-partie="1"] { --p-aplat: var(--partie-1-aplat); --p-trait: var(--partie-1-trait); --p-second: var(--partie-1-second); --p-sur-aplat: #f2e8d9; }
[data-partie="2"] { --p-aplat: var(--partie-2-aplat); --p-trait: var(--partie-2-trait); --p-second: var(--partie-2-second); --p-sur-aplat: #f2e8d9; }
[data-partie="3"] { --p-aplat: var(--partie-3-aplat); --p-trait: var(--partie-3-trait); --p-second: var(--partie-3-second); --p-sur-aplat: #1e1719; }

/* ---------- Boutons ---------- */
.fa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-2);
  font-family: var(--font-uisc); font-size: 17px; font-weight: 500; letter-spacing: 0.04em; line-height: 1;
 
  padding: var(--espace-3) var(--espace-5); min-height: 48px;
  border: 1px solid transparent; border-radius: var(--rayon-1);
  text-decoration: none; cursor: pointer; background: none; color: inherit;
  transition: background-color var(--duree-interface) var(--courbe-interface), color var(--duree-interface) var(--courbe-interface), border-color var(--duree-interface) var(--courbe-interface);
}
.fa-btn--principal { background: var(--accent); color: var(--sur-accent); }
.fa-btn--principal:hover, .fa-btn--principal.is-survol { background: var(--accent-survol); }
.fa-btn--principal .fa-oiseau { fill: currentColor; }
.fa-btn--secondaire { border-color: var(--accent); color: var(--accent); }
.fa-btn--secondaire:hover, .fa-btn--secondaire.is-survol { background: var(--fond-surface); border-color: var(--accent-survol); color: var(--texte); }
.fa-btn--tertiaire { padding-left: 0; padding-right: 0; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.fa-btn--tertiaire:hover, .fa-btn--tertiaire.is-survol { color: var(--texte); text-decoration-thickness: 2px; }
.fa-btn.is-focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.fa-btn:disabled, .fa-btn[aria-disabled="true"] { background: transparent; border-color: var(--filet); color: var(--texte-attenue); cursor: not-allowed; text-decoration: none; }
.fa-btn--tertiaire:disabled { border-color: transparent; }

/* ---------- Liens, étiquettes, badges ---------- */
.fa-lien { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.fa-lien:hover { color: var(--texte); text-decoration-thickness: 2px; }
.fa-lien-fleche { display: inline-flex; align-items: center; gap: var(--espace-2); color: var(--accent); text-decoration: none; font-weight: 500; }
.fa-lien-fleche:hover { color: var(--texte); }
.fa-lien-fleche:hover .fa-ico { transform: translateX(3px); }
.fa-lien-fleche .fa-ico { transition: transform var(--duree-interface) var(--courbe-interface); }
.fa-etiquette {
  display: inline-flex; align-items: center; gap: var(--espace-2);
  font-family: var(--font-uisc); font-size: 14px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--p-trait, var(--accent)); border: 1px solid currentColor; border-radius: var(--rayon-1);
  padding: 3px var(--espace-2) 5px; justify-self: start; width: max-content; max-width: 100%;
}
.fa-etiquette::before { content: ""; width: 8px; height: 8px; border-radius: var(--rayon-noeud); background: var(--p-aplat, var(--accent)); box-shadow: 0 0 0 1px var(--p-trait, var(--accent)); }
.fa-badge {
  display: inline-flex; align-items: center; gap: var(--espace-1);
  font-family: var(--font-uisc); font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px var(--espace-2) 5px; border-radius: var(--rayon-1); justify-self: start; width: max-content;
}
.fa-badge--escale { background: var(--accent); color: var(--sur-accent); }
.fa-badge--pret { border: 1px solid var(--accent); color: var(--accent); }
.fa-badge--pret .fa-oiseau { width: 1.4em; height: 0.85em; fill: var(--accent); }
.fa-badge--neutre { background: var(--fond-surface); color: var(--texte-attenue); }

/* ---------- Cordelière ---------- */
.fa-corde { display: block; width: 100%; height: auto; overflow: visible; }
.fa-corde .c-ame { stroke: var(--ocre); }
.fa-corde .c-torsion { stroke: #1e1719; stroke-opacity: 0.38; stroke-dasharray: 1.6 3.4; }
.fa-corde .c-contour { stroke: #2b1d14; stroke-opacity: 0.55; }
.fa-corde .c-avenir .c-ame { stroke: var(--bordure-controle); stroke-width: 3; }
.fa-corde .c-avenir .c-torsion { stroke-opacity: 0; }
.fa-corde .c-avenir .c-contour { stroke-opacity: 0; }
.fa-corde .c-actif .c-ame { stroke: var(--p-trait); }
.fa-corde .c-actif .c-halo { fill: var(--p-trait); opacity: 0.18; }
.fa-corde .c-halo { fill: none; }
.fa-fil { display: grid; gap: var(--espace-2); }
.fa-fil__etapes { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; text-align: center; }
.fa-fil__etapes a { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--texte-attenue); text-decoration: none; padding: var(--espace-1) var(--espace-2); border-radius: var(--rayon-1); }
.fa-fil__etapes a:hover { color: var(--texte); }
.fa-fil__etapes .fa-fil__num { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.06em; }
.fa-fil__etapes .fa-fil__nom { font-size: 15px; line-height: 1.3; }
.fa-fil__etapes a.is-faite .fa-fil__num { color: var(--ocre); }
.fa-fil__etapes a[aria-current="step"] { color: var(--texte); }
.fa-fil__etapes a[aria-current="step"] .fa-fil__num { color: var(--p-trait); }
@container (max-width: 639px) { .fa-fil__etapes .fa-fil__nom { display: none; } }

/* ---------- Niche et révélation ---------- */
.fa-niche { background: var(--niche-bois); padding: 12px; border-radius: var(--rayon-0); }
.fa-niche__creux {
  background: var(--niche-fond); box-shadow: var(--ombre-niche);
  padding: var(--espace-5); display: flex; align-items: center; justify-content: center;
  min-height: 160px;
}
.fa-niche__creux img { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; object-fit: contain; }
.fa-niche--exception { padding: 6px; outline: 1px solid var(--accent); outline-offset: 6px; }
.fa-revele { animation: fa-revelation var(--duree-revelation) var(--courbe-lumiere) both; }
.fa-revele img { animation: fa-lumiere var(--duree-revelation) var(--courbe-lumiere) both; }
@keyframes fa-revelation { from { box-shadow: 0 0 0 0 rgba(227, 164, 82, 0); } to { box-shadow: var(--halo-revelation); } }
@keyframes fa-lumiere { from { filter: brightness(0.04) saturate(0.4); opacity: 0.2; } 60% { opacity: 1; } to { filter: brightness(1) saturate(1); opacity: 1; } }
.fa-revele--fixe { box-shadow: var(--halo-revelation); }

/* ---------- Cartel ---------- */
.fa-cartel { background: var(--fond-surface); padding: var(--espace-4); border-top: 1px solid var(--filet); display: grid; gap: var(--espace-1); }
.fa-cartel__titre { font-family: var(--font-ui); font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--texte); }
.fa-cartel__ligne { font-size: 15px; line-height: 1.45; color: var(--texte-attenue); }
.fa-cartel__prov { margin-top: var(--espace-2); font-family: var(--font-uisc); font-size: 14px; letter-spacing: 0.08em; color: var(--accent); }

/* ---------- Carte d'œuvre ---------- */
.fa-oeuvre { display: grid; grid-template-rows: auto auto; margin: 0; }
.fa-oeuvres { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--espace-7) var(--espace-6); align-items: start; }

/* ---------- Ouverture de partie ---------- */
.fa-ouverture { position: relative; padding: var(--espace-9) var(--espace-7) var(--espace-8) calc(var(--espace-7) + 16px); display: grid; gap: var(--espace-4); }
.fa-ouverture::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--p-aplat); }
.fa-ouverture__chiffre { color: var(--p-trait); }
.fa-ouverture__barre { width: 64px; height: 4px; background: var(--p-second); }
.fa-ouverture__titre { color: var(--texte); max-width: 18ch; }
.fa-ouverture__intro { max-width: var(--largeur-lecture); color: var(--texte); }
.fa-ouverture__compacte { padding: var(--espace-6) var(--espace-5) var(--espace-6) calc(var(--espace-5) + 12px); gap: var(--espace-3); }
.fa-ouverture__compacte .fa-ouverture__chiffre { font-size: 72px; }
.fa-ouverture__compacte .fa-ouverture__titre { font-size: 22px; }
@container (max-width: 639px) {
  .fa-ouverture { padding: var(--espace-8) var(--espace-4) var(--espace-7) calc(var(--espace-4) + 12px); }
  .fa-ouverture .chiffre-romain { font-size: 72px; }
  .fa-ouverture .titre-partie { font-size: 26px; line-height: 1.2; letter-spacing: 0.05em; }
  .fa-ouverture .recit { font-size: 18px; line-height: 1.65; }
}

/* ---------- Récit, citation ---------- */
.fa-recit { max-width: var(--largeur-lecture); display: grid; gap: var(--espace-5); }
.fa-recit .recit + .recit { margin-top: 0; }
.fa-lettrine::first-letter { font-family: var(--font-display); float: left; font-size: 3.6em; line-height: 0.85; padding: 0.06em 0.12em 0 0; color: var(--p-trait, var(--accent)); }
.fa-citation { margin: 0; max-width: 38rem; display: grid; gap: var(--espace-4); }
.fa-citation blockquote { margin: 0; }
.fa-citation__texte { color: var(--texte); }
.fa-citation__texte::before { content: "« "; }
.fa-citation__texte::after { content: " »"; }
.fa-citation__source { font-family: var(--font-uisc); font-size: 14px; letter-spacing: 0.1em; color: var(--texte-attenue); display: flex; align-items: center; gap: var(--espace-3); }
.fa-citation__source::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
@container (max-width: 639px) {
  .fa-recit .recit { font-size: 18px; line-height: 1.65; }
  .fa-citation .citation { font-size: 24px; }
}

/* ---------- Vue immersive ---------- */
.fa-immersive { background: var(--voile); color: var(--texte); display: grid; grid-template-rows: auto 1fr auto; min-height: 640px; }
.fa-immersive__barre { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-4); padding: var(--espace-3) var(--espace-5); border-bottom: 1px solid var(--filet); }
.fa-immersive__retour { display: inline-flex; align-items: center; gap: var(--espace-2); color: var(--texte); text-decoration: none; font-size: 15px; }
.fa-immersive__retour:hover { color: var(--accent); }
.fa-immersive__compteur { font-family: var(--font-uisc); font-size: 14px; letter-spacing: 0.1em; color: var(--texte-attenue); }
.fa-icone-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--rayon-1); background: none; color: var(--texte); cursor: pointer; }
.fa-icone-btn:hover { border-color: var(--bordure-controle); }
.fa-immersive__corps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--espace-7); padding: var(--espace-6) var(--espace-6); align-items: center; }
.fa-immersive__oeuvre { position: relative; overflow: hidden; background: var(--niche-fond); box-shadow: var(--ombre-niche); display: grid; place-items: center; height: 480px; cursor: zoom-in; }
.fa-immersive__oeuvre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform var(--duree-transition) var(--courbe-lumiere); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.fa-immersive__oeuvre.is-zoom { cursor: zoom-out; }
.fa-immersive__oeuvre.is-zoom img { transform: scale(2.2); }
.fa-immersive__zoom { position: absolute; right: var(--espace-3); bottom: var(--espace-3); background: var(--fond-surface); }
.fa-immersive__recit { display: grid; gap: var(--espace-4); align-content: center; }
.fa-immersive__nav { display: flex; justify-content: space-between; gap: var(--espace-4); padding: var(--espace-3) var(--espace-5); border-top: 1px solid var(--filet); }
@container (max-width: 719px) {
  .fa-immersive__corps { grid-template-columns: 1fr; gap: var(--espace-5); padding: var(--espace-4); }
  .fa-immersive__oeuvre { height: 340px; }
  .fa-immersive__nav .fa-nav-libelle { display: none; }
}

/* ---------- Œuvre exceptionnelle ---------- */
.fa-exception { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--espace-7); align-items: center; }
.fa-exception__texte { display: grid; gap: var(--espace-4); }
.fa-exception__preteur { font-family: var(--font-uisc); font-size: 14px; letter-spacing: 0.08em; color: var(--accent); }
@container (max-width: 719px) { .fa-exception { grid-template-columns: 1fr; gap: var(--espace-5); } }

/* ---------- En-tête ---------- */
.fa-entete { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-5); padding: var(--espace-3) var(--espace-6); background: var(--fond); border-bottom: 1px solid var(--filet); min-height: 72px; }
.fa-marque { display: grid; gap: 2px; color: var(--texte); text-decoration: none; }
.fa-marque__nom { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; }
.fa-marque__sous { font-family: var(--font-recit); font-style: italic; font-weight: 300; font-size: 14px; color: var(--texte-attenue); }
.fa-nav { display: flex; align-items: center; gap: var(--espace-5); list-style: none; margin: 0; padding: 0; }
.fa-nav a:not(.fa-btn) { color: var(--texte); text-decoration: none; font-size: 17px; font-weight: 500; padding: var(--espace-2) 0; border-bottom: 2px solid transparent; }
.fa-nav a:not(.fa-btn):hover { border-bottom-color: var(--filet); }
.fa-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.fa-entete__burger { display: none; }
@container (max-width: 899px) {
  .fa-entete { padding: var(--espace-3) var(--espace-4); }
  .fa-entete .fa-nav { display: none; }
  .fa-entete__burger { display: inline-grid; }
}
.fa-menu-mobile { background: var(--fond); color: var(--texte); display: grid; align-content: start; gap: var(--espace-5); padding: var(--espace-4); }
.fa-menu-mobile__haut { display: flex; justify-content: space-between; align-items: center; }
.fa-menu-mobile ul { list-style: none; margin: 0; padding: 0; display: grid; }
.fa-menu-mobile li a { display: flex; justify-content: space-between; align-items: center; padding: var(--espace-4) 0; border-bottom: 1px solid var(--filet); color: var(--texte); text-decoration: none; font-family: var(--font-recit); font-size: 21px; }

/* ---------- Pages jour : sections ---------- */
.fa-section { display: grid; gap: var(--espace-6); max-width: var(--largeur-contenu); }
.fa-section__tete { display: grid; gap: var(--espace-2); max-width: 44rem; }
.fa-section__tete .fa-surtitre { color: var(--accent); }

/* Chiffres clés */
.fa-chiffres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--texte); }
.fa-chiffres li { padding: var(--espace-5) var(--espace-4) var(--espace-5) 0; display: grid; gap: var(--espace-2); align-content: start; border-right: 1px solid var(--filet); }
.fa-chiffres li + li { padding-left: var(--espace-4); }
.fa-chiffres li:last-child { border-right: 0; }
.fa-chiffres .chiffre-cle { color: var(--texte); }
.fa-chiffres small { font-size: 0.45em; font-weight: 400; }
.fa-chiffres .fa-chiffres__libelle { font-size: 15px; line-height: 1.4; color: var(--texte-attenue); }
@container (max-width: 799px) {
  .fa-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-chiffres li { border-right: 0; border-bottom: 1px solid var(--filet); padding-left: 0 !important; }
  .fa-chiffres .chiffre-cle { font-size: 40px; }
}

/* Itinérances */
.fa-itin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--espace-6); align-items: start; }
.fa-carte { background: var(--fond-surface); padding: var(--espace-4); display: grid; gap: var(--espace-3); }
.fa-carte > svg { width: 100%; height: auto; display: block; }
.fa-carte figcaption svg { vertical-align: -2px; }
.fa-carte .g-grille { stroke: var(--filet); stroke-width: 1; }
.fa-carte .g-lien { stroke: var(--bordure-controle); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.fa-carte text { font-family: var(--font-ui); font-size: 13px; fill: var(--texte); }
.fa-carte .g-attenue { fill: var(--texte-attenue); font-size: 12px; }
.fa-point--passee { fill: var(--ocre); stroke: #2b211c; stroke-width: 1; }
.fa-point--encours { fill: var(--accent); stroke: var(--accent); }
.fa-point--avenir { fill: var(--fond); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 2.5; }
.fa-point-halo { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.fa-frise { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: var(--espace-4); overflow-x: auto; padding: var(--espace-6) 0 var(--espace-3); position: relative; list-style: none; margin: 0; scroll-snap-type: x mandatory; }
.fa-frise li { position: relative; display: grid; gap: var(--espace-2); align-content: start; scroll-snap-align: start; }
.fa-frise li::before { content: ""; position: absolute; top: -26px; left: 0; right: calc(-1 * var(--espace-4)); height: 2px; background: var(--ocre); }
.fa-frise li.is-avenir::before { background: repeating-linear-gradient(90deg, var(--bordure-controle) 0 6px, transparent 6px 11px); }
.fa-frise__point { position: absolute; top: -33px; left: 0; width: 16px; height: 16px; border-radius: var(--rayon-noeud); background: var(--ocre); box-shadow: 0 0 0 3px var(--fond); }
.is-encours .fa-frise__point { background: var(--accent); box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px var(--accent); }
.is-avenir .fa-frise__point { background: var(--fond); border: 2px dashed var(--accent); }
.fa-frise__photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: var(--fond-surface); }
.fa-frise__vide { aspect-ratio: 4 / 3; background: var(--fond-surface); display: grid; place-items: center; color: var(--texte-attenue); border: 1px dashed var(--bordure-controle); font-size: 15px; text-align: center; padding: var(--espace-3); }
.fa-frise__annee { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; color: var(--accent); }
.fa-frise__lieu { font-weight: 700; line-height: 1.3; }
.fa-frise__ville { font-size: 15px; color: var(--texte-attenue); }
@container (max-width: 799px) { .fa-itin { grid-template-columns: 1fr; } }

/* Fiche technique */
.fa-fiche { width: 100%; border-collapse: collapse; font-size: 17px; }
.fa-fiche caption { text-align: left; padding-bottom: var(--espace-3); }
.fa-fiche th, .fa-fiche td { text-align: left; vertical-align: top; padding: var(--espace-4) var(--espace-4) var(--espace-4) 0; border-bottom: 1px solid var(--filet); }
.fa-fiche tr:first-child th, .fa-fiche tr:first-child td { border-top: 1px solid var(--texte); }
.fa-fiche th { width: 32%; font-family: var(--font-uisc); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; color: var(--texte-attenue); }
.fa-fiche td { line-height: 1.5; }
.fa-fiche__aide { color: var(--texte-attenue); font-style: italic; }
@container (max-width: 639px) {
  .fa-fiche th, .fa-fiche td { display: block; width: 100%; padding-right: 0; }
  .fa-fiche th { border-bottom: 0; padding-bottom: 0; }
  .fa-fiche tr:first-child td { border-top: 0; }
}

/* Formulaire */
.fa-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-5) var(--espace-5); max-width: 46rem; }
.fa-form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-5); }
.fa-form legend { font-family: var(--font-recit); font-size: 24px; line-height: 1.3; font-weight: 700; padding: 0 0 var(--espace-3); }
.fa-form .is-large { grid-column: 1 / -1; }
.fa-champ { display: grid; gap: var(--espace-2); align-content: start; }
.fa-champ label { font-weight: 500; }
.fa-champ .fa-requis { color: var(--texte-attenue); font-weight: 400; font-size: 15px; }
.fa-champ input, .fa-champ select, .fa-champ textarea {
  font: inherit; font-size: 17px; color: var(--texte); background: var(--fond);
  border: 1px solid var(--bordure-controle); border-radius: var(--rayon-1);
  padding: var(--espace-3) var(--espace-3); min-height: 48px; width: 100%;
  transition: border-color var(--duree-interface) var(--courbe-interface), box-shadow var(--duree-interface) var(--courbe-interface);
}
.fa-champ textarea { min-height: 140px; resize: vertical; }
.fa-champ input:hover, .fa-champ select:hover, .fa-champ textarea:hover { border-color: var(--texte); }
.fa-champ input:focus, .fa-champ select:focus, .fa-champ textarea:focus,
.fa-champ.is-actif input { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fa-champ input:focus-visible, .fa-champ select:focus-visible, .fa-champ textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fa-champ .fa-aide { font-size: 15px; color: var(--texte-attenue); }
.fa-champ .fa-msg { display: none; font-size: 15px; align-items: center; gap: var(--espace-1); }
.fa-champ.is-erreur input, .fa-champ.is-erreur select, .fa-champ.is-erreur textarea { border-color: var(--erreur); box-shadow: 0 0 0 1px var(--erreur); }
.fa-champ.is-erreur .fa-msg--erreur { display: flex; color: var(--erreur); }
.fa-champ.is-valide input { border-color: var(--succes); }
.fa-champ.is-valide .fa-msg--ok { display: flex; color: var(--succes); }
.fa-form__pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-4); }
.fa-succes { border-top: 2px solid var(--succes); background: var(--fond-surface); padding: var(--espace-6); display: grid; gap: var(--espace-3); max-width: 46rem; }
.fa-succes__titre { display: flex; align-items: center; gap: var(--espace-3); color: var(--succes); }
.fa-etats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-5); }
@container (max-width: 639px) {
  .fa-form, .fa-form fieldset { grid-template-columns: 1fr; }
  .fa-etats { grid-template-columns: 1fr 1fr; }
}

/* Quatre valeurs */
.fa-valeurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-6); list-style: none; margin: 0; padding: 0; }
.fa-valeurs li { display: grid; gap: var(--espace-3); align-content: start; padding-top: var(--espace-5); border-top: 1px solid var(--filet); }
.fa-valeurs .fa-ico { width: 40px; height: 40px; stroke-width: 1.2; color: var(--accent); }
.fa-valeurs p { color: var(--texte-attenue); font-size: 17px; line-height: 1.55; }
@container (max-width: 799px) { .fa-valeurs { grid-template-columns: 1fr 1fr; } }
@container (max-width: 479px) { .fa-valeurs { grid-template-columns: 1fr; } }

/* Portrait */
.fa-portrait { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--espace-7); align-items: start; }
.fa-portrait__photo { aspect-ratio: 4 / 5; background: var(--fond-surface); border: 1px dashed var(--bordure-controle); display: grid; place-items: center; color: var(--texte-attenue); text-align: center; padding: var(--espace-5); font-size: 15px; }
.fa-portrait__texte { display: grid; gap: var(--espace-5); }
.fa-a-completer { background: var(--fond-surface); color: var(--texte-attenue); font-style: italic; padding: 0 0.25em; }
@container (max-width: 719px) { .fa-portrait { grid-template-columns: 1fr; } .fa-portrait__photo { aspect-ratio: 16 / 10; } }

/* Frise de la vie */
.fa-vie { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.fa-vie::before { content: ""; position: absolute; left: 111px; top: 8px; bottom: 8px; width: 2px; background: var(--ocre); }
.fa-vie li { display: grid; grid-template-columns: 96px 32px minmax(0, 1fr); padding-bottom: var(--espace-6); }
.fa-vie__date { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; text-align: right; color: var(--accent); padding-top: 1px; }
.fa-vie__noeud { justify-self: center; width: 14px; height: 14px; margin-top: 6px; border-radius: var(--rayon-noeud); background: var(--fond); border: 2px solid var(--ocre); position: relative; z-index: 1; }
.fa-vie li.is-cle .fa-vie__noeud { background: var(--ocre); }
.fa-vie__corps { display: grid; gap: var(--espace-2); padding-left: var(--espace-3); }
.fa-vie__corps p { color: var(--texte-attenue); }
.fa-vie__oeuvres { display: flex; flex-wrap: wrap; gap: var(--espace-2); margin-top: var(--espace-1); }
.fa-vie__oeuvre { display: inline-flex; align-items: center; gap: var(--espace-2); text-decoration: none; color: var(--texte); background: var(--fond-surface); padding: 4px var(--espace-2) 4px 4px; border-radius: var(--rayon-1); font-size: 15px; border: 1px solid transparent; }
.fa-vie__oeuvre:hover { border-color: var(--accent); }
.fa-vie__oeuvre img { width: 36px; height: 36px; object-fit: contain; background: var(--niche-fond); }
@container (max-width: 559px) {
  .fa-vie::before { left: 7px; }
  .fa-vie li { grid-template-columns: 16px minmax(0, 1fr); grid-template-areas: "n d" ". c"; column-gap: var(--espace-3); }
  .fa-vie__noeud { grid-area: n; justify-self: start; margin-top: 4px; }
  .fa-vie__date { grid-area: d; text-align: left; }
  .fa-vie__corps { grid-area: c; padding-left: 0; }
}

/* Galerie des éditions */
.fa-filtres { display: flex; flex-wrap: wrap; gap: var(--espace-2); }
.fa-filtre { font: inherit; font-size: 15px; font-weight: 500; padding: var(--espace-2) var(--espace-4); min-height: 40px; border: 1px solid var(--bordure-controle); border-radius: var(--rayon-1); background: transparent; color: var(--texte); cursor: pointer; }
.fa-filtre[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.fa-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--espace-4); list-style: none; margin: 0; padding: 0; }
.fa-galerie figure { margin: 0; display: grid; gap: var(--espace-2); }
.fa-galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.fa-galerie figcaption { font-size: 15px; color: var(--texte-attenue); line-height: 1.4; }
.fa-galerie figcaption b { color: var(--texte); font-weight: 700; }
.fa-galerie li[hidden] { display: none; }

/* Pied de page */
.fa-pied { background: var(--fond-surface); color: var(--texte); padding: var(--espace-7) var(--espace-6) var(--espace-5); display: grid; gap: var(--espace-6); }
.fa-pied__haut { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--espace-6); align-items: start; }
.fa-pied__signature { display: grid; gap: var(--espace-4); }
.fa-pied__mention { font-family: var(--font-recit); font-size: 19px; line-height: 1.45; }
.fa-plaque-logo { background: var(--plaque-logo); padding: var(--espace-3) var(--espace-4); justify-self: start; }
.fa-plaque-logo img { display: block; height: 56px; width: auto; }
.fa-pied h3 { font-family: var(--font-uisc); font-size: 14px; letter-spacing: 0.1em; font-weight: 500; color: var(--texte-attenue); margin-bottom: var(--espace-3); }
.fa-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-2); }
.fa-pied a { color: var(--texte); }
.fa-pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--espace-3); padding-top: var(--espace-4); border-top: 1px solid var(--filet); font-size: 15px; color: var(--texte-attenue); }
.fa-pied__bas a { color: var(--texte-attenue); }
@container (max-width: 719px) { .fa-pied__haut { grid-template-columns: 1fr; } .fa-pied { padding: var(--espace-6) var(--espace-4) var(--espace-4); } }

/* Grilles de démonstration */
.fa-duo { display: grid; grid-template-columns: 1fr 1fr; }
@container (max-width: 699px) { .fa-duo { grid-template-columns: 1fr; } }

/* ---------- Mobile : échelle typographique (styles *-mobile de tokens.json) ---------- */
@container (max-width: 639px) {
  .display { font-size: 40px; line-height: 1.05; letter-spacing: 0.06em; }
  .h1 { font-size: 32px; line-height: 1.2; }
  .h2 { font-size: 26px; line-height: 1.25; }
  .h3 { font-size: 21px; line-height: 1.3; }
  .h4 { font-size: 18px; line-height: 1.35; }
  .chapo { font-size: 19px; line-height: 1.55; }
}

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  .fa-revele, .fa-revele img { animation: none !important; }
  .fa-revele { box-shadow: var(--halo-revelation); }
  .fa *, .fa *::before, .fa *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
