/*!
 * Ajustement Rive-Sud — Styles des formulaires de rendez-vous v0.3.0
 * Scope : formulaire home + formulaire contact
 * Référence : _requests/ARS-20260424-02-ADD01 §B3.4
 */

/* Honeypot : hors de l'écran, inaccessible au clavier, invisible aux humains */
.ars-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Formulaire général */
.ars-contact-form-wrap {
  margin: 0 0 16px;
}

.ars-contact-form p.field {
  margin: 0 0 12px;
}

.ars-input, .ars-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  color: #222;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Inputs Nom / Courriel / Téléphone : hauteur minimale pour une meilleure lisibilité et cliquabilité */
.ars-input {
  min-height: 48px;
}

.ars-input:focus, .ars-textarea:focus {
  outline: none;
  border-color: #2DA1DB;
  box-shadow: 0 0 0 3px rgba(45, 161, 219, 0.18);
}

.ars-input.has-error, .ars-textarea.has-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.ars-textarea {
  min-height: 160px;
  resize: vertical;
}

/* Checkboxes préférences */
.ars-checkbox-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 8px;
  vertical-align: middle;
}

.ars-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.ars-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

/* Bouton submit */
.ars-submit {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.ars-submit.is-submitting,
.ars-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Messages de réponse */
.form-response {
  margin: 12px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
}

.form-response.success {
  margin: 20px 0;
  padding: 18px 22px;
  background: #eaf5fb;
  color: #1a7aa8;
  border: 1px solid #2DA1DB;
  border-left-width: 4px;
  border-radius: 6px;
  font-size: 16px;
}

.form-response.success strong {
  font-size: 18px;
  display: inline-block;
  margin-bottom: 4px;
}

.form-response.error {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #fff4f2;
  color: #8a2a1f;
  border: 1px solid #c0392b;
  border-left-width: 4px;
  border-radius: 4px;
}

/* FAQ Option Alpha — home */
.faq-option-alpha {
  padding: 30px 0 40px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  margin: 40px 0 0;
}

.faq-option-alpha h2 {
  margin: 0 0 16px;
  color: #2DA1DB;
}

.faq-option-alpha p {
  line-height: 1.6;
  margin: 0 0 12px;
}

.faq-option-alpha .faq-signature {
  font-style: italic;
  color: #666;
  margin-top: 16px;
}

/* h1 masqué visuellement si le design existant l'exige, mais accessible aux lecteurs d'écran et SEO */
.ars-home-h1 {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .ars-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 0;
    margin-top: 6px;
  }
}

/* Hero tagline — home (François 2026-04-24, ajusté v0.3.16 : CSS défensif — bump spécificité + !important pour battre le thème hérité) */
.ars-hero-tagline-row {
  margin-top: 12px;
  margin-bottom: 0;
}
body .ars-hero-tagline-row .hero-tagline {
  font-size: 36px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: #2DA1DB !important;
  text-align: left !important;
  margin: 8px 0 40px !important;
  padding: 0 !important;
  letter-spacing: 0.01em !important;
}
@media (max-width: 980px) {
  body .ars-hero-tagline-row .hero-tagline {
    font-size: 34px !important;
    font-weight: 700 !important;
    margin: 8px 0 48px !important;
  }
}
@media (max-width: 640px) {
  body .ars-hero-tagline-row .hero-tagline {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 4px 0 36px !important;
    line-height: 1.3 !important;
  }
}

/* Marge latérale obligatoire sur mobile — FAQ Option Alpha (François 2026-04-24) */
.faq-option-alpha .container {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .faq-option-alpha .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .faq-option-alpha .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .faq-option-alpha h2 {
    font-size: 22px;
  }
  .faq-option-alpha p {
    font-size: 15px;
  }
}
