/* === FORMATIONS DETAIL === */
.formations-detail {
  padding: var(--section-spacing) 0;
}

.fd-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: #fff;
  transition: box-shadow var(--t-base);
}
.fd-card:hover {
  box-shadow: var(--shadow-sm);
}

.fd-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.fd-bar {
  width: 4px;
  min-height: 48px;
  border-radius: 2px;
  flex-shrink: 0;
}
.fd-bar-teal {
  background: var(--color-primary);
}
.fd-bar-green {
  background: var(--color-green);
}
.fd-bar-blue {
  background: var(--color-blue);
}

.fd-title-wrap {
  flex: 1 1 200px;
  min-width: 0;
}
.fd-title-wrap h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 0.25rem;
  overflow-wrap: normal;
  word-break: normal;
}
.fd-subtitle {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.fd-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-alpha);
  color: var(--color-primary-dark);
  border: 1px solid rgba(10, 191, 188, 0.25);
  white-space: nowrap;
}

.fd-body {
  padding: 2rem;
}

.fd-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.fd-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-light);
}
.fd-meta-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.fd-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.fd-desc p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.fd-desc p:last-child {
  margin-bottom: 0;
}

.fd-program h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.fd-program ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fd-program li {
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}
.fd-program li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.fd-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* === FAQ (page Formations) === */
.accessibility-note {
  padding: 0 0 2rem;
}

.faq-section {
  padding: var(--section-spacing) 0;
  background: var(--color-section-alt);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
}
.faq-question {
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  float: right;
  color: var(--color-primary);
  font-weight: 700;
}
.faq-item[open] .faq-question::after {
  content: "\2212";
}
.faq-answer p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  padding-bottom: 1.1rem;
}
.faq-answer a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Formations CTA section */
.formations-cta-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-bg-soft);
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.formations-cta-inner h2 {
  margin-bottom: 0.75rem;
}
.formations-cta-inner p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === LEGAL PAGES === */
.legal-content {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
}
.legal-body h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.legal-body ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 0.75rem;
}
.legal-body li {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}
.legal-body a {
  color: var(--color-primary);
  text-decoration: underline;
}
