*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: Inter, system-ui, sans-serif; }

body {
  min-height: 100vh;
  background: #F8FAF8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* ── Particules canvas ── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Glow spots ── */
.glow-cyan {
  position: fixed;
  top: 10%;
  left: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(6,182,212,.1);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-emerald {
  position: fixed;
  bottom: 5%;
  right: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(52,211,153,.1);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Carte principale ── */
.card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 25px 60px rgba(15,23,42,.12);
}

/* ── Panneau gauche ── */
.panel-left {
  background: linear-gradient(135deg, #06b6d4 0%, #0f766e 100%);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,.2), transparent 40%);
}
.panel-left-content { position: relative; z-index: 1; }
.service-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.panel-left h1 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.panel-left p {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
}
.panel-bullets { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.panel-bullet {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
.panel-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.panel-footer a {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.panel-footer a:hover { color: #fff; }

/* ── Panneau droit (formulaire) ── */
.panel-right {
  padding: 36px 40px;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.panel-right::-webkit-scrollbar { display: none; }
.panel-right h2 {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}
.panel-right .sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Champs formulaire ── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: .03em;
  margin-bottom: 5px;
}
.field label .req { color: #06b6d4; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #06b6d4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6,182,212,.1);
}
.field textarea { resize: vertical; min-height: 72px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #06b6d4 0%, #0f766e 50%, #0891b2 100%);
  background-size: 200% 200%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(6,182,212,.35), 0 1px 0 rgba(255,255,255,.15) inset;
  animation: btnGradient 4s ease infinite;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}

@keyframes btnGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shimmer sweep */
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-submit:hover::before { left: 160%; }

/* Glow pulse */
.btn-submit::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, #06b6d4, #0f766e);
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity .3s;
}
.btn-submit:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 40px rgba(6,182,212,.45), 0 4px 12px rgba(15,118,110,.3);
}
.btn-submit:hover::after { opacity: .7; }
.btn-submit:active { transform: translateY(0) scale(.99); }
.btn-submit:disabled {
  opacity: .6;
  transform: none;
  cursor: not-allowed;
  animation: none;
}

/* Ripple au clic */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0);
  animation: ripple .55s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.form-note {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
}

/* ── Succès ── */
#formSuccess {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.success-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(6,182,212,.15), rgba(6,182,212,.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}
#formSuccess h3 { font-size: 20px; font-weight: 900; color: #0f172a; margin-bottom: 8px; }
#formSuccess p { font-size: 13px; color: #64748b; line-height: 1.6; }

/* ── Mobile ── */
@media (max-width: 700px) {
  body { padding: 0; align-items: flex-start; }
  .card { grid-template-columns: 1fr; border-radius: 0; max-width: 100%; min-height: 100vh; box-shadow: none; border: none; }
  .panel-left { padding: 28px 24px; }
  .panel-right { padding: 28px 24px; max-height: none; }
  .panel-bullets { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
