/* =========================================================
   CSAPA — Styles Section "Le CSAPA" (pages/csapa/*)
   Version 1.0 — Étape 5
   ========================================================= */

/* ── 1. HÉRO SECONDAIRE ─────────────────────────────────── */
.page-hero-secondary {
  position: relative;
  height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(12,27,58,0.96) 0%, rgba(12,27,58,0.80) 60%, rgba(27,107,58,0.55) 100%),
    var(--csapa-bleu);
}

.page-hero-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(200,169,81,0.04) 0px, rgba(200,169,81,0.04) 1px,
      transparent 1px, transparent 40px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(200,169,81,0.04) 0px, rgba(200,169,81,0.04) 1px,
      transparent 1px, transparent 40px
    );
  pointer-events: none;
}

.page-hero-secondary .container { position: relative; z-index: 2; padding-bottom: 2.5rem; }

.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--csapa-or);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-family: var(--font-titre);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  max-width: 550px;
  line-height: 1.65;
  margin: 0;
}

/* Breadcrumb dans le héro */
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hero-breadcrumb-item {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-breadcrumb-item:hover { color: var(--csapa-or); }
.hero-breadcrumb-item.active { color: var(--csapa-or); font-weight: 600; }
.hero-breadcrumb-sep { font-size: 0.6rem; color: rgba(255,255,255,0.3); }

/* ── 2. LAYOUT PRINCIPAL ────────────────────────────────── */
.page-layout { padding: 3.5rem 0 5rem; }

/* ── 3. SIDEBAR ─────────────────────────────────────────── */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--csapa-gris);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-header {
  padding: 0.85rem 1.25rem;
  background: var(--csapa-bleu);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-widget-header i { color: var(--csapa-or); }

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav-item { border-bottom: 1px solid var(--csapa-gris); }
.sidebar-nav-item:last-child { border-bottom: none; }

.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  font-size: 0.85rem;
  color: #4b5563;
  transition: var(--transition);
  gap: 0.5rem;
}
.sidebar-nav-link:hover {
  background: rgba(200,169,81,0.08);
  color: var(--csapa-bleu);
  padding-left: 1.5rem;
  text-decoration: none;
}
.sidebar-nav-link.active {
  background: rgba(12,27,58,0.05);
  color: var(--csapa-bleu);
  font-weight: 600;
  border-right: 3px solid var(--csapa-or);
}
.sidebar-nav-link i { font-size: 0.6rem; color: #d1d5db; flex-shrink: 0; }
.sidebar-nav-link.active i { color: var(--csapa-or); }

.sidebar-stat-widget {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--csapa-bleu), #1B3A6B);
  color: #fff;
  text-align: center;
}
.sidebar-stat-value {
  font-family: var(--font-titre);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--csapa-or);
  line-height: 1;
  display: block;
}
.sidebar-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
  display: block;
}
.sidebar-stat-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
  display: block;
}

.sidebar-news-item {
  padding: 1.1rem 1.25rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.sidebar-news-item:hover { background: rgba(200,169,81,0.05); text-decoration: none; color: inherit; }
.sidebar-news-date { font-size: 0.68rem; color: #9ca3af; margin-bottom: 0.3rem; }
.sidebar-news-title {
  font-family: var(--font-titre);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--csapa-bleu);
  line-height: 1.35;
}

/* ── 4. CONTENU — ÉLÉMENTS COMMUNS ─────────────────────── */
.content-section { margin-bottom: 3rem; }
.content-section-title {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--csapa-gris);
  position: relative;
}
.content-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--csapa-or);
}

