/* ════════════════════════════════════════════════════════════
   TGAclass — Pages À propos & FAQ
   Design système : Navy · Gold · Blue Royal
   ════════════════════════════════════════════════════════════ */

/* ── Héros de page ─────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(13,34,87,0.95) 0%, rgba(13,34,87,0.85) 60%, transparent 100%),
    linear-gradient(170deg, #071540 0%, #0D2257 40%, #1A3F8F 100%);
  z-index: 0;
}

/* Grille géométrique animée en fond */
.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(212,160,23,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
}

/* Orbes lumineux */
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.orb-gold {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,160,23,.22) 0%, transparent 70%);
  top: -100px; right: -80px;
  animation: orbDrift 14s ease-in-out infinite alternate;
}
.orb-blue {
  width: 500px; height: 350px;
  background: radial-gradient(circle, rgba(21,101,192,.18) 0%, transparent 70%);
  bottom: -60px; left: -100px;
  animation: orbDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.94); }
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.35);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.page-hero-eyebrow span {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.page-hero-title .t-gold {
  color: var(--gold-light);
  position: relative;
}
.page-hero-title .t-gold::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  border-radius: 2px;
  animation: lineReveal .8s .3s ease both;
  transform-origin: left;
}
@keyframes lineReveal { from{transform:scaleX(0)} to{transform:scaleX(1)} }

.page-hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 32px;
}

.page-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Breadcrumb */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.page-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--gold-light); }
.page-breadcrumb-sep { font-size: 10px; }

/* ── Layout principal ──────────────────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-section {
  padding: 80px 0;
}
.page-section-alt {
  background: var(--blue-sky);
  padding: 80px 24px;
}
[data-theme="dark"] .page-section-alt {
  background: rgba(13,27,62,.4);
}

/* Section header centré */
.section-header-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-header-center .section-eyebrow { display: inline-flex; }
.section-header-center .section-title { margin-top: 12px; margin-bottom: 16px; }
.section-header-center p {
  font-size: 16px;
  color: var(--text-light, #5B7FBA);
  line-height: 1.75;
}

/* ── CARDS VALEURS / FEATURES ──────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(21,101,192,.1);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(13,27,62,.07);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 64px rgba(13,27,62,.14); }
.feature-card:hover::before { transform: scaleX(1); }

[data-theme="dark"] .feature-card {
  background: rgba(13,27,62,.6);
  border-color: rgba(255,255,255,.08);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
}
.fi-blue  { background: linear-gradient(135deg, rgba(21,101,192,.15), rgba(21,101,192,.06)); }
.fi-gold  { background: linear-gradient(135deg, rgba(212,160,23,.18), rgba(212,160,23,.07)); }
.fi-green { background: linear-gradient(135deg, rgba(5,150,105,.12), rgba(5,150,105,.05)); }
.fi-navy  { background: linear-gradient(135deg, rgba(13,34,87,.15), rgba(13,34,87,.06)); }
.fi-purple{ background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(124,58,237,.05)); }
.fi-red   { background: linear-gradient(135deg, rgba(220,38,38,.1), rgba(220,38,38,.04)); }
.feature-icon svg { width: 26px; height: 26px; }

.feature-title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 10px;
  line-height: 1.25;
}
[data-theme="dark"] .feature-title { color: #e8f0ff; }

.feature-desc {
  font-size: 14.5px;
  color: var(--text-light, #5B7FBA);
  line-height: 1.75;
}

/* ── TIMELINE / HISTOIRE ───────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 0 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--blue), transparent);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 36px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -40px; top: 4px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: white;
  box-shadow: 0 0 0 4px rgba(212,160,23,.2);
  z-index: 1;
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
[data-theme="dark"] .timeline-title { color: #e8f0ff; }
.timeline-text {
  font-size: 14.5px;
  color: var(--text-light, #5B7FBA);
  line-height: 1.75;
}

/* ── ÉQUIPE ────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.team-card {
  background: #fff;
  border: 1px solid rgba(21,101,192,.1);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(13,27,62,.06);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(13,27,62,.13); }
[data-theme="dark"] .team-card { background: rgba(13,27,62,.6); border-color: rgba(255,255,255,.08); }

.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 18px;
  position: relative;
}
.team-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(212,160,23,.4);
}
.team-avatar-initials {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900; color: white;
  border: 3px solid rgba(212,160,23,.4);
  box-shadow: 0 8px 28px rgba(13,27,62,.2);
}
.team-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 4px;
}
[data-theme="dark"] .team-name { color: #e8f0ff; }
.team-role {
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.team-bio {
  font-size: 13.5px;
  color: var(--text-light, #5B7FBA);
  line-height: 1.7;
}
.team-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.team-social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(21,101,192,.07);
  border: 1px solid rgba(21,101,192,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  text-decoration: none;
  transition: all .25s;
}
.team-social-btn:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.team-social-btn svg { width: 15px; height: 15px; }

/* ── STATS BAND ────────────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-navy, #071540) 100%);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,160,23,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats-band-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stat-band-item {}
.stat-band-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-band-value span { color: var(--gold-light); }
.stat-band-label {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
  font-weight: 500;
}

/* ── CTA BAND ──────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(212,160,23,.1) 0%, rgba(21,101,192,.08) 100%);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 32px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px 80px;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(212,160,23,.12), transparent);
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: var(--blue-deep);
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
}
[data-theme="dark"] .cta-band-title { color: #e8f0ff; }
.cta-band-desc {
  font-size: 16px;
  color: var(--text-light, #5B7FBA);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 28px;
  position: relative;
}
.cta-band-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── FAQ ACCORDION ─────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Sidebar catégories FAQ */
.faq-cats {
  position: sticky;
  top: 88px;
  align-self: start;
}
.faq-cats-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light, #5B7FBA);
  margin-bottom: 12px;
  padding-left: 14px;
}
.faq-cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-light, #5B7FBA);
  cursor: pointer;
  transition: all .22s;
  text-align: left;
  font-family: var(--font-body);
  margin-bottom: 3px;
}
.faq-cat-btn:hover { background: rgba(21,101,192,.07); color: var(--blue); }
.faq-cat-btn.active {
  background: linear-gradient(135deg, rgba(21,101,192,.12), rgba(21,101,192,.05));
  color: var(--blue);
  font-weight: 700;
}
.faq-cat-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.faq-cat-count {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  background: rgba(21,101,192,.1);
  color: var(--blue);
  padding: 2px 7px; border-radius: 100px;
}

