/* Palette de base : BLANC (le thème sombre redéfinit ces variables) */
:root{--beige:#ffffff;--beige-soft:#f7f8fa;--white:#ffffff}

/* Réseaux : même logique visuelle que l'expérience */
.network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem}
.network-card{display:flex;flex-direction:column;min-height:188px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.45rem 1.5rem;text-decoration:none;color:var(--ink);transition:transform .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease)}
.network-card:hover{transform:translateY(-4px);border-color:#1b1a1747;box-shadow:var(--shadow)}
.network-card__top{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-width:0}
.network-card__identity{display:flex;align-items:center;gap:.85rem;min-width:0}
.network-card__icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--beige-soft);border:1px solid var(--line);color:var(--ink);flex-shrink:0}
.network-card__icon--discord{color:#5865f2}
.network-card__icon svg{width:25px;height:25px}
.network-card__title{font-family:var(--font-display);font-weight:700;font-size:1.22rem;line-height:1.05;margin:0}
.network-card__meta{margin:.25rem 0 0;color:var(--ink-soft);font-size:.9rem}
.network-card__pill{flex-shrink:0;font-size:.76rem;font-weight:600;letter-spacing:.01em;padding:.32rem .7rem;border-radius:100px;border:1px solid var(--line);color:var(--ink-soft);background:var(--beige-soft)}
.network-card__footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:1rem;border-top:1px solid var(--line-soft);font-size:.88rem;font-weight:600;color:var(--ink-soft)}
.network-card__footer span:last-child{font-size:1rem;color:var(--ink)}

.avis__avatar--image{object-fit:cover}
.reviews-empty{color:var(--ink-soft)}

@media(max-width:760px){
  .network-grid{grid-template-columns:1fr}
}


/* Navigation principale en menu hamburger sur toutes les tailles */
.nav{display:none !important}
.burger{
  display:grid !important;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--white);
  box-shadow:var(--shadow-sm);
}
.burger span{width:22px;height:2px;margin:0;display:block;background:var(--ink);border-radius:999px}
.burger span + span{margin-top:5px}
.burger.is-open{background:var(--ink);border-color:var(--ink)}
.burger.is-open span{background:var(--beige)}
.mobile-menu{padding:7rem var(--gutter) 3.5rem;overflow:auto}
.mobile-menu__nav{max-width:900px;margin-inline:auto;width:100%;gap:.2rem}
.mobile-menu__link{font-size:clamp(1.55rem,4vw,2.4rem);padding:.85rem 0;border-bottom:1px solid var(--line-soft)}
.mobile-menu__link.is-active{color:var(--ink)}
.mobile-menu__link.is-active span{color:var(--ink)}
.mobile-menu__foot{max-width:900px;width:100%;margin:2.5rem auto 0;padding-top:1.5rem;border-top:1px solid var(--line-soft)}
@media(max-width:760px){.burger{width:44px;height:44px}.mobile-menu{padding-top:6.25rem}.mobile-menu__link{font-size:clamp(1.45rem,8vw,2.15rem)}}

/* ===== Système visuel unifié ===== */
:root{
  --uniform-bg:#ffffff;
  --uniform-card:#ffffff;
  --uniform-line:#d6dee8;
  --uniform-line-soft:#e3e9f0;
  --uniform-ink:#0b1748;
  --uniform-muted:#56627a;
  --uniform-radius:22px;
  --uniform-shadow:0 14px 38px rgba(11,23,72,.07);
}

/* Toutes les grandes sections partagent désormais le même langage visuel que l'expérience. */
.section{
  background:var(--uniform-bg);
  padding-block:clamp(4rem,7vw,6.5rem);
}
.section.section--alt{
  background:var(--uniform-bg);
}

/* Titres de sections = même logique que les séparateurs de catégories Expérience. */
.section__head{
  max-width:none;
  margin-bottom:clamp(2rem,4vw,3.25rem);
  display:grid;
  grid-template-columns:auto minmax(40px,1fr);
  align-items:center;
  column-gap:1.35rem;
  row-gap:.9rem;
}
.section__title{
  grid-column:1;
  margin:0;
  font-family:var(--font-display);
  color:var(--uniform-ink);
  font-size:clamp(1.6rem,2.2vw,2.15rem);
  font-weight:700;
  line-height:1;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.section__head::after{
  content:"";
  grid-column:2;
  width:100%;
  height:1px;
  background:var(--uniform-line);
}
.section__lead{
  grid-column:1 / -1;
  margin:0;
  max-width:62ch;
  color:var(--uniform-muted);
  font-size:.98rem;
  line-height:1.65;
}

/* Même rythme de cartes sur projets / avis / réseaux. */
#projects-grid,
#reviews-grid,
.network-grid{
  gap:1.25rem;
}

.card,
.network-card{
  background:var(--uniform-card);
  border:1px solid var(--uniform-line);
  border-radius:var(--uniform-radius);
  box-shadow:none;
}
.card:hover,
.network-card:hover,
.experience-card:hover{
  transform:translateY(-4px);
  border-color:#bdc8d8;
  box-shadow:var(--uniform-shadow);
}

/* Projets : cartes plus proches du gabarit Expérience. */
.card--project{
  min-height:210px;
  padding:1.5rem;
}
.card__head{
  gap:1rem;
}
.card__title{
  color:var(--uniform-ink);
  font-size:1.18rem;
}
.card__desc{
  color:var(--uniform-muted);
  line-height:1.55;
}
.card__foot{
  padding-top:1rem;
  border-top:1px solid var(--uniform-line-soft);
}
.pill{
  background:#f4f5f7;
  border-color:var(--uniform-line);
  color:var(--uniform-ink);
}
.pill--owner,
.pill--founder,
.pill--writer{
  background:#f4f5f7;
  color:var(--uniform-ink);
  border-color:var(--uniform-line);
}

/* Avis : même cadre, même bordure, même rythme. */
.card--avis{
  min-height:210px;
  padding:1.5rem;
}
.card__quote{
  color:var(--uniform-ink);
  line-height:1.7;
}
.avis__author{
  margin-top:auto;
  padding-top:1rem;
  border-top:1px solid var(--uniform-line-soft);
}
.avis__name{color:var(--uniform-ink)}
.avis__meta{color:var(--uniform-muted)}
.avis__avatar{
  background:#f4f5f7;
  border-color:var(--uniform-line);
  color:var(--uniform-ink);
}

/* Réseaux : même structure visuelle et même footer que l'expérience. */
.network-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.network-card{
  min-height:210px;
  padding:1.5rem;
}
.network-card__icon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:#f4f5f7;
  border-color:var(--uniform-line);
}
.network-card__title{color:var(--uniform-ink)}
.network-card__meta{color:var(--uniform-muted)}
.network-card__pill{
  background:#f4f5f7;
  border-color:var(--uniform-line);
  color:var(--uniform-ink);
}
.network-card__footer{
  border-top-color:var(--uniform-line-soft);
  color:var(--uniform-muted);
}
.network-card__footer span:last-child{color:var(--uniform-ink)}

