/* ============================================================
   JASSURE ASSURANCE – Feuille de style principale
   ============================================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  margin: 0;
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px 0 rgba(31, 58, 96, 0.10);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #0b1422 0%, #1f3a60 55%, #356597 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(128, 42, 48, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.shape-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(128, 42, 48, 0.07);
  pointer-events: none;
}

/* ── Cartes ──────────────────────────────────────────────── */
.card-hover {
  transition: transform 0.25s cubic-bezier(.4, 0, .2, 1),
              box-shadow 0.25s cubic-bezier(.4, 0, .2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(31, 58, 96, 0.18);
}

/* ── Onglets ─────────────────────────────────────────────── */
.tab-btn { transition: all 0.2s; }
.tab-btn.active {
  background: #1f3a60;
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(31, 58, 96, 0.3);
}

/* ── Séparateur vague ────────────────────────────────────── */
.wave-divider svg { display: block; }

/* ── Bouton principal ────────────────────────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}
.btn-primary:hover::after { background: rgba(255, 255, 255, 0.08); }

/* ── Animations d'apparition ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Formulaire ──────────────────────────────────────────── */
.form-input:focus {
  outline: none;
  border-color: #1f3a60;
  box-shadow: 0 0 0 3px rgba(31, 58, 96, 0.12);
}

/* ── Menu mobile ─────────────────────────────────────────── */
#mobile-menu {
  transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Labels section ──────────────────────────────────────── */
.section-label {
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #802a30;
}

/* ── Zone dépôt fichiers ─────────────────────────────────── */
.file-drop-zone {
  transition: border-color 0.2s, background 0.2s;
}
.file-drop-zone:hover {
  border-color: #1f3a60;
  background: #f0f4f8;
}
.file-drop-zone.drag-over {
  border-color: #1f3a60;
  background: #dbe3ec;
}

/* ── Bouton pièce jointe ─────────────────────────────────── */
.btn-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-attachment:hover {
  border-color: #1f3a60;
  background: #f0f4f8;
  color: #1f3a60;
  box-shadow: 0 2px 8px rgba(31, 58, 96, 0.10);
}
.btn-attachment svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Badge compteur de fichiers */
.attachment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  background: #1f3a60;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-left: 0.1rem;
}
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
