/* ==========================================================================
   M& nos particularités — metnosparticularites.fr
   Feuille de style statique (design « Le Spectre », palette calibrée logo)
   ========================================================================== */

/* --- Polices auto-hébergées ------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* OpenDyslexic : chargée uniquement quand le mode « police dyslexie » du widget est activé */
@font-face { font-family: "OpenDyslexic"; src: url("/fonts/opendyslexic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OpenDyslexic"; src: url("/fonts/opendyslexic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* --- Palette & bases ---------------------------------------------------- */
:root {
  --encre: #172330;
  --papier: #FDFBF5;
  --creme: #F5E7C8;
  --peche: #FDCFA6;
  --corail: #E89A6E;
  --terracotta: #B17E67;
  --sauge: #ACCCD9;
  --ciel: #C9DEE6;
  --azur: #80CAFF;
  --bordeaux: #5A3839;
  --border: color-mix(in oklab, var(--encre) 12%, transparent);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;

  font-size: 18px;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
p { max-width: 70ch; margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
img { max-width: 100%; height: auto; }
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--bordeaux); color: var(--papier); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Utilitaires --------------------------------------------------------- */
.container-editorial { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }

.h-display-xl { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.025em; }
.h-display-lg { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; }
.h-display-md { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.15; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.75rem;
}

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.btn-primary { background: var(--bordeaux); color: var(--papier); border: 2px solid var(--bordeaux); }
.btn-primary:hover { background: var(--encre); border-color: var(--encre); }
.btn-outline { background: transparent; color: var(--encre); border: 2px solid var(--encre); }
.btn-outline:hover { background: var(--encre); color: var(--papier); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 640px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn-primary, .btn-group .btn-outline { width: 100%; }
}

/* Surfaces teintées */
.surface-peche      { background: color-mix(in oklab, var(--peche) 30%, var(--papier)); }
.surface-creme      { background: color-mix(in oklab, var(--creme) 45%, var(--papier)); }
.surface-corail     { background: color-mix(in oklab, var(--corail) 18%, var(--papier)); }
.surface-sauge      { background: color-mix(in oklab, var(--sauge) 28%, var(--papier)); }
.surface-ciel       { background: color-mix(in oklab, var(--ciel) 35%, var(--papier)); }
.surface-terracotta { background: color-mix(in oklab, var(--terracotta) 22%, var(--papier)); }
.surface-azur       { background: color-mix(in oklab, var(--azur) 35%, var(--papier)); }
.surface-azur-full  { background: var(--azur); }

/* Séparateur Facets (SVG inline) */
.facets { display: block; width: 100%; height: 56px; }
.facets.flip { transform: scaleY(-1); }

/* --- Header --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0; left: 1rem;
  z-index: 100;
  background: var(--terracotta);
  color: var(--papier);
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--papier);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo-chip {
  display: inline-flex;
  background: var(--azur);
  border-radius: 10px;
  padding: 4px;
}
.logo-chip img { display: block; object-fit: contain; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--encre);
}
.wordmark.light { color: var(--papier); }

.mnp-nav-desktop { display: none; }
.mnp-nav-desktop ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.mnp-nav-desktop a {
  font-family: var(--font-display);
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}
.mnp-nav-desktop a[aria-current="page"] { border-bottom-color: var(--terracotta); }

.mnp-burger {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--encre);
  border-radius: 999px;
  color: var(--encre);
  cursor: pointer;
}
.mnp-burger svg { display: block; }
.mnp-burger .icon-close { display: none; }
.mnp-burger[aria-expanded="true"] .icon-menu { display: none; }
.mnp-burger[aria-expanded="true"] .icon-close { display: block; }

#mnp-mobile-nav { display: none; border-top: 1px solid var(--border); }
#mnp-mobile-nav.open { display: block; }
#mnp-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
#mnp-mobile-nav a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-left: 4px solid transparent;
}
#mnp-mobile-nav a[aria-current="page"] { border-left-color: var(--terracotta); }
#mnp-mobile-nav .social {
  border-top: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
}
#mnp-mobile-nav .social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
}
@media (min-width: 900px) {
  .mnp-nav-desktop { display: block; }
  .mnp-burger, #mnp-mobile-nav { display: none !important; }
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--encre);
  color: var(--papier);
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
}
.site-footer .grid {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .baseline {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(253, 251, 245, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
  opacity: 0.75;
}
.site-footer .baseline p { margin: 0; }

/* --- Accueil --------------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.hero-title { order: 1; }
.hero-visual { order: 2; }
.hero-body { order: 3; }
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 3rem;
    row-gap: 1.5rem;
  }
  .hero-title { grid-column: 1; grid-row: 1; }
  .hero-visual { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hero-body { grid-column: 1; grid-row: 2; }
}
.hero-visual .logo-square {
  background: var(--azur);
  border-radius: 2rem;
  aspect-ratio: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}
.hero-accroche { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.hero-body > p:not(.hero-accroche) { font-size: 1.05rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stats-grid .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--encre);
}
.stats-grid p { margin: 0.5rem auto 0; }

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.mission-card {
  display: block;
  padding: 2rem;
  border-radius: 1.25rem;
  border-top: 6px solid var(--terracotta);
  transition: transform 180ms ease;
}
.mission-card:hover { transform: translateY(-4px); }
.mission-card .more { font-weight: 700; }
.mission-card p { margin-bottom: 1rem; }

.quote-section blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 6px solid var(--peche);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}
.quote-section footer { margin-top: 1rem; }

.event-card {
  border-radius: 1.5rem;
  border-left: 8px solid var(--terracotta);
  padding: 2rem;
}
.event-date { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.event-tarif { font-weight: 700; }
.event-cta { font-family: var(--font-display); font-weight: 700; color: var(--terracotta); }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}
.press-card {
  position: relative;
  overflow: hidden;
  background: var(--papier);
  border-radius: 1.25rem;
  padding: 2rem;
  isolation: isolate;
}
.press-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}
.press-card .more { color: var(--terracotta); font-weight: 700; }

.partners { border-top: 1px solid var(--border); }
.partners .inner { max-width: 980px; margin-inline: auto; text-align: center; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}
.partner-group {
  background: var(--papier);
  border-radius: 1.25rem;
  border-top: 5px solid var(--azur);
  padding: 1.5rem;
}
.partner-group ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.partner-group .pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* --- Pages internes --------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: start;
}
figure { margin: 0; }
figure img { border-radius: 1.5rem; object-fit: cover; width: 100%; }
figcaption { font-style: italic; font-size: 0.9rem; margin-top: 0.5rem; }
.ratio-4-3 img { aspect-ratio: 4 / 3; }
.ratio-4-5 img { aspect-ratio: 4 / 5; }

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.valeur-pill {
  border-radius: 1rem;
  border-top: 5px solid var(--terracotta);
  padding: 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.check-list, .bullet-list { list-style: none; padding: 0; }
.check-list li, .bullet-list li { margin-bottom: 0.6rem; padding-left: 1.5rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }
.bullet-list li::before { content: "•"; position: absolute; left: 0; }

.banner { text-align: center; }
.banner p { max-width: none; margin: 0; }

.atelier-cards, .sensib-blocks { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.atelier-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.atelier-card {
  background: var(--papier);
  border-radius: 1rem;
  border-top: 4px solid var(--sauge);
  padding: 1.5rem;
}
.sensib-block {
  background: var(--papier);
  border-left: 5px solid var(--ciel);
  border-radius: 0 1rem 1rem 0;
  padding: 1.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  box-shadow: 0 10px 30px color-mix(in oklab, var(--encre) 18%, transparent);
}

/* Agenda */
.agenda-card {
  background: var(--papier);
  border-top: 8px solid var(--corail);
  border-radius: 1.5rem;
  padding: 2rem;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--encre);
  margin-bottom: 1rem;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.years-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.year-card {
  background: color-mix(in oklab, var(--azur) 12%, var(--papier));
  border-top: 5px solid var(--azur);
  border-radius: 1rem;
  padding: 1.5rem;
}
.year-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 0; }
.year-card dt { font-weight: 700; }
.year-card dd { margin: 0; }

.atelier-table-desktop { display: block; overflow-x: auto; }
.atelier-cards-mobile { display: none !important; }
.atelier-table-desktop table { border-collapse: collapse; width: 100%; background: var(--papier); border-radius: 1rem; overflow: hidden; }
.atelier-table-desktop th {
  background: var(--sauge);
  color: var(--papier);
  font-family: var(--font-display);
  text-align: left;
  padding: 0.85rem 1.25rem;
}
.atelier-table-desktop td { padding: 0.85rem 1.25rem; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .atelier-table-desktop { display: none !important; }
  .atelier-cards-mobile { display: grid !important; gap: 1rem; list-style: none; padding: 0; }
  .atelier-card-mobile {
    background: var(--papier);
    border-left: 5px solid var(--sauge);
    border-radius: 0 1rem 1rem 0;
    padding: 1.25rem;
  }
}
.info-note {
  background: var(--papier);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem;
}

/* Rejoindre */
.join-blocks { display: grid; gap: 1.5rem; }
.join-block {
  background: var(--papier);
  border-radius: 1.25rem;
  border-left: 6px solid var(--terracotta);
  padding: 2rem;
}

/* Contact */
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.contact-list .eyebrow { margin-bottom: 0.25rem; }
.contact-form { display: grid; gap: 1.25rem; }
.contact-form label { font-family: var(--font-display); font-weight: 700; display: block; margin-bottom: 0.4rem; }
.contact-form .req { color: var(--terracotta); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--encre);
  border-radius: 0.6rem;
  min-height: 48px;
  font: inherit;
  background: var(--papier);
  color: var(--encre);
}
.contact-form textarea { resize: vertical; }
.contact-form .field.error input,
.contact-form .field.error textarea { border-color: var(--bordeaux); }
.contact-form .field-error { color: var(--bordeaux); font-weight: 700; margin: 0.35rem 0 0; }
.contact-form .rgpd { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-form .rgpd input { accent-color: var(--terracotta); width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex-shrink: 0; }
.contact-form .rgpd label { font-family: var(--font-body); font-weight: 400; margin: 0; flex: 1; min-width: 0; }
.contact-form .rgpd a { text-decoration: underline; }
.form-status { border-radius: 0.75rem; padding: 1rem 1.25rem; font-weight: 700; }
.form-status.ok { background: color-mix(in oklab, var(--sauge) 35%, var(--papier)); }
.form-status.ko { background: color-mix(in oklab, var(--terracotta) 22%, var(--papier)); color: var(--bordeaux); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mdph-note { background: color-mix(in oklab, var(--creme) 45%, var(--papier)); border-radius: 0.75rem; padding: 1.25rem; margin-top: 2rem; }

/* Pages légales */
.legal { max-width: 780px; }
.legal h2 { margin-top: 2.5rem; }

/* ==========================================================================
   Widget accessibilité (skill a11y-widget) — adapté à la charte « Le Spectre »
   ========================================================================== */
.a11y-btn {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 9999px;
  border: 3px solid var(--papier);
  background: var(--terracotta); color: var(--papier);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -10px color-mix(in oklab, var(--encre) 60%, transparent);
  cursor: pointer;
}
.a11y-btn:hover { background: var(--bordeaux); }
.a11y-panel {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 60;
  width: 17rem; max-width: calc(100vw - 2.5rem);
  background: var(--papier); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1rem;
  box-shadow: 0 16px 40px -16px color-mix(in oklab, var(--encre) 50%, transparent);
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.a11y-panel label {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0;
  color: var(--encre); cursor: pointer; font-size: .95rem;
  font-family: var(--font-body); font-weight: 400; margin: 0;
}
.a11y-panel input[type="checkbox"] { accent-color: var(--terracotta); width: 1.1rem; height: 1.1rem; }
.a11y-panel .a11y-reset {
  width: 100%; margin-top: .7rem; padding: .5rem; font-size: .9rem;
  display: inline-flex; justify-content: center; align-items: center;
  background: transparent; border: 2px solid var(--encre); border-radius: .6rem;
  color: var(--encre); font-family: var(--font-display); font-weight: 600; cursor: pointer;
}
.a11y-panel .a11y-reset:hover { background: var(--encre); color: var(--papier); }

/* ---- Agrandir le texte (tout le site est en rem : on agrandit la racine) ---- */
html.a11y-larger { font-size: 21px; }

/* ---- Espacer le texte (confort de lecture dys/TDAH) ---- */
html.a11y-spacing body { line-height: 1.9; letter-spacing: .02em; word-spacing: .08em; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: .55rem; }

/* ---- Souligner les liens ---- */
html.a11y-links a:not(.btn-primary):not(.btn-outline) { text-decoration: underline; text-underline-offset: .18em; }

/* ---- Réduire les animations ---- */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

/* ---- Police dyslexie (OpenDyslexic, chargée à l'activation) ---- */
html.a11y-dys body, html.a11y-dys input, html.a11y-dys textarea, html.a11y-dys button, html.a11y-dys select {
  font-family: "OpenDyslexic", var(--font-body) !important;
}
html.a11y-dys h1, html.a11y-dys h2, html.a11y-dys h3, html.a11y-dys h4 {
  font-family: "OpenDyslexic", var(--font-display) !important;
  letter-spacing: 0;
}
/* OpenDyslexic est large : on préserve la barre d'en-tête (logo + burger) */
html.a11y-dys .site-header .wordmark { font-family: var(--font-display) !important; }

/* ---- Contraste renforcé (mode « urgence lisibilité », WCAG AAA) ----
   Toute la charte passe par les variables : on les écrase (mêmes cibles que le
   mode contraste du site d'origine) — encres → noir pur, fonds → blanc pur,
   accents terracotta/corail → #83322C (AAA sur blanc). */
html.a11y-contrast {
  --encre: #000000;
  --sauge: #000000;
  --bordeaux: #000000;
  --border: #000000;
  --papier: #FFFFFF;
  --creme: #FFFFFF;
  --peche: #FFFFFF;
  --ciel: #FFFFFF;
  --azur: #FFFFFF;
  --terracotta: #83322C;
  --corail: #83322C;
}
html.a11y-contrast a:not(.btn-primary):not(.btn-outline) { text-decoration: underline; text-decoration-thickness: 2px; }
html.a11y-contrast :focus-visible { outline-color: #000; outline-width: 3px; }
html.a11y-contrast .press-card .bg { display: none !important; }
html.a11y-contrast .facets { display: none !important; }
html.a11y-contrast .site-footer { border-top: 3px solid #000; }
html.a11y-contrast .mission-card, html.a11y-contrast .partner-group,
html.a11y-contrast .atelier-card, html.a11y-contrast .sensib-block,
html.a11y-contrast .year-card, html.a11y-contrast .join-block,
html.a11y-contrast .event-card, html.a11y-contrast .agenda-card,
html.a11y-contrast .press-card, html.a11y-contrast .valeur-pill,
html.a11y-contrast .info-note, html.a11y-contrast .mdph-note,
html.a11y-contrast .form-status { border: 2px solid #000; }

/* flèche remonter-en-haut (skill a11y-widget) */
.scrolltop-btn:focus-visible{outline:3px solid var(--a11y-scrolltop-bg,var(--terracotta));outline-offset:2px}
.scrolltop-btn{position:fixed;bottom:5rem;right:1.25rem;z-index:60;width:3rem;height:3rem;border-radius:9999px;border:0;background:var(--a11y-scrolltop-bg,var(--terracotta));color:#fff;display:none;align-items:center;justify-content:center;box-shadow:0 8px 24px -10px rgba(0,0,0,.5);cursor:pointer;transition:background-color .2s}
.scrolltop-btn.is-visible{display:inline-flex}
.scrolltop-btn:hover{filter:brightness(.92)}
