.programme-sheet {
      --kastor-red: #E30613;
      --kastor-red-dark: #b50510;
      --kastor-red-light: #ff1a27;
      --dark: #1a1a1a;
      --text: #2d2d2d;
      --muted: #5a5a5a;
      --light-bg: #f7f7f8;
      --card-bg: #ffffff;
      --border: #e5e7eb;
      --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      --radius: 12px;
    }

    .programme-sheet * { margin: 0; padding: 0; box-sizing: border-box; }

    .programme-sheet {
      font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
      color: var(--text);
      line-height: 1.7;
      background: var(--light-bg);
    }

    .programme-sheet h1, .programme-sheet h2, .programme-sheet h3, .programme-sheet h4 {
      font-family: 'Montserrat', sans-serif;
      color: var(--dark);
      line-height: 1.3;
    }

    /* Header / Hero */
    .programme-sheet .hero {
      background: linear-gradient(90deg,
        #ffffff 0%,
        #fce8e9 8%,
        #f0a0a5 18%,
        #e0454d 32%,
        var(--kastor-red) 50%,
        #e0454d 68%,
        #f0a0a5 82%,
        #fce8e9 92%,
        #ffffff 100%);
      color: white;
      padding: 1.6rem 1.25rem 1.75rem;
      position: relative;
      overflow: hidden;
    }

    .programme-sheet .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0.06) 28%,
        rgba(0,0,0,0.12) 50%,
        rgba(0,0,0,0.06) 72%,
        transparent 100%);
      pointer-events: none;
    }

    .programme-sheet .hero-inner {
      max-width: 960px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 1;
    }

    .programme-sheet .hero h1 {
      color: white;
      font-size: clamp(1.15rem, 3vw, 1.7rem);
      font-weight: 700;
      letter-spacing: 0.015em;
      text-align: center;
      line-height: 1.35;
      margin: 0;
      text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    }

    @media (max-width: 520px) {
      .programme-sheet .hero h1 { font-size: 1.15rem; }
    }

    /* Container */
    .programme-sheet__container {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 1.25rem 3rem;
    }

    /* TOC */
    .programme-sheet .toc {
      background: white;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.25rem 1.5rem;
      margin-top: 1.5rem;
    }

    .programme-sheet .toc h3 {
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .programme-sheet .toc ul {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .programme-sheet .toc a {
      display: inline-block;
      padding: 0.4rem 0.85rem;
      background: var(--light-bg);
      border-radius: 20px;
      color: var(--dark);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: background 0.2s, color 0.2s;
    }

    .programme-sheet .toc a:hover {
      background: var(--kastor-red);
      color: white;
    }

    /* Cards */
    .programme-sheet .card {
      background: var(--card-bg);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.75rem 1.5rem;
      margin-top: 1.75rem;
    }

    .programme-sheet .card h2 {
      font-size: 1.35rem;
      margin-bottom: 1rem;
      padding-bottom: 0.6rem;
      border-bottom: 3px solid var(--kastor-red);
      display: inline-block;
    }

    .programme-sheet .card h3 {
      font-size: 1.1rem;
      margin: 1.25rem 0 0.6rem;
      color: var(--kastor-red);
    }

    .programme-sheet .highlight {
      background: linear-gradient(90deg, rgba(227, 6, 19, 0.07), rgba(227, 6, 19, 0.03));
      border-left: 4px solid var(--kastor-red);
      padding: 1rem 1.25rem;
      border-radius: 0 8px 8px 0;
      margin: 1.25rem 0;
      font-weight: 500;
    }

    /* Button */
    .programme-sheet .btn-souscrire {
      display: inline-block;
      margin: 1.25rem 0 0.5rem;
      padding: 0.85rem 2rem;
      background: linear-gradient(135deg, var(--kastor-red) 0%, var(--kastor-red-dark) 100%);
      color: white;
      font-family: 'Montserrat', sans-serif;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-decoration: none;
      text-align: center;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(227, 6, 19, 0.35);
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .programme-sheet .btn-souscrire:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(227, 6, 19, 0.45);
      background: linear-gradient(135deg, var(--kastor-red-light) 0%, var(--kastor-red) 100%);
    }

    .programme-sheet .btn-souscrire:active { transform: translateY(0); }

    /* Stats */
    .programme-sheet .building-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
      margin: 1.5rem 0;
    }

    .programme-sheet .stat {
      background: var(--light-bg);
      border-radius: 10px;
      padding: 1rem;
      text-align: center;
      border: 1px solid var(--border);
    }

    .programme-sheet .stat .value {
      font-family: 'Montserrat', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--kastor-red);
    }

    .programme-sheet .stat .label {
      font-size: 0.8rem;
      color: var(--muted);
      margin-top: 0.25rem;
    }

    /* Vision pillars */
    .programme-sheet .pillars {
      display: grid;
      gap: 1rem;
      margin: 1.5rem 0;
    }

    @media (min-width: 640px) {
      .programme-sheet .pillars { grid-template-columns: 1fr 1fr 1fr; }
    }

    .programme-sheet .pillar {
      background: var(--light-bg);
      border-radius: 10px;
      padding: 1.25rem;
      border-top: 4px solid var(--kastor-red);
    }

    .programme-sheet .pillar h4 {
      font-size: 0.95rem;
      color: var(--kastor-red);
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .programme-sheet .pillar p {
      font-size: 0.9rem;
      color: var(--muted);
    }

    .programme-sheet .pillar ul {
      margin: 0.5rem 0 0 1.1rem;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .programme-sheet .pillar li { margin-bottom: 0.25rem; }

    /* Housing / feature cards */
    .programme-sheet .housing-grid {
      display: grid;
      gap: 1.25rem;
      margin-top: 1.25rem;
    }

    @media (min-width: 640px) {
      .programme-sheet .housing-grid { grid-template-columns: 1fr 1fr; }
    }

    .programme-sheet .housing-card {
      background: var(--light-bg);
      border-radius: var(--radius);
      padding: 1.35rem;
      border: 1px solid var(--border);
    }

    .programme-sheet .housing-card h4 {
      font-size: 1rem;
      color: var(--dark);
      margin-bottom: 0.6rem;
    }

    .programme-sheet .housing-card .tag {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 600;
      background: var(--kastor-red);
      color: white;
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      margin-bottom: 0.75rem;
    }

    .programme-sheet .housing-card ul {
      margin-left: 1.1rem;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .programme-sheet .housing-card li { margin-bottom: 0.3rem; }

    /* Sections grid */
    .programme-sheet .sections-grid {
      display: grid;
      gap: 1.25rem;
      margin-top: 1.25rem;
    }

    @media (min-width: 640px) {
      .programme-sheet .sections-grid { grid-template-columns: 1fr 1fr; }
    }

    .programme-sheet .section-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.5rem;
      border-top: 4px solid var(--kastor-red);
    }

    .programme-sheet .section-card h3 {
      margin-top: 0;
      font-size: 1.05rem;
      color: var(--dark);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .programme-sheet .section-card h3 .num {
      background: var(--kastor-red);
      color: white;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      font-weight: 700;
      flex-shrink: 0;
    }

    .programme-sheet .section-card p, .programme-sheet .section-card ul {
      font-size: 0.95rem;
      color: var(--muted);
      margin-top: 0.6rem;
    }

    .programme-sheet .section-card ul {
      margin-left: 1.1rem;
    }

    .programme-sheet .section-card li { margin-bottom: 0.3rem; }

    /* Conclusion */
    .programme-sheet .conclusion {
      background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
      border: 1px solid #ffc9c9;
      border-radius: var(--radius);
      padding: 1.75rem 1.5rem;
      margin-top: 1.75rem;
    }

    .programme-sheet .conclusion h2 { border-bottom-color: var(--kastor-red); }

    /* Contact block */
    .programme-sheet .contact-grid {
      display: grid;
      gap: 1rem;
      margin-top: 1.25rem;
    }

    @media (min-width: 640px) {
      .programme-sheet .contact-grid { grid-template-columns: 1fr 1fr 1fr; }
    }

    .programme-sheet .contact-item {
      background: var(--light-bg);
      border-radius: 10px;
      padding: 1.1rem;
      text-align: center;
      border: 1px solid var(--border);
    }

    .programme-sheet .contact-item strong {
      display: block;
      color: var(--kastor-red);
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 0.4rem;
    }

    .programme-sheet .contact-item p {
      font-size: 0.95rem;
      color: var(--dark);
      margin: 0;
    }

    .programme-sheet .contact-item a {
      color: var(--kastor-red);
      text-decoration: none;
      font-weight: 600;
    }

    .programme-sheet .contact-item a:hover { text-decoration: underline; }

    /* Footer */
    .programme-sheet footer {
      text-align: center;
      padding: 2rem 1rem;
      color: var(--muted);
      font-size: 0.85rem;
      border-top: 1px solid var(--border);
      margin-top: 2rem;
    }

    .programme-sheet footer a {
      color: var(--kastor-red);
      text-decoration: none;
      font-weight: 600;
    }

    .programme-sheet footer a:hover { text-decoration: underline; }

    .programme-sheet { scroll-behavior: smooth; }

    @media (max-width: 600px) {
      .programme-sheet .card { padding: 1.25rem 1rem; }
      .programme-sheet .hero { padding: 1.2rem 1rem 1.35rem; }
    }

    .programme-sheet .list-check {
      list-style: none;
      margin: 0.75rem 0 0;
    }

    .programme-sheet .list-check li {
      position: relative;
      padding-left: 1.4rem;
      margin-bottom: 0.45rem;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .programme-sheet .list-check li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: var(--kastor-red);
      font-weight: 700;
    }

/* Table */
.programme-sheet .table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.programme-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}

.programme-sheet thead { background: var(--kastor-red); color: white; }

.programme-sheet th {
  padding: 0.85rem 0.9rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.programme-sheet td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.programme-sheet tbody tr:nth-child(even) { background: #faf9f9; }
.programme-sheet tbody tr:hover { background: rgba(227, 6, 19, 0.05); }

/* Phases */
.programme-sheet .phases {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .programme-sheet .phases { grid-template-columns: 1fr 1fr 1fr; }
}

.programme-sheet .phase {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 1.25rem;
  border-top: 4px solid var(--kastor-red);
}

.programme-sheet .phase .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--kastor-red);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.programme-sheet .phase .period {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.programme-sheet .phase p {
  font-size: 0.9rem;
  color: var(--text);
}

/* Equip grid */
.programme-sheet .equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.programme-sheet .equip-item {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--kastor-red);
}

.programme-sheet .equip-item strong {
  color: var(--kastor-red);
  margin-right: 0.25rem;
}

/* Quote */
.programme-sheet .quote {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border-radius: var(--radius);
  border: 1px solid #ffc9c9;
}

/* Departments */
.programme-sheet .departments {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.programme-sheet .departments li {
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  background: var(--light-bg);
  border-radius: 8px;
  border-left: 4px solid var(--kastor-red);
  font-weight: 500;
}

.programme-sheet .departments li span {
  color: var(--kastor-red);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Images */
.programme-sheet .img-wrapper {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.programme-sheet .img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.programme-sheet .img-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.programme-sheet .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.programme-sheet .gallery .img-wrapper { margin: 0; }

.programme-sheet {
  overflow-x: hidden;
  padding-top: 1px;
}

.programme-sheet--ufoa-b [id] { scroll-margin-top: 170px; }
.programme-sheet--ufoa-b h1 { font-size: clamp(1.35rem, 3vw, 2rem); }

/* Contenus éditoriaux Espoir City et Umoja : gabarit Kastor. */
.programme-sheet.programme-editorial {font-family:var(--default-font,'General Sans',sans-serif);}
.programme-editorial h1,.programme-editorial h2,.programme-editorial h3 {font-family:inherit;}
.programme-editorial .programme-editorial-opening {text-align:center;border-bottom:3px solid #b51e29;}
.programme-editorial .programme-editorial-opening h1 {font-size:clamp(1.65rem,3.5vw,2.5rem);color:#7e1119;margin-bottom:1rem;}
.programme-editorial .programme-editorial-subtitle {color:#6f4b52;font-size:1.12rem;max-width:700px;margin:auto;}
.programme-editorial .card > p + p,.programme-editorial .conclusion > p + p {margin-top:1rem;}
.programme-editorial .programme-editorial-intro,.programme-editorial .programme-editorial-pillar {border-left:3px solid #b51e29;}
.programme-editorial .programme-editorial-emphasis {font-weight:600;color:#7e1119;}
.programme-editorial .card ul {padding-left:1.4rem;margin:1rem 0;list-style:disc;}
.programme-editorial .card li {padding-left:.3rem;margin:.45rem 0;}
.programme-editorial .card li::marker {color:#b51e29;}
.programme-editorial .programme-editorial-closing {background:#fff;border:1px solid #b51e29;color:#3d0c13;text-align:center;}
.programme-editorial .programme-editorial-actions {display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:28px;}
.programme-editorial .programme-editorial-actions .btn-souscrire {margin:0;max-width:100%;text-align:center;}
@media(max-width:600px){.programme-editorial .card,.programme-editorial .conclusion {padding:1.35rem 1.15rem;}.programme-editorial .programme-editorial-actions {flex-direction:column;}}

/* Photographies Espoir City : affichage intégral, sans recadrage. */
.programme-sheet--espoir-city .espoir-photo {margin:1.5rem 0 0;border:1px solid #ead4d6;border-radius:12px;overflow:hidden;background:#fff;}
.programme-sheet--espoir-city .espoir-photo a {display:block;}
.programme-sheet--espoir-city .espoir-photo img {display:block;width:100%;height:auto;max-width:100%;}
.programme-sheet--espoir-city .espoir-photo a:focus-visible {outline:3px solid #b51e29;outline-offset:-3px;}
.programme-sheet--espoir-city .espoir-photo-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
@media(max-width:640px){.programme-sheet--espoir-city .espoir-photo-pair {grid-template-columns:1fr;gap:0;}}

/* Médias Umoja : lecture à la demande et photographies sans recadrage. */
.programme-sheet--citeintegration .umoja-video,
.programme-sheet--citeintegration .umoja-photo {
  margin: 1.5rem 0 0;
  overflow: hidden;
  border: 1px solid #ead4d6;
  border-radius: 12px;
  background: #fff;
}
.programme-sheet--citeintegration .umoja-video { margin: 0 0 1.5rem; }
.programme-sheet--citeintegration .umoja-photo a { display: block; }
.programme-sheet--citeintegration .umoja-photo img,
.programme-sheet--citeintegration .umoja-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.programme-sheet--citeintegration .umoja-video video { background: #151515; }
.programme-sheet--citeintegration .umoja-photo figcaption,
.programme-sheet--citeintegration .umoja-video figcaption {
  padding: .75rem 1rem;
  color: #6f4b52;
  font-size: .9rem;
  line-height: 1.5;
  text-align: center;
}
.programme-sheet--citeintegration .umoja-photo a:focus-visible,
.programme-sheet--citeintegration .umoja-video video:focus-visible {
  outline: 3px solid #b51e29;
  outline-offset: -3px;
}

/* Umoja : alternance des cartes de texte et des photographies. */
.programme-sheet--citeintegration .umoja-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.programme-sheet--citeintegration .umoja-story > .umoja-story__text,
.programme-sheet--citeintegration .umoja-story > .umoja-photo {
  min-width: 0;
  margin: 0;
}
.programme-sheet--citeintegration .umoja-story > .umoja-photo {
  box-shadow: var(--shadow);
}
@media (min-width: 992px) {
  .programme-sheet--citeintegration .programme-sheet__container {
    max-width: 1240px;
  }
  .programme-sheet--citeintegration .umoja-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 1.5rem;
  }
  .programme-sheet--citeintegration .umoja-story--reverse {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
  .programme-sheet--citeintegration .umoja-story--reverse > .umoja-photo {
    grid-column: 1;
    grid-row: 1;
  }
  .programme-sheet--citeintegration .umoja-story--reverse > .umoja-story__text {
    grid-column: 2;
    grid-row: 1;
  }
  .programme-sheet--citeintegration .umoja-story__text {
    padding: 1.5rem;
  }
  .programme-sheet--citeintegration .umoja-story .umoja-photo img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
  }
  /* 760 px × 1,30 = 988 px ; 60 vh × 1,30 = 78 vh.
     La largeur suit aussi la hauteur disponible et le ratio de la vidéo. */
  .programme-sheet--citeintegration .umoja-video {
    width: min(100%, 988px, 139.862vh);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .programme-sheet--citeintegration .umoja-video video {
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
  }
}
