/* =============================================================
   EUP FASS KC — fass.css
   Charte graphique du site (chargée en dernier dans index.php).

   Principes :
   - Couleurs tirées du logo : bleu de la croix + vert de la main.
   - Titres en serif (Source Serif 4) pour un ton institutionnel,
     texte courant en Public Sans (police conçue pour les services publics).
   - Fond « papier » chaud en alternance avec le blanc, peu d'ombres,
     angles discrets : sobre plutôt que décoratif.
   ============================================================= */

:root {
  --fx-ink: #0E1A33;
  --fx-ink-2: #34405A;
  --fx-muted: #5F6980;
  --fx-line: #E4E1D8;
  --fx-paper: #FFFFFF;
  --fx-sand: #F6F3EC;
  --fx-navy: #0A1F4E;
  --fx-navy-2: #0F2B66;
  --fx-blue: #1F4FD1;
  --fx-blue-dark: #173DA3;
  --fx-green: #4C8A33;
  --fx-green-light: #86B947;
  --fx-green-soft: #EDF4E4;

  --fx-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --fx-sans: 'Public Sans', 'Segoe UI', system-ui, sans-serif;

  --fx-radius: 6px;
  --fx-radius-lg: 10px;
  --fx-container: 1200px;
  --fx-gutter: 24px;
  --fx-header-h: 84px;

  /* Variables historiques utilisées par les pages intérieures :
     on les réaligne sur la nouvelle charte pour que tout le site suive. */
  --brand-primary: var(--fx-blue);
  --brand-primary-dark: var(--fx-navy);
  --brand-secondary: var(--fx-blue);
  --brand-green: var(--fx-green);
  --brand-green-light: var(--fx-green-light);
  --brand-dark: var(--fx-navy);
  --brand-text: var(--fx-ink);
  --brand-text-muted: var(--fx-muted);
  --brand-bg-light: var(--fx-sand);
  --brand-border: var(--fx-line);
  --font-heading: var(--fx-serif);
  --font-body: var(--fx-sans);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 51, .06);
  --shadow-md: 0 6px 20px rgba(14, 26, 51, .08);
  --shadow-lg: 0 14px 36px rgba(14, 26, 51, .12);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--fx-sans) !important;
  color: var(--fx-ink);
  background: var(--fx-paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6, .display-5, .display-6 {
  font-family: var(--fx-serif) !important;
  color: inherit;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p { color: inherit; }
a { color: var(--fx-blue); text-underline-offset: 3px; }
a:hover { color: var(--fx-blue-dark); }
img { max-width: 100%; }
::selection { background: var(--fx-green-light); color: var(--fx-navy); }
:focus-visible { outline: 2px solid var(--fx-blue); outline-offset: 3px; }

/* Certaines pages appliquent des règles globales (ex. « * { font-family } ») :
   on protège l'en-tête et le pied de page pour qu'ils restent identiques partout. */
.fx-topbar, .fx-header, .fx-drawer, .fx-footer { font-family: var(--fx-sans); line-height: 1.5; }
.fx-topbar *, .fx-header *, .fx-drawer *, .fx-footer * { font-family: inherit; box-sizing: border-box; }

.fx-container {
  width: 100%;
  max-width: calc(var(--fx-container) + var(--fx-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--fx-gutter);
}

/* ---------- Typo utilitaires ---------- */
.fx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fx-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fx-green);
  margin-bottom: 18px;
}
.fx-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.fx-kicker--light { color: var(--fx-green-light); }

.fx-h2 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--fx-navy);
  max-width: 22ch;
}
.fx-lede {
  font-size: 1.125rem;
  color: var(--fx-ink-2);
  max-width: 60ch;
}
.fx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.fx-section-head .fx-h2 { margin-bottom: 0; }
.fx-section-head p { margin: 0; max-width: 46ch; color: var(--fx-muted); }

/* ---------- Boutons ---------- */
.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--fx-radius);
  font-family: var(--fx-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.fx-btn i { font-size: 1rem; transition: transform .2s; }
.fx-btn:hover i { transform: translateX(3px); }
.fx-btn--primary { background: var(--fx-blue); color: #fff; }
.fx-btn--primary:hover { background: var(--fx-blue-dark); color: #fff; }
.fx-btn--green { background: var(--fx-green); color: #fff; }
.fx-btn--green:hover { background: #3E7329; color: #fff; }
.fx-btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.fx-btn--ghost:hover { background: #fff; color: var(--fx-navy); border-color: #fff; }
.fx-btn--outline { border-color: var(--fx-navy); color: var(--fx-navy); }
.fx-btn--outline:hover { background: var(--fx-navy); color: #fff; }

.fx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--fx-blue);
  text-decoration: none;
}
.fx-link i { transition: transform .2s; }
.fx-link:hover i { transform: translateX(4px); }

/* ---------- Médias avec repli si l'image est absente ---------- */
.fx-media {
  position: relative;
  overflow: hidden;
  background:
    url('../img/icone.png') center / 64px no-repeat,
    linear-gradient(135deg, #E9EEF8, var(--fx-green-soft));
}
.fx-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.fx-media.is-missing > img { visibility: hidden; }
.fx-media.is-missing { background-blend-mode: normal; }

/* =============================================================
   EN-TÊTE
   ============================================================= */
.fx-topbar {
  background: var(--fx-navy);
  color: rgba(255,255,255,.78);
  font-size: .82rem;
}
.fx-topbar .fx-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.fx-topbar-info { display: flex; gap: 28px; }
.fx-topbar-info span, .fx-topbar-info a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.fx-topbar-info a:hover { color: #fff; }
.fx-topbar-info i { color: var(--fx-green-light); }
.fx-topbar-social { display: flex; gap: 4px; }
.fx-topbar-social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-radius: 4px;
}
.fx-topbar-social a:hover { color: #fff; background: rgba(255,255,255,.08); }

.fx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--fx-line);
  transition: box-shadow .25s;
}
.fx-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,26,51,.07); }
.fx-header .fx-container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--fx-header-h);
}
.fx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.fx-brand img { width: 48px; height: 48px; object-fit: contain; }
.fx-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.fx-brand-name {
  font-family: var(--fx-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fx-navy);
  letter-spacing: -0.01em;
}
.fx-brand-sub {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fx-green);
  margin-top: 3px;
}

.fx-nav { display: flex; align-items: center; }
.fx-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fx-nav-item { position: relative; }
.fx-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--fx-ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.fx-nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--fx-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.fx-nav-link:hover, .fx-nav-item:focus-within > .fx-nav-link { color: var(--fx-blue); }
.fx-nav-link:hover::after, .fx-nav-link.is-active::after { transform: scaleX(1); }
.fx-nav-link.is-active { color: var(--fx-navy); font-weight: 600; }
.fx-nav-link .bi-chevron-down { font-size: .7rem; transition: transform .2s; }
.fx-nav-item:hover .bi-chevron-down { transform: rotate(180deg); }

.fx-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  box-shadow: 0 18px 40px rgba(14,26,51,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.fx-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.fx-nav-item:hover > .fx-dropdown,
.fx-nav-item:focus-within > .fx-dropdown { opacity: 1; visibility: visible; transform: none; }
.fx-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: .92rem;
  color: var(--fx-ink);
  text-decoration: none;
}
.fx-dropdown a small { display: block; color: var(--fx-muted); font-size: .8rem; margin-top: 2px; }
.fx-dropdown a:hover, .fx-dropdown a.is-active { background: var(--fx-sand); color: var(--fx-navy); }

.fx-header-cta { padding: 12px 20px; }

.fx-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--fx-navy);
  cursor: pointer;
}

/* Tiroir mobile */
.fx-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 100%);
  background: #fff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.fx-drawer.is-open { transform: none; }
