/* ==========================================================================
   Hockey Sub France Jeunes — thème Ghost
   Direction : bleu de France (bleu royal) et rose vif des supporters,
   bandeau de navigation plein, titres soulignés, cartes bleu très pâle,
   pied de page marine. Typo Rubik + Roboto.
   ========================================================================== */

/* --- jetons de couleur ---------------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f5fa;
  --fg: #0f0e17;
  --fg-soft: #334155;
  --muted: #5c687a;
  --line: #d7e1ef;
  --line-soft: #e8eef7;
  --accent: #003287;
  --accent-deep: #002053;
  --accent-ink: #ffffff;
  --accent-soft: #e9f0fb;
  --cta: #f00069;
  --cta-deep: #c50056;
  --cta-ink: #ffffff;
  --nav-bg: #003287;
  --flag: #c32929;
  --flag-soft: #fdecec;
  --flag-line: #f3c2c2;
  --ok: #0f7b57;
  --ok-soft: #e4f5ec;
  --shadow: 0 1px 2px rgba(15, 14, 23, .05), 0 14px 34px -22px rgba(15, 14, 23, .45);
  --radius: 8px;
  --radius-sm: 5px;
  --radius-pill: 4px;
  --font-display: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --measure: 68ch;
  color-scheme: light;
}

/* Thème sombre : uniquement sur demande explicite (attribut data-theme="dark").
   Le site reste sur fond blanc quels que soient les réglages du système. */
:root[data-theme="dark"] {
    --bg: #0f0e17;
    --surface: #171622;
    --surface-2: #1e1d2c;
    --fg: #f7f7fb;
    --fg-soft: #c9cbd7;
    --muted: #9aa0b4;
    --line: #2c2b3d;
    --line-soft: #232233;
    --accent: #7fa9ff;
    --accent-deep: #a9c6ff;
    --accent-ink: #001233;
    --accent-soft: #16224a;
    --cta: #ff4d9d;
    --cta-deep: #ff7ab4;
    --cta-ink: #240014;
    --flag: #ff8a8a;
    --flag-soft: #3a191c;
    --flag-line: #5a282d;
    --ok: #5cc79b;
    --ok-soft: #0f2e25;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -22px rgba(0, 0, 0, .9);
    color-scheme: dark;
}

/* --- base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 0; }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

code, kbd, samp {
  font-family: var(--font-code);
  font-size: .87em;
  background: var(--surface-2);
  padding: .12em .4em;
  border-radius: 4px;
}

::selection { background: var(--accent-soft); color: var(--fg); }

/* --- mise en page --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.wrap--narrow { max-width: 760px; }

.section { padding-block: 58px 10px; }
.section--tight { padding-block: 34px 6px; }

.section-head { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; max-width: var(--measure); }
.section-head h2 { font-size: clamp(1.45rem, 3.8vw, 1.85rem); font-weight: 600; color: var(--accent); }
.section-head p { color: var(--muted); text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cta);
}

.lane-sep { padding-block: 30px 0; }
.lane-sep hr { border-top-style: dashed; }

/* --- en-tête -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
}

.site-header__brandbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__top {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--accent); margin-right: auto; }
.brand__sticks { display: flex; gap: 3px; flex: none; }
.brand__sticks i { display: block; width: 15px; height: 6px; border-radius: 2px; }
.brand__sticks i:first-child { background: var(--accent); }
.brand__sticks i:last-child { background: var(--cta); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; color: var(--accent); }
.brand__tag { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* bandeau de navigation plein, bleu de France */
.site-header__navbar { background: var(--nav-bg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.site-nav > a,
.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav > a:hover,
.nav-dropdown > summary:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav > a.is-active,
.nav-dropdown.is-active > summary,
.nav-dropdown[open] > summary { background: rgba(255, 255, 255, .18); color: #fff; }
.site-nav a.nav-cta {
  background: var(--cta);
  color: var(--cta-ink);
  margin-left: 8px;
}
.site-nav a.nav-cta:hover { background: var(--cta-deep); color: var(--cta-ink); }

/* sous-menus de navigation */
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  flex: none;
}
.nav-dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 235px;
  margin: 0;
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 0;
  border-top: 3px solid var(--cta);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 22px 34px -22px rgba(15, 14, 23, .55);
}
.nav-dropdown ul a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}
.nav-dropdown ul a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.nav-dropdown ul a.is-active { color: var(--accent); background: var(--accent-soft); }