/* Groupe de questions */
.faq-group { margin-bottom: 40px; }
.faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(21,101,192,.1);
}
[data-theme="dark"] .faq-group-title { color: #e8f0ff; border-bottom-color: rgba(255,255,255,.08); }
.faq-group-title svg { width: 18px; height: 18px; }

/* Accordion item */
.faq-item {
  background: #fff;
  border: 1px solid rgba(21,101,192,.1);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.faq-item:hover { box-shadow: 0 4px 20px rgba(13,27,62,.08); }
.faq-item.open {
  border-color: rgba(21,101,192,.3);
  box-shadow: 0 6px 28px rgba(21,101,192,.1);
}
[data-theme="dark"] .faq-item {
  background: rgba(13,27,62,.5);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .faq-item.open { border-color: rgba(100,181,246,.3); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 15px; font-weight: 700;
  color: var(--blue-deep);
  transition: color .2s;
}
[data-theme="dark"] .faq-question { color: #c8dcf8; }
.faq-item.open .faq-question { color: var(--blue); }
.faq-question::-webkit-details-marker { display: none; }

.faq-q-text { flex: 1; line-height: 1.45; }

.faq-chevron {
  width: 28px; height: 28px;
  background: rgba(21,101,192,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.faq-item.open .faq-chevron {
  background: var(--blue);
  transform: rotate(180deg);
}
.faq-chevron svg { width: 14px; height: 14px; }
.faq-item.open .faq-chevron svg { stroke: white; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
}
.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-light, #5B7FBA);
  line-height: 1.8;
  border-top: 1px solid rgba(21,101,192,.07);
  padding-top: 16px;
}
[data-theme="dark"] .faq-answer-inner { color: rgba(168,191,232,.85); border-top-color: rgba(255,255,255,.06); }
.faq-answer-inner strong { color: var(--blue-deep); }
[data-theme="dark"] .faq-answer-inner strong { color: #a8c4f0; }
.faq-answer-inner a { color: var(--blue); text-decoration: underline; }
.faq-answer-inner ul { padding-left: 20px; margin: 10px 0; }
.faq-answer-inner li { margin-bottom: 6px; }
.faq-answer-inner .faq-highlight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(21,101,192,.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-top: 12px;
}
.faq-answer-inner .faq-highlight svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* Recherche FAQ */
.faq-search-wrap {
  max-width: 560px;
  margin: 0 auto 48px;
  position: relative;
}
.faq-search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-light, #5B7FBA);
  pointer-events: none;
}
.faq-search {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid rgba(21,101,192,.2);
  border-radius: 100px;
  background: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--blue-deep);
  outline: none;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(13,27,62,.07);
}
.faq-search:focus {
  border-color: rgba(21,101,192,.5);
  box-shadow: 0 0 0 4px rgba(21,101,192,.08), 0 4px 20px rgba(13,27,62,.1);
}
[data-theme="dark"] .faq-search { background: rgba(13,27,62,.8); color: #e8f0ff; }
.faq-search::placeholder { color: var(--text-light, #94A3B8); }

/* Compteur résultats recherche */
.faq-search-count {
  text-align: center;
  font-size: 13px;
  color: var(--text-light, #94A3B8);
  margin-bottom: 24px;
  min-height: 20px;
  transition: opacity .25s;
}

/* Contact rapide FAQ */
.faq-contact-strip {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-navy, #071540));
  border-radius: 24px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
}
.faq-contact-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.faq-contact-desc {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}
.faq-contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── REVEAL animation ──────────────────────────────────────── */
.reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-up.hidden-start {
  opacity: 0;
  transform: translateY(28px);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-cats {
    position: static;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .faq-cats-title { display: none; }
  .faq-cat-btn {
    padding: 8px 14px;
    border: 1.5px solid rgba(21,101,192,.2);
    background: #fff;
    border-radius: 100px;
    width: auto;
    font-size: 13px;
  }
  [data-theme="dark"] .faq-cat-btn { background: rgba(13,27,62,.5); }
  .faq-cat-btn.active { border-color: var(--blue); }
  .faq-cat-count { display: none; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 640px) {
  .page-hero { min-height: 380px; padding: 100px 20px 60px; }
  .page-section { padding: 56px 0; }
  .page-section-alt { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-band-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-band { padding: 40px 24px; margin: 0 16px 56px; border-radius: 24px; }
  .faq-contact-strip {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .timeline { padding-left: 32px; }
  .timeline::before { left: 10px; }
  .timeline-dot { left: -32px; width: 22px; height: 22px; font-size: 9px; }
}

@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; }
}