/* ------------------------------------------------------------------
   L'Onde Silencieuse — overrides locales
   La mise en page d'origine (WordPress) est conservée telle quelle.
   Ce fichier ne contient que les ajouts nécessaires au fonctionnement
   local : formulaire, confort de navigation, corrections légères.
------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Le fond vidéo ne doit jamais laisser apparaître de bandes blanches */
.wp-block-cover__video-background {
  object-fit: cover;
}

/* ----------------------------- Formulaire ----------------------------- */

.londe-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

form.wpforms-form p.londe-form-status {
  margin: 18px 0 0;
  font-family: var(--wp--preset--font-family--fontsecondary, Montserrat, sans-serif);
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
}

form.wpforms-form p.londe-form-status:empty {
  display: none;
}

form.wpforms-form p.londe-form-status.is-error {
  color: #ffd4d4;
}

form.wpforms-form p.londe-form-status.is-success {
  color: #e9fff0;
  font-weight: 600;
}

.wpforms-field.wpforms-has-error input,
.wpforms-field.wpforms-has-error textarea {
  border-color: #ff8b8b !important;
}

form.wpforms-form .wpforms-field em.londe-field-error {
  display: block;
  margin-top: 6px;
  color: #ffd4d4;
  font-family: var(--wp--preset--font-family--fontsecondary, Montserrat, sans-serif);
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}

.wpforms-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Le bouton du formulaire garde son apparence d'origine */
#wpforms-submit-7098 {
  cursor: pointer;
}

/* ------------------------- Accessibilité / focus ---------------------- */

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* -------------------- Petites corrections responsive ------------------ */

@media (max-width: 600px) {
  .trp-language-switcher.trp-floating-switcher.trp-switcher-position-top {
    --right: 16px !important;
  }

  form.wpforms-form p.londe-form-status {
    font-size: 14px;
  }
}

/* Si JavaScript est absent, le formulaire reste lisible */
html:not(.js) form.wpforms-form p.londe-form-status {
  display: none;
}

/* --------------------------- Carte du cabinet --------------------------- */
.londe-contact-map {
  margin: 0;
  border: 1px solid rgba(251, 245, 239, 0.55);
  border-radius: 18px;
  overflow: hidden;
  background: #fbf5ef;
  box-shadow: 0 20px 50px rgba(20, 15, 10, 0.28);
}

.londe-contact-map-canvas {
  height: 400px;
  background: #efe7df;
}

.londe-contact-map-canvas .leaflet-tile-pane {
  filter: grayscale(0.4) sepia(0.25) saturate(0.8) brightness(1.03) contrast(0.95);
}

.londe-contact-map .leaflet-control-attribution {
  background: rgba(251, 245, 239, 0.85);
  color: #7a6a5c;
  font-size: 9px;
}

.londe-contact-map .leaflet-control-attribution a {
  color: #7a6a5c;
}

.londe-contact-map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 16px 20px;
  background: #fbf5ef;
  color: #311d0d;
}

.londe-contact-map-eyebrow {
  flex-basis: 100%;
  color: #8c8197;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.londe-contact-map-caption strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.londe-contact-map-link {
  margin-left: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: #8c8197;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.londe-contact-map .londe-contact-map-caption .londe-contact-map-link {
  color: #8c8197 !important;
}

.londe-contact-map-link:hover {
  color: #6f5f80;
}

.londe-contact-map .londe-contact-map-caption .londe-contact-map-link:hover {
  color: #6f5f80 !important;
}

.londe-contact-pin {
  background: none;
  border: 0;
}

.londe-contact-pin span {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 3px solid #fbf5ef;
  border-radius: 50%;
  background: #8c8197;
  box-shadow: 0 10px 24px rgba(49, 29, 13, 0.35);
}

.londe-contact-pin span::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fbf5ef;
}

@media (max-width: 640px) {
  .londe-contact-map-canvas {
    height: 240px;
  }

  .londe-contact-map-link {
    margin-left: 0;
  }
}

/* Contact : formulaire à gauche, carte à droite */
.londe-contact-columns > .wp-block-column:first-child {
  flex: 1 1 58%;
}

.londe-contact-columns > .wp-block-column.londe-contact-map-column {
  flex: 1 1 42%;
}

@media (max-width: 1100px) {
  .londe-contact-map-canvas {
    height: 340px;
  }
}

@media (max-width: 782px) {
  .londe-contact-columns > .wp-block-column,
  .londe-contact-columns > .wp-block-column.londe-contact-map-column {
    flex: 1 1 100%;
  }

  .londe-contact-map {
    margin-top: 24px;
  }

  .londe-contact-map-canvas {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .londe-contact-map-canvas {
    height: 240px;
  }
}
