:root {
  /* Charte — primaire violet, secondaire orange, tertiaire lavande, neutre */
  --color-primary: #5c2e7e;
  --color-primary-dark: #4a2466;
  --color-accent: #f9a825;
  --color-accent-dark: #e6941f;
  --color-tertiary: #c5b4e3;
  --color-secondary: #5c2e7e;
  --color-bg: #f4f4f4;
  --color-bg-alt: #ede8f5;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --shadow-soft: 0 10px 30px rgba(26, 26, 26, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --container-width: 1100px;
  /* Compense le header sticky pour les ancres (#structure, #programme, etc.) */
  --header-offset: 5.75rem;
}

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

html {
  scroll-behavior: smooth;
  /* Évite le décalage horizontal du header (logo, nav) quand la scrollbar apparaît ou disparaît selon la hauteur de page */
  scrollbar-gutter: stable;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 46, 126, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}

/* Mobile : deux logos à gauche côte à côte, menu hamburger à droite */
@media (max-width: 767px) {
  .header-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem 0.65rem;
  }

  .nav-toggle {
    margin-left: auto;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logo de l'école (L'Éveil des Lionceaux) — paysage, lisible sur mobile et desktop */
.logo-img-brand {
  max-height: 46px;
  max-width: min(240px, 52vw);
}

.logo-brand {
  order: 0;
  flex-shrink: 1;
  min-width: 0;
  line-height: 0;
}

.logo-brand:hover {
  opacity: 0.92;
}

.logo-brand:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.logo-cned {
  order: 1;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .logo-cned {
    align-items: center;
  }
}

.logo-cned:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo-cned:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.logo-img-cned {
  max-height: 50px;
  max-width: min(165px, 38vw);
}

/* Ordre flex mobile : logo asso (0) → logo CNED (1) → menu (2) à droite → nav pleine largeur (3) */
.nav {
  display: none;
  order: 3;
  width: 100%;
  flex-basis: 100%;
}

.nav > ul {
  list-style: none;
  display: flex;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  font-size: 1.056rem;
  font-weight: 600;
  color: var(--color-primary);
}

.nav a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-coming-soon {
  display: inline-block;
  font-size: 1.056rem;
  font-weight: 600;
  color: var(--color-muted);
  opacity: 0.9;
  cursor: not-allowed;
}

.nav-item-dropdown {
  position: relative;
}

/* Pont invisible sous « Quiz » : le curseur reste « dans » le bloc au survol
   entre le lien et le sous-menu (évite la fermeture trop rapide). */
.nav-item-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 29;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .nav-item-dropdown::after {
    pointer-events: auto;
  }
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(92, 46, 126, 0.18);
  display: none;
  z-index: 30;
}

.dropdown-menu li a {
  display: block;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
  font-size: 1.08rem;
  color: var(--color-primary);
}

.dropdown-menu li a:hover {
  background: rgba(92, 46, 126, 0.08);
  color: var(--color-primary-dark);
}

.nav-item-dropdown.open .dropdown-menu {
  display: block;
}

/* Indique visuellement le menu ouvert ("Quiz") */
.nav-item-dropdown.open .nav-link-dropdown {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Ouverture au survol (ordinateur) */
@media (min-width: 1024px) {
  .nav-item-dropdown:hover .dropdown-menu {
    display: block;
  }
}

.nav-toggle {
  order: 2;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.3rem;
  flex-shrink: 0;
  align-self: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid rgba(92, 46, 126, 0.35);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(197, 180, 227, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.8);
  color: var(--color-text);
  box-shadow: none;
}

.btn-outline:hover {
  background: #f8fafc;
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.hero {
  padding: 3.2rem 0 2.5rem;
  background-color: var(--color-bg);
  background-image: url("images/background index.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
}

.hero-content {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(92, 46, 126, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(2px);
  padding: 1.25rem 1.1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(249, 168, 37, 0.25);
  color: #5c3d00;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0.75rem;
  justify-content: center;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.3rem;
  justify-content: center;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 46, 126, 0.2);
  box-shadow: 0 8px 18px rgba(26, 26, 26, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(26, 26, 26, 0.12);
  filter: saturate(1.05);
}

.social-icon:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon-youtube {
  background: #ff0000;
  border-color: rgba(255, 0, 0, 0.35);
}

.social-icon-youtube svg {
  fill: #ffffff;
}

.social-icon-youtube .social-icon-play {
  fill: #ff0000;
}

.social-icon-instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
  border-color: rgba(129, 52, 175, 0.35);
}

.social-icon-instagram svg {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.9;
}

.social-icon-instagram .social-icon-cutout {
  fill: #ffffff;
  stroke: none;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 46, 126, 0.08);
  padding: 1.5rem;
  max-width: 360px;
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.hero-card p {
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text);
}

.section {
  padding: 2.4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--color-muted);
  max-width: 40rem;
}

.section-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.section-grid-reverse {
  direction: rtl;
}

.section-grid-reverse > * {
  direction: ltr;
}

.list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
}

.card-highlight {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 46, 126, 0.08);
}

.card-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card-highlight ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 500;
  margin-top: 1rem;
}

.link-arrow::after {
  content: "→";
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 46, 126, 0.08);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(92, 46, 126, 0.2);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
}

.form-popup[hidden] {
  display: none;
}

.form-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.form-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}

.form-popup-dialog {
  position: relative;
  width: min(100%, 460px);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(92, 46, 126, 0.18);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.2);
  padding: 1.25rem 1.1rem;
  text-align: center;
}

