/* =========================================================
   PAGE
   ========================================================= */

:root{
  --contact-max: 1600px;
  --contact-pad: clamp(16px, 4vw, 56px);
  --contact-gold: #c6a865;
}

body{
  font-family: "Poppins", sans-serif;
}

.contact-page{
  padding-top: calc(var(--header-h, 84px) + 44px);
  padding-bottom: 120px;
}

.contact-shell{
  position: relative;
  width: min(var(--contact-max), calc(100% - (var(--contact-pad) * 2)));
  margin: 0 auto;
}

/* Décoration coin */
.contact-corner-accent{
  position: absolute;
  top: clamp(-12px, -1.5vmin, 0px);
  right: clamp(-12px, -1.2vmin, 0px);
  width: min(92%, 560px, min(48dvh, 460px));
  aspect-ratio: 1;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.94;
  filter: drop-shadow(0 0 10px rgba(198, 167, 101, 0.24))
}

.contact-corner-accent__img{
  display: block;
  width: 100%;
  height: auto;
}

.contact-top,
.contact-form-wrap{
  position: relative;
  z-index: 1;
}

/* =========================================================
   HERO / TOP
   ========================================================= */

.contact-top{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: start;
  margin-bottom: 15%;
}

.contact-intro{
  max-width: 720px;
  padding-top: 12px;
}

