/* Variables */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-radius: 10px;
  --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  --card-padding: 20px;
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
}

#tarifs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 25px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
  text-align: center;
}

.tab-btn.active {
  color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
  border-bottom: 3px solid var(--primary-color);
}

/* Cards */
.tarif-card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

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

.puissance, .usage {
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--accent-color);
  font-size: 1.1em;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.tarif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.tarif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--light-bg);
  border-radius: 8px;
  min-height: 80px;
}

.duration {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.price {
  font-weight: bold;
  color: #27ae60;
  font-size: 1.1em;
}

/* Sections */
.section-title {
  color: var(--secondary-color);
  margin: 25px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  font-size: 1.5em;
}

.category, .vehicle-type {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.category-title {
  color: var(--primary-color);
  font-size: 1.3em;
  margin: 0 0 15px 0;
}

.formule-title {
  color: var(--accent-color);
  font-size: 1.2em;
  margin: 20px 0 10px;
}

.zone-title {
  color: #16a085;
  font-size: 1.1em;
  margin: 15px 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    padding: 18px;
    font-size: 1.1em;
  }
  
  .tarif-grid {
    grid-template-columns: 1fr;
  }
  
  .tarif-card {
    padding: 25px;
    margin-bottom: 25px;
  }
  
  .tarif-item {
    min-height: 100px;
    padding: 15px;
  }
  
  .duration {
    font-size: 1em;
  }
  
  .price {
    font-size: 1.2em;
  }
  
  .section-title {
    font-size: 1.8em;
    text-align: center;
  }
  
  .category, .vehicle-type {
    padding: 25px 15px;
    margin-bottom: 40px;
  }
  
  .category-title {
    font-size: 1.5em;
    text-align: center;
  }
  
  .formule-title, .zone-title {
    font-size: 1.3em;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tarif-card {
    padding: 30px 20px;
  }
  
  .tarif-item {
    min-height: 120px;
  }
  
  .price {
    font-size: 1.3em;
  }
}

.order-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #2d7fd6, #599adf);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.order-btn:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 86, 179, 0.5);
}
