/* ── FORMATION IA — Styles spécifiques ── */

/* ── Buttons ── */
.fm-btn-gold {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.fm-btn-gold:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}
.fm-btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.fm-btn-ghost:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ── Label / accent ── */
.fm-label {
  display: inline-block;
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}
.fm-gold { color: var(--color-accent); }

/* ── Section header centré ── */
.fm-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.fm-section-header .fm-label { margin-bottom: 1rem; }
.fm-section-header h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.3;
}

/* ─────────────────────────────────────────
   1. HERO
───────────────────────────────────────── */
.fm-hero {
  padding: 80px 0 60px;
}
.fm-hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 1.33rem;
  align-items: stretch;
}
.fm-hero-h1 {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin: 1rem 0 1.5rem;
}
.fm-hero-desc {
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}
.fm-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.fm-hero-img-wrap {
  display: flex;
}
.fm-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  filter: grayscale(20%);
}

/* ─────────────────────────────────────────
   2. FEATURES (3 colonnes)
───────────────────────────────────────── */
.fm-features {
  background: var(--color-surface);
  padding: 28px 0;
}
.fm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.fm-feature {
  text-align: center;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--color-border);
}
.fm-feature:last-child {
  border-right: none;
}
.fm-feature svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
}
.fm-feature h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.fm-feature p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   3. APPROCHE PRATIQUE
───────────────────────────────────────── */
.fm-approche {
  padding: 80px 0;
}
.fm-approche-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  align-items: center;
}
.fm-approche-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  filter: grayscale(20%);
}
.fm-approche-h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--color-text);
  margin: 0.5rem 0 1.25rem;
  line-height: 1.3;
}
.fm-approche-text p {
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────
   4. POUR QUI ? — Tabs
───────────────────────────────────────── */
.fm-pourqui {
  padding: 60px 0;
}
.fm-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.pq-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 120px;
  padding: 1rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}
.pq-tab.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--color-accent);
}
.pq-tab svg {
  stroke: #666;
  transition: stroke 0.2s;
  flex-shrink: 0;
}
.pq-tab span { transition: color 0.2s; }
.pq-tab.active { border-color: var(--color-accent); }
.pq-tab.active svg { stroke: var(--color-accent); }
.pq-tab.active span { color: var(--color-accent); }
.pq-tab:hover:not(.active) { border-color: var(--color-text-muted); }

.pq-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  position: relative;
}
.pq-panel.open {
  max-height: 400px;
  opacity: 1;
  padding: 1.5rem 3rem 1.5rem 2rem;
}
.pq-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #666;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.pq-close:hover { color: var(--color-text); }
.pq-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.pq-panel p {
  color: var(--color-text-muted);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────
   5. FORMATS POSSIBLES — Accordéon
───────────────────────────────────────── */
.fm-formats {
  padding: 60px 0;
  scroll-margin-top: 80px;
}
.fm-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.fm-accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.fm-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  gap: 1rem;
}
.fm-accordion-title {
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
  flex: 1;
}
.fm-accordion-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
  user-select: none;
}
.fm-accordion-item.open .fm-accordion-icon {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.fm-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.fm-accordion-item.open .fm-accordion-body {
  max-height: 300px;
}
.fm-accordion-desc {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   6. OUTILS MAÎTRISÉS
───────────────────────────────────────── */
.fm-outils {
  padding: 60px 0 80px;
}
.fm-tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.fm-tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.fm-tool-card:hover { border-color: var(--color-accent); }
.fm-tool-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-tool-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text);
  display: block;
}
.fm-tool-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  display: block;
}
.fm-tool-card--more {
  border-style: dashed;
  opacity: 0.6;
}
.fm-tool-more-icon {
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1;
}
.fm-tools-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1023px) {
  .fm-hero-grid { grid-template-columns: 1fr; }
  .fm-hero-img-wrap { display: none; }
  .fm-approche-grid { grid-template-columns: 1fr; }
  .fm-approche-img-wrap { display: none; }
  .fm-tools-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .fm-hero-h1 { font-size: 2.25rem; }
  .fm-hero-ctas { flex-direction: column; }
  .fm-btn-gold, .fm-btn-ghost { text-align: center; }
  .fm-features-grid { grid-template-columns: 1fr; }
  .fm-feature {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .fm-feature:last-child { border-bottom: none; }
  .fm-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fm-tabs::-webkit-scrollbar { display: none; }
  .pq-tab { min-width: 100px; }
  .fm-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-section-header h2 { font-size: 1.75rem; }
}
