/* polices du site, servies localement */
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/alegreya-sans-latin-ext-400.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/alegreya-sans-latin-400.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: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/alegreya-sans-latin-ext-700.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/alegreya-sans-latin-700.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: 'Source Sans 3'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-ext-400-800-i.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-400-800-i.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: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-ext-400-800.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-400-800.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; }

:root {
  --meb-bg: #F6F1E3;
  --meb-surface: #EAE3CF;
  --meb-text: #12301F;
  --meb-muted: #3F4F44;
  --meb-accent: #8A6A1E;
  --meb-accent2: #0F3B2A;
  --meb-accent-text: #7A5D16;
  --meb-brass-light: #D9B65C;
  --meb-felt: #0F3B2A;
  --meb-felt-deep: #0A2A1E;
  --meb-chip: #8E2A24;
  --meb-card: #FBF8EE;
  --meb-hairline: #C9BE9C;
  --meb-display: "Alegreya Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  --meb-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --meb-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--meb-bg);
  color: var(--meb-text);
  font-family: var(--meb-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--meb-accent2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--meb-accent-text); }

:focus-visible { outline: 3px solid var(--meb-accent); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.meb-entete {
  background: var(--meb-accent2);
  color: var(--meb-bg);
  border-bottom: 4px solid var(--meb-accent);
}
.meb-entete-in {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}
.meb-marque {
  font-family: var(--meb-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--meb-bg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.meb-marque:hover { color: var(--meb-brass-light); }
.meb-marque svg { width: 1.7rem; height: 1.7rem; flex: none; }
.meb-marque-fond { fill: var(--meb-brass-light); }
.meb-marque-trait { fill: var(--meb-accent2); }
.meb-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.meb-nav a {
  color: var(--meb-bg);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.meb-nav a:hover { color: var(--meb-brass-light); border-bottom-color: var(--meb-brass-light); }
.meb-entete :focus-visible, .meb-pied :focus-visible { outline-color: var(--meb-brass-light); }

/* ---------- Une de magazine ---------- */
.meb-une {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.meb-une-filet {
  border-top: 4px solid var(--meb-accent);
  border-bottom: 1px solid var(--meb-accent);
  padding: 0.55rem 0;
  margin-bottom: 2rem;
  font-family: var(--meb-mono);
  font-size: 0.875rem;
  color: var(--meb-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}
.meb-une-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: stretch;
}
.meb-une-texte { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.meb-titre-une {
  font-family: var(--meb-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--meb-accent2);
}
.meb-titre-une span { display: block; }
.meb-chapo {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 38rem;
  margin: 0;
}
.meb-reperes-une {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--meb-accent);
}
.meb-reperes-une div {
  padding: 0.9rem 0.9rem 0.2rem 0;
}
.meb-reperes-une div + div { padding-left: 0.9rem; border-left: 1px solid var(--meb-hairline); }
.meb-reperes-une dt {
  font-family: var(--meb-mono);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--meb-accent-text);
}
.meb-reperes-une dd { margin: 0.2rem 0 0; font-size: 0.95rem; line-height: 1.4; color: var(--meb-muted); }

.meb-une-visuel {
  background: var(--meb-felt);
  border: 1px solid var(--meb-accent);
  outline: 1px solid var(--meb-accent);
  outline-offset: 5px;
  margin: 6px;
  min-height: 24rem;
  overflow: hidden;
  position: relative;
}
.meb-une-svg { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.meb-sv-felt { fill: var(--meb-felt); }
.meb-sv-ombre { fill: var(--meb-felt-deep); }
.meb-sv-trait { fill: none; stroke: var(--meb-brass-light); stroke-width: 1.5; }
.meb-sv-trait-fin { fill: none; stroke: var(--meb-brass-light); stroke-width: 1; opacity: 0.7; }
.meb-sv-carte { fill: var(--meb-card); stroke: var(--meb-hairline); stroke-width: 1; }
.meb-sv-carte-rouge { fill: var(--meb-chip); }
.meb-sv-carte-vert { fill: var(--meb-accent2); }
.meb-sv-jeton-a { fill: var(--meb-chip); stroke: var(--meb-card); stroke-width: 2; }
.meb-sv-jeton-b { fill: var(--meb-card); stroke: var(--meb-accent); stroke-width: 2; }
.meb-sv-jeton-c { fill: var(--meb-brass-light); stroke: var(--meb-accent2); stroke-width: 2; }
.meb-sv-bord-a { fill: none; stroke: var(--meb-card); stroke-width: 6; stroke-dasharray: 9 9; }
.meb-sv-bord-b { fill: none; stroke: var(--meb-chip); stroke-width: 6; stroke-dasharray: 9 9; }
.meb-sv-bord-c { fill: none; stroke: var(--meb-accent2); stroke-width: 6; stroke-dasharray: 9 9; }
.meb-sv-centre { fill: none; stroke: var(--meb-card); stroke-width: 1.5; }

/* ---------- Fiche : colonne de repères + texte ---------- */
.meb-fiche {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.meb-repere-col {
  position: sticky;
  top: 1rem;
  background: var(--meb-surface);
  border-top: 4px solid var(--meb-accent2);
  padding: 1rem 1rem 1.1rem;
}
.meb-repere-titre {
  font-family: var(--meb-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--meb-accent2);
}
.meb-repere-liste { list-style: none; margin: 0; padding: 0; }
.meb-repere-liste li + li { border-top: 1px solid var(--meb-hairline); }
.meb-repere-liste a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.5rem 0;
  color: var(--meb-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.meb-repere-liste a:hover { color: var(--meb-accent-text); text-decoration: underline; }
.meb-repere-num { font-family: var(--meb-mono); font-weight: 700; color: var(--meb-accent-text); }

.meb-texte { min-width: 0; max-width: 46rem; }
.meb-bloc { padding-top: 0.4rem; margin-bottom: 3rem; scroll-margin-top: 1rem; }
.meb-bloc h2, .meb-reponses h2 {
  font-family: var(--meb-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--meb-accent2);
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.meb-rep {
  flex: none;
  font-family: var(--meb-mono);
  font-weight: 700;
  font-size: 1rem;
  background: var(--meb-accent2);
  color: var(--meb-bg);
  min-width: 2rem;
  padding: 0.1rem 0.5rem;
  text-align: center;
}
.meb-texte p { margin: 0 0 1.1rem; }
.meb-texte h3 {
  font-family: var(--meb-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.6rem 0 0.5rem;
  color: var(--meb-accent2);
}
.meb-texte ul, .meb-texte ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.meb-texte li { margin-bottom: 0.4rem; }
.meb-chiffre { font-family: var(--meb-mono); font-size: 0.95em; font-weight: 600; }

/* ---------- Tableau ---------- */
.meb-tableau-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1.6rem;
  border: 1px solid var(--meb-hairline);
  background: var(--meb-bg);
}
.meb-tableau {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.45;
}
.meb-tableau caption {
  text-align: left;
  font-family: var(--meb-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.7rem 0.9rem;
  background: var(--meb-surface);
  color: var(--meb-accent2);
}
.meb-tableau th, .meb-tableau td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--meb-hairline);
}
.meb-tableau thead th { background: var(--meb-accent2); color: var(--meb-bg); font-weight: 700; border-top: 0; }
.meb-tableau tbody th { font-family: var(--meb-display); font-size: 1.05rem; color: var(--meb-accent2); }

/* ---------- Encadré ---------- */
.meb-encadre {
  background: var(--meb-surface);
  border-left: 6px solid var(--meb-accent);
  padding: 1rem 1.2rem 0.6rem;
  margin: 1.6rem 0;
}
.meb-encadre-titre {
  font-family: var(--meb-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--meb-accent2);
}
.meb-encadre p:last-child, .meb-encadre ul:last-child { margin-bottom: 0.5rem; }

/* ---------- Liste de définitions (critères) ---------- */
.meb-criteres { margin: 1.2rem 0 1.4rem; padding: 0; }
.meb-criteres div { padding: 0.8rem 0; border-top: 1px solid var(--meb-hairline); }
.meb-criteres div:last-child { border-bottom: 1px solid var(--meb-hairline); }
.meb-criteres dt { font-family: var(--meb-display); font-weight: 800; font-size: 1.15rem; color: var(--meb-accent2); }
.meb-criteres dd { margin: 0.2rem 0 0; }

/* ---------- Figure ---------- */
.meb-figure { margin: 1.6rem 0; }
.meb-figure img { width: 100%; height: auto; border: 1px solid var(--meb-hairline); }
.meb-figure figcaption { font-size: 0.9rem; color: var(--meb-muted); padding-top: 0.5rem; }

/* ---------- Bloc de questions-réponses ---------- */
.meb-reponses { margin-top: 3.5rem; border-top: 4px solid var(--meb-accent2); padding-top: 1.5rem; }
.meb-reponse { padding: 1rem 0; border-bottom: 1px solid var(--meb-hairline); }
.meb-reponse-q { font-family: var(--meb-display); font-weight: 800; font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.4rem; color: var(--meb-accent2); }
.meb-reponse-r { margin: 0; }

/* ---------- Page simple (mentions légales) ---------- */
.meb-page { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.meb-page h1 { font-family: var(--meb-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; color: var(--meb-accent2); margin: 0 0 1.5rem; padding-top: 0.8rem; border-top: 4px solid var(--meb-accent); }
.meb-page h2 { font-family: var(--meb-display); font-weight: 700; font-size: 1.4rem; color: var(--meb-accent2); margin: 2rem 0 0.4rem; }

/* ---------- Pied ---------- */
.meb-pied { background: var(--meb-accent2); color: var(--meb-bg); border-top: 4px solid var(--meb-accent); }
.meb-pied-in {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.8rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: baseline;
}
.meb-pied-nom { font-family: var(--meb-display); font-weight: 800; font-size: 1.2rem; margin: 0; }
.meb-pied a { color: var(--meb-bg); }
.meb-pied a:hover { color: var(--meb-brass-light); }
.meb-pied-credits { font-family: var(--meb-mono); font-size: 0.85rem; flex-basis: 100%; margin: 0; border-top: 1px solid var(--meb-accent); padding-top: 0.9rem; }

/* ---------- Adaptation ---------- */
@media (max-width: 62rem) {
  .meb-fiche { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .meb-repere-col { position: static; }
  .meb-repere-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
  .meb-repere-liste li:nth-child(2) { border-top: 0; }
  .meb-texte { max-width: none; }
}
@media (max-width: 52rem) {
  .meb-une-grille { grid-template-columns: minmax(0, 1fr); }
  .meb-une-visuel { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .meb-reperes-une { grid-template-columns: minmax(0, 1fr); }
  .meb-reperes-une div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--meb-hairline); }
  .meb-repere-liste { grid-template-columns: minmax(0, 1fr); }
  .meb-repere-liste li:nth-child(2) { border-top: 1px solid var(--meb-hairline); }
  .meb-bloc h2, .meb-reponses h2 { flex-direction: column; gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
