/* ==========================================================================
   SFACCEC : habillage du template Cassiopeia (Joomla 5)
   Bleu nuit + or, titres Playfair Display, texte Cormorant Garamond (polices hébergées localement)
   ========================================================================== */

/* ---------- Polices (servies depuis le site : pas d'appel à Google, RGPD ok)
   Titres : Playfair Display. Texte : Cormorant Garamond (comme le Journal des adhérents).
   Poppins reste pour les petits éléments d'interface (menu, boutons, surtitres). */
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
/* Cormorant a un petit œil : on l'agrandit pour qu'il soit aussi lisible que l'ancien texte */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; size-adjust: 114%; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; size-adjust: 114%; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; size-adjust: 114%; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; size-adjust: 114%; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }

/* ---------- Jetons de couleur et de mise en page */
:root {
  --sf-nuit: #15233b;
  --sf-nuit-profond: #0f1a2e;
  --sf-nuit-clair: #243a5c;
  --sf-or: #b98a3a;
  --sf-or-clair: #d9b46c;
  --sf-or-texte: #8a6420;      /* or lisible sur fond clair */
  --sf-rouge: #c81e37;         /* rouge du cœur du logo, assombri pour le contraste */
  --sf-ivoire: #fbfaf7;
  --sf-encre: #15233b;
  --sf-texte-2: #4a5468;
  --sf-filet: #e6e1d4;
  --sf-lien: #1f5f8f;

  --sf-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sf-texte: "Cormorant Garamond", Garamond, Georgia, serif;
  --sf-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sf-max: 82.5rem;  /* même largeur que la grille de Cassiopeia */
  --sf-edge: max(1rem, calc((100% - var(--sf-max)) / 2));

  /* Variables de Cassiopeia */
  --cassiopeia-color-primary: var(--sf-nuit);
  --cassiopeia-color-link: var(--sf-lien);
  --cassiopeia-color-hover: var(--sf-nuit);
  --link-color: #1f5f8f;
  --link-color-rgb: 31, 95, 143;
  --link-hover-color: #15233b;
  --link-hover-color-rgb: 21, 35, 59;
  --cassiopeia-font-family-body: var(--sf-texte);
  --cassiopeia-font-family-headings: var(--sf-serif);
  --cassiopeia-font-weight-headings: 700;
  --body-bg: var(--sf-ivoire);
  --body-color: var(--sf-encre);
}

html { overflow-x: clip; }

body {
  background: var(--sf-ivoire);
  color: var(--sf-encre);
  font-family: var(--sf-texte);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
}
strong, b { font-weight: 700; }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--sf-serif);
  font-weight: 700;
  color: var(--sf-encre);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
h3, h4, .h3, .h4 { font-weight: 700; }
h5, h6 { font-family: var(--sf-sans); font-weight: 600; }

a { color: var(--sf-lien); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--sf-nuit); }

:focus-visible { outline: 2px solid var(--sf-or); outline-offset: 3px; }

/* Boutons Joomla/Bootstrap */
.btn { border-radius: 0; font-family: var(--sf-sans); font-weight: 600; }
.btn-primary {
  --btn-bg: var(--sf-nuit); --btn-border-color: var(--sf-nuit); --btn-color: #fff;
  --btn-hover-bg: var(--sf-nuit-clair); --btn-hover-border-color: var(--sf-nuit-clair); --btn-hover-color: #fff;
  --btn-active-bg: var(--sf-nuit-profond); --btn-active-border-color: var(--sf-nuit-profond);
}
.btn-secondary {
  --btn-bg: transparent; --btn-border-color: var(--sf-nuit); --btn-color: var(--sf-nuit);
  --btn-hover-bg: var(--sf-nuit); --btn-hover-border-color: var(--sf-nuit); --btn-hover-color: #fff;
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.container-header {
  background: var(--sf-nuit);
  background-image: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 2rem;
  padding-inline: var(--sf-edge);
}
.container-header > .grid-child {
  width: auto; max-width: none; margin: 0; padding: 0;
}
.container-header > .container-topbar,
.container-header > .container-below-top { grid-column: 1 / -1; }

/* Barre du haut (module « topbar ») */
.container-topbar {
  border-bottom: 1px solid;
  border-image: linear-gradient(rgba(251, 250, 247, .12), rgba(251, 250, 247, .12)) 0 0 1 0 / 0 0 1px 0 / 0 100vw;
}
.sf-topbar {
  font-family: var(--sf-sans);
  display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem;
  min-height: 2.75rem; font-size: .8125rem;
}
.sf-topbar a { color: var(--sf-ivoire); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; }
.sf-topbar a:hover, .sf-topbar a:focus { color: var(--sf-or-clair); }
.container-topbar .sf-topbar a.sf-topbar__adherer { color: var(--sf-or-clair); font-weight: 600; }
.container-topbar .sf-topbar a.sf-topbar__adherer:hover { color: var(--sf-ivoire); }
.sf-topbar__sep { width: 1px; height: 1.125rem; background: rgba(251, 250, 247, .25); }
.sf-topbar__social { display: flex; gap: 1rem; }
.sf-topbar svg { width: 1rem; height: 1rem; }

/* Logo + nom */
.container-header .navbar-brand {
  display: flex; align-items: center; gap: 1.125rem;
  padding-block: 1rem; margin: 0; font-size: 1rem;
}
.container-header .brand-logo img { display: block; height: 4.75rem; width: auto; max-width: none; }
.container-header .site-description {
  color: rgba(251, 250, 247, .72); font-size: .75rem; line-height: 1.4; max-width: 19rem;
}
.container-header .site-description::before {
  content: "SFACCEC"; display: block; margin-bottom: .125rem;
  font-family: var(--sf-serif); font-weight: 700; font-size: 1.625rem; line-height: 1.1;
  color: var(--sf-ivoire); letter-spacing: .01em;
}

/* Menu principal */
.container-header .container-nav { justify-content: flex-end; flex-wrap: nowrap; padding: 0; }
.container-header nav { margin-top: 0; }
.container-header .navbar { position: static; padding: 0; }
.container-header .metismenu.mod-menu { justify-content: flex-end; flex: 0 1 auto; }
.container-header .metismenu.mod-menu .metismenu-item { padding: 0; font-size: .9375rem; }
.container-header .metismenu.mod-menu .metismenu-item > a,
.container-header .metismenu.mod-menu .metismenu-item > span,
.container-header .metismenu.mod-menu .metismenu-item > button:not(.mm-toggler) {
  font-family: var(--sf-sans); font-weight: 500;
}
/* Les icônes Font Awesome des titres de menu sont masquées dans l'en-tête */
.container-header .metismenu-item.level-1 > a > span[aria-hidden="true"],
.container-header .metismenu-item.level-1 > span > span[aria-hidden="true"] { display: none; }

@media (min-width: 992px) {
  .container-header .metismenu.mod-menu { gap: 2rem; align-items: center; }
  .container-header .metismenu.mod-menu .metismenu-item.level-1 { flex-wrap: nowrap; }
  .container-header .metismenu.mod-menu .metismenu-item.level-1 > a,
  .container-header .metismenu.mod-menu .metismenu-item.level-1 > span {
    color: var(--sf-ivoire); padding: .5rem 0;
    border-bottom: 2px solid transparent; text-decoration: none;
  }
  .container-header .metismenu > li > a::after,
  .container-header .metismenu > li > button::before { display: none !important; }
  .container-header .metismenu.mod-menu .metismenu-item.level-1.active > a,
  .container-header .metismenu.mod-menu .metismenu-item.level-1.active > span,
  .container-header .metismenu.mod-menu .metismenu-item.level-1 > a:hover {
    border-bottom-color: var(--sf-or); text-decoration: none;
  }
  .container-header .metismenu .mm-toggler { color: var(--sf-ivoire); margin-inline-start: .25rem; }
  /* Sous-menus */
  .container-header .metismenu.mod-menu .mm-collapse {
    top: calc(100% + .5rem); min-width: 15rem; padding: .5rem 0;
    background: #fff; border-top: 2px solid var(--sf-or);
    box-shadow: 0 14px 32px rgba(21, 35, 59, .16);
  }
  .container-header .metismenu.mod-menu .mm-collapse .metismenu-item { padding: 0; }
  .container-header .metismenu.mod-menu .mm-collapse .metismenu-item > a {
    display: block; width: 100%; padding: .55rem 1.25rem; color: var(--sf-encre); font-size: .9rem;
  }
  .container-header .metismenu.mod-menu .mm-collapse .metismenu-item > a:hover {
    background: var(--sf-ivoire); color: var(--sf-nuit); text-decoration: none;
  }
}

/* Mobile : logo à gauche, bouton menu à droite, menu déroulé sur toute la largeur */
@media (max-width: 991.98px) {
  .container-header { position: relative; column-gap: 1rem; }
  .container-header .brand-logo img { height: 3.25rem; }
  .container-header .site-description { font-size: 0; max-width: none; }
  .container-header .site-description::before { font-size: 1.375rem; margin: 0; }
  .container-topbar { display: none; }
  .container-header .navbar-toggler {
    width: 3rem; height: 3rem; border: 1.5px solid rgba(251, 250, 247, .5); border-radius: 0;
    color: var(--sf-ivoire); display: inline-flex; align-items: center; justify-content: center; padding: 0;
  }
  .container-header .navbar-collapse {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    background: var(--sf-nuit); padding: .5rem var(--sf-edge) 1.5rem;
    border-top: 1px solid rgba(251, 250, 247, .12);
  }
  .container-header .metismenu.mod-menu .metismenu-item { border-bottom: 1px solid rgba(251, 250, 247, .1); }
  .container-header .metismenu.mod-menu .metismenu-item > a,
  .container-header .metismenu.mod-menu .metismenu-item > span {
    color: var(--sf-ivoire); padding: .85rem 0; flex: 1;
  }
  .container-header .metismenu .mm-toggler { color: var(--sf-ivoire); width: 3rem; justify-content: center; }
  .container-header .metismenu.mod-menu .mm-collapse {
    position: static; flex-basis: 100%; background: transparent; box-shadow: none; padding: 0 0 .5rem 1rem;
  }
  .container-header .metismenu.mod-menu .mm-collapse .metismenu-item { border: 0; }
  .container-header .metismenu.mod-menu .mm-collapse .metismenu-item > a {
    color: rgba(251, 250, 247, .8); padding: .5rem 0; font-size: .9375rem;
  }
}

/* ==========================================================================
   Hero de la page d'accueil (module « banner »)
   ========================================================================== */
.container-banner { margin: 0 0 1.5rem; }
.container-banner .mod-custom { position: static; }

.sf-hero {
  display: grid;
  grid-template-columns: var(--sf-edge) minmax(0, 40rem) minmax(2rem, 1fr) minmax(0, 34rem) var(--sf-edge);
  grid-template-rows: auto auto;
  color: var(--sf-ivoire);
}
.sf-hero::before {
  content: ""; grid-column: 1 / -1; grid-row: 1; background: var(--sf-nuit); z-index: 0;
}
.sf-hero__text {
  grid-column: 2; grid-row: 1; z-index: 1;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 4rem 0 5.5rem;
}
.sf-surtitre {
  margin: 0; font-family: var(--sf-sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .24em; color: var(--sf-or); text-transform: uppercase;
}
.sf-hero h1 {
  margin: 0; color: var(--sf-ivoire);
  font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.125rem); line-height: 1.02; letter-spacing: -.01em;
}
.sf-hero__intro { margin: 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.6; color: rgba(251, 250, 247, .82); }
.sf-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }

