/* ===== Design tokens ===== */
:root {
  --navy:        #0a1f3c;
  --navy-deep:   #061528;
  --navy-soft:   #13294b;
  --gold:        #c9a45c;
  --gold-bright: #dcbd78;
  --cream:       #f7f4ee;
  --paper:       #ffffff;
  --ink:         #1b2535;
  --muted:       #5b6678;
  --line:        rgba(10, 31, 60, 0.10);
  --shadow:      0 18px 50px -20px rgba(10, 31, 60, 0.28);
  --radius:      14px;
  --container:   1160px;
  --serif:       "Cormorant Garamond", Georgia, serif;
  --sans:        "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  box-shadow: 0 12px 30px -12px rgba(201, 164, 92, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(201, 164, 92, 0.85); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.site-header.scrolled .logo { color: var(--navy); }
.logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  border-radius: 11px;
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem;
}
.logo-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: .02em; }
.logo-text strong { font-weight: 700; }

.nav-list { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: rgba(255,255,255,0.85);
  font-size: 0.93rem; font-weight: 500;
  position: relative; transition: color .2s ease;
}
.site-header.scrolled .nav-list a { color: var(--muted); }
.nav-list a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold); transition: width .25s ease;
}
.nav-list a:not(.nav-cta):hover { color: var(--gold); }
.site-header.scrolled .nav-list a:not(.nav-cta):hover { color: var(--navy); }
.nav-list a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 9px 22px; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep) !important;
  font-weight: 600; transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--gold-bright); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s ease; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 140px 0 90px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(201,164,92,0.18), transparent 60%),
    radial-gradient(800px 500px at 12% 80%, rgba(35,72,128,0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-soft) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 35%, #000, transparent 75%);
}
.hero-inner { max-width: 820px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: 0.78rem;
  font-weight: 600; color: var(--gold-bright); margin: 0 0 22px;
}
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.1rem); line-height: 1.05; margin-bottom: 24px; }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-trust { display: flex; align-items: center; gap: 18px; font-size: 0.82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.hero-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: 0.78rem; font-weight: 700; color: var(--gold); margin: 0 0 14px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 18px 0 0; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--navy); color: var(--gold); font-size: 1.2rem;
}
.card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ===== Approche ===== */
.approche-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.approche-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 20px; }
.approche-intro p { color: var(--muted); margin: 0 0 30px; font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.steps li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.step-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--gold); line-height: 1; min-width: 44px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ===== Stats ===== */
.stats-section { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.stats-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% 10%, rgba(201,164,92,0.16), transparent 60%);
}
.stats-section .kicker { color: var(--gold-bright); }
.stats-section h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.stat { text-align: center; padding: 24px 12px; border-left: 1px solid rgba(255,255,255,0.12); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; color: var(--gold-bright); line-height: 1; }
.stat-label { display: block; margin-top: 12px; color: rgba(255,255,255,0.72); font-size: 0.95rem; }

/* ===== Team ===== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.avatar {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-bright); font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  border: 2px solid var(--gold);
}
.member h3 { font-size: 1.4rem; }
.member .role { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin: 6px 0 14px; }
.member p:last-child { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ===== Contact ===== */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 16px; }
.contact-info > p { color: var(--muted); font-size: 1.05rem; margin: 0 0 32px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; font-size: 1rem; }
.contact-list span { text-transform: uppercase; letter-spacing: .14em; font-size: 0.72rem; font-weight: 700; color: var(--gold); }
.contact-list a:hover { color: var(--gold); }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 0.97rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fcfbf9; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,0.18);
}
.field textarea { resize: vertical; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.form-feedback { margin: 16px 0 0; font-size: 0.92rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-feedback.success { color: #1f7a4d; }
.form-feedback.error { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.72); padding: 72px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo--light { color: #fff; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; font-size: 0.95rem; margin: 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-nav h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 16px; }
.footer-nav a { display: block; color: rgba(255,255,255,0.72); font-size: 0.93rem; margin-bottom: 11px; transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-legal { max-width: 560px; }

/* ===== Legal page ===== */
.legal-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  color: #fff; padding: 150px 0 70px;
}
.legal-hero .kicker { color: var(--gold-bright); }
.legal-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin: 0 0 12px; }
.legal-hero p { color: rgba(255,255,255,0.75); margin: 0; max-width: 640px; }
.legal-body { padding: 70px 0 110px; }
.legal-body .container { max-width: 860px; }
.legal-block { margin-bottom: 46px; scroll-margin-top: 100px; }
.legal-block h2 { font-size: 1.6rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.legal-block h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin: 22px 0 6px; }
.legal-block p { color: var(--ink); margin: 0 0 14px; }
.legal-block a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal-block a:hover { color: var(--gold); }
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); font-size: 0.96rem; vertical-align: top; }
.legal-table th { background: var(--cream); width: 38%; font-weight: 600; color: var(--navy); font-family: var(--sans); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--navy); }
.legal-back:hover { color: var(--gold); }
.legal-update { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .team .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .team .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(5) { transition-delay: .08s; }
.cards .reveal:nth-child(6) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .cards, .team { grid-template-columns: repeat(2, 1fr); }
  .approche-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--navy); flex-direction: column;
    transform: translateX(100%); transition: transform .35s ease;
    padding: 100px 32px 40px; box-shadow: -20px 0 60px -20px rgba(0,0,0,0.5); }
  .nav.open { transform: none; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-list a { color: rgba(255,255,255,0.9) !important; font-size: 1.05rem; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background:#fff; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background:#fff; }
  .section { padding: 80px 0; }
  .cards, .team { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 28px 22px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .hero-trust { flex-wrap: wrap; }
}
