/* Import du fichier de base */
@import url('components.css');

/* ===== COMPOSANTS SPÉCIFIQUES À GENERAL ===== */

/* ===== CONTAINER PRINCIPAL ===== */
.container {
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  animation: fadeInUp 0.6s ease forwards;
}

.container h2 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 600;
}

/* ===== ACCORDÉONS / OPTIONS ===== */
.options {
  margin-bottom: 30px;
}

.option-card {
  background: white;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  padding: 15px 20px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: var(--shadow-light);
}

.option-card:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.option-card.active {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.option-card ion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.option-card.active ion-icon {
  transform: rotate(180deg);
}

/* ===== PANELS ===== */
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  background: #f8f9fa;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 0 20px;
}

.panel.active {
  padding: 20px;
  border: 1px solid #eee;
  border-top: none;
}

.panel input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  accent-color: var(--primary-color);
}

.panel p {
  margin: 10px 0;
  color: var(--text-color);
  line-height: 1.5;
}

.panel strong {
  color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN SPÉCIFIQUE ===== */

/* Tablettes */
@media (max-width: 1024px) {
  .container {
    margin: 20px;
    padding: 25px;
  }
}

/* Petites tablettes */
@media (max-width: 768px) {
  .container {
    margin: 15px;
    padding: 20px;
  }

  .container h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .option-card {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .panel {
    padding: 0 15px;
  }

  .panel.active {
    padding: 15px;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  .container {
    margin: 10px;
    padding: 15px;
  }

  .container h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .option-card {
    padding: 10px 12px;
    font-size: 0.85rem;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .panel {
    padding: 0 12px;
  }

  .panel.active {
    padding: 12px;
  }
}

/* Très petits écrans */
@media (max-width: 320px) {
  .container {
    margin: 5px;
    padding: 12px;
  }

  .option-card {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

/* ===== ÉTATS FOCUS SPÉCIFIQUES ===== */
.option-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}