.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.contact-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 100vh;
}

/*  Aside gauche  */
.contact-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.aside-inner {
  position: relative;
  z-index: 2;
}
.aside-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 717;
  color: var(--yellow);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}
.aside-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
  max-width: 380px;
}

/* Contact info list */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ci-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-icon svg { width: 42px; height: 42px; }
.ci-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.ci-value {
  display: block;
  font-size: 22px;
  color: var(--white);
  transition: color 0.2s;
  text-transform: uppercase;
  margin-top: 6px;
}
a.ci-value:hover { color: var(--yellow); }

/* Deco blocs */
.aside-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco-block {
  position: absolute;
  border-radius: 8px;
  opacity: 0.04;
}
.deco-block--1 {
  width: 320px;
  height: 320px;
  background: var(--yellow);
  bottom: -80px;
  right: -80px;
  transform: rotate(20deg);
}
.deco-block--2 {
  width: 180px;
  height: 180px;
  background: var(--yellow);
  top: 60px;
  right: 40px;
  transform: rotate(-10deg);
  opacity: 0.06;
}

/*  Form section droite  */
.contact-form-section {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 64px;
}
.form-wrapper {
  width: 100%;
  max-width: 520px;
}

/*  Form success  */
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.success-icon { margin: 0 auto 24px; width: 64px; height: 64px; }
.success-icon svg { width: 100%; height: 100%; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.form-success p {
  font-size: 1rem;
  color: rgba(2,40,73,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}

/*  Form elements  */
.form-row { display: flex; gap: 20px; }
.form-row--2 > * { flex: 1; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.8;
}
.form-label span { color: var(--yellow); margin-left: 2px; }
.form-input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: #f8f8f5;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input::placeholder { color: rgba(2,40,73,0.35); }
.form-input:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(2,40,73,0.06);
}
.form-input.error { border-color: #e53e3e; background: #fff5f5; }
.form-input.error:focus { box-shadow: 0 0 0 4px rgba(229,62,62,0.1); }
.form-input.success { border-color: #38a169; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23022849' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-error {
  font-size: 0.78rem;
  color: #e53e3e;
  min-height: 16px;
  display: block;
  font-weight: 500;
}
.form-hint {
  font-size: 0.75rem;
  color: rgba(2,40,73,0.4);
  text-align: right;
  margin-top: 2px;
}

/*  Form footer  */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-privacy {
  font-size: 0.78rem;
  color: rgba(2,40,73,0.45);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 260px;
}
.form-privacy svg { flex-shrink: 0; margin-top: 1px; }

/* Submit button */
.btn--submit {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  min-width: 200px;
  justify-content: center;
}
.btn--submit.loading .btn-text { opacity: 0; }
.btn--submit.loading .btn-loader { opacity: 1; }
.btn-loader {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(2,40,73,0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  opacity: 0;
  transition: opacity 0.2s;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Global error */
.form-global-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #e53e3e;
  text-align: center;
}

/* reCAPTCHA badge custom styling */
.grecaptcha-badge {
  visibility: visible !important;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.grecaptcha-badge:hover { opacity: 1; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/*  Responsive  */
@media (max-width: 960px) {
  .contact-main { grid-template-columns: 1fr; }
  .contact-aside { min-height: 50vh; }
  .contact-form-section { padding: 48px 40px; }
  .form-wrapper { max-width: 100%; }
  .contact-wrapper { min-height: 10px; }
}

@media (max-width: 600px) {
  .contact-form-section { padding: 40px 24px; }
  .form-row--2 { flex-direction: column; gap: 0; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-privacy { max-width: 100%; }
  .btn--submit { width: 100%; }
}
