/* Styles spécifiques à la page Nos Formules */
.page-header {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 140px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.formules-details {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 3px;
  background-color: var(--primary-orange);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.formules-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 15px;
}

.tab-btn {
  padding: 15px 30px;
  background-color: var(--light-gray);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark-gray);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: var(--transition);
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn.active {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(1, 85, 175, 0.3);
}

.tab-btn:hover:not(.active) {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.formule-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.formule-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formule-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.formule-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-orange);
  border-radius: 12px 12px 0 0;
}

.formule-header h3 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.formule-description {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.7;
}

.formule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.matieres-list,
.objectifs-list {
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.matieres-list:hover,
.objectifs-list:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.matieres-list h4,
.objectifs-list h4 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.matieres-list h4::before,
.objectifs-list h4::before {
  content: "✓";
  margin-right: 10px;
  color: var(--primary-orange);
  font-weight: bold;
}

.matieres-list ul,
.objectifs-list ul {
  list-style: none;
}

.matieres-list li,
.objectifs-list li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.matieres-list li::before,
.objectifs-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Frais Table */
.frais-section {
  margin-top: 60px;
}

.frais-table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.frais-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.frais-table th {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 18px;
  text-align: center;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.frais-table th:last-child {
  border-right: none;
}

.frais-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  transition: var(--transition);
}

.frais-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.frais-table tr:last-child td {
  border-bottom: none;
}

.frais-table tr:hover td {
  background-color: rgba(237, 113, 1, 0.05);
}

.frais-table .highlight {
  background-color: rgba(237, 113, 1, 0.1);
  font-weight: 600;
  color: var(--primary-orange);
}

.conditions-financieres {
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.conditions-financieres h4 {
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.conditions-financieres ul {
  list-style: none;
}

.conditions-financieres li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.conditions-financieres li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: bold;
}

.inscription-btn {
  text-align: center;
  margin-top: 40px;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--white);
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background-color: #d86501;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(237, 113, 1, 0.3);
}

.btn-primary::after {
  content: "→";
  transition: var(--transition);
}

.btn-primary:hover::after {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .formule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 50px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .formule-header h3 {
    font-size: 1.7rem;
  }

  .formules-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 1.9rem;
  }

  .formule-header {
    padding: 20px;
  }

  .matieres-list,
  .objectifs-list,
  .conditions-financieres {
    padding: 20px;
  }
}
