/* ============================================
   STYLES SPÉCIFIQUES PAGE TARIFS
   ============================================ */

/* Carte principe de tarification */
.tarif-principe-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 63, 15, 0.08);
  margin-bottom: 2rem;
}

.tarif-principe-card .icon-circle-outline {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f3f0f;
  border-radius: 50%;
  color: #0f3f0f;
}

.tarif-principe-card h2 {
  color: #0f3f0f;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.tarif-principe-card p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Frais annuels */
.tarif-frais-annuels {
  background: #f8faf8;
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid #0f3f0f;
}

.tarif-frais-annuels h3 {
  color: #0f3f0f;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.frais-list {
  display: grid;
  gap: 1rem;
}

.frais-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.frais-item:hover {
  transform: translateX(5px);
}

.frais-label {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 500;
}

.frais-value {
  color: #0f3f0f;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Mensualités */
.tarif-mensualites {
  background: #f8faf8;
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid #0f3f0f;
  margin-top: 1.5rem;
}

.tarif-mensualites h3 {
  color: #0f3f0f;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.mensualites-list {
  display: grid;
  gap: 1rem;
}

.mensualite-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.mensualite-item:hover {
  transform: translateX(5px);
}

.mensualite-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f3f0f;
}

.mensualite-details {
  display: flex;
  flex-direction: column;
}

.mensualite-label {
  color: #2d3748;
  font-size: 1rem;
  font-weight: 500;
}

.mensualite-period {
  color: #0f3f0f;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Grille des tarifs */
.tarif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Carte tarif */
.tarif-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 63, 15, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarif-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(15, 63, 15, 0.15);
}

/* Header de la carte */
.tarif-card-header {
  background: linear-gradient(135deg, #0f3f0f 0%, #1a5a1a 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.tarif-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  backdrop-filter: blur(10px);
}

.tarif-card-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.tarif-card-header .subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Table des tarifs */
.tarif-table {
  padding: 1.5rem;
}

.tarif-table-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f8faf8;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f3f0f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tarif-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
  transition: background 0.2s ease;
}

.tarif-row:last-child {
  border-bottom: none;
}

.tarif-row:hover {
  background: #f8faf8;
}

.quotient {
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 500;
}

.prix {
  color: #0f3f0f;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Tarifs cantine */
.cantine-tarifs {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.cantine-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: #f8faf8;
  border-radius: 12px;
  border-left: 4px solid #0f3f0f;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cantine-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(15, 63, 15, 0.1);
}

.niveau {
  color: #2d3748;
  font-size: 1.05rem;
  font-weight: 600;
}

.prix-repas {
  color: #0f3f0f;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Extras / Frais supplémentaires */
.tarif-extras {
  padding: 1.5rem;
  background: #f8faf8;
  border-top: 1px solid #e2e8f0;
}

.tarif-extras h4 {
  color: #0f3f0f;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tarif-extras ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tarif-extras li {
  color: #4a5568;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.tarif-extras li::before {
  content: "•";
  color: #0f3f0f;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.tarif-extras strong {
  color: #0f3f0f;
  margin-left: auto;
  font-weight: 700;
}

/* Note importante */
.tarif-note {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
  border-left: 4px solid #ff9800;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.note-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9800;
}

.tarif-note p {
  color: #7c3f00;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

/* Section téléchargement */
.download-section {
  text-align: center;
  padding: 2rem 0;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 63, 15, 0.2);
}

.btn-large:hover {
  box-shadow: 0 6px 20px rgba(15, 63, 15, 0.3);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .tarif-grid {
    grid-template-columns: 1fr;
  }
  
  .tarif-principe-card {
    padding: 1.5rem;
  }
  
  .tarif-principe-card h2 {
    font-size: 1.5rem;
  }
  
  .tarif-card-header h3 {
    font-size: 1.5rem;
  }
  
  .tarif-table-header,
  .tarif-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .quotient {
    margin-bottom: 0.5rem;
  }
  
  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tarif-frais-annuels,
  .tarif-mensualites {
    padding: 1.5rem;
  }
  
  .frais-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .cantine-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .tarif-note {
    flex-direction: column;
    text-align: center;
  }
  
  .note-icon {
    margin: 0 auto;
  }
}
