/*
 * Sandrine Gluck
 * Contact
 *
 * Styles exclusivement réservés à la section .sg-contact
 */


/* =========================================================
   SECTION
   ========================================================= */

.sg-contact {
  width: 100%;

  margin-top: 56px;
  padding: 112px 0 120px;

  background: #f5f2ee;
  color: #111;
}


/* =========================================================
   STRUCTURE
   ========================================================= */

.sg-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 112px;

  align-items: start;
}


/* =========================================================
   COLONNE GAUCHE
   ========================================================= */

.sg-contact__intro {
  width: 100%;
  max-width: 430px;

  text-align: left;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.sg-contact__eyebrow {
  margin: 0 0 24px;

  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;

  text-transform: uppercase;

  color: #8f7b63;
}


/* =========================================================
   TITRE
   ========================================================= */

.sg-contact__title {
  margin: 0 0 34px;

  font-family: "Raleway", sans-serif;
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;

  color: #000;
}


/* =========================================================
   TEXTE INTRO
   ========================================================= */

.sg-contact__lead {
  width: 100%;
  max-width: 400px;

  margin: 0;

  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;

  text-align: left;

  color: #494949;
}


/* =========================================================
   AVERTISSEMENT PHOTOS D'IDENTITÉ
   ========================================================= */

.sg-contact__notice {
  width: 100%;

  margin-top: 58px;
  padding-top: 26px;

  border-top: 1px solid #b3a18a;

  text-align: left;
}


.sg-contact__notice-eyebrow {
  margin: 0 0 16px;

  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;

  text-transform: uppercase;

  color: #8f7b63;
}


.sg-contact__notice-title {
  margin: 0 0 18px;

  font-family: "Raleway", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;

  color: #000;
}


.sg-contact__notice-text {
  width: 100%;
  max-width: 400px;

  margin: 0;

  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;

  color: #555;
}


/* =========================================================
   STUDIO
   ========================================================= */

.sg-contact__studio {
  margin-top: 48px;

  text-align: left;
}


.sg-contact__studio-label {
  margin: 0 0 10px;

  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;

  text-transform: uppercase;

  color: #8f7b63;
}


.sg-contact__studio-address {
  margin: 0;

  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  font-style: normal;

  color: #555;
}


/* =========================================================
   COLONNE FORMULAIRE
   ========================================================= */

.sg-contact__form-wrap {
  width: 100%;

  padding-top: 8px;
}


.sg-contact__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;

  width: 100%;

  text-align: left;
}


/* =========================================================
   CHAMPS
   ========================================================= */

.sg-contact__field {
  position: relative;

  width: 100%;

  text-align: left;
}


.sg-contact__field label {
  display: block;

  width: 100%;

  margin: 0 0 12px;

  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;

  text-transform: uppercase;
  text-align: left;

  color: #69615a;
}


.sg-contact__field input,
.sg-contact__field select,
.sg-contact__field textarea {
  display: block;

  width: 100%;

  margin: 0;
  padding: 4px 0 14px;

  box-sizing: border-box;

  border: 0;
  border-bottom: 1px solid #aaa095;
  border-radius: 0;

  outline: 0;

  background-color: transparent;

  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;

  text-align: left;

  color: #111;

  transition:
    border-color .2s ease,
    color .2s ease;
}


.sg-contact__field input {
  min-height: 47px;
}


.sg-contact__field select {
  min-height: 47px;

  padding-right: 30px;

  text-align: left;
  text-align-last: left;

  cursor: pointer;
}


.sg-contact__field textarea {
  min-height: 150px;

  resize: vertical;
}


/* =========================================================
   FOCUS
   ========================================================= */

.sg-contact__field input:focus,
.sg-contact__field select:focus,
.sg-contact__field textarea:focus {
  border-bottom-color: #000;
}


.sg-contact__field:focus-within label {
  color: #000;
}


/* =========================================================
   SELECT
   ========================================================= */

.sg-contact__field select {
  appearance: none;
  -webkit-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);

  background-position:
    calc(100% - 9px) 50%,
    calc(100% - 4px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;
}


/* =========================================================
   BOUTON
   ========================================================= */

.sg-contact__submit {
  display: flex;
  justify-content: flex-start;

  padding-top: 8px;
}


.sg-contact__submit .sg-btn {
  min-width: 210px;
}


/* =========================================================
   ANTI-SPAM — HONEYPOT
   ========================================================= */

.sg-contact__hp {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   MESSAGE DE RETOUR
   ========================================================= */

.sg-contact__status {
  display: none;

  width: 100%;

  margin: 0;

  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}


.sg-contact__status--success,
.sg-contact__status--error {
  display: block;

  padding: 18px 20px;

  box-sizing: border-box;
}


.sg-contact__status--success {
  border-left: 3px solid #b3a18a;

  background: rgba(179, 161, 138, .12);
  color: #222;
}


.sg-contact__status--error {
  border-left: 3px solid #111;

  background: rgba(0, 0, 0, .06);
  color: #222;
}


/* =========================================================
   BOUTON PENDANT ENVOI
   ========================================================= */

.sg-contact__submit button:disabled {
  opacity: .55;

  cursor: wait;
}


/* =========================================================
   AUTOFILL CHROME
   ========================================================= */

.sg-contact input:-webkit-autofill,
.sg-contact input:-webkit-autofill:hover,
.sg-contact input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111;

  box-shadow:
    0 0 0 1000px #f5f2ee inset;

  transition:
    background-color 9999s ease-in-out 0s;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 980px) {

  .sg-contact {
    margin-top: 48px;
    padding: 88px 0 96px;
  }


  .sg-contact__grid {
    grid-template-columns:
      minmax(0, .9fr)
      minmax(0, 1.1fr);

    gap: 64px;
  }


  .sg-contact__title {
    font-size: 56px;
  }


  .sg-contact__notice-title {
    font-size: 27px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .sg-contact {
    margin-top: 40px;
    padding: 72px 0 76px;
  }


  .sg-contact__grid {
    grid-template-columns: 1fr;
    gap: 58px;

    padding-left: 20px;
    padding-right: 20px;
  }


  .sg-contact__intro {
    max-width: none;
  }


  .sg-contact__title {
    margin-bottom: 28px;

    font-size: 48px;
  }


  .sg-contact__lead {
    max-width: none;

    font-size: 17px;
  }


  .sg-contact__notice {
    margin-top: 44px;
  }


  .sg-contact__notice-title {
    font-size: 26px;
  }


  .sg-contact__notice-text {
    max-width: none;
  }


  .sg-contact__studio {
    margin-top: 40px;
  }


  .sg-contact__form-wrap {
    padding-top: 0;
  }


  .sg-contact__form {
    gap: 32px;
  }


  .sg-contact__field input,
  .sg-contact__field select,
  .sg-contact__field textarea {
    font-size: 16px;
  }


  .sg-contact__submit {
    width: 100%;
  }


  .sg-contact__submit .sg-btn {
    width: 100%;
    min-width: 0;
  }


  .sg-contact__status--success,
  .sg-contact__status--error {
    padding: 16px 18px;
  }

}