/* ============================================================================
   Global layout — phpBB/GitHub-like shell
   ============================================================================ */

.site-main {
  background: var(--bg);
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

/* Accessibilité */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}


/* =====================================================================
   Gouttières viewport (comme phpBB) — corrige barres collées au bord
   ===================================================================== */

/* 1) La gouttière doit être portée par les grands wrappers, pas body */
#page-header,
.site-main{
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}

/* 2) Empêche un éventuel full-bleed de déborder la gouttière */
#page-header,
.site-main,
.headerbar,
.navbar,
.navbar-tabs,
.crumbbar-wrap{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 3) Breakpoints : réduit la gouttière sur petit écran */
@media (max-width: 480px){
  #page-header,
  .site-main{
    padding-left: calc(var(--s-3) - 3px);
    padding-right: calc(var(--s-3) - 3px);
  }
}

/* ============================================================================
   phpBB structural header (missing prosilver layout)
   ============================================================================ */

/* Espacement correct sous le header phpBB */
#page-header { width: 100%; margin-bottom: 12px; }

/* Alignement largeur phpBB avec le site */
#page-header .inner,
.navbar .inner{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

/* headerbar layout */
.headerbar .inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.logo-phi {
  width: 42px;
  height: 42px;
  background: var(--color01);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-phi .phi {
  color: #FFFFFF;
  font-size: 29px; /* 42px * 0.7 pour garder les proportions */
  font-weight: bold;
  font-family: 'Georgia', serif;
  transform: rotate(0deg);
  line-height: 1;
}

.site-description{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.site-description h1{ margin: 0; line-height: 1.05; }
.site-description p { margin: 2px 0 0; opacity: .85; }

/* search box reset + layout */
#search-box fieldset{
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#search-box .inputbox.search{
  width: 260px;
  max-width: 40vw;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--color04);
  background: var(--color02);
  color: var(--color13);
  outline: none;
}

#search-box .inputbox.search:focus{
  border-color: var(--color01);
}

#search-box .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--color04);
  background: var(--color03);
  color: var(--color13);
  cursor: pointer;
}

#search-box .button:hover{
  background: var(--color04);
}

/* Header – boutons icônes : pas de soulignement */
.headerbar a.button,
.headerbar a.button:hover,
.headerbar a.button:focus,
.headerbar a.button:active{
  text-decoration: none;
}

/* ============================================================================
   Navbar tabs — “box réelle” avec arrondi bas (forum-like)
   ============================================================================ */

/* Le conteneur .navbar ne doit pas couper l’arrondi */
.navbar{
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
}

/* La box qui peint réellement la barre */
.navbar .inner{
  padding-top: 6px;
  padding-bottom: 6px;

  background: var(--color03);
  border-left:  1px solid var(--color04);
  border-right: 1px solid var(--color04);
  border-bottom: 1px solid var(--color04);
  border-radius: 0 0 6px 6px;

  overflow: visible;
}

.linklist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.linklist > li{ margin: 0; padding: 0; }
.linklist > li.rightside{ margin-left: auto; }

.linklist a{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
  color: var(--color13);
}

.linklist a:hover{
  color: var(--color11);
}

.linklist > li.active > a{
  border-bottom-color: var(--tab-accent);
  color: var(--color11);
}

/* Mobile */
@media (max-width: 980px){
  .headerbar .inner{
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #search-box{ width: 100%; }

  #search-box fieldset{
    width: 100%;
    min-width: 0;
  }

  #search-box .inputbox.search{
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  #search-box .button,
  #search-box .button-lang{
    flex: 0 0 auto;
  }

  .linklist{ flex-wrap: wrap; gap: 12px; }
}

/* ============================================================================
   Subbar / Crumbbar (fil d’Ariane + outils)
   ============================================================================ */

/* Espace exact entre navbar-tabs et crumbbar */
.navbar + .crumbbar-wrap{
  margin-top: 5px !important;
  padding-top: 0 !important;
}

