/* --- Style global --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

header {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1em;
  font-size: 1.5em;
}

/* --- Onglets --- */
nav.tabs {
  display: flex;
  justify-content: center;
  background: #e0e0e0;
  padding: 0.5em;
}

nav.tabs button {
  margin: 0 0.3em;
  padding: 0.5em 1em;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: #ccc;
  transition: background 0.2s;
}

nav.tabs button.active {
  background: #003366;
  color: white;
}

/* --- Contenu des onglets --- */
.tabcontent {
  padding: 1em 2em;
  background: white;
  margin: 1em auto;
  max-width: 600px;
  border-radius: 10px;
  display: none; /* masqué par défaut */
}

/* Affiche uniquement l'onglet actif */
.tabcontent.active-tab {
  display: block;
}

/* Cache les onglets masqués */
[hidden] {
  display: none !important;
}

/* --- Grille des cartes --- */
.cards-grid {
  display: flex;
  flex-direction: column; /* Chaque carte sur une ligne */
  gap: 0.5em;
  margin-top: 1em;
}

/* --- Carte générique --- */
.card {
  display: flex;
  flex-direction: row; /* Emoji à gauche, texte à droite */
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.2s;
}

.card:hover {
  background: #e0f7fa;
}

.card.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.card.selected {
  border-color: #00796b;
  background: #b2dfdb;
}

/* Emoji dans la carte */
.card .emoji {
  font-size: 1.5em;
}

/* Label et valeur du trait */
.card .label {
  font-weight: bold;
  color: #003366;
}

.card .value {
  font-size: 0.85em;
  color: #555;
}

/* --- Cartes métiers --- */
.metier-card {
  background-color: #f0f8ff;
  border-left: 5px solid #003366;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.metier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.metier-card strong {
  font-size: 1.2em;
  color: #003366;
}

.metier-card br + span,
.metier-card br + div {
  display: block;
  margin-top: 0.3em;
  font-size: 0.95em;
  color: #333;
}

.metier-card p.mots-cles {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: #555;
}

#secteurs-container h3 {
  margin-top: 1em;
  color: #003366;
  border-bottom: 2px solid #2ca02c;
  padding-bottom: 0.2em;
}

/* --- Compétences cumulées --- */
.competences-cumul {
  margin-top: 20px;
  padding: 15px;
  border-top: 2px solid #ccc;
}

.competences-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.competences-table th, 
.competences-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.competences-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

/* Boutons généraux */
button {
  font-family: Arial, sans-serif;
  font-size: 0.95em;
  padding: 0.6em 1.2em;
  margin-top: 0.8em;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #00796b;
  color: white;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

button:hover {
  background: #004d40;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Boutons "Réinitialiser" */
.reset-btn {
  background: #d32f2f;
}

.reset-btn:hover {
  background: #9a0007;
}