/* ============================================================
   ADSGI · ADS GLOBAL INVEST — WEBSITE V2
   global.css — Feuille de style maître
   Missions WEB-013 (pages verticales) + WEB-014 (pages spécialisées)
   Tokens verrouillés (Constitution V1_26 · GOV-PAL-01 · GOV-TYP-01)
   appliqués, jamais redéfinis :
     Navy #0A1F44 · Gold #C8A75D · blanc dominant
     Georgia (titres) · Calibri (corps)
   Architecture plate · responsive mobile-first · Hostinger + Cloudflare
   ============================================================ */

/* ---------- 1. Tokens propres a global.css (palette/typo/espacement = variables.css, source unique) ---------- */
:root {
  /* Largeur de filet */
  --line-w: 1px;

  /* Élévation discrète */
  --shadow-sm: 0 1px 2px rgba(10,31,68,.06);
  --shadow-md: 0 6px 22px rgba(10,31,68,.08);

  /* Transitions sobres */
  --t: .22s ease;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0 0 var(--sp-md); }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 var(--sp-md); color: var(--ink-soft); }
a { color: var(--navy); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 var(--sp-md); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-xs); color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.section { padding-block: clamp(var(--sp-2xl), 8vw, var(--sp-3xl)); }
.section--mist { background: var(--mist); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #d9deea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c3cad9; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--sp-sm);
}
.section--navy .eyebrow { color: var(--gold); }
.section-head { max-width: 760px; margin-bottom: var(--sp-xl); }
.lede { font-size: 1.12rem; color: var(--ink-soft); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: var(--line-w) solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--sp-lg); }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); }
.brand__mark { font-size: 1.3rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.brand__mark b { color: var(--gold-deep); }
.brand__sub { font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

.nav-toggle {
  display: none; background: none; border: var(--line-w) solid var(--line);
  border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative; margin-inline: auto; transition: var(--t);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 9px 13px; font-size: .92rem; color: var(--ink); border-radius: var(--radius);
  position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-cta {
  margin-left: var(--sp-sm); padding: 9px 18px !important; background: var(--navy); color: #fff !important;
  border-radius: var(--radius); font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-90); color: #fff !important; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius); border: var(--line-w) solid transparent;
  transition: var(--t); min-height: 44px;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-90); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-deep); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- 6. Hero (pages spécialisées) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(200,167,93,.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #0c2550 100%);
  color: #e7ebf3;
  padding-block: clamp(var(--sp-2xl), 11vw, 150px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5; pointer-events: none;
}
.hero__inner { position: relative; max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: var(--sp-md); }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c9d2e3; max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-md); margin-top: var(--sp-xl); }
.hero .eyebrow { color: var(--gold); }
.tier-rail { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-xl); }
.tier-rail span {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); color: #cdd6e6;
}

