/* ============================================================
   Olivier Bouchez — Data Governance & AI Governance
   Design system derived from the brand decks (navy / gold / green)
   ============================================================ */

:root {
  --navy-950: #0d1b33;
  --navy-900: #132749;
  --navy-850: #17305a;
  --navy-800: #1e375e;
  --navy-700: #2a4a7a;
  --navy-600: #3c5f92;

  --gold: #d4af5c;
  --gold-dark: #b8933f;

  --green: #2e8b57;
  --green-dark: #256e45;

  --white: #ffffff;
  --ink: #16213e;
  --text-muted: #8a98ac;
  --text-muted-dark: #5c6b82;
  --border-light: #e4e8f0;
  --bg-light: #f5f7fb;

  --font-sans: 'Segoe UI', 'Calibri', system-ui, -apple-system, Arial, sans-serif;

  --max-width: 1120px;
  --radius: 10px;
  --shadow-card: 0 4px 16px rgba(13, 27, 51, 0.08);
  --shadow-lift: 0 12px 32px rgba(13, 27, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--navy-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

/* ---------- Navbar ---------- */

.navbar {
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.navbar-brand span {
  color: var(--gold);
}

.navbar-brand:hover {
  text-decoration: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.navbar-links a {
  color: #c3cede;
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar-links a:hover,
.navbar-links a.is-active {
  color: var(--gold);
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-700);
}

.btn-outline-navy:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Hero (dark navy, network-node feel) ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 70%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.hero.hero-sm .hero-inner {
  padding: 3rem 1.5rem 3rem;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 720px;
}

.hero .lead {
  color: #b8c4da;
  font-size: 1.1rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-nodes {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 45%;
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--navy-900);
}

.section-header p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.card h3 {
  color: var(--navy-900);
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted-dark);
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.tag {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted-dark);
  margin: 0 0.4rem 0.4rem 0;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-950);
  color: #93a0b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-inner a {
  color: #c3cede;
}

.footer-inner a:hover {
  color: var(--gold);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
}

.about-site-box {
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-site-box strong {
  display: block;
  color: #c3cede;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.about-site-box p {
  margin: 0;
}

.about-site-box a {
  color: var(--gold);
}

/* ---------- Responsive ---------- */

/* ---------- Article carousel ---------- */

.carousel {
  background: var(--navy-950);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-950);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--navy-900);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.carousel-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-950);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.carousel-counter {
  font-size: 0.9rem;
  color: #c3cede;
  min-width: 70px;
  text-align: center;
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  background: var(--navy-950);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--gold);
}

.article-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Tool iframe wrapper ---------- */

.tool-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-light);
}

.tool-frame-wrap iframe {
  width: 100%;
  height: 780px;
  border: none;
  display: block;
}

/* ---------- CV page ---------- */

.cv-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.cv-contact {
  color: #b8c4da;
  font-size: 0.95rem;
}

.cv-contact a {
  color: var(--gold);
}

.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section h2 {
  color: var(--navy-900);
  font-size: 1.4rem;
  border-bottom: 2px solid var(--navy-900);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.cv-role {
  margin-bottom: 1.75rem;
}

.cv-role-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.cv-role-header h3 {
  font-size: 1.05rem;
  color: var(--navy-800);
  margin: 0;
}

.cv-role-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.cv-role ul {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

.cv-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.skill-block h4 {
  color: var(--navy-800);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.skill-block p {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
}

.recommendation {
  background: var(--bg-light);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
}

.recommendation p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

.recommendation-signoff {
  font-weight: 600;
  color: var(--navy-800);
}

@media (max-width: 720px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar-links.is-open {
    display: flex;
  }

  .navbar-links a {
    padding: 0.85rem 1.5rem;
    width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-nodes {
    display: none;
  }
}