/* liens sociaux */
.social-links { display: flex; gap: 8px; margin-top: 14px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-soft);
  background: var(--surface);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}

/* --- héros ---------------------------------------------------------------- */
.hero { padding-block: 56px 44px; display: flex; flex-direction: column; gap: 22px; }
.hero__title { font-size: clamp(2.05rem, 6.4vw, 3.35rem); font-weight: 700; max-width: 22ch; color: var(--accent); position: relative; padding-bottom: 20px; }
.hero__title::after,
.post-header h1::after,
.error-page h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 172px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 62%, var(--cta) 62% 100%);
}
.hero__text { font-size: clamp(1.04rem, 2.5vw, 1.2rem); color: var(--fg-soft); max-width: 56ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 5px 14px 5px 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero__badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --- boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--cta); color: var(--cta-ink); }
.btn--primary:hover { background: var(--cta-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 9px 17px; font-size: .88rem; }

/* --- bandeau de chiffres -------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.facts > div { background: var(--surface-2); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.facts dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); text-wrap: pretty; }

/* --- grilles de cartes ---------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card h3 { font-size: 1.1rem; font-weight: 600; }
.card p { color: var(--fg-soft); font-size: .95rem; text-wrap: pretty; }

/* équipes */
.team { gap: 9px; }
.team__code {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  align-self: flex-start;
}
.team__label { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }

/* argumentaire sponsors */
.pitch { gap: 10px; }
.pitch__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--cta);
}
.pitch h3 { font-size: 1.06rem; }
.pitch p { font-size: .94rem; }

/* --- encarts -------------------------------------------------------------- */
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.callout h3 { font-size: 1.16rem; color: var(--fg); }
.callout p { color: var(--fg-soft); max-width: var(--measure); }
.callout--warn { background: var(--flag-soft); border-color: var(--flag-line); }
.callout--warn h3 { color: var(--flag); }
.callout--plain { background: var(--surface); border-color: var(--line); }

.taxbox {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-family: var(--font-display);
}
.taxbox b { font-size: clamp(2.1rem, 6vw, 2.9rem); font-weight: 700; color: var(--accent); line-height: 1; }
.taxbox span { color: var(--fg-soft); font-size: 1rem; font-family: var(--font-body); }

/* --- boutique ------------------------------------------------------------- */
.shop-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.shop-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.shop-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.shop-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.shop-item__name { font-weight: 600; font-size: .99rem; }
.shop-item__note { font-size: .87rem; color: var(--muted); text-wrap: pretty; }
.shop-item__go { margin-top: auto; font-size: .85rem; color: var(--accent); font-weight: 600; }

/* --- listes --------------------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; max-width: var(--measure); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: "";
  flex: none;
  width: 15px; height: 15px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.checks strong { font-weight: 600; }

/* --- articles ------------------------------------------------------------- */
.post-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card__meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-card__title { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; text-wrap: balance; }
.post-card__excerpt { font-size: .93rem; color: var(--fg-soft); text-wrap: pretty; }
.post-card__more { margin-top: auto; padding-top: 6px; font-size: .86rem; font-weight: 600; color: var(--accent); }

