/* ─── FORMATION DETAIL PAGE ─────────────────────────── */

.fd-body {
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* ─── HERO ───────────────────────────────────────────── */
.fd-hero {
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 24px 48px;
}
.fd-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

/* Thumbnail */
.fd-hero-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.fd-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111 0%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
}
.fd-thumb-placeholder i {
  width: 80px;
  height: 80px;
}

/* Info */
.fd-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.fd-hero-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.25;
}

.fd-hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.fd-level,
.fd-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.fd-level i,
.fd-duration i {
  width: 15px;
  height: 15px;
}

.fd-hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0 0 22px;
}

.fd-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.fd-price-main {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.fd-price-old {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
}

.btn-buy {
  display: inline-block;
  background: #fff;
  color: #000;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  padding: 14px 30px;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-buy:hover {
  background: rgba(255,255,255,0.88);
}
.btn-buy.full {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.fd-buy-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 10px 0 0;
}

/* ─── CONTENU (2 colonnes) ────────────────────────── */
.fd-content {
  padding: 48px 24px 80px;
}
.fd-content-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Blocs */
.fd-block {
  margin-bottom: 48px;
}
.fd-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ce que vous apprendrez */
.fd-learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fd-learn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}
.fd-learn-item i {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #fff;
  margin-top: 1px;
}

/* ─── ACCORDION ──────────────────────────────────── */
.fd-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fd-module {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.fd-module-header {
  width: 100%;
  background: #000000;
  border: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.fd-module-header:hover {
  background: #000000;
}

.fd-module-num {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.fd-module-name {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.fd-module-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.fd-chevron {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.fd-module-header[aria-expanded="true"] .fd-chevron {
  transform: rotate(180deg);
}

.fd-module-content {
  display: none;
  padding: 0 20px;
  background: #000000;
}
.fd-module-content.open {
  display: block;
}

.fd-module-content ul {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fd-module-content ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}
.fd-module-content ul li i {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* ─── FORMATEUR ──────────────────────────────────── */
.fd-instructor {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
}
.fd-instructor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
}
.fd-instructor-avatar i {
  width: 36px;
  height: 36px;
}
.fd-instructor-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.fd-instructor-role {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}
.fd-instructor-info p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

/* ─── SIDEBAR (sticky) ───────────────────────────── */
.fd-sidebar {
  position: sticky;
  top: 90px;
}

.fd-buy-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fd-buy-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.fd-buy-price-main {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}
.fd-buy-price-old {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
}

.fd-buy-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fd-buy-perks li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.fd-buy-perks li i {
  width: 16px;
  height: 16px;
  color: #fff;
  flex-shrink: 0;
}

.btn-contact-instructor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 12px 20px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-contact-instructor:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.btn-contact-instructor i {
  width: 16px;
  height: 16px;
}

.fd-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  justify-content: center;
}
.fd-back-link:hover {
  color: #fff;
}
.fd-back-link i {
  width: 15px;
  height: 15px;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .fd-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fd-hero-thumb {
    max-width: 480px;
  }
  .fd-content-inner {
    grid-template-columns: 1fr;
  }
  .fd-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 600px) {
  .fd-hero {
    padding: 32px 16px 32px;
  }
  .fd-content {
    padding: 32px 16px 48px;
  }
  .fd-hero-title {
    font-size: 1.4rem;
  }
  .fd-learn-grid {
    grid-template-columns: 1fr;
  }
}
