/* ==========================================================================
   Cosmobilis — refonte "Apple style"
   Restyle complet des classes existantes (header, sections xd-*, footer).
   Remplace main.css. Pas de jQuery/GSAP : interactions en vanilla (modern.js).
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --navy: #162447;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-link: #0066cc;
  --hairline: #d2d2d7;
  --xd-light-blue: #2997ff; /* conservé : référencé en inline dans le markup actus */

  --maxw: 980px;
  --maxw-wide: 1180px;
  --radius: 22px;
  --radius-lg: 28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --nav-h: 48px;
}

/* --- Reset léger --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Conteneur de section commun */
.xd-section-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* Espacement vertical des sections */
main > section {
  padding: clamp(64px, 10vw, 130px) 0;
}

/* ==========================================================================
   Header — barre fine "frosted glass" sticky
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-content {
  height: var(--nav-h);
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 38px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.header-content .logo svg {
  height: 22px;
  width: auto;
}
.header-content .logo svg path {
  fill: var(--ink);
}
.header-content .navbar {
  flex: 1;
}
.header-content .navbar > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-content .navbar > ul > li {
  position: relative;
}
.liennav {
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.liennav:hover {
  opacity: 1;
}

/* Sous-menu (dropdown au hover, CSS only) */
.ssnav {
  position: absolute;
  top: calc(var(--nav-h) - 4px);
  left: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.header-content .navbar > ul > li:hover .ssnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ssnav a {
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 9px;
  transition: background 0.18s ease;
}
.ssnav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Header mobile (caché en desktop) */
.header-mobile,
.navbar-mobile {
  display: none;
}

/* ==========================================================================
   Hero — texte centré, headline surdimensionné (signature)
   ========================================================================== */
.xd-hero-global {
  position: relative;
  background: var(--bg);
  text-align: center;
  overflow: hidden;
  padding-top: clamp(70px, 11vw, 130px);
}
.xd-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.xd-hero-content {
  max-width: 820px;
}
.xd-hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.xd-hero-title {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.xd-hero-desc {
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.38;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 22px auto 0;
}
.xd-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
}
.xd-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;
  transition: background 0.2s ease;
}
.xd-hero-btn-primary:hover {
  background: var(--blue-hover);
}
.xd-hero-arrow {
  transition: transform 0.2s ease;
}
.xd-hero-btn-primary:hover .xd-hero-arrow {
  transform: translateX(3px);
}
.xd-hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  color: var(--blue-link);
}
.xd-hero-btn-ghost::after {
  content: "\203A";
  margin-left: 5px;
  font-size: 19px;
  transition: transform 0.2s ease;
}
.xd-hero-btn-ghost:hover::after {
  transform: translateX(3px);
}
/* Motif décoratif discret en fond */
.xd-hero-motif {
  position: absolute;
  top: 50%;
  right: -12%;
  z-index: 1;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
  width: 60%;
  max-width: 760px;
}
.xd-hero-motif img {
  width: 100%;
}

/* ==========================================================================
   Activités — intro + chiffres clés (gros chiffres)
   ========================================================================== */
.xd-activites-home {
  background: var(--bg-alt);
  text-align: center;
}
.xd-activites-header {
  max-width: 820px;
  margin: 0 auto;
}
.xd-activites-title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.xd-activites-desc {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 22px;
}
.xd-chiffres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 7vw, 80px);
}
.xd-chiffre-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.xd-nbr {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}
.xd-chiffre-label {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 180px;
}

/* ==========================================================================
   Engagements — grille bento, cartes arrondies
   ========================================================================== */
.xd-engagements-home {
  background: var(--bg);
}
.xd-title-center {
  text-align: center;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.xd-engagements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.xd-engagement-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.xd-engagement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}
.xd-engagement-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.xd-engagement-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.xd-engagement-card:hover .xd-engagement-img img {
  transform: scale(1.04);
}
.xd-engagement-card h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  padding: 26px 26px 0;
}
.xd-engagement-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 0 26px 30px;
}

/* ==========================================================================
   Communiqués — slider horizontal de cartes
   ========================================================================== */
