/* =========================================================
   PAGE CONTACT — uniquement ce qui est propre à cette page.
   Tout le reste (en-tête, ombres, panneau, pied de page) vient de style.css.
   ========================================================= */

/* ----- Colonne de gauche : texte d'introduction ----- */
.contact__intro {
  max-width: 30em;
  margin: 0 0 max(calc(var(--u) * 1.6), 3.5vh);
  font-size: max(1rem, calc(var(--u) * 1.3));
  line-height: 1.6;
}

.contact .hero__list,
.hero__text .hero__list {
  margin-bottom: max(calc(var(--u) * 1.8), 4vh);
}

.contact__direct {
  font-size: max(0.92rem, calc(var(--u) * 1.15));
}

.contact__direct p {
  margin: 0 0 0.5em;
}

.contact__direct a {
  display: table;
  margin-bottom: 0.3em;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 18, 10, 0.4);
  transition: border-color 0.2s ease;
}

.contact__direct a:hover {
  border-bottom-color: var(--brun);
}

/* ----- Colonne de droite : le formulaire, dans un cadre fin comme l'arche de l'accueil ----- */
.hero__visual {
  padding-top: max(var(--hauteur-entete) + calc(var(--u) * 1.4), calc(var(--u) * 8));
  padding-bottom: calc(var(--u) * 2);
}

.contact-card {
  position: relative;
  z-index: 3;
  width: min(100%, clamp(340px, calc(var(--u) * 41), 640px));
  padding: clamp(1.2rem, calc(var(--u) * 2.2), 2.2rem);
  background: rgba(251, 240, 224, 0.6);
  border: 1.5px solid rgba(255, 248, 238, 0.95);
  border-radius: calc(var(--u) * 1.8);
}

.contact-card__title {
  margin: 0 0 1rem;
  font-family: var(--font-titre);
  font-size: max(1.5rem, calc(var(--u) * 2.3));
  font-weight: 500;
  line-height: 1.15;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: max(0.85rem, calc(var(--u) * 0.95));
  font-weight: 500;
}

.req {
  color: var(--bloc-logo);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(43, 18, 10, 0.25);
  border-radius: 12px;
  background: #fffaf1;
  color: var(--brun);
  font: inherit;
  font-size: max(0.95rem, calc(var(--u) * 1.05));
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(43, 18, 10, 0.34);
  opacity: 1;
}

/* « Choisir… » plus pâle tant que rien n'est sélectionné (les choix de la liste restent bien lisibles) */
.field select[data-vide] {
  color: rgba(43, 18, 10, 0.4);
}

.field select option {
  color: var(--brun);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: var(--terracotta);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--rouille);
}

.field--choices {
  min-width: 0;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
}

.field--choices legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: max(0.85rem, calc(var(--u) * 0.95));
  font-weight: 500;
}

.field--choices .hint {
  font-weight: 400;
  opacity: 0.8;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.choice {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: max(0.85rem, calc(var(--u) * 0.95));
  line-height: 1.35;
  cursor: pointer;
}

.choice input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  accent-color: var(--bloc-logo);
}

.field-error {
  margin: 0.15rem 0 0;
  font-size: max(0.78rem, calc(var(--u) * 0.85));
  line-height: 1.3;
  color: var(--rouille);
}

.field input[aria-invalid="true"] {
  border-color: var(--rouille);
}

#raison {
  text-transform: uppercase;
}

#raison::placeholder {
  text-transform: uppercase;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.3rem 0 1.1rem;
  font-size: max(0.8rem, calc(var(--u) * 0.9));
  line-height: 1.4;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  accent-color: var(--bloc-logo);
}

.form-note {
  margin: 0 0 0.8rem;
  font-size: max(0.8rem, calc(var(--u) * 0.9));
  opacity: 0.85;
}

.btn-send {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--bloc-logo);
  color: var(--ivoire);
  font: inherit;
  font-size: max(0.95rem, calc(var(--u) * 1.05));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(90, 40, 15, 0.25);
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.btn-send:hover {
  background: var(--rouille);
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(90, 40, 15, 0.34);
}

.btn-send:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(90, 40, 15, 0.28);
}

.btn-send[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  font-size: max(0.85rem, calc(var(--u) * 0.95));
}

.form-status.is-ok {
  color: #2f5d34;
  font-weight: 500;
}

.form-status.is-error {
  color: var(--rouille);
  font-weight: 500;
}

/* ----- Tablette et mobile ----- */
@media (max-width: 960px) {
  .hero__visual {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .contact-card {
    width: 100%;
    max-width: 560px;
    border-radius: 22px;
  }

  .contact__intro,
  .contact__direct {
    font-size: 1rem;
  }

  .contact__direct p {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .row,
  .choices {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FENÊTRE DE REMERCIEMENT (message bien envoyé)
   ========================================================= */
.merci {
  width: min(92vw, 420px);
  padding: 34px 30px 30px;
  border: 1.5px solid rgba(255, 248, 238, 0.95);
  border-radius: 26px;
  background: var(--ivoire);
  color: var(--brun);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 6px 14px rgba(90, 40, 15, 0.16),
    0 28px 60px rgba(90, 40, 15, 0.34);
}

.merci[open] {
  animation: merci-entree 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}

.merci::backdrop {
  background: rgba(43, 18, 10, 0.5);
  backdrop-filter: blur(3px);
  animation: merci-voile 0.35s ease;
}

.merci__icone {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bloc-logo);
  color: var(--ivoire);
  box-shadow: 0 8px 18px rgba(90, 40, 15, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.merci__icone svg {
  width: 52px;
  height: 52px;
}

/* La coche se dessine toute seule */
.merci__trait {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.merci[open] .merci__trait {
  animation: merci-coche 0.55s 0.25s ease forwards;
}

.merci__titre {
  margin: 0 0 8px;
  font-family: var(--font-titre);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.1;
}

.merci__texte {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.merci__fermer {
  min-width: 150px;
}

@keyframes merci-entree {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes merci-voile {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes merci-coche {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .merci[open],
  .merci::backdrop { animation: none; }
  .merci__trait { stroke-dashoffset: 0; }
  .merci[open] .merci__trait { animation: none; }
}
