/* =============================================================
   CONTACT PAGE — LAYOUT
============================================================= */

body:has(.contact-page) {
  background: #181818;
}

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

body:has(.contact-page) .footer {
  margin-top: 0;
  border-radius: 0;
  width: 100%;
}


/* =============================================================
   PANNEAU GAUCHE
============================================================= */

.contact-left {
  background:
    radial-gradient(circle at top right, rgba(201, 146, 62, 0.22), transparent 50%),
    linear-gradient(160deg, #181818, #2a241c);
  display: flex;
  align-items: center;
  padding: 80px 60px;
  min-height: 100vh;
}

.contact-left-inner {
  max-width: 480px;
}

.contact-left .eyebrow {
  color: #c9923e;
  margin-bottom: 20px;
}

.contact-title {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -2px;
  color: white;
  margin-bottom: 24px;
  font-weight: 900;
}

.contact-title em {
  font-style: italic;
  color: #c9923e;
  font-weight: 400;
}

.contact-divider {
  width: 48px;
  height: 3px;
  background: #c9923e;
  border-radius: 2px;
  margin-bottom: 28px;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 400px;
}

/* Features */
.contact-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
}

.cf-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Agent card */
.contact-agent {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 146, 62, 0.2);
  border-radius: 18px;
  padding: 20px 22px;
}

.contact-agent img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(201, 146, 62, 0.4);
  flex-shrink: 0;
}

.agent-name {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 3px;
}

.agent-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.agent-phone {
  font-size: 0.88rem;
  font-weight: 700;
  color: #c9923e;
  text-decoration: none;
}

.agent-phone:hover {
  color: #ddb16b;
}


/* =============================================================
   PANNEAU DROIT
============================================================= */

.contact-right {
  background: #f8f6f1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  min-height: 100vh;
}

.contact-form-wrap {
  width: 100%;
  max-width: 560px;
}

.form-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: #181818;
  text-align: left;
  margin-bottom: 10px;
}

.form-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}


/* =============================================================
   CHAMPS DE FORMULAIRE
============================================================= */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #181818;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #999;
  font-size: 0.8rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0ddd6;
  border-radius: 12px;
  background: white;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.95rem;
  color: #181818;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #bbb;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #c9923e;
  box-shadow: 0 0 0 3px rgba(201, 146, 62, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.field-error {
  font-size: 0.8rem;
  color: #d94f4f;
  font-weight: 600;
}

/* Checkbox */
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #ccc;
  border-radius: 5px;
  accent-color: #c9923e;
  cursor: pointer;
  margin-top: 2px;
}


/* =============================================================
   NAVIGATION FORMULAIRE
============================================================= */

.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-back {
  color: #888;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: #181818;
}

.form-nav .btn.primary {
  padding: 15px 28px;
  font-size: 0.92rem;
}


/* =============================================================
   SUCCÈS
============================================================= */

.success-wrap {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #c9923e, #ddb16b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 900;
  margin: 0 auto 28px;
}

.success-wrap .form-title {
  text-align: center;
  margin-bottom: 12px;
}

.success-wrap .form-desc {
  max-width: 380px;
  margin: 0 auto 24px;
}

.success-info {
  display: inline-block;
  background: #f3eadb;
  color: #9b6a22;
  border: 1px solid rgba(201, 146, 62, 0.25);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
}


/* =============================================================
   COORDONNÉES (contact général)
============================================================= */

.coord-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.coord-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
}

.coord-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.coord-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 5px;
}

.coord-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

a.coord-value:hover {
  color: #c9923e;
}

.coord-social {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}


/* =============================================================
   INPUT AVEC ICÔNE (adresse)
============================================================= */

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-wrap input {
  padding-left: 42px;
}


/* =============================================================
   STEPPER
============================================================= */

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e0ddd6;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #bbb;
  transition: all 0.3s ease;
}

.step.active .step-num {
  border-color: #c9923e;
  background: #c9923e;
  color: white;
}

.step.done .step-num {
  border-color: #c9923e;
  background: #c9923e;
  color: white;
  font-size: 1rem;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbb;
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: #c9923e;
}

.step.done .step-label {
  color: #c9923e;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e0ddd6;
  margin: 0 8px;
  margin-bottom: 26px;
  transition: background 0.3s ease;
}

.step-line.done {
  background: #c9923e;
}


/* =============================================================
   RESPONSIVE — 1000px
============================================================= */

@media (max-width: 1000px) {
  .contact-left {
    padding: 60px 40px;
    min-height: auto;
  }

  .contact-right {
    padding: 60px 40px;
    min-height: auto;
  }
}


/* =============================================================
   RESPONSIVE — 750px (mobile)
============================================================= */

@media (max-width: 750px) {
  .contact-page {
    grid-template-columns: 1fr;
  }

  .contact-left {
    padding: 50px 24px;
  }

  .contact-left-inner {
    max-width: 100%;
  }

  .contact-features {
    grid-template-columns: 1fr 1fr;
  }

  .contact-right {
    padding: 40px 24px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-nav .btn.primary {
    text-align: center;
  }

  .btn-back {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .contact-features {
    grid-template-columns: 1fr;
  }
}