.xd-actus-home {
  background: var(--bg-alt);
}
.xd-actus-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.xd-actus-title-group h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.xd-actus-subtitle {
  font-size: 17px;
  color: var(--blue-link) !important;
  margin-top: 8px;
}
.xd-actus-slider {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(22px, calc((100vw - var(--maxw-wide)) / 2 + 22px));
  margin-top: 36px;
  scrollbar-width: none;
}
.xd-actus-slider::-webkit-scrollbar {
  display: none;
}
.xd-actu-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.xd-actu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}
.xd-actu-card-content {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
}
.xd-pc-date {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--blue) !important;
}
.xd-actu-titre {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 12px;
}
.xd-actu-resume {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.xd-pc-download {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-link) !important;
  transition: opacity 0.2s ease;
}
.xd-pc-download:hover {
  opacity: 0.7;
}
.xd-actus-nav {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 0 22px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.xd-nav-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.xd-nav-arrow:hover {
  background: rgba(0, 0, 0, 0.1);
}
.xd-nav-arrow svg path {
  stroke: var(--navy);
}

/* ==========================================================================
   Acteurs — grille de logos, niveaux de gris -> couleur au hover
   ========================================================================== */
.xd-acteurs-home {
  background: var(--bg);
  text-align: center;
}
.xd-acteurs-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.xd-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}
.xd-logos-grid li {
  background: var(--bg-alt);
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.xd-logos-grid li:hover {
  transform: translateY(-4px);
  background: #ededf0;
}
.xd-logos-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 22px;
}
.xd-logos-grid img {
  max-height: 42px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.xd-logos-grid li:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ==========================================================================
   Footer — fond clair, petit texte gris, colonnes (style Apple)
   ========================================================================== */
.xd-footer {
  background: var(--bg-alt);
  font-size: 12px;
  color: var(--ink-soft);
  padding: 40px 0 30px;
}
.xd-footer-content {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 22px;
}
.xd-footer-top-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.xd-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.xd-footer-logo {
  height: 26px;
  width: auto;
}
.xd-footer-logo {
  filter: brightness(0) saturate(100%);
  opacity: 0.85;
}
.xd-footer-contacts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}
.xd-address-mobile {
  display: none;
}
.xd-fc-link {
  color: var(--blue-link);
}
.xd-fc-link:hover {
  text-decoration: underline;
}
.xd-footer-social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.xd-footer-social-icons svg {
  width: 22px;
  height: 22px;
}
.xd-footer-social-icons svg path {
  fill: var(--ink-soft);
}
.xd-footer-social-icons a:hover svg path {
  fill: var(--ink);
}
.xd-footer-sep,
.xd-footer-sep-light {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 26px 0;
}
.xd-footer-nav-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.xd-footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.xd-footer-nav-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.xd-footer-nav-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.xd-footer-legal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.xd-footer-legal-links {
  display: flex;
  gap: 22px;
}
.xd-footer-legal-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.xd-marginb8 {
  margin-bottom: 8px;
}
.xd-marginb32 {
  margin-bottom: 32px;
}
.xd-marginb40 {
  margin-bottom: 40px;
}
.txtbold {
  font-weight: 600;
}

/* ==========================================================================
   Reveal au scroll (activé seulement si JS — voir Layout + modern.js)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .xd-chiffres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xd-engagements-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
  .xd-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .xd-footer-nav-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 834px) {
  /* Bascule header desktop -> mobile */
  .header-content {
    display: none;
  }
  .header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .header-mobile .logo svg {
    height: 22px;
  }
  .header-mobile .logo svg path {
    fill: var(--ink);
  }
  .header-mobile .navbar svg path {
    stroke: var(--ink);
  }
  .header-mobile .close {
    display: none;
  }

  /* Drawer plein écran */
  .navbar-mobile {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #ffffff;
    padding: 80px 28px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .navbar-mobile.open {
    transform: translateX(0);
  }
  .navbar-mobile .pop-langue,
  .navbar-mobile .pop-acces,
  .navbar-mobile .choix-site {
    display: none; /* fonctions langue/accessibilité legacy retirées de la refonte */
  }
  .content-navbar-mobile > ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .content-navbar-mobile > ul > li {
    border-bottom: 1px solid var(--hairline);
    padding: 6px 0;
  }
  .mainlink {
    display: block;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
    padding: 12px 0;
  }
  .sublink {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
  }
  .sublink a {
    font-size: 16px;
    color: var(--ink-soft);
    padding: 7px 0;
  }
  /* Bouton fermeture flottant dans le drawer */
  .navbar-mobile-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .navbar-mobile-close::before,
  .navbar-mobile-close::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--ink);
  }
  .navbar-mobile-close::before {
    transform: rotate(45deg);
  }
  .navbar-mobile-close::after {
    transform: rotate(-45deg);
  }

  .xd-actus-card,
  .xd-actu-card {
    flex-basis: 300px;
  }
}

@media (max-width: 560px) {
  .xd-chiffres-grid {
    grid-template-columns: 1fr;
  }
  .xd-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xd-footer-top-row {
    flex-direction: column;
  }
  .xd-footer-contacts-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  .xd-footer-nav-row {
    grid-template-columns: 1fr;
  }
  .xd-footer-legal-row {
    flex-direction: column;
  }
  .xd-actus-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   Accessibilité — police dyslexie, interlignage, panneau flottant
   ========================================================================== */
@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Regular.woff2") format("woff2"),
    url("../fonts/OpenDyslexic-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("../fonts/OpenDyslexic-Bold.woff2") format("woff2"),
    url("../fonts/OpenDyslexic-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* Préférences appliquées sur <html> (persistées en localStorage). */
html.a11y-dyslexia body {
  font-family: "OpenDyslexic", var(--font);
}
html.a11y-spacing body {
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
}
html.a11y-spacing .xd-hero-title,
html.a11y-spacing .xd-activites-title,
html.a11y-spacing .xd-title-center,
html.a11y-spacing .xd-actu-titre {
  line-height: 1.3;
}

/* Bouton flottant */
.a11y {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
}
.a11y-fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
.a11y-fab:hover {
  transform: scale(1.06);
  background: #1f3160;
}
.a11y-fab:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Panneau */
.a11y-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 290px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.a11y-panel[hidden] {
  display: none;
}
.a11y-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

/* Switch */
.a11y-switch {
  position: relative;
  flex: 0 0 auto;
}
.a11y-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.a11y-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d2d2d7;
  transition: background 0.2s ease;
}
.a11y-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.a11y-switch input:checked + .a11y-track {
  background: var(--blue);
}
.a11y-switch input:checked + .a11y-track::after {
  transform: translateX(18px);
}
.a11y-switch input:focus-visible + .a11y-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Langue (segmented control) */
.a11y-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}
.a11y-seg {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 3px;
}
.a11y-seg a {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.a11y-seg a.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
