:root {
  /* Couleurs */
  --c-marine:       #0B1E3D;
  --c-marine-deep:  #071429;
  --c-blue:         #1A6FE8;
  --c-blue-hover:   #1560CF;
  --c-blue-sky:     #3B8BF5;
  --c-blue-light:   #E8F1FB;
  --c-blue-mid:     #D0E4F8;
  --c-red:          #E84040;
  --c-red-light:    #FDEAEA;
  --c-green:        #1B7A48;
  --c-green-light:  #E5F5EC;
  --c-amber:        #D97706;
  --c-amber-light:  #FEF3C7;

  /* Neutres */
  --c-white:        #FFFFFF;
  --c-off-white:    #F4F7FB;
  --c-gray-100:     #EDF1F7;
  --c-gray-200:     #D8E4F5;
  --c-gray-300:     #B0C4DE;
  --c-gray-400:     #8BA4CC;
  --c-gray-500:     #4A617F;
  --c-gray-600:     #2D4160;
  --c-text:         #0B1E3D;
  --c-text-soft:    #4A617F;
  --c-text-muted:   #8BA4CC;
  --c-border:       #D8E4F5;
  --c-border-light: #EDF1F7;

  /* Typographie */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espacements */
  --sp-xs:   0.25rem;
  --sp-sm:   0.5rem;
  --sp-md:   1rem;
  --sp-lg:   1.5rem;
  --sp-xl:   2rem;
  --sp-2xl:  3rem;
  --sp-3xl:  4rem;
  --sp-4xl:  6rem;

  /* Rayons */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Ombres */
  --shadow-xs:  0 1px 3px rgba(11,30,61,0.06);
  --shadow-sm:  0 2px 8px rgba(11,30,61,0.08);
  --shadow-md:  0 4px 20px rgba(11,30,61,0.1);
  --shadow-lg:  0 8px 40px rgba(11,30,61,0.12);
  --shadow-xl:  0 16px 60px rgba(11,30,61,0.15);
  --shadow-blue: 0 4px 20px rgba(26,111,232,0.3);

  /* Nav */
  --nav-h: 68px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* Conteneur */
  --container: 1200px;
  --container-narrow: 760px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--c-text); background: var(--c-white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typographie globale ───────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--c-text); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 0.975rem; color: var(--c-text-soft); line-height: 1.75; font-weight: 400; }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 0.75rem;
}

/* ── Conteneur ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 5vw;
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding: var(--sp-4xl) 5vw; }
.section-dark { background: var(--c-marine); color: var(--c-white); }
.section-light { background: var(--c-off-white); }

/* ── Boutons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1.6rem; border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--c-blue); color: var(--c-white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--c-blue-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,111,232,0.4); }
.btn-secondary {
  background: transparent; color: var(--c-blue);
  border-color: var(--c-blue);
}
.btn-secondary:hover { background: var(--c-blue-light); }
.btn-dark {
  background: var(--c-marine); color: var(--c-white);
}
.btn-dark:hover { background: var(--c-marine-deep); transform: translateY(-2px); }
.btn-white {
  background: var(--c-white); color: var(--c-blue);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-white {
  background: transparent; color: var(--c-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }
.btn-urgent {
  background: transparent; color: var(--c-red);
  border-color: var(--c-red);
}
.btn-urgent:hover { background: var(--c-red); color: var(--c-white); transform: translateY(-2px); }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.975rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* ── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  padding: 0.25rem 0.65rem; border-radius: var(--r-full);
  letter-spacing: 0.03em; white-space: nowrap;
}
.badge-blue   { background: var(--c-blue-light); color: var(--c-blue); }
.badge-green  { background: var(--c-green-light); color: var(--c-green); }
.badge-red    { background: var(--c-red-light); color: var(--c-red); }
.badge-dark   { background: var(--c-marine); color: var(--c-white); }
.badge-gray   { background: var(--c-gray-100); color: var(--c-gray-500); }
.badge-amber  { background: var(--c-amber-light); color: var(--c-amber); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ── Formulaires ───────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 500;
  color: var(--c-text-muted); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--c-text);
  background: var(--c-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none; appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(26,111,232,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--c-text-muted);
  pointer-events: none;
}
.form-error { font-size: 0.75rem; color: var(--c-red); margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--c-red); }

/* ── Animations scroll ─────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Animations hero ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.anim-1 { animation: fadeUp 0.6s 0.05s ease both; }
.anim-2 { animation: fadeUp 0.6s 0.15s ease both; }
.anim-3 { animation: fadeUp 0.6s 0.25s ease both; }
.anim-4 { animation: fadeUp 0.6s 0.35s ease both; }
.anim-5 { animation: fadeUp 0.6s 0.45s ease both; }

/* ── NAVIGATION ────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.site-header.scrolled {
  border-color: var(--c-border-light);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 0 5vw;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo-icon svg { width: 36px; height: 36px; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--c-text); letter-spacing: -0.04em;
}
.nav-logo-text span { color: var(--c-blue); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  flex: 1; justify-content: center;
}
.nav-link {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--c-text-muted); padding: 0.4rem 0.75rem;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--c-text); background: var(--c-gray-100); }
.nav-link.active { color: var(--c-blue); background: var(--c-blue-light); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-auth {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
}
.nav-auth:hover { color: var(--c-text); }
.btn-nav-cta {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--c-blue); color: var(--c-white);
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  padding: 0.55rem 1.25rem; border-radius: var(--r-md);
  letter-spacing: -0.01em;
  transition: background var(--t-fast), transform var(--t-fast);
  box-shadow: var(--shadow-blue);
}
.btn-nav-cta:hover { background: var(--c-blue-hover); transform: translateY(-1px); }
.nav-burger {
  display: none; background: none; border: none;
  color: var(--c-text); padding: 0.25rem;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav-burger:hover { background: var(--c-gray-100); }

/* ── DRAWER MOBILE ─────────────────────────────────────── */
.mobile-drawer { position: fixed; inset: 0; z-index: 950; display: none; }
.mobile-drawer.open { display: block; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(11,30,61,0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--c-white);
  display: flex; flex-direction: column;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-xl);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-border-light);
}
.drawer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--c-text); letter-spacing: -0.04em; }
.drawer-logo span { color: var(--c-blue); }
.drawer-close {
  background: none; border: none; color: var(--c-text-muted);
  padding: 0.25rem; border-radius: var(--r-sm);
  transition: color var(--t-fast);
}
.drawer-close:hover { color: var(--c-text); }
.drawer-nav { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.drawer-link {
  display: block; padding: 0.75rem 1rem; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--c-text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.drawer-link:hover { background: var(--c-gray-100); color: var(--c-text); }
.drawer-link.active { background: var(--c-blue-light); color: var(--c-blue); font-weight: 600; }
.drawer-footer { padding: 1rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.btn-drawer-auth {
  display: block; text-align: center; padding: 0.75rem;
  border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--c-text);
  transition: background var(--t-fast);
}
.btn-drawer-auth:hover { background: var(--c-gray-100); }
.btn-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--c-blue); color: var(--c-white);
  padding: 0.85rem; border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-blue);
  transition: background var(--t-fast);
}
.btn-drawer-cta:hover { background: var(--c-blue-hover); }

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--c-marine);
  color: rgba(255,255,255,0.6);
  padding: 4rem 5vw 2rem;
  margin-top: auto;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; width: fit-content; }
