/* ============================================
   ASTROLAB CONSULTING — Stylesheet officiel
   Version 1.0 — Mai 2026
   ============================================ */

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

/* ============ TOKENS ============ */
:root {
  /* Couleurs */
  --navy: #0B1F3A;
  --navy-dark: #061224;
  --navy-deep: #030813;
  --gold: #C9A961;
  --gold-dark: #A88842;
  --gold-light: #E1C98A;
  --cream: #F5F1E8;
  --ivory: #FBF8F1;
  --charcoal: #1A2138;
  --slate: #5A6478;
  --fog: #D8D2C2;
  --fog-light: #EEE9DC;
  --white: #FFFFFF;
  --forest: #2F5D3A;
  --copper: #A04A2A;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Espacement (8pt grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;

  /* Effets */
  --shadow-sm: 0 1px 2px rgba(11,31,58,0.04);
  --shadow-md: 0 4px 16px rgba(11,31,58,0.06);
  --shadow-lg: 0 16px 48px rgba(11,31,58,0.10);
  --shadow-xl: 0 24px 64px rgba(11,31,58,0.18);

  --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ============ TYPOGRAPHIE ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.005em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; margin-bottom: var(--s-6); }
h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: var(--s-3); }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: var(--s-4); }
strong { font-weight: 600; color: var(--navy); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--charcoal);
  font-style: italic;
  font-weight: 400;
  max-width: 680px;
}

.gold-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: var(--s-6) 0;
}

/* ============ LAYOUT ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-8); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-8); }
section { padding: var(--s-24) 0; }
.section-sm { padding: var(--s-16) 0; }
.section-lg { padding: var(--s-32) 0; }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fog);
  transition: all var(--transition);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-4) var(--s-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
}
.site-header__logo img,
.site-header__logo svg { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-8); }
.site-nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: var(--s-2) 0;
}
.site-nav__link:hover { color: var(--navy); }
.site-nav__link.active::after,
.site-nav__link:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform var(--transition); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
  padding: var(--s-2) 0;
}
.btn-ghost:hover { color: var(--gold-dark); }
.btn-light {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}
.btn-light:hover { background: var(--white); }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: var(--s-32) 0 var(--s-24);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; right: -150px;
  width: 700px; height: 700px;
  border: 1px solid rgba(201, 169, 97, 0.10);
  border-radius: 50%;
  transform: translateY(-50%);
}
.hero::after {
  content: '';
  position: absolute;
  top: 50%; right: -50px;
  width: 500px; height: 500px;
  border: 1px solid rgba(201, 169, 97, 0.06);
  border-radius: 50%;
  transform: translateY(-50%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: var(--cream); margin-bottom: var(--s-6); }
.hero__sub {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.85);
  font-style: italic;
  margin-bottom: var(--s-12);
  max-width: 720px;
}
.hero__actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero__actions .btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.hero__actions .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.hero__actions .btn-outline { color: var(--cream); border-color: rgba(245, 241, 232, 0.4); }
.hero__actions .btn-outline:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

/* Page hero (sub-pages) */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: var(--s-24) 0 var(--s-16);
  position: relative;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero h1 { color: var(--cream); margin-bottom: var(--s-6); max-width: 880px; }
.page-hero__sub {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.82);
  font-style: italic;
  max-width: 760px;
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-8);
  margin-top: var(--s-12);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(245, 241, 232, 0.15);
}
.stat__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: var(--s-2);
}
.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.7);
}

/* ============ SECTIONS ============ */
.section-header { margin-bottom: var(--s-16); max-width: 760px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .eyebrow { justify-content: center; }
.section-header__sub {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--slate);
  font-style: italic;
  margin-top: var(--s-4);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: start; }
.two-col-narrow { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-12); align-items: start; }