.fx-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--fx-gutter);
  border-bottom: 1px solid var(--fx-line);
}
.fx-drawer-body { padding: 12px var(--fx-gutter) 32px; flex: 1; }
.fx-drawer-body a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fx-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--fx-line);
}
.fx-drawer-body a.is-active { color: var(--fx-blue); }
.fx-drawer-group { padding: 18px 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fx-green); }
.fx-drawer-body .fx-btn { display: flex; justify-content: center; margin-top: 24px; border: 0; color: #fff; }
.fx-drawer-contact { margin-top: 24px; font-size: .9rem; color: var(--fx-muted); line-height: 1.9; }
.fx-overlay {
  position: fixed; inset: 0;
  background: rgba(10,31,78,.45);
  z-index: 1090;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.fx-overlay.is-open { opacity: 1; visibility: visible; }

/* =============================================================
   ACCUEIL — HERO
   ============================================================= */
.fx-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Plein écran : la photo occupe tout le fond, le texte est posé à gauche sur un dégradé */
.fx-hero {
  position: relative;
  min-height: clamp(560px, 86vh, 800px);
  display: flex;
  align-items: stretch;
  background: var(--fx-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.fx-hero-slide {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.fx-hero-slide.is-active { opacity: 1; }
/* Photo en largeur : plein cadre, cadrage calé sur le haut pour garder les visages */
.fx-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04);
  transition: transform 15s linear;
}
.fx-hero-slide.is-active .fx-hero-img { transform: scale(1); }
/* Photo en hauteur : affichée en entier à droite, fond rempli par la même photo floutée */
.fx-hero-fond {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px) brightness(.55);
}
.fx-hero-photo {
  position: absolute;
  top: 28px;
  bottom: 150px;
  right: max(24px, calc((100vw - 1240px) / 2));
  width: 42%;
  height: calc(100% - 178px);
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
/* Dégradé : lisibilité du texte à gauche et de la légende en bas */
.fx-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,31,78,.88) 0%, rgba(10,31,78,.62) 38%, rgba(10,31,78,.08) 68%, rgba(10,31,78,0) 100%),
    linear-gradient(0deg, rgba(10,31,78,.85) 0%, rgba(10,31,78,0) 34%);
}
.fx-hero-inner { position: relative; width: 100%; display: flex; }
.fx-hero-inner > .fx-container { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: clamp(56px, 10vh, 110px); padding-bottom: 28px; }
.fx-hero-main { max-width: 640px; }
.fx-hero h1, .fx-hero-title { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.08; color: #fff; margin: 14px 0 20px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.fx-hero h1 em { font-style: italic; color: var(--fx-green-light); }
.fx-hero-lede { max-width: 54ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.65; color: rgba(255,255,255,.88); margin: 0 0 30px; }
.fx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied : légende de la photo + commandes + progression */
.fx-hero-foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.fx-hero-caption { flex: 1; min-width: 0; max-width: 720px; }
.fx-hero-text { display: none; }
.fx-hero-text.is-active { display: block; animation: fxHeroTexte .6s ease; }
.fx-hero-title { max-width: 22ch; margin: 14px 0 18px; }
.fx-hero-caption { font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.82); }
.fx-hero .fx-hero-baseline { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.35; margin: 0 0 4px; text-shadow: none; }
@keyframes fxHeroTexte { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fx-hero-tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fx-green-light); margin-bottom: 4px; }
.fx-hero-caption strong { display: block; font-size: 1.02rem; color: #fff; margin-bottom: 2px; }
.fx-hero-desc { display: block; }
.fx-hero-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fx-hero-count { font-variant-numeric: tabular-nums; font-size: .88rem; color: rgba(255,255,255,.7); margin: 0 6px; }
.fx-hero-count b { color: #fff; font-weight: 600; }
.fx-hero-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(10,31,78,.25);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.fx-hero-btn:hover { background: #fff; color: var(--fx-navy); border-color: #fff; }
.fx-hero-btn:focus-visible { outline: 3px solid var(--fx-green-light); outline-offset: 2px; }
.fx-hero-btn--pause { width: 38px; height: 38px; font-size: .95rem; }
.fx-hero-progress { position: absolute; top: -1px; left: 0; right: 0; height: 2px; }
.fx-hero-progress span { display: block; height: 100%; width: 0; background: var(--fx-green-light); }

@media (min-width: 768px) and (max-width: 1100px) {
  /* Tablette : le texte laisse la place à la photo en hauteur */
  .fx-hero-main { max-width: 56%; }
  .fx-hero-photo { width: 40%; }
}
@media (max-width: 767px) {
  /* Mobile : la photo occupe une bande en haut, le texte passe en dessous (il ne la recouvre pas) */
  .fx-hero { --fx-hero-photo-h: clamp(260px, 82vw, 400px); min-height: 0; }
  .fx-hero-slide { inset: 0 0 auto 0; height: var(--fx-hero-photo-h); overflow: hidden; }
  .fx-hero-img { object-position: center 20%; transform: none; }
  .fx-hero-slide.is-active .fx-hero-img { transform: none; }
  .fx-hero-slide--entiere .fx-hero-photo { top: 12px; bottom: 12px; left: 12px; right: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-position: center; }
  .fx-hero-shade { background: linear-gradient(180deg, rgba(10,31,78,0) calc(var(--fx-hero-photo-h) - 90px), var(--fx-navy) var(--fx-hero-photo-h)); }
  .fx-hero-inner > .fx-container { justify-content: flex-start; padding-top: calc(var(--fx-hero-photo-h) + 8px); padding-bottom: 24px; gap: 26px; }
  .fx-hero h1 { margin-top: 8px; }
  .fx-hero-lede { margin-bottom: 22px; }
  .fx-hero-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .fx-hero-controls { justify-content: space-between; }
  .fx-hero-count { margin-right: auto; }
}
/* ---------- Chiffres clés ---------- */
.fx-stats { background: var(--fx-paper); border-bottom: 1px solid var(--fx-line); }
.fx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fx-stat {
  padding: 40px 32px;
  border-left: 1px solid var(--fx-line);
}
.fx-stat:first-child { border-left: 0; padding-left: 0; }
.fx-stat-value {
  font-family: var(--fx-serif);
  font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--fx-navy);
  font-variant-numeric: tabular-nums;
}
.fx-stat-value sup { font-size: .5em; color: var(--fx-green); top: -.8em; margin-left: 2px; }
.fx-stat-label { margin-top: 10px; font-size: .92rem; color: var(--fx-muted); }

/* ---------- Sections ---------- */
.fx-section { padding: 112px 0; }
.fx-section--sand { background: var(--fx-sand); }
.fx-section--tight { padding: 88px 0; }

/* ---------- À propos ---------- */
.fx-about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 88px;
  align-items: center;
}
.fx-about-media { position: relative; padding: 0 0 64px 0; }
.fx-about-media .fx-media--main { aspect-ratio: 4 / 5; border-radius: var(--fx-radius-lg); width: 82%; }
.fx-about-media .fx-media--inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border-radius: var(--fx-radius-lg);
  border: 8px solid var(--fx-paper);
}
.fx-about-since {
  position: absolute;
  left: -20px;
  top: 40px;
  background: var(--fx-green);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--fx-radius);
  line-height: 1.2;
}
.fx-about-since strong { display: block; font-family: var(--fx-serif); font-size: 2rem; font-weight: 600; }
.fx-about-since span { font-size: .82rem; opacity: .9; }
.fx-about-text p { color: var(--fx-ink-2); }
.fx-pillars { list-style: none; margin: 36px 0 36px; padding: 0; border-top: 1px solid var(--fx-line); }
.fx-pillars li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--fx-line);
}
.fx-pillars .num { font-family: var(--fx-serif); font-size: 1.1rem; color: var(--fx-green); font-weight: 600; }
.fx-pillars h3 { font-size: 1.15rem; margin: 0 0 4px; color: var(--fx-navy); }
.fx-pillars p { margin: 0; font-size: .96rem; color: var(--fx-muted); }

/* ---------- Mot du directeur ---------- */
.fx-director { background: var(--fx-navy); color: #fff; overflow: hidden; }
.fx-director-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 88px;
  align-items: center;
}
.fx-director .fx-media { aspect-ratio: 4 / 5; border-radius: var(--fx-radius-lg); }
.fx-director blockquote {
  font-family: var(--fx-serif);
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 36px;
  position: relative;
  color: #fff;
}
.fx-director blockquote::before {
  content: "\201C";
  display: block;
  font-size: 5rem;
  line-height: .6;
  height: 36px;
  color: var(--fx-green-light);
}
.fx-director-sign { display: flex; align-items: center; gap: 16px; }
.fx-director-sign::before { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.5); }
.fx-director-sign strong { display: block; font-size: 1.05rem; }
.fx-director-sign span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ---------- Domaines (accueil) : voir « QUI SOMMES-NOUS & DOMAINES » en fin de fichier ---------- */

/* ---------- Mécanisme ---------- */
.fx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.fx-steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 28px; right: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--fx-line) 0 6px, transparent 6px 12px);
}
.fx-step { position: relative; }
.fx-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--fx-navy);
  color: var(--fx-navy);
  font-family: var(--fx-serif);
  font-weight: 600;
  font-size: 1.15rem;
  display: grid; place-items: center;
  margin-bottom: 28px;
  position: relative;
}
.fx-step:last-child .fx-step-num { background: var(--fx-green); border-color: var(--fx-green); color: #fff; }
.fx-step h3 { font-size: 1.2rem; color: var(--fx-navy); margin: 0 0 10px; }
.fx-step p { font-size: .95rem; color: var(--fx-muted); margin: 0; }

/* ---------- Projets ---------- */
.fx-projects {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.fx-project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}
.fx-project:hover { border-color: #CFCABC; color: inherit; }
.fx-project:hover .fx-media img { transform: scale(1.04); }
.fx-project .fx-media { aspect-ratio: 16 / 9; }
.fx-project--featured { grid-row: span 2; }
.fx-project--featured .fx-media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.fx-project--compact { flex-direction: row; }
.fx-project--compact .fx-media { aspect-ratio: auto; width: 40%; flex-shrink: 0; }
.fx-project-body { padding: 26px 28px 28px; }
.fx-project-period {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--fx-green);
  margin-bottom: 10px;
}
.fx-project h3 { font-size: 1.22rem; line-height: 1.35; color: var(--fx-navy); margin: 0 0 12px; }
.fx-project--featured h3 { font-size: 1.6rem; }
.fx-project p { font-size: .95rem; color: var(--fx-muted); margin: 0 0 18px; }
.fx-project-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: var(--fx-ink-2); }
.fx-project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.fx-project-meta i { color: var(--fx-green); }

/* ---------- Actualités ---------- */
.fx-news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.fx-news-lead { text-decoration: none; color: inherit; display: block; }
.fx-news-lead .fx-media { aspect-ratio: 3 / 2; border-radius: var(--fx-radius-lg); margin-bottom: 24px; }
.fx-news-lead:hover .fx-media img { transform: scale(1.03); }
.fx-news-lead h3 { font-size: 1.55rem; line-height: 1.3; color: var(--fx-navy); margin: 8px 0 12px; }
.fx-news-lead:hover h3 { color: var(--fx-blue); }
.fx-news-lead p { color: var(--fx-muted); margin: 0; }
.fx-news-meta { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--fx-muted); }
.fx-news-meta time { font-weight: 700; color: var(--fx-green); letter-spacing: .06em; text-transform: uppercase; }
.fx-news-list { display: flex; flex-direction: column; }
.fx-news-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--fx-line);
  text-decoration: none;
  color: inherit;
}
.fx-news-item:first-child { padding-top: 0; }
.fx-news-item .fx-media { aspect-ratio: 1; border-radius: var(--fx-radius); }
.fx-news-item h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--fx-navy);
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fx-news-item:hover h3 { color: var(--fx-blue); }

/* ---------- Galerie ---------- */
.fx-albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fx-album { text-decoration: none; color: inherit; }
.fx-album .fx-media { aspect-ratio: 4 / 3; border-radius: var(--fx-radius-lg); margin-bottom: 16px; }
.fx-album:hover .fx-media img { transform: scale(1.04); }
.fx-album h3 { font-size: 1.12rem; color: var(--fx-navy); margin: 0 0 4px; }
.fx-album > span { font-size: .88rem; color: var(--fx-muted); }
.fx-album-count {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(10,31,78,.85);
  color: #fff;
  font-size: .8rem;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-flex; gap: 6px; align-items: center;
}

/* ---------- Partenaires ---------- */
.fx-partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--fx-line);
  border-left: 1px solid var(--fx-line);
}
.fx-partner {
  height: 140px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-right: 1px solid var(--fx-line);
  border-bottom: 1px solid var(--fx-line);
  background: #fff;
  text-align: center;
}
.fx-partner img {
  max-height: 88px;
  max-width: 88%;
  object-fit: contain;
  transition: transform .25s;
}
.fx-partner:hover img { transform: scale(1.05); }
.fx-partner-name {
  font-family: var(--fx-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fx-ink-2);
  letter-spacing: .02em;
}
.fx-partner:not(.is-missing) .fx-partner-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fx-partner.is-missing img { display: none; }

