/*
Theme Name: Aube Immobilier
Theme URI: https://example.com/aube-immobilier
Author: OpenAI
Description: Theme WordPress sur mesure pour Aubé et Associés.
Version: 1.0.0
Text Domain: aube-immobilier
*/

.admin-bar .site-header {
  top: 32px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-main {
  display: block;
}

.content-page {
  padding: 72px 0;
}

.content-page .entry-title {
  margin: 0 0 20px;
  color: var(--dark, #0b2a4a);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.content-page .entry-content {
  max-width: 820px;
  color: #2f3f54;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-page .entry-content > *:first-child {
  margin-top: 0;
}

.content-page .entry-content > *:last-child {
  margin-bottom: 0;
}

/* Testimonial band */
.testimonial-band { padding: 60px 0; background: #f7fafc; }
.testimonial-band__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-band .testimonial { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid var(--gold, #c8a96e); border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; margin: 0; }
.testimonial-band .testimonial img { width: 28px; opacity: .5; }
.testimonial-band .testimonial p { margin: 0; font-style: italic; color: #2f3f54; line-height: 1.65; }
.testimonial-band .testimonial footer { font-size: .85rem; color: #718096; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; }
.testimonial-band .testimonial footer span:first-child { font-weight: 600; color: #2d3748; }
.testimonial-band .temo-ville::before { content: '·'; margin-right: .3rem; }

/* Accueil page content */
.accueil-content { padding: 60px 0; }
.accueil-content .container { max-width: 860px; }

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .content-page {
    padding: 48px 0;
  }
}


.contact-panel {
  display: grid;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,247,250,.92));
  border: 1px solid rgba(15,58,104,.1);
  box-shadow: 0 20px 50px rgba(11,42,74,.08);
}

.contact-panel__intro,
.contact-panel__details,
.contact-feedback,
.contact-form {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.contact-panel__eyebrow {
  margin: 0 0 12px;
  color: var(--secondary, #1e5a96);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-panel h2 {
  margin: 0 0 14px;
  color: var(--dark, #0b2a4a);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.contact-panel__intro p:last-child {
  margin: 0;
  max-width: 60ch;
  color: #425466;
  line-height: 1.7;
}

.contact-panel__details {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(15,58,104,.08);
}

.contact-panel__details p {
  margin: 0;
  color: #425466;
}

.contact-panel__email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-panel__details strong {
  color: var(--dark, #0b2a4a);
  margin-right: 6px;
}

.contact-panel__details a {
  color: var(--secondary, #1e5a96);
  text-decoration: none;
  font-weight: 700;
}

.contact-panel__details a:hover,
.contact-panel__details a:focus-visible {
  text-decoration: underline;
}

.contact-panel__email-image {
  display: inline-block;
  max-width: 100%;
  width: 340px;
  height: auto;
  vertical-align: middle;
}

.contact-feedback {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  background: rgba(15,58,104,.07);
  color: #23405f;
}

.contact-feedback.is-success {
  background: rgba(19, 140, 88, .12);
  color: #0f6b43;
}

.contact-feedback.is-error {
  background: rgba(185, 28, 28, .1);
  color: #991b1b;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--dark, #0b2a4a);
  font-weight: 600;
}

.contact-form span {
  font-size: .92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15,58,104,.16);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #1f2a37;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 180px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(30,90,150,.18);
  border-color: rgba(30,90,150,.45);
}

.contact-form__message {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .contact-panel {
    padding: 24px;
    border-radius: 18px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.entry-content .wpcf7 {
  margin: 0 0 2rem;
  padding: 2rem;
  border: 1px solid rgba(15, 58, 104, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.94) 100%);
  box-shadow: 0 24px 60px rgba(10, 34, 64, 0.08);
}

.entry-content .wpcf7-form {
  display: grid;
  gap: 18px;
}

.entry-content .wpcf7-form p {
  margin: 0;
}

.entry-content .wpcf7-form label {
  display: grid;
  gap: 8px;
  color: var(--dark, #0b2a4a);
  font-weight: 600;
}

.entry-content .wpcf7-form-control-wrap {
  display: block;
}

.entry-content .wpcf7 input:not([type="submit"]),
.entry-content .wpcf7 input:not([type="submit"]):focus,
.entry-content .wpcf7 textarea,
.entry-content .wpcf7 textarea:focus {
  width: 100%;
  border: 1px solid rgba(15, 58, 104, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: #1f2a37;
  font: inherit;
  box-shadow: none;
}

.entry-content .wpcf7 textarea {
  resize: vertical;
  min-height: 180px;
}

.entry-content .wpcf7 input:not([type="submit"]):focus,
.entry-content .wpcf7 textarea:focus {
  outline: 2px solid rgba(30, 90, 150, 0.18);
  border-color: rgba(30, 90, 150, 0.45);
}

.entry-content .wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f3a68 0%, #2c6aa6 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(15, 58, 104, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Property estimate form */
.estimate-page-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.estimate-page-intro h2 {
  margin: 0 0 14px;
  color: var(--dark, #0b2a4a);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.estimate-page-intro > p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: #425466;
  line-height: 1.65;
}

.entry-content .wpcf7:has(.estimate-form) {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(24px, 5vw, 48px);
}

.entry-content.seller-estimate__form .wpcf7:has(.estimate-form) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.estimate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 30px;
}

.estimate-form__section {
  min-width: 0;
  margin: 0;
  padding: 0 0 30px;
  border: 0;
  border-bottom: 1px solid rgba(15, 58, 104, .12);
}

.estimate-form__section legend {
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  color: var(--dark, #0b2a4a);
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.estimate-form__section legend span {
  color: var(--secondary, #1e5a96);
}

.estimate-form .required-marker,
.estimate-form__section legend .required-marker {
  color: #c62828;
  font-weight: 700;
}

.estimate-form__grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.estimate-form__wide {
  grid-column: 1 / -1;
  width: 100%;
}

/* Contact Form 7 wraps labels in paragraphs, so the wrapper must span the grid. */
.estimate-form__grid > p:has(> .estimate-form__wide) {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

.entry-content .estimate-form__grid label {
  display: grid;
  gap: 0;
}

.entry-content .estimate-form__grid label > br,
.entry-content .buyer-alert-form__other > br {
  display: none;
}

.entry-content .estimate-form__grid > label > .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.estimate-form__field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  width: fit-content;
}

.estimate-form small {
  color: #6b7886;
  font-size: .76rem;
  font-weight: 400;
}

.estimate-form__label {
  margin: 0 0 10px !important;
  color: var(--dark, #0b2a4a);
  font-size: .92rem;
  font-weight: 600;
}

.entry-content .estimate-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(15, 58, 104, .16);
  border-radius: 14px;
  padding: 14px 42px 14px 16px;
  background-color: #fff;
  color: #1f2a37;
  font: inherit;
}

.entry-content .estimate-form input:not([type="submit"]),
.entry-content .estimate-form select,
.entry-content .estimate-form textarea {
  min-width: 0;
  max-width: 100%;
}

.estimate-form .wpcf7-radio {
  display: grid;
  gap: 9px;
}

.estimate-form .wpcf7-list-item {
  margin: 0;
}

.entry-content .estimate-form .wpcf7-list-item label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.entry-content .estimate-form input[type="radio"] {
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--secondary, #1e5a96);
}

.estimate-form .wpcf7-list-item-label {
  flex: 1 1 auto;
  line-height: 1.4;
}

.estimate-form textarea[name="your-message"] {
  display: block;
  width: 100% !important;
  max-width: none;
  min-height: 240px;
  box-sizing: border-box;
}

.estimate-form__consent {
  padding: 16px 18px;
  border: 1px solid rgba(15, 58, 104, .12);
  border-radius: 14px;
  background: rgba(240, 246, 252, .72);
}

.estimate-form__consent .wpcf7-list-item {
  margin: 0;
}

.entry-content .estimate-form__consent label {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}

.entry-content .estimate-form__consent input[type="checkbox"] {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--secondary, #1e5a96);
}

.estimate-form__consent a {
  color: var(--secondary, #1e5a96);
  font-weight: 700;
}

.buyer-alert-form__choices {
  margin: 0 0 18px;
}

.buyer-alert-form__choices .wpcf7-checkbox {
  display: grid;
  gap: 12px 22px;
}

.buyer-alert-form__choices--three .wpcf7-checkbox {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-alert-form__choices--two .wpcf7-checkbox {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.entry-content .buyer-alert-form input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  accent-color: var(--secondary, #1e5a96);
}

.entry-content .buyer-alert-form .wpcf7-list-item label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.buyer-alert-form__other {
  max-width: 520px;
}

.estimate-form__hint {
  margin: 8px 0 0 !important;
  color: #73808d;
  font-size: .8rem;
}

.buyer-properties-title {
  margin: 72px 0 32px;
  color: var(--dark, #0b2a4a);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.entry-content .estimate-form .wpcf7-submit {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.estimate-form__privacy {
  position: relative;
  margin: -16px 0 0 !important;
  color: #73808d;
  font-size: .82rem;
  text-align: center;
}

.estimate-form__privacy::before {
  content: "🔒";
  margin-right: 7px;
}

@media (max-width: 640px) {
  .seller-estimate__grid > *,
  .seller-estimate__form,
  .seller-estimate__form .wpcf7-form,
  .estimate-form__section,
  .estimate-form__consent {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .seller-estimate__form .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-estimate__form {
    padding: 28px 22px;
  }

  .entry-content .estimate-form .wpcf7-submit {
    padding-right: 10px;
    padding-left: 10px;
    font-size: .76rem;
    letter-spacing: .025em;
  }

  .estimate-form__section legend,
  .estimate-form__field-label,
  .estimate-form .wpcf7-list-item-label {
    overflow-wrap: anywhere;
  }

  .estimate-form__grid {
    grid-template-columns: 1fr;
  }

  .estimate-form__wide {
    grid-column: auto;
  }

  .buyer-alert-form__choices--three .wpcf7-checkbox,
  .buyer-alert-form__choices--two .wpcf7-checkbox {
    grid-template-columns: 1fr;
  }
}

.entry-content .wpcf7 .wpcf7-submit:hover,
.entry-content .wpcf7 .wpcf7-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(15, 58, 104, 0.26);
  filter: brightness(1.03);
}

.entry-content .wpcf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
}

.entry-content .wpcf7 .wpcf7-response-output {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid rgba(15, 58, 104, 0.14);
  background: rgba(15, 58, 104, 0.06);
  color: #23405f;
}

.entry-content .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(19, 140, 88, 0.22);
  background: rgba(19, 140, 88, 0.12);
  color: #0f6b43;
}

.entry-content .wpcf7 form.failed .wpcf7-response-output,
.entry-content .wpcf7 form.invalid .wpcf7-response-output,
.entry-content .wpcf7 form.unaccepted .wpcf7-response-output,
.entry-content .wpcf7 form.spam .wpcf7-response-output {
  border-color: rgba(185, 28, 28, 0.22);
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

.entry-content .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
}
