:root {
  --fe-accent: #0F56B3;
  --fe-accent-deep: #0B3F8A;
  --fe-ink: #12161F;
  --fe-soft: #5A6473;
  --fe-line: #E3E7EE;
  --fe-bg: #FFFFFF;
  --fe-bg-alt: #F6F8FB;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fe-ink);
  background: var(--fe-bg);
  line-height: 1.65;
}
a { color: var(--fe-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.fe-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--fe-line);
}
.fe-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fe-ink); }
.fe-brand:hover { text-decoration: none; }
.fe-brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--fe-accent-deep), var(--fe-accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff;
}
.fe-brand-text { font-weight: 800; }
.fe-nav { display: flex; gap: 18px; font-size: 0.92rem; font-weight: 600; }

/* Hero */
.fe-hero {
  background: linear-gradient(160deg, var(--fe-accent-deep), var(--fe-accent));
  color: #fff; padding: 64px 24px; text-align: center;
}
.fe-hero h1 { margin: 0 0 16px; font-size: 2.1rem; line-height: 1.25; }
.fe-hero-sub { max-width: 640px; margin: 0 auto 28px; opacity: 0.92; }
.fe-cta {
  display: inline-block; background: #fff; color: var(--fe-accent-deep);
  padding: 13px 26px; border-radius: 10px; font-weight: 800;
}
.fe-cta:hover { text-decoration: none; opacity: 0.92; }

/* Sections */
.fe-section { max-width: 860px; margin: 0 auto; padding: 48px 24px; }
.fe-section h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.fe-section h2:first-child { margin-top: 0; }
.fe-section p { color: #2A3140; }
.fe-steps { padding-left: 20px; }
.fe-steps li { margin-bottom: 14px; color: #2A3140; }

/* Grille de cours */
.fe-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 20px;
}
.fe-card {
  border: 1px solid var(--fe-line); border-radius: 12px; overflow: hidden;
  background: #fff; color: var(--fe-ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.fe-card:hover {
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15,86,179,0.12);
  transform: translateY(-2px);
}
.fe-card-img { aspect-ratio: 16/9; background: var(--fe-bg-alt); }
.fe-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fe-card-body { padding: 14px; }
.fe-card-body h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; }
.fe-card-instr { margin: 0 0 10px; font-size: 0.85rem; color: var(--fe-soft); }
.fe-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fe-rating { font-size: 0.85rem; color: #B4690E; font-weight: 700; }
.fe-rating em { font-style: normal; color: var(--fe-soft); font-weight: 500; }
.fe-price { font-weight: 800; }
.fe-skel {
  height: 220px; border-radius: 12px;
  background: linear-gradient(90deg, #EEF1F6 25%, #F7F9FC 50%, #EEF1F6 75%);
  background-size: 200% 100%; animation: fe-shine 1.3s linear infinite;
}
@keyframes fe-shine { to { background-position: -200% 0; } }
.fe-empty { color: var(--fe-soft); text-align: center; padding: 30px 0; }

/* FAQ */
.fe-faq {
  border-bottom: 1px solid var(--fe-line); padding: 14px 0;
}
.fe-faq summary { cursor: pointer; font-weight: 700; }
.fe-faq p { margin: 10px 0 0; color: #2A3140; }

/* Footer */
.fe-footer {
  border-top: 1px solid var(--fe-line); margin-top: 40px;
  padding: 24px; text-align: center; color: var(--fe-soft); font-size: 0.88rem;
}
.fe-footer nav { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }

@media (max-width: 600px) {
  .fe-hero { padding: 48px 20px; }
  .fe-hero h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fe-card, .fe-skel { transition: none; animation: none; }
}