/* ---------- Appel à l'action ---------- */
.fx-cta { background: var(--fx-paper); padding: 0 0 112px; }
.fx-cta-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--fx-navy);
  color: #fff;
  border-radius: var(--fx-radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.fx-cta-box::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 56px solid rgba(134,185,71,.14);
}
.fx-cta-box h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; margin: 0 0 14px; }
.fx-cta-box p { color: rgba(255,255,255,.78); margin: 0; }
.fx-cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
.fx-cta-contact { font-size: .92rem; color: rgba(255,255,255,.75); margin-top: 8px; }
.fx-cta-contact a { color: #fff; }

/* =============================================================
   PIED DE PAGE
   ============================================================= */
.fx-footer { background: #081A40; color: rgba(255,255,255,.72); font-size: .94rem; }
.fx-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 88px 0 64px;
}
.fx-footer .fx-brand-name { color: #fff; }
.fx-footer .fx-brand-sub { color: var(--fx-green-light); }
.fx-footer .fx-brand img { background: #fff; border-radius: 50%; padding: 2px; }
.fx-footer-about { margin: 22px 0 24px; max-width: 34ch; line-height: 1.7; }
.fx-footer h4 {
  font-family: var(--fx-sans) !important;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 8px 0 22px;
}
.fx-footer ul { list-style: none; margin: 0; padding: 0; }
.fx-footer li { margin-bottom: 12px; }
.fx-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.fx-footer a:hover { color: #fff; }
.fx-footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.55; }
.fx-footer-contact i { color: var(--fx-green-light); margin-top: 2px; }
.fx-footer-social { display: flex; gap: 8px; }
.fx-footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transition: background .2s, border-color .2s;
}
.fx-footer-social a:hover { background: var(--fx-green); border-color: var(--fx-green); }
.fx-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .84rem;
  color: rgba(255,255,255,.55);
}
.fx-footer-bottom a { color: rgba(255,255,255,.75); }

/* Retour en haut */
.fx-totop {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--fx-navy);
  color: #fff;
  display: grid; place-items: center;
  text-decoration: none;
  z-index: 900;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.fx-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.fx-totop:hover { background: var(--fx-blue); color: #fff; }

/* =============================================================
   PAGES INTÉRIEURES — harmonisation
   ============================================================= */
/* En-tête de page commun (.history-header est utilisé par la plupart des pages) */
section.history-header {
  position: relative;
  text-align: left !important;
  padding: 96px var(--fx-gutter) 72px !important;
  margin: 0 0 64px !important;
  border-radius: 0 !important;
  color: #fff !important;
  background:
    linear-gradient(90deg, rgba(8,22,56,.94) 0%, rgba(8,22,56,.8) 55%, rgba(8,22,56,.55) 100%),
    url('../img/backdrop-eupfass-2400.jpg') center / cover no-repeat !important;
  overflow: hidden;
}
section.history-header > * {
  max-width: var(--fx-container);
  margin-left: auto !important;
  margin-right: auto !important;
}
section.history-header h1 {
  font-family: var(--fx-serif) !important;
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  line-height: 1.1 !important;
  color: #fff !important;
  animation: none !important;
  margin-bottom: 0 !important;
}
section.history-header p,
section.history-header .lead {
  font-size: 1.12rem !important;
  color: rgba(255,255,255,.82) !important;
  margin-top: 16px !important;
  opacity: 1 !important;
  animation: none !important;
  max-width: var(--fx-container);
}
section.history-header .text-primary { color: var(--fx-green-light) !important; }
section.history-header::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--fx-green) 0 33%, var(--fx-blue) 33% 100%);
}

/* Mise en page commune des pages intérieures */
.fx-page { padding-bottom: 112px; }
.fx-page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--fx-line);
}
.fx-page-intro .fx-lede { margin: 0; }
.fx-inline-stats { display: flex; gap: 48px; margin: 0; flex-shrink: 0; }
.fx-inline-stats dt { font-family: var(--fx-serif); font-size: 2.2rem; font-weight: 600; color: var(--fx-navy); line-height: 1; }
.fx-inline-stats dd { margin: 8px 0 0; font-size: .9rem; color: var(--fx-muted); }
.fx-empty { color: var(--fx-muted); padding: 48px 0; }

/* Liste des projets */
.fx-project-list { display: flex; flex-direction: column; gap: 32px; }
.fx-project-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
}
/* Galerie défilante d'un projet */
.fx-gallery { position: relative; min-height: 340px; background: var(--fx-sand); }
.fx-gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.fx-gallery-track::-webkit-scrollbar { display: none; }
.fx-gallery-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; }
.fx-gallery-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px;
  font-size: .85rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(8,22,56,.8), transparent);
}
.fx-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--fx-navy);
  display: grid; place-items: center;
  font-size: 1.05rem;
  cursor: pointer;
  opacity: .9;
  transition: opacity .2s, background .2s;
  box-shadow: 0 4px 14px rgba(8,22,56,.18);
}
.fx-gallery-btn--prev { left: 14px; }
.fx-gallery-btn--next { right: 14px; }
.fx-gallery:hover .fx-gallery-btn { opacity: 1; }
.fx-gallery-btn:hover { background: #fff; }
.fx-gallery-count {
  position: absolute;
  right: 14px; top: 14px;
  display: inline-flex; gap: 6px; align-items: center;
  background: rgba(8,22,56,.8);
  color: #fff;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  padding: 5px 10px;
  border-radius: 4px;
}
.fx-project-row-body { padding: 36px 40px; }
.fx-project-row h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 14px; }
.fx-project-row h2 a { color: var(--fx-navy); text-decoration: none; }
.fx-project-row h2 a:hover { color: var(--fx-blue); }
.fx-project-row p { color: var(--fx-muted); font-size: .98rem; margin: 0 0 24px; }
.fx-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin: 0 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--fx-line);
}
.fx-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-muted); margin-bottom: 4px; }
.fx-facts dd { margin: 0; font-size: .95rem; color: var(--fx-ink); }

/* Actualités : filtres + grille */
.fx-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--fx-sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--fx-ink-2);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.fx-chip span { font-size: .78rem; color: var(--fx-muted); }
.fx-chip:hover { border-color: var(--fx-navy); }
.fx-chip.is-active { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; }
.fx-chip.is-active span { color: rgba(255,255,255,.7); }
.fx-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.fx-article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.fx-article-card[hidden] { display: none; }
.fx-article-card .fx-media { aspect-ratio: 3 / 2; border-radius: var(--fx-radius-lg); margin-bottom: 20px; }
.fx-article-card:hover .fx-media img { transform: scale(1.04); }
.fx-article-card h2 { font-size: 1.2rem; line-height: 1.35; color: var(--fx-navy); margin: 10px 0 10px; }
.fx-article-card:hover h2 { color: var(--fx-blue); }
.fx-article-card p { font-size: .94rem; color: var(--fx-muted); margin: 0 0 16px; }
.fx-article-card .fx-link { margin-top: auto; }
.fx-tag {
  position: absolute;
  left: 14px; top: 14px;
  background: #fff;
  color: var(--fx-navy);
  font-size: .76rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
}

/* Lecture d'un article */
.fx-article-narrow { max-width: calc(760px + var(--fx-gutter) * 2); }
.fx-article-wide { max-width: calc(1040px + var(--fx-gutter) * 2); }
.fx-article-head { background: var(--fx-sand); padding: 72px 0 140px; border-bottom: 1px solid var(--fx-line); }
.fx-article-back { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 28px; }
.fx-article-head h1 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1.2;
  color: var(--fx-navy);
  margin: 14px 0 0;
}
.fx-article-cover { aspect-ratio: 16 / 9; border-radius: var(--fx-radius-lg); margin-top: -100px; }
.fx-article-body { padding-top: 56px; padding-bottom: 96px; font-size: 1.08rem; line-height: 1.8; color: var(--fx-ink-2); }
.fx-article-body p { margin-bottom: 1.2em; }
/* Texte justifié (les alignements choisis dans l'éditeur restent prioritaires) */
.fx-article-body p, .fx-article-body li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.fx-article-body .ql-align-center { text-align: center; }
.fx-article-body .ql-align-right { text-align: right; }
.fx-article-body .ql-align-justify { text-align: justify; }
.fx-article-body h2, .fx-article-body h3 { color: var(--fx-navy); margin: 1.6em 0 .6em; line-height: 1.3; }
.fx-article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--fx-green-light); font-style: italic; color: var(--fx-ink); }
/* Photos placées dans le texte depuis l'administration */
.fx-article-body img { display: block; max-width: 100%; height: auto; margin: 1.8em auto; border-radius: var(--fx-radius); }
.fx-article-body img.fx-img-centre { width: 65%; }
.fx-article-body img.fx-img-gauche { float: left; width: 45%; margin: .35em 1.6em 1em 0; }
.fx-article-body img.fx-img-droite { float: right; width: 45%; margin: .35em 0 1em 1.6em; }
.fx-article-body .fx-share { clear: both; }
@media (max-width: 640px) {
  .fx-article-body img.fx-img-centre, .fx-article-body img.fx-img-gauche, .fx-article-body img.fx-img-droite { float: none; width: 100%; margin: 1.4em 0; }
}
.fx-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--fx-line);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fx-muted);
}
.fx-share span { margin-right: 6px; }
.fx-share a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--fx-line);
  border-radius: 50%;
  color: var(--fx-navy);
  text-decoration: none;
  font-size: 1rem;
}
.fx-share a:hover { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; }

/* Boutons Bootstrap alignés sur la charte */
.btn { border-radius: var(--fx-radius); font-weight: 600; font-family: var(--fx-sans); }
.btn-primary { background-color: var(--fx-blue); border-color: var(--fx-blue); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--fx-blue-dark); border-color: var(--fx-blue-dark); }
.btn-success { background-color: var(--fx-green); border-color: var(--fx-green); }
.text-primary { color: var(--fx-blue) !important; }
.bg-primary { background-color: var(--fx-blue) !important; }

/* Titre partagé encore utilisé par lectureArticle.php */
.domaines-expertises-title { color: var(--fx-navy); font-family: var(--fx-serif); }

/* Anciens éléments désormais inutilisés */
#loader, .back-to-top { display: none !important; }

