body {
  background: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../images/bg-contact.jpg');
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  flex: 1;
  padding-bottom: 0;
}

/* Left column — photo */
.contact-photo {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  align-self: flex-start;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Right column — content */
.contact-content {
  grid-column: 2;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8rem 3.5rem 4rem;
  gap: 1.5rem;
}

.contact-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 4rem;
}

.contact-title .outline {
  -webkit-text-stroke: 1px var(--offwhite);
  color: transparent;
  display: block;
}

.contact-intro {
 font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.3;
  color: #5f5f5f;
  font-weight: 300;
  max-width: 100ch;
  margin: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 0.8rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--offwhite);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #444;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--red);
  outline: none;
}

.form-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--red);
  color: var(--offwhite);
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.form-submit:hover {
  background: #e02400;
  transform: translateY(-1px);
}

.form-submit span {
  margin-left: 0.5rem;
}

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-photo {
    width: 100%;
    height: 55vw;
    min-height: 280px;
    max-height: 480px;
  }

  .contact-content {
    grid-column: 1;
    padding: 3rem 1.5rem 4rem;
  }
}

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

.contact-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .contact-title {
    margin-bottom: 1.5rem;
  }

  .contact-photo {
    position: relative;
    height: 60vw; /* hauteur proportionnelle à la largeur du viewport */
    width: 100%;
    top: auto;
    left: auto;
  }

  .contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }
}
