/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2744;
  --blue-800: #173562;
  --blue-700: #1e4a84;
  --blue-600: #2563a8;
  --blue-500: #3578c5;
  --blue-400: #5a9ddd;
  --blue-100: #ddeaf8;
  --blue-50:  #f0f6fd;
  --sand: #f7f4ef;
  --sand-dark: #ede9e2;
  --text-900: #0f1c2e;
  --text-700: #2d3f55;
  --text-500: #5a6e84;
  --text-300: #98aaba;
  --white: #ffffff;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #ef4444;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--sand); color: var(--text-900); -webkit-font-smoothing: antialiased; }

/* ── TOPBAR ── */
.topbar { background: var(--blue-900); color: rgba(255,255,255,.75); font-size: .78rem; letter-spacing: .02em; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: .55rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-label { opacity: .6; }
.topbar-links { display: flex; gap: 1.5rem; align-items: center; }
.topbar-links a { color: rgba(255,255,255,.75); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; }
.topbar-links a:hover { color: #fff; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.07); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: 'Lora', serif;
  box-shadow: 0 2px 8px rgba(30,74,132,.22), inset 0 0 0 1px rgba(255,255,255,.08);
  flex-shrink: 0;
}
.nav-avatar-pre {
  font-family: 'DM Sans', sans-serif;
  font-size: .5rem;
  font-weight: 500;
  letter-spacing: .1em;
  opacity: .8;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.nav-avatar-mono {
  font-size: .98rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.02em;
}
.nav-title { font-weight: 600; color: var(--text-900); font-size: .95rem; line-height: 1.2; }
.nav-sub { font-size: .72rem; color: var(--text-500); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: .875rem; color: var(--text-700); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--blue-600); }
.nav-link-demandes { color: var(--blue-600) !important; font-weight: 600 !important; background: var(--blue-50); padding: .3rem .8rem !important; border-radius: 100px; border: 1.5px solid var(--blue-100); transition: background .2s, border-color .2s !important; }
.nav-link-demandes:hover { background: var(--blue-100) !important; border-color: var(--blue-400) !important; }
.btn-rdv { display: inline-flex; align-items: center; gap: .5rem; background: var(--blue-600); color: #fff; padding: .6rem 1.25rem; border-radius: 100px; font-size: .875rem; font-weight: 500; text-decoration: none; transition: background .2s, transform .15s; white-space: nowrap; }
.btn-rdv:hover { background: var(--blue-700); transform: translateY(-1px); }

/* ── FOOTER ── */
footer { background: var(--blue-900); color: rgba(255,255,255,.55); padding: 3.5rem 1.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-family: 'Lora', serif; font-size: 1.1rem; color: #fff; font-weight: 500; }
.footer-brand-sub { font-size: .75rem; margin-top: .25rem; color: rgba(255,255,255,.4); }
.footer-brand-desc { font-size: .82rem; margin-top: .85rem; line-height: 1.65; font-weight: 300; }
.footer-col-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: .76rem; flex-wrap: wrap; gap: .5rem; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .topbar-label { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
