/* ============================================================
   L'Atelier du Changement — Audit 7 erreurs
   Styles custom (complète Tailwind CDN)
   ============================================================ */

:root {
  --magenta: #D9157C;
  --magenta-dark: #b8106a;
  --magenta-light: #FCE9F1;
  --navy: #1F3A5F;
  --body: #1A1A1A;
  --meta: #666666;
}

/* --- Base --- */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* --- Bouton primaire (magenta) --- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--magenta);
  color: #ffffff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--magenta-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Bouton secondaire (contour magenta) --- */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--magenta);
  border: 2px solid var(--magenta);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--magenta-light);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

/* --- Boutons d'échelle 1-4 --- */

.scale-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #D0D5DD;
  background: #ffffff;
  font-size: 16px;
  font-weight: 600;
  color: var(--meta);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  /* Tap target minimum 44px OK */
}

.scale-btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.scale-btn.selected {
  background-color: var(--magenta);
  border-color: var(--magenta);
  color: #ffffff;
}

.scale-btn:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

/* Sur très petits écrans, légèrement plus petits */
@media (max-width: 360px) {
  .scale-btn {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
}

/* --- Champs de formulaire --- */

.form-input {
  width: 100%;
  border: 1.5px solid #E0E0E0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--body);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(217, 21, 124, 0.12);
}

.form-input::placeholder {
  color: #AAAAAA;
}

/* Flèche des selects */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666666'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

/* Checkbox accentuée magenta */
input[type="checkbox"] {
  accent-color: var(--magenta);
  cursor: pointer;
}

/* --- Spinner de chargement --- */

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--magenta-light);
  border-top-color: var(--magenta);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Barre de progression (fixée en haut) --- */

.progress-bar-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #F3F4F6;
  z-index: 50;
}

.progress-bar-fill {
  height: 100%;
  background: var(--magenta);
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

/* --- Card résultat profil --- */

.profil-card {
  border-left: 5px solid;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
}

/* --- Barres d'axe (résultats) --- */

.axe-bar-track {
  height: 8px;
  background: #F3F4F6;
  border-radius: 999px;
  overflow: hidden;
}

.axe-bar-fill {
  height: 100%;
  background: var(--magenta);
  border-radius: 999px;
  transition: width 0.7s ease;
}

/* --- Animation d'entrée écran résultats --- */

#screen-11 .result-fade-in {
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
