.courses-page {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* =========================
   HERO
========================= */

.courses-hero {
  padding: 3.5rem 0 3rem;
  background:
    linear-gradient(
      90deg,
      rgba(10,22,40,0.65) 0%,
      rgba(10,22,40,0.45) 35%,
      rgba(10,22,40,0.15) 70%,
      rgba(10,22,40,0.05) 100%
    ),
    url("/static/img/photo-accueil.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
  position: relative;
  overflow: hidden;
}

.courses-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 32, .30), rgba(6, 18, 32, .08));
  pointer-events: none;
}

.courses-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.courses-hero .container {
  position: relative;
  z-index: 1;
}

.courses-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 2rem;
  align-items: center;
}

.courses-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.courses-title {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 780px;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}

.courses-subtitle {
  max-width: 740px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: rgba(255,255,255,.93);
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.courses-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.courses-hero-actions .btn {
  border-radius: 999px;
  padding: .82rem 1.4rem;
  font-weight: 700;
}

.courses-hero-panel {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(0,0,0,.16);
}

.courses-hero-panel h3 {
  margin: 0 0 .9rem 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
}

.courses-hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.courses-hero-points li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .9rem;
  color: rgba(255,255,255,.96);
  line-height: 1.65;
  font-size: .96rem;
}

.courses-hero-points i {
  color: #d7f8e3;
  margin-top: .18rem;
  font-size: 1rem;
}

/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 2.6rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: #edf8f1;
  color: #198754;
  font-weight: 700;
  font-size: .9rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: .8rem;
  color: #172435;
  letter-spacing: -.02em;
}

.section-heading p {
  color: #66727d;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 0;
}

/* =========================
   METHOD
========================= */

.courses-method {
  padding: 4.2rem 0 2.8rem;
}

.method-card {
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 1.25rem;
  padding: 1.7rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
  border-color: #dce7df;
}

.method-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25,135,84,.10);
  color: #198754;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.method-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: .7rem;
}

.method-card p {
  color: #4b5563;
  line-height: 1.8;
  margin: 0;
}

/* =========================
   COURSES
========================= */

.courses-list {
  padding: 1.2rem 0 4rem;
}

.course-card {
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
  margin-bottom: 2rem;
}

.course-media {
  height: 100%;
}

.course-card .course-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.course-body {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: #eef7f1;
  color: #198754;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.course-title {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: .95rem;
  line-height: 1.15;
}

.course-text {
  color: #374151;
  line-height: 1.85;
  font-size: 1.02rem;
  margin-bottom: 1.15rem;
}

.course-audience {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1rem;
  color: #4b5563;
  font-size: .96rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.course-audience strong {
  color: #111827;
  margin-right: .35rem;
}

.course-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem 0;
}

.course-features li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: #4b5563;
  margin-bottom: .8rem;
  line-height: 1.7;
}

.course-features i {
  color: #198754;
  margin-top: .2rem;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .35rem;
}

.course-actions .btn {
  border-radius: 999px;
  padding: .82rem 1.3rem;
  font-weight: 700;
}

.course-cta-primary {
  background: linear-gradient(135deg, #198754, #146c43);
  border: none;
  color: #fff;
}

.course-cta-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #157347, #115c39);
}

.course-cta-secondary {
  border: 2px solid #198754;
  color: #198754;
  background: #fff;
}

.course-cta-secondary:hover {
  background: #198754;
  color: #fff;
}

/* =========================
   REGISTRATION
========================= */

.registration-section {
  padding: 3.8rem 0 5rem;
}

.registration-box {
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 1.6rem;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.registration-left {
  background: linear-gradient(135deg, #198754, #146c43);
  color: #fff;
  padding: 2.1rem;
  height: 100%;
}

.registration-left h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.registration-left p {
  color: rgba(255,255,255,.94);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.registration-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.registration-points {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
}

.registration-points li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .9rem;
  color: rgba(255,255,255,.96);
  line-height: 1.7;
}

.registration-points i {
  color: #d1fae5;
  margin-top: .2rem;
}

.registration-right {
  padding: 2rem;
}

.registration-right .form-label {
  color: #1f2937;
}

.registration-right .form-control,
.registration-right .form-select {
  border-radius: .9rem;
  padding: .88rem 1rem;
  border: 1px solid #d1d5db;
}

.registration-right .form-control:focus,
.registration-right .form-select:focus {
  border-color: #198754;
  box-shadow: 0 0 0 .2rem rgba(25,135,84,.15);
}

.registration-right .btn-success {
  border-radius: 999px;
  padding: .95rem 1.4rem;
  font-weight: 700;
}

.sending-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1rem;
  color: #6b7280;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  .courses-hero {
    padding: 2.4rem 0 2.2rem;
  }

  .courses-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .course-card .course-media img {
    min-height: 240px;
  }

  .registration-left,
  .registration-right,
  .course-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .courses-title {
    font-size: 2rem;
  }

  .courses-hero-actions .btn,
  .course-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .registration-left h2 {
    font-size: 1.75rem;
  }
}
