/* =========================
   VARIABLES
========================= */
.services-section {
  --services-bg-color: #0a0e17;
  --services-card-bg: rgba(255, 255, 255, 0.05);
  --services-accent-1: #00d2ff;
  --services-accent-2: #3a7bd5;
  --services-glass-border: rgba(255, 255, 255, 0.1);
  --services-text-muted: #ccd6f6;
  --services-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  padding: 80px 20px;
  background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* =========================
   GRID PRINCIPALE
========================= */
.services-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1450px;
  margin: 50px auto 0;
  align-items: stretch; /* Force toutes les cartes à la même hauteur */
}

/* =========================
   CARTE STRUCTURE
========================= */
.service-card {
  background: var(--services-card-bg);
  border: 1px solid var(--services-glass-border);
  border-radius: 30px;
  padding: 30px;
  display: flex;
  flex-direction: column; /* Organisation verticale */
  transition: var(--services-transition);
}

.service-card:hover {
  border-color: var(--services-accent-1);
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

/* BLOC DU HAUT (Celui qui aligne les switchers) */
.service-header-block {
  min-height: 500px; /* VALEUR CLÉ : Ajuste selon tes textes pour aligner les switchers */
  display: flex;
  flex-direction: column;
}

.service-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.service-number { font-size: 1.5rem; font-weight: 800; opacity: 0.1; }
.service-icon { color: var(--services-accent-1); }

.service-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.highlight { color: var(--services-accent-1); font-weight: 600; }

.service-description {
  font-size: 0.9rem;
  color: var(--services-text-muted);
  line-height: 1.5;
}

/* =========================
   ONGLETS / SWITCHER
========================= */
.pack-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 4px;
  margin-top: 25px; /* Pousse le switcher juste après le bloc header */
  margin-bottom: 25px;
  border: 1px solid var(--services-glass-border);
}

.switcher-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--services-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
}

.switcher-btn.active {
  background: linear-gradient(135deg, var(--services-accent-1), var(--services-accent-2));
  color: white;
}

/* =========================
   CONTENU DES PACKS
========================= */
.packs-container {
  flex-grow: 1; /* Prend tout l'espace disponible */
  margin-bottom: 30px;
  min-height: 400px;
}

.pack-content { display: none; }
.pack-content.active { display: block; animation: fadeIn 0.4s ease; }

.pack-content h4 {
  font-size: 1.3rem;
  text-decoration: underline;
  margin-bottom: 15px;
  color: #fff;
  border-left: 3px solid var(--services-accent-1);
  padding-left: 10px;
}

.service-features { list-style: none; padding: 0; }
.service-features li {
  font-size: 0.85rem;
  color: var(--services-text-muted);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.service-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--services-accent-1);
}

/* =========================
   FOOTER (BOUTON FIXÉ)
========================= */
.service-footer {
  margin-top: auto; /* Force le bouton tout en bas */
  padding-top: 20px;
  border-top: 1px solid var(--services-glass-border);
}

.service-btn {
  display: block;
  text-align: center;
  border: 1px solid var(--services-accent-1);
  color: var(--services-accent-1);
  padding: 14px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.service-btn:hover {
  background: var(--services-accent-1);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .services-wrapper { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .services-wrapper { grid-template-columns: 1fr; }
  .service-header-block { min-height: auto; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}