.content-lead {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.content-body {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.8;
}

/* Bloc citation */
.csapa-blockquote {
  border-left: 4px solid var(--csapa-or);
  padding: 1.25rem 1.5rem;
  background: rgba(200,169,81,0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}
.csapa-blockquote p {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--csapa-bleu);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.csapa-blockquote cite {
  font-size: 0.78rem;
  color: #9ca3af;
  font-style: normal;
}

/* Info box */
.info-box {
  background: rgba(12,27,58,0.04);
  border: 1px solid rgba(12,27,58,0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-box-or { border-color: rgba(200,169,81,0.4); background: rgba(200,169,81,0.06); }
.info-box-vert { border-color: rgba(27,107,58,0.3); background: rgba(27,107,58,0.05); }

/* Bouton téléchargement document */
.doc-download-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--csapa-gris);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--csapa-bleu);
  transition: var(--transition);
  margin-bottom: 0.75rem;
}
.doc-download-btn:hover {
  border-color: var(--csapa-or);
  background: rgba(200,169,81,0.05);
  color: var(--csapa-bleu);
  text-decoration: none;
  transform: translateX(3px);
}
.doc-download-icon {
  width: 44px;
  height: 44px;
  background: var(--csapa-bleu);
  color: var(--csapa-or);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.doc-download-body strong { display: block; font-size: 0.88rem; }
.doc-download-body span   { font-size: 0.75rem; color: #9ca3af; }
.doc-download-size {
  margin-left: auto;
  font-size: 0.72rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* ── 5. TIMELINE ─────────────────────────────────────────── */
.csapa-timeline { position: relative; padding: 1rem 0; }
.csapa-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--csapa-or), var(--csapa-vert));
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--csapa-or);
  z-index: 2;
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--csapa-or);
  transform: scale(1.2);
}
.timeline-item.featured .timeline-dot {
  background: var(--csapa-or);
  width: 24px;
  height: 24px;
  left: 9px;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--csapa-or);
  background: rgba(200,169,81,0.12);
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  margin-bottom: 0.35rem;
}

.timeline-body {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.65;
}

/* ── 6. ORGANIGRAMME ─────────────────────────────────────── */
.org-chart-wrapper {
  overflow-x: auto;
  padding: 1rem 0;
}
.org-chart svg { max-width: 100%; display: block; margin: 0 auto; }

/* ── 7. CARTE PROFIL ─────────────────────────────────────── */
.profile-photo-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.profile-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--csapa-bleu) 0%, #1B3A6B 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(200,169,81,0.6);
  border-radius: var(--radius-md);
}
.profile-photo-placeholder i { font-size: 5rem; }
.profile-photo-placeholder span { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 0.5rem; }
.profile-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.profile-badge-bar {
  background: var(--csapa-bleu);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.profile-badge-title {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--csapa-or);
  line-height: 1.25;
}
.profile-badge-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

.mandate-card {
  background: var(--csapa-gris);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.mandate-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}
.mandate-card-value {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 600;
  color: var(--csapa-bleu);
}

