/* ============================================================
   Bel'donne Running — feuille de style du site
   Les couleurs et réglages communs sont dans :root ci-dessous.
   ============================================================ */

:root {
  --ink: #17191C;          /* texte principal, noir du logo */
  --ink-2: #3F444A;        /* texte courant */
  --muted: #5A5F66;        /* petits libellés */
  --line: #DCDDD9;         /* bordures */
  --line-soft: #E4E5E2;
  --soft: #F2F3F1;         /* fonds gris clair */
  --placeholder: #EEEFEC;  /* fond des emplacements photo vides */
  --on-dark: #E4E5E2;
  --on-dark-muted: #C9CCCF;
  --accent: #C2410C;       /* couleur d'accent (boutons, soulignés) */
  --accent-dark: #9A3412;
  --radius: 22px;
  --font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---------- Typographie ---------- */

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.015em; }

.display {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.display--page { font-size: clamp(38px, 5.2vw, 70px); }

.h2 { font-weight: 800; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.04; }
.h3 { font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }

.eyebrow {
  margin: 0;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.label {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
}

.lead { margin: 0; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 620px; }
.text { margin: 0; color: var(--ink-2); }
.small { font-size: 15px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-block; font-weight: 700; padding: 10px 0; }

/* ---------- En-tête et menu ---------- */

.site-header { border-bottom: 1px solid var(--line-soft); background: #fff; position: relative; z-index: 10; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 84px;
}
.brand img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 16px; }
.nav a { padding: 12px 10px; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .btn { margin-left: 10px; min-height: 46px; padding: 0 20px; border-bottom: 0; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .brand img { height: 52px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line-soft);
    padding: 8px clamp(16px, 4vw, 48px) 20px;
    box-shadow: 0 12px 24px rgba(23, 25, 28, .08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 18px; }
  .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line-soft); }
  .nav .btn { margin: 16px 0 0; border-bottom: 0; }
}

/* ---------- Sections ---------- */

.section { padding-top: clamp(64px, 8vw, 112px); }
.section--last { padding-bottom: clamp(64px, 8vw, 112px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 32px; margin-bottom: 36px;
}
.section-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-head__aside { margin: 0; max-width: 520px; color: var(--ink-2); font-size: 16px; }

.page-intro { padding-top: clamp(48px, 7vw, 88px); }
.page-intro__text { display: flex; flex-direction: column; gap: 20px; }
.page-intro__text > * { max-width: 780px; }

/* ---------- Emplacements photo ----------
   Si le fichier image est absent, un fond neutre s'affiche à la place. */

.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--placeholder);
  aspect-ratio: 4 / 3;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--landscape { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1 / 1; border-radius: 16px; }
.photo.is-empty img { display: none; }
.photo.is-empty::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60' fill='none' stroke='%23B9BCB6' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='86' cy='22' r='12'/%3E%3Cpath d='M4 56 L30 30 L44 42 L62 18 L82 46 L94 36 L116 56 Z'/%3E%3C/svg%3E") center / min(38%, 120px) no-repeat;
}

/* ---------- Accueil : hero ---------- */

