/* ==========================================================================
   Page contact — colonne d'information + formulaire interactif.

   Charte Volt (docs/CHARTE-VOLT.md) : zéro border-radius, variables --pa-*
   existantes, pictogrammes SVG maison (pas d'émoji). Complète vitrine.css
   (`.vt-mise-en-page-formulaire`, `.vt-champ`, `.vt-honeypot`…) sans le
   modifier : tout ce qui suit est préfixé `.ct-` pour rester isolé.

   Règle d'or du socle d'animation (static/js/animations.js) : rien n'est
   masqué depuis le CSS seul. Les états ci-dessous qui dépendent du script
   `contact.js` (chips actives, aide qui change, bouton d'envoi) restent
   TOUJOURS visibles par défaut ; seul `contact.js` ajoute les classes qui
   les font bouger — jamais l'inverse.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Bandeau — image panoramique du cabinet (chantier photos du 11/09/2026).
   Hauteur volontairement sobre : le formulaire suit juste en dessous, il ne
   doit pas être repoussé sous la ligne de flottaison.
   -------------------------------------------------------------------------- */

.ct-bandeau {
  min-height: 30vh;
}
.ct-bandeau .vt-hero__contenu {
  padding-block: 40px;
}
@media (max-width: 900px) {
  .ct-bandeau {
    min-height: 26vh;
  }
  .ct-bandeau .vt-hero__contenu {
    padding-block: 32px;
  }
}

.ct-icone {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   Colonne de gauche
   -------------------------------------------------------------------------- */

.ct-colonne-info > * + * {
  margin-top: 28px;
}

.ct-coordonnees {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-coord {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ct-coord__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--pa-carte-alt);
  color: var(--pa-accent);
}
.ct-coord__texte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.ct-coord__texte a {
  font-size: 15.5px;
  line-height: 1.4;
}
.ct-coord__detail {
  max-width: 42ch;
}

.ct-urgence {
  padding: 13px 16px;
  border-left: 3px solid var(--pa-accent);
  background: rgba(255, 108, 2, 0.1);
  color: var(--pa-texte-3);
  font-size: 14px;
  line-height: 1.5;
}
.ct-urgence a {
  font-weight: 700;
}

.ct-bloc h3 {
  margin-bottom: 12px;
}

.ct-raccourcis {
  display: grid;
  gap: 10px;
}
.ct-raccourci {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--pa-carte-alt);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ct-raccourci .ct-icone {
  color: var(--pa-accent);
}
.ct-raccourci__texte {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.ct-raccourci__titre {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--pa-blanc);
}
.ct-raccourci__sous {
  font-size: 12.5px;
  color: var(--pa-texte-4);
}
.ct-raccourci__fleche {
  color: var(--pa-accent);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.ct-raccourci:hover,
.ct-raccourci:focus-visible {
  border-left-color: var(--pa-accent);
}
.ct-raccourci:hover .ct-raccourci__fleche,
.ct-raccourci:focus-visible .ct-raccourci__fleche {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Formulaire — motifs interactifs
   -------------------------------------------------------------------------- */

.ct-etape {
  margin-bottom: 20px;
}

.ct-motifs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ct-motif {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 10px;
  background: var(--pa-fond);
  border: 2px solid var(--pa-bordure-douce);
  color: var(--pa-texte);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.ct-motif .ct-icone {
  width: 26px;
  height: 26px;
  color: var(--pa-sourdine);
  transition: color 0.2s ease;
}
.ct-motif__texte {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
}

/* Le vrai radio reste dans le DOM, focusable au clavier, juste retiré du
   flux visuel — jamais `display:none` (qui le sortirait de la tabulation). */
.ct-motif input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* État actif : fonctionne SANS JavaScript (sélecteur CSS pur sur `:checked`),
   `contact.js` ne fait que le renforcer côté aide/placeholder/téléphone. */
.ct-motif:has(input:checked) {
  border-color: var(--pa-accent);
  background: rgba(255, 108, 2, 0.12);
}
.ct-motif:has(input:checked) .ct-icone {
  color: var(--pa-accent);
}
.ct-motif:has(input:focus-visible) {
  outline: 2px solid var(--pa-accent);
  outline-offset: 2px;
}
.ct-motif:hover {
  border-color: var(--pa-bordure-btn);
}

.ct-aide {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--pa-accent);
  background: rgba(255, 108, 2, 0.08);
  color: var(--pa-texte-3);
  font-size: 13.5px;
  line-height: 1.5;
}
.ct-aide.ct-aide--pulse {
  animation: ct-pulse 0.6s ease;
}
@keyframes ct-pulse {
  0% {
    background: rgba(255, 108, 2, 0.3);
  }
  100% {
    background: rgba(255, 108, 2, 0.08);
  }
}

/* Champ téléphone mis en avant quand le motif choisi en fait vraiment
   usage (« Être rappelé·e ») — jamais requis côté serveur, juste signalé. */
#ct-champ-telephone.ct-champ-recommande .pa-input {
  border-color: var(--pa-accent);
}
#ct-champ-telephone.ct-champ-recommande .pa-label::after {
  content: " (utile pour vous rappeler)";
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  color: var(--pa-accent);
}

/* --------------------------------------------------------------------------
   Bouton d'envoi — micro-animation de confirmation
   -------------------------------------------------------------------------- */

.ct-btn-envoi {
  position: relative;
  transition: opacity 0.2s ease;
}
.ct-btn-envoi.is-envoi {
  opacity: 0.85;
  cursor: progress;
}
.ct-btn-envoi.is-envoi .ct-btn-envoi__texte {
  visibility: hidden;
}
.ct-btn-envoi.is-envoi::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(1, 38, 71, 0.35);
  border-top-color: var(--pa-fond);
  animation: ct-tourne 0.7s linear infinite;
}
@keyframes ct-tourne {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-raccourci,
  .ct-raccourci__fleche,
  .ct-motif,
  .ct-motif .ct-icone,
  .ct-btn-envoi {
    transition: none !important;
  }
  .ct-aide.ct-aide--pulse,
  .ct-btn-envoi.is-envoi::after {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .ct-motifs {
    grid-template-columns: repeat(2, 1fr);
  }
}
