/* ══════════════════════════════════════════════════
   contact.css — Page Contact
   ══════════════════════════════════════════════════ */

/* ── Hero ── */
.contact-hero {
  background: linear-gradient(135deg, #0A2540 0%, #1a1a3e 50%, #7C3AED 100%);
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.contact-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.contact-hero-glow {
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Formulaire ── */
.form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #0A2540;
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form-group .req {
  color: #00D4FF;
  margin-left: 2px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: .9rem;
  color: #0A2540;
  background: #fafafa;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder {
  color: #9ca3af;
}
.form-control:focus {
  border-color: #7C3AED;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
textarea.form-control {
  height: 148px;
  resize: vertical;
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ── Validation ── */
.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #DC2626;
}
.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
  box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.feedback {
  display: none;
  font-size: .78rem;
  margin-top: 5px;
  color: #DC2626;
}
.was-validated .form-control:placeholder-shown:invalid ~ .feedback.empty-feedback {
  display: block;
}
.was-validated .form-control:not(:placeholder-shown):invalid ~ .feedback.invalid-feedback {
  display: block;
}

/* ── RGPD ── */
.rgpd-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.rgpd-row input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #7C3AED;
  cursor: pointer;
}
.rgpd-row label {
  font-size: .78rem;
  color: #6b7280;
  line-height: 1.5;
  cursor: pointer;
}
.rgpd-row label a {
  color: #7C3AED;
  text-decoration: underline;
}
.rgpd-error {
  display: none;
  font-size: .78rem;
  color: #DC2626;
  margin-top: -16px;
  margin-bottom: 16px;
}
.rgpd-error.visible {
  display: block;
}

/* ── Bouton Submit ── */
.btn-submit {
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, #7C3AED, #00D4FF);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,.5);
}
.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.btn-submit .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Message résultat ── */
#form-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
  display: none;
}
#form-result.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}
#form-result.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
#form-result.loading-msg {
  display: block;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* ── Info Cards ── */
.info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.07);
}

/* ── Reassurance Card ── */
.reassurance-card {
  background: linear-gradient(135deg, #0A2540, #1a1a3e);
  border-radius: 14px;
  padding: 28px;
}
.rc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .83rem;
  color: rgba(255,255,255,.65);
}
.rc-item:last-child { border-bottom: none; }
.rc-item .rc-ok {
  color: #00D4FF;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .form-card {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}
