.hero-gradient {
    background: linear-gradient(135deg, 
#1e3a8a 0%, 
#3b82f6 100%);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.contact-card {
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: scale(1.03);
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
/* ====== Grille & groupes ====== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group--full { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ====== Labels & champs ====== */
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a; /* slate-900 */
}

.req { color: #ef4444; } /* rouge pour * */

.input,
.textarea {
  width: 100%;
  border: 1px solid #e5e7eb;      /* gray-200 */
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  will-change: border-color, box-shadow;
}

.input::placeholder,
.textarea::placeholder { color: #9ca3af; } /* gray-400 */

.input:focus,
.textarea:focus {
  outline: none;
  border-color: #3b82f6; /* brand-end */
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

/* Accessibilité clavier */
.input:focus-visible,
.textarea:focus-visible {
  outline: 3px solid color-mix(in oklab, #3b82f6 70%, white);
  outline-offset: 2px;
}

/* Hover only si supporté (évite sur mobile) */
@media (any-hover: hover) {
  .input:hover,
  .textarea:hover {
    border-color: #cbd5e1; /* slate-300 */
  }
}

/* ====== Checkbox ====== */
.checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #334155; /* slate-700 */
}
.checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
}

/* ====== Bouton primaire ====== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  box-shadow: 0 8px 20px -6px rgba(30,58,138,.4);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  will-change: transform, box-shadow;
  transform: translate3d(0,0,0);
}
@media (any-hover: hover) {
  .btn-primary:hover {
    transform: translate3d(0,-2px,0);
    box-shadow: 0 14px 28px -10px rgba(30,58,138,.5);
  }
}
.btn-primary:active { transform: translate3d(0,1px,0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Focus visible pour clavier */
.btn-primary:focus-visible {
  outline: 3px solid color-mix(in oklab, #3b82f6 70%, white);
  outline-offset: 3px;
}

/* Spinner (version JS) */
.btn-spinner {
  width: 16px; height: 16px; margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  display: none;
}
.btn-primary.is-loading .btn-spinner { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Motion-safe */
@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .input,
  .textarea { transition: none; }
}