/* Base commune aux maquettes : mécanique uniquement (pages, apparitions, menus, accordéons, formulaire).
   Couleurs, polices et formes sont définies dans chaque maquette.
   Seule exception : la BARRE DE FILTRES COMMUNE (.fx-barre, en fin de fichier), même apparence sur tout le site. */
*, *::before, *::after { box-sizing: border-box; }
/* clip sur html ET body : sur téléphone, un bloc qui entre par la droite ne doit jamais élargir la page (sinon le navigateur dézoome) */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--acc); color: var(--on-acc, #111); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

:root { --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.76, 0, .24, 1); }
.wrap { width: min(100% - 32px, var(--max, 1240px)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(100% - 64px, var(--max, 1240px)); } }

/* Mode capture (page.html?capture#/…) : animations instantanées pour les captures d'écran de vérification */
html.capture *, html.capture *::before, html.capture *::after {
  transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important;
}

/* Pages */
[data-view] { display: none; }
[data-view].is-current { display: block; }

/* Apparitions au défilement */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + var(--d, 0ms));
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
[data-reveal="right"] { transform: translate3d(40px, 0, 0); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Titres découpés lettre par lettre */
.sp-w { display: inline-block; overflow: hidden; vertical-align: top; white-space: nowrap; padding: .34em .04em .12em; margin: -.34em -.04em -.12em; }
.sp-c {
  display: inline-block; padding-top: .3em; margin-top: -.3em; transform: translate3d(0, 118%, 0);
  transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 30ms + var(--d, 0ms));
}
.is-in .sp-c { transform: none; }

/* Menus déroulants */
.dd-host { position: relative; }
.dd {
  position: absolute; top: 100%; left: 50%; z-index: 60; padding-top: 14px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px);
  transition: opacity .25s ease, transform .45s var(--ease), visibility 0s linear .45s;
}
.dd-host:hover > .dd, .dd-host:focus-within > .dd {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity .25s ease, transform .45s var(--ease), visibility 0s;
}
.dd-host.dd-off > .dd { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.dd-host:hover > .dd [data-stagger] > * { animation: dd-item .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 40ms); }
@keyframes dd-item { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Encadré glissant du menu (Ultimate.navGlisse) : position ici, apparence dans la maquette */
[data-nav-principal] { position: relative; }
[data-nav-principal] > .hd-link, [data-nav-principal] > .dd-host { position: relative; z-index: 1; }
.nav-ind {
  position: absolute; left: 0; top: 0; z-index: 0; width: var(--w, 0); height: var(--h, 0); pointer-events: none; opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0);
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), opacity .3s;
}
.nav-ind.is-on { opacity: 1; }

/* Pages Recrutement et Règlement : liste (#/recrutement, #/reglement) ou détail (#/recrutement/<poste>, #/reglement/<cle>) */
[data-view][data-mode="liste"] [data-mode-poste],
[data-view][data-mode="poste"] [data-mode-liste] { display: none !important; }

/* Menu mobile */
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.m-sub > div { overflow: hidden; min-height: 0; }
.m-group.is-open .m-sub { grid-template-rows: 1fr; }
.m-group .bx-plus { transition: transform .45s var(--ease); }
.m-group.is-open .bx-plus { transform: rotate(45deg); }

