/* =============================================================================
   NaluScore — vision.css
   Styles spécifiques à la page /vision (sondage « Vision Produit »).
   Complète style.css (réutilise .feedback-card, .feedback-input, .cta-btn,
   .gradient-text, .section-divider, .site-header, .logo).
   ============================================================================= */


/* ─── FOND IMMERSIF ─────────────────────────────────────────────────────────
   Photo plage/coucher de soleil en fond fixe + voile sombre dégradé pour
   garder le Dark Mode et la lisibilité (même principe que le dashboard).
   L'image et le voile sont posés en couches sur le body : ils restent
   derrière le contenu sans juggling de z-index.
   ─────────────────────────────────────────────────────────────────────────── */
.vision-body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-dark);
  background-image:
    /* Voile sombre par-dessus la photo (plus dense en haut/bas pour le texte) */
    linear-gradient(
      180deg,
      rgba(4, 10, 18, 0.86) 0%,
      rgba(4, 10, 18, 0.66) 42%,
      rgba(4, 10, 18, 0.90) 100%
    ),
    /* Photo plage sunset */
    url('images/backgrounds/vision-sunset.jpg');
  background-size: cover, cover;
  background-position: center, center 60%;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* iOS gère mal background-attachment: fixed → on repasse en scroll sur mobile */
@media (max-width: 640px) {
  .vision-body {
    background-attachment: scroll, scroll;
  }
}


/* ─── BOUTON RETOUR ─────────────────────────────────────────────────────────
   Version « header » discrète (glassmorphism) + version « solid » sur l'écran
   de remerciement.
   ─────────────────────────────────────────────────────────────────────────── */
.vision-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vision-back-btn:hover {
  background: rgba(0, 245, 255, 0.12);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.vision-back-btn span:first-child {
  font-size: 1.05rem;
  line-height: 1;
}

/* Variante pleine (dégradé) sur l'écran Merci */
.vision-back-btn--solid {
  color: #080e14;
  background: linear-gradient(90deg, var(--cyan), var(--neon-green));
  border: none;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
}

.vision-back-btn--solid:hover {
  opacity: 0.92;
  background: linear-gradient(90deg, var(--cyan), var(--neon-green));
}

/* Sur très petit écran, on masque le libellé du bouton header (garde la flèche) */
@media (max-width: 420px) {
  .vision-back-btn span:last-child {
    display: none;
  }
}


/* ─── BLOC CONTEXTE (avant Q1) ──────────────────────────────────────────────*/
.vision-context__intro {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.15rem;
}

/* Chapô : le compte perso (le contenant) — séparé des 3 outils par un filet */
.vision-context__account {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vision-context__account strong {
  color: var(--cyan);
  font-weight: 700;
}

/* Les 3 outils, nichés « dans » le compte : filet néon à gauche + retrait */
.vision-context__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0 0 0 1.15rem;
  margin: 0 0 0 0.55rem;
  border-left: 2px solid rgba(0, 245, 255, 0.18);
}

.vision-context__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.vision-context__list strong {
  color: #fff;
  font-weight: 700;
}

.vision-context__emoji {
  font-size: 1.2rem;
  line-height: 1.3;
  flex-shrink: 0;
}


/* ─── QUESTIONS ─────────────────────────────────────────────────────────────*/
.vision-q {
  border: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.vision-q:last-of-type {
  margin-bottom: 0.75rem;
}

/* Respiration supplémentaire avant Q4 : marque la bascule des 3 questions
   obligatoires vers les questions optionnelles (padding = pas de collapse). */
.vision-q[data-question="q4"] {
  padding-top: 1.75rem;
}

.vision-q__label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

/* Pastille numéro de question */
.vision-q__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  vertical-align: middle;
}

.vision-q__req {
  color: #ff4d6d;
  font-weight: 800;
}

.vision-q__opt {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-weight: 500;
}


/* ─── OPTIONS RADIO (cartes cliquables) ─────────────────────────────────────*/
.vision-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vision-option {
  display: block;
  cursor: pointer;
}

/* Input radio natif masqué visuellement mais accessible clavier */
.vision-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Fond plus clair que la carte du formulaire + légère élévation → les choix
   « décollent » du fond au lieu de s'y fondre. */
.vision-option__box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.15rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* Faux bouton radio (puce) à gauche */
.vision-option__box::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vision-option:hover .vision-option__box {
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.07);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* État coché */
.vision-option input[type="radio"]:checked + .vision-option__box {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(0, 245, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.25), 0 0 18px rgba(0, 245, 255, 0.1);
}

.vision-option input[type="radio"]:checked + .vision-option__box::before {
  border-color: var(--cyan);
  background:
    radial-gradient(circle at center, var(--cyan) 0 5px, transparent 6px);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

/* Focus clavier visible */
.vision-option input[type="radio"]:focus-visible + .vision-option__box {
  outline: 2px solid rgba(0, 245, 255, 0.6);
  outline-offset: 2px;
}

/* Question en erreur (validation JS) : liseré rouge temporaire */
.vision-q--error .vision-option__box,
.vision-q--error .feedback-input {
  border-color: rgba(255, 77, 109, 0.6);
}


/* ─── ÉTAT MERCI — apparition douce ─────────────────────────────────────────*/
#vision-thanks {
  animation: visionFadeIn 0.4s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  #vision-thanks {
    animation: none;
  }
}
