/* ==========================================
   CENTRE FORMATION DRONE — CSS
   TELEPILOTE SAS v2.0
   ========================================== */

/* ===== HERO ===== */
.tp-centre-hero {
  background: linear-gradient(135deg, var(--tp-navy) 0%, #142d5a 100%);
  color: var(--tp-white);
  padding: 80px 0 60px;
}
.tp-centre-hero-content {
  max-width: 720px;
}
.tp-badge-region {
  display: inline-block;
  background: rgba(245,130,13,0.15);
  color: var(--tp-orange);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tp-centre-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.tp-centre-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.tp-centre-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}
.tp-centre-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== INFO + MAP GRID ===== */
.tp-centre-info {
  padding: 60px 0;
}
.tp-centre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.tp-centre-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tp-centre-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--tp-white);
  border: 1px solid var(--tp-gray-200);
  border-radius: var(--tp-radius-lg);
  transition: var(--tp-transition);
}
.tp-centre-card:hover {
  box-shadow: var(--tp-shadow);
}
.tp-centre-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tp-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tp-orange);
}
.tp-centre-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-navy);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tp-centre-card p {
  font-size: 14px;
  color: var(--tp-gray-600);
  line-height: 1.5;
  margin: 0;
}
.tp-centre-card a {
  color: var(--tp-orange);
  text-decoration: none;
}
.tp-centre-card a:hover {
  text-decoration: underline;
}
.tp-centre-card-partner {
  border-color: var(--tp-orange);
  background: rgba(245,130,13,0.03);
}

/* ===== MAP ===== */
.tp-centre-map-wrap {
  position: sticky;
  top: 88px;
}
.tp-centre-map {
  width: 100%;
  height: 400px;
  border-radius: var(--tp-radius-lg);
  border: 1px solid var(--tp-gray-200);
  overflow: hidden;
  z-index: 1;
}
.tp-centre-map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--tp-orange);
  text-decoration: none;
  font-weight: 600;
}
.tp-centre-map-link:hover {
  text-decoration: underline;
}

/* ===== FORMATIONS GRID ===== */
.tp-centre-formations {
  padding: 60px 0;
  background: var(--tp-gray-50);
}
.tp-centre-formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.tp-centre-formation-card {
  display: block;
  background: var(--tp-white);
  border: 1px solid var(--tp-gray-200);
  border-radius: var(--tp-radius-lg);
  padding: 24px;
  text-decoration: none;
  transition: var(--tp-transition);
  position: relative;
}
.tp-centre-formation-card:hover {
  border-color: var(--tp-orange);
  box-shadow: var(--tp-shadow);
  transform: translateY(-2px);
}
.tp-centre-formation-badge {
  display: inline-block;
  background: var(--tp-orange);
  color: var(--tp-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tp-centre-formation-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-navy);
  margin-bottom: 12px;
  line-height: 1.4;
}
.tp-centre-formation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--tp-gray-500);
}
.tp-centre-formation-price {
  font-weight: 700;
  color: var(--tp-navy);
}

/* ===== CERTIFICATIONS ===== */
.tp-centre-certifs {
  padding: 60px 0;
}
.tp-centre-certifs h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--tp-navy);
  margin-bottom: 32px;
  text-align: center;
}
.tp-centre-certifs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tp-centre-certif {
  text-align: center;
  padding: 24px 16px;
  background: var(--tp-gray-50);
  border-radius: var(--tp-radius-lg);
  border: 1px solid var(--tp-gray-200);
}
.tp-centre-certif img {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}
.tp-centre-certif strong {
  display: block;
  font-size: 14px;
  color: var(--tp-navy);
  margin-bottom: 6px;
}
.tp-centre-certif p {
  font-size: 13px;
  color: var(--tp-gray-500);
  line-height: 1.4;
  margin: 0;
}

/* ===== CONTENT ===== */
.tp-centre-content {
  padding: 48px 0;
}
.tp-centre-content h2,
.tp-centre-content h3 {
  color: var(--tp-navy);
  margin-top: 32px;
  margin-bottom: 12px;
}
.tp-centre-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tp-gray-600);
  margin-bottom: 16px;
}

/* ===== CTA FINAL ===== */
.tp-centre-cta {
  padding: 60px 0 80px;
}
.tp-centre-cta-box {
  background: linear-gradient(135deg, var(--tp-navy) 0%, #142d5a 100%);
  border-radius: var(--tp-radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--tp-white);
}
.tp-centre-cta-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.tp-centre-cta-box p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.tp-centre-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tp-centre-grid {
    grid-template-columns: 1fr;
  }
  .tp-centre-map-wrap {
    position: static;
  }
  .tp-centre-map {
    height: 300px;
  }
  .tp-centre-certifs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tp-centre-hero {
    padding: 60px 0 40px;
  }
  .tp-centre-hero h1 {
    font-size: 28px;
  }
  .tp-centre-hero-ctas {
    flex-direction: column;
  }
  .tp-centre-hero-ctas .tp-btn-lg {
    width: 100%;
    text-align: center;
  }
  .tp-centre-formations,
  .tp-centre-certifs,
  .tp-centre-info {
    padding: 40px 0;
  }
  .tp-centre-formations-grid {
    grid-template-columns: 1fr;
  }
  .tp-centre-cta-box {
    padding: 32px 20px;
  }
  .tp-centre-cta-box h2 {
    font-size: 22px;
  }
  .tp-centre-cta-buttons {
    flex-direction: column;
  }
  .tp-centre-cta-buttons .tp-btn-lg {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tp-centre-certifs-grid {
    grid-template-columns: 1fr;
  }
}