/* Expérience reste la référence, mais adopte la même palette uniforme. */
#experience .experience-card{
  background:var(--uniform-card);
  border-color:var(--uniform-line);
  border-radius:var(--uniform-radius);
  box-shadow:none;
}
#experience .experience-card__role{
  background:#f4f5f7;
  border-color:var(--uniform-line);
  color:var(--uniform-ink);
}
#experience .experience-card__role--owner{
  background:#f4f5f7;
  border-color:var(--uniform-line);
  color:var(--uniform-ink);
}
#experience .experience-card__stat{
  background:#f4f5f7;
  border-color:var(--uniform-line);
  color:var(--uniform-ink);
}
#experience .experience-card__date{color:var(--uniform-muted)}
#experience .experience-card__join{color:var(--uniform-ink)}

/* Couleur d'accent optionnelle choisie à la création d'une carte (bord gauche uniquement,
   le reste de la carte garde la palette uniforme du site). */
#experience .experience-card.has-accent{
  border-left-width:4px;
  border-left-style:solid;
  border-left-color:var(--card-accent, var(--uniform-line));
}
html[data-theme="dark"] .experience-card.has-accent{
  border-left-color:var(--card-accent, #26303d) !important;
}

/* Le grand hero conserve son identité, mais partage les mêmes bleus de texte et de détails. */
.hero__actions .btn,
.profile__btn{
  border-color:var(--uniform-line);
}

@media(max-width:980px){
  .network-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .section__head{
    grid-template-columns:minmax(0,1fr);
    gap:.75rem;
  }
  .section__head::after{
    grid-column:1;
    order:3;
  }
  .section__title{font-size:1.5rem;}
  .section__lead{font-size:.95rem;}
}


/* Header : composition demandée — menu à gauche, photo puis nom, en gardant la police du site. */
.header__inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:1.35rem;
  min-height:108px;
}
.header__inner .burger{
  order:1;
  flex:0 0 auto;
  width:74px;
  height:74px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  padding:0;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:11px;
}
.header__inner .burger span{
  display:block;
  width:56px;
  height:5px;
  margin:0 !important;
  background:var(--ink);
  border-radius:999px;
}
.header__inner .brand{
  order:2;
  display:inline-flex;
  align-items:center;
  gap:1.1rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.8rem,4.2vw,4.45rem);
  line-height:1;
  letter-spacing:-.045em;
}
.header__inner .brand__mark{
  width:72px;
  height:72px;
  border-radius:50%;
  object-fit:cover;
}
.header__inner .nav{
  display:none !important;
}
.header__inner .burger.is-open{
  background:transparent;
  border-color:transparent;
}
.header__inner .burger.is-open span{
  background:var(--ink);
}
@media(max-width:760px){
  .header__inner{
    min-height:82px;
    gap:.8rem;
  }
  .header__inner .burger{
    width:46px;
    height:46px;
    gap:6px;
  }
  .header__inner .burger span{
    width:32px;
    height:3px;
  }
  .header__inner .brand{
    gap:.7rem;
    font-size:2.35rem;
  }
  .header__inner .brand__mark{
    width:48px;
    height:48px;
  }
}

/* ===== Correction du menu ouvert ===== */
/* Le menu s'ouvre sous le header afin de ne plus recouvrir la photo et le nom Daruma. */
.mobile-menu{
  inset:var(--mobile-menu-top,108px) 0 0;
  padding:3rem var(--gutter) 3.5rem;
  z-index:90;
  overflow-y:auto;
  overflow-x:hidden;
}
/* On conserve le header au-dessus du menu et on évite que les anciennes
   transformations du CSS de base donnent un X démesuré. */
.header__inner .burger.is-open span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
}
.header__inner .burger.is-open span:nth-child(2){
  opacity:0;
  transform:none;
}
.header__inner .burger.is-open span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
}
@media(max-width:760px){
  .mobile-menu{
    inset:var(--mobile-menu-top,82px) 0 0;
    padding:2rem var(--gutter) 3rem;
  }
  .header__inner .burger.is-open span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }
  .header__inner .burger.is-open span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }
}


/* ============================================================
   FINAL POLISH — Expérience-inspired global system + menu fix
   ============================================================ */
:root{
  --ux-bg:#ffffff;
  --ux-card:#ffffff;
  --ux-ink:#0b1748;
  --ux-muted:#56627a;
  --ux-line:#d5deea;
  --ux-line-soft:#e4eaf1;
  --ux-radius:22px;
  --ux-shadow:0 18px 45px rgba(11,23,72,.06);
}
html,body{background:var(--ux-bg);color:var(--ux-ink)}
.header{
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--ux-line-soft);
  -webkit-backdrop-filter:saturate(1.2) blur(14px);
  backdrop-filter:saturate(1.2) blur(14px);
}
.header.is-stuck{background:rgba(255,255,255,.92);border-bottom-color:var(--ux-line)}
.header__inner{min-height:104px}
.header__inner .brand{color:var(--ux-ink)}
.header__inner .burger span{background:var(--ux-ink)}

