/* ==========================================================================
   GLAMWEL LABORATOIRES - Page Contact (/page/contact)
   En-tete a grand titre, coordonnees en lignes (libelle a gauche, valeur a
   droite) et formulaire a champs soulignes. Polices et teintes du site.
   ========================================================================== */

.contact-page {
  --contact-muted: #7a746a;
  --contact-rule: #d9d2c4;
  --contact-field: #c9c1b2;
  background: var(--ivory);
}

.contact-inner {
  max-width: 1320px;
  padding: clamp(48px, 8vw, 104px) 0 120px;
}

/* EN-TETE */
.contact-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--black);
}

.contact-eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .95;
}

.contact-title em { font-style: italic; }

.contact-intro {
  max-width: 420px;
  color: #5a554d;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* COLONNES */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(48px, 7vw, 120px);
  padding-top: 64px;
}

.contact-infos { max-width: 440px; }

.contact-subtitle {
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
}

/* COORDONNEES */
.contact-lines { border-bottom: 1px solid var(--contact-rule); }

.contact-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--contact-rule);
  transition: color 250ms ease;
}

a.contact-line:hover { color: var(--gold); }
.contact-line-social { align-items: center; }

.contact-label {
  flex-shrink: 0;
  color: var(--contact-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 20px;
  font-style: normal;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Reseaux : pastilles rondes, pleines au survol. */
.contact-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  list-style: none;
}

.contact-social-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--contact-field);
  border-radius: 50%;
  color: var(--black);
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
}

.contact-social-link:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--ivory);
}

.contact-social-link svg { display: block; width: 17px; height: 17px; }

/* FORMULAIRE */
.contact-form-wrap .contact-subtitle { margin-bottom: 40px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-field label {
  color: var(--contact-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--contact-field);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-size: 17px;
  transition: border-color 250ms ease;
}

.contact-field textarea { line-height: 1.6; resize: vertical; }

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #a39d92; }

.contact-field input:focus,
.contact-field textarea:focus { border-bottom-color: var(--black); }

.contact-field.has-error input,
.contact-field.has-error textarea { border-bottom-color: #a33f36; }

.contact-error {
  color: #a33f36;
  font-size: 12px;
  line-height: 1.5;
}

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 36px 32px;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 32px;
  background: var(--black);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background 300ms var(--ease);
}

.contact-submit span { font-size: 16px; letter-spacing: 0; }
.contact-submit:hover { background: var(--gold); }

/* RETOURS */
.contact-sent {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--black);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
}

.contact-alert {
  margin-bottom: 32px;
  padding: 14px 16px;
  border-left: 2px solid #a33f36;
  background: #f8ecea;
  color: #a33f36;
  font-size: 13px;
  line-height: 1.6;
}

/* Champ piege : hors ecran plutot que display:none, que certains robots
   savent ignorer. */
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 759px) {
  .contact-line { flex-direction: column; gap: 8px; }
  .contact-value { text-align: left; }
  .contact-social { justify-content: flex-start; }
  .contact-actions { justify-content: stretch; }
  .contact-submit { width: 100%; justify-content: center; }
}
