/* Zone : charte — page Équipe & Charte
 * Breakpoints : 1024px layout shell (ex-720px fusionné ici)
 */
.page-charte .feed-hero.page-header--charte {
  width: 100%;
  max-width: min(var(--container-max), 1100px);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}
.feed-hero--charte {
  border-color: rgba(126, 240, 224, 0.28);
  background:
    radial-gradient(circle at 10% 18%, rgba(126, 240, 224, 0.14), transparent 44%),
    radial-gradient(circle at 88% 14%, rgba(199, 125, 255, 0.12), transparent 46%),
    radial-gradient(circle at 50% 108%, rgba(248, 215, 138, 0.07), transparent 50%),
    linear-gradient(140deg, rgba(14, 20, 28, 0.94), rgba(22, 18, 36, 0.88));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 0 44px rgba(126, 240, 224, 0.1);
}
.feed-hero--charte .feed-hero-orb--1 { background: #7ef0e0; }
.feed-hero--charte .feed-hero-orb--2 { background: #c77dff; }
.feed-hero--charte .feed-hero-orb--3 { background: rgba(248, 215, 138, 0.55); }
.feed-hero--charte .feed-hero-ring {
  border-color: rgba(126, 240, 224, 0.2);
}
.feed-hero--charte .feed-hero-eyebrow {
  color: #b8fff4;
  border-color: rgba(126, 240, 224, 0.32);
  background: rgba(126, 240, 224, 0.1);
}
.feed-hero--charte .feed-hero-sub {
  max-width: 48ch;
  color: color-mix(in srgb, var(--text-muted) 86%, #b8fff4);
}
.feed-hero--charte .feed-hero-format--charte-welcome {
  border-color: rgba(126, 240, 224, 0.28);
  color: #b8fff4;
  background: rgba(126, 240, 224, 0.08);
}
.feed-hero--charte .feed-hero-format--charte-safe {
  border-color: rgba(255, 138, 184, 0.28);
  color: #ffd4e8;
  background: rgba(255, 138, 184, 0.08);
}
.feed-hero--charte .feed-hero-format--charte-rights {
  border-color: rgba(248, 215, 138, 0.28);
  color: #ffe8b8;
  background: rgba(248, 215, 138, 0.08);
}
.feed-hero--charte .feed-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}
.charte-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.charte-page {
  width: 100%;
  max-width: min(var(--container-max), 920px);
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.charte-section-head {
  margin-bottom: 1.15rem;
}
.charte-section-head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.65rem);
}
.charte-section-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.charte-pledge-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.charte-pledge {
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.charte-pledge--violet {
  border-color: rgba(199, 125, 255, 0.28);
  background: color-mix(in srgb, var(--bg-card) 92%, rgba(199, 125, 255, 0.08));
}
.charte-pledge--teal {
  border-color: rgba(126, 240, 224, 0.28);
  background: color-mix(in srgb, var(--bg-card) 92%, rgba(126, 240, 224, 0.08));
}
.charte-pledge--rose {
  border-color: rgba(255, 138, 184, 0.28);
  background: color-mix(in srgb, var(--bg-card) 92%, rgba(255, 138, 184, 0.07));
}
.charte-pledge--gold {
  border-color: rgba(248, 215, 138, 0.28);
  background: color-mix(in srgb, var(--bg-card) 92%, rgba(248, 215, 138, 0.07));
}
.charte-pledge-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.charte-pledge h3 {
  margin: 0;
  font-size: 0.95rem;
}
.charte-pledge p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.charte-rules {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.charte-rule {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}
.charte-rule-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.65rem;
}
.charte-rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 1.1rem;
  background: rgba(126, 240, 224, 0.1);
  border: 1px solid rgba(126, 240, 224, 0.22);
}
.charte-rule-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}
.charte-rule-intro {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.charte-rule-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 88%, var(--text-muted));
}

.charte-team-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(199, 125, 255, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(199, 125, 255, 0.1), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(126, 240, 224, 0.08), transparent 50%),
    var(--bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.charte-team-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.charte-team-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.9rem;
  color: #ffe8b8;
  background: rgba(248, 215, 138, 0.15);
  border: 1px solid rgba(248, 215, 138, 0.35);
}
.charte-team-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.charte-team-card p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 90%, var(--text-muted));
}
.charte-team-card p:last-child {
  margin-bottom: 0;
}

.charte-page-foot {
  text-align: center;
  padding: 1.25rem 1rem 0;
  border-top: 1px solid var(--border);
}
.charte-page-foot p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

html[data-appearance="light"] .charte-rule {
  background: color-mix(in srgb, #fff 94%, var(--accent-3) 6%);
}
html[data-appearance="light"] .charte-team-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(26, 143, 125, 0.06), transparent 55%),
    linear-gradient(140deg, #fff, #f8f4ff);
}

/* ——— Layout mobile ≤1024px ——— */
@media (max-width: 1024px) {
  body.page-charte .site-main {
    padding-top: 0.35rem;
    padding-bottom: calc(var(--mobile-bottom-chrome-h, 8rem) + 1rem + env(safe-area-inset-bottom, 0px));
  }

  body.page-charte .feed-hero--charte .feed-hero-formats {
    display: none;
  }

  body.page-charte .feed-hero--charte .feed-hero-bg {
    opacity: 0.55;
  }

  body.page-charte .feed-hero--charte .feed-hero-title {
    font-size: clamp(1.3rem, 4.8vw, 1.65rem);
    line-height: 1.2;
  }

  body.page-charte .feed-hero--charte .feed-hero-sub {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .page-charte .feed-hero.page-header--charte {
    margin-bottom: 1rem;
  }

  .charte-page {
    gap: 1.65rem;
    margin-bottom: 1.5rem;
  }

  .charte-pledge-grid {
    grid-template-columns: 1fr;
  }

  .feed-hero--charte .feed-hero-inner {
    flex-direction: column;
  }

  .charte-hero-aside .btn {
    width: 100%;
    justify-content: center;
  }

  .charte-team-card {
    padding: 1.1rem 1.15rem;
  }

  .charte-section-head h2 {
    font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  }

  .charte-section-lead {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .charte-page-foot .btn {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    min-height: var(--touch-min, 2.75rem);
  }
}

@media (max-width: 640px) {
  .charte-page {
    gap: 1.35rem;
  }

  .charte-section-head {
    margin-bottom: 0.85rem;
  }

  .charte-pledge {
    padding: 0.85rem 0.9rem;
  }

  .charte-pledge h3 {
    font-size: 0.9rem;
  }

  .charte-pledge p {
    font-size: 0.82rem;
  }

  .charte-rule {
    padding: 0.85rem 0.9rem;
  }

  .charte-rule-head h3 {
    font-size: 0.95rem;
  }

  .charte-rule-list {
    font-size: 0.82rem;
    gap: 0.3rem;
  }

  .charte-team-card p {
    font-size: 0.88rem;
  }

  .charte-page-foot {
    padding-top: 1rem;
  }

  .charte-page-foot p {
    font-size: 0.84rem;
  }
}
