/* ============================================
   SHARED STYLES — Version A : Sobre & Professionnel
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --cream: #FAFAF7;
  --ink: #1C1C18;
  --ink-light: #5C5C52;
  --ink-muted: #8A8A7C;
  --gold: #B8965A;
  --gold-light: #E8D5B0;
  --gold-pale: #F5EDD8;
  --border: #E4E1D8;
  --border-light: #EDEBE4;
  --white: #FFFFFF;
  --success: #3D7A5C;
  --serif: 'Playfair Display', Georgia, serif;
  --body: 'Source Serif 4', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --nav-h: 64px;
}

[data-theme="dark"] {
  --cream: #151510;
  --ink: #E8E6DF;
  --ink-light: #A8A89A;
  --ink-muted: #6A6A5C;
  --gold: #C9A96E;
  --gold-light: #4A3A20;
  --gold-pale: #2A2218;
  --border: #2E2E26;
  --border-light: #252520;
  --white: #1E1E18;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

/* ——— NAVIGATION ——— */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 80px);
  gap: 32px;
  transition: background 0.3s;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.3s;
}
.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  transition: transform 0.3s, top 0.3s, bottom 0.3s;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

.nav-links {
  display: flex; gap: 28px; list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}
.nav-footer {
  display: none;
}
.nav-theme-btn {
  background: none; border: 1px solid var(--border);
  color: var(--ink-muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.2s; flex-shrink: 0;
}
.nav-theme-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-theme-btn { margin-left: auto; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--nav-h));
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15vh 40px 40px;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .nav-footer {
    display: block;
    margin-top: auto;
    font-family: var(--sans);
    font-size: 0.65rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    text-align: center;
    opacity: 0.7;
  }
}

/* ——— PAGE WRAPPER ——— */
.page-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ——— FOOTER ——— */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 36px clamp(20px, 5vw, 80px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ——— UTILS ——— */
.gold-line {
  width: 36px; height: 2px; background: var(--gold);
  display: block; margin: 0;
}
.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