/* ---------- Apparition au défilement ---------- */
.fx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-reveal { opacity: 1; transform: none; transition: none; }
  .fx-hero-slide { transition: opacity .01s; }
  .fx-hero-img { transition: none; transform: none; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1199px) {
  .fx-nav-link { padding: 10px 10px; }
  .fx-nav-link::after { left: 10px; right: 10px; }
  .fx-header-cta { display: none; }
  .fx-about, .fx-director-grid { gap: 56px; }
}
@media (max-width: 991px) {
  :root { --fx-header-h: 72px; }
  .fx-topbar { display: none; }
  .fx-nav, .fx-header-cta { display: none; }
  .fx-burger { display: inline-flex; }
  .fx-brand img { width: 42px; height: 42px; }

  .fx-section { padding: 80px 0; }
  .fx-section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fx-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-stat { padding: 28px 20px; }
  .fx-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fx-stat:nth-child(n+3) { border-top: 1px solid var(--fx-line); }

  .fx-about, .fx-director-grid, .fx-news, .fx-cta-box { grid-template-columns: 1fr; }
  .fx-about-media { max-width: 560px; }
  .fx-director .fx-media { max-width: 320px; }
  .fx-domains { grid-template-columns: 1fr; }
  .fx-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .fx-steps::before { display: none; }
  .fx-projects { grid-template-columns: 1fr; }
  .fx-project--featured { grid-row: auto; }
  .fx-albums { grid-template-columns: repeat(2, 1fr); }
  .fx-partners { grid-template-columns: repeat(3, 1fr); }
  .fx-footer-top { grid-template-columns: 1fr 1fr; }
  .fx-cta-box { padding: 48px 36px; }
  .fx-page-intro { flex-direction: column; align-items: flex-start; gap: 28px; }
  .fx-project-row { grid-template-columns: 1fr; }
  .fx-gallery { min-height: 0; aspect-ratio: 16 / 10; }
  .fx-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  :root { --fx-gutter: 16px; }
  body { font-size: 16px; }
  .fx-section { padding: 64px 0; }
  .fx-about-since { left: 12px; top: 12px; }
  .fx-steps { grid-template-columns: 1fr; }
  .fx-project--compact { flex-direction: column; }
  .fx-project--compact .fx-media { width: 100%; aspect-ratio: 16 / 9; }
  .fx-news-item { grid-template-columns: 96px 1fr; gap: 16px; }
  .fx-albums { grid-template-columns: 1fr; }
  .fx-partners { grid-template-columns: repeat(2, 1fr); }
  .fx-partner { height: 108px; }
  .fx-footer-top { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; }
  .fx-cta-box { padding: 40px 24px; }
  section.history-header { padding: 64px var(--fx-gutter) 48px !important; margin-bottom: 40px !important; }
  .fx-page { padding-bottom: 72px; }
  .fx-project-row-body { padding: 24px 20px; }
  .fx-facts { grid-template-columns: 1fr; }
  .fx-article-grid { grid-template-columns: 1fr; }
}

/* Galerie sur la page détail d'un projet */
.fx-detail-gallery { margin: 40px 0; }
.fx-gallery--large { min-height: 0; aspect-ratio: 16 / 9; border-radius: var(--fx-radius-lg); overflow: hidden; }

/* =============================================================
   OFFRES D'EMPLOI & APPELS
   ============================================================= */
.fx-offres-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.5rem;
  color: var(--fx-navy);
  margin: 8px 0 20px;
}
.fx-offres-title span {
  font-family: var(--fx-sans);
  font-size: .8rem;
  font-weight: 700;
  background: var(--fx-green-soft);
  color: var(--fx-green);
  padding: 3px 10px;
  border-radius: 999px;
}
.fx-offres-title--closed { margin-top: 64px; }
.fx-offres-title--closed span { background: var(--fx-sand); color: var(--fx-muted); }

.fx-offres-list { display: flex; flex-direction: column; gap: 20px; }
.fx-offre {
  display: grid;
  grid-template-columns: 1fr 240px;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
}
.fx-offre[hidden], .fx-offre-closed[hidden] { display: none; }
.fx-offre-main { padding: 28px 32px; }
.fx-offre-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.fx-offre-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
}
.fx-offre-cat--emploi { background: #E8EEFC; color: var(--fx-blue); }
.fx-offre-cat--appel { background: var(--fx-green-soft); color: var(--fx-green); }
.fx-offre-ref { font-size: .85rem; color: var(--fx-muted); font-variant-numeric: tabular-nums; }
.fx-offre h3 { font-size: 1.35rem; line-height: 1.3; color: var(--fx-navy); margin: 0 0 10px; }
.fx-offre p { color: var(--fx-ink-2); font-size: .98rem; margin: 0 0 22px; max-width: 70ch; }
.fx-offre-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-offre-actions .fx-btn { padding: 12px 18px; font-size: .9rem; }
.fx-offre-actions .fx-btn:hover i { transform: none; }

.fx-offre-dates {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px;
  background: var(--fx-sand);
  border-left: 1px solid var(--fx-line);
}
.fx-offre-deadline span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-muted); }
.fx-offre-deadline strong { display: block; font-family: var(--fx-serif); font-size: 1.45rem; font-weight: 600; color: var(--fx-navy); margin: 6px 0 4px; }
.fx-offre-deadline em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--fx-green); }
.fx-offre-deadline.is-urgent em { color: #B42318; }
.fx-offre-pub { font-size: .82rem; color: var(--fx-muted); }

.fx-offres-empty {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 28px 32px;
  border: 1px dashed #CFCABC;
  border-radius: var(--fx-radius-lg);
  background: #FBFAF7;
}
.fx-offres-empty i { font-size: 1.6rem; color: var(--fx-muted); }
.fx-offres-empty strong { color: var(--fx-navy); }
.fx-offres-empty p { margin: 4px 0 0; color: var(--fx-muted); }

.fx-offres-closed { border-top: 1px solid var(--fx-line); }
.fx-offre-closed {
  display: grid;
  grid-template-columns: 150px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--fx-line);
  color: var(--fx-muted);
}
.fx-offre-closed strong { color: var(--fx-ink-2); font-weight: 600; }
.fx-offre-closed .fx-offre-cat { opacity: .7; justify-self: start; }
.fx-offre-closed-date { font-size: .85rem; white-space: nowrap; }

@media (max-width: 767px) {
  .fx-offre { grid-template-columns: 1fr; }
  .fx-offre-dates { border-left: 0; border-top: 1px solid var(--fx-line); flex-direction: row; align-items: flex-end; padding: 20px; }
  .fx-offre-main { padding: 22px 20px; }
  .fx-offre-closed { grid-template-columns: 1fr; gap: 6px; }
}

/* =============================================================
   DOMAINES D'INTERVENTION
   ============================================================= */
.fx-dom-overview {
  list-style: none;
  margin: 0 0 88px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.fx-dom-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px 20px;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  text-decoration: none;
  color: var(--fx-navy);
  transition: border-color .2s, transform .2s;
}
.fx-dom-tile:hover { border-color: var(--fx-navy); transform: translateY(-3px); color: var(--fx-navy); }
.fx-dom-num { font-family: var(--fx-serif); font-size: .95rem; font-weight: 600; color: var(--fx-green); }
.fx-dom-tile-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin: 14px 0 16px;
  border-radius: 10px;
  background: #E8EEFC;
  color: var(--fx-blue);
  font-size: 1.25rem;
}
.fx-dom-tile strong { font-family: var(--fx-serif); font-size: 1.05rem; font-weight: 600; line-height: 1.35; flex: 1; }
.fx-dom-tile-more { margin-top: 18px; font-size: .82rem; font-weight: 600; color: var(--fx-blue); display: inline-flex; gap: 6px; align-items: center; }

/* Barre collante */
.fx-dom-nav {
  position: sticky;
  top: var(--fx-header-h);
  z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--fx-line);
  border-bottom: 1px solid var(--fx-line);
}
.fx-dom-nav .fx-container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.fx-dom-nav .fx-container::-webkit-scrollbar { display: none; }
.fx-dom-nav a {
  flex-shrink: 0;
  padding: 16px 14px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--fx-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.fx-dom-nav a span { font-weight: 700; color: var(--fx-green); margin-right: 4px; }
.fx-dom-nav a:hover { color: var(--fx-navy); }
.fx-dom-nav a.is-active { color: var(--fx-navy); font-weight: 600; border-bottom-color: var(--fx-green); }

/* Section d'un domaine */
.fx-dom-section { padding: 96px 0; scroll-margin-top: calc(var(--fx-header-h) + 52px); }
.fx-dom-section--sand { background: var(--fx-sand); }
.fx-dom-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; align-items: start; }
.fx-dom-head { position: sticky; top: calc(var(--fx-header-h) + 84px); }
.fx-dom-head-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.fx-dom-bignum { font-family: var(--fx-serif); font-size: 3.4rem; line-height: 1; font-weight: 600; color: var(--fx-green); }
.fx-dom-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--fx-navy);
  color: #fff;
  font-size: 1.35rem;
}
.fx-dom-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.2; color: var(--fx-navy); margin: 0 0 18px; }
.fx-dom-intro { font-size: 1.1rem; line-height: 1.7; color: var(--fx-ink-2); margin: 0 0 28px; }
.fx-dom-benefit {
  padding: 20px 22px;
  border-left: 3px solid var(--fx-green);
  background: var(--fx-green-soft);
  border-radius: 0 var(--fx-radius) var(--fx-radius) 0;
}
.fx-dom-section--sand .fx-dom-benefit { background: #fff; }
.fx-dom-benefit span { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-green); }
.fx-dom-benefit p { margin: 8px 0 0; color: var(--fx-ink); line-height: 1.65; }

.fx-dom-subtitle {
  font-family: var(--fx-sans) !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fx-muted);
  margin: 0 0 16px;
}
.fx-dom-actions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fx-line); }
.fx-dom-actions li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--fx-line);
}
.fx-dom-action-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1.5px solid var(--fx-navy);
  border-radius: 50%;
  font-family: var(--fx-serif);
  font-weight: 600;
  color: var(--fx-navy);
}
.fx-dom-actions strong { display: block; font-family: var(--fx-serif); font-size: 1.15rem; font-weight: 600; color: var(--fx-navy); margin-bottom: 4px; }
.fx-dom-actions p { margin: 0; color: var(--fx-ink-2); line-height: 1.65; }