.speech-card {
  border-left: 3px solid var(--csapa-or);
  padding: 1rem 1.25rem;
  background: rgba(200,169,81,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1rem;
}
.speech-date { font-size: 0.72rem; color: #9ca3af; margin-bottom: 0.4rem; }
.speech-title { font-family: var(--font-titre); font-size: 0.95rem; font-weight: 600; color: var(--csapa-bleu); margin-bottom: 0.3rem; }
.speech-excerpt { font-size: 0.82rem; color: #6b7280; line-height: 1.6; font-style: italic; }

/* ── 8. GRILLE VP ─────────────────────────────────────────── */
.vp-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.vp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.vp-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--csapa-bleu), #1B3A6B);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,169,81,0.4);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.vp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.vp-region-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(12,27,58,0.85);
  color: var(--csapa-or);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.vp-body { padding: 1.25rem; }
.vp-name { font-family: var(--font-titre); font-size: 1.05rem; font-weight: 700; color: var(--csapa-bleu); margin-bottom: 0.2rem; }
.vp-title-text { font-size: 0.78rem; color: var(--csapa-or); font-weight: 600; margin-bottom: 0.75rem; }
.vp-bio { font-size: 0.82rem; color: #6b7280; line-height: 1.6; }

/* ── 9. TABLEAU PAYS ─────────────────────────────────────── */
.filter-bar {
  background: var(--csapa-gris);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .form-control,
.filter-bar .form-select {
  font-size: 0.85rem;
  border-color: #d1d5db;
}
.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
  border-color: var(--csapa-or);
  box-shadow: 0 0 0 3px rgba(200,169,81,0.2);
}

.pays-table { font-size: 0.85rem; }
.pays-table th { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; color: #6b7280; background: var(--csapa-gris); }
.pays-table td { vertical-align: middle; }
.pays-flag-emoji { font-size: 1.2rem; margin-right: 0.4rem; }
.pays-statut-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Carte SVG Afrique */
.africa-map-wrapper {
  background: var(--csapa-gris);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.africa-map-wrapper svg path {
  fill: var(--csapa-bleu);
  stroke: #fff;
  stroke-width: 0.5;
  transition: fill 0.2s;
  cursor: pointer;
}
.africa-map-wrapper svg path:hover { fill: var(--csapa-or); }
.africa-map-wrapper svg path.membre { fill: var(--csapa-bleu); }
.africa-map-wrapper svg path.observateur { fill: #6b7280; }

/* ── 10. TEXTES FONDATEURS ───────────────────────────────── */
.article-law {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--csapa-gris);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.article-law:hover { border-left-color: var(--csapa-or); background: rgba(200,169,81,0.04); }
.article-law-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--csapa-or);
  margin-bottom: 0.3rem;
}
.article-law-title { font-family: var(--font-titre); font-size: 0.95rem; font-weight: 600; color: var(--csapa-bleu); margin-bottom: 0.4rem; }
.article-law-text { font-size: 0.82rem; color: #6b7280; line-height: 1.65; }

.code-book-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--csapa-gris);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}
.code-book-card:hover { border-color: var(--csapa-or); box-shadow: var(--shadow-sm); }
.code-book-num {
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(12,27,58,0.08);
  line-height: 1;
}
.code-book-title { font-size: 0.82rem; font-weight: 600; color: var(--csapa-bleu); margin-bottom: 0.25rem; }
.code-book-articles { font-size: 0.72rem; color: #9ca3af; }

/* ── 11. RAPPORTS (filtres + grille) ─────────────────────── */
.pub-filter-tabs .nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
}
.pub-filter-tabs .nav-link.active {
  background: var(--csapa-bleu);
  color: #fff;
}

/* ── 12. AGENDA LISTE ────────────────────────────────────── */
.agenda-month-header {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--csapa-bleu);
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--csapa-gris);
  margin-bottom: 1rem;
  position: relative;
}
.agenda-month-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--csapa-or);
}

.agenda-event-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--csapa-gris);
  transition: var(--transition);
}
.agenda-event-row:hover { background: rgba(200,169,81,0.04); padding-left: 0.5rem; }
.agenda-event-row:last-child { border-bottom: none; }

.agenda-date-box {
  width: 52px;
  text-align: center;
  flex-shrink: 0;
  background: var(--csapa-bleu);
  border-radius: var(--radius);
  padding: 0.4rem 0;
  color: #fff;
}
.agenda-date-day { font-family: var(--font-titre); font-size: 1.5rem; font-weight: 700; line-height: 1; display: block; }
.agenda-date-month { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--csapa-or); display: block; }

.agenda-event-info { flex-grow: 1; }
.agenda-event-title { font-weight: 600; font-size: 0.95rem; color: var(--csapa-bleu); margin-bottom: 0.25rem; }
.agenda-event-title a { color: var(--csapa-bleu); text-decoration: none; }
.agenda-event-title a:hover { color: var(--csapa-or); }
.agenda-event-meta { font-size: 0.78rem; color: #9ca3af; display: flex; gap: 1rem; flex-wrap: wrap; }
.agenda-event-meta i { color: var(--csapa-or); margin-right: 0.25rem; }

/* ── 13. ACCRÉDITATIONS ──────────────────────────────────── */
.accred-type-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--csapa-gris);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
}
.accred-type-card:hover { border-color: var(--csapa-or); box-shadow: var(--shadow-md); }