/* Règlements */
.rg-top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.rg-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-tools { display: flex; gap: 10px; align-items: center; flex: 1 1 340px; justify-content: flex-end; }
.rg-search { position: relative; display: flex; align-items: center; gap: 10px; flex: 1 1 auto; max-width: 440px; }
.rg-search input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; }
.rg-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rg-body { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rg-toc { position: sticky; top: var(--toc-top, 110px); }
.rg-toc-nav { display: flex; flex-direction: column; max-height: calc(100vh - 330px); overflow: auto; scrollbar-width: thin; }
.rg-toc-nav button { text-align: left; flex: none; }
.rg-sec { scroll-margin-top: 120px; }
.rg-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; text-align: left; }
.rg-q-i { position: relative; flex: none; width: 14px; height: 14px; }
.rg-q-i::before, .rg-q-i::after {
  content: ""; position: absolute; left: 0; top: calc(50% - .75px); width: 100%; height: 1.5px;
  background: currentColor; transition: transform .45s var(--ease);
}
.rg-q-i::after { transform: rotate(90deg); }
.rg-item.is-open .rg-q-i::after { transform: rotate(0); }
.rg-item.is-open .rg-q-i::before { transform: rotate(180deg); }
.rg-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.rg-a > div { overflow: hidden; min-height: 0; }
.rg-item.is-open .rg-a { grid-template-rows: 1fr; }
.rg-a ul { margin: 0; list-style: none; }
@media (max-width: 960px) {
  .rg-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rg-toc, .rg-list { min-width: 0; }
  .rg-toc { top: 0; z-index: 5; }
  .rg-toc-h, .rg-warn { display: none; }
  .rg-toc-nav { flex-direction: row; overflow-x: auto; max-height: none; white-space: nowrap; scrollbar-width: none; }
  .rg-toc-nav::-webkit-scrollbar { display: none; }
  .rg-tools { flex-basis: 100%; }
  .rg-search { max-width: none; }
}

