/* ==========================================================================
   Swisseko : feuille de style du site vitrine
   Aucune ressource externe : polices et images sont servies par le site.
   ========================================================================== */

/* Police : Source Sans 3 (variable, licence SIL OFL 1.1) */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/source-sans-3-latin-ext-wght-normal.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-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/source-sans-3-latin-wght-normal.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;
}

/* Couleurs reprises du logo Swisseko */
:root {
  --red: #E3131B;
  --red-ink: #C4111A;
  --burgundy: #8B1912;
  --orange: #F39200;
  --magenta: #E4067D;
  --pink: #D8237F;
  --ink: #1F1A1A;
  --text: #3B3434;
  --muted: #6E6464;
  --line: #ECE4E1;
  --soft: #FBF7F5;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(31, 26, 26, 0.09);
  --container: 1160px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolygon points='0,0 8,8 0,8' fill='%23F39200'/%3E%3Cpolygon points='8,0 16,8 16,16 8,8' fill='%23E3131B'/%3E%3C/svg%3E");
  --shard-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolygon points='0,0 8,8 0,8' fill='%23FFFFFF' fill-opacity='.7'/%3E%3Cpolygon points='8,0 16,8 16,16 8,8' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1rem; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
strong { color: var(--ink); font-weight: 650; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Adresse e-mail protégée : le @ et le point sont ajoutés par la feuille de style */
.at::before { content: "@"; }
.dot::before { content: "."; }

/* Titres */
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 1rem; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); font-weight: 350; letter-spacing: -0.018em; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.25; }
h1 em, h2 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.6; max-width: 40em; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink);
}
.kicker::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--shard) no-repeat center / contain; }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p:last-child { margin-bottom: 0; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.45rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 1.02rem; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--burgundy); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--red-ink); }
.btn-light:hover { background: var(--ink); color: var(--white); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; text-decoration: none; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform .15s ease; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(31, 26, 26, .06); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 42px; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { position: relative; padding: .3rem 0; color: var(--ink); font-size: 1.02rem; font-weight: 500; text-decoration: none; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--red); transition: right .2s ease; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.lang { display: flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.lang a { padding: .25rem .6rem; border-radius: 999px; color: var(--muted); font-size: .85rem; font-weight: 650; letter-spacing: .04em; text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--red); color: var(--white); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
    flex-direction: column; align-items: flex-start; gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.75rem; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(31, 26, 26, .08);
  }
  .js .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: .9rem; }
  .nav-list a { font-size: 1.15rem; }
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 1rem; }
  .no-js .nav { width: 100%; flex-wrap: wrap; align-items: flex-start; }
  .no-js .nav-list { flex-direction: row; flex-wrap: wrap; }
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.75rem) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* Bandeau d'accueil */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.25rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero-mark { justify-self: end; width: min(100%, 410px); }
.hero-mark img { width: 100%; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .98rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts li::before { content: ""; width: 10px; height: 10px; background: var(--shard) no-repeat center / contain; }

/* En-tête des pages intérieures */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(2.75rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--soft) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 14em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-mark { position: absolute; right: max(1.25rem, calc((100vw - var(--container)) / 2)); top: 50%; width: 210px; transform: translateY(-50%); opacity: .95; }

/* Mission et valeurs */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split h2 { margin-bottom: 0; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.value { padding-top: 1.35rem; border-top: 2px solid var(--line); }
.value:nth-child(1) { border-top-color: var(--red); }
.value:nth-child(2) { border-top-color: var(--orange); }
.value:nth-child(3) { border-top-color: var(--burgundy); }
.value p { margin: 0; }

/* Cartes */
.cards { display: grid; gap: 1.5rem; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  --accent: var(--red);
  position: relative; overflow: hidden;
  padding: 2.1rem 2rem 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card::before { content: ""; position: absolute; top: 0; right: 0; width: 58px; height: 58px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.card::after { content: ""; position: absolute; top: 0; right: 58px; width: 29px; height: 29px; background: var(--accent); opacity: .35; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.card[data-accent="orange"] { --accent: var(--orange); }
.card[data-accent="burgundy"] { --accent: var(--burgundy); }
.card[data-accent="magenta"] { --accent: var(--magenta); }
.card-num { display: block; margin-bottom: .6rem; color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .12em; }
.card h3 { padding-right: 3rem; }
.card p { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.tags li { padding: .3rem .75rem; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.3; }

/* Démarche */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.step { padding-top: 1.25rem; border-top: 2px solid var(--line); }
.step-num { display: block; color: var(--red); font-size: 3rem; font-weight: 250; line-height: 1; letter-spacing: -0.03em; }
.step h3 { margin: .9rem 0 .5rem; }
.step p { margin: 0; }

/* Régions */
.region .region-link { display: inline-flex; margin-top: 1.1rem; }
.region h3 { padding-right: 3rem; }
.note { margin-top: 2rem; color: var(--muted); font-size: .95rem; }

/* Swisseko Academy */
.academy { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(135deg, var(--red) 0%, var(--pink) 100%); }
.academy::after {
  content: ""; position: absolute; right: -300px; top: 50%; width: 440px; height: 541px; transform: translateY(-50%);
  background: url("/assets/img/symbole-swisseko-blanc.svg") no-repeat center / contain; opacity: .13; pointer-events: none;
}
@media (max-width: 1320px) { .academy::after { display: none; } }
.academy .container { position: relative; z-index: 1; }
.academy h2, .academy h3, .academy strong { color: var(--white); }
.academy .kicker { color: var(--white); }
.academy .kicker::before { background-image: var(--shard-white); }
.academy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.academy-wordmark { margin: 0 0 1.5rem; color: var(--white); font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 800; line-height: .95; letter-spacing: -0.035em; }
.academy-wordmark span { display: block; margin-top: .35rem; font-size: .42em; font-weight: 500; letter-spacing: 0; }
.academy-list { display: grid; gap: .75rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.academy-list li { display: flex; align-items: center; gap: .75rem; padding: .95rem 1.2rem; border-radius: 12px; background: rgba(255, 255, 255, .13); font-weight: 600; }
.academy-list li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--shard-white) no-repeat center / contain; }

/* Logos partenaires */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.logo-tile { display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .2s ease, transform .2s ease; }
.logo-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-tile img { width: auto; max-width: 100%; max-height: 58px; }
.section-foot { margin-top: 2rem; }

/* Appel à l'action */
.cta-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--white);
}
.cta-box::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: linear-gradient(180deg, var(--red), var(--orange)); }
.cta-box h2 { margin-bottom: .75rem; }
.cta-box p { margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; }

/* Partenaires */
.partners { display: grid; gap: 1.75rem; }
.partner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.partner-logo { display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 1.75rem; border-radius: 12px; background: var(--soft); }
.partner-logo img { width: auto; max-width: 100%; max-height: 64px; }
.partner h2, .partner h3 { margin-bottom: .25rem; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 600; }
.partner-sub { margin-bottom: 1rem; color: var(--muted); font-size: 1rem; }
.partner p:last-of-type { margin-bottom: 0; }
.join { position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(2rem, 5vw, 3rem); border-radius: 24px; color: var(--white); background: linear-gradient(135deg, var(--burgundy) 0%, var(--red) 100%); overflow: hidden; }
.join::after { content: ""; position: absolute; right: -40px; top: -40px; width: 230px; height: 283px; background: url("/assets/img/symbole-swisseko-blanc.svg") no-repeat center / contain; opacity: .14; }
.join h2 { color: var(--white); }
.join p { max-width: 38em; }
.join .btn { position: relative; z-index: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.contact-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--red); }
.contact-icon svg { width: 24px; height: 24px; }
.contact-label { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-value { color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--red-ink); }
.contact-extra { display: inline-block; margin-top: .35rem; font-size: .95rem; }
.panel { padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--soft); }
.panel h2, .panel h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 500; }
.checklist { display: grid; gap: .8rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 13px; background: var(--shard) no-repeat center / contain; }
.small { color: var(--muted); font-size: .95rem; }
.section--soft .panel { background: var(--white); border: 1px solid var(--line); }