.fx-dom-soon { display: flex; gap: 14px; padding: 24px; border: 1px dashed #CFCABC; border-radius: var(--fx-radius-lg); background: rgba(255,255,255,.6); }
.fx-dom-soon i { font-size: 1.4rem; color: var(--fx-muted); }
.fx-dom-soon p { margin: 0; color: var(--fx-muted); }

.fx-dom-news { margin-top: 48px; }
.fx-dom-news a {
  display: grid;
  grid-template-columns: 110px 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--fx-line);
  text-decoration: none;
  color: var(--fx-ink);
}
.fx-dom-news a:first-of-type { border-top: 1px solid var(--fx-line); }
.fx-dom-news time { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-green); }
.fx-dom-news span { font-weight: 500; line-height: 1.45; }
.fx-dom-news a:hover span { color: var(--fx-blue); }
.fx-dom-news i { color: var(--fx-muted); transition: transform .2s; }
.fx-dom-news a:hover i { transform: translateX(3px); color: var(--fx-blue); }

.fx-cta--spaced { padding-top: 96px; }
.fx-cta-link { color: #fff !important; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; opacity: .85; }
.fx-cta-link:hover { opacity: 1; }

@media (max-width: 1199px) {
  .fx-dom-overview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .fx-dom-grid { grid-template-columns: 1fr; gap: 40px; }
  .fx-dom-head { position: static; }
  .fx-dom-section { padding: 72px 0; }
  .fx-dom-overview { grid-template-columns: repeat(2, 1fr); margin-bottom: 64px; }
}
@media (max-width: 575px) {
  .fx-dom-overview { grid-template-columns: 1fr; }
  .fx-dom-bignum { font-size: 2.6rem; }
  .fx-dom-news a { grid-template-columns: 1fr 20px; }
  .fx-dom-news time { grid-column: 1 / -1; }
}

/* =============================================================
   ACCUEIL — QUI SOMMES-NOUS & DOMAINES
   ============================================================= */
.fx-who-top { margin-bottom: 56px; }
.fx-who-title {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);
  line-height: 1.12;
  color: var(--fx-navy);
  margin: 0;
  max-width: 30ch;
}
/* Texte sur deux colonnes alignées en haut, sous un filet */
.fx-who-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--fx-line);
}
.fx-who-lead {
  margin: 0;
  font-family: var(--fx-serif);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--fx-ink);
}
.fx-who-body p { margin: 0 0 18px; color: var(--fx-ink-2); line-height: 1.7; }

.fx-who-mosaic {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 16px;
  height: 540px;
}
.fx-who-mosaic figure { margin: 0; border-radius: var(--fx-radius-lg); }
.fx-who-main { grid-row: 1 / span 2; }
.fx-who-mosaic figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 7px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,.94);
  color: var(--fx-navy);
  font-size: .8rem;
  font-weight: 600;
}
/* Repères clés : 4 cases claires, filet vert en haut */
.fx-who-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-top: 3px solid var(--fx-green);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
}
.fx-who-fact { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.fx-who-fact:nth-child(odd) { border-right: 1px solid var(--fx-line); }
.fx-who-fact:nth-child(-n+2) { border-bottom: 1px solid var(--fx-line); }
.fx-who-fact i {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--fx-green-soft);
  color: var(--fx-green);
  font-size: 1rem;
}
.fx-who-fact strong { font-family: var(--fx-serif); font-size: 1.3rem; font-weight: 600; color: var(--fx-navy); line-height: 1.2; }
.fx-who-fact span { font-size: .85rem; color: var(--fx-muted); line-height: 1.45; }

.fx-who-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--fx-line);
}
.fx-who-values > div { padding: 36px 36px 0 0; }
.fx-who-values > div + div { padding-left: 36px; border-left: 1px solid var(--fx-line); }
.fx-who-values i {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--fx-green-soft);
  color: var(--fx-green);
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.fx-who-values h3 { font-size: 1.25rem; color: var(--fx-navy); margin: 0 0 8px; }
.fx-who-values p { margin: 0; color: var(--fx-muted); line-height: 1.65; }

/* Domaines sur l'accueil : grille de 6 colonnes (3 cartes par ligne,
   ou 2 larges + 3 quand il y a 5 domaines) */
.fx-domains { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.fx-domain {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.fx-domains--wide-first .fx-domain:nth-child(-n+2) { grid-column: span 3; }
.fx-domain:hover { border-color: var(--fx-navy); transform: translateY(-3px); color: inherit; }
.fx-domain-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.fx-domain-num { font-family: var(--fx-serif); font-size: 1.6rem; font-weight: 600; color: var(--fx-green); line-height: 1; }
.fx-domain-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #E8EEFC;
  color: var(--fx-blue);
  font-size: 1.25rem;
}
.fx-domain h3 { font-size: 1.28rem; line-height: 1.3; color: var(--fx-navy); margin: 0 0 12px; }
.fx-domain p { font-size: .95rem; color: var(--fx-muted); line-height: 1.6; margin: 0 0 20px; flex: 1; }
.fx-domain .fx-link { margin-top: auto; }

@media (max-width: 991px) {
  .fx-who-intro { grid-template-columns: 1fr; gap: 20px; }
  .fx-who-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 320px auto; height: auto; }
  .fx-who-main { grid-row: auto; grid-column: 1 / -1; }
  .fx-who-side { min-height: 240px; }
  .fx-who-values { grid-template-columns: 1fr; }
  .fx-who-values > div, .fx-who-values > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--fx-line); }
  .fx-domains { grid-template-columns: 1fr 1fr; }
  .fx-domain, .fx-domains--wide-first .fx-domain:nth-child(-n+2) { grid-column: auto; }
}
@media (max-width: 575px) {
  .fx-who-mosaic { grid-template-columns: 1fr; grid-template-rows: 260px 220px auto; }
  .fx-domains { grid-template-columns: 1fr; }
}

/* =============================================================
   HISTORIQUE
   ============================================================= */
.fx-histo-context {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--fx-line);
}
.fx-histo-context-text p { color: var(--fx-ink-2); line-height: 1.75; margin: 0 0 18px; }
.fx-histo-context-text .fx-who-lead { color: var(--fx-ink); margin-bottom: 22px; }

.fx-histo-timeline { padding: 72px 0; }
.fx-histo-timeline ol { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.fx-histo-timeline ol::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: calc(180px + 24px + 21px);
  width: 2px;
  background: linear-gradient(180deg, var(--fx-green) 0%, var(--fx-blue) 100%);
  opacity: .35;
}
.fx-histo-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 180px 44px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 32px;
}
.fx-histo-timeline li:last-child { padding-bottom: 0; }
.fx-histo-when {
  padding-top: 8px;
  text-align: right;
  font-family: var(--fx-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fx-green);
  line-height: 1.2;
}
.fx-histo-dot {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fx-navy);
  font-family: var(--fx-serif);
  font-weight: 600;
  color: var(--fx-navy);
}
.fx-histo-timeline li:last-child .fx-histo-dot { background: var(--fx-navy); color: #fff; }
.fx-histo-card {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
}
.fx-histo-card h3 { font-size: 1.3rem; color: var(--fx-navy); margin: 0 0 8px; }
.fx-histo-card p { margin: 0; color: var(--fx-ink-2); line-height: 1.7; }

.fx-histo-places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding: 28px 32px;
  background: var(--fx-sand);
  border-radius: var(--fx-radius-lg);
}
.fx-histo-place { display: flex; align-items: center; gap: 14px; }
.fx-histo-place i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--fx-green);
  font-size: 1.2rem;
}
.fx-histo-place span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-muted); }
.fx-histo-place strong { color: var(--fx-navy); font-weight: 600; }
.fx-histo-places .fx-btn { margin-left: auto; }

@media (max-width: 767px) {
  .fx-histo-context { grid-template-columns: 1fr; gap: 20px; padding-bottom: 48px; }
  .fx-histo-timeline { padding: 48px 0; }
  .fx-histo-timeline ol::before { left: 21px; }
  .fx-histo-timeline li { grid-template-columns: 44px 1fr; gap: 8px 16px; }
  .fx-histo-when { grid-column: 2; text-align: left; padding-top: 0; font-size: 1.1rem; }
  .fx-histo-dot { grid-row: 1; grid-column: 1; }
  .fx-histo-card { grid-column: 2; }
  .fx-histo-places .fx-btn { margin-left: 0; }
}

/* =============================================================
   VIDÉOS
   ============================================================= */
.fx-video-stage { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: center; margin-bottom: 80px; }
.fx-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  background: var(--fx-navy) url('../img/icone.png') center / 72px no-repeat;
  cursor: pointer;
}
.fx-video-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-video-player::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,22,56,.45), rgba(8,22,56,.05));
  pointer-events: none;
}
.fx-video-player.is-loaded { cursor: default; }
.fx-video-player.is-loaded::after { display: none; }
.fx-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fx-video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 84px; height: 84px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--fx-navy);
  font-size: 2.4rem;
  display: grid; place-items: center;
  padding-left: 6px;
  box-shadow: 0 12px 36px rgba(8,22,56,.35);
  transition: transform .2s, background .2s;
}
.fx-video-player:hover .fx-video-play { transform: translate(-50%, -50%) scale(1.07); background: var(--fx-green); color: #fff; }
.fx-video-meta h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.25; color: var(--fx-navy); margin: 0 0 12px; }
.fx-video-meta p { color: var(--fx-ink-2); line-height: 1.7; margin: 0 0 20px; }
.fx-video-meta p:empty { display: none; }

