/* ============================================================
   contact.css — page Contacto
   ============================================================ */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

/* ---------- En-tête ---------- */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 56px) clamp(22px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(255, 106, 0, 0.35), transparent 65%),
    radial-gradient(420px 240px at 0% 100%, rgba(59, 130, 246, 0.18), transparent 65%),
    linear-gradient(135deg, #0d1426 0%, #0a0f1e 100%);
  color: #fff;
}
.contact-hero::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.contact-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
}
.contact-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 52px); letter-spacing: 0.01em; color: #fff; }
.contact-hero__lead { max-width: 560px; margin: 0 0 22px; font-size: clamp(15px, 2vw, 17px); line-height: 1.6; color: #cbd5e1; }
.contact-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 600;
}
.contact-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: contact-pulse 2s ease-out infinite;
}
@keyframes contact-pulse {
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Canaux ---------- */
.contact-channels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  margin: -28px clamp(12px, 3vw, 32px) 32px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--color-steel-100);
  border-radius: 18px;
  background: #fff;
  color: var(--color-navy-950);
  text-decoration: none;
  box-shadow: 0 16px 36px -24px rgba(10, 15, 26, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-channel[hidden] { display: none; }
.contact-channel:hover { transform: translateY(-3px); border-color: #fed7aa; box-shadow: 0 22px 40px -24px rgba(255, 106, 0, 0.5); }
.contact-channel__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: #fff1e6;
  color: var(--color-accent-600);
}
.contact-channel--whatsapp .contact-channel__icon { background: #e7f9ee; color: #16a34a; }
.contact-channel__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.contact-channel__text strong { font-size: 15px; }
.contact-channel__text span { font-size: 13px; color: var(--color-steel-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-channel__arrow { color: #94a3b8; font-weight: 700; transition: transform 0.2s ease, color 0.2s ease; }
.contact-channel:hover .contact-channel__arrow { transform: translateX(3px); color: var(--color-accent-600); }

/* ---------- Mise en page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.contact-card {
  border: 1px solid var(--color-steel-100);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px -26px rgba(15, 23, 42, 0.35);
}

/* ---------- Formulaire ---------- */
.contact-form-card { padding: clamp(22px, 4vw, 34px); }
.contact-form-card h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: 0.01em; }
.contact-card__sub { margin: 0 0 22px; color: var(--color-steel-500); font-size: 14.5px; }

.contact-topics { margin: 0 0 22px; padding: 0; border: none; }
.contact-topics legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 700; color: #334155; }
.contact-topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-topic { position: relative; cursor: pointer; }
.contact-topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact-topic span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1.5px solid var(--color-steel-100);
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy-900);
  transition: all 0.15s ease;
}
.contact-topic:hover span { border-color: var(--color-steel-300); }
.contact-topic input:checked + span { border-color: var(--color-accent-500); background: #f5f3ff; color: var(--color-accent-600); }
.contact-topic input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.25); }

.contact-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.contact-field { position: relative; }
.contact-field--full { grid-column: 1 / -1; }

/* Champs à étiquette flottante */
.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 24px 16px 8px;
  border: 1.5px solid var(--color-steel-100);
  border-radius: 14px;
  background: #f8fafc;
  font: inherit;
  font-size: 15px;
  color: var(--color-navy-950);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.contact-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; padding-top: 28px; }
.contact-field label {
  position: absolute;
  left: 17px; top: 18px;
  font-size: 15px;
  color: #64748b;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.15s ease, color 0.15s ease;
}
.contact-field input:focus + label,
.contact-field input:not(:placeholder-shown) + label,
.contact-field textarea:focus + label,
.contact-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.78);
  color: var(--color-accent-600);
  font-weight: 600;
}
.contact-field input:hover, .contact-field textarea:hover { border-color: var(--color-steel-300); }
.contact-field input:focus, .contact-field textarea:focus {
  outline: none;
  border-color: var(--color-accent-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}
.contact-field.is-invalid input, .contact-field.is-invalid textarea { border-color: var(--color-danger); background: #fff7f7; }
.contact-field.is-invalid label { color: var(--color-danger); }
.contact-field__count { position: absolute; right: 14px; bottom: 10px; font-size: 11.5px; color: #94a3b8; }

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--color-navy-900);
  cursor: pointer;
}
.contact-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--color-accent-500); flex-shrink: 0; }
.contact-consent a { color: var(--color-accent-600); font-weight: 600; }
.contact-consent.is-invalid { color: var(--color-danger); }

.contact-form__error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fdecea;
  color: var(--color-danger);
  font-size: 13.5px;
  font-weight: 600;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #5b21b6 100%);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(255, 106, 0, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.contact-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(255, 106, 0, 0.95); }
.contact-submit:disabled { opacity: 0.75; cursor: progress; }
.contact-submit.is-loading svg { animation: contact-fly 0.9s ease-in-out infinite; }
@keyframes contact-fly { 50% { transform: translate(3px, -3px); } }

/* Succès */
.contact-success { padding: 30px 10px 10px; text-align: center; animation: contact-in 0.35s ease both; }
.contact-success[hidden] { display: none; }
@keyframes contact-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.contact-success__icon {
  width: 70px; height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, #2fc26f, #17804a);
  color: #fff;
  box-shadow: 0 0 0 10px #e7f7ed;
}
.contact-success h3 { margin: 0 0 8px; font-size: 22px; }
.contact-success p { margin: 0 auto 20px; max-width: 360px; color: var(--color-steel-500); line-height: 1.55; }
.contact-success__again {
  padding: 11px 20px;
  border: 1.5px solid var(--color-steel-300);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-success__again:hover { border-color: var(--color-navy-950); }

/* ---------- Colonne latérale ---------- */
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-team { overflow: hidden; }
.contact-team img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% 30%; }
.contact-team__body { padding: 18px 20px 20px; }
.contact-team h3, .contact-details h3 { margin: 0 0 6px; font-size: 17px; }
.contact-team p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-steel-500); }

.contact-details { padding: 20px; }
.contact-details h3 { margin-bottom: 14px; }
.contact-details ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-details li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--color-steel-500); }
.contact-details li > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.contact-details strong { font-size: 13.5px; color: var(--color-navy-950); }
.contact-details__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #f1f4f9;
  color: var(--color-navy-900);
}

.contact-faq {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--color-navy-950);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-faq:hover { transform: translateY(-2px); border-color: #fed7aa; }
.contact-faq > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; color: var(--color-steel-500); }
.contact-faq strong { font-size: 15px; color: var(--color-navy-950); }
.contact-faq__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--color-navy-950);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.contact-faq:hover .contact-channel__arrow { transform: translateX(3px); color: var(--color-accent-600); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .contact-page { padding: var(--space-3) var(--space-3) var(--space-6); }
  .contact-hero { border-radius: 22px; padding-bottom: 56px; }
  .contact-channels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: -34px 8px 24px; }
  .contact-channel { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .contact-channel__arrow { display: none; }
  .contact-channel__text span { white-space: normal; font-size: 12px; overflow-wrap: anywhere; }
  .contact-form__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form-card h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-hero__dot, .contact-success, .contact-submit.is-loading svg { animation: none; }
}
/* Neutralise le padding générique « main > section » */
.contact-page > .contact-channels { padding: 0; }
.contact-page > .contact-hero { max-width: none; }
