:root {
  --teal: #0f3d3a;
  --teal-deep: #0a2c2a;
  --teal-mid: #1a5550;
  --mint: #5cc9a4;
  --mint-soft: #7ed9b8;
  --cream: #f7f5f0;
  --cream-deep: #ece8df;
  --paper: #fffdf8;
  --ink: #0f3d3a;
  --text: #243330;
  --muted: #5d6b67;
  --line: #d8d3c8;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(15, 61, 58, 0.12);
  --radius: 18px;
  --header-h: 72px;
  --wrap: 1120px;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
  max-width: 100%;
  /* short pages (blog, legal) keep the footer at the bottom of the window */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Bilingual markup: every translated node exists twice, tagged lang="fr" /
   lang="en". Only the one matching <html lang> is shown. */
html[lang="fr"] [lang="en"]:not([data-original-language]),
html[lang="en"] [lang="fr"]:not([data-original-language]) {
  display: none;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-mid);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--mint);
  color: var(--teal-deep);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100vw - 2.5rem), var(--wrap));
  margin-inline: auto;
  max-width: 100%;
}

.eyebrow,
.panel-title,
.fact-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mint);
}

.panel-title {
  color: var(--teal);
  margin: 0 0 1rem;
}

p,
li {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin: 0.15rem 0 0.6rem;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin: 0.35rem 0 0;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.lead {
  font-size: 1.22rem;
  color: var(--ink);
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mint);
  font-size: 1.2rem;
  margin: 0.85rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-mint {
  background: var(--mint);
  color: var(--teal-deep);
}

.btn-mint:hover {
  background: var(--mint-soft);
  color: var(--teal-deep);
}

.btn-outline {
  border-color: var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--cream);
}

.text-link {
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 61, 58, 0.94);
  backdrop-filter: blur(12px);
  color: var(--cream);
}

.header-inner {
  width: min(calc(100vw - 2.5rem), var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(92, 201, 164, 0.18);
}

.brand-name {
  font-family: var(--serif);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--mint);
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(247, 245, 240, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--mint);
  color: var(--teal-deep);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 245, 240, 0.4);
  background: transparent;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--cream);
  content: "";
}

.nav-toggle-icon {
  top: 21px;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero-banner {
  height: clamp(11.5rem, 26vw, 17rem);
  background: url("../assets/banner_codex.png") center 45% / cover no-repeat;
  border-bottom: 4px solid var(--teal);
}

.hero-identity {
  background: var(--cream);
}

.hero-inner {
  width: min(calc(100vw - 2.5rem), var(--wrap));
  margin: 0 auto;
  padding: 0 0 2.8rem;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 100%;
}

.hero-portrait {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow);
  background: var(--teal-deep);
  margin-top: -5.25rem;
}

.hero-copy {
  min-width: 0;
  padding-top: 1.6rem;
}

.hero-copy .eyebrow {
  margin: 0;
}

.hero-copy h1 {
  overflow-wrap: anywhere;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
}

.hero-role {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal);
}

.hero-linkedin {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2.4rem;
  max-width: 38rem;
}

.section-head .eyebrow {
  margin: 0;
}

.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.about-sidebar h2 {
  margin-top: 0.6rem;
}

.fact-list,
.contact-list,
.plain-list,
.cred-list,
.timeline ul,
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list,
.contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.fact-list li,
.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.fact-label {
  color: var(--teal-mid);
}

.split-cards,
.card-grid,
.project-grid,
.quote-grid,
.cred-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.split-cards {
  grid-template-columns: 1fr 1fr;
  margin-top: 3rem;
}

.panel,
.card,
.project,
blockquote,
.press,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
}

.plain-list li + li,
.cred-list li + li {
  margin-top: 0.7rem;
}

.experience {
  background: var(--teal);
  color: var(--cream);
}

.experience h2,
.experience h3 {
  color: var(--cream);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.4rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.16);
}

.when-range {
  display: block;
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.when-place {
  color: rgba(247, 245, 240, 0.7);
  font-size: 0.95rem;
}

.org {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.org-note {
  font-weight: 400;
  color: rgba(247, 245, 240, 0.7);
}

.org-note::before {
  content: " · ";
}

.timeline-story {
  margin: 0 0 1.2rem;
  color: rgba(247, 245, 240, 0.86);
}

.timeline ul {
  display: grid;
  gap: 0.55rem;
}

.timeline-body li {
  padding-left: 1rem;
  position: relative;
}

.timeline-body li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  position: absolute;
  left: 0;
  top: 0.65rem;
}

.card-grid,
.project-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card-index {
  margin: 0 0 0.8rem;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.card p.card-sub {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--mint);
}

.card p,
.project p {
  margin: 0;
  color: var(--muted);
}

.sectors {
  margin-top: 2.4rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-list li {
  background: var(--teal);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.projects {
  background: var(--cream-deep);
}

.credentials {
  background: var(--cream);
  padding-top: 3.2rem;
}

.cred-grid {
  grid-template-columns: 1fr 1fr;
}

.cred-list strong,
.cred-list span {
  display: block;
}

.cred-list span {
  color: var(--muted);
}

.voices {
  background: var(--paper);
}

.quote-grid {
  grid-template-columns: repeat(3, 1fr);
}

blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 1.4rem;
}

blockquote footer {
  display: grid;
  gap: 0.15rem;
}

cite {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal);
}

blockquote footer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.press {
  margin-top: 1.25rem;
  background: var(--teal);
  color: var(--cream);
  border-color: transparent;
}

.press .panel-title,
.press-quote {
  color: var(--mint);
}

.press-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.press-meta {
  margin: 0;
  color: rgba(247, 245, 240, 0.75);
}

.contact {
  background: var(--cream);
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: start;
}

.contact-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--teal-mid);
  text-decoration: underline;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--mint);
  border-color: transparent;
}

.form-status {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  color: var(--teal-mid);
}

.site-footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer .tagline {
  margin: 0;
}

.footer-meta {
  margin: 0;
  color: rgba(247, 245, 240, 0.72);
}

.site-footer a {
  color: var(--mint);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    background: var(--teal-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    gap: 1rem;
  }

  .site-nav.is-open {
    display: flex;
    z-index: 50;
    box-shadow: 0 18px 30px rgba(10, 44, 42, 0.28);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-nav .lang-switch {
    align-self: flex-start;
  }

  .hero-inner,
  .about-grid,
  .timeline-item,
  .split-cards,
  .card-grid,
  .project-grid,
  .quote-grid,
  .cred-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    justify-items: start;
    padding-bottom: 2.2rem;
  }

  .hero-copy h1,
  .hero-role,
  .about-body,
  .timeline-body {
    max-width: 100%;
  }

  .hero-banner {
    height: 9.5rem;
  }

  .hero-portrait {
    width: 132px;
    height: 132px;
    margin-top: -4.125rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .hero-copy h1 .lastname {
    display: block;
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .hero-role {
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .wrap,
  .header-inner,
  .hero-inner {
    width: min(calc(100vw - 1.5rem), var(--wrap));
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
