/* Panneau « Une question ? » : un premier contact sans friction.
   Trois portes : WhatsApp, laisser une question, espace conseiller.
   Aucune réponse automatique : tout arrive à Arnaud. */

.q-bouton {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  font-family: var(--corps); font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--blanc); background: rgba(21, 21, 24, 0.92);
  border: 1px solid var(--trait-fort); border-radius: 999px; padding: 15px 22px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(205, 187, 157, 0.2);
  transition: transform 0.35s var(--ressort), opacity 0.25s ease;
}
.q-bouton:hover { transform: translateY(-2px); border-color: var(--blanc); }
.q-bouton:focus-visible { outline: 2px solid var(--sable); outline-offset: 4px; }
.q-bouton:active { transform: translateY(0) scale(0.97); opacity: 0.88; }
.q-ouvert .q-bouton { opacity: 0; pointer-events: none; transform: translateY(8px); }

.q-panneau {
  position: fixed; right: 24px; bottom: 24px; z-index: 41;
  width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--noir-3); border: 1px solid var(--trait); padding: 28px 26px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 0.5px rgba(205, 187, 157, 0.14);
  opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.45s var(--ressort);
}
.q-ouvert .q-panneau { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }

.q-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.q-titre { font-family: var(--titre); font-weight: 300; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; color: var(--blanc); }
.q-sous { font-size: 14.5px; color: var(--gris); margin-bottom: 22px; }

.q-fermer {
  font-family: var(--corps); font-size: 13px; font-weight: 500; color: rgba(242, 240, 238, 0.7);
  background: none; border: 0; border-bottom: 1px solid rgba(242, 240, 238, 0.24); padding: 2px 0; cursor: pointer; flex-shrink: 0; margin-top: 6px;
  transition: opacity 0.2s ease;
}
.q-fermer:hover { color: var(--blanc); border-bottom-color: var(--blanc); }
.q-fermer:focus-visible { outline: 2px solid var(--sable); outline-offset: 4px; }
.q-fermer:active { opacity: 0.7; }

.q-vue { display: none; }
.q-vue.actif { display: block; }

.q-choix { display: flex; flex-direction: column; gap: 10px; }
.q-porte {
  display: block; width: 100%; text-align: left; text-decoration: none; cursor: pointer;
  font-family: var(--corps); font-size: 15.5px; font-weight: 500; line-height: 1.4; color: rgba(242, 240, 238, 0.92);
  background: rgba(242, 240, 238, 0.03); border: 1px solid rgba(242, 240, 238, 0.24); padding: 16px 18px;
  transition: transform 0.3s var(--ressort), opacity 0.2s ease;
}
.q-porte small { display: block; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--gris); margin-top: 4px; }
.q-porte:hover { border-color: var(--blanc); background: rgba(242, 240, 238, 0.07); transform: translateX(4px); }
.q-porte:focus-visible { outline: 2px solid var(--sable); outline-offset: 3px; }
.q-porte:active { transform: translateX(2px); opacity: 0.85; }

.q-champ { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.q-champ label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); }
.q-champ input, .q-champ textarea {
  background: rgba(242, 240, 238, 0.04); border: 1px solid rgba(242, 240, 238, 0.26); border-radius: 0;
  color: var(--blanc); font-family: var(--corps); font-size: 16px; font-weight: 400; padding: 13px 14px; width: 100%; outline: none;
  -webkit-appearance: none; appearance: none;
}
.q-champ textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.q-champ input::placeholder, .q-champ textarea::placeholder { color: rgba(242, 240, 238, 0.36); }
.q-champ input:focus, .q-champ textarea:focus { border-color: var(--sable); box-shadow: 0 0 0 3px rgba(205, 187, 157, 0.16); }
.q-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.q-envoyer { width: 100%; margin-top: 6px; }
.q-note { font-size: 12.5px; color: var(--gris); margin-top: 12px; line-height: 1.5; }
.q-erreur { display: none; font-size: 14px; font-weight: 500; color: var(--sable); margin-top: 12px; line-height: 1.5; }
.q-erreur.actif { display: block; }
.q-erreur a { color: var(--blanc); }
.q-retour { margin-top: 16px; }

.q-merci { font-family: var(--titre); font-weight: 300; font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; color: var(--blanc); margin-bottom: 10px; }

@media (max-width: 560px) {
  .q-bouton { right: 16px; bottom: 16px; padding: 14px 20px; }
  /* En haut de page, sur téléphone, les deux boutons de l'ouverture suffisent */
  .q-haut .q-bouton { opacity: 0; pointer-events: none; transform: translateY(8px); }
  .q-panneau { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; max-height: 88vh; padding: 26px 22px 22px; border-left: 0; border-right: 0; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .q-bouton, .q-panneau, .q-porte { transition: none; } }
@media print { .q-bouton, .q-panneau { display: none !important; } }

/* Zones de 44 points et erreur visible (04/10/2026, verdict du juge d'écran) */
.q-fermer { padding: 14px 0; min-width: 44px; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(242, 240, 238, 0.24); }
.q-tete .q-fermer { margin-top: -6px; }
.q-retour { margin-top: 4px; }
.q-erreur { margin: 0 0 10px; }