/* --- article seul --------------------------------------------------------- */
.post-header { padding-block: 46px 26px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.post-header h1 { font-size: clamp(1.85rem, 5.2vw, 2.7rem); font-weight: 700; max-width: 26ch; color: var(--accent); position: relative; padding-bottom: 20px; }
.post-header__meta {
  font-family: var(--font-mono);
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.post-hero { border-radius: var(--radius); overflow: hidden; margin-block: 6px 30px; }

.gh-content { max-width: var(--measure); display: flex; flex-direction: column; gap: 20px; }
.gh-content > * { min-width: 0; }
.gh-content h2 { font-size: 1.5rem; margin-top: 16px; }
.gh-content h3 { font-size: 1.2rem; margin-top: 12px; }
.gh-content h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 22px;
  font-weight: 500;
}
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gh-content th,
.gh-content td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.gh-content thead th {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 500;
}
.gh-content tbody tr:last-child th,
.gh-content tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin-block: 18px; }
.table-scroll table { min-width: 560px; margin: 0; }
.gh-content p { text-wrap: pretty; }
.gh-content ul, .gh-content ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.gh-content li { padding-left: 3px; }
.gh-content blockquote {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 20px;
  font-size: 1.08rem;
  color: var(--fg-soft);
  font-style: italic;
}
.gh-content a { font-weight: 500; }

/* --- cartes Koenig (éditeur Ghost) --------------------------------------- */
.kg-card { margin: 4px 0; }
.kg-card figcaption,
.kg-image-card figcaption {
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
  margin-top: 9px;
  font-style: normal;
}
.kg-image-card img { border-radius: var(--radius); }
.kg-width-wide { width: 100%; max-width: 100%; }
.kg-width-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.kg-gallery-container { display: flex; flex-direction: column; gap: 6px; }
.kg-gallery-row { display: flex; gap: 6px; flex-wrap: wrap; }
.kg-gallery-image img { border-radius: var(--radius-sm); }

.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { border-radius: var(--radius); max-width: 100%; }

.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--fg);
  justify-content: space-between;
}
.kg-bookmark-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kg-bookmark-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.kg-bookmark-description { font-size: .89rem; color: var(--muted); }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.kg-bookmark-icon { width: 20px; height: 20px; margin: 0; border-radius: 4px; }
.kg-bookmark-thumbnail { flex: none; width: 130px; }
.kg-bookmark-thumbnail img { border-radius: var(--radius-sm); height: 100%; object-fit: cover; }

.kg-callout-card {
  display: flex;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  align-items: flex-start;
}
.kg-callout-card.kg-callout-card-grey { background: var(--surface-2); border-color: var(--line); }
.kg-callout-card.kg-callout-card-white { background: var(--surface); border-color: var(--line); }
.kg-callout-card.kg-callout-card-blue { background: var(--accent-soft); border-color: var(--accent); }
.kg-callout-card.kg-callout-card-green { background: var(--ok-soft); border-color: var(--ok); }
.kg-callout-card.kg-callout-card-yellow,
.kg-callout-card.kg-callout-card-orange,
.kg-callout-card.kg-callout-card-red { background: var(--flag-soft); border-color: var(--flag-line); }
.kg-callout-emoji { font-size: 1.3rem; line-height: 1.3; flex: none; margin: 0; }
.kg-callout-text { font-size: .97rem; }
.kg-callout-text p { margin: 0; }

.kg-button-card { display: flex; }
.kg-button-card.kg-align-center { justify-content: center; }
.kg-button-card.kg-align-right { justify-content: flex-end; }
.kg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.kg-btn:hover { background: var(--accent-deep); }
.kg-btn-accent { background: var(--accent); color: var(--accent-ink) !important; }

.kg-toggle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; }
.kg-toggle-heading-text { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.kg-toggle-card-icon { margin: 0; color: var(--muted); }
.kg-toggle-content { margin-top: 12px; color: var(--fg-soft); font-size: .95rem; }

.kg-code-card { max-width: 100%; }
.kg-code-card pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.6;
}
.kg-code-card code { background: none; padding: 0; font-size: inherit; }

.kg-table-card { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kg-table-card table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: .93rem; }
.kg-table-card th, .kg-table-card td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.kg-table-card thead th {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 500;
}
.kg-table-card tbody tr:last-child td { border-bottom: 0; }