/* Textes longs (mentions légales) */
.prose { max-width: 780px; }
.prose h2 { margin: 2.75rem 0 .9rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Pied de page */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; border-top: 1px solid var(--line); background: var(--soft); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand img { width: auto; height: 40px; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 24em; color: var(--muted); }
.footer-title { margin: 0 0 1rem; color: var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--red-ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-bottom p { margin: 0; }

/* Adaptations écrans moyens et petits */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .academy-grid, .contact-grid, .cta-box { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { order: -1; justify-self: start; width: 120px; }
  .page-hero-mark { display: none; }
  .values { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .cards--2, .cards--4, .steps, .logos { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card { padding: 1.75rem 1.5rem 1.9rem; }
  .brand img { height: 36px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}
/* Page chinoise (/zh/) : polices CJK du système (aucune police chinoise téléchargée,
   pour rester léger et accessible depuis la Chine continentale) et typographie adaptée */
:root:lang(zh) {
  --font: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
}
body:lang(zh) { line-height: 1.8; }
h1:lang(zh), h2:lang(zh), h3:lang(zh) { letter-spacing: 0; }
h1:lang(zh) { font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 350; line-height: 1.3; }
h2:lang(zh) { font-size: clamp(1.65rem, 3.2vw, 2.5rem); font-weight: 400; line-height: 1.35; }
h3:lang(zh) { line-height: 1.45; }
.lead:lang(zh) { line-height: 1.8; }
p:lang(zh) { text-wrap: pretty; }
.kicker:lang(zh) { letter-spacing: .1em; }
/* Groupe de mots qui ne se coupe pas en fin de ligne (titres chinois) */
.ph { display: inline-block; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.stat { padding-top: 1.25rem; border-top: 2px solid var(--line); }
.stat:nth-child(4n+1) { border-top-color: var(--red); }
.stat:nth-child(4n+2) { border-top-color: var(--orange); }
.stat:nth-child(4n+3) { border-top-color: var(--burgundy); }
.stat:nth-child(4n+4) { border-top-color: var(--magenta); }
.stat-num { display: block; margin-bottom: .55rem; color: var(--red); font-size: clamp(2.3rem, 4vw, 3.1rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.stat-num small { margin: 0 .1em; font-size: .4em; font-weight: 600; letter-spacing: 0; }
.stat p { margin: 0; font-size: 1rem; }

/* Deux encadrés côte à côte, cartes sur trois colonnes, encadré d'information */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.duo .panel h3 { font-size: 1.3rem; font-weight: 650; }
.duo .panel p:last-child { margin-bottom: 0; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.callout { margin-top: clamp(2rem, 4vw, 2.75rem); padding: 1.35rem 1.6rem; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: var(--soft); }
.section--soft .callout { background: var(--white); }
.callout p { margin: 0; }

/* Appels de référence et liste des sources */
.ref { margin-left: .08em; font-size: .68em; line-height: 0; vertical-align: super; }
.ref a { font-weight: 700; text-decoration: none; }
.ref a:hover { text-decoration: underline; }
.section-head--compact { margin-bottom: 1.75rem; }
.section-head--compact h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500; }
.refs { display: grid; gap: .8rem; max-width: 900px; margin: 0; padding: 0; list-style: none; counter-reset: ref; font-size: 1rem; }
.refs li { position: relative; padding-left: 2.6rem; counter-increment: ref; }
.refs li::before { content: "[" counter(ref) "]"; position: absolute; left: 0; color: var(--red-ink); font-weight: 700; }
.refs li:target { border-radius: 8px; background: var(--soft); box-shadow: 0 0 0 .5rem var(--soft); }
.refs a { overflow-wrap: anywhere; }
.refs .src { color: var(--muted); }

/* Questions fréquentes */
.faq { display: grid; gap: .85rem; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary { position: relative; padding: 1.2rem 3.5rem 1.2rem 1.5rem; color: var(--ink); font-size: 1.12rem; font-weight: 650; line-height: 1.5; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.6rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-75%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--red-ink); }
.faq-body { padding: 0 1.5rem 1.35rem; }
.faq-body p { margin: 0; }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .faq summary { padding: 1.1rem 3rem 1.1rem 1.2rem; font-size: 1.05rem; }
  .faq summary::after { right: 1.3rem; }
  .faq-body { padding: 0 1.2rem 1.2rem; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .nav-toggle, .hero-mark, .page-hero-mark, .academy::after { display: none !important; }
  .academy, .join { color: #000; background: none; }
  .academy h2, .join h2 { color: #000; }
}