.fx-video-list-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.fx-video-list-head .fx-offres-title { margin: 0; }
.fx-video-search {
  width: min(320px, 100%);
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  font: inherit;
  font-size: .92rem;
  background: #fff;
}
.fx-video-search:focus { outline: none; border-color: var(--fx-blue); box-shadow: 0 0 0 3px rgba(31,79,209,.12); }
.fx-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.fx-video-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.fx-video-item[hidden] { display: none; }
.fx-video-thumb { display: block; aspect-ratio: 16 / 9; border-radius: var(--fx-radius); margin-bottom: 8px; }
.fx-video-thumb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--fx-navy);
  display: grid; place-items: center; font-size: 1.3rem; padding-left: 3px;
  transition: background .2s, color .2s;
}
.fx-video-item:hover .fx-video-thumb-play { background: var(--fx-green); color: #fff; }
.fx-video-now {
  position: absolute; left: 10px; top: 10px;
  display: none;
  padding: 4px 8px; border-radius: 4px;
  background: var(--fx-green); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.fx-video-item.is-playing .fx-video-now { display: block; }
.fx-video-item.is-playing .fx-video-thumb { outline: 3px solid var(--fx-green); outline-offset: 2px; }
.fx-video-item strong { font-family: var(--fx-serif); font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--fx-navy); }
.fx-video-item:hover strong { color: var(--fx-blue); }
.fx-video-desc { font-size: .85rem; color: var(--fx-muted); line-height: 1.5; }

@media (max-width: 991px) {
  .fx-video-stage { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .fx-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .fx-video-grid { grid-template-columns: 1fr; }
  .fx-video-play { width: 64px; height: 64px; font-size: 1.9rem; }
}

/* =============================================================
   PHOTOS (albums) & DOCUMENTS
   ============================================================= */
.fx-album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fx-album-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.fx-album-card:hover { border-color: var(--fx-navy); transform: translateY(-3px); color: inherit; }
.fx-album-card > .fx-media { display: block; aspect-ratio: 4 / 3; }
.fx-album-card:hover .fx-media img { transform: scale(1.04); }
.fx-album-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.fx-album-card-count { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-green); }
.fx-album-card strong { font-family: var(--fx-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--fx-navy); }
.fx-album-card-desc { font-size: .9rem; color: var(--fx-muted); line-height: 1.55; }
.fx-album-card-open { margin-top: auto; padding-top: 10px; font-size: .88rem; font-weight: 600; color: var(--fx-blue); display: inline-flex; gap: 6px; align-items: center; }
/* Le plus récent en grand */
.fx-album-card--featured { grid-column: span 2; flex-direction: row; }
.fx-album-card--featured > .fx-media { aspect-ratio: auto; width: 58%; min-height: 340px; flex-shrink: 0; }
.fx-album-card--featured .fx-album-card-body { justify-content: center; padding: 32px; }
.fx-album-card--featured strong { font-size: 1.6rem; }
.fx-album-grid--small .fx-album-card--featured { grid-column: auto; flex-direction: column; }

.fx-recent-photos { margin-top: 80px; }
.fx-recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fx-recent-grid .fx-media { aspect-ratio: 1; border-radius: var(--fx-radius); }
.fx-recent-grid .fx-media:hover img { transform: scale(1.05); }

/* Photos d'un album */
.fx-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.fx-photo {
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  border-radius: var(--fx-radius);
  cursor: zoom-in;
}
.fx-photo:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.fx-photo:hover img { transform: scale(1.04); }
.fx-photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(0deg, rgba(8,22,56,.75), transparent);
  color: #fff; font-size: .85rem; text-align: left;
}

/* Visionneuse */
.fx-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  background: rgba(6,16,40,.94);
}
.fx-lightbox[hidden] { display: none; }
.fx-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100vh; padding: 56px 0 24px; }
.fx-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.fx-lightbox figcaption { display: flex; gap: 20px; color: rgba(255,255,255,.85); font-size: .92rem; }
.fx-lightbox figcaption span:last-child { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.fx-lb-nav, .fx-lb-close {
  width: 48px; height: 48px; justify-self: center;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  background: transparent; color: #fff; font-size: 1.2rem;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.fx-lb-nav:hover, .fx-lb-close:hover { background: rgba(255,255,255,.15); }
.fx-lb-close { position: absolute; top: 16px; right: 16px; }

/* Documents */
.fx-docs-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.fx-docs-toolbar .fx-filters { margin-bottom: 0; }
.fx-doc-list { border-top: 1px solid var(--fx-line); }
.fx-doc {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--fx-line);
}
.fx-doc[hidden] { display: none; }
.fx-doc-icon { width: 56px; height: 64px; display: grid; place-items: center; border-radius: 8px; font-size: 1.7rem; }
.fx-doc-icon--pdf { background: #FDECEA; color: #B42318; }
.fx-doc-icon--word { background: #E8EEFC; color: var(--fx-blue); }
.fx-doc-icon--excel { background: var(--fx-green-soft); color: var(--fx-green); }
.fx-doc-icon--autre { background: var(--fx-sand); color: var(--fx-muted); }
.fx-doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--fx-muted); margin-bottom: 4px; }
.fx-doc-cat { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-green); }
.fx-doc h3 { font-size: 1.2rem; line-height: 1.35; color: var(--fx-navy); margin: 0; }
.fx-doc p { margin: 6px 0 0; font-size: .93rem; color: var(--fx-ink-2); line-height: 1.6; }
.fx-doc-actions { display: flex; gap: 10px; }
.fx-doc-actions .fx-btn { padding: 11px 16px; font-size: .88rem; }
.fx-doc-actions .fx-btn:hover i { transform: none; }

@media (max-width: 991px) {
  .fx-album-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-album-card--featured { grid-column: 1 / -1; }
  .fx-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-recent-grid { grid-template-columns: repeat(4, 1fr); }
  .fx-doc { grid-template-columns: 48px 1fr; }
  .fx-doc-actions { grid-column: 2; }
}
@media (max-width: 575px) {
  .fx-album-grid { grid-template-columns: 1fr; }
  .fx-album-card--featured { flex-direction: column; }
  .fx-album-card--featured > .fx-media { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .fx-photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fx-recent-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-lightbox { grid-template-columns: 1fr; }
  .fx-lb-nav { position: absolute; bottom: 20px; }
  .fx-lb-prev { left: calc(50% - 60px); }
  .fx-lb-next { right: calc(50% - 60px); }
  .fx-doc-actions { flex-wrap: wrap; }
}

/* =============================================================
   FICHE PROJET
   ============================================================= */
.fx-proj-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--fx-navy); }
.fx-proj-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fx-proj-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,22,56,.95) 0%, rgba(8,22,56,.55) 55%, rgba(8,22,56,.25) 100%);
}
.fx-proj-hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 96px; }
.fx-proj-back { display: flex; width: fit-content; gap: 8px; align-items: center; margin-bottom: 28px; color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; text-decoration: none; }
.fx-proj-back:hover { color: #fff; }
.fx-proj-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); line-height: 1.15; max-width: 30ch; margin: 0; color: #fff; }

.fx-proj-facts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: -52px 0 0;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  box-shadow: 0 16px 40px rgba(10,31,78,.08);
}
.fx-proj-facts > div { padding: 22px 24px; border-left: 1px solid var(--fx-line); }
.fx-proj-facts > div:first-child { border-left: 0; }
.fx-proj-facts dt { display: flex; gap: 8px; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-muted); margin-bottom: 6px; }
.fx-proj-facts dt i { color: var(--fx-green); font-size: .95rem; }
.fx-proj-facts dd { margin: 0; font-weight: 600; color: var(--fx-navy); line-height: 1.4; }

.fx-proj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-top: 64px; padding-bottom: 96px; align-items: start; }
.fx-proj-lead { font-family: var(--fx-serif); font-size: 1.3rem; line-height: 1.6; color: var(--fx-ink); margin: 0 0 40px; }
.fx-proj-gallery { margin-bottom: 48px; }
.fx-proj-h2 { font-size: 1.6rem; color: var(--fx-navy); margin: 0 0 18px; }
.fx-proj-content { font-size: 1.04rem; line-height: 1.8; color: var(--fx-ink-2); }
.fx-proj-content p { margin: 0 0 1.1em; }
.fx-proj-content h2, .fx-proj-content h3 { color: var(--fx-navy); margin: 1.6em 0 .6em; font-size: 1.3rem; }
.fx-proj-content ul, .fx-proj-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.fx-proj-content li { margin-bottom: .4em; }
.fx-proj-content img { max-width: 100%; height: auto; border-radius: var(--fx-radius); }

.fx-proj-aside { position: sticky; top: calc(var(--fx-header-h) + 24px); }
.fx-proj-card { padding: 26px; background: var(--fx-sand); border-radius: var(--fx-radius-lg); }
.fx-proj-card h2 { font-size: 1.2rem; color: var(--fx-navy); margin: 0 0 12px; }
.fx-proj-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.fx-proj-card li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--fx-line); font-size: .93rem; }
.fx-proj-card li span { color: var(--fx-muted); }
.fx-proj-card li strong { color: var(--fx-navy); text-align: right; }
.fx-proj-card .fx-btn { width: 100%; justify-content: center; }

.fx-proj-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.fx-proj-kpi { padding: 26px; background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); }
.fx-proj-kpi-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--fx-green-soft); color: var(--fx-green); margin-bottom: 16px; }
.fx-proj-kpi strong { display: block; font-family: var(--fx-serif); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--fx-navy); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.fx-proj-kpi p { margin: 0; font-size: .93rem; color: var(--fx-ink-2); line-height: 1.55; }
.fx-proj-other { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.fx-proj-other li { display: flex; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); line-height: 1.55; color: var(--fx-ink-2); }
.fx-proj-other i { color: var(--fx-green); font-size: 1.15rem; flex-shrink: 0; }

.fx-proj-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 64px 0 96px; }
.fx-proj-pager-link { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); text-decoration: none; color: inherit; transition: border-color .2s; }
.fx-proj-pager-link:hover { border-color: var(--fx-navy); color: inherit; }
.fx-proj-pager-link span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-green); display: inline-flex; gap: 6px; align-items: center; }
.fx-proj-pager-link strong { font-family: var(--fx-serif); font-weight: 600; color: var(--fx-navy); line-height: 1.35; }
.fx-proj-pager-link--next { text-align: right; align-items: flex-end; }

/* =============================================================
   CONTACT
   ============================================================= */
.fx-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.fx-contact-intro { color: var(--fx-ink-2); line-height: 1.7; margin: 0 0 32px; }
.fx-contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fx-line); }
.fx-contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--fx-line); }
.fx-contact-list i { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--fx-green-soft); color: var(--fx-green); font-size: 1.1rem; }
.fx-contact-list span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-muted); margin-bottom: 2px; }
.fx-contact-list strong, .fx-contact-list a { font-weight: 600; color: var(--fx-navy); text-decoration: none; line-height: 1.5; }
.fx-contact-list a:hover { color: var(--fx-blue); }
.fx-contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.fx-contact-links a { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; }