.kg-file-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kg-file-card-container { display: flex; gap: 14px; align-items: center; }
.kg-file-card-title { font-weight: 600; }
.kg-file-card-caption, .kg-file-card-metadata { font-size: .84rem; color: var(--muted); }
.kg-file-card-icon { flex: none; }

.kg-product-card, .kg-audio-card, .kg-video-card, .kg-signup-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

/* --- newsletter / formulaire ---------------------------------------------- */
.signup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.signup h3 { font-size: 1.2rem; }
.signup p { color: var(--fg-soft); font-size: .95rem; max-width: 52ch; }
.signup__form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: .96rem;
}
.signup__note { font-size: .8rem; color: var(--muted); }

/* --- pied de page --------------------------------------------------------- */
.site-footer {
  margin-top: 66px;
  padding-block: 40px 46px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer__grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--fg-soft); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--fg-soft); font-size: .92rem; line-height: 1.7; }
.site-footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}
.site-footer__bottom p { max-width: 62ch; }

/* --- pagination ----------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 12px; padding-block: 40px; }

/* --- page d'erreur -------------------------------------------------------- */
.error-page { padding-block: 90px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.error-page h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--accent); position: relative; padding-bottom: 20px; }

/* --- écrans étroits ------------------------------------------------------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .header-donate { display: none; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 4px 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a,
  .nav-dropdown > summary { padding: 13px 16px; font-size: .84rem; }
  .site-nav a.nav-cta { margin-left: 0; text-align: center; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > summary { justify-content: space-between; }
  .nav-dropdown ul {
    position: static;
    min-width: 0;
    padding: 2px 0 6px 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-dropdown ul a { padding: 9px 12px; color: #fff; }
  .nav-dropdown ul a:hover,
  .nav-dropdown ul a.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
  .kg-bookmark-thumbnail { display: none; }
  .kg-bookmark-container { flex-direction: column; }
}

@media (max-width: 440px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .hero__actions { width: 100%; }
}

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

/* ==========================================================================
   Pages éditoriales du plan de site
   ========================================================================== */

.page-hero { padding-block: 48px 34px; }
.page-hero .hero__title { max-width: 26ch; }

.prose { display: flex; flex-direction: column; gap: 18px; max-width: var(--measure); }
.prose p { color: var(--fg-soft); text-wrap: pretty; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .9fr);
  gap: 26px;
  align-items: start;
}

.card--aside { gap: 14px; }
.card--wide { max-width: 840px; }
.note { color: var(--muted); font-size: .88rem; }
.note--wide { margin-top: 18px; max-width: var(--measure); }
.preline { white-space: pre-line; }

.checks--compact { gap: 8px; }
.checks--wide { max-width: 840px; }
.checks--wide li { color: var(--fg-soft); }

.mini-facts { display: grid; gap: 11px; margin: 0; }
.mini-facts div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line-soft);
}
.mini-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-facts dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.mini-facts dd { margin: 0; text-align: right; font-size: .9rem; color: var(--fg-soft); }

/* cartes-liens de la page d'accueil */
.card--link {
  text-decoration: none;
  color: var(--fg);
  transition: border-color .15s ease, transform .15s ease;
}
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card--link h3 { font-size: 1.08rem; }
.link-arrow {
  margin-top: auto;
  padding-top: 6px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--accent);
}

/* échéances */
.edition-grid { margin-top: 4px; }
.edition { gap: 10px; }
.edition h3 { font-size: 1.2rem; }
.edition__place {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--fg-soft);
}
.pill--next { background: var(--accent-soft); color: var(--accent); }
.pill--future { background: var(--flag-soft); color: var(--flag); }

/* résultats */
.results-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 22px;
}
.results-table table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .94rem; }
.results-table th,
.results-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
}
.results-table thead th {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 500;
}
.results-table tbody th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.results-table tbody tr:last-child th,
.results-table tbody tr:last-child td { border-bottom: 0; }

