/* ── Page /contact — "Nous contacter" ── */

body { margin: 0; background: #fff; }

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  min-height: 100vh;
}

/* ── Panneau formulaire (gauche) ── */
.contact-form-panel {
  overflow-y: auto;
  max-height: 100vh;
}

.contact-form-inner {
  max-width: 460px;
  margin: 0 auto;
  padding: 2.2rem 1.75rem 3rem;
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.contact-logo img { height: 30px; display: block; }

.contact-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1330;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 1.8rem;
}

.contact-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contact-form .form-group { margin-bottom: 1rem; }
.contact-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1330;
  margin-bottom: 0.35rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #e5e2ee;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #faf9fc;
  color: #1a1330;
  transition: border-color .15s, background .15s;
}
.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: #3b2689;
  background: #fff;
}
.contact-form .form-group select { cursor: pointer; }
.contact-form .form-group textarea { resize: vertical; min-height: 140px; }

.contact-feedback {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  margin: 0 0 1rem;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.contact-cancel-btn {
  font-size: 0.92rem;
  font-weight: 700;
  color: #4a4459;
  text-decoration: none;
  padding: 0.85rem 1rem;
}
.contact-cancel-btn:hover { text-decoration: underline; }

.contact-submit-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  background: #3b2689;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.contact-submit-btn:hover { opacity: 0.9; }
.contact-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-legal {
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 1rem 0 0;
}
.contact-legal a { color: #6b7280; }

/* ── Vue succès ── */
#contact-success-view {
  padding-top: 2.5rem;
  text-align: center;
}
.contact-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}
#contact-success-view .contact-title,
#contact-success-view .contact-subtitle { text-align: center; }
.contact-success-btn {
  display: inline-flex;
  margin-top: 1.2rem;
  width: auto;
  padding: 0.85rem 2rem;
}

/* ── Panneau photo (droite) ── */
.contact-photo-panel {
  position: relative;
  overflow: hidden;
  background: #3b2689;
}
.contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,19,48,.15) 0%, rgba(26,19,48,.15) 45%, rgba(26,19,48,.75) 100%);
}
.contact-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #1a1330;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.contact-photo-overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem;
  color: #fff;
}
.contact-photo-overlay h2 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.7rem;
  max-width: 620px;
}
.contact-photo-overlay p {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.92;
  max-width: 480px;
}

@media (max-width: 900px) {
  .contact-page { grid-template-columns: 1fr; }
  .contact-photo-panel { display: none; }
  .contact-form-panel { max-height: none; }
}

@media (max-width: 520px) {
  .contact-form-inner { padding: 1.5rem 1.1rem 2.2rem; }
  .contact-row-2 { grid-template-columns: 1fr; }
  .contact-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
