body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

button, .action-btn, .btn-primary {
  padding: 12px 20px;
  border: none;
  background-color: #e9e9ed;
  color: #1C1C1E;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95em;
  font-weight: 500;
}

button:hover, .action-btn:hover, .btn-primary:hover {
  background-color: #d1d1d6;
}


.card {
  border-radius: 16px;
  padding: 1rem;
}

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
}

.input:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10,132,255,0.3);
  outline: none;
}

.btn-primary {
  background-color: #e9e9ed;
  color: #1C1C1E;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn-primary:hover {
  background-color: #d1d1d6;
}


.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-grid label{
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color, #E5E5E7);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}

/* Survol + focus clavier */
.checkbox-grid label:hover,
.checkbox-grid label:focus-within{
  background-color: rgba(0,122,255,0.08); /* léger bleu comme dans le 2ème CSS */
  border-color: rgba(0,122,255,0.3);
}

/* État coché */
.checkbox-grid label:has(input[type="checkbox"]:checked){
  background-color: rgba(0,122,255,0.12);
  border-color: rgba(0,122,255,0.5);
  box-shadow: 0 0 0 2px rgba(0,122,255,0.2) inset;
}


/* Petite amélioration du checkbox lui-même */
.checkbox-grid input[type="checkbox"]{
  accent-color: #0a84ff; /* fallback natif */
}



.action-btn {
  flex: 1;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}

.modal-card {
  box-shadow: 0 14px 45px rgba(0,0,0,.18);
}

/* Onglets modale */
.tab-btn {
  padding: .5rem .75rem;
  border-radius: 10px;
  font-weight: 600;
  color: #4b5563;
}
.tab-btn.active {
  color: #0a84ff;
  background: #eff6ff;
}



/* Scroll global dans la modale si contenu trop long */
#helpModal .modal-card {
max-height: 90vh;   /* limite la hauteur de la modale */
overflow-y: auto;   /* active un ascenseur interne */
}


/* Boutons d'aide et reset minimalistes */
.top-buttons {
  position: fixed;
  top: 12px;
  right: 16px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.top-buttons button {
  background: none;
  border: none;
  color: #1C1C1E;       /* même couleur que ton texte */
  font-size: 20px;      /* taille légèrement plus grande pour visibilité */
  cursor: pointer;
  opacity: 0.6;         /* discrets par défaut */
  transition: opacity .2s, transform .2s, color .2s;
}

.top-buttons button:hover,
.top-buttons button:focus-visible {
  opacity: 1;
  transform: scale(1.2);
  color: #0a84ff;       /* accent bleu au survol */
  outline: none;
}


