/* Optionnel : police similaire */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* SECTION CONTACT */
.contact-section {
  position: relative;
  padding: 22vh 20px 80px;
  background-color: #f5f6f8;
}

/* Top background image behind the card (30% viewport height) */
.contact-hero{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 30vh;
  background: #ddd center/cover no-repeat;
  /* Default image; can be overridden via inline --contact-hero */
  background-image: var(--contact-hero, url('img/bg-contact.jpeg'));
  z-index: 0;
}

.contact-container {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 80px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.10);
  padding: 44px 48px;
  position: relative;
  z-index: 1; /* above hero image */
}

/* Bottom accent bar like the reference visual */
.contact-container::after{
  content: '';
  position: absolute;
  left: 24px; right: 24px; bottom: -12px;
  height: 10px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #e93196, #9414b9 55%, #ff7403);
  opacity: .9;
}

.contact-column {
  flex: 1;
}

/* Titres roses */
.contact-title {
  font-size: 36px;
  font-weight: 700;
  color: #e65393; /* rose proche du visuel */
  margin: 0 0 25px;
}

/* Texte général */
.contact-text {
  font-size: 17px;
  line-height: 1.7;
  color: #444444;
  margin: 0 0 30px;
}

/* Ligne séparatrice */
.contact-separator {
  border: none;
  border-top: 1px solid #e6e6e6;
  margin: 35px auto 30px;
  max-width: 560px;
}

/* Téléphone */
.contact-phone {
  font-size: 30px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 10px;
}

/* Email */
.contact-email a {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Adresse */
.contact-address {
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.7;
  color: #333333;
}

/* Colonne des heures */
.contact-hours .contact-text {
  text-align: center;
  font-size: 18px;
}

/* Titres centrés */
.contact-column,
.contact-title {
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-section{ padding-top: 18vh; }
  .contact-container {
    flex-direction: column;
    gap: 28px;
    padding: 30px 24px;
  }
}

/* ===== Sophisticated Contact Form ===== */
.contact-form-section{
  position: relative;
  padding: 80px 20px 100px;
  background: linear-gradient(135deg, #fde0ef 0%, #ffffff 40%, #f7f3ff 100%);
  overflow: hidden;
}
.contact-form-section::before,
.contact-form-section::after{
  content: '';
  position: absolute; inset: -20% -10% auto auto;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233,49,150,0.10), transparent 70%);
  pointer-events: none;
}
.contact-form-section::after{ inset: auto auto -25% -10%; background: radial-gradient(closest-side, rgba(148,20,185,0.10), transparent 70%); }

.cf-container{ width: min(1080px, 92%); margin-inline: auto; position: relative; z-index: 1; }
.cf-header{ text-align: center; margin-bottom: 22px; }
.cf-title{ font-family: 'Playfair Display', serif; font-size: 34px; margin: 0 0 8px; color: #1f2937; }
.cf-subtitle{ margin: 0; color: #6b6b72; }

.c-form{
  position: relative;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.10);
  padding: 22px;
}
.c-form::before{
  content: '';
  position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: linear-gradient(135deg, rgba(233,49,150,0.12), rgba(255,116,3,0.10));
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude; -webkit-mask-composite: xor;
  padding: 1px; /* subtle inner gradient border */
}

.c-row{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.c-field{ position: relative; }
.c-field--wide{ margin-top: 10px; }

.c-field input,
.c-field select,
.c-field textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: 16px 14px;
  font-size: 16px;
  color: #1f2937;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.c-field textarea{ resize: vertical; min-height: 140px; }
.c-field input::placeholder,
.c-field textarea::placeholder{ color: transparent; }

.c-field label{
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  padding: 0 6px; background: #fff; color: #6b6b72; pointer-events: none;
  transition: transform .18s ease, color .18s ease, top .18s ease, font-size .18s ease;
}

/* Floating labels */
.c-field:focus-within label,
.c-field input:not(:placeholder-shown) + label,
.c-field textarea:not(:placeholder-shown) + label,
.c-field select:valid + label{
  top: 0; transform: translateY(-50%) scale(0.94);
  color: #9414b9; font-weight: 600;
}

.c-field:focus-within input,
.c-field:focus-within textarea,
.c-field:focus-within select{ border-color: #9414b9; box-shadow: 0 0 0 4px rgba(148,20,185,0.12); }

.c-actions{
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px;
}
.c-consent{ display: inline-flex; align-items: center; gap: 10px; color: #4b4b52; font-size: 14px; }
.c-consent input{ width: 18px; height: 18px; }

.cf-submit{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; color: #fff;
  background: linear-gradient(45deg, #e93196, #9414b9, #ff7403);
  background-size: 200% 200%; animation: cfGradient 6s ease infinite;
  box-shadow: 0 10px 28px rgba(233,49,150,0.26);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cf-submit:hover{ transform: translateY(-2px) scale(1.03); }
.cf-submit:active{ transform: translateY(0) scale(0.98); }
.cf-submit:disabled{ filter: saturate(0.6) brightness(0.95); cursor: not-allowed; }

@keyframes cfGradient{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

.c-alert{
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0f9f4;
  color: #155724;
  border: 1px solid #bde5c8;
}
.c-alert.show{ display: block; }

@media (max-width: 860px){
  .c-row{ grid-template-columns: 1fr; }
  .c-actions{ flex-direction: column; align-items: stretch; }
  .c-consent{ order: 2; }
  .cf-submit{ order: 1; }
}
