/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ─── */
:root {
  --navy: #0A184A;
  --navy-light: #162a6e;
  --pink: #b04267;
  --orange: #e6725d;
  --bg-light: #f9fafb;
  --grad: linear-gradient(135deg, #672863, #b04267, #e6725d);
  --border: rgba(10,24,74,0.08);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── NAV ─── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 5vw;
  position: relative;
  z-index: 100;
}
.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #6b6b6b;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.pill { color: #fff; }
.nav-links a.nav-connexion { background-image: var(--grad); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px; }

/* ─── PILL ─── */
.pill {
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103,40,99,0.3);
}
.pill:active { transform: translateY(0); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 25px rgba(176,66,103,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(176,66,103,0.4);
}
.btn-secondary {
  color: var(--navy);
  font-size: 0.9rem;
  background: transparent;
}
.btn-secondary:hover { opacity: 0.7; }

/* ─── TEXT GRADIENT ─── */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── MOBILE NAV ─── */
@media (max-width: 600px) {
  nav { padding: 1.1rem 4vw; }
  .nav-links > a:not(.pill) { display: none; }
}

/* ─── FOOTER ─── */
footer {
  padding: 2.5rem 5vw;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  border-top: 1px solid var(--border);
}

/* ─── NAV DROPDOWN ─── */
.nav-dropdown { position: relative; }

.nav-drop-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 400;
  color: #6b6b6b; display: flex; align-items: center; gap: 4px;
  padding: 0; transition: color 0.2s;
}
.nav-drop-btn:hover { color: var(--navy); }

.nav-drop-menu {
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff; border-radius: 14px; padding: 6px;
  border: 0.5px solid rgba(10,24,74,0.08);
  box-shadow: 0 8px 32px rgba(10,24,74,0.1);
  min-width: 160px; opacity: 0; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 1000;
}
.nav-drop-btn::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 16px;
}
.nav-dropdown { position: relative; }

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: #444;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.nav-drop-menu a:hover { background: #f5f4f2; color: var(--navy); }

@media (max-width: 600px) {
  nav { position: relative; overflow: visible; }
  .nav-links { overflow: visible; }
  .nav-dropdown { position: static; }
  .nav-drop-menu {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 200px;
    z-index: 9999;
  }
  .nav-dropdown:hover .nav-drop-menu,
  .nav-dropdown:focus-within .nav-drop-menu {
    transform: translateX(-50%) translateY(0);
  }
}

img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}
img.lazy.loaded {
  opacity: 1;
}

/* ─── SKELETON ─── */
@keyframes skeleton-shimmer {
  from { background-position: -600px 0; }
  to   { background-position:  600px 0; }
}

nav:not(.loaded)::before,
nav:not(.loaded)::after {
  content: '';
  height: 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(10,24,74,0.05) 25%, rgba(10,24,74,0.1) 50%, rgba(10,24,74,0.05) 75%);
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}
nav:not(.loaded)::before { width: 110px; }
nav:not(.loaded)::after  { width: 220px; }