.fx-contact-form { padding: 36px; background: #fff; border: 1px solid var(--fx-line); border-top: 3px solid var(--fx-blue); border-radius: var(--fx-radius-lg); box-shadow: 0 16px 40px rgba(10,31,78,.06); }
.fx-contact-form h2 { font-size: 1.5rem; color: var(--fx-navy); margin: 0 0 6px; }
.fx-contact-note { font-size: .88rem; color: var(--fx-muted); margin: 0 0 24px; }
.fx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-field { margin-bottom: 18px; }
.fx-field label { display: block; font-size: .86rem; font-weight: 600; color: var(--fx-ink-2); margin-bottom: 6px; }
.fx-field input, .fx-field select, .fx-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D6D2C6;
  border-radius: var(--fx-radius);
  background: #fff;
  font: inherit;
  font-size: .98rem;
  color: var(--fx-ink);
  transition: border-color .15s, box-shadow .15s;
}
.fx-field select { height: 48px; }
.fx-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.fx-field input:focus, .fx-field select:focus, .fx-field textarea:focus { outline: none; border-color: var(--fx-blue); box-shadow: 0 0 0 3px rgba(31,79,209,.14); }
.fx-contact-form .fx-btn { margin-top: 4px; }
.fx-contact-privacy { font-size: .8rem; color: var(--fx-muted); margin: 14px 0 0; }
.fx-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fx-contact-errors { display: flex; gap: 10px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid #FECDCA; background: #FEF3F2; color: #B42318; border-radius: var(--fx-radius); font-size: .92rem; }
.fx-contact-errors ul { margin: 0; padding-left: 18px; }
.fx-contact-done { text-align: center; padding: 32px 8px; }
.fx-contact-done > span { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--fx-green-soft); color: var(--fx-green); font-size: 2rem; }
.fx-contact-done p { color: var(--fx-ink-2); margin: 0 0 24px; }

.fx-contact-map { margin-top: 88px; }
.fx-contact-map-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fx-contact-map-head .fx-offres-title { margin: 0; }
.fx-contact-map-frame { aspect-ratio: 21 / 8; border-radius: var(--fx-radius-lg); overflow: hidden; border: 1px solid var(--fx-line); background: var(--fx-sand); }
.fx-contact-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 991px) {
  .fx-proj-layout { grid-template-columns: 1fr; gap: 40px; }
  .fx-proj-aside { position: static; }
  .fx-proj-facts > div { border-left: 0; border-top: 1px solid var(--fx-line); }
  .fx-proj-facts > div:first-child { border-top: 0; }
  .fx-contact { grid-template-columns: 1fr; gap: 48px; }
  .fx-contact-map-frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 575px) {
  .fx-proj-hero { min-height: 360px; }
  .fx-proj-pager { grid-template-columns: 1fr; padding: 48px 0 72px; }
  .fx-proj-pager-link--next { text-align: left; align-items: flex-start; }
  .fx-field-row { grid-template-columns: 1fr; gap: 0; }
  .fx-contact-form { padding: 24px 20px; }
}

/* Paragraphes vides laissés par l'éditeur de texte */
.fx-proj-content p:empty, .fx-proj-content p:has(> br:only-child) { display: none; }

/* =============================================================
   COOKIES : bandeau, panneau de choix, encart de contenu bloqué
   ============================================================= */
.fx-consent {
  position: fixed; right: 20px; bottom: 20px; z-index: 1900;
  width: min(420px, calc(100% - 40px));
  background: #fff;
  border: 1px solid var(--fx-line);
  border-top: 3px solid var(--fx-green);
  border-radius: var(--fx-radius-lg);
  box-shadow: 0 24px 60px rgba(10,31,78,.22);
  animation: fxConsentIn .35s ease;
}
.fx-consent[hidden], .fx-consent-modal[hidden] { display: none; }
@keyframes fxConsentIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fx-consent-inner { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; }
.fx-consent-text h2 { display: flex; gap: 8px; align-items: center; font-size: 1.1rem; color: var(--fx-navy); margin: 0 0 4px; }
.fx-consent-text h2 i { color: var(--fx-green); }
.fx-consent-text p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--fx-ink-2); }
.fx-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-consent-actions [data-consent="accepter"] { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
.fx-consent-actions .fx-btn { justify-content: center; }
.fx-consent-actions .fx-btn, .fx-consent-panel-actions .fx-btn { padding: 11px 16px; font-size: .88rem; }

.fx-consent-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(8,22,56,.55); }
.fx-consent-panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; background: #fff; border-radius: var(--fx-radius-lg); box-shadow: 0 24px 60px rgba(10,31,78,.3); }
.fx-consent-panel h2 { font-size: 1.5rem; color: var(--fx-navy); margin: 0 0 8px; }
.fx-consent-panel > p { font-size: .92rem; color: var(--fx-muted); margin: 0 0 20px; }
.fx-consent-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--fx-sand); color: var(--fx-navy); cursor: pointer; }
.fx-consent-cat { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--fx-line); }
.fx-consent-cat strong { display: block; color: var(--fx-navy); margin-bottom: 2px; }
.fx-consent-cat span { font-size: .86rem; color: var(--fx-muted); line-height: 1.5; }
.fx-consent-always { flex-shrink: 0; font-size: .78rem !important; font-weight: 700; color: var(--fx-green) !important; }
.fx-consent-panel-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--fx-line); }

/* Interrupteur */
.fx-switch { position: relative; flex-shrink: 0; width: 48px; height: 28px; cursor: pointer; }
.fx-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fx-switch span { position: absolute; inset: 0; border-radius: 999px; background: #CFCABC; transition: background .2s; }
.fx-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.fx-switch input:checked + span { background: var(--fx-green); }
.fx-switch input:checked + span::after { transform: translateX(20px); }
.fx-switch input:focus-visible + span { outline: 2px solid var(--fx-blue); outline-offset: 2px; }

/* Contenu externe en attente d'accord */
.fx-consent-placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center;
  background: var(--fx-sand); color: var(--fx-ink-2);
}
.fx-consent-placeholder i { font-size: 1.8rem; color: var(--fx-green); }
.fx-consent-placeholder p { margin: 0; max-width: 42ch; font-size: .92rem; line-height: 1.55; }
.fx-consent-placeholder strong { color: var(--fx-navy); }
.fx-consent-placeholder a { font-size: .85rem; }
.fx-contact-map-frame, #videoHolder { position: relative; }
.fx-contact-map-frame iframe, #videoHolder iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Liens légaux du pied de page */
.fx-footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.fx-footer-legal a { color: rgba(255,255,255,.75) !important; }
.fx-footer-legal a:hover { color: #fff !important; }

/* =============================================================
   PAGES LÉGALES
   ============================================================= */
.fx-legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.fx-legal-toc { position: sticky; top: calc(var(--fx-header-h) + 24px); display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--fx-sand); border-radius: var(--fx-radius-lg); }
.fx-legal-toc strong { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fx-muted); margin-bottom: 8px; }
.fx-legal-toc a { padding: 6px 0; font-size: .9rem; color: var(--fx-ink-2); text-decoration: none; }
.fx-legal-toc a:hover { color: var(--fx-blue); }
.fx-legal-body { max-width: 760px; font-size: 1.02rem; line-height: 1.75; color: var(--fx-ink-2); }
.fx-legal-body h2 { font-size: 1.45rem; color: var(--fx-navy); margin: 44px 0 12px; scroll-margin-top: calc(var(--fx-header-h) + 24px); }
.fx-legal-body h3 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 1.15rem; color: var(--fx-navy); margin: 28px 0 8px; }
.fx-legal-body ul { padding-left: 1.2em; }
.fx-legal-body li { margin-bottom: 6px; }
.fx-legal-date { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--fx-green-soft); color: var(--fx-green); font-size: .85rem; font-weight: 600; }
.fx-legal-tag { font-family: var(--fx-sans); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--fx-green-soft); color: var(--fx-green); }
.fx-legal-tag--opt { background: #E8EEFC; color: var(--fx-blue); }
.fx-legal-table { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); }
.fx-legal-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fx-legal-table th { text-align: left; padding: 10px 14px; background: var(--fx-sand); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-muted); }
.fx-legal-table td { padding: 12px 14px; border-top: 1px solid var(--fx-line); vertical-align: top; line-height: 1.55; }
.fx-legal-table code { font-size: .85rem; padding: 2px 6px; border-radius: 4px; background: var(--fx-sand); color: var(--fx-navy); }
.fx-legal-note { font-size: .9rem; color: var(--fx-muted); }
.fx-legal-choice { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); background: #fff; }
.fx-legal-choice p { margin: 4px 0 0; font-size: .9rem; color: var(--fx-muted); }
.fx-legal-ok { color: var(--fx-green); }
.fx-legal-no { color: #B42318; }

@media (max-width: 991px) {
  .fx-legal { grid-template-columns: 1fr; gap: 32px; }
  .fx-legal-toc { position: static; }
  .fx-legal-choice { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
  .fx-consent { right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .fx-consent-panel { padding: 24px 20px; }
  .fx-consent-panel-actions { flex-direction: column-reverse; }
  .fx-consent-panel-actions .fx-btn { justify-content: center; }
}

/* =============================================================
   NOTRE ÉQUIPE
   ============================================================= */
.fx-team-lead { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fx-team-lead-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--fx-radius-lg); overflow: hidden; background: var(--fx-sand); box-shadow: 0 24px 50px rgba(10,31,78,.16); position: relative; }
.fx-team-lead-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--fx-green), var(--fx-green-light)); }
.fx-team-lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.fx-team-lead-body .fx-h2 { margin-bottom: 6px; }
.fx-team-lead-role { font-weight: 600; color: var(--fx-green); margin-bottom: 22px; }
.fx-team-lead-text { font-size: 1.05rem; line-height: 1.75; color: var(--fx-ink-2); text-align: justify; margin-bottom: 22px; }
.fx-team-quote { margin: 0 0 24px; padding-left: 22px; border-left: 4px solid var(--fx-green-light); font-family: var(--fx-serif, 'Source Serif 4', Georgia, serif); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.55; font-style: italic; color: var(--fx-navy); }
.fx-team-initials { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--fx-navy), #1F4FD1); color: #fff; font-family: var(--fx-serif, 'Source Serif 4', Georgia, serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: .04em; }

.fx-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.fx-team-card { background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.fx-team-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,31,78,.12); }
.fx-team-card-photo { aspect-ratio: 4 / 5; background: var(--fx-sand); overflow: hidden; }
.fx-team-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.fx-team-card-body { padding: 18px 20px 22px; border-top: 4px solid var(--fx-green-light); }
.fx-team-card-body h3 { font-size: 1.1rem; line-height: 1.3; color: var(--fx-navy); margin: 0 0 4px; }
.fx-team-card-role { font-size: .9rem; font-weight: 600; color: var(--fx-green); margin: 0; }
.fx-team-card-text { font-size: .9rem; line-height: 1.6; color: var(--fx-muted); margin: 10px 0 0; }

.fx-team-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fx-team-place { display: flex; gap: 18px; padding: 26px 28px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); background: #fff; }
.fx-team-place-icon { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--fx-navy); color: var(--fx-green-light); font-size: 1.35rem; }
.fx-team-place h3 { font-size: 1.15rem; color: var(--fx-navy); margin: 2px 0 6px; }
.fx-team-place p { margin: 0 0 6px; color: var(--fx-ink-2); }
.fx-team-place span { font-size: .88rem; color: var(--fx-muted); }