.hero__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: clamp(40px, 7vw, 96px);
}
.hero__text { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__text .btn-row { padding-top: 8px; }
/* Grande photo sous le titre. object-position règle le cadrage :
   « center 62% » garde le bas de la photo, là où se trouve le groupe. */
.hero__banner { margin-top: 48px; aspect-ratio: 21 / 9; border-radius: 28px; }
.hero__banner img { object-position: center 62%; }
@media (max-width: 700px) { .hero__banner { margin-top: 36px; aspect-ratio: 4 / 3; border-radius: 20px; } }
.ridge { display: block; width: 100%; height: clamp(90px, 12vw, 170px); margin-top: 40px; }

/* ---------- Bandeau chiffres ---------- */

.stats { background: var(--ink); color: #fff; }
.stats__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 48px; padding-block: 36px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; }
.stat__label { color: var(--on-dark-muted); font-size: 16px; }

/* ---------- Cartes ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card--dark p { color: var(--on-dark); }
.card--dark .label { color: var(--on-dark-muted); }

/* ---------- Groupes (accueil) ---------- */

.group-panels { display: flex; flex-wrap: wrap; gap: 24px; }
.group-panel {
  flex: 1 1 360px; min-width: 0;
  background: var(--soft); border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
}
.group-panel--wide { flex-basis: 520px; }
.group-panel h3 { margin-bottom: 12px; }
.group-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 16px 0; border-top: 1px solid #D4D6D1;
}
.group-row strong { font-size: 18px; }
.group-row span { color: var(--ink-2); font-size: 16px; }
.group-panel__note { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Vie du club ---------- */

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split__media { flex: 1 1 380px; min-width: 0; }
.split__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid #C9CBC6; font-size: 15px; font-weight: 600; }

/* ---------- Encart d'appel ---------- */

.cta {
  border-radius: 28px; background: var(--ink); color: #fff;
  padding: clamp(32px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta__text p { margin: 0; color: #D6D8DA; font-size: 18px; }

/* ---------- Sorties : planning ---------- */

.schedule { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.schedule__row {
  display: grid;
  grid-template-columns: 160px 150px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px 32px; align-items: baseline;
  padding: 24px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.schedule__row:last-child { border-bottom: 0; background: var(--soft); }
.schedule__day { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.schedule__time { font-weight: 700; font-size: 18px; }
.schedule__what { font-weight: 600; font-size: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.schedule__where { color: var(--ink-2); font-size: 16px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid #C9CBC6; font-size: 13px; font-weight: 700; line-height: 1.4;
}
@media (max-width: 760px) {
  .schedule__row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .schedule__what, .schedule__where { grid-column: 1 / -1; }
  .schedule__time { text-align: right; }
}

.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px; margin-top: 16px; }
.info { display: flex; gap: 14px; align-items: flex-start; padding: 18px 4px; }
.info svg { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.info p { margin: 0; color: var(--ink-2); font-size: 16px; }
.info strong { color: var(--ink); }

/* ---------- Sorties : fiches groupes ---------- */

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; }
.group {
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 18px;
}
.group__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.group p { margin: 0; color: var(--ink-2); }
.level { display: flex; gap: 4px; }
.level span { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.level span.on { background: var(--accent); }
.outings { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.outing { background: var(--soft); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.outing strong { font-size: 17px; }
.outing span:last-child { color: var(--ink-2); font-size: 15px; }

/* ---------- Événements ---------- */

.feature {
  background: var(--soft); border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
}
.feature__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature__text p { margin: 0; color: var(--ink-2); }
.feature__media { flex: 1 1 340px; min-width: 0; }
.pill { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.event { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.event .photo { border-radius: 0; }
.event__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.event__body p { margin: 0; color: var(--ink-2); font-size: 16px; }
.event--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.event--dark .event__body p { color: var(--on-dark); }
.event--dark .label { color: var(--on-dark-muted); }
.event--dark .photo { background: #2A2D31; }

.insta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.insta-grid a { display: block; border-radius: 16px; }
@media (max-width: 700px) { .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Adhésion ---------- */

.join { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.join__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.price {
  flex: 1 1 340px; min-width: 0;
  background: var(--ink); color: #fff; border-radius: 28px; padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.price .label { color: var(--on-dark-muted); }
.price__amount { display: flex; align-items: baseline; gap: 10px; }
.price__amount strong { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; }
.price__amount span { color: var(--on-dark-muted); font-size: 18px; }
.price p { margin: 0; color: var(--on-dark); font-size: 16px; }
.price .price__note { color: var(--on-dark-muted); font-size: 14px; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.step__num {
  width: 44px; height: 44px; border-radius: 999px; background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
}

.contact { display: flex; flex-direction: column; gap: 24px; }
.contact > * { max-width: 760px; }
.contact-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 0;
  border-top: 1px solid var(--line); text-decoration: none;
}
.contact-list li:last-child a { border-bottom: 1px solid var(--line); }
.contact-list svg { flex: none; width: 24px; height: 24px; }
.contact-list strong { display: block; font-size: 18px; }
.contact-list small { display: block; font-size: 14px; color: var(--muted); }
.callout { background: var(--soft); border-radius: var(--radius); padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.callout svg { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.callout p { margin: 0; color: var(--ink-2); font-size: 16px; }
.callout strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- Mentions légales ---------- */

.legal > * { max-width: 760px; }
.legal h2 { font-size: 26px; font-weight: 700; margin: 40px 0 10px; }
.legal p { margin: 0 0 10px; color: var(--ink-2); }

/* ---------- Pied de page ---------- */

.site-footer { border-top: 1px solid var(--line-soft); background: var(--soft); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px;
  padding-block: 48px 32px;
}
.footer-col { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.footer-col--brand { flex-basis: 260px; gap: 14px; }
.footer-col--brand img { width: 180px; height: auto; }
.footer-col--brand p { margin: 0; color: var(--ink-2); font-size: 15px; }
.footer-col .label { margin-bottom: 6px; }
.footer-col a { padding: 4px 0; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social svg { width: 20px; height: 20px; flex: none; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 18px 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 14px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }

/* ============================================================
   Ecoffon Challenge D+ (page ecoffon-challenge.html et encart d'accueil)
   ============================================================ */

.accent { color: var(--accent); }
.eyebrow--light { color: #F4A27A; }

/* Compte à rebours J-xx (masqué une fois la date passée) */
.countdown {
  align-self: flex-start;
  padding: 8px 14px; border-radius: 999px;
  background: #2A2D31; color: #fff;
  font-weight: 700; font-size: 15px;
}
.countdown[hidden] { display: none; }

/* En-tête sombre */
.eco-hero { background: var(--ink); color: #fff; }
.eco-hero__inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px);
}
.eco-hero__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eco-title { font-weight: 800; font-size: clamp(52px, 8vw, 112px); line-height: 0.92; letter-spacing: -0.03em; }
.eco-lead { margin: 0; max-width: 560px; font-size: clamp(19px, 1.8vw, 22px); color: #D6D8DA; }
.eco-date {
  flex: 1 1 300px; min-width: 0;
  border: 1px solid #3A3E44; border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.eco-date .label { color: var(--on-dark-muted); }
.eco-date strong { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.05; }
.eco-date span { color: #D6D8DA; }
.eco-date .countdown { margin-top: 14px; color: #fff; }
.eco-saw { display: block; width: 100%; height: clamp(60px, 8vw, 120px); }

/* Le concept */
.concept { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.concept__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.concept__stats { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.concept__stats div { background: var(--soft); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.concept__stats strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.concept__stats span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 520px) { .concept__stats { grid-template-columns: 1fr; } }

/* Calculateur « Jusqu'où iras-tu ? » */
.calc {
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 40px;
}
.calc__top { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.calc__controls { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.calc__controls input[type="range"] { width: 100%; height: 44px; accent-color: var(--accent); }
.calc__level { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; color: var(--accent); }
.calc__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc__nums div { display: flex; flex-direction: column; gap: 2px; }
.calc__nums strong { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; }
.calc__nums span { font-size: 14px; color: var(--muted); }
.calc__record {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: var(--soft); color: var(--ink);
}
.calc__record.is-dark { background: var(--ink); color: #fff; }
.calc__record svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.calc__record p { margin: 0; font-size: 15px; font-weight: 600; }

.calc__chart {
  flex: 1 1 440px; min-width: 0; min-height: 300px;
  display: flex; align-items: stretch; gap: 6px;
  padding-top: 72px; border-bottom: 2px solid var(--ink);
}
.bar-col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.bar { background: var(--line-soft); border-radius: 6px 6px 0 0; transition: background-color .15s; }
.bar.is-on { background: var(--accent); }
.bar.is-record { box-shadow: inset 0 0 0 2px var(--ink); }
.medal {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.medal svg { width: 28px; height: 18px; }
.medal span {
  width: 46px; height: 46px; margin-top: -5px; border-radius: 999px;
  background: #E3B341; box-shadow: inset 0 0 0 3px #C2922A, 0 2px 6px rgba(23, 25, 28, .25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--ink);
}
@media (max-width: 520px) {
  .calc__chart { gap: 3px; }
  .medal span { width: 38px; height: 38px; font-size: 10px; }
}

.calc__levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.level-card {
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  border-radius: 16px; padding: 16px;
  background: var(--soft); border: 2px solid transparent;
  display: flex; flex-direction: column; gap: 4px;
}
.level-card:hover { border-color: var(--line); }
.level-card.is-current { background: #fff; border-color: var(--accent); }
.level-card strong { font-size: 16px; line-height: 1.25; }
.level-card span { font-size: 14px; color: var(--ink-2); }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.format { border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.format p { margin: 0; color: var(--ink-2); font-size: 16px; }
.format__big { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: .9; }
.format__icon { width: 64px; height: 64px; }
.format__foot { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px !important; color: var(--muted) !important; }
.format--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.format--dark p { color: #D6D8DA; }
.format--dark .format__foot { border-top-color: #3A3E44; color: var(--on-dark-muted) !important; }
.format__foot strong { color: var(--ink); font-size: 17px; }
.format--dark .format__foot strong { color: #fff; }

/* Photos */
.eco-photos {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px; height: clamp(320px, 42vw, 520px);
}
.eco-photos .photo { aspect-ratio: auto; height: 100%; }
.eco-photos .photo:first-child { grid-row: 1 / 3; }
@media (max-width: 640px) {
  .eco-photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .eco-photos .photo { aspect-ratio: 4 / 3; height: auto; border-radius: 18px; }
  .eco-photos .photo:first-child { grid-row: auto; grid-column: 1 / 3; }
}

/* Éditions */
.editions { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.edition { border-top: 3px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.edition--past { border-top-color: var(--ink); }
.edition--next { border-top-color: var(--accent); }
.edition--next .label { color: var(--accent); }
.edition strong { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.edition span:last-child { font-size: 15px; color: var(--ink-2); }
.edition__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.edition__links a { font-size: 15px; font-weight: 600; padding: 6px 0; }

/* Infos pratiques */
.eco-infos {
  border-radius: 28px; background: var(--soft);
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.eco-infos__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.eco-infos dl { margin: 0; }
.eco-infos dl div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-top: 1px solid #D4D6D1; }
.eco-infos dl div:last-child { border-bottom: 1px solid #D4D6D1; }
.eco-infos dt { flex: 0 0 140px; font-weight: 700; }
.eco-infos dd { margin: 0; color: var(--ink-2); }
.eco-infos__actions { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; border: 0; font: inherit; font-weight: 700; font-size: 17px; }

/* Encart sur l'accueil */
.eco-band {
  position: relative; overflow: hidden;
  border-radius: 28px; background: var(--ink); color: #fff;
  padding: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) clamp(56px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.eco-band__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.eco-band__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eco-band__meta .countdown { padding: 6px 12px; font-size: 14px; }
.eco-band__title { font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: .95; letter-spacing: -0.02em; }
.eco-band p { margin: 0; max-width: 560px; color: #D6D8DA; font-size: 18px; }
.eco-band .btn { position: relative; }
.eco-band__saw { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; opacity: .35; }

/* Textes empilés (calculateur) : hauteur stable quelle que soit la variante affichée */
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; visibility: hidden; }
.stack > .is-active { visibility: visible; }