.footer-logo-icon { width: 36px; height: 36px; }
.footer-logo-icon svg { width: 36px; height: 36px; }
.footer-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--c-white); letter-spacing: -0.04em; }
.footer-logo-text span { color: var(--c-blue-sky); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social-link {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background var(--t-fast), color var(--t-fast);
}
.footer-social-link:hover { background: rgba(255,255,255,0.15); color: var(--c-white); }
.footer-col-title { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: var(--c-white); margin-bottom: 1rem; letter-spacing: -0.01em; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color var(--t-fast); }
.footer-link:hover { color: var(--c-white); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact-item svg { color: var(--c-blue-sky); flex-shrink: 0; margin-top: 1px; }
.footer-link-text { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.btn-footer-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: var(--c-white);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  padding: 0.55rem 1.1rem; border-radius: var(--r-md);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.btn-footer-whatsapp:hover { opacity: 0.9; transform: translateY(-1px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-link { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: color var(--t-fast); }
.footer-legal-link:hover { color: rgba(255,255,255,0.7); }

/* ── PAGE HERO (pages internes) ────────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 380px;
  padding: calc(var(--nav-h) + 4rem) 5vw 4rem;
  display: flex; align-items: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,30,61,0.88) 0%, rgba(11,30,61,0.65) 60%, rgba(11,30,61,0.5) 100%);
}
.page-hero-content {
  position: relative; z-index: 1;
  max-width: var(--container); width: 100%; margin: 0 auto;
}
.page-hero-tag { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-blue-sky); display: block; margin-bottom: 0.75rem; }
.page-hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--c-white); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
.page-hero-sub { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 540px; line-height: 1.7; font-weight: 300; }

/* ── CTA SECTION ───────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--c-blue) 0%, #0850A8 100%);
  color: var(--c-white); padding: var(--sp-4xl) 5vw; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -40%; left: -5%; width: 50%; height: 200%;
  background: rgba(255,255,255,0.04); transform: rotate(-15deg);
  pointer-events: none;
}
.cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--c-white); letter-spacing: -0.03em; margin-bottom: 0.75rem; position: relative; }
.cta-sub { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 420px; margin: 0 auto 2.5rem; font-weight: 300; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── UTILITAIRES ───────────────────────────────────────── */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-auth { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: var(--sp-3xl) 5vw; }
  .page-hero { min-height: 320px; padding: calc(var(--nav-h) + 3rem) 5vw 3rem; }
}
@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .btn-nav-cta span { display: none; }
  .footer-legal-links { gap: 1rem; }
}