.sf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.125rem; padding: 0 1.625rem; box-sizing: border-box;
  font-family: var(--sf-sans); font-size: .9375rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.sf-btn--ivoire { background: var(--sf-ivoire); color: var(--sf-nuit); }
.sf-btn--ivoire:hover, .sf-btn--ivoire:focus { background: #fff; color: var(--sf-nuit); }
.sf-btn--or { background: var(--sf-or); color: var(--sf-nuit); }
.sf-btn--or:hover, .sf-btn--or:focus { background: var(--sf-or-clair); color: var(--sf-nuit); }
.sf-btn--contour-or { border-color: var(--sf-or); color: var(--sf-or-clair); }
.sf-btn--contour-or:hover, .sf-btn--contour-or:focus { background: var(--sf-or); color: var(--sf-nuit); }
.sf-btn--contour { border-color: rgba(251, 250, 247, .6); color: var(--sf-ivoire); }
.sf-btn--contour:hover, .sf-btn--contour:focus { background: var(--sf-ivoire); color: var(--sf-nuit); }

.sf-hero__photo {
  grid-column: 4 / 6; grid-row: 1; align-self: end; z-index: 1;
  position: relative; margin: 0;
  height: 29.5rem;
}
.sf-hero__photo::before {
  content: ""; position: absolute; left: -1.125rem; top: -1.125rem; right: 1.125rem; bottom: 1.125rem;
  border: 1.5px solid var(--sf-or); pointer-events: none;
}
.sf-hero__photo img {
  position: relative; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--sf-nuit-clair);
}

