/* ============================================
   ADEQUACIO — Design System
   Palette: Bleu marine profond + ivoire + or discret
   Typographie: Cormorant Garamond (display) + DM Sans (corps)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy:     #0D2137;
  --navy-mid: #1A3A5C;
  --navy-lt:  #2A5080;
  --gold:     #B8975A;
  --gold-lt:  #D4B483;
  --ivory:    #F7F5F0;
  --ivory-dk: #EDE9E1;
  --white:    #FFFFFF;
  --text:     #1C2B3A;
  --text-mid: #4A5E72;
  --text-lt:  #8A9DB0;
  --border:   rgba(13,33,55,0.10);
  --border-gold: rgba(184,151,90,0.30);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1140px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active { font-weight: 500; }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--navy);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }

/* hamburger mobile */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: 0.3s; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 3.5rem 2rem 2rem;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand img { height: 48px; filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5);
  text-decoration: none; margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  max-width: var(--max-w); margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: var(--gold-lt); text-decoration: none; }

/* ---- UTILITIES ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.15;
  color: var(--navy);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-intro {
  font-size: 1rem; color: var(--text-mid);
  max-width: 560px; margin-top: 1rem; line-height: 1.8;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  padding: 0.85rem 2rem; border-radius: 2px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); background: transparent;
  padding: 0.85rem 2rem; border-radius: 2px;
  text-decoration: none; border: 1px solid var(--border-gold);
  cursor: pointer; transition: all 0.25s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* gold line divider */
.gold-rule { width: 48px; height: 1px; background: var(--gold); margin: 1.5rem 0; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: fixed;
    top: var(--nav-h); left: 0; right: 0; background: var(--ivory);
    border-bottom: 1px solid var(--border); padding: 1rem 2rem 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .nav-burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