.accred-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--csapa-bleu);
  color: var(--csapa-or);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.accred-title { font-family: var(--font-titre); font-size: 1.05rem; font-weight: 700; color: var(--csapa-bleu); margin-bottom: 0.75rem; }

.accred-steps { list-style: none; padding: 0; margin: 1rem 0; }
.accred-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.83rem;
  color: #4b5563;
}
.accred-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--csapa-or);
  color: var(--csapa-bleu);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── 14. CARRIÈRES ─────────────────────────────────────────── */
.job-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--csapa-gris);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.job-card:hover { border-color: var(--csapa-or); box-shadow: var(--shadow-md); }

.job-dept-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--csapa-bleu);
  color: var(--csapa-or);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.job-info { flex-grow: 1; }
.job-title { font-family: var(--font-titre); font-size: 1rem; font-weight: 700; color: var(--csapa-bleu); margin-bottom: 0.3rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.78rem; color: #6b7280; margin-bottom: 0.5rem; }
.job-meta i { color: var(--csapa-or); margin-right: 0.25rem; }
.job-type-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.15rem 0.55rem; border-radius: 50px; }
.badge-cdi { background: #dcfce7; color: #166534; }
.badge-cdd { background: #dbeafe; color: #1e40af; }
.badge-stage { background: #fef9c3; color: #713f12; }
.job-deadline { font-size: 0.72rem; color: #9ca3af; }
.job-deadline strong { color: #dc2626; }

/* ── 15. ACCORDION FAQ ───────────────────────────────────── */
.faq-item {
  border: 1px solid var(--csapa-gris);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--csapa-bleu);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}
.faq-question:hover { background: rgba(200,169,81,0.05); }
.faq-question[aria-expanded="true"] { background: var(--csapa-bleu); color: #fff; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--csapa-or); }
.faq-icon { font-size: 0.7rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-answer {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.7;
  border-top: 1px solid var(--csapa-gris);
  display: none;
}
.faq-answer.open { display: block; }

/* ── 16. PHASES (Centenaire) ─────────────────────────────── */
.phase-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--csapa-gris);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.phase-num {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-family: var(--font-titre);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(12,27,58,0.05);
  line-height: 1;
}
.phase-period {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--csapa-or);
  margin-bottom: 0.5rem;
}
.phase-title { font-family: var(--font-titre); font-size: 1.1rem; font-weight: 700; color: var(--csapa-bleu); margin-bottom: 0.75rem; }
.phase-body { font-size: 0.83rem; color: #6b7280; line-height: 1.65; }

/* ── GALERIE PLACEHOLDER ─────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.gallery-item {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  background: var(--csapa-bleu);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,27,58,.75) 0%, transparent 55%);
  pointer-events: none;
}
.gallery-item i { display: none; }
.gallery-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  font-size: 0.72rem;
  color: rgba(255,255,255,.85);
  text-align: left;
  padding: 0.65rem 0.85rem;
  line-height: 1.35;
  font-weight: 500;
}

/* Organigramme SVG styles */
.org-node rect { rx: 8; }
.org-level-0 rect { fill: #0C1B3A; }
.org-level-0 text { fill: #C8A951; font-weight: 700; }
.org-level-1 rect { fill: #1B3A6B; }
.org-level-1 text { fill: #fff; }
.org-level-2 rect { fill: #1B6B3A; }
.org-level-2 text { fill: #fff; font-size: 11px; }
.org-level-3 rect { fill: var(--csapa-gris); }
.org-level-3 text { fill: #0C1B3A; font-size: 10px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-secondary { height: 240px; }
}
@media (max-width: 767px) {
  .page-hero-secondary { height: 200px; }
  .page-hero-title { font-size: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; }
  .job-card { flex-direction: column; }
  .csapa-timeline::before { left: 14px; }
  .timeline-item { padding-left: 45px; }
  .timeline-dot { left: 5px; }
}
