/* ===== FRICA SCHOOL — Thème Jaune #fde047 + Noir ===== */
:root {
  --brand:        #fde047;
  --brand-hover:  #facc15;
  --brand-dark:   #000000;
  --brand-mid:    #ca8a04;
  --brand-pale:   #fefce8;
  --brand-border: #fde047;
  --text-dark:    #111111;
  --text-mid:     #444444;
  --text-light:   #777777;
}

/* ===== NAVBAR ===== */
.navbar-school {
  background: rgba(255,255,255,0.97);
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 2px 16px rgba(253,224,71,0.15);
}
.navbar-school.scrolled {
  background: rgba(255,255,255,0.99);
}
.navbar-school .nav-link {
  color: var(--text-mid);
  font-weight: 600;
}
.navbar-school .nav-link:hover,
.navbar-school .nav-link.active { color: var(--text-dark); }
.navbar-school .back-btn-school {
  background: var(--brand);
  color: var(--text-dark);
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
}
.navbar-school .back-btn-school:hover {
  background: var(--brand-hover);
}
.navbar-school .hamburger span { background: var(--text-dark); }

/* ===== HERO ===== */
.fs-hero {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.fs-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(253,224,71,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 5% 80%, rgba(253,224,71,0.10) 0%, transparent 65%);
}

.fs-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(253,224,71,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253,224,71,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

.fs-hero::before {
  content: '🎓';
  position: absolute;
  right: 7%;
  top: 15%;
  font-size: 240px;
  opacity: 0.04;
  transform: rotate(-10deg);
  pointer-events: none;
}

.fs-hero-content {
  position: relative;
  max-width: 720px;
}

.fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.fs-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.fs-hero-content h1 span {
  background: linear-gradient(135deg, #ca8a04, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fs-hero-content p {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-dark);
  color: var(--brand);
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--text-dark);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: 0.25s;
}
.btn-outline:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

/* Hero stats row — override main.css absolute positioning */
.fs-hero .hero-stats {
  position: static;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 48px;
}
.hero-stat { text-align: left; }
.hero-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}
.hero-stat-value span { color: var(--brand-mid); }
.hero-stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===== SECTIONS COMMUNES ===== */
.section-pad { padding: 96px 5%; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: var(--brand);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== DOMAINES DE FORMATION ===== */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.domain-card {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  padding: 32px 28px;
  transition: 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand);
  opacity: 0;
  transition: 0.3s;
}
.domain-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(253,224,71,0.25);
  transform: translateY(-4px);
}
.domain-card:hover::before { opacity: 1; }

.domain-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.domain-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.domain-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 18px;
}
.domain-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.domain-tag {
  background: var(--brand-pale);
  color: var(--text-dark);
  border: 1px solid rgba(253,224,71,0.5);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.domain-duration {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== CERTIFICATIONS ===== */
.certif-section {
  background: var(--brand-pale);
}
.certif-section .section-tag {
  background: var(--brand);
  color: var(--text-dark);
}
.certif-section .section-title { color: var(--text-dark); }
.certif-section .section-subtitle { color: var(--text-mid); }

.certif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 56px;
}

.certif-card {
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(253,224,71,0.1);
}
.certif-card:hover {
  box-shadow: 0 8px 28px rgba(253,224,71,0.3);
  transform: translateY(-4px);
}
.certif-badge {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.certif-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.certif-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.certif-card .certif-level {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  background: var(--brand);
  color: var(--text-dark);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.certif-partners {
  text-align: center;
}
.certif-partners p {
  color: var(--text-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.partner-pill {
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--text-dark);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: 0.2s;
}
.partner-pill:hover {
  background: var(--brand);
}

/* ===== FORMATS ===== */
.formats-section { background: #f9fafb; }

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.format-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 30px;
  text-align: center;
  border: 2px solid transparent;
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.format-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 28px rgba(253,224,71,0.2);
  transform: translateY(-4px);
}
.format-icon {
  font-size: 42px;
  margin-bottom: 16px;
  display: block;
}
.format-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.format-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.format-features {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.format-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
}
.format-feature::before {
  content: '✓';
  color: var(--text-dark);
  background: var(--brand);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 18px;
  text-align: center;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--text-dark);
  padding: 72px 5%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stat-item {}
.stat-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}
.stat-value span { color: var(--brand); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===== PROCESSUS ===== */
.process-section {}
.process-steps {
  display: flex;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--brand);
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--text-dark);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(253,224,71,0.4);
}
.step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: var(--text-dark);
  color: var(--brand);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.process-step h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-section { background: #f9fafb; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form-grid .full-width { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  transition: 0.2s;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(253,224,71,0.2);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--text-dark);
  color: var(--brand);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  margin-top: 8px;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.btn-submit:hover { background: #222; transform: translateY(-1px); }
.btn-submit.success { background: #059669; color: #fff; }

/* ===== FOOTER ===== */
.fs-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 5% 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,0.45);
}
.footer-links h4 {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: 0.2s;
}
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}
.footer-bottom a { color: var(--brand); }

/* ===== FADE-IN ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--brand);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: 0.3s;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(253,224,71,0.5);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 64px 5%; }
  .section-header { margin-bottom: 40px; }

  .fs-hero { padding: 100px 5% 56px; }
  .fs-hero-content h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .fs-hero-content p { font-size: 16px; margin-bottom: 28px; }
  .fs-hero .hero-stats { display: none; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; padding: 14px 20px; }

  .nav-menu { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 20px; gap: 6px; border-bottom: 2px solid var(--brand); }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
  .hamburger span { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: 0.3s; }

  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: 32px; }
  .process-steps::before { display: none; }
  .footer-top { flex-direction: column; gap: 28px; }

  input, select, textarea { font-size: 16px !important; }
  .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 480px) {
  .certif-partners { flex-direction: column; align-items: flex-start; gap: 12px; }
}