.medal {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.medal--silver { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.medal--fourth { background: var(--flag-soft); color: var(--flag); box-shadow: inset 0 0 0 1px var(--flag-line); }

.result-card { gap: 10px; align-items: flex-start; }
.result-card h3 { font-size: 1.02rem; }

/* équipes en cartes */
.team-grid { margin-top: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-card { padding: 0; overflow: hidden; gap: 0; }
.team-card__media { aspect-ratio: 16 / 9; background: var(--surface-2); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.team-card__body h3 { font-size: 1.14rem; }
.team-card__body p { color: var(--fg-soft); font-size: .95rem; text-wrap: pretty; }

/* citations */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--fg-soft);
}
.quote-card figcaption {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-card--wide { max-width: 840px; }

.president {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.president__photo img { width: 100%; border-radius: var(--radius); }
.president__body blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-soft);
}
.president__body figcaption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* médias */
.video-block { margin-top: 30px; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.map-embed {
  position: relative;
  width: 100%;
  height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.video-embed iframe,
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* offres, étapes, contact */
.offer-card { gap: 14px; }
.offer-card .checks { margin-top: 2px; }
.step-card { gap: 9px; }
.step-card__num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.contact-card { gap: 12px; }
.contact-address { font-style: normal; color: var(--fg-soft); line-height: 1.8; }

/* bandeau d'appel à l'action */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.cta-band h2 { font-size: clamp(1.3rem, 3.4vw, 1.62rem); }
.cta-band p { color: var(--fg-soft); max-width: 62ch; margin-top: 8px; }
.cta-band .eyebrow { display: block; margin-bottom: 8px; }
.section--last { padding-bottom: 64px; }

/* --- adaptations des pages éditoriales -------------------------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .president { grid-template-columns: 1fr; }
  .president__photo { max-width: 240px; }
}

@media (max-width: 720px) {
  .map-embed { height: 360px; }
  .cta-band { padding: 22px; }
}

@media (max-width: 440px) {
  .map-embed { height: 300px; }
  .cta-band { padding: 18px; }
  .president { padding: 18px; }
}

/* --- valeurs, ambition, préparation, partenaires ------------------------- */
.values-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.value-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.value-pill h3 { font-size: 1rem; font-weight: 600; }
.value-pill p { font-size: .86rem; color: var(--muted); }

.slogan-band {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.slogan-band p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.25;
  text-wrap: balance;
}

.timeline { display: flex; flex-direction: column; max-width: 840px; }
.timeline__item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.timeline__item:last-child { border-bottom: 0; }
.timeline__date {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}
.timeline__body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline__body p { color: var(--fg-soft); font-size: .94rem; text-wrap: pretty; }

.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline-list li { display: flex; gap: 12px; align-items: baseline; }
.timeline-list b {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--accent);
  flex: none;
}
.timeline-list span { color: var(--fg-soft); font-size: .9rem; }

.partner-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.partner-card h3 { font-size: 1.1rem; }
.partner-card p { color: var(--fg-soft); font-size: .93rem; text-wrap: pretty; }
.partner-card a { font-weight: 600; }

.edition-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.press-contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 1fr; gap: 5px; }
  .timeline__date { padding-top: 0; }
  .team-grid { grid-template-columns: 1fr; }
}

/* --- pages Ghost : mise en page éditoriale ------------------------------- */
.page-hero-band {
  background:
    radial-gradient(900px 320px at 12% -20%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 50%, transparent), transparent);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero--editorial { padding-block: 30px 28px; gap: 16px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { opacity: .5; }

.page-meta {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.page-cover { margin: 28px 0 8px; }

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
  padding-top: 34px;
}
.page-layout--with-toc { grid-template-columns: 220px minmax(0, 1fr); }
.page-layout--with-toc .page-content { max-width: 760px; }
.page-main { min-width: 0; max-width: 840px; }
.page-layout--with-toc .page-main { max-width: none; }
.page-content { max-width: 840px; }

.page-toc { position: sticky; top: 140px; }
.page-toc[hidden] { display: none; }
.page-toc__details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
}
.page-toc__details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-toc__details summary::-webkit-details-marker { display: none; }
.page-toc__details summary::after {
  content: "▾";
  float: right;
  opacity: .6;
  transition: transform .15s ease;
}
.page-toc__details[open] summary::after { transform: rotate(180deg); }
.page-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 11px;
  counter-reset: toc;
}
.page-toc__nav a {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--fg-soft);
  text-decoration: none;
  font-size: .83rem;
  line-height: 1.35;
  counter-increment: toc;
}
.page-toc__nav a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .61rem;
  color: var(--muted);
  padding-top: 2px;
  flex: none;
}
.page-toc__nav a:hover { background: var(--surface-2); color: var(--fg); }
.page-toc__nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.page-toc__nav a.is-active::before { color: var(--accent); }