.contact-kicker{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 22px;
  border-radius: 999px;

  background: radial-gradient(120% 140% at 0% 0%, rgba(250, 231, 191, 0.08) 0%, rgba(0,0,0,0.18) 60%);
  border: 1px solid rgba(255,255,255,0.09);

  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-intro h1{
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: rgba(255,255,255,0.96);
  text-wrap: balance;
}

.contact-lead{
  margin: 0;
  max-width: 640px;
  color: rgba(255,255,255,0.70);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.75;
}

/* =========================================================
   INFOS
   ========================================================= */

.contact-details{
  display: grid;
  gap: 26px;
  align-content: start;
  padding-top: 10px;
}

.contact-detail{
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  align-items: start;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-detail:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-detail__icon{
  width: 62px;
  height: 62px;
  border-radius: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(120% 140% at 0% 0%, rgba(250,231,191,0.08) 0%, rgba(0,0,0,0.20) 60%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
}

.contact-detail__icon svg{
  width: 24px;
  height: 24px;
  color: #c6a865;
  shape-rendering: geometricPrecision;
}

.contact-detail__body h2{
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.96);
}

.contact-detail__body p{
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  line-height: 1.7;
}

.contact-text-link,
.contact-inline-link{
  display: inline-flex;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #c6a865;
  text-decoration: none;
  transition: color 180ms ease;;
}

.contact-text-link:hover,
.contact-inline-link:hover{
  color: #fff;
}

/* =========================================================
   FORM WRAP
   ========================================================= */

.contact-form-wrap{
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 28px;

  background:
    radial-gradient(120% 140% at 0% 0%, rgba(250,231,191,0.015) 0%, rgba(0,0,0,0.22) 60%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  

  overflow: hidden;
}

.contact-form-wrap::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 16%, rgba(250, 231, 191, 0.009), transparent 20%),
    linear-gradient(to bottom, rgba(255,255,255,0.02), transparent 18%);
}

.contact-form-wrap > *{
  position: relative;
  z-index: 1;
}

.contact-form-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.contact-form-head h2{
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: rgba(255,255,255,0.96);
}

.contact-form-head p{
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  font-size: 15px;
}

/* =========================================================
   FORM
   ========================================================= */

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

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

.field{
  display: grid;
  gap: 10px;
}

.field--full{
  grid-column: 1 / -1;
}

.contact-form label{
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea,
.contact-form select{
  width: 100%;
  min-width: 0;
  padding: 16px 0 14px;

  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  background: transparent;

  color: rgba(255,255,255,0.94);
  outline: none;
  box-shadow: none;

  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;

  -webkit-appearance: none;
  appearance: none;

  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: rgba(255,255,255,0.32);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{
  border-bottom-color: rgba(250, 231, 191, 0.78);
}

.contact-form select{
  color-scheme: dark;
  cursor: pointer;
}

.contact-form select option{
  background: #0f141f;
  color: #fff;
}

.contact-form__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.form-status{
  margin: 0;
  min-height: 20px;
  color: rgba(255,255,255,0.72);
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:rgba(255,255,255,0.75);
  text-align: right;
}

.form-status__icon{
  display:inline-flex;
}

.form-status__icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:#c6a865;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.form-status__icon.error svg{
  stroke:#ff5b5b;
}

/* =========================
   FLOATING FORM FIELDS
   ========================= */

.field-float{
  position: relative;
}

.field-float input,
.field-float textarea,
.field-float select{
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  font: inherit;
  outline: none;
}


.field-float input,
.field-float select{
  height: 72px;
  padding: 28px 0 10px;
}

.field-float textarea{
  min-height: 160px;
  padding: 38px 0 10px;
  resize: vertical;
}

.field-float--full{
  grid-column: 1 / -1;
}

.field-float label{
  position: absolute;
  left: 0;
  top: 26px;

  font-size: 20px;
  color: rgba(255,255,255,0.7);
  pointer-events: none;

  transform-origin: left top;

  transition:
    transform .18s ease,
    top .18s ease,
    font-size .18s ease,
    color .18s ease;
}


.field-float input:focus,
.field-float textarea:focus,
.field-float select:focus{
  border-bottom-color: rgba(250, 231, 191, 0.78);
}


.field-float input:focus + label,
.field-float input:not(:placeholder-shown) + label,
.field-float textarea:focus + label,
.field-float textarea:not(:placeholder-shown) + label,
.field-float select:focus + label,
.field-float select:valid + label{
  top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}


/* =========================================================
   CTA HALO - FORMULAIRE
   ========================================================= */

.cta-halo--submit{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.contact-form__footer{
  margin-top: 12px;
}

.contact-form__footer .cta-halo--submit{
  flex-shrink: 0;
}

@media (max-width: 720px){
  .contact-form__footer .cta-halo--submit{
    width: 100%;
  }
}

/* =========================================================
   ANIMATION
   ========================================================= */

@media (prefers-reduced-motion: no-preference){
  .contact-intro,
  .contact-detail,
  .contact-form-wrap{
    animation: contactIn 520ms ease both;
  }

  .contact-detail:nth-child(2){ animation-delay: 60ms; }
  .contact-detail:nth-child(3){ animation-delay: 100ms; }
  .contact-detail:nth-child(4){ animation-delay: 140ms; }
  .contact-form-wrap{ animation-delay: 120ms; }

  @keyframes contactIn{
    from{
      opacity: 0;
      transform: translateY(10px);
    }
    to{
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px){
  .contact-page{
    padding-top: calc(var(--header-h, 84px) + 30px);
  }

  .contact-top{
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 72px;
  }

  .contact-intro{
    max-width: 760px;
  }

  .contact-details{
    gap: 20px;
  }

  .contact-form-head{
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }
}

@media (max-width: 720px){
  .contact-page{
    padding-top: calc(var(--header-h, 84px) + 24px);
    padding-bottom: 100px;
  }

  .contact-shell{
    width: min(var(--contact-max), calc(100% - 28px));
  }

  .contact-corner-accent{
    width: min(96%, 400px, min(42dvh, 300px));
    top: -6px;
    right: -6px;
    opacity: 0.85;
  }

  .contact-intro h1{
    font-size: clamp(42px, 14vw, 64px);
  }

  .contact-lead{
    font-size: 16px;
    line-height: 1.75;
  }

  .contact-detail{
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding-bottom: 20px;
  }

  .contact-detail__icon{
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .contact-detail__icon svg{
    width: 24px;
    height: 24px;
  }

  .contact-detail__body h2{
    font-size: clamp(22px, 7vw, 30px);
  }

  .contact-detail__body p{
    font-size: 15px;
  }

  .contact-form-wrap{
    padding: 22px 18px;
    border-radius: 22px;
  }

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

  .field--full{
    grid-column: auto;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select{
    font-size: 15px;
    padding-top: 14px;
  }

  .contact-form textarea{
    min-height: 140px;
  }

  .contact-form__footer{
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
  }

  .btn-primary{
    width: 100%;
    min-width: 0;
  }

  .form-status{
    text-align: left;
  }
}