/* ============ PROBLEM ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-8);
}
.problem-card {
  padding: var(--s-8);
  border-left: 2px solid var(--fog);
  transition: all var(--transition);
}
.problem-card:hover { border-left-color: var(--gold); transform: translateX(4px); }
.problem-card__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--s-3);
  letter-spacing: 0.1em;
}
.problem-card h3 { font-size: 1.15rem; font-family: var(--font-display); margin-bottom: var(--s-3); }
.problem-card p { font-size: 0.95rem; color: var(--slate); line-height: 1.6; margin: 0; }

/* ============ OFFRES ============ */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
.offer-card {
  background: var(--white);
  padding: var(--s-12);
  border: 1px solid var(--fog);
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.offer-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.offer-card__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-4);
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: var(--s-4);
  color: var(--navy);
}
.offer-card__desc { color: var(--slate); font-size: 0.95rem; margin-bottom: var(--s-6); flex-grow: 1; }
.offer-card__meta {
  display: flex;
  justify-content: space-between;
  padding-top: var(--s-4);
  border-top: 1px solid var(--fog);
  font-size: 0.8rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.offer-card__meta strong { color: var(--navy); font-weight: 600; }
.offer-card__link {
  margin-top: var(--s-6);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.offer-card__link::after {
  content: '→';
  transition: transform var(--transition);
}
.offer-card:hover .offer-card__link::after { transform: translateX(4px); }

/* ============ METHODE / TIMELINE ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 18px; left: 0; right: 0;
  height: 1px;
  background: var(--fog);
  z-index: 0;
}
.timeline__step {
  position: relative;
  z-index: 1;
  padding-top: var(--s-12);
}
.timeline__dot {
  position: absolute;
  top: 12px; left: 0;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--ivory);
}
.timeline__step:first-child .timeline__dot { background: var(--navy); }
.timeline__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-3);
}
.timeline__step h3 { font-size: 1.05rem; margin-bottom: var(--s-3); }
.timeline__step p { font-size: 0.85rem; color: var(--slate); line-height: 1.55; margin: 0; }

/* ============ DASHBOARD MOCKUP ============ */
.dashboard {
  background: var(--white);
  border: 1px solid var(--fog);
  padding: 0;
  box-shadow: var(--shadow-lg);
}
.dashboard__header {
  background: var(--navy);
  color: var(--cream);
  padding: var(--s-6) var(--s-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gold);
}
.dashboard__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
}
.dashboard__date {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ivory);
}
.kpi {
  padding: var(--s-6);
  border-right: 1px solid var(--fog);
}
.kpi:last-child { border-right: none; }
.kpi__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--s-3);
}
.kpi__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}
.kpi__trend {
  font-size: 0.78rem;
  margin-top: var(--s-2);
  color: var(--forest);
}
.kpi__trend.warn { color: var(--copper); }

.dashboard__table { width: 100%; border-collapse: collapse; }
.dashboard__table th,
.dashboard__table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--fog);
  font-size: 0.85rem;
}
.dashboard__table th {
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-transform: uppercase;
}
.dashboard__table td.num { font-variant-numeric: tabular-nums; }
.dashboard__table tr:hover { background: var(--ivory); }

.tag {
  display: inline-block;
  padding: 3px var(--s-3);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
}
.tag-high { color: var(--copper); }
.tag-med { color: var(--gold-dark); }
.tag-low { color: var(--forest); }

/* ============ TOOLS ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.tool-chip {
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--fog);
  text-align: center;
  transition: all var(--transition);
}
.tool-chip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.tool-chip__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: var(--s-1);
}
.tool-chip__cat {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============ SECURITY ============ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
}
.sec-card {
  padding: var(--s-8);
  background: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.sec-card h3 { font-size: 1.2rem; margin-bottom: var(--s-3); }
.sec-card p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: var(--s-24) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 600px; height: 600px;
  border: 1px solid rgba(201, 169, 97, 0.10);
  border-radius: 50%;
  transform: translateX(-50%);
}
.cta-band__content { position: relative; }
.cta-band h2 { color: var(--cream); margin-bottom: var(--s-6); }
.cta-band p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(245, 241, 232, 0.82);
  max-width: 600px;
  margin: 0 auto var(--s-8);
}
.cta-band .btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cta-band .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-dark);
  color: var(--cream);
  padding: var(--s-16) 0 var(--s-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(201, 169, 97, 0.20);
}
.footer-brand img,
.footer-brand svg { height: 44px; width: auto; margin-bottom: var(--s-6); }
.footer-brand p {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(245, 241, 232, 0.75);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.footer-col ul li { margin-bottom: var(--s-2); }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.75);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.55);
  letter-spacing: 0.04em;
}

/* ============ FORMS ============ */
.form-row { margin-bottom: var(--s-6); }
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--fog);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  transition: all var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
}
.form-row textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }

/* ============ DEEP-DIVE CARDS / OFFER PAGES ============ */
.deep {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}
.deep__sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.deep__sidebar .eyebrow { display: flex; }
.deep__sidebar h2 { font-size: 1.5rem; }
.deep__sidebar p { font-size: 0.95rem; color: var(--slate); }

.feature-list { padding: 0; }
.feature-list li {
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  position: relative;
  border-bottom: 1px solid var(--fog);
  color: var(--charcoal);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 12px; height: 1px;
  background: var(--gold);
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.deliverable {
  padding: var(--s-6);
  background: var(--cream);
  border-left: 2px solid var(--gold);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 var(--s-6); }
  section { padding: var(--s-16) 0; }
  .hero { padding: var(--s-16) 0; }
  .menu-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: var(--s-6);
    border-bottom: 1px solid var(--fog);
    gap: var(--s-4);
  }
  .two-col, .two-col-narrow, .deep { grid-template-columns: 1fr; gap: var(--s-8); }
  .deep__sidebar { position: static; }
  .offers-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline__step { padding-top: var(--s-2); padding-left: var(--s-6); border-left: 1px solid var(--fog); }
  .timeline__dot { left: -6px; top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .footer-bottom { flex-direction: column; gap: var(--s-3); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { border-right: none; border-bottom: 1px solid var(--fog); }
  .dashboard__table { font-size: 0.78rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__sub { font-size: 1.15rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