/* rythme du contenu Ghost */
.page-content > h4:first-child { margin-top: 0; }
.page-content h2 {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 150px;
}
.page-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.page-content h3 {
  padding-left: 12px;
  border-left: 3px solid var(--accent-soft);
}
.page-content p { line-height: 1.7; max-width: var(--measure); }
.page-content ul { padding-left: 1.15em; }
.page-content li { margin-block: 2px; }
.page-content img { border-radius: var(--radius); }
.page-content blockquote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-style: normal;
}
.page-content .kg-card { margin-block: 18px; }
.page-content .kg-embed-card iframe { border-radius: var(--radius); }

@media (max-width: 860px) {
  .page-layout { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; }
  .page-toc { position: static; }
  .page-toc__details { padding: 13px 15px; }
}

/* ==========================================================================
   Peau « supporters » : aplats bleu pâle, titres bleus, pied de page marine
   ========================================================================== */

/* cartes sans bordure sur fond bleu très pâle, comme les blocs de supporters.org */
.card,
.stat,
.value-pill,
.shop-item,
.post-card,
.partner-card,
.quote-card,
.signup,
.callout--plain {
  background: var(--surface-2);
  border-color: transparent;
}

.gh-content h2,
.gh-content h3,
.page-content h2 { color: var(--accent); }

/* bandeau de héros des pages : dégradé bleu pâle + filet */
.page-hero-band {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

/* bandeau d'appel à l'action : aplat marine, accents roses */
.cta-band {
  background: #0f0e17;
  border: 0;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); }
.cta-band .eyebrow { color: #ff8fc0; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn--ghost:hover { background: #fff; border-color: #fff; color: #0f0e17; }

/* bandeau de slogan */
.slogan-band {
  background: var(--nav-bg);
  border: 0;
}
.slogan-band p { color: #fff; }

/* pied de page marine, titres roses */
.site-footer {
  background: #0f0e17;
  border-top: 0;
  color: #dbe2f0;
}
.site-footer h4 { color: #ff8fc0; }
.site-footer a { color: #c6d0e6; }
.site-footer a:hover { color: #fff; }
.site-footer address { color: #c6d0e6; }
.site-footer__bottom {
  border-top-color: rgba(255, 255, 255, .15);
  color: #9aa4bd;
}
.site-footer .social-links a {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}
.site-footer .social-links a:hover { border-color: #fff; color: #fff; }

/* les boutons Ghost de l'éditeur suivent le rose d'appel à l'action */
.kg-btn,
.kg-btn-accent { background: var(--cta); color: var(--cta-ink) !important; }
.kg-btn:hover { background: var(--cta-deep); }

/* code : vraie monospace, même quand les libellés passent en Rubik */
.kg-code-card pre { font-family: var(--font-code); }

/* --- impression ----------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__actions, .pagination { display: none; }
  body { background: #fff; color: #000; }
  .map-embed, .video-embed { display: none; }
}