/* ---- Diaporama du hero : les vues sont empilées et se relaient en fondu */
.sf-diapo__piste { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--sf-nuit-clair); }
.sf-diapo__vue {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s;
}
.sf-diapo__vue.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.sf-diapo__vue img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-diapo__legende {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 2.5rem 1.5rem 1.25rem; font-size: 1rem; font-style: italic; color: var(--sf-ivoire);
  background: linear-gradient(to top, rgba(15, 26, 46, .85), rgba(15, 26, 46, 0));
}
/* Visuel d'attente, tant qu'aucune photo n'est choisie */
.sf-diapo__attente { width: 100%; height: 100%; display: block; }
.sf-diapo__attente-texte {
  position: absolute; left: 1.5rem; top: 1.375rem; margin: 0;
  font-family: var(--sf-sans); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sf-or-clair);
}
/* Commandes : en haut à droite, hors de portée des cartes posées en bas */
.sf-diapo__commandes {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: flex; align-items: center; gap: .625rem;
  padding: .375rem .5rem; background: rgba(15, 26, 46, .72);
}
.sf-diapo__points { display: flex; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.sf-diapo__point, .sf-diapo__pause {
  appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; color: var(--sf-ivoire);
  display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
}
.sf-diapo__point::before {
  content: ""; width: .625rem; height: .625rem; border: 1.5px solid var(--sf-or-clair); box-sizing: border-box;
  transition: background-color .2s;
}
.sf-diapo__point[aria-current="true"]::before { background: var(--sf-or-clair); }
.sf-diapo__point:hover::before { background: rgba(217, 180, 108, .5); }
.sf-diapo__pause svg { width: 1rem; height: 1rem; }
.sf-diapo__pause .sf-diapo__lecture { display: none; }
.sf-diapo__pause[data-etat="pause"] .sf-diapo__lecture { display: block; }
.sf-diapo__pause[data-etat="pause"] .sf-diapo__arret { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sf-diapo__vue, .sf-diapo__vue.is-active { transition: none; }
}

.sf-hero__cartes {
  grid-column: 3 / 5; grid-row: 2; z-index: 2; justify-self: end;
  display: flex; gap: 1.5rem; margin-top: -7.5rem; padding-bottom: 1rem;
}
.sf-carte {
  width: 18.125rem; box-sizing: border-box; padding: 1.875rem;
  display: flex; flex-direction: column; gap: .875rem; text-decoration: none;
}
.sf-carte__icone {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.sf-carte__icone svg { width: 1.375rem; height: 1.375rem; }
.sf-carte__titre { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.sf-carte__texte { font-size: .9375rem; line-height: 1.5; }
.sf-carte__lien { margin-top: .375rem; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.sf-carte--evenement, .sf-carte--evenement:hover, .sf-carte--evenement:focus { background: var(--sf-rouge); color: #fff; }
.sf-carte--evenement:hover { background: #b0192f; }
.sf-carte--evenement .sf-carte__icone { background: #fff; color: var(--sf-rouge); }

.sf-carte--info { background: #fff; color: var(--sf-encre); border: 1px solid var(--sf-filet); box-shadow: 0 12px 32px rgba(21, 35, 59, .10); }
.sf-carte--info:hover, .sf-carte--info:focus { color: var(--sf-encre); border-color: var(--sf-or); }
.sf-carte--info .sf-carte__icone { background: var(--sf-nuit); color: var(--sf-or-clair); }
.sf-carte--info .sf-carte__texte { color: #333c50; font-weight: 600; }

/* Carte or : newsletter */
.sf-carte--newsletter, .sf-carte--newsletter:hover, .sf-carte--newsletter:focus { background: var(--sf-or-clair); color: var(--sf-encre); }
.sf-carte--newsletter:hover { background: #cfa65a; }
.sf-carte--newsletter .sf-carte__icone { background: var(--sf-nuit); color: var(--sf-or-clair); }
.sf-carte--newsletter .sf-carte__texte { font-weight: 600; }

/* Trois cartes : elles prennent aussi la largeur sous la colonne de texte, juste sous les boutons */
@media (min-width: 992px) {
  .sf-hero__cartes--3 { grid-column: 2 / 5; margin-top: -5rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .sf-hero__cartes--3 { gap: 1rem; }
  .sf-hero__cartes--3 .sf-carte { width: 16.5rem; padding: 1.5rem; }
}

@media (max-width: 991.98px) {
  .sf-hero { grid-template-columns: var(--sf-edge) minmax(0, 1fr) var(--sf-edge); grid-template-rows: auto auto auto; }
  .sf-hero::before { grid-row: 1 / 3; }
  .sf-hero__text { grid-column: 2; padding: 2.5rem 0 2rem; gap: 1.25rem; }
  .sf-hero__intro { font-size: 1rem; }
  .sf-actions { flex-direction: column; }
  .sf-hero__photo { grid-column: 2 / 4; grid-row: 2; height: 14rem; margin-right: 0; }
  .sf-hero__photo::before { display: none; }
  .sf-hero__cartes {
    grid-column: 2; grid-row: 3; justify-self: stretch;
    flex-direction: column; gap: 1rem; margin-top: -3.5rem;
  }
  .sf-carte { width: auto; padding: 1.625rem; }
}

/* ==========================================================================
   Contenu principal
   ========================================================================== */
.container-component > *:first-child { margin-top: 2rem; }

/* Fil d'Ariane */
.mod-breadcrumbs__wrapper { font-size: .8125rem; }
.mod-breadcrumbs.breadcrumb { background: none; padding: 0; margin: 0; }
.mod-breadcrumbs .mod-breadcrumbs__here { color: var(--sf-texte-2); }

/* Titres de page */
.page-header h1, .com-content-article h1, .com-content-category-blog h1 {
  font-size: clamp(2rem, 1.3rem + 2vw, 2.875rem); margin-bottom: 1.5rem;
}

/* Articles : largeur de lecture confortable */
.com-content-article__body, .com-content-category-blog__item .item-content > p {
  max-width: 46rem; font-size: 1.0625rem; line-height: 1.7;
}
.com-content-article__body h2 { font-size: 1.875rem; margin-top: 2.5rem; }
.com-content-article__body h3 { font-size: 1.375rem; margin-top: 2rem; }
.com-content-article__body img { height: auto; }

/* Informations d'article (date, catégorie) */
.article-info { font-size: .8125rem; color: var(--sf-texte-2); }
.article-info .category-name a, .article-info .category-name { color: var(--sf-or-texte); font-weight: 600; text-decoration: none; }
.article-info .icon-fw, .article-info [class*="icon-"] { display: none; }
.article-info .article-info-term {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.article-info dd.hits { display: none; }
.article-info dd { margin-bottom: .125rem; }
body:not(.view-featured) .container-component { padding-top: 2.5rem; padding-bottom: 3rem; }

/* ---------- Page d'accueil : les articles en vedette deviennent la rubrique Actualités */
.blog-featured > .page-header h1 { font-size: clamp(2.25rem, 1.6rem + 1.8vw, 2.875rem); margin: 0 0 2.5rem; }
.blog-featured .blog-items {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem;
}
@media (max-width: 991.98px) { .blog-featured .blog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .blog-featured .blog-items { grid-template-columns: 1fr; } }
.blog-featured .blog-items.items-leading { grid-template-columns: 1fr; margin-bottom: 2.5rem; }
.blog-featured .blog-item {
  border-top: 2px solid var(--sf-nuit); padding-top: 1.5rem; margin: 0;
  background: none; box-shadow: none;
}
.blog-featured .item-content { display: flex; flex-direction: column; gap: .75rem; }
.blog-featured .article-info { margin: 0; order: -1; }
.blog-featured .article-info-term,
.blog-featured .article-info dd:not(.category-name) { display: none; }
.blog-featured .article-info .category-name { font-size: 0; }
.blog-featured .article-info .category-name a,
.blog-featured .article-info .category-name span:not([class*="icon-"]) { font-size: .8125rem; }
.blog-featured .item-title { font-size: 1.5625rem; font-weight: 700; line-height: 1.2; margin: 0; }
.blog-featured .item-title a { color: var(--sf-encre); text-decoration: none; }
.blog-featured .item-title a:hover { color: var(--sf-lien); text-decoration: underline; }
.blog-featured .item-content p { color: var(--sf-texte-2); font-size: .9375rem; margin: 0; }
.blog-featured .item-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1rem; }
.blog-featured .readmore { margin: 0; }
.blog-featured .readmore .btn {
  padding: 0; border: 0; background: none; color: var(--sf-lien);
  font-size: .875rem; text-decoration: underline; text-underline-offset: 4px;
}
.blog-featured .readmore .btn [class*="icon-"] { display: none; }
.blog-featured .items-more { margin-top: 2.5rem; }

/* Neutralise le cadre « carte » autour des blocs de la maquette */
.card:has(.sf-bloc) { border: 0; background: none; box-shadow: none; }
.card:has(.sf-bloc) > .card-body { padding: 0; }
.card:has(.sf-bloc) > .card-header { display: none; }

/* ---------- Bloc bottom-a : libre pour un module (le bloc « Espace adhérent » a été retiré) */
.container-bottom-a { margin-top: 5rem; }

/* ---------- Partenaires (module bottom-b) */
.container-bottom-b { margin-block: 4.5rem 5rem; }
.sf-partenaires h2 { font-size: 1.875rem; font-weight: 700; margin: 0 0 2rem; }
.sf-partenaires ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem;
}
@media (max-width: 991.98px) { .sf-partenaires ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .sf-partenaires ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.sf-partenaires a {
  height: 5.5rem; display: flex; align-items: center; justify-content: center; padding: .75rem;
  background: #fff; border: 1px solid var(--sf-filet); transition: border-color .15s; text-decoration: none;
}
.sf-partenaires a:hover, .sf-partenaires a:focus { border-color: var(--sf-or); }
/* Logos : même boîte pour tous, en gris discret, en couleur au survol */
.sf-partenaires img {
  display: block; width: auto; height: auto; max-width: 85%; max-height: 2.25rem; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s;
}
.sf-partenaires img.sf-logo--carre { max-height: 3.75rem; }
.sf-partenaires a:hover img, .sf-partenaires a:focus img { filter: none; opacity: 1; }
@media (hover: none) and (pointer: coarse) { .sf-partenaires img { filter: none; opacity: 1; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.container-footer {
  background: var(--sf-nuit-profond); background-image: none; color: var(--sf-ivoire);
  margin-top: 0; padding: 0;
}
.container-footer > .grid-child { padding: 4.5rem var(--sf-edge) 2.5rem; max-width: none; display: block; }
.container-footer a { color: rgba(251, 250, 247, .82); text-decoration: none; }
.container-footer a:hover, .container-footer a:focus { color: var(--sf-or-clair); text-decoration: underline; }
.sf-footer { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; font-size: .875rem; }
.sf-footer__marque { display: flex; gap: 1.125rem; align-items: flex-start; }
.sf-footer__marque img { width: 4rem; height: auto; }
.sf-footer__nom { display: block; font-family: var(--sf-serif); font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin-bottom: .5rem; }
.sf-footer__desc { color: rgba(251, 250, 247, .7); line-height: 1.6; max-width: 19rem; margin: 0; }
.sf-footer h2 { font-family: var(--sf-sans); font-size: .875rem; font-weight: 600; color: var(--sf-or-clair); margin: 0 0 .75rem; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.sf-footer__bas {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(251, 250, 247, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8125rem; color: rgba(251, 250, 247, .6);
}
.sf-footer__bas ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.sf-footer__bas a { color: rgba(251, 250, 247, .6); }

@media (max-width: 991.98px) {
  .sf-footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sf-footer__marque { grid-column: 1 / -1; align-items: center; }
  .sf-footer__desc { display: none; }
}

/* Bouton « retour en haut » */
.back-to-top-link { background: var(--sf-or); color: var(--sf-nuit); border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Blocs intégrés : états sans contenu */
.sf-hero__photo--vide { background: var(--sf-nuit-clair); }
.sf-partenaires__nom { font-weight: 600; color: var(--sf-texte-2); font-size: .9375rem; }

/* ==========================================================================
   Pages intérieures (contenu des articles : classes sf-*)
   Le contenu reste éditable dans Joomla : aucune icône SVG dans les articles,
   elles sont dessinées ici en CSS.
   ========================================================================== */
:root {
  --sf-sable: #f1eee6;
  --sf-ico-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h7M9 17h5'/%3E%3C/svg%3E");
  --sf-ico-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
  --sf-ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --sf-ico-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  --sf-ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}

/* Mise en page de l'article : pleine largeur, sans titre ni fil d'Ariane Joomla */
.container-component:has(.sf-page) { padding: 0 !important; }
.container-component:has(.sf-page) > .mod-breadcrumbs__wrapper { display: none; }
.com-content-article__body:has(.sf-page) { max-width: none; font-size: 1rem; line-height: 1.65; }
.com-content-article:has(.sf-page) > .page-header,
.com-content-article:has(.sf-page) > .article-info,
.com-content-article:has(.sf-page) > .pagenavigation { display: none; }
.sf-page h2, .sf-page h3 { margin: 0; }
.sf-page p { margin: 0; }
.sf-page ul, .sf-page ol { margin: 0; padding: 0; list-style: none; }

/* Sections pleine largeur */
.sf-bandeau, .sf-section--sable, .sf-appel {
  clip-path: inset(0 -100vmax);
}
.sf-bandeau { background: var(--sf-nuit); box-shadow: 0 0 0 100vmax var(--sf-nuit); color: var(--sf-ivoire); }
.sf-section--sable { background: var(--sf-sable); box-shadow: 0 0 0 100vmax var(--sf-sable); }
.sf-appel { background: var(--sf-nuit); box-shadow: 0 0 0 100vmax var(--sf-nuit); }

/* Bandeau de titre */
.sf-bandeau { padding: 2.5rem 0 4.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.sf-ariane { display: flex; flex-wrap: wrap; gap: .625rem; font-size: .8125rem; color: rgba(251, 250, 247, .6); }
.sf-ariane a { color: rgba(251, 250, 247, .75); text-decoration: none; }
.sf-ariane a:hover { color: var(--sf-or-clair); text-decoration: underline; }
.sf-ariane span[aria-current] { color: var(--sf-ivoire); }
.sf-bandeau .sf-surtitre { margin-top: 1rem; }
.sf-bandeau h1 { margin: 0; color: var(--sf-ivoire); font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4rem); line-height: 1.02; }
.sf-chapo { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: rgba(251, 250, 247, .85); max-width: 47rem; }

/* Sections */
.sf-section { padding-block: 5rem; }
.sf-section--serree { padding-block: 2rem 5rem; }
.sf-titre-section { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); line-height: 1.08; }
.sf-section > .sf-titre-section, .sf-section > .sf-surtitre { margin-bottom: 1.5rem; }
.sf-section--sable .sf-surtitre, .sf-section .sf-surtitre { color: var(--sf-or-texte); }
.sf-bandeau .sf-surtitre { color: var(--sf-or); }
.sf-pile { display: flex; flex-direction: column; gap: 1.5rem; }
.sf-lien-fort { font-size: .875rem; font-weight: 600; color: var(--sf-lien); text-decoration: underline; text-underline-offset: 4px; }

/* ---- La Sfaccec : objectifs + encadré */
.sf-deux-col { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; gap: 4.5rem; align-items: start; }
.sf-objectifs { counter-reset: sf-obj; margin-top: 1.5rem !important; }
.sf-objectifs li {
  counter-increment: sf-obj; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.25rem 0; border-top: 1px solid var(--sf-filet); font-size: 1.0625rem; line-height: 1.6;
}
.sf-objectifs li::before {
  content: counter(sf-obj, decimal-leading-zero);
  font-family: var(--sf-serif); font-weight: 700; font-size: 1.625rem; color: var(--sf-or);
}
.sf-encadre {
  background: #fff; border-top: 3px solid var(--sf-or); box-shadow: 0 16px 40px rgba(21, 35, 59, .14);
  margin-top: -9rem; position: relative;
}
.sf-encadre > div { padding: 1.625rem 1.75rem; border-top: 1px solid var(--sf-filet); display: flex; flex-direction: column; gap: .625rem; }
.sf-encadre > div:first-child { border-top: 0; }
.sf-encadre h2 { font-size: 1.4375rem; font-weight: 700; }
.sf-encadre p { font-size: .875rem; color: var(--sf-texte-2); }
.sf-encadre .sf-btn { width: 100%; }
.sf-btn--nuit { background: var(--sf-nuit); color: var(--sf-ivoire); }
.sf-btn--nuit:hover, .sf-btn--nuit:focus { background: var(--sf-nuit-clair); color: #fff; }
.sf-btn--contour-nuit { border-color: var(--sf-nuit); color: var(--sf-nuit); }
.sf-btn--contour-nuit:hover, .sf-btn--contour-nuit:focus { background: var(--sf-nuit); color: #fff; }

/* ---- Chiffres de satisfaction */
.sf-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 2.5rem; }
.sf-entete > p { max-width: 21rem; color: var(--sf-texte-2); font-size: .9375rem; }
.sf-chiffres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--sf-filet); border: 1px solid var(--sf-filet); }
.sf-chiffres li { background: #fff; padding: 1.875rem 1.5rem; display: flex; flex-direction: column; gap: .625rem; }
.sf-chiffres strong { font-family: var(--sf-serif); font-weight: 700; font-size: 2.5rem; line-height: 1; white-space: nowrap; }
.sf-chiffres span { font-size: .875rem; color: var(--sf-texte-2); line-height: 1.5; }
.sf-qualites { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; align-items: center; padding: 2.5rem 1.5rem 0 !important; }
.sf-qualites li { display: flex; gap: .75rem; align-items: center; font-weight: 500; }
.sf-qualites li:first-child { color: var(--sf-or-texte); font-weight: 600; font-size: .875rem; }
.sf-qualites li:not(:first-child)::before {
  content: ""; flex-shrink: 0; width: 1.25rem; height: 1.25rem; background: var(--sf-or);
  -webkit-mask: var(--sf-ico-check) center / contain no-repeat; mask: var(--sf-ico-check) center / contain no-repeat;
}

/* ---- Documents à télécharger */
.sf-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem !important; }
.sf-doc {
  background: #fff; border: 1px solid var(--sf-filet); padding: 1.75rem 1.75rem 1.75rem 4.5rem; position: relative;
  display: flex; flex-direction: column; gap: .5rem;
}
.sf-doc::before {
  content: ""; position: absolute; left: 1.75rem; top: 1.85rem; width: 1.625rem; height: 1.625rem; background: var(--sf-nuit);
  -webkit-mask: var(--sf-ico-pdf) center / contain no-repeat; mask: var(--sf-ico-pdf) center / contain no-repeat;
}
.sf-doc h3 { font-size: 1.375rem; font-weight: 700; }
.sf-doc p { font-size: .875rem; color: var(--sf-texte-2); }

/* ---- Formation : journées */
.sf-serie { margin-top: 3rem; }
.sf-serie__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; margin-bottom: 1.25rem; }
.sf-serie__tete h3 { font-size: 1.625rem; font-weight: 700; }
.sf-serie__tete p { font-size: .875rem; color: var(--sf-texte-2); }
.sf-cartes-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sf-journee {
  min-height: 13rem; padding: 1.75rem; box-sizing: border-box; text-decoration: none;
  display: flex; flex-direction: column; gap: .625rem;
  background: #fff; border: 1px solid var(--sf-filet); color: var(--sf-encre);
  transition: border-color .15s;
}
.sf-journee:hover, .sf-journee:focus { border-color: var(--sf-or); color: var(--sf-encre); }
.sf-journee__tag { font-size: .8125rem; font-weight: 600; color: var(--sf-lien); }
.sf-journee__titre { font-family: var(--sf-serif); font-weight: 700; font-size: 2.125rem; line-height: 1.05; }
.sf-journee__lieu { font-size: .9375rem; color: var(--sf-texte-2); }
.sf-journee__lien { margin-top: auto; font-size: .875rem; font-weight: 600; color: var(--sf-lien); text-decoration: underline; text-underline-offset: 4px; }
.sf-journee--nuit { background: var(--sf-nuit); border-color: var(--sf-nuit); color: var(--sf-ivoire); }
.sf-journee--nuit:hover, .sf-journee--nuit:focus { color: var(--sf-ivoire); border-color: var(--sf-or); }
.sf-journee--nuit .sf-journee__tag, .sf-journee--nuit .sf-journee__lien { color: var(--sf-or-clair); }
.sf-journee--nuit .sf-journee__lieu { color: rgba(251, 250, 247, .75); }

/* ---- Formation : diplômes */
.sf-diplome {
  background: #fff; border: 1px solid var(--sf-filet); padding: 2.5rem; margin-top: 1.5rem;
  display: grid; grid-template-columns: 25rem minmax(0, 1fr); gap: 3.5rem;
}
.sf-diplome__resume { display: flex; flex-direction: column; gap: .875rem; align-items: flex-start; }
.sf-diplome__lieu { font-size: .8125rem; font-weight: 600; color: var(--sf-or-texte); }
.sf-diplome h3 { font-size: 1.875rem; line-height: 1.1; }
.sf-diplome__resume p:not(.sf-diplome__lieu) { font-size: .9375rem; color: var(--sf-texte-2); }
.sf-badge { display: inline-block; background: var(--sf-rouge); color: #fff; font-size: .75rem; font-weight: 600; padding: .375rem .75rem; line-height: 1.4; }
.sf-badge--contour { background: none; border: 1px solid var(--sf-or); color: var(--sf-or-texte); }
.sf-infos { margin: 0; }
.sf-infos > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--sf-filet); font-size: .9375rem; }
.sf-infos dt { font-weight: 600; color: var(--sf-texte-2); }
.sf-infos dd { margin: 0; }
.sf-externe::after {
  content: ""; display: inline-block; width: .875rem; height: .875rem; margin-left: .375rem; vertical-align: -.05em; background: currentColor;
  -webkit-mask: var(--sf-ico-ext) center / contain no-repeat; mask: var(--sf-ico-ext) center / contain no-repeat;
}

/* ---- Panneaux côte à côte */
.sf-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.sf-panneau { padding: 2.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--sf-filet); }
.sf-panneau h2 { font-size: 2rem; line-height: 1.1; }
.sf-panneau p { color: var(--sf-texte-2); }
.sf-panneau--nuit { background: var(--sf-nuit); border-color: var(--sf-nuit); }
.sf-panneau--nuit h2 { color: var(--sf-ivoire); }
.sf-panneau--nuit p { color: rgba(251, 250, 247, .82); }

/* ---- Liens */
.sf-groupe { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 3.5rem; }
.sf-groupe__intro { display: flex; flex-direction: column; gap: .75rem; }
.sf-groupe__num { font-family: var(--sf-serif); font-weight: 700; font-size: 1.625rem; color: var(--sf-or); }
.sf-groupe__intro h2 { font-size: 2.125rem; line-height: 1.1; }
.sf-groupe__intro p { font-size: .9375rem; color: var(--sf-texte-2); }
.sf-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-content: start; }
.sf-tuile {
  height: 100%; box-sizing: border-box; padding: 1.25rem 3rem 1.25rem 1.375rem; position: relative;
  display: flex; flex-direction: column; gap: .375rem; text-decoration: none;
  background: #fff; border: 1px solid var(--sf-filet); transition: border-color .15s;
}
.sf-tuile:hover, .sf-tuile:focus { border-color: var(--sf-or); }
.sf-tuile::after {
  content: ""; position: absolute; right: 1.25rem; top: 1.4rem; width: 1rem; height: 1rem; background: var(--sf-lien);
  -webkit-mask: var(--sf-ico-ext) center / contain no-repeat; mask: var(--sf-ico-ext) center / contain no-repeat;
}
.sf-tuile strong { font-weight: 600; color: var(--sf-encre); line-height: 1.4; }
.sf-tuile span { font-size: .8125rem; font-weight: 500; color: var(--sf-or-texte); }

/* ---- Agenda */
.sf-evenement { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) 27.5rem; background: #fff; border: 1px solid var(--sf-filet); }
.sf-evenement + .sf-evenement { margin-top: 1.5rem; }
.sf-evenement__date {
  background: var(--sf-nuit); color: var(--sf-ivoire); padding: 2rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; text-align: center;
}
.sf-evenement__date span:first-child { font-size: .8125rem; font-weight: 600; letter-spacing: .2em; color: var(--sf-or-clair); }
.sf-evenement__date strong { font-family: var(--sf-serif); font-weight: 700; font-size: 4rem; line-height: 1; }
.sf-evenement__date span:last-child { font-size: .9375rem; color: rgba(251, 250, 247, .75); }
.sf-evenement__corps { padding: 2.5rem 3rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.sf-evenement__corps h2 { font-size: 2.375rem; line-height: 1.1; }
.sf-evenement__corps > p:not(.sf-badge) { color: var(--sf-texte-2); max-width: 38rem; }
.sf-meta { display: flex; flex-direction: column; gap: .625rem; font-size: .9375rem; }
.sf-meta li { display: flex; gap: .625rem; align-items: center; }
.sf-meta li::before {
  content: ""; flex-shrink: 0; width: 1.25rem; height: 1.25rem; background: var(--sf-or-texte);
  -webkit-mask: var(--sf-ico-cal) center / contain no-repeat; mask: var(--sf-ico-cal) center / contain no-repeat;
}
.sf-meta li.sf-meta__lieu::before { -webkit-mask-image: var(--sf-ico-pin); mask-image: var(--sf-ico-pin); }
.sf-evenement__visuel { margin: 0; background: var(--sf-nuit-clair); min-height: 21rem; }
.sf-evenement__visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Newsletter */
.sf-numero { display: grid; grid-template-columns: 40rem minmax(0, 1fr); gap: 4rem; align-items: center; margin-top: 1.75rem; }
.sf-couverture {
  background: #f6f3ec; border: 1px solid var(--sf-filet); box-shadow: 0 16px 40px rgba(21, 35, 59, .10);
  padding: 2.5rem; display: flex; flex-direction: column; gap: 1.75rem; text-decoration: none; color: var(--sf-encre);
}
.sf-couverture:hover, .sf-couverture:focus { color: var(--sf-encre); border-color: var(--sf-or); }
.sf-couverture__haut { display: flex; align-items: center; gap: 1.25rem; }
.sf-couverture__haut img { width: 5.75rem; height: auto; }
.sf-couverture__nom { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .3em; }
.sf-couverture__desc { display: block; font-size: .75rem; color: var(--sf-texte-2); line-height: 1.5; margin-top: .375rem; }
.sf-couverture__bas { border-top: 1px solid var(--sf-filet); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.sf-couverture__titre { font-size: 1.25rem; font-weight: 600; letter-spacing: .2em; color: var(--sf-or); line-height: 1.4; text-transform: uppercase; max-width: 14rem; }
.sf-couverture__num { font-size: .8125rem; letter-spacing: .08em; color: var(--sf-texte-2); white-space: nowrap; }
.sf-numero__texte { display: flex; flex-direction: column; gap: 1.125rem; align-items: flex-start; }
.sf-numero__texte h2 { font-size: clamp(2.125rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1.05; }
.sf-numero__texte p:not(.sf-badge) { font-size: 1.0625rem; color: var(--sf-texte-2); }
.sf-filet-haut { border-top: 1px solid var(--sf-filet); padding-top: 2rem; display: flex; flex-direction: column; gap: .5rem; }
.sf-filet-haut h2 { font-size: 1.625rem; font-weight: 700; }
.sf-filet-haut p { color: var(--sf-texte-2); font-size: .9375rem; }

/* ---- Bandeau d'appel final */
.sf-appel { padding: 4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
.sf-appel h2 { color: var(--sf-ivoire); font-size: 2.125rem; }
.sf-appel p { color: rgba(251, 250, 247, .82); margin-top: .5rem !important; }
.sf-appel--clair { background: none; box-shadow: none; padding: 2.5rem 0 0; border-top: 1px solid var(--sf-filet); }
.sf-appel--clair h2 { color: var(--sf-encre); font-size: 1.625rem; font-weight: 700; }
.sf-appel--clair p { color: var(--sf-texte-2); }
.sf-appel .sf-btn { flex-shrink: 0; }

/* ---- Tablette et mobile */
@media (max-width: 1199.98px) {
  .sf-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-groupe { grid-template-columns: 1fr; gap: 1.5rem; }
  .sf-evenement { grid-template-columns: 10rem minmax(0, 1fr); }
  .sf-evenement__visuel { grid-column: 1 / -1; min-height: 16rem; }
  .sf-numero { grid-template-columns: 1fr; gap: 2rem; }
  .sf-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-qualites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-qualites li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  .sf-section { padding-block: 3.5rem; }
  .sf-deux-col, .sf-diplome, .sf-deux, .sf-docs { grid-template-columns: 1fr; gap: 2rem; }
  .sf-encadre { margin-top: 0; }
  .sf-cartes-3 { grid-template-columns: 1fr; }
  .sf-journee { min-height: 0; }
  .sf-entete, .sf-serie__tete, .sf-appel { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sf-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-diplome { padding: 1.75rem; }
  .sf-infos > div { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 575.98px) {
  .sf-tuiles, .sf-qualites { grid-template-columns: 1fr; }
  .sf-evenement { grid-template-columns: 1fr; }
  .sf-evenement__date { flex-direction: row; gap: 1rem; padding: 1.25rem; }
  .sf-evenement__date strong { font-size: 2.5rem; }
  .sf-evenement__corps { padding: 1.75rem 1.25rem; }
  .sf-panneau, .sf-couverture { padding: 1.75rem; }
  .sf-couverture__bas { flex-direction: column; align-items: flex-start; }
  .sf-appel .sf-btn, .sf-actions .sf-btn { width: 100%; }
}

/* Correctifs pages intérieures */
.container-component:has(.sf-page) > * { margin-top: 0; }
.sf-page p.sf-badge { color: #fff; }
.sf-page p.sf-badge--contour { color: var(--sf-or-texte); }
.sf-encadre .sf-btn { text-align: center; padding-block: .75rem; line-height: 1.35; }

/* ==========================================================================
   Sélections scientifiques : Articles scientifiques (revue biblio)
   ========================================================================== */
.sf-revue {
  display: grid; gap: .875rem; max-width: 52rem; margin-top: .5rem;
  padding: 2.25rem 2.5rem 2rem; background: var(--sf-nuit); color: var(--sf-ivoire);
  text-decoration: none; border: 1.5px solid var(--sf-nuit); transition: border-color .15s;
}
.sf-revue:hover, .sf-revue:focus { color: var(--sf-ivoire); border-color: var(--sf-or); }
.sf-revue__surtitre { font-family: var(--sf-sans); font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sf-or-clair); }
.sf-revue__titre { font-family: var(--sf-serif); font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem); line-height: 1.05; }
.sf-revue__filet { width: 4.5rem; height: 3px; background: var(--sf-or); }
.sf-revue__chapo { font-style: italic; font-size: 1.25rem; line-height: 1.5; color: rgba(251, 250, 247, .9); }
.sf-revue__action {
  margin-top: .5rem; display: inline-flex; align-items: center; gap: .625rem;
  font-family: var(--sf-sans); font-size: .875rem; font-weight: 600; color: var(--sf-or-clair);
  text-decoration: underline; text-underline-offset: 4px;
}
.sf-revue__format { font-size: .6875rem; letter-spacing: .1em; padding: .125rem .375rem; border: 1px solid currentColor; text-decoration: none; }
.sf-revue-liste li {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline;
  padding: 1.125rem 0; border-top: 1px solid var(--sf-filet);
}
.sf-revue-liste li:last-child { border-bottom: 1px solid var(--sf-filet); }
.sf-revue-liste__date { font-family: var(--sf-sans); font-size: .8125rem; font-weight: 600; color: var(--sf-or-texte); }
.sf-revue-liste__titre { font-family: var(--sf-serif); font-weight: 700; font-size: 1.25rem; }
@media (max-width: 767.98px) {
  .sf-revue { padding: 1.75rem 1.5rem; }
  .sf-revue-liste li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ==========================================================================
   Sélections scientifiques : Recommandations (mise en page « référentiel »)
   ========================================================================== */
.sf-reco {
  background: var(--sf-sable); box-shadow: 0 0 0 100vmax var(--sf-sable); clip-path: inset(0 -100vmax);
  padding: 3.5rem 0 4.5rem;
}
.sf-reco__colonne { max-width: 60rem; margin-inline: auto; }
.sf-reco__entete {
  display: flex; align-items: center; gap: 1.25rem;
  padding-bottom: 1.5rem; margin-bottom: 1.75rem; border-bottom: 2px solid var(--sf-nuit);
}
.sf-reco__logo { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: #fff; object-fit: contain; }
.sf-reco__marque { font-family: var(--sf-serif); font-size: 1.25rem; color: var(--sf-encre); }
.sf-reco__edition {
  margin-left: auto; font-family: var(--sf-sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sf-or-texte); text-align: right;
}
.sf-reco__une { background: var(--sf-nuit); color: var(--sf-ivoire); padding: 2.25rem 2rem 2.5rem; display: flex; flex-direction: column; gap: .875rem; }
.sf-page .sf-reco__surtitre {
  font-family: var(--sf-sans); font-size: .75rem; font-weight: 600; font-style: italic;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 250, 247, .85);
}
.sf-reco__une h1 { margin: 0; color: var(--sf-ivoire); font-size: clamp(2.125rem, 1.6rem + 1.8vw, 3rem); line-height: 1.08; }
.sf-reco__filet { width: 4rem; height: 3px; background: var(--sf-or); margin: .25rem 0; }
.sf-page .sf-reco__chapo { font-style: italic; font-size: 1.1875rem; line-height: 1.6; text-align: justify; hyphens: auto; color: rgba(251, 250, 247, .9); }

.sf-reco__partie { margin-top: 3rem; }
.sf-reco__bandeau {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--sf-nuit); color: var(--sf-ivoire); padding: 1.125rem 1.5rem;
}
.sf-reco__num {
  font-family: var(--sf-serif); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--sf-or);
  padding-right: 1.25rem; border-right: 1.5px solid var(--sf-or);
}
.sf-page .sf-reco__partie-label { font-family: var(--sf-sans); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 250, 247, .8); }
.sf-reco__bandeau h2 { color: var(--sf-ivoire); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.2; }

.sf-reco__fiche {
  margin-top: 1.5rem; background: #fff; border: 1px solid var(--sf-filet); border-top: 4px solid var(--sf-or);
  padding: 1.5rem 1.5rem 1.625rem; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
}
.sf-reco__fiche h3 { font-size: 1.1875rem; line-height: 1.35; color: var(--sf-encre); }
.sf-page .sf-reco__tag {
  display: inline-block; padding: .25rem .75rem; border-radius: 999px;
  background: #f6ecdb; border: 1px solid #e8d6b3; color: var(--sf-or-texte);
  font-family: var(--sf-sans); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.sf-page .sf-reco__texte { font-size: 1.125rem; line-height: 1.6; text-align: justify; hyphens: auto; color: var(--sf-encre); }
.sf-reco__bouton, .sf-reco__bouton:visited {
  margin-top: .25rem; display: inline-flex; align-items: center; gap: .375rem;
  padding: .625rem 1.125rem; border-radius: 999px; background: var(--sf-or); color: var(--sf-nuit);
  font-family: var(--sf-sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transition: background-color .15s;
}
.sf-reco__bouton:hover, .sf-reco__bouton:focus { background: var(--sf-or-clair); color: var(--sf-nuit); }
.sf-reco__pied {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--sf-filet);
  font-family: var(--sf-sans); font-size: .8125rem; color: var(--sf-texte-2);
}
@media (max-width: 767.98px) {
  .sf-reco { padding-top: 2rem; }
  .sf-reco__entete { flex-wrap: wrap; }
  .sf-reco__logo { width: 4rem; height: 4rem; }
  .sf-reco__edition { margin-left: 0; width: 100%; text-align: left; }
  .sf-reco__une { padding: 1.75rem 1.25rem 2rem; }
  .sf-page .sf-reco__chapo, .sf-page .sf-reco__texte { text-align: left; }
  .sf-reco__fiche { padding: 1.25rem 1.125rem; }
}

/* ==========================================================================
   Mentions légales
   ========================================================================== */
.sf-legal { max-width: 48rem; }
.sf-legal h2 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; margin: 2.75rem 0 .75rem !important; }
.sf-legal h2:first-child { margin-top: 0 !important; }
.sf-page .sf-legal p { margin: 0 0 .875rem; font-size: 1.125rem; line-height: 1.65; }
.sf-legal__infos { margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--sf-filet); }
.sf-legal__infos > div {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem;
  padding: .875rem 0; border-bottom: 1px solid var(--sf-filet);
}
.sf-legal__infos dt { font-family: var(--sf-sans); font-size: .8125rem; font-weight: 600; color: var(--sf-or-texte); }
.sf-legal__infos dd { margin: 0; font-size: 1.125rem; line-height: 1.55; }
.sf-page .sf-legal p.sf-legal__copyright { margin-top: 2rem; font-family: var(--sf-sans); font-size: .8125rem; color: var(--sf-texte-2); }
@media (max-width: 767.98px) { .sf-legal__infos > div { grid-template-columns: 1fr; gap: .25rem; } }
@media (max-width: 575.98px) { .sf-diapo__attente-texte { top: 3.75rem; } }

/* ==========================================================================
   Pages de compte (connexion, mot de passe oublié, profil)
   ========================================================================== */
body.com_users .mod-breadcrumbs__wrapper { display: none; }
.com-users-login, .com-users-reset, .com-users-remind, .com-users-reset-confirm, .com-users-reset-complete, .com-users-logout {
  max-width: 30rem; margin: 3.5rem auto 4.5rem;
}
.com-users-profile__edit { max-width: 46rem; margin: 3rem auto 4rem; }
body.com_users .page-header h1, body.com_users h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); margin-bottom: 1rem; }
.com-users-login__description { margin-bottom: 1.5rem; font-size: 1.125rem; line-height: 1.6; color: var(--sf-texte-2); }
body.com_users .form-control { border-radius: 0; border-color: var(--sf-filet); background: #fff; font-family: var(--sf-sans); font-size: .9375rem; }
body.com_users .form-control:focus { border-color: var(--sf-or); box-shadow: 0 0 0 .2rem rgba(185, 138, 58, .2); }
body.com_users .control-label label, body.com_users .form-label { font-family: var(--sf-sans); font-size: .8125rem; font-weight: 600; color: var(--sf-encre); }
body.com_users .btn-primary, body.com_users .btn-primary:focus {
  background: var(--sf-or); border-color: var(--sf-or); color: var(--sf-nuit);
  font-family: var(--sf-sans); font-weight: 600; min-height: 3rem; padding-inline: 1.75rem; border-radius: 0;
}
body.com_users .btn-primary:hover { background: var(--sf-or-clair); border-color: var(--sf-or-clair); color: var(--sf-nuit); }
.com-users-login__options { margin-top: 1.5rem; border-radius: 0; }
.com-users-login__options .list-group-item { background: none; font-family: var(--sf-sans); font-size: .875rem; }

/* ---------- Accueil : prochains événements */
.container-bottom-a:has(.sf-prochains) { margin-top: 5rem; }
.sf-prochains__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-bottom: 1.75rem; }
.sf-prochains__tete h2 { margin: 0; font-size: 1.875rem; }
.sf-prochains__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sf-prochain { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--sf-filet); border-top: 3px solid var(--sf-nuit); }
.sf-prochain--avant { border-top-color: var(--sf-or); background: #f6efe2; }
.sf-prochain__date { font-family: var(--sf-sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sf-or-texte); }
.sf-prochain__titre { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.sf-prochain__titre a { color: var(--sf-encre); text-decoration: none; }
.sf-prochain__titre a:hover, .sf-prochain__titre a:focus { color: var(--sf-or-texte); text-decoration: underline; }
.sf-prochain__lieu { display: flex; align-items: center; gap: .3rem; margin-top: auto; font-size: 1rem; color: var(--sf-texte-2); }
.sf-prochain__point { width: .5625rem; height: .5625rem; border-radius: 50%; flex-shrink: 0; }
.sf-prochain__point:last-of-type { margin-right: .25rem; }
@media (max-width: 991.98px) { .sf-prochains__liste { grid-template-columns: 1fr; } }

/* Agenda : titres d'événements sans soulignement permanent */
.sf-page .sfa-evt__titre a { text-decoration: none; }
.sf-page .sfa-evt__titre a:hover, .sf-page .sfa-evt__titre a:focus { text-decoration: underline; }

/* ---------- Qualiopi : encart de la page Formation et rappel du pied de page */
.sf-qualiopi {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: center;
  margin: 3.5rem 0 0; padding: 1.75rem 2rem; background: #fff; border: 1px solid var(--sf-filet); border-left: 4px solid var(--sf-or);
}
.sf-qualiopi__logo { display: block; width: 100%; height: auto; }
.sf-qualiopi__texte { display: flex; flex-direction: column; gap: .625rem; }
.sf-qualiopi__texte h2 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); line-height: 1.15; }
.sf-page .sf-qualiopi__texte p:not(.sf-surtitre) { font-size: 1.125rem; line-height: 1.55; color: var(--sf-texte-2); }
.sf-qualiopi .sf-surtitre { color: var(--sf-or-texte); }
@media (max-width: 767.98px) {
  .sf-qualiopi { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .sf-qualiopi__logo { max-width: 13rem; }
}
.sf-footer__qualiopi { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: rgba(251, 250, 247, .7); font-size: .8125rem; line-height: 1.35; }
.sf-footer__qualiopi:hover, .sf-footer__qualiopi:focus { color: var(--sf-ivoire); }
.sf-footer__qualiopi img { width: 6rem; height: auto; padding: .25rem .375rem; background: #fff; border-radius: 3px; }

/* ---------- Formation : encadré Qualiopi (comme celui de La SFACCEC) */
.sf-encadre__qualiopi img { display: block; width: 100%; max-width: 14rem; height: auto; margin: -.25rem 0 .25rem -.25rem; }
.sf-encadre__qualiopi h2 { font-size: 1.3125rem; }
.sf-deux-col--formation > div > .sf-titre-section { margin-bottom: 1.5rem; }
@media (max-width: 991.98px) {
  .sf-deux-col--formation .sf-encadre { order: -1; }
}

/* ==========================================================================
   Mobile : garde-fous contre les débordements (v1.6.2)
   ========================================================================== */
img, video, iframe, embed, object { max-width: 100%; }
.item-page img, .com-content-article img { height: auto; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { overflow-wrap: break-word; }

/* Page d'erreur (404…) : le logo ne dépasse plus */
.navbar-brand img.logo { width: auto; max-width: 100%; height: auto; max-height: 4.5rem; }

/* Chiffres de satisfaction : la dernière case prend toute la ligne s'il reste une place vide */
.sf-chiffres strong { font-size: clamp(2rem, 1.2rem + 1.4vw, 2.5rem); }
@media (min-width: 576px) and (max-width: 991.98px) {
  .sf-chiffres li:nth-child(3n+2):last-child { grid-column: span 2; }
}
@media (max-width: 575.98px) {
  .sf-chiffres li:nth-child(odd):last-child { grid-column: 1 / -1; }
  .sf-chiffres li { padding: 1.5rem 1.25rem; }
}

/* Contenus saisis dans les articles : tableaux défilants, liens longs coupés */
@media (max-width: 767.98px) {
  .item-page table:not([class*="sf-"]) { display: block; max-width: 100%; overflow-x: auto; }
  .item-page p a, .item-page li a, .item-page td a { overflow-wrap: anywhere; }
}

/* Grands titres sur petits écrans (mots longs : « Recommandations », « extracorporelle »…) */
@media (max-width: 575.98px) {
  h1, h2, .sf-titre-section { hyphens: auto; }
  .sf-hero h1, .sf-bandeau h1 { font-size: min(2.5rem, 11vw); }
  .sf-reco__une h1 { font-size: min(2.125rem, 9vw); }
  .sf-titre-section { font-size: min(2rem, 9.5vw); }
}

/* Menu mobile : Adhésion et S'identifier (barre du haut masquée sous 992 px) */
.sf-menu-compte { display: none; }
@media (max-width: 991.98px) {
  .sf-menu-compte { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: 1.25rem; font-family: var(--sf-sans); font-size: .9375rem; }
  .sf-menu-compte a {
    flex: 1 1 9rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.875rem; padding: .5rem 1rem; text-decoration: none; font-weight: 600;
    border: 1.5px solid rgba(251, 250, 247, .5); color: var(--sf-ivoire);
  }
  .sf-menu-compte a.sf-menu-compte__adherer { background: var(--sf-or-clair); border-color: var(--sf-or-clair); color: var(--sf-nuit); }
  .sf-menu-compte svg { width: 1.125rem; height: 1.125rem; }
}

/* Petits ordinateurs / tablettes à l'horizontale (992–1199 px) : le menu tient sur une ligne */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container-header { column-gap: 1.25rem; }
  .container-header .metismenu.mod-menu { gap: 1rem; }
  .container-header .metismenu.mod-menu > li > a,
  .container-header .metismenu.mod-menu > li > span { font-size: .875rem; }
}

/* Chiffres : une valeur longue (« 8,59 → 9,7 ») passe à la ligne plutôt que de déborder */
.sf-chiffres strong { white-space: normal; }

/* Pages intérieures : la mise en page suit la largeur réellement disponible
   (utile quand une colonne de modules à droite réduit la zone de contenu) */
.sf-page { container: sfpage / inline-size; }
@container sfpage (max-width: 1150px) {
  .sf-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-groupe { grid-template-columns: 1fr; gap: 1.5rem; }
  .sf-numero { grid-template-columns: 1fr; gap: 2rem; }
  .sf-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-chiffres li:nth-child(3n+2):last-child { grid-column: span 2; }
  .sf-qualites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-qualites li:first-child { grid-column: 1 / -1; }
}
@container sfpage (max-width: 960px) {
  .sf-deux-col, .sf-diplome, .sf-deux, .sf-docs { grid-template-columns: 1fr; gap: 2rem; }
  .sf-encadre { margin-top: 0; }
  .sf-deux-col--formation .sf-encadre { order: -1; }
  .sf-cartes-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-journee { min-height: 0; }
  .sf-entete, .sf-serie__tete, .sf-appel { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sf-diplome { padding: 1.75rem; }
  .sf-infos > div { grid-template-columns: 1fr; gap: .25rem; }
}
@container sfpage (max-width: 620px) {
  .sf-cartes-3 { grid-template-columns: 1fr; }
  .sf-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-chiffres li:nth-child(3n+2):last-child { grid-column: auto; }
  .sf-chiffres li:nth-child(odd):last-child { grid-column: 1 / -1; }
}
@container sfpage (max-width: 620px) {
  .sf-tuiles, .sf-qualites { grid-template-columns: 1fr; }
}
/* Cartes des journées : nombre de colonnes selon la place de leur bloc */
.sf-serie { container: sfserie / inline-size; }
@container sfserie (max-width: 640px) { .sf-cartes-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container sfserie (max-width: 420px) { .sf-cartes-3 { grid-template-columns: 1fr; } }
