@charset "UTF-8";

/* ==========================================================================
   Page Contact dédiée
   ========================================================================== */

.contact-page {
  background-color: var(--bg);
  background-image: url("/images/accueil/image-olivier-formulaire.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 50% auto;
  padding-top: 100px;
  position: relative;
}
.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.88;
  pointer-events: none;
  z-index: 0;
}
.contact-page > * { position: relative; z-index: 1; }

.contact-hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}

/* Animation d'entrée du hero contact (cascade douce) */
.contact-hero .breadcrumb,
.contact-hero .eyebrow,
.contact-hero h1,
.contact-hero-lead,
.contact-hero .contact-row {
  opacity: 0;
  animation: hero-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.contact-hero .breadcrumb { animation-delay: 0.2s; animation-duration: 0.9s; }
.contact-hero .eyebrow { animation-delay: 0.35s; animation-duration: 1s; }
.contact-hero h1 { animation-delay: 0.5s; }
.contact-hero-lead { animation-delay: 0.75s; animation-duration: 1s; }
.contact-hero .contact-row { animation-delay: 1s; animation-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  .contact-hero .breadcrumb,
  .contact-hero .eyebrow,
  .contact-hero h1,
  .contact-hero-lead,
  .contact-hero .contact-row {
    opacity: 1;
    animation: none;
  }
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.contact-hero-img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 160%;
  object-fit: cover;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
}
.contact-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 28, 12, 0.55) 0%, rgba(33, 28, 12, 0.65) 100%);
  z-index: 1;
}
.contact-hero-inner {
  position: relative;
  z-index: 2;
}

.contact-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 253, 249, 0.75);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.contact-hero .breadcrumb a {
  color: rgba(255, 253, 249, 0.9);
  text-decoration: none;
}
.contact-hero .breadcrumb a:hover { color: var(--white); }
.contact-hero .breadcrumb span[aria-current] { color: var(--white); }

.contact-hero .eyebrow,
.contact-hero .eyebrow-center {
  color: #f3e7c7;
}

.contact-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 0 0 18px;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.contact-hero-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255, 253, 249, 0.92);
  font-size: 1.05rem;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.contact-hero .contact-row {
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero-img { transform: translate3d(0, -50%, 0) !important; }
}

.contact-form-section {
  padding: 64px 0 96px;
}

.contact-page .contact-form {
  max-width: 1000px;
  margin: 0 auto;
}

/* Cadre doré décalé en arrière-plan, comme sur les médias de la page prestations */
.contact-form-framed { position: relative; }
.contact-form-framed::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid #bf9670;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 768px) {
  .contact-form-framed::before {
    inset: 8px -8px -8px 8px;
  }
}

@media (max-width: 768px) {
  .contact-page {
    background-image: none;
    padding-top: 80px;
  }
  .contact-page::before { display: none; }
  .contact-hero { padding: 88px 0 56px; }
  .contact-form-section { padding: 48px 0 72px; }
}

/* Honeypot anti-spam : invisible mais accessible aux bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Bannière d'erreur formulaire */
.form-error-banner {
  max-width: 880px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: #fdecec;
  border: 1px solid #d9534f;
  color: #a02622;
  font-size: 14px;
  line-height: 1.5;
}