/* Fond “autour” de la barre */
.crumbbar-wrap{
  width: 100%;
  background: var(--color02);
  padding: 5px 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.crumbbar-wrap::before,
.crumbbar-wrap::after{
  content: none !important;
  display: none !important;
}

/* La barre (box) */
.crumbbar{
  max-width: 1150px;
  margin: 0 auto;
  background: var(--color03);
  border: 1px solid var(--color04);
  border-radius: 6px;
  overflow: visible;
}

/* Layout interne */
.crumbbar-inner{
  width: 100%;
  height: 32px;
  padding: 0 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-width: 0; /* crucial en flex */
  overflow: visible;
}

@media (max-width: 900px){
  .crumbbar-inner{ height: 30px; }
}

/* Breadcrumb = <ol class="crumbtrail"> (une ligne, scroll horizontal si nécessaire) */
.crumbtrail{
  list-style: none;
  margin: 0;
  padding: 0;

  display: inline-flex;
  align-items: center;
  white-space: nowrap;

  min-width: 0;
  flex: 1 1 auto;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge legacy */
}
.crumbtrail::-webkit-scrollbar{ display: none; }

.crumbtrail li{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--color01);
}

/* Séparateur ‹ en CSS */
.crumbtrail li + li::before{
  content: "\2039"; /* ‹ */
  margin: 0 6px;
  color: var(--color01);
  transform: translateY(-0.5px);
}

.crumbtrail a{
  color: var(--color01);
  text-decoration: none;
}

.crumbtrail a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Page courante */
.crumbtrail [aria-current="page"]{
  color: var(--color11);
  font-weight: 600;
}