/* Homepage adopts the same section grammar as Expérience. */
.hero{background:var(--ux-bg);padding-block:clamp(3.5rem,6vw,5.75rem) clamp(4rem,7vw,6rem)}
.hero__eyebrow{
  display:grid;
  grid-template-columns:auto minmax(40px,1fr);
  align-items:center;
  gap:1.25rem;
  margin-bottom:clamp(2rem,4vw,3.25rem);
}
.hero__eyebrow span{
  font-family:var(--font-body);
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.19em;
  color:var(--ux-ink);
}
.hero__eyebrow i{height:1px;width:100%;background:var(--ux-line)}
.hero__inner{gap:clamp(2.5rem,5vw,5.5rem);align-items:center;margin-bottom:0}
.hero__title{color:var(--ux-ink)}
.hero__title span{color:#73819b}
.hero__lead{color:var(--ux-muted)}
.hero__actions .btn,.profile__btn{
  background:var(--ux-ink);
  border:1px solid var(--ux-ink);
  box-shadow:none;
}
.hero__actions .btn:hover,.profile__btn:hover{color:var(--ux-ink)}
.hero__profile{margin-top:0}
.profile__tags li{
  color:var(--ux-ink);
  background:var(--ux-card);
  border-color:var(--ux-line);
}

/* Discord card sits inside the same white framed system as Expérience. */
.hero__profile > *{max-width:100%}
.hero__profile .discord-card,
.hero__profile .discord-card--loading,
.hero__profile .discord-card--error{
  border-radius:var(--ux-radius);
  border:1px solid var(--ux-line);
  box-shadow:var(--ux-shadow);
}

/* Generic sections use the same bars and spacing as Expérience. */
.section{background:var(--ux-bg)}
.section--alt{background:#ffffff}
.section__head{max-width:none}
.section__title{color:var(--ux-ink);letter-spacing:.12em;text-transform:uppercase;font-size:clamp(1.45rem,2vw,2rem)}
.section__lead{color:var(--ux-muted)}
.section__head{display:grid;grid-template-columns:auto minmax(40px,1fr);align-items:center;gap:1.25rem}
.section__head::after{content:"";grid-column:2;height:1px;background:var(--ux-line)}
.section__title{grid-column:1}
.section__lead{grid-column:1 / -1;margin-top:0}

.card,.network-card,#experience .experience-card{
  background:var(--ux-card);
  border-color:var(--ux-line);
  border-radius:var(--ux-radius);
  box-shadow:none;
}
.card:hover,.network-card:hover,#experience .experience-card:hover{border-color:#b7c2d2;box-shadow:var(--ux-shadow)}
.pill,.network-card__pill,#experience .experience-card__role,#experience .experience-card__stat{
  background:#f4f5f7;
  border-color:var(--ux-line);
  color:var(--ux-ink);
}
.card__desc,.card__date,.network-card__meta,.network-card__footer,.avis__meta{color:var(--ux-muted)}
.card__foot,.network-card__footer,.avis__author{border-top-color:var(--ux-line-soft)}

