/* Page Contact — styles autonomes (n'utilisent pas Tailwind) */

.ct-page { width: 100%; background: #f3f4f6; }
.ct-columns { display: flex; flex-direction: column; min-height: 100vh; }
@media (min-width: 1024px) { .ct-columns { flex-direction: row; } }

.ct-hero {
  width: 100%; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  padding: 56px 24px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 1024px) { .ct-hero { width: 50%; min-height: 100vh; } }

.ct-hero-inner { color: #fff; max-width: 460px; width: 100%; position: relative; z-index: 2; }
.ct-hero-inner h1 { font-size: 2rem; font-weight: 700; margin: 0 0 16px; }
.ct-hero-inner p.ct-lead { font-size: 1.05rem; margin: 0 0 32px; line-height: 1.6; opacity: 0.95; }

.ct-info-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ct-info-row svg { flex-shrink: 0; width: 22px; height: 22px; }
.ct-info-row span { font-size: 0.95rem; }

.ct-social-title { font-size: 1.1rem; font-weight: 600; margin: 24px 0 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.2); }
.ct-social-row { display: flex; gap: 18px; }
.ct-social-row a { color: #fff; opacity: 0.9; transition: opacity 0.2s ease; }
.ct-social-row a:hover { opacity: 1; }
.ct-social-row svg { width: 22px; height: 22px; }

/* ---------- Carte formulaire ---------- */
.ct-form-wrap { width: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
@media (min-width: 1024px) { .ct-form-wrap { width: 50%; } }

.ct-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); padding: 32px; width: 100%; max-width: 480px; box-sizing: border-box; }
.ct-card h2 { font-size: 1.6rem; font-weight: 700; color: #111827; margin: 0 0 24px; }

.ct-field { margin-bottom: 20px; }
.ct-field label { display: block; font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 6px; }

.ct-input-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #d1d5db; border-radius: 10px; padding: 0 14px;
  background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ct-input-box:focus-within { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.ct-input-box svg { flex-shrink: 0; width: 18px; height: 18px; color: #9ca3af; }
.ct-input-box input, .ct-input-box textarea {
  border: none; outline: none; flex: 1; min-width: 0;
  padding: 11px 0; font-size: 0.95rem; color: #111827; background: transparent;
  font-family: inherit;
}
.ct-input-box textarea { resize: vertical; padding-top: 12px; min-height: 100px; }
.ct-input-box input::placeholder, .ct-input-box textarea::placeholder { color: #9ca3af; }

.ct-phone-box { padding-left: 0; }
.ct-phone-prefix {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border-right: 1px solid #e5e7eb; align-self: stretch;
  color: #6b7280; font-size: 0.9rem; font-weight: 600; flex-shrink: 0;
}
.ct-phone-prefix svg { color: #9ca3af; width: 16px; height: 16px; }

.ct-error { color: #dc2626; font-size: 0.8rem; margin-top: 5px; }

.ct-submit {
  width: 100%; padding: 13px; margin-top: 8px;
  background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff;
  border: none; border-radius: 10px; font-size: 0.98rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.ct-submit:hover { opacity: 0.92; }
.ct-submit:active { transform: scale(0.98); }
.ct-submit .ct-spinner { display: none; width: 18px; height: 18px; animation: ctSpin 0.8s linear infinite; }
.ct-submit.is-loading .ct-spinner { display: inline-block; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

.ct-badge {
  margin-top: 14px; text-align: center; font-size: 0.75rem; color: #9ca3af;
}

/* ---------- Widget chat flottant (visible sur toutes les pages) ---------- */
.ct-widget-toggle {
  position: fixed; bottom: 16px; right: 20px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
  transition: transform 0.2s ease;
}
.ct-widget-toggle:hover { transform: scale(1.06); }
.ct-widget-toggle svg { width: 24px; height: 24px; }

.ct-widget-panel {
  position: fixed; bottom: 82px; right: 20px; z-index: 60;
  width: min(340px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 110px));
  overflow-y: auto;
}
.ct-widget-panel.is-hidden { display: none; }
.ct-widget-panel .ct-card { box-shadow: 0 16px 48px rgba(0,0,0,0.18); padding: 22px; }
.ct-widget-panel .ct-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
.ct-widget-panel .ct-field { margin-bottom: 14px; }
.ct-widget-panel .ct-input-box textarea { min-height: 70px; }

@media (max-width: 400px) {
  .ct-widget-toggle { bottom: 12px; right: 12px; width: 48px; height: 48px; }
  .ct-widget-panel { bottom: 68px; right: 8px; left: 8px; width: auto; }
}