/* ---------- 7. Cards / grids ---------- */
.grid { display: grid; gap: var(--sp-lg); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: var(--line-w) solid var(--line); border-radius: var(--radius);
  padding: var(--sp-lg); box-shadow: var(--shadow-sm); transition: var(--t);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: var(--sp-sm);
}
.card h3 { margin-bottom: var(--sp-sm); }
.card p { font-size: .96rem; margin-bottom: var(--sp-md); }
.card__meta { margin-top: auto; padding-top: var(--sp-md); border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.card__meta b { color: var(--navy); font-weight: 600; }

/* ---------- 8. Tables (institutionnelles) ---------- */
.table-wrap { overflow-x: auto; border: var(--line-w) solid var(--line); border-radius: var(--radius); }
table.gov { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
table.gov caption { text-align: left; font-size: .8rem; color: var(--ink-mute); padding: 10px 14px; }
table.gov th, table.gov td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.gov thead th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
table.gov tbody tr:last-child td { border-bottom: none; }
table.gov tbody tr:nth-child(even) td { background: var(--paper); }

/* Classification chips */
.chip { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: 3px 9px; border-radius: 3px; text-transform: uppercase; }
.chip--public       { background: #e8f0e8; color: #2f5d39; }
.chip--showcase     { background: #fbf2dd; color: #8a6a18; }
.chip--institutional{ background: #e7ecf6; color: var(--navy); }
.chip--confidential { background: #f3e3e3; color: #8a2b2b; }
.chip--restricted   { background: #2a2f3a; color: #f0d68c; }

/* ---------- 9. Library (bibliotheque) ---------- */
.lib-controls { display: grid; grid-template-columns: 1.4fr auto; gap: var(--sp-md); align-items: end; margin-bottom: var(--sp-lg); }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; background: #fff; border: var(--line-w) solid var(--line); border-radius: var(--radius);
  min-height: 44px; transition: var(--t);
}
.field input:focus, .field select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(10,31,68,.08); }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.filter-chip {
  font-family: var(--font-body); font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: 8px 16px; background: #fff; color: var(--ink-soft);
  border: var(--line-w) solid var(--line); border-radius: 999px; transition: var(--t); min-height: 40px;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.lib-count { font-size: .85rem; color: var(--ink-mute); margin-bottom: var(--sp-md); }
.lib-empty { padding: var(--sp-xl); text-align: center; color: var(--ink-mute); border: 1px dashed var(--line); border-radius: var(--radius); }
.is-hidden { display: none !important; }

/* ---------- 10. Forms ---------- */
.form { background: #fff; border: var(--line-w) solid var(--line); border-radius: var(--radius); padding: var(--sp-xl); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md) var(--sp-lg); }
.form .field--full { grid-column: 1 / -1; }
.form textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border: var(--line-w) solid var(--line); border-radius: var(--radius); min-height: 140px; resize: vertical; }
.form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(10,31,68,.08); }
.req { color: var(--gold-deep); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: var(--sp-md); }
.form-msg { margin-top: var(--sp-md); padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-msg.is-on { display: block; }
.form-msg--ok { background: #e8f0e8; color: #2f5d39; border: 1px solid #cfe0cf; }
.form-msg--err { background: #f3e3e3; color: #8a2b2b; border: 1px solid #e3cccc; }
.field-error { color: #8a2b2b; font-size: .8rem; margin-top: 4px; display: none; }
.field-error.is-on { display: block; }

/* Tabs (contact forms / juridique sections) */
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-bottom: var(--sp-lg); border-bottom: 1px solid var(--line); }
.tab {
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; cursor: pointer; background: none; border: none;
  padding: 12px 4px; margin-right: var(--sp-md); color: var(--ink-mute); border-bottom: 2px solid transparent; min-height: 44px;
}
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.tabpanel[hidden] { display: none; }

/* ---------- 11. Workflow / steps ---------- */
.steps { display: grid; gap: var(--sp-md); counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-md); align-items: start; padding: var(--sp-md); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 1.1rem; color: var(--gold-deep); font-weight: 700; }
.section--navy .step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--navy .step::before { color: var(--gold); }
.step h4 { margin-bottom: 4px; }
.step p { font-size: .9rem; margin: 0; }

/* Access tiers (dealrooms) */
.tier { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.tier__head { padding: var(--sp-md) var(--sp-lg); border-bottom: 1px solid var(--line); }
.tier__head h3 { margin: 0 0 4px; }
.tier__body { padding: var(--sp-lg); flex: 1; }
.tier__body ul { margin: 0; }
.tier--public .tier__head { border-top: 3px solid #2f5d39; }
.tier--showcase .tier__head { border-top: 3px solid var(--gold); }
.tier--institutional .tier__head { border-top: 3px solid var(--navy); }
.tier--restricted .tier__head { border-top: 3px solid #2a2f3a; }

/* Definition / contact lists */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--sp-lg); margin: 0; }
.dl dt { font-weight: 600; color: var(--navy); }
.dl dd { margin: 0; color: var(--ink-soft); }

/* ---------- 12. CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), #0c2550); color: #fff; border-radius: var(--radius); padding: clamp(var(--sp-xl), 6vw, var(--sp-2xl)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d2e3; max-width: 620px; }
.cta-band .hero__actions { margin-top: var(--sp-lg); }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy); color: #b9c1d4; padding-block: var(--sp-2xl) var(--sp-lg); font-size: .9rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--sp-md); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-xl); margin-bottom: var(--sp-xl); }
.site-footer a { color: #b9c1d4; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-brand .brand__mark { color: #fff; }
.disclaimer {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--sp-lg); margin-top: var(--sp-lg);
  font-size: .82rem; color: #97a0b6; line-height: 1.6;
}
.disclaimer strong { color: #cdd6e6; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-md); margin-top: var(--sp-lg); font-size: .8rem; color: #8590a8; }

/* ---------- 14. Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 15. Responsive (mobile-first overrides) ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: var(--sp-sm); display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 13px 14px; border-radius: var(--radius); }
  .nav-menu a::after { display: none; }
  .nav-cta { margin: var(--sp-sm) 0 0; text-align: center; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .lib-controls { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 4px var(--sp-md); }
  .dl dt { margin-top: var(--sp-sm); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 36px 1fr; }
}