.form-popup-dialog h3 {
  margin: 0 0 0.45rem;
  color: var(--color-primary);
  line-height: 1.25;
}

.form-popup-dialog p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.form-popup-close {
  width: 100%;
}

.footer {
  border-top: 1px solid rgba(92, 46, 126, 0.12);
  padding: 1.2rem 0;
  background: var(--color-surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.link-top {
  font-weight: 500;
}

@media (min-width: 768px) {
  .logo-img-brand {
    max-height: 54px;
    max-width: 275px;
  }

  .logo-img-cned {
    max-height: 64px;
    max-width: 200px;
  }

  .logo-brand {
    order: 1;
    flex-shrink: 0;
  }

  .nav {
    display: block;
    order: 2;
    width: auto;
    flex: 1 1 auto;
    flex-basis: auto;
  }

  .logo-cned {
    order: 3;
  }

  .nav > ul {
    flex-wrap: nowrap;
    gap: 0.5rem 1rem;
    justify-content: center;
  }

  .nav a {
    font-size: 1.08rem;
  }

  .nav-toggle {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .logo-img-brand {
    max-height: 58px;
    max-width: 295px;
  }

  .logo-img-cned {
    max-height: 68px;
    max-width: 212px;
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .nav > ul {
    gap: 1.1rem 1.35rem;
  }

  .nav a {
    font-size: 1.14rem;
  }
}

/* Bouton flottant Contact — accent orange (secondaire charte) */
.contact-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(249, 168, 37, 0.45), var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease, transform 0.15s ease;
}

.contact-fab:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
  color: #1a1a1a;
  transform: translateY(-2px);
}

.contact-fab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Section Quiz — grille de cartes */
.quiz-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
  max-width: 520px;
}

.quiz-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.5rem;
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.quiz-card-link:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(92, 46, 126, 0.12);
}

.quiz-card-soon {
  cursor: default;
  color: var(--color-muted);
}

.quiz-card-soon small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

@media (min-width: 600px) {
  .quiz-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}

.nav.open {
  display: block;
}

@media (max-width: 767px) {
  body {
    font-size: 0.95rem;
    padding-bottom: 4.5rem;
  }

  .hero-inner {
    text-align: left;
  }

  .hero-content {
    padding: 1rem 0.9rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: min(100%, 22rem);
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-card {
    max-width: 100%;
  }

  .section {
    padding: 2rem 0;
  }

  .section-grid {
    gap: 1.2rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(92, 46, 126, 0.12);
  }

  .nav ul {
    flex-direction: column;
    padding: 0.5rem 1.25rem 0.75rem;
  }

  .nav li {
    padding: 0.2rem 0;
  }

  .header-inner > .btn-small {
    display: none;
  }

  .nav-item-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding-left: 0.8rem;
  }
}

/* Quiz page */
.quiz-page .quiz-hero {
  padding-top: 1.8rem;
}

.quiz-form {
  margin-top: 0.25rem;
}

.quiz-meta {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}

.quiz-meta-text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem 1.05rem;
}

.q-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.answers {
  display: grid;
  gap: 0.5rem;
}

.answers label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
  color: var(--color-text);
}

.quiz-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.quiz-actions .btn-full {
  flex: 1;
}

.quiz-result {
  margin-top: 1.2rem;
}

.quiz-result-inner {
  background: rgba(197, 180, 227, 0.35);
  border: 1px solid rgba(92, 46, 126, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.05rem;
}

.quiz-result-note {
  margin: 0.35rem 0 0 0;
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .answers {
    grid-template-columns: 1fr 1fr;
  }

  .q-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .quiz-actions {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* —— Page Blog —— */
.blog-page-hero {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid rgba(92, 46, 126, 0.08);
}

.blog-page-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.blog-page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  color: var(--color-primary);
  line-height: 1.2;
}

/* Chapô blog : plus large que .section-intro pour éviter une phrase coupée trop tôt */
.blog-page-hero .blog-page-lead.section-intro {
  max-width: min(100%, 54rem);
}

.blog-page-lead {
  margin: 0;
  line-height: 1.65;
  text-wrap: pretty;
}

.blog-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.35rem 1.25rem 1.2rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(92, 46, 126, 0.1);
  box-shadow: var(--shadow-soft);
}

.blog-card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.blog-card-title {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.blog-card-excerpt {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.blog-card-footer {
  margin-top: auto;
}

.blog-page-more {
  margin-top: 2rem;
  margin-bottom: 0;
}

.nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— Page article (ex. cned-primaire) —— */
.article-page {
  padding: 1.5rem 0 3rem;
  background: var(--color-bg);
}

.article-shell {
  padding-top: 1.25rem;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid rgba(92, 46, 126, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2.2vw, 2rem);
}

.article-body {
  max-width: 100%;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(92, 46, 126, 0.12);
}

.article-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.article-body h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
  color: var(--color-primary);
}

.article-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.article-section {
  margin-bottom: 2rem;
}

.article-section-last {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.3;
}

.article-body p {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-inline-image {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(92, 46, 126, 0.12);
  box-shadow: var(--shadow-soft);
  margin: 0.5rem auto 1rem;
}

@media (min-width: 900px) {
  .article-inline-image-left {
    float: left;
    margin: 0.2rem 1rem 0.6rem 0;
  }

  .article-inline-image-right {
    float: right;
    margin: 0.2rem 0 0.6rem 1rem;
  }
}

.article-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-text);
}

.article-list li {
  margin-bottom: 0.35rem;
}

.article-list li:last-child {
  margin-bottom: 0;
}

.article-back {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(92, 46, 126, 0.12);
  text-align: center;
}