@media (max-width: 860px) {
  .fx-team-lead { grid-template-columns: 1fr; }
  .fx-team-lead-photo { max-width: 340px; }
  .fx-team-places { grid-template-columns: 1fr; }
}
.fx-team-group + .fx-team-group { padding-top: 0; }

/* =============================================================
   PROJET — CADRE LOGIQUE (objectifs, résultats attendus, activités)
   ============================================================= */
.fx-logframe { background: #fff; border-top: 1px solid var(--fx-line); }
.fx-objectives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
.fx-objective { position: relative; padding: 30px 32px 32px; border-radius: var(--fx-radius-lg); }
.fx-objective h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 16px 0 10px; }
.fx-objective p { margin: 0; font-size: 1.05rem; line-height: 1.7; text-align: justify; hyphens: auto; }
.fx-objective-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 1.3rem; }
.fx-objective--general { background: var(--fx-navy); color: rgba(255,255,255,.88); }
.fx-objective--general h3 { color: var(--fx-green-light); }
.fx-objective--general .fx-objective-icon { background: rgba(255,255,255,.1); color: var(--fx-green-light); }
.fx-objective--specific { background: var(--fx-sand); border: 1px solid var(--fx-line); border-left: 5px solid var(--fx-green); color: var(--fx-ink-2); }
.fx-objective--specific h3 { color: var(--fx-green); }
.fx-objective--specific .fx-objective-icon { background: #fff; color: var(--fx-green); }

.fx-results { list-style: none; margin: 0; padding: 0; position: relative; }
.fx-result { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
/* Fil reliant les résultats */
.fx-result::before { content: ''; position: absolute; left: 41px; top: 84px; bottom: 0; width: 2px; background: var(--fx-line); }
.fx-result:last-child::before { display: none; }
.fx-result-num { width: 84px; height: 84px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--fx-green-light); box-shadow: 0 8px 22px rgba(10,31,78,.08); }
.fx-result-num strong { font-family: var(--fx-serif); font-size: 1.7rem; line-height: 1; color: var(--fx-navy); }
.fx-result-num span { margin-top: 4px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; color: var(--fx-muted); }
.fx-result-body { padding: 22px 26px 24px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); background: #fff; transition: box-shadow .2s, border-color .2s; }
.fx-result:hover .fx-result-body { border-color: var(--fx-green-light); box-shadow: 0 14px 34px rgba(10,31,78,.08); }
.fx-result-body h3 { font-size: 1.12rem; line-height: 1.45; color: var(--fx-navy); margin: 0 0 16px; }
.fx-activities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fx-activities li { display: flex; align-items: flex-start; gap: 12px; font-size: .97rem; line-height: 1.55; color: var(--fx-ink-2); }
.fx-activity-code { flex-shrink: 0; min-width: 38px; padding: 2px 8px; border-radius: 6px; background: var(--fx-sand); border: 1px solid var(--fx-line); font-size: .76rem; font-weight: 700; color: var(--fx-green); text-align: center; cursor: help; }

@media (max-width: 860px) {
  .fx-objectives { grid-template-columns: 1fr; margin-bottom: 40px; }
  .fx-result { grid-template-columns: 1fr; gap: 12px; }
  .fx-result::before { display: none; }
  .fx-result-num { width: auto; height: auto; flex-direction: row; gap: 10px; justify-content: flex-start; padding: 0; border: 0; box-shadow: none; background: none; }
  .fx-result-num strong { font-size: 1.4rem; }
  .fx-result-body { padding: 18px 20px; }
}

/* ---------- Fiche projet : sommaire, logos, réalisations vides, partenaires, mention ---------- */
.fx-proj-facts-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx-proj-facts-logos img { height: 34px; max-width: 96px; object-fit: contain; background: #fff; border-radius: 4px; }
.fx-proj-nav { position: sticky; top: var(--fx-header-h, 74px); z-index: 20; margin-top: 28px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); }
.fx-proj-nav .fx-container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fx-proj-nav a { flex-shrink: 0; padding: 14px 16px; font-size: .9rem; font-weight: 600; color: var(--fx-ink-2); text-decoration: none; border-bottom: 3px solid transparent; }
.fx-proj-nav a:hover, .fx-proj-nav a.is-active { color: var(--fx-navy); border-bottom-color: var(--fx-green-light); }
#presentation, #attentes, #realisations, #partenaires { scroll-margin-top: 140px; }
.fx-proj-empty { display: flex; align-items: center; gap: 16px; padding: 24px 28px; border: 1px dashed #CFC8B6; border-radius: var(--fx-radius-lg); background: rgba(255,255,255,.6); }
.fx-proj-empty i { font-size: 1.6rem; color: var(--fx-green); }
.fx-proj-empty p { margin: 0; color: var(--fx-ink-2); }
.fx-proj-partners { background: #fff; }
.fx-proj-partners-role { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-green); margin: 0 0 16px; }
.fx-proj-partners-role:not(:first-of-type) { margin-top: 36px; }
.fx-proj-partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.fx-proj-partner { margin: 0; padding: 22px 18px 18px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); background: #fff; text-align: center; transition: box-shadow .2s, transform .2s; }
.fx-proj-partner:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,31,78,.1); }
.fx-proj-partner span { height: 90px; display: grid; place-items: center; margin-bottom: 14px; }
.fx-proj-partner img { max-width: 160px; max-height: 86px; object-fit: contain; }
.fx-proj-partner figcaption { font-size: .9rem; font-weight: 600; color: var(--fx-navy); }
.fx-proj-note { display: flex; gap: 10px; align-items: flex-start; margin: 40px 0 0; padding: 18px 22px; border-left: 4px solid var(--fx-green-light); background: var(--fx-sand); border-radius: 0 var(--fx-radius) var(--fx-radius) 0; color: var(--fx-ink-2); font-style: italic; }
.fx-proj-note i { color: var(--fx-green); font-style: normal; margin-top: 2px; }

.fx-proj-facts-name { padding: 3px 10px; border: 1px solid var(--fx-line); border-radius: 4px; font-size: .82rem; font-weight: 600; color: var(--fx-navy); background: #fff; }
.fx-proj-partner-mono { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--fx-navy); color: var(--fx-green-light); font-family: var(--fx-serif); font-size: 2rem; }

/* Résultats attendus sans codes : « Résultat 1 », activités numérotées */
.fx-result-num span { margin: 0 0 2px; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-green); }
.fx-activities-title { display: block; margin: -4px 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-muted); }
.fx-activity-code { min-width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: default; }
@media (max-width: 860px) { .fx-result-num span { margin: 0; font-size: .8rem; } }

/* Galeries des projets : photo entière (rien n'est coupé), la même photo floutée remplit le cadre */
.fx-gallery-slide { position: relative; overflow: hidden; }
.fx-gallery-slide img.fx-gallery-fond { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(22px) brightness(.72) saturate(1.1); transform: none; }
.fx-gallery-slide img.fx-gallery-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; transform: none; }
.fx-gallery-slide figcaption { z-index: 2; }
.fx-proj-hero-bg { background-position: center 30%; }

/* =============================================================
   PAGE 404
   ============================================================= */
.fx-404 { padding: clamp(56px, 9vw, 110px) 0; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url('../img/backdrop-eupfass-1400.jpg') center / cover; border-bottom: 1px solid var(--fx-line); }
.fx-404-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.fx-404-code { display: flex; align-items: center; gap: 6px; font-family: var(--fx-serif); font-size: clamp(5rem, 3rem + 8vw, 10rem); font-weight: 700; line-height: 1; color: var(--fx-navy); }
.fx-404-cross { width: .82em; height: .82em; display: grid; place-items: center; border-radius: 50%; background: var(--fx-green); color: #fff; font-size: .55em; box-shadow: 0 16px 40px rgba(76,138,51,.35); }
.fx-404-text h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); color: var(--fx-navy); margin: 12px 0 14px; }
.fx-404-text p { max-width: 56ch; color: var(--fx-ink-2); font-size: 1.05rem; line-height: 1.7; margin: 0 0 26px; }
.fx-404-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fx-404-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fx-404-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fx-404-card:hover { transform: translateY(-3px); border-color: var(--fx-green-light); box-shadow: 0 14px 30px rgba(10,31,78,.1); }
.fx-404-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 10px; background: var(--fx-navy); color: var(--fx-green-light); font-size: 1.2rem; }
.fx-404-card strong { color: var(--fx-navy); font-size: 1.05rem; }
.fx-404-card span:last-child { color: var(--fx-muted); font-size: .9rem; }
@media (max-width: 900px) {
  .fx-404-inner { grid-template-columns: 1fr; text-align: center; }
  .fx-404-code { justify-content: center; }
  .fx-404-text p { margin-left: auto; margin-right: auto; }
  .fx-404-actions { justify-content: center; }
  .fx-404-grid { grid-template-columns: 1fr 1fr; }
}

/* Réalisations : résultats atteints et activités réalisées */
.fx-result-done { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--fx-green-soft, #EDF4E4); color: var(--fx-green); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.fx-proj-kpi strong small { font-size: .5em; color: var(--fx-muted); font-weight: 600; }
.fx-proj-kpi--done { border-color: var(--fx-green-light); }
.fx-proj-kpi--done .fx-proj-kpi-icon { background: var(--fx-green); color: #fff; }
.fx-done-title { font-size: 1.25rem; color: var(--fx-navy); margin: 48px 0 18px; }
.fx-done-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fx-done { padding: 22px 24px; background: #fff; border: 1px solid var(--fx-line); border-top: 4px solid var(--fx-green); border-radius: var(--fx-radius-lg); }
.fx-done header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-done header .fx-result-done { margin: 0; }
.fx-done-num { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-muted); }
.fx-done h4 { font-size: 1.02rem; line-height: 1.45; color: var(--fx-navy); margin: 12px 0 14px; }
.fx-done ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-done li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 12px; border-radius: 8px; background: var(--fx-sand); font-size: .93rem; line-height: 1.5; color: var(--fx-ink-2); }
.fx-done li i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--fx-green); color: #fff; font-size: .8rem; }
.fx-done li em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--fx-green); text-transform: uppercase; letter-spacing: .04em; padding-top: 3px; }
@media (max-width: 860px) {
  .fx-done-list { grid-template-columns: 1fr; }
  .fx-done li { grid-template-columns: 22px minmax(0, 1fr); }
  .fx-done li em { display: none; }
}