/* Home (icône + CdR) */
.crumbtrail .crumb-home a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumb-home-ico{
  font-size: 14px;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* Outils à droite */
.crumbtools{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ============================================================================
   Palette --color01 (popover)
   ============================================================================ */

.color01-wrap{
  position: relative;
  display: inline-flex;
}

/* Sizing local (si tu préfères, on pourra le remonter dans variables.css) */
:root{
  --swatch: 19px;
  --swatch-gap: calc(var(--swatch) / 2);
}

.color01-pop{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  transform: translateX(-8px);
  --tip-x: calc(100% - 18px);
  z-index: 9999;
  border-radius: 4px;
  padding: 6px;
}

html[data-theme="light"] .color01-pop{
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
}

html[data-theme="dark"] .color01-pop{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(2px);
}

.color01-pop::before{
  content: "";
  position: absolute;
  top: -6px;
  left: var(--tip-x);
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

html[data-theme="light"] .color01-pop::before{ border-bottom-color: #e5e7eb; }
html[data-theme="dark"]  .color01-pop::before{ border-bottom-color: rgba(0,0,0,0.35); }

.color01-grid{
  display: grid;
  grid-template-columns: repeat(5, var(--swatch));
  gap: var(--swatch-gap);
  padding: 6px;
  border-radius: 4px;
}

html[data-theme="light"] .color01-grid{
  background: #f6f8fa;
  border: 1px solid #d0d7de;
}

html[data-theme="dark"] .color01-grid{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
}

.color01-swatch{
  width: var(--swatch);
  height: var(--swatch);
  padding: 0;
  border-radius: 2px;
  background: #888;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(255,255,255,0.12);
  touch-action: manipulation;
}

html[data-theme="light"] .color01-swatch{
  border-color: rgba(0,0,0,0.15);
}

.color01-swatch:hover{
  border-color: rgba(255,255,255,0.35);
}
html[data-theme="light"] .color01-swatch:hover{
  border-color: rgba(0,0,0,0.35);
}

html[data-theme="light"] .color01-swatch.is-active{
  outline: 2px solid #111;
  outline-offset: 1px;
}
html[data-theme="dark"] .color01-swatch.is-active{
  outline: 2px solid #fff;
  outline-offset: 1px;
}

/* Pinceau sans chrome (scopé au bouton) */
.crumbtools button.color01-icon{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  cursor: pointer;
  color: var(--color01);
}

.crumbtools button.color01-icon:focus-visible{
  outline: 2px solid var(--color01);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================================
   Icons (pinceau + toggle)
   ============================================================================ */

.crumbtools .color01-icon,
.crumbtools .theme-toggle{
  color: var(--color01);
}

.crumbtools .color01-icon:hover,
.crumbtools .color01-icon:focus-visible,
.crumbtools .theme-toggle:hover,
.crumbtools .theme-toggle:focus-visible{
  color: #fff;
}

/* Toggle sombre/clair — capsule */
.crumbtools .theme-toggle{
  height: 18px;
  padding: 0 17px;
  min-width: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #0b0f14;
  border: 1px solid var(--color04);
  border-radius: 9999px !important;

  color: var(--color01);
  cursor: pointer;
  line-height: 1;
}

.crumbtools .theme-toggle:hover,
.crumbtools .theme-toggle:focus-visible{
  background: #0b0f14;
  border-color: var(--color05);
  color: #fff;
}

.crumbtools .theme-toggle .icon.fa{
  font-size: 13px;
  line-height: 1;
}

/* Mode clair : toggle sur fond clair */
html[data-theme="light"] .crumbbar .crumbtools .theme-toggle{
  background: var(--color03);
  border-color: var(--color04);
}
html[data-theme="light"] .crumbbar .crumbtools .theme-toggle:hover,
html[data-theme="light"] .crumbbar .crumbtools .theme-toggle:focus-visible{
  background: var(--color03);
  border-color: var(--color05);
  color: var(--color11) !important;
}

/* ============================================================================
   Responsive crumbbar
   ============================================================================ */

@media (max-width: 700px){
  .crumbbar-wrap{
    padding: 8px 12px;
  }
  .crumbbar{
    max-width: none;
    margin: 0;
  }
  .crumbtrail li{ font-size: 12px; }
}

/* ============================================================================
   Footer (global)
   ============================================================================ */

.site-footer{
  margin-top: 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px var(--s-4);
}

.footer-left,
.footer-right{
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a{
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer a:hover{
  text-decoration: underline;
}

.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 14px var(--s-4);
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

/* =========================
   Pinceau — couleur forcée
   ========================= */

/* Bouton */
.crumbtools button.color01-icon{
  color: var(--color01) !important;
}

/* Icône SVG */
.crumbtools button.color01-icon svg{
  color: var(--color01) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Sécurité absolue : paths internes */
.crumbtools button.color01-icon svg *{
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Breadcrumb: disposition nette */
.crumbtrail{
  display: flex;
  align-items: center;
  gap: 0;               /* on gère l’espacement via .crumbsep */
}

.crumbitem{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}


/* Breadcrumb: on neutralise les séparateurs hérités (pseudo-elements) */
.crumbtrail li::before,
.crumbtrail li::after{
  content: none !important;
}

/* Mise en forme propre */
.crumbtrail{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
}

.crumbitem{
  display:inline-flex;
  align-items:center;
}

.crumbsep{
  display:inline-block;
  margin: 0 10px;
  line-height: 1;
  user-select: none;
}

/* Séparateurs noir/blanc selon thème */
:root[data-theme="dark"]  .crumbsep{ color:#fff !important; }
:root[data-theme="light"] .crumbsep{ color:#000 !important; }

/* Liens breadcrumb */
.crumbtrail .crumblink{
  color: var(--color01);
  text-decoration: none;
}

.crumbtrail .crumblink:hover{
  text-decoration: underline;
}

/* Dernier crumb (actif) en --color01 */
.crumbtrail .crumbactive,
.crumbtrail .crumbactive-link{
  color: var(--color01) !important;
  font-weight: 600;
}

/* Layout: breadcrumbs à gauche, outils à droite */
.crumbbar-inner{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Breadcrumbs: une seule ligne, scroll horizontal */
.crumbtrail{
  flex: 1 1 auto;
  min-width: 0;              /* critique: autorise overflow dans un flex */
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}


/* =========================================================
   Breadcrumbs — comportement forum exact
   ========================================================= */

/* Breadcrumbs: force couleurs (même si styles globaux existent) */
.crumbbar .crumbtrail a:link,
.crumbbar .crumbtrail a:visited{
  color: var(--color01) !important;
  text-decoration: none !important;
}

.crumbbar .crumbtrail a:hover,
.crumbbar .crumbtrail a:focus-visible{
  color: var(--color11) !important;
  text-decoration: none !important;
}

/* Page courante */
.crumbbar .crumbtrail .crumbactive,
.crumbbar .crumbtrail .crumbactive-link{
  color: var(--color01) !important;
  text-decoration: none !important;
  font-weight: 600;
}



/* Empêche les items de casser */
.crumbitem,
.crumb-home{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Outils: ne rétrécit pas, reste visible */
.crumbtools{
  flex: 0 0 auto;
}

/* Réduire l'espace entre l'icône maison et le texte "CdR" */
.crumb-home-ico{
  margin-right: -4px; /* ajuste à 3px si tu veux encore plus serré */
}

/* Sécurité : neutralise tout margin excessif côté label */
.crumb-home-label{
  margin-left: 0;
}

/* ===== Breadcrumbs — comportement identique au forum ===== */

/* État normal : couleur texte (pas couleur primaire) */
.crumbtrail a,
.crumbtrail a:visited{
  color: var(--color01) !important;
  text-decoration: none !important;
}

/* Hover / focus : couleur primaire sélectionnée */
.crumbtrail a:hover,
.crumbtrail a:focus-visible{
  color: var(--color11) !important;
  text-decoration: none !important;
}

/* Page active (dernier crumb) */
.crumbtrail .crumbactive,
.crumbtrail .crumbactive-link{
  color: var(--color11) !important;
  text-decoration: none !important;
  font-weight: 600;
}


/* Réduit l'espace entre navbar-tabs et crumbbar */
#page-header{
  margin-bottom: 6px !important;   /* mets 4px si tu veux encore plus serré */
}

/* ============================================================================
   Doc canvas — fond derrière TOC + autour de la carte
   ========================================================================== */

/* 1) Le fond global visible sur les pages doc/CdR */
html[data-theme="light"] main.site-main,
html[data-theme="light"] main.site-main .doc-shell {
  background: var(--color02) !important; /* même fond que le header */
}

/* 2) Empêcher les panneaux de repeindre en blanc */
html[data-theme="light"] main.site-main .doc-toc,
html[data-theme="light"] main.site-main .doc-content {
  background: transparent !important;
}

/* 3) La carte garde son propre fond (si tu veux qu’elle reste “surface”) */
html[data-theme="light"] main.site-main .doc-card {
  background: var(--bg) !important; /* ou var(--color02) si tu veux tout uniforme */
}





/* Pinceau (color01) : hover en --color11 */
.color01-btn.color01-icon:hover,
.color01-btn.color01-icon:focus-visible {
  color: var(--color11) !important;
}

/* Force l'icône FontAwesome à hériter */
.color01-btn.color01-icon:hover .icon,
.color01-btn.color01-icon:focus-visible .icon {
  color: currentColor !important;
}

/* Bouton thème : reset strict */
.iconbtn.mini.theme-toggle {
  padding: 6px 6px !important;
  /* min-width: unset !important; */
  width: auto !important;
}

/* Conteneur outils breadcrumb : pas d'espace fantôme */
.crumbtools {
  gap: 0 !important;
}

/* Si le wrap ajoute aussi de l'air */
.color01-wrap {
  margin-right: 18px; /* petit espace maîtrisé */
}



/* ============================================================================
   Footerbar (même langage visuel que la crumbbar)
   ============================================================================ */

.site-footer{
  margin-top: 22px;
  background: var(--color02);
  border-top: 1px solid var(--color04);
}

/* Fond “autour” de la barre */
.footerbar-wrap{
  width: 100%;
  background: var(--color02);
  padding: 5px 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* La barre (box) */
.footerbar{
  max-width: 1150px;
  margin: 0 auto;
  background: var(--color03);
  border: 1px solid var(--color04);
  border-radius: 6px;
  overflow: visible;
}

/* Layout interne */
.footerbar-inner{
  width: 100%;
  height: 32px;
  padding: 0 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-width: 0;
  overflow: visible;
}

@media (max-width: 900px){
  .footerbar-inner{ height: 30px; }
}

/* Trail = une ligne, scroll horizontal si nécessaire */
.footertrail{
  list-style: none;
  margin: 0;
  padding: 0;

  display: inline-flex;
  align-items: center;
  white-space: nowrap;

  min-width: 0;
  flex: 1 1 auto;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.footertrail::-webkit-scrollbar{ display: none; }

.footertrail li{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--color01);
}

/* Libellé “Vous êtes ici” */
.footertrail .footer-here{
  color: var(--color11);
  font-weight: 600;
}

/* Séparateurs (même glyph que crumbbar) */
.footertrail .footer-here + .footeritem::before,
.footertrail .footeritem + .footeritem::before{
  content: "\2039"; /* ‹ */
  margin: 0 6px;
  color: var(--color01);
  transform: translateY(-0.5px);
}

.footertrail a{
  color: var(--color01);
  text-decoration: none;
}

.footertrail a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Page courante */
.footertrail [aria-current="page"]{
  color: var(--color11);
  font-weight: 600;
}

/* Actions à droite (capsules façon outils) */
.footeractions{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.footeractions .footerbtn{
  height: 18px;
  padding: 0 12px;
  min-width: 30px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: #0b0f14;
  border: 1px solid var(--color04);
  border-radius: 9999px;

  color: var(--color01);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.footeractions .footerbtn:hover,
.footeractions .footerbtn:focus-visible{
  background: #0b0f14;
  border-color: var(--color05);
  color: #fff;
}

.footeractions .footerbtn .icon.fa{
  font-size: 13px;
  line-height: 1;
}

html[data-theme="light"] .footeractions .footerbtn{
  background: var(--color03);
  border-color: var(--color04);
}
html[data-theme="light"] .footeractions .footerbtn:hover,
html[data-theme="light"] .footeractions .footerbtn:focus-visible{
  background: var(--color03);
  border-color: var(--color05);
  color: var(--color11);
}

.footer-bottom{
  border-top: 1px solid var(--color04);
  padding: 14px var(--s-4);
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 700px){
  .footerbar-wrap{ padding: 8px 12px; }
  .footerbar{ max-width: none; margin: 0; }
  .footertrail li{ font-size: 12px; }
  .footeraction-label{ display: none; }
  .footeractions .footerbtn{ padding: 0 10px; }
}

/* ============================================================================
   Footer — suppression des lignes parasites (type <hr>)
   ============================================================================ */

/* Le footer global ne doit PAS dessiner de lignes */
.site-footer{
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Le wrap autour de la barre : aucun trait */
.footerbar-wrap{
  border-top: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Sécurité : si un style générique touche <footer> ou <nav> */
.site-footer nav,
.site-footer .container{
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* La SEULE bordure autorisée : celle de la barre elle-même */
.footerbar{
  border: 1px solid var(--color04);
}

/* ============================================================================
   Footer right links — phpBB-like
   ============================================================================ */

.footerlinks{
  display: inline-flex;
  align-items: center;
  gap: 14px;               /* espacement horizontal comme phpBB */
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.footerlink-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--color01);
  text-decoration: none;

  padding: 0;              /* pas de capsule */
  border: 0;
  background: none;
}

.footerlink-item .icon.fa{
  font-size: 13px;
  opacity: 0.9;
}

.footerlink-item:hover,
.footerlink-item:focus-visible{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-theme="light"] .footerlink-item:hover,
html[data-theme="light"] .footerlink-item:focus-visible{
  color: var(--color11);
}

/* Mobile : cacher le texte si nécessaire */
@media (max-width: 700px){
  .footerlink-item span{
    display: none;
  }
}

/* Footer — ne jamais souligner les liens */
.site-footer a,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active {
  text-decoration: none !important;
}

/* Bande copyright — fond bleu clair comme le contour des cartes */
.site-footer .footer-bottom {
  background-color: var(--color02);
  text-align: center;
}


/* ============================================================================
   Crumbbar — mobile: remove extra lateral gutters
   ============================================================================ */
@media (max-width: 700px){
  /* le wrapper doit être full-bleed */
  .crumbbar-wrap{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* la barre elle-même ne doit pas rajouter de gouttière */
  .crumbbar{
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important; /* optionnel: si tu veux bord à bord */
  }

  /* la gouttière doit être portée par l’intérieur seulement */
  .crumbbar-inner{
    padding-left: var(--s-3) !important;
    padding-right: var(--s-3) !important;
  }
}


/* ============================================================================
   Images inversées en mode sombre (-I)
   ============================================================================ */
html[data-theme="dark"] img[src*="-I." i]{
  filter: invert(1) hue-rotate(180deg);
}

/* ============================================================================
   Liens d’images : zone cliquable = image, MAIS centrage conservé
   ============================================================================ */

/* Modern browsers */
.article a:has(> img),
.markdown a:has(> img){
  display: block !important;
  width: fit-content;        /* shrink-wrap = largeur image */
  max-width: 100%;
  margin-left: auto;         /* centrage */
  margin-right: auto;
}

/* L’image reste un bloc (pas de baselines bizarres) */
.article a:has(> img) > img,
.markdown a:has(> img) > img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* Fallback si fit-content n’est pas supporté (rare) */
@supports not (width: fit-content){
  .article a:has(> img),
  .markdown a:has(> img){
    display: inline-block !important;
  }
  /* si fallback inline-block, on centre via le parent */
  .article p, .markdown p { text-align: center; }
}


.pagefind-meta-title{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
  white-space:nowrap;
}

/* Pages Accueil + menu latéral : largeur max du bloc contenu */
.home-shell{
  max-width: 1150px !important;
}