/* ============================================================
   about.css — Styles de la page À Propos
   Association Dechrist
   ============================================================ */

.about-page-wrapper { background: #fff; }

/* ── HERO ── */
.ap-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  overflow: hidden;
}
.ap-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(30,58,138,0.82) 0%, rgba(29,78,216,0.70) 55%, rgba(10,21,48,0.88) 100%);
  z-index: 1;
}
.ap-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  z-index: 2;
}

/* Slider */
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.ap-hero-shape1 {
  position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(251,191,36,0.1); z-index: 3;
}
.ap-hero-shape2 {
  position: absolute; bottom: -60px; left: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12); z-index: 3;
}
.ap-crumb {
  position: relative; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #dbeafe; font-size: 11.5px; font-weight: 700;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 1.2rem;
}
.ap-hero-title {
  position: relative; z-index: 4;
  font-family: Georgia, serif; color: #fff; font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.1; margin-bottom: 0.8rem;
}
.ap-hero-title em { color: #fbbf24; font-style: italic; }
.ap-hero-sub {
  position: relative; z-index: 4;
  color: #bfdbfe; font-size: 14.5px; max-width: 480px; line-height: 1.7;
}

/* Slider dots */
.hero-dots {
  position: absolute; bottom: 1.8rem; left: 50%;
  transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: all 0.3s; padding: 0;
}
.hero-dot.active { background: #fbbf24; width: 24px; border-radius: 4px; }

/* ── STATS FLOATING ── */
.stats-wrap {
  max-width: 780px; margin: -3.2rem auto 0;
  position: relative; z-index: 5; padding: 0 1.5rem;
}
.stats-grid {
  background: #fff; border-radius: 22px;
  box-shadow: 0 16px 40px rgba(30,58,138,0.14);
  display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden;
}
.stat-cell {
  padding: 1.6rem 1rem; text-align: center;
  border-right: 1px solid #f1f5f9;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: Georgia, serif; font-weight: 700;
  font-size: 1.9rem; color: #1e3a8a; line-height: 1;
}
.stat-num em { color: #f59e0b; font-style: normal; }
.stat-label {
  color: #94a3b8; font-size: 11.5px; font-weight: 700;
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ── TAB BAR ── */
.tab-bar-wrap { max-width: 780px; margin: 2.5rem auto 0; padding: 0 1.5rem; }
.tab-bar {
  display: flex; gap: 0.5rem; background: #f8fafc;
  border-radius: 16px; padding: 0.4rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0.85rem 1rem; background: none; border: none; border-radius: 12px;
  cursor: pointer; font-size: 13px; font-weight: 700; color: #64748b;
  transition: all 0.25s; white-space: nowrap; min-width: 0;
}
.tab-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tab-btn:hover:not(.active) { color: #1d4ed8; }
.tab-btn.active {
  background: #1e3a8a; color: #fff;
  box-shadow: 0 6px 16px rgba(30,58,138,0.3);
}
.tab-btn.active svg { color: #fbbf24; }

/* ── TAB CONTENT ── */
.tab-content { max-width: 1000px; margin: 0 auto; padding: 3.5rem 1.5rem 0; }

.tc-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }

.tc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eff6ff; color: #1d4ed8;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 99px; margin-bottom: 1rem;
}
.tc-title {
  font-family: Georgia, serif; color: #1e3a8a;
  font-size: 1.7rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.25;
}
.tc-text { color: #64748b; font-size: 14px; line-height: 1.85; margin-bottom: 1rem; }
.tc-text strong { color: #1e3a8a; }

.tc-points { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.3rem; }
.tc-point { display: flex; align-items: flex-start; gap: 10px; }
.tc-point-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: #fef3c7; display: flex; align-items: center; justify-content: center;
}
.tc-point-icon svg { width: 13px; height: 13px; color: #d97706; }
.tc-point p { font-size: 13px; color: #475569; line-height: 1.6; padding-top: 2px; }

/* Image visuelle */
.tc-visual { position: relative; }
.tc-img-main {
  width: 100%; aspect-ratio: 4/3; border-radius: 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 45px rgba(30,58,138,0.22);
}
.tc-img-main img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 24px; }
.tc-img-main svg { display: none; }
.tc-img-badge {
  position: absolute; bottom: -16px; left: -16px; background: #fff; border-radius: 16px;
  padding: 0.9rem 1.1rem; box-shadow: 0 12px 28px rgba(15,23,42,0.14);
  display: flex; align-items: center; gap: 10px;
}
.tc-img-badge-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #fbbf24;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tc-img-badge-icon svg { width: 17px; height: 17px; color: #fff; }
.tc-img-badge strong { display: block; font-size: 12.5px; color: #1e3a8a; font-weight: 800; }
.tc-img-badge span { font-size: 10.5px; color: #94a3b8; }

/* ── TEAM GRID ── */
.team-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem;
}
.team-card {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(30,58,138,0.1); }
.team-photo {
  aspect-ratio: 1/1; background: linear-gradient(135deg,#1d4ed8,#1e3a8a);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.team-photo span { color: #fff; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 700; }
.team-body { padding: 1.1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.team-name { font-weight: 800; color: #1e3a8a; font-size: 13.5px; margin-bottom: 2px; }
.team-role { color: #f59e0b; font-size: 11.5px; font-weight: 700; margin-bottom: 8px; }
.team-exp {
  margin-top: auto; display: flex; align-items: center; gap: 5px;
  padding-top: 8px; border-top: 1px solid #f1f5f9;
}
.team-exp svg { width: 13px; height: 13px; color: #94a3b8; flex-shrink: 0; }
.team-exp span { color: #94a3b8; font-size: 10.5px; font-weight: 600; }

/* ── ENGAGEMENTS ── */
.eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.eng-card {
  background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 18px;
  padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
}
.eng-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: #1e3a8a; display: flex; align-items: center; justify-content: center;
}
.eng-icon svg { width: 19px; height: 19px; color: #fbbf24; }
.eng-card h4 { font-family: Georgia, serif; color: #1e3a8a; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.eng-card p { color: #64748b; font-size: 12.5px; line-height: 1.6; }

/* ── CTA ── */
.cta-block { max-width: 1000px; margin: 3.5rem auto 0; padding: 0 1.5rem 3.5rem; }
.cta-inner {
  background: linear-gradient(135deg,#1e3a8a,#0a1530); border-radius: 28px;
  padding: 3rem 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.cta-shape {
  position: absolute; top: -40px; right: 10%;
  width: 140px; height: 140px; border-radius: 50%; background: rgba(251,191,36,0.1);
}
.cta-inner h3 {
  position: relative; z-index: 2;
  font-family: Georgia, serif; color: #fff; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.7rem;
}
.cta-inner h3 em { color: #fbbf24; font-style: italic; }
.cta-inner p {
  position: relative; z-index: 2; color: #bfdbfe;
  font-size: 13.5px; max-width: 440px; margin: 0 auto 1.6rem; line-height: 1.7;
}
.cta-btns { position: relative; z-index: 2; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.cta-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fbbf24; color: #1e3a8a; font-weight: 800; font-size: 13.5px;
  padding: 0.9rem 1.8rem; border-radius: 99px; text-decoration: none;
}
.cta-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-weight: 800; font-size: 13.5px;
  padding: 0.9rem 1.8rem; border-radius: 99px; text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { padding: 2rem 1.5rem; }
}

/* Petite tablette / grand mobile */
@media (max-width: 760px) {
  .ap-hero { min-height: 340px; padding: 2.5rem 1rem 4.5rem; }
  .tc-split { grid-template-columns: 1fr; gap: 2rem; }
  /* L'image apparaît APRÈS le texte sur mobile */
  .tc-visual { order: -1; }
  .tc-img-badge { bottom: -10px; left: -8px; padding: 0.7rem 0.9rem; }
  .eng-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 2rem 1.2rem; border-radius: 20px; }
  .tab-content { padding: 2rem 1rem 0; }
}

/* Mobile */
@media (max-width: 540px) {
  .ap-hero-title { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid #f1f5f9; padding: 1rem; }
  .stat-cell:last-child { border-bottom: none; }
  .tab-btn { font-size: 11.5px; padding: 0.7rem 0.8rem; }
  .tc-title { font-size: 1.3rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .cta-btn-primary, .cta-btn-outline { padding: 0.75rem 1.2rem; font-size: 12.5px; width: 100%; justify-content: center; }
}

/* Très petit mobile */
@media (max-width: 380px) {
  .team-grid { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
  .tab-btn span { display: none; } /* Cache les labels, garde juste les icônes */
  .tab-btn { padding: 0.7rem; flex: 0 0 auto; }
}