.footer{background:#ffffff;border-top-color:var(--ux-line)}
.footer__heading,.footer__col a,.footer__tagline{color:var(--ux-muted)}
.footer__bottom{border-top-color:var(--ux-line);color:#6a7588}

/* Menu: fixed under header, all six rows visible, Expérience-like separators. */
.mobile-menu{
  position:fixed;
  top:var(--mobile-menu-top,104px);
  right:0;
  bottom:0;
  left:0;
  z-index:90;
  background:var(--ux-bg);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:stretch;
  padding:1.5rem clamp(1.25rem,4vw,2.5rem) 3rem;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  transform:translateY(-105%);
  opacity:0;
  visibility:hidden;
  transition:transform .45s var(--ease),opacity .3s var(--ease),visibility .3s;
}
.mobile-menu.is-open{transform:translateY(0);opacity:1;visibility:visible}
.mobile-menu__nav{max-width:1180px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:0}
.mobile-menu__link{
  min-height:clamp(86px,10vh,126px);
  display:grid;
  grid-template-columns:3.5rem minmax(0,1fr);
  align-items:center;
  gap:1.15rem;
  border-top:1px solid var(--ux-line);
  padding:.6rem 0;
  font-family:var(--font-display);
  font-size:clamp(2rem,5vw,4.5rem);
  line-height:1;
  letter-spacing:-.035em;
  color:var(--ux-ink);
}
.mobile-menu__link:last-child{border-bottom:1px solid var(--ux-line)}
.mobile-menu__link:hover{color:#3b4e80}
.mobile-menu__link.is-active{color:var(--ux-ink)}
.mobile-menu__link .menu-index{
  font-family:var(--font-body);
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.1em;
  color:#7b8799;
  align-self:center;
}
.mobile-menu__foot{
  max-width:1180px;
  width:100%;
  margin:2rem auto 0;
  padding-top:1.2rem;
  border-top:1px solid var(--ux-line);
  display:flex;
  flex-wrap:wrap;
  gap:.75rem 1.25rem;
  color:var(--ux-muted);
}
.mobile-menu__foot a:hover{color:var(--ux-ink)}

/* Keep header visible while menu is open. */
.header{z-index:100}
body:has(.mobile-menu.is-open){overflow:hidden}

@media(max-width:760px){
  .header__inner{min-height:82px}
  .hero__eyebrow{grid-template-columns:auto minmax(24px,1fr);margin-bottom:2rem}
  .mobile-menu{top:var(--mobile-menu-top,82px);padding-top:1rem}
  .mobile-menu__link{min-height:72px;grid-template-columns:2.6rem minmax(0,1fr);gap:.7rem;font-size:clamp(1.7rem,8vw,2.65rem)}
  .mobile-menu__link .menu-index{font-size:.75rem}
  .mobile-menu__foot{margin-top:1.2rem;padding-top:1rem}
}

/* ===== Finition finale : menu plus sobre + accueil aligné sur la DA Expérience ===== */
.header__inner{
  min-height:88px;
  gap:1rem;
}
.header__inner .burger{
  width:58px;
  height:58px;
  gap:8px;
}
.header__inner .burger span{
  width:38px;
  height:3px;
}
.header__inner .brand{
  font-size:clamp(2.25rem,3.4vw,3.55rem);
  gap:.85rem;
}
.header__inner .brand__mark{
  width:58px;
  height:58px;
}

.mobile-menu{
  padding:1.2rem var(--gutter) 2.5rem;
}
.mobile-menu__nav{
  max-width:1120px;
}
.mobile-menu__link{
  grid-template-columns:3rem minmax(0,1fr);
  gap:.85rem;
  min-height:88px;
  padding:.8rem 0;
  font-size:clamp(1.45rem,3.2vw,2.15rem);
}
.mobile-menu__link .menu-index{
  font-size:.82rem;
  align-self:center;
}
.mobile-menu__foot{
  max-width:1120px;
  margin-top:1.5rem;
}

.home-hero{
  padding:clamp(2.75rem,5vw,4.5rem) 0 clamp(4rem,7vw,5.75rem);
}
.home-hero__head{
  margin-bottom:2.15rem;
}
.home-hero__grid{
  grid-template-columns:minmax(0,1.52fr) minmax(420px,.92fr);
  gap:clamp(1.75rem,3.25vw,3.5rem);
  align-items:start;
}
.home-hero__copy{
  min-width:0;
}
.home-hero__title{
  font-size:clamp(2.8rem,4.35vw,4rem);
  line-height:.96;
  letter-spacing:-.052em;
  max-width:none;
  width:max-content;
  white-space:nowrap;
}
.home-hero__title span{
  display:inline;
  color:#72819a;
  white-space:nowrap;
}
.home-hero__lead{
  max-width:58ch;
  font-size:clamp(1rem,1.25vw,1.12rem);
  line-height:1.68;
}
.home-profile{
  width:100%;
  max-width:none;
  padding:1.5rem;
  border-radius:22px;
}
.home-profile__name{font-size:clamp(1.85rem,2.4vw,2.35rem)}
.home-profile__meta{max-width:28ch}

@media(max-width:1180px){
  .home-hero__grid{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)}
  .home-hero__title{font-size:clamp(2.8rem,4.8vw,3.7rem)}
}
@media(max-width:900px){
  .home-hero__grid{grid-template-columns:1fr}
  .home-profile{max-width:720px}
  .home-hero__title{font-size:clamp(3rem,8vw,4rem)}
}
@media(max-width:760px){
  .header__inner{min-height:76px}
  .header__inner .burger{width:50px;height:50px}
  .header__inner .burger span{width:32px;height:3px}
  .header__inner .brand{font-size:2.45rem;gap:.7rem}
  .header__inner .brand__mark{width:50px;height:50px}
  .mobile-menu{padding-top:1rem}
  .mobile-menu__link{grid-template-columns:2.4rem minmax(0,1fr);min-height:72px;font-size:clamp(1.35rem,7vw,2rem)}
  .home-hero{padding-top:2.25rem}
  .home-hero__title{font-size:clamp(2.55rem,11vw,3.5rem);line-height:.95;width:auto;white-space:normal}
  .home-hero__title span{white-space:normal}
}

/* Final home title alignment: keep the headline on one line on desktop without overflow. */
.home-hero__title{
  font-size:clamp(2.65rem,3.75vw,4rem) !important;
  line-height:.96 !important;
  letter-spacing:-.052em !important;
  max-width:none !important;
  width:max-content !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
.home-hero__title span{
  display:inline !important;
  white-space:nowrap !important;
}
@media (max-width:1180px){
  .home-hero__title{font-size:clamp(2.45rem,4.1vw,3.5rem) !important;}
}
@media (max-width:900px){
  .home-hero__title{
    width:auto !important;
    max-width:100% !important;
    white-space:normal !important;
    font-size:clamp(2.55rem,10vw,3.8rem) !important;
  }
  .home-hero__title span{white-space:normal !important;}
}

/* === Final adjustment requested === */
/* Lower the profile card so the full headline remains readable. */
@media (min-width: 901px){
  .home-profile{
    margin-top: clamp(3.5rem, 6vw, 6rem) !important;
  }
  .home-hero__title{
    font-size: clamp(2.45rem, 3.05vw, 3.35rem) !important;
  }
}

/* Smaller, cleaner navigation overlay. */
.mobile-menu{
  padding-top: .75rem !important;
  padding-bottom: 1.75rem !important;
}
.mobile-menu__link{
  min-height: 70px !important;
  grid-template-columns: 2.55rem minmax(0,1fr) !important;
  gap: .7rem !important;
  padding: .55rem 0 !important;
  font-size: clamp(1.28rem, 2.25vw, 1.9rem) !important;
  letter-spacing: -.025em !important;
}
.mobile-menu__link .menu-index{
  font-size: .72rem !important;
}
.mobile-menu__foot{
  margin-top: 1rem !important;
  padding-top: .9rem !important;
  font-size: .9rem;
}
@media (max-width:760px){
  .mobile-menu{
    padding-top: .65rem !important;
  }
  .mobile-menu__link{
    min-height: 58px !important;
    grid-template-columns: 2rem minmax(0,1fr) !important;
    gap: .55rem !important;
    font-size: clamp(1.08rem, 6vw, 1.55rem) !important;
  }
  .mobile-menu__link .menu-index{
    font-size: .68rem !important;
  }
}

/* Correction mobile — Mentions légales : éviter tout débordement horizontal du titre. */
.legal-page{overflow-x:hidden}
.legal-title{max-width:100%;overflow-wrap:break-word;word-break:normal}
@media (max-width:640px){
  .legal-hero{padding-left:0;padding-right:0}
  .legal-title{
    font-size:clamp(2.35rem,11.5vw,3.75rem);
    line-height:.94;
    letter-spacing:-.045em;
    max-width:100%;
  }
  .legal-lead{font-size:1rem;line-height:1.6}
}

/* Final compact header: keep the same proportions everywhere, slightly smaller again. */
.header__inner{
  min-height:72px !important;
  gap:.8rem !important;
}
.header__inner .burger{
  width:44px !important;
  height:44px !important;
  gap:6px !important;
}
.header__inner .burger span{
  width:30px !important;
  height:3px !important;
}
.header__inner .brand{
  font-size:2rem !important;
  gap:.65rem !important;
}
.header__inner .brand__mark{
  width:44px !important;
  height:44px !important;
}
@media (max-width:760px){
  .header__inner{min-height:62px !important;gap:.65rem !important}
  .header__inner .burger{width:40px !important;height:40px !important}
  .header__inner .burger span{width:27px !important;height:3px !important}
  .header__inner .brand{font-size:1.72rem !important;gap:.55rem !important}
  .header__inner .brand__mark{width:40px !important;height:40px !important}
}


.footer-creators{display:flex;flex-wrap:wrap;gap:.45rem 1rem;align-items:center}
.footer-creator{color:#7a879a}
.footer-creator strong{color:#071238;font-weight:700}
.footer-creator a{color:#071238;font-weight:700;text-decoration:none}
.footer-creator a:hover{text-decoration:underline}
@media(max-width:640px){.footer-creators{align-items:flex-start;flex-direction:column;gap:.3rem}}

/* Global polish: prevent accidental horizontal overflow and keep cards readable */
html,body{max-width:100%;overflow-x:hidden}
.card,.home-profile,.network-card,.legal-card,.server-icon,.card__title,.card__desc{min-width:0}
.card__title{overflow-wrap:anywhere}
.home-hero__title{max-width:100%;overflow-wrap:anywhere}
.home-profile__role{max-width:100%}

/* ============================================================
   APPEARANCE BUTTON + BLACK THEME
   Shared between Public and Panel.
   ============================================================ */
.appearance-button{
  margin-left:auto;
  flex:0 0 auto;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:1px solid rgba(11,23,72,.08) !important;
  border-radius:50% !important;
  background:#fff !important;
  color:#0b0d12 !important;
  box-shadow:0 8px 22px rgba(11,23,72,.10) !important;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease;
}
.appearance-button:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(11,23,72,.14) !important}
.appearance-button:focus-visible{outline:3px solid rgba(77,129,255,.35);outline-offset:3px}
.appearance-button svg{width:25px;height:25px}
@media(max-width:760px){.appearance-button{width:44px;height:44px}.appearance-button svg{width:23px;height:23px}}

html[data-theme="dark"]{
  --beige:#07090d;
  --beige-soft:#0d1118;
  --white:#0f141b;
  --ink:#f5f7fb;
  --ink-soft:#aab4c3;
  --ink-faint:#7d8899;
  --line:rgba(218,227,240,.14);
  --line-soft:rgba(218,227,240,.08);
  --ux-bg:#07090d;
  --ux-card:#0f141b;
  --ux-ink:#f5f7fb;
  --ux-muted:#aab4c3;
  --ux-line:#26303d;
  --ux-line-soft:#1b2430;
  --uniform-bg:#07090d;
  --uniform-card:#0f141b;
  --uniform-line:#26303d;
  --uniform-line-soft:#1b2430;
  --uniform-ink:#f5f7fb;
  --uniform-muted:#aab4c3;
}
html[data-theme="dark"],html[data-theme="dark"] body{background:#07090d;color:#f5f7fb}
html[data-theme="dark"] .header{
  background:rgba(7,9,13,.92) !important;
  border-bottom-color:#1b2430 !important;
}
html[data-theme="dark"] .header.is-stuck{background:rgba(7,9,13,.9) !important;border-bottom-color:#26303d !important}
html[data-theme="dark"] .mobile-menu{background:#07090d !important}
html[data-theme="dark"] .footer{background:#0d1118 !important;border-top-color:#26303d !important}
html[data-theme="dark"] .section,
html[data-theme="dark"] .section.section--alt,
html[data-theme="dark"] .hero,
html[data-theme="dark"] #experience,
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .home-hero{background:#07090d !important}
html[data-theme="dark"] .home-profile,
html[data-theme="dark"] .home-highlight,
html[data-theme="dark"] .home-approach__card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .network-card,
html[data-theme="dark"] .experience-card,
html[data-theme="dark"] .stats,
html[data-theme="dark"] .notice{
  background:#0f141b !important;
  border-color:#26303d !important;
  color:#f5f7fb !important;
}
html[data-theme="dark"] .home-profile__divider,
html[data-theme="dark"] .home-profile__footer,
html[data-theme="dark"] .card__foot,
html[data-theme="dark"] .network-card__footer,
html[data-theme="dark"] .avis__author,
html[data-theme="dark"] .experience-card__footer{border-top-color:#1b2430 !important}
html[data-theme="dark"] .home-hero__title,
html[data-theme="dark"] .home-profile__name,
html[data-theme="dark"] .home-highlight__title,
html[data-theme="dark"] .home-approach__card h2,
html[data-theme="dark"] .section__title,
html[data-theme="dark"] .card__title,
html[data-theme="dark"] .card__quote,
html[data-theme="dark"] .network-card__title,
html[data-theme="dark"] .experience-card__title,
html[data-theme="dark"] .experience-card__join,
html[data-theme="dark"] .hero__title{color:#f5f7fb !important}
html[data-theme="dark"] .home-hero__title span,
html[data-theme="dark"] .section__lead,
html[data-theme="dark"] .home-hero__lead,
html[data-theme="dark"] .home-profile__meta,
html[data-theme="dark"] .home-highlight__text,
html[data-theme="dark"] .home-approach__card p,
html[data-theme="dark"] .card__desc,
html[data-theme="dark"] .card__date,
html[data-theme="dark"] .network-card__meta,
html[data-theme="dark"] .network-card__footer,
html[data-theme="dark"] .experience-card__date,
html[data-theme="dark"] .reviews-empty{color:#aab4c3 !important}
html[data-theme="dark"] .home-profile__role,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .network-card__pill,
html[data-theme="dark"] .network-card__icon,
html[data-theme="dark"] #experience .experience-card__role,
html[data-theme="dark"] #experience .experience-card__stat,
html[data-theme="dark"] .profile__tags li{
  background:#161d27 !important;
  color:#e7ecf3 !important;
  border-color:#2a3543 !important;
}
html[data-theme="dark"] .experience-card__role--owner,
html[data-theme="dark"] .pill--owner,
html[data-theme="dark"] .pill--founder{background:#f5f7fb !important;color:#07090d !important;border-color:#f5f7fb !important}
html[data-theme="dark"] .experience-card:hover,
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .network-card:hover,
html[data-theme="dark"] .home-profile:hover{box-shadow:0 18px 45px rgba(0,0,0,.28) !important;border-color:#344152 !important}
html[data-theme="dark"] .hero__actions .btn,
html[data-theme="dark"] .profile__btn,
html[data-theme="dark"] .home-hero__button{background:#f5f7fb !important;color:#07090d !important;border-color:#f5f7fb !important}
html[data-theme="dark"] .hero__actions .btn:hover,
html[data-theme="dark"] .profile__btn:hover,
html[data-theme="dark"] .home-hero__button:hover{color:#07090d !important}
html[data-theme="dark"] .home-hero__button--light{background:#0f141b !important;color:#f5f7fb !important;border-color:#344152 !important}
html[data-theme="dark"] .home-highlights__heading,
html[data-theme="dark"] .home-approach__heading,
html[data-theme="dark"] .experience-category__heading{color:#f5f7fb !important}
html[data-theme="dark"] .home-highlights__heading i,
html[data-theme="dark"] .home-approach__heading i,
html[data-theme="dark"] .home-hero__head::after,
html[data-theme="dark"] .section__head::after,
html[data-theme="dark"] .experience-category__heading i{background:#26303d !important}
html[data-theme="dark"] .appearance-button{border-color:#27313e !important;background:#f5f7fb !important;color:#07090d !important;box-shadow:0 8px 22px rgba(0,0,0,.32) !important}
html[data-theme="dark"] .header__inner .burger span{background:#f5f7fb !important}
html[data-theme="dark"] a{color:inherit}
/* Keep the appearance control on the far right, like the requested reference. */
.header__inner .appearance-button{order:3;margin-left:auto}

/* ===== Thème sombre : correctifs de lisibilité (accueil + pied de page) ===== */
html[data-theme="dark"] .home-hero__eyebrow,
html[data-theme="dark"] .hero__eyebrow span{color:#f5f7fb !important}
html[data-theme="dark"] .home-profile__divider{background:#1b2430 !important}
html[data-theme="dark"] .home-profile__label,
html[data-theme="dark"] .home-highlight__number{color:#8f9bac !important}
html[data-theme="dark"] .home-profile__footer{color:#aab4c3 !important;border-top-color:#1b2430 !important}
html[data-theme="dark"] .home-profile__footer a{color:#f5f7fb !important}
html[data-theme="dark"] .footer__bottom,
html[data-theme="dark"] .footer__bottom span{color:#8f9bac !important}
html[data-theme="dark"] .footer__bottom a{color:#f5f7fb !important}

/* ===== Thème sombre : correctifs de lisibilité (accueil + pied de page) ===== */
html[data-theme="dark"] .home-hero__eyebrow,
html[data-theme="dark"] .hero__eyebrow span{color:#f5f7fb !important}
html[data-theme="dark"] .home-profile__divider{background:#1b2430 !important}
html[data-theme="dark"] .home-profile__label,
html[data-theme="dark"] .home-highlight__number{color:#8f9bac !important}
html[data-theme="dark"] .home-profile__footer{color:#aab4c3 !important;border-top-color:#1b2430 !important}
html[data-theme="dark"] .home-profile__footer a{color:#f5f7fb !important}
html[data-theme="dark"] .footer__bottom,
html[data-theme="dark"] .footer__bottom span{color:#8f9bac !important}
html[data-theme="dark"] .footer__bottom a{color:#f5f7fb !important}

/* ===== Couleurs de boutons choisies dans le panel admin =====
   Les variables sont posées par js/theme.js ; sans personnalisation, rien ne change. */
html[data-custom-primary] .home-hero__button:not(.home-hero__button--light),
html[data-custom-primary] .hero__actions .btn,
html[data-custom-primary] .profile__btn{
  background:var(--btn-primary) !important;
  color:var(--btn-primary-text) !important;
  border-color:var(--btn-primary) !important;
}
html[data-custom-primary] .home-hero__button:not(.home-hero__button--light):hover{
  box-shadow:0 12px 26px color-mix(in srgb,var(--btn-primary) 38%,transparent);
}
html[data-custom-primary] .hero__actions .btn:hover,
html[data-custom-primary] .profile__btn:hover{color:var(--btn-primary) !important}
html[data-custom-secondary] .home-hero__button--light{
  background:var(--btn-secondary) !important;
  color:var(--btn-secondary-text) !important;
  border-color:var(--btn-secondary-border) !important;
}
html[data-custom-secondary] .home-hero__button--light:hover{
  box-shadow:0 12px 26px color-mix(in srgb,var(--btn-secondary-border) 40%,transparent);
}
html[data-custom-link] .card__link,
html[data-custom-link] .experience-card__join,
html[data-custom-link] #experience .experience-card__join,
html[data-custom-link] .home-profile__footer a,
html[data-custom-link] .network-card__footer span{
  color:var(--link-accent) !important;
}

/* =====================================================================
   EN-TÊTE + MENU — nouveau design (avatar rond | séparateur | nom,
   menu numéroté avec flèches, titre de page en haut à gauche)
   Bloc final : il remplace tous les réglages précédents de l'en-tête et du menu.
   ===================================================================== */
@font-face{
  font-family:"Montserrat Daruma";
  src:url("/assets/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
}
:root{
  --nav-font:"Montserrat Daruma","Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;
  --nav-ink:#0b0f1a;
  --nav-muted:#6b7385;
  --nav-line:#e3e6ec;
  --nav-sep:#c9ccd4;
  --header-h:72px;
}

/* ---- En-tête ---- */
html body .header{
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--nav-line);
  -webkit-backdrop-filter:saturate(1.2) blur(12px);
  backdrop-filter:saturate(1.2) blur(12px);
}
html body .header__inner{
  min-height:var(--header-h);
  display:flex;align-items:center;justify-content:flex-start;gap:0;
}

/* Burger : 3 traits fins */
html body .header__inner .burger{
  order:1;flex:0 0 auto;
  width:44px;height:44px;margin-left:-10px;padding:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;
  display:flex !important;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  cursor:pointer;
}
html body .header__inner .burger span{
  display:block;width:24px;height:2px;margin:0 !important;
  background:var(--nav-ink);border-radius:2px;
  transition:transform .3s var(--ease),opacity .2s var(--ease);
}
html body .header__inner .burger:focus-visible{outline:2px solid var(--nav-ink);outline-offset:2px;border-radius:8px}

/* Marque : avatar rond | séparateur | nom */
html body .header__inner .brand{
  order:2;margin-left:13px;
  display:inline-flex;align-items:center;gap:14px;
  font-family:var(--nav-font);font-weight:900;
  font-size:22px;line-height:1;letter-spacing:-.01em;
  color:var(--nav-ink);
}
html body .header__inner .brand__mark{
  width:34px;height:34px;border-radius:50%;object-fit:cover;
  border:1px solid #d5d8df;background:#fff;
}
html body .header__inner .brand__name{
  display:inline-flex;align-items:center;gap:14px;
  font-family:var(--nav-font);font-weight:900;font-size:inherit;letter-spacing:-.01em;color:inherit;
}
html body .header__inner .brand__name::before{
  content:"";display:block;width:1px;height:28px;background:var(--nav-sep);
}

/* ---- Menu ouvert : titre de la page à gauche, burger à droite ---- */
html body .header__inner .brand::before{
  content:none;
}
body:has(.mobile-menu.is-open) .header{border-bottom-color:transparent}
body:has(.mobile-menu.is-open) .header__inner .brand{order:1;margin-left:0}
body:has(.mobile-menu.is-open) .header__inner .brand__mark,
body:has(.mobile-menu.is-open) .header__inner .brand__name{display:none}
body:has(.mobile-menu.is-open) .header__inner .brand::before{
  content:attr(data-page);
  font-family:var(--nav-font);font-weight:900;font-size:18px;letter-spacing:.01em;text-transform:uppercase;color:var(--nav-ink);
}
html body .header__inner .burger.is-open{order:2;margin-left:auto;margin-right:-10px;background:transparent;border-color:transparent}
html body .header__inner .burger.is-open span{background:var(--nav-ink)}
html body .header__inner .burger.is-open span:nth-child(1){transform:translateY(2px)}
html body .header__inner .burger.is-open span:nth-child(2){opacity:0;transform:none}
html body .header__inner .burger.is-open span:nth-child(3){transform:translateY(-2px)}

/* ---- Panneau du menu ---- */
html body .mobile-menu{
  top:var(--mobile-menu-top,var(--header-h));
  background:#fff;
  padding:8px var(--gutter) 40px !important;
}
html body .mobile-menu__nav{max-width:calc(var(--container) - 2 * var(--gutter));width:100%;margin:0 auto;display:flex;flex-direction:column;gap:0}
html body .mobile-menu .mobile-menu__link{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center;
  min-height:55px !important;padding:0 !important;gap:0 !important;
  border-top:0;border-bottom:1px solid var(--nav-line);
  font-family:var(--nav-font);font-weight:900;
  font-size:clamp(24px,3.2vw,40px) !important;line-height:1.1;letter-spacing:-.015em !important;
  color:var(--nav-ink);
  transition:color .2s var(--ease);
}
html body .mobile-menu .mobile-menu__link:last-child{border-bottom:1px solid var(--nav-line)}
html body .mobile-menu .mobile-menu__link:hover,
html body .mobile-menu .mobile-menu__link.is-active{color:var(--nav-ink)}
html body .mobile-menu .mobile-menu__link .menu-index{
  display:flex;align-items:center;
  width:30px;height:26px;margin-right:16px;padding-right:0;
  border-right:1px solid var(--nav-sep);
  font-family:var(--font-body);font-size:12px !important;font-weight:500;letter-spacing:.1em;
  font-variant-numeric:tabular-nums;color:var(--nav-muted);
}
html body .mobile-menu .mobile-menu__link.is-active .menu-index{color:var(--nav-muted)}
html body .mobile-menu .mobile-menu__link::after{
  content:"";width:18px;height:10px;margin-left:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10' fill='none' stroke='%234a5164' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h16M13 1l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .25s var(--ease);
}
html body .mobile-menu .mobile-menu__link:hover::after{transform:translateX(4px)}

/* Liens réseaux : séparés par de fines barres */
html body .mobile-menu .mobile-menu__foot{
  max-width:calc(var(--container) - 2 * var(--gutter));width:100%;margin:0 auto !important;padding-top:22px !important;border-top:0;
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;
  font-family:var(--font-body);font-size:clamp(13px,3.7vw,15px) !important;font-weight:500;color:var(--nav-muted);
}
html body .mobile-menu .mobile-menu__foot a{position:relative;padding:0 13px;white-space:nowrap;color:var(--nav-muted)}
html body .mobile-menu .mobile-menu__foot a:first-child{padding-left:0}
html body .mobile-menu .mobile-menu__foot a + a::before{
  content:"";position:absolute;left:0;top:50%;width:1px;height:14px;background:var(--nav-sep);transform:translateY(-50%);
}
html body .mobile-menu .mobile-menu__foot a:hover{color:var(--nav-ink)}

@media(min-width:761px){
  :root{--header-h:80px}
  html body .header__inner .brand{font-size:24px}
  html body .mobile-menu .mobile-menu__link{min-height:72px !important}
}

/* Page de maintenance (activable/désactivable depuis le panel admin).
   Toutes les couleurs passent par des variables --mt-* posées par js/maintenance-page.js
   depuis Panel admin → Maintenance ; les valeurs de repli sont l'apparence d'origine. */
.maintenance-page{background:var(--mt-bg,var(--uniform-bg))}
.maintenance{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:clamp(1.75rem,5vw,3rem)}
.maintenance[data-ready="false"] .maintenance__wrap{opacity:0}
.maintenance[data-ready="true"] .maintenance__wrap{opacity:1;transition:opacity .25s var(--ease)}
.maintenance__wrap{width:100%;max-width:640px;display:flex;flex-direction:column;align-items:center}

.maintenance__header{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;margin-bottom:clamp(1.5rem,4vw,2.25rem)}
.maintenance__header-mark{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0}
.maintenance__header-name{font-family:"Ginto Nord",Inter,sans-serif;font-weight:700;font-size:1.15rem;color:var(--mt-header,var(--uniform-ink))}

.maintenance__card{
  width:100%;text-align:center;background:var(--mt-card,#353368);border:1px solid var(--mt-border,rgba(255,255,255,.08));border-radius:var(--mt-radius,28px);
  box-shadow:0 40px 70px -35px rgba(30,28,79,.55),0 2px 0 rgba(255,255,255,.04) inset;
  padding:clamp(2.25rem,6vw,3.25rem) clamp(1.5rem,5vw,2.75rem);
}
.maintenance__badge{display:inline-flex;align-items:center;gap:.5rem;font-size:.78rem;font-weight:700;letter-spacing:.02em;color:var(--mt-badge,#e9c78a);background:color-mix(in srgb,var(--mt-badge,#e9c78a) 14%,transparent);border-radius:999px;padding:7px 16px 7px 12px;margin:0 0 20px}
.maintenance__badge-dot{width:7px;height:7px;border-radius:50%;background:var(--mt-badge,#e9c78a);box-shadow:0 0 0 4px color-mix(in srgb,var(--mt-badge,#e9c78a) 18%,transparent)}
.maintenance__title{font-family:"Ginto Nord",Inter,sans-serif;font-weight:700;font-size:clamp(2.1rem,5.5vw,2.85rem);line-height:1.04;letter-spacing:-.02em;color:var(--mt-title,#f5f3fb);margin:0 0 14px}
.maintenance__title span{color:var(--mt-highlight,#a7ade9)}
.maintenance__lead{color:var(--mt-text,#c1c3e6);font-size:1.02rem;line-height:1.62;margin:0 0 32px;max-width:44ch;margin-inline:auto;white-space:pre-line}
.maintenance__lead:empty{display:none}
.maintenance__button{display:inline-flex;align-items:center;justify-content:center;margin:0 0 24px;padding:.75rem 1.4rem;border-radius:999px;font-weight:700;font-size:.95rem;text-decoration:none;background:var(--mt-highlight,#a7ade9);color:var(--mt-card,#353368);transition:transform .2s var(--ease),opacity .2s var(--ease)}
.maintenance__button:hover{transform:translateY(-1px);opacity:.92}
.maintenance__button[hidden],.maintenance__badge[hidden],.maintenance__header[hidden],.maintenance__footer[hidden]{display:none}

.maintenance .network-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.maintenance .network-card{
  position:relative;min-height:0;background:color-mix(in srgb,var(--mt-title,#f5f3fb) 5%,transparent);border:1px solid color-mix(in srgb,var(--mt-title,#f5f3fb) 10%,transparent);
  border-radius:16px;padding:1.1rem 1.2rem;transition:background .25s var(--ease),border-color .25s var(--ease);
}
.maintenance .network-card:hover{transform:none;background:color-mix(in srgb,var(--mt-title,#f5f3fb) 9%,transparent);border-color:color-mix(in srgb,var(--mt-title,#f5f3fb) 18%,transparent);box-shadow:none}
.maintenance .network-card__top{display:block}
.maintenance .network-card__identity{gap:.7rem}
.maintenance .network-card__icon{width:38px;height:38px;border-radius:10px;background:color-mix(in srgb,var(--mt-title,#f5f3fb) 9%,transparent);border-color:transparent;color:var(--mt-highlight,#c7cbf5)}
.maintenance .network-card__icon--discord{color:var(--mt-highlight,#8b90f0)}
.maintenance .network-card__icon svg{width:20px;height:20px}
.maintenance .network-card__title{color:var(--mt-title,#f5f3fb);font-size:1rem}
.maintenance .network-card__meta{color:var(--mt-text,#a5a8d6);font-size:.82rem}
.maintenance .network-card__pill{display:none}
.maintenance .network-card__footer{position:absolute;top:14px;right:14px;margin:0;padding:0;border:0;color:var(--mt-text,#a5a8d6)}
.maintenance .network-card__footer span:first-child{display:none}
.maintenance .network-card__footer span:last-child{color:var(--mt-text,#a5a8d6);font-size:1rem;transition:color .2s var(--ease)}
.maintenance .network-card:hover .network-card__footer span:last-child{color:var(--mt-title,#f5f3fb)}

.maintenance__footer{margin-top:clamp(1.5rem,4vw,2rem);color:var(--mt-footer,var(--uniform-muted));font-size:.85rem;text-align:center}

/* ===== Thème sombre : navigation ===== */
html[data-theme="dark"]{--nav-ink:#f5f7fb;--nav-muted:#aab4c3;--nav-line:#26303d;--nav-sep:#3a4656}
html[data-theme="dark"] body .header__inner .brand__mark{border-color:#26303d;background:#0f141b}

/* ===== Thème sombre : pages aux styles intégrés (mentions légales, états vides) ===== */
html[data-theme="dark"] .legal-page{background:#07090d !important;color:#f5f7fb !important}
html[data-theme="dark"] .legal-eyebrow,
html[data-theme="dark"] .legal-title,
html[data-theme="dark"] .legal-card h2,
html[data-theme="dark"] .legal-card a{color:#f5f7fb !important}
html[data-theme="dark"] .legal-head::after{background:#26303d !important}
html[data-theme="dark"] .legal-lead,
html[data-theme="dark"] .legal-card p,
html[data-theme="dark"] .legal-card ul{color:#aab4c3 !important}
html[data-theme="dark"] .legal-card{background:#0f141b !important;border-color:#26303d !important}
html[data-theme="dark"] .legal-card:hover{border-color:#3a4656 !important;box-shadow:0 14px 38px rgba(0,0,0,.45) !important}
html[data-theme="dark"] .legal-card__number{color:#7d8899 !important}
html[data-theme="dark"] .legal-note{border-top-color:#26303d !important;color:#7d8899 !important}
html[data-theme="dark"] .experience-empty{background:#0f141b !important;color:#aab4c3 !important;border:1px solid #26303d !important}
