/* =========================================================
   Fleurs Ernst — styles spécifiques à la page Contact
   (s'appuie sur les variables et classes de style.css)
   ========================================================= */

/* ---------- En-tête de page ---------- */
.container {
  max-width: 1300px;
  /* Augmente ou diminue cette valeur selon tes envies */
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 124px 0 72px;
  border-radius: 0 0 44px 44px;
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 22s ease-in-out infinite alternate;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 33, 19, .74) 0%, rgba(16, 33, 19, .46) 52%, rgba(16, 33, 19, .82) 100%);
}

.page-hero__deco {
  top: 96px;
  right: 90px;
  width: 120px;
  height: 120px;
  animation: drift 9s ease-in-out infinite;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 1300px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  margin: 14px 0 16px;
}

.page-hero__lead {
  color: rgba(251, 245, 234, .92);
  font-size: clamp(16px, 2vw, 19px);
}

/* ---------- Disposition formulaire + infos ---------- */
.contact {
  padding: 80px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Carte formulaire ---------- */
.contact__form-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 44px 46px;
}

.contact__title {
  margin-bottom: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--green-mid);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid #e4ddcd;
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 82, 41, .10);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.field__err {
  font-size: 13px;
  color: var(--red-dark);
  font-weight: 600;
}

.field--check {
  gap: 10px;
}

.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  margin-top: 2px;
  flex: none;
}

.form__submit {
  margin-top: 28px;
}

/* Honeypot : hors écran */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  background: #fde7e4;
  color: var(--red-dark);
  font-weight: 600;
  border-radius: 12px;
  padding: 13px 18px;
  margin-bottom: 20px;
}

/* ---------- Message de succès ---------- */
.form-success {
  text-align: center;
  padding: 36px 12px;
}

.form-success__icon {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 32px;
  margin-bottom: 18px;
}

.form-success h2 {
  margin-bottom: 10px;
}

.form-success p {
  color: var(--ink-soft);
  max-width: 430px;
  margin: 0 auto;
}

/* ---------- Cartes coordonnées ---------- */
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  border-radius: 24px;
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}

.contact-card--green {
  background: var(--green-mid);
  color: var(--cream);
}

.contact-card--red {
  background: var(--red);
  color: #fff;
}

.contact-card h2 {
  color: inherit;
  font-size: 28px;
  margin-bottom: 4px;
}

.contact-card__tag {
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-card--green .contact-card__tag {
  color: #e8a08f;
}

.contact-card--red .contact-card__tag {
  color: #ffd9d3;
}

.contact-card address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.contact-card__hours {
  font-size: 14px;
  line-height: 1.75;
  opacity: .92;
  margin-bottom: 14px;
}

.contact-card__phone {
  display: inline-block;
  font-size: 21px;
  font-weight: 700;
  color: inherit;
  margin-bottom: 18px;
}

.contact-card__phone:hover {
  text-decoration: underline;
}

.contact-card .btn--light {
  color: var(--green-mid);
}

.contact-card--red .btn--light {
  color: var(--red-dark);
}

/* ---------- Cartes Google Maps ---------- */
.maps {
  padding: 26px 0 92px;
}

.maps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.map-card {
  margin: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: saturate(.92);
}

.map-card figcaption {
  padding: 16px 22px;
  font-weight: 700;
  color: var(--green-mid);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .maps__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 22px;
  }

  .page-hero {
    min-height: 380px;
    padding: 110px 0 56px;
    border-radius: 0 0 30px 30px;
  }

  .page-hero__deco {
    display: none;
  }

  .contact {
    padding: 56px 0;
  }

  .contact__form-wrap {
    padding: 30px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  .page-hero__media,
  .page-hero__deco {
    animation: none !important;
  }
}