/* Formulaire de candidature */
.fx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.fx-step { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-step.is-done { cursor: pointer; }
.fx-step-n { flex: none; display: grid; place-items: center; }
.fx-step-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-bar { overflow: hidden; }
.fx-bar span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--progress, .25)); transition: transform .8s var(--ease); }
.fx-pane { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.fx-pane.is-active { display: block; animation: fx-in .6s var(--ease) both; }
.fx[data-dir="prev"] .fx-pane.is-active { animation-name: fx-in-prev; }
@keyframes fx-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes fx-in-prev { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.fx-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.fx-wide { grid-column: 1 / -1; }
.fx-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.fx-field input:not([type="radio"]):not([type="checkbox"]), .fx-field textarea { width: 100%; outline: 0; }
.fx-field textarea { resize: vertical; }
.fx-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.fx-field input[type="number"] { -moz-appearance: textfield; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip, .fx-note-b, .fx-check { position: relative; }
.fx-chip input, .fx-note-b input, .fx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fx-chip span, .fx-note-b span { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.fx-note { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fx-note-b span { width: 100%; }
.fx-note-l { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.fx-count { align-self: flex-end; }
.fx-help, .fx-err, .fx-intro { margin: 0; }
.fx-err:empty { display: none; }
.fx-field.shake { animation: fx-shake .45s; }
@keyframes fx-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.fx-recap { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.fx-recap-r { min-width: 0; }
.fx-recap-r.is-wide { grid-column: 1 / -1; }
.fx-recap-r dd { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.fx-box { flex: none; display: grid; place-items: center; }
.fx-check input:checked + .fx-box::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translate(0, -1px) rotate(-45deg);
}
.fx-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.fx-save { flex: 1; text-align: center; opacity: 0; transition: opacity .4s; }
.fx-save.is-on { opacity: 1; }
.fx-send { display: none; }
.fx-next, .fx-send { margin-left: auto; }
.fx[data-etape="0"] .fx-prev { display: none; }
.fx[data-etape="3"] .fx-next { display: none; }
.fx[data-etape="3"] .fx-send { display: inline-flex; }
.fx-send.is-loading { pointer-events: none; opacity: .75; }
.fx.is-sent .fx-steps, .fx.is-sent .fx-bar, .fx.is-sent .fx-panes, .fx.is-sent .fx-nav { display: none; }
.fx-done { text-align: center; animation: fx-in .7s var(--ease) both; }
.fx-ok { width: 88px; height: 88px; margin: 0 auto; display: block; }
.fx-ok circle, .fx-ok path { fill: none; stroke: var(--acc); stroke-linecap: round; stroke-linejoin: round; }
.fx-ok circle { stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: fx-draw 1s var(--ease) forwards; }
.fx-ok path { stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; animation: fx-draw .6s .55s var(--ease) forwards; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 640px) {
  .fx-grid, .fx-recap { grid-template-columns: 1fr; }
  .fx-step-l { display: none; }
  .fx-step.is-active .fx-step-l { display: block; }
  .fx-steps { grid-template-columns: auto auto auto auto; justify-content: start; gap: 10px; }
  .fx-save { display: none; }
  .fx-nav .fx-btn { flex: 1 1 auto; }
}

/* ======================================================================
   BARRE DE FILTRES COMMUNE — même interface sur tout le site (modèle : Le Business / Le Milieu).
   Guide complet (structure HTML, variables, fonction JS) : scratchpad\filtres-unifies\FILTRES.md.
   - à gauche, les segments (.fx-zone > .fx-segs > button.fx-seg) : libellés Poppins 800 italique majuscules, compteur .fx-n
     à côté ; le segment actif est un bloc plein, penché, de la couleur de la page, qui glisse d'un segment à l'autre ;
   - à droite, séparée, la recherche sobre (.fx-outils > label.fx-rech) : loupe, bordure fine, AUCUN effet au focus,
     au clic ni au toucher (seul le curseur de texte apparaît) ;
   - collée sous l'en-tête quand on descend ; fond de verre seulement quand elle est collée (.is-colle) ;
   - barre compacte (.is-compact : téléphone ≤ 700 px, ou segments + recherche trop larges) : une seule ligne, les segments
     défilent au doigt, la loupe (.fx-loupe) ouvre la recherche à leur place (.is-recherche) ;
   - en option : menu déroulant (.fx-menu) dans la même barre, trait de progression (.fx-prog) en bas de la barre.
   Couleur : data-fx-ton="beige" (défaut) | "vert" (légal, Le Business) | "rouge" (illégal, Le Milieu), sur la barre ou un
   parent, ou les 4 variables --fx-acc, --fx-acc-rgb, --fx-acc-fond, --fx-acc-txt posées par la page.
   Mécanique (segment qui glisse, compacte, collée, loupe, clavier) : Ultimate.filtres(barre, options) dans commun.js.
   Aucune règle prefers-reduced-motion (choix du propriétaire).
   ====================================================================== */
[data-fx-ton="beige"] { --fx-acc: #ecd3b1; --fx-acc-rgb: 236, 211, 177; --fx-acc-fond: var(--beige); --fx-acc-txt: #0d0c0b; }
[data-fx-ton="vert"] { --fx-acc: #7fc3a0; --fx-acc-rgb: 62, 150, 108; --fx-acc-fond: linear-gradient(180deg, #2c7d59, #1b5a40); --fx-acc-txt: #eef7f1; }
[data-fx-ton="rouge"] { --fx-acc: #e46a55; --fx-acc-rgb: 196, 52, 36; --fx-acc-fond: linear-gradient(180deg, #ad3020, #7e1c12); --fx-acc-txt: #fff1ec; }

/* La barre : légère, sans fond tant qu'elle n'est pas collée */
.fx-barre { position: sticky; top: calc(var(--hd) + 12px); z-index: 6; display: flex; align-items: center; gap: 16px; margin: 0 -8px clamp(30px, 3.2vw, 48px); padding: 8px;
  border-radius: 4px; background: rgba(14, 13, 12, 0); box-shadow: 0 0 0 1px rgba(236, 211, 177, 0);
  font-family: var(--font-body); font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; color: var(--text);
  -webkit-tap-highlight-color: transparent; transition: top .7s var(--ease), background .35s, box-shadow .35s; }
body.hd-cache .fx-barre { top: 12px; }
/* Filets écrits en dur (valeurs de --line / --line-2 du site) : une page qui redéfinit ces variables (le Règlement) garde la même barre */
.fx-barre.is-colle { background: rgba(14, 13, 12, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(236, 211, 177, .12), 0 24px 44px -26px rgba(0, 0, 0, .95); }
/* Bande sombre au-dessus de la barre collée : le contenu ne se voit pas entre l'en-tête et la barre */
.fx-barre::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 100%; height: 14px; pointer-events: none; background: linear-gradient(180deg, rgba(13, 12, 11, .92), rgba(13, 12, 11, .5));
  opacity: 0; transition: opacity .3s; }
.fx-barre.is-colle::after { opacity: 1; }
.fx-barre .fx-outils { flex: 1 1 260px; min-width: 0; display: flex; justify-content: flex-end; }
/* Annonce pour les lecteurs d'écran seulement (« 12 serveurs ») */
.fx-barre .fx-nb { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fx-barre .fx-loupe { display: none; }
/* Barre compacte (posée par Ultimate.filtres) : une seule ligne ; les segments défilent au doigt et la loupe ouvre la recherche
   à leur place. Colonnes : segments / recherche superposés dans la 1re, puis un éventuel menu, puis la loupe. */
.fx-barre.is-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: column; grid-auto-columns: auto; gap: 6px; margin-inline: 0; padding: 5px; }
.fx-barre.is-compact:not(.is-colle) { padding-inline: 0; }
/* Barre sans recherche (Actualités, planning) : pas de colonne vide (ni d'écart de 6 px) pour la loupe */
.fx-barre.is-compact:not(:has(> .fx-loupe)) { grid-template-columns: minmax(0, 1fr); }
.fx-barre.is-compact .fx-zone, .fx-barre.is-compact .fx-outils { grid-area: 1 / 1; transition: opacity .3s, transform .45s var(--ease), visibility 0s; }
/* Fondus sur les bords : à droite tant qu'il reste des segments à voir, à gauche dès qu'on a fait défiler */
.fx-barre.is-compact .fx-zone { --fx-fg: 0px; --fx-fd: 26px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--fx-fg), #000 calc(100% - var(--fx-fd)), transparent); mask: linear-gradient(90deg, transparent, #000 var(--fx-fg), #000 calc(100% - var(--fx-fd)), transparent); }
.fx-barre.is-compact .fx-zone.is-fin { --fx-fd: 0px; }
.fx-barre.is-compact .fx-zone.is-debut-cache { --fx-fg: 22px; }
.fx-barre.is-compact .fx-outils { visibility: hidden; opacity: 0; transform: translateX(16px); }
.fx-barre.is-compact .fx-rech { max-width: none; }
.fx-barre.is-compact .fx-rech-x { display: none; }
.fx-barre.is-compact.is-recherche .fx-outils { visibility: visible; opacity: 1; transform: none; }
.fx-barre.is-compact.is-recherche .fx-zone { visibility: hidden; opacity: 0; transform: translateX(-16px); }
.fx-barre.is-compact.is-recherche > .fx-menu { display: none; }
.fx-barre.is-compact .fx-loupe { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 2px; background: var(--fx-acc-fond, var(--beige)); color: var(--fx-acc-txt, #0d0c0b); font-size: 22px;
  -webkit-tap-highlight-color: transparent; transform: skewX(-8deg); transition: transform .4s var(--ease); }
.fx-barre.is-compact .fx-loupe i { transform: skewX(8deg); }
.fx-barre.is-compact .fx-loupe:active { transform: skewX(-8deg) scale(.94); }

/* Segments : l'indicateur est une copie colorée des boutons (.fx-voile, créée par Ultimate.filtres), découpée en biais (clip-path),
   avec une ombre douce dessous (.fx-ombre) */
.fx-barre .fx-zone { position: relative; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; border-radius: 3px; -webkit-tap-highlight-color: transparent; }
.fx-barre .fx-zone::-webkit-scrollbar { display: none; }
.fx-barre .fx-segs { position: relative; display: flex; width: max-content; gap: 2px; padding: 4px; border-radius: 3px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.fx-barre .fx-seg { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 17px; border-radius: 2px;
  font-size: 12.5px; font-weight: 800; font-style: italic; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; color: rgba(246, 241, 234, .66);
  transition: color .3s; -webkit-tap-highlight-color: transparent; }
.fx-barre button.fx-seg:hover { color: #fff; }
.fx-barre .fx-n { font-size: 11px; font-weight: 800; font-style: normal; line-height: 1; color: var(--fx-acc, #ecd3b1); font-variant-numeric: tabular-nums; opacity: .85; transition: opacity .3s; }
.fx-barre .fx-n.is-zero { opacity: .35; }
.fx-barre .fx-ombre { position: absolute; z-index: 0; left: 0; top: 4px; bottom: 4px; width: 0; background: rgba(var(--fx-acc-rgb, 236, 211, 177), .14); pointer-events: none; }
.fx-barre .fx-voile { position: absolute; z-index: 2; inset: 0; display: flex; gap: 2px; padding: 4px; border-radius: 3px; background: var(--fx-acc-fond, var(--beige)); pointer-events: none; clip-path: inset(50%); }
.fx-barre .fx-voile .fx-seg { color: var(--fx-acc-txt, #0d0c0b); }
.fx-barre .fx-voile .fx-n { color: var(--fx-acc-txt, #0d0c0b); opacity: .75; }

/* Recherche : AUCUN effet au clic, au toucher ni au focus (demande du propriétaire), seul le curseur de texte apparaît */
.fx-barre .fx-rech { position: relative; flex: 1 1 auto; min-width: 0; max-width: 340px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 15px; border: 1px solid rgba(236, 211, 177, .24); border-radius: 3px;
  background: rgba(13, 12, 11, .4); cursor: text; -webkit-tap-highlight-color: transparent; }
.fx-barre .fx-rech > i { flex: none; font-size: 19px; color: var(--fx-acc, #ecd3b1); }
.fx-barre .fx-rech input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; outline: none; box-shadow: none; font-size: 14.5px; font-weight: 500; color: var(--text);
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; caret-color: var(--fx-acc, #ecd3b1); }
.fx-barre .fx-rech input:focus, .fx-barre .fx-rech input:focus-visible, .fx-barre .fx-rech input:active, .fx-barre .fx-rech input:hover { outline: none; box-shadow: none; border: 0; background: none; }
.fx-barre .fx-rech:focus-within, .fx-barre .fx-rech:hover, .fx-barre .fx-rech:active { border-color: rgba(236, 211, 177, .24); background: rgba(13, 12, 11, .4); box-shadow: none; outline: none; }
.fx-barre .fx-rech input::placeholder { color: var(--dim); opacity: 1; }
.fx-barre .fx-rech input::-webkit-search-cancel-button, .fx-barre .fx-rech input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.fx-barre .fx-rech-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; font-size: 20px; color: var(--muted); transition: color .25s, background .25s; -webkit-tap-highlight-color: transparent; }
.fx-barre .fx-rech-x:hover { color: var(--fx-acc, #ecd3b1); background: rgba(255, 255, 255, .06); }
/* Nombre de résultats dans le champ (facultatif ; vide = caché) : même typo que les compteurs des segments */
.fx-barre .fx-rech-n { flex: none; margin-right: 4px; font-size: 11px; font-weight: 800; font-style: normal; line-height: 1; white-space: nowrap; color: var(--fx-acc, #ecd3b1);
  font-variant-numeric: tabular-nums; opacity: .85; }
.fx-barre .fx-rech-n:empty { display: none; }

/* Menu déroulant dans la barre (ex. « Chapitre 01 · Coma & EMS ») : même hauteur, même fond et même typo que les segments.
   Le titre (.fx-menu-t) disparaît s'il ne tient pas (jamais coupé par « … ») ; en barre compacte, seuls l'icône, le numéro
   et la flèche restent. Le panneau qui s'ouvre appartient à la page (calque fixe). */
.fx-barre .fx-menu { position: relative; flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 12px 0 16px; border-radius: 3px;
  background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); text-align: left; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; font-style: italic; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: rgba(246, 241, 234, .66);
  transition: color .3s, background .3s; -webkit-tap-highlight-color: transparent; }
.fx-barre .fx-menu:hover, .fx-barre .fx-menu[aria-expanded="true"] { color: #fff; background: rgba(0, 0, 0, .45); }
.fx-barre .fx-menu-ico { display: none; flex: none; font-size: 19px; color: var(--fx-acc, #ecd3b1); }
.fx-barre .fx-menu-k { flex: none; color: var(--fx-acc, #ecd3b1); }
.fx-barre .fx-menu-n { flex: none; padding-right: .06em; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
/* (marges intérieures : la dernière lettre italique dépasse à droite de sa boîte, les accents des capitales — « ÉTHIQUE »,
   « GÉNÉRAL », « MODÉRATION » — dépassent au-dessus de la ligne ; sans elles, overflow: hidden les rognerait) */
.fx-barre .fx-menu-t { flex: 0 1 auto; min-width: 0; overflow: hidden; padding: .32em .16em .32em 0; color: rgba(246, 241, 234, .9); }
.fx-barre .fx-menu-n + .fx-menu-t::before { content: "·"; margin-right: 9px; color: var(--dim); }
.fx-barre .fx-menu-t.fx-cache { display: none; }
.fx-barre .fx-menu-v { flex: none; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .45s var(--ease), color .3s; }
.fx-barre .fx-menu:hover .fx-menu-v { color: var(--fx-acc, #ecd3b1); }
.fx-barre .fx-menu[aria-expanded="true"] .fx-menu-v { transform: rotate(180deg); color: var(--fx-acc, #ecd3b1); }
.fx-barre.is-compact .fx-menu { gap: 7px; padding: 0 8px 0 12px; }
.fx-barre.is-compact .fx-menu-k, .fx-barre.is-compact .fx-menu-t { display: none; }
.fx-barre.is-compact .fx-menu-ico { display: block; }

/* Trait de progression en bas de la barre (ex. lecture du règlement) : un trait par section (--n = son poids),
   rempli de la couleur de la page selon --p (0 à 1) posé sur le <i>. La barre reçoit fx-avec-prog (place en bas). */
.fx-barre.fx-avec-prog { padding-bottom: 15px; }
.fx-barre.is-compact.fx-avec-prog { padding-bottom: 12px; }
.fx-barre .fx-prog { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; display: flex; pointer-events: none; }
.fx-barre.is-compact .fx-prog { left: 5px; right: 5px; bottom: 4px; }
.fx-barre.is-compact:not(.is-colle) .fx-prog { left: 0; right: 0; }
.fx-barre .fx-prog-s { position: relative; flex: var(--n, 1) 1 0px; min-width: 0; height: 100%; margin-right: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .13);
  transition: flex-grow .6s var(--ease), margin .6s var(--ease), opacity .4s; }
.fx-barre .fx-prog-s:last-child { margin-right: 0; }
.fx-barre .fx-prog-s > i { position: absolute; inset: 0; background: var(--fx-acc, #ecd3b1); transform-origin: left; transform: scaleX(var(--p, 0)); }
.fx-barre .fx-prog-s.is-cur { overflow: visible; }
.fx-barre .fx-prog-s.is-cur > i { box-shadow: 0 0 10px rgba(var(--fx-acc-rgb, 236, 211, 177), .95); }
.fx-barre .fx-prog-s.is-vide { flex-grow: 0; margin-right: 0; opacity: 0; }

/* Téléphone : cibles plus grandes, barre un peu plus près du haut */
@media (max-width: 700px) {
  .fx-barre { top: calc(var(--hd) + 8px); margin-bottom: 22px; }
  body.hd-cache .fx-barre { top: 8px; }
  .fx-barre .fx-seg { height: 44px; padding: 0 14px; }
  .fx-barre .fx-menu { height: 52px; }
  .fx-barre .fx-rech { height: 54px; }
  .fx-barre .fx-rech input { font-size: 16px; }
  /* Barre compacte sans recherche : la même hauteur (64 px) que les barres avec recherche (ligne de 54 px, celle du champ) */
  .fx-barre.is-compact:not(:has(> .fx-loupe)) { grid-template-rows: minmax(54px, auto); }
}
