@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #f5f4f0;
  --white: #ffffff;
  --surface: #fafaf8;
  --border: #e4e2dc;
  --border2: #d0cec6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --light: #9a9a9a;
  --accent: #1d4ed8;
  --accent-light: #eff4ff;
  --accent-mid: #c7d9ff;
  --tag-bg: #f0f0eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  height: 62px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 0; list-style: none; }

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.83rem; font-weight: 500;
  padding: 0.45rem 1.1rem; border-radius: 6px;
  transition: all 0.18s;
}
.nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

/* ─── DROPDOWN ─── */
.nav-dropdown { position: relative; list-style: none; }

.nav-dropdown > a {
  display: flex; align-items: center; gap: 0.3rem;
}
.nav-dropdown > a::after {
  content: '▾'; font-size: 0.7rem; transition: transform 0.2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }

.dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* pont invisible pour combler le gap entre le lien et le menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 8px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dropdown-menu a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 7px;
  color: var(--muted) !important;
  font-size: 0.83rem !important;
  background: none !important;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--accent-light) !important; color: var(--accent) !important; }
.dropdown-menu a.active { background: var(--accent-light) !important; color: var(--accent) !important; font-weight: 600 !important; }

/* ─── FIX IMAGES ─── */
img { display: block; }

/* ─── PAGE WRAPPER ─── */
.page-content {
  padding-top: 62px;
  min-height: 100vh;
  animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION ─── */
.section { max-width: 1140px; margin: 0 auto; padding: 3.5rem 3rem 5rem; }
.section-header { margin-bottom: 2.5rem; }

.section-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
}
.section-eyebrow::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--accent); border-radius: 1px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}
.section-sub { color: var(--muted); margin-top: 0.4rem; font-size: 0.9rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.35rem; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; text-decoration: none;
  transition: all 0.18s; border: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #1a45c0; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(29,78,216,0.3); }
.btn-outline { background: white; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ─── CHIPS ─── */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  background: var(--tag-bg); border: 1px solid var(--border);
  color: var(--text); padding: 0.22rem 0.65rem;
  border-radius: 100px; font-size: 0.73rem; font-weight: 500;
}
.chip.blue { background: var(--accent-light); border-color: var(--accent-mid); color: var(--accent); }

/* ─── SUBSECTION TITLE ─── */
.subsection-title {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem;
  margin: 2rem 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.subsection-title::before {
  content: ''; display: block; width: 3px; height: 18px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}

/* ─── FOOTER ─── */
footer {
  text-align: center; padding: 2rem;
  color: var(--light); font-size: 0.8rem;
  border-top: 1px solid var(--border); background: white; margin-top: 3rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  nav { padding: 0 1.25rem; }
  .nav-links a { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
  .section { padding: 2.5rem 1.5rem 3.5rem; }
}
