  /* ---------- Design tokens ---------- */
  /* Dark is the default theme regardless of system preference; */
  /* data-theme="light" is the only explicit override. */
  :root {
    --bg: #0A1B2E;
    --bg-alt: #0F2438;
    --text: #F5F8FC;
    --text-muted: #93A2B5;
    --card-bg: #123A63;
    --card-border: rgba(38, 139, 255, 0.22);
    --header-bg: rgba(10, 27, 46, 0.82);

    --hero-bg-from: #0A1B2E;
    --hero-bg-via: #123A63;
    --hero-bg-to: #268BFF;
    --hero-text: #F5F8FC;
    --hero-text-muted: #B9C7D6;
    --hero-linkedin-border: rgba(245, 248, 252, 0.4);
    --hero-linkedin-border-hover: #F5F8FC;
    --hero-btn-border: rgba(245, 248, 252, 0.35);
    --hero-btn-border-hover: #F5F8FC;
    --hero-wave-opacity: 1;

    --navy: #0A1B2E;
    --tech: #123A63;
    --accent: #268BFF;
    --accent-hover: #1A5FC4;
    --white: #F5F8FC;
    --focus-ring: #268BFF;
  }

  :root[data-theme="light"] {
    --bg: #F5F8FC;
    --bg-alt: #FFFFFF;
    --text: #0A1B2E;
    --text-muted: #66768A;
    --card-bg: #FFFFFF;
    --card-border: rgba(18, 58, 99, 0.12);
    --header-bg: rgba(245, 248, 252, 0.82);

    --hero-bg-from: #F5F8FC;
    --hero-bg-via: #E7EFF8;
    --hero-bg-to: #DCE9F7;
    --hero-text: #0A1B2E;
    --hero-text-muted: #3E5470;
    --hero-linkedin-border: rgba(10, 27, 46, 0.35);
    --hero-linkedin-border-hover: #0A1B2E;
    --hero-btn-border: rgba(10, 27, 46, 0.3);
    --hero-btn-border-hover: #0A1B2E;
    --hero-wave-opacity: 0.35;
  }

  /* ---------- Reset & base ---------- */
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
  }
  img { max-width: 100%; display: block; }
  a { color: var(--accent); text-decoration: none; }
  h1, h2, h3 { text-wrap: balance; }

  :focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }

  .skip-link {
    position: absolute; left: 16px; top: -60px;
    background: var(--accent); color: #fff;
    padding: 10px 18px; border-radius: 10px;
    font-weight: 700; font-size: 14px; z-index: 200;
    transition: top 0.2s ease;
  }
  .skip-link:focus { top: 16px; }

  /* ---------- Layout helpers ---------- */
  .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 56px;
    padding-right: 56px;
  }
  @media (max-width: 860px) {
    .wrap { padding-left: 22px; padding-right: 22px; }
  }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 56px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
  }
  @media (max-width: 860px) {
    .site-header { padding: 14px 20px; }
  }

  .brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
    transition: opacity 0.2s ease;
  }
  .brand:hover { opacity: 0.8; }
  .brand-mark { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
  .brand-name {
    font-size: 16.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--text);
  }

  /* logo light/dark swap, no JS: two images per slot, CSS shows the right one */
  /* dark is the default; data-theme="light" flips it */
  .logo-for-light { display: none; }
  .logo-for-dark { display: block; }
  :root[data-theme="light"] .logo-for-light { display: block; }
  :root[data-theme="light"] .logo-for-dark { display: none; }

  .nav-links-wrap {
    display: flex;
    align-items: center;
  }
  @media (max-width: 860px) {
    .nav-links-wrap { display: none; }
  }

  .nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
  .nav-links a {
    color: var(--text-muted);
    font-size: 14.5px; font-weight: 600;
    transition: color 0.2s ease;
  }
  .nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
  .nav-links a[aria-current="page"] { color: var(--text); }

  .header-divider { width: 1px; height: 22px; background: var(--card-border); }
  @media (max-width: 860px) {
    .header-divider { display: none; }
  }

  .header-right { display: flex; align-items: center; gap: 14px; }

  .lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
  .lang-switch button {
    background: none; border: none; padding: 2px 3px; cursor: pointer;
    font-family: inherit; font-size: inherit; color: var(--text-muted); font-weight: 500;
  }
  .lang-switch button[aria-pressed="true"] { color: var(--text); font-weight: 700; }
  .lang-sep { color: var(--text-muted); }

  .icon-btn {
    width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--card-border);
    background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    transition: opacity 0.2s ease;
  }
  .icon-btn:hover { opacity: 0.7; }
  .icon-btn svg { width: 16px; height: 16px; }

  /* dark is the default: moon shows; data-theme="light" flips to sun */
  .theme-icon-light { display: none; }
  .theme-icon-dark { display: block; }
  :root[data-theme="light"] .theme-icon-light { display: block; }
  :root[data-theme="light"] .theme-icon-dark { display: none; }

  .burger-btn {
    display: none;
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--card-border);
    background: none; cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--text);
  }
  @media (max-width: 860px) {
    .burger-btn { display: flex; }
  }
  .burger-btn svg { width: 20px; height: 20px; }
  .burger-btn .icon-close { display: none; }
  .burger-btn[aria-expanded="true"] .icon-open { display: none; }
  .burger-btn[aria-expanded="true"] .icon-close { display: block; }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 65px; left: 0; right: 0;
    z-index: 90;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 20px 24px;
    box-shadow: 0 16px 32px rgba(10, 27, 46, 0.18);
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .mobile-nav a {
    display: block; padding: 14px 4px;
    font-size: 17px; font-weight: 700; color: var(--text);
    border-bottom: 1px solid var(--card-border);
  }
  .mobile-nav li:last-child a { border-bottom: none; }

  @media (min-width: 861px) {
    .mobile-nav { display: none !important; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--hero-bg-from) 0%, var(--hero-bg-via) 55%, var(--hero-bg-to) 100%);
    padding: 96px 56px 110px;
    transition: background 0.25s ease;
    /* Dissolve the Hero (gradient + waves together) into the page background at
       the very bottom, instead of ending on a hard edge. The mask only controls
       opacity — no color is added — so what shows through is var(--bg), which is
       already the Expertises section's own background in both themes. */
    mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 170px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 170px), transparent 100%);
  }
  @media (max-width: 860px) {
    .hero {
      padding: 44px 22px 56px;
      mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 90px), transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 90px), transparent 100%);
    }
  }

  .hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: var(--hero-wave-opacity);
    transition: opacity 0.25s ease;
  }

  .wave-layer-1 { animation: driftA 36s ease-in-out infinite alternate; }
  .wave-layer-2 { animation: driftB 44s ease-in-out infinite alternate; }
  .halo-pulse { animation: pulse 15s ease-in-out infinite; }
  @keyframes driftA { from { transform: translateX(-0.6%) translateY(0); } to { transform: translateX(0.6%) translateY(-0.4%); } }
  @keyframes driftB { from { transform: translateX(0.5%) translateY(-0.3%); } to { transform: translateX(-0.5%) translateY(0.3%); } }
  @keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 0.72; } }
  @media (prefers-reduced-motion: reduce) {
    .wave-layer-1, .wave-layer-2, .halo-pulse { animation: none !important; }
  }

  .hero-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: center;
  }
  @media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo-slot { order: -1; justify-self: flex-start; }
  }

  .hero-text {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  }
  @media (max-width: 860px) {
    .hero-text { gap: 18px; }
  }

  .hero-logo-mark { width: 44px; height: 44px; border-radius: 50%; }
  @media (max-width: 860px) { .hero-logo-mark { width: 40px; height: 40px; } }

  .eyebrow {
    font-size: 13.5px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent);
  }
  @media (max-width: 860px) { .eyebrow { font-size: 12px; } }

  .hero-name {
    margin: 0; font-weight: 800; color: var(--hero-text);
    letter-spacing: -0.01em; line-height: 1.08;
    font-size: clamp(32px, 5vw, 52px);
  }
  .hero-subtitle {
    font-size: clamp(18px, 2.4vw, 21px); font-weight: 600; color: var(--hero-text);
    max-width: 520px; line-height: 1.4;
  }
  .hero-tagline {
    font-size: 16px; font-weight: 400; color: var(--hero-text-muted);
    max-width: 480px; line-height: 1.6;
  }
  @media (max-width: 860px) { .hero-tagline { font-size: 14px; } }

  .hero-ctas {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px;
  }
  @media (max-width: 860px) {
    .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  }

  .btn {
    font-family: inherit; font-weight: 700; font-size: 15px;
    padding: 15px 30px; border-radius: 12px; cursor: pointer;
    border: none; transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
  }
  .btn-primary { background: var(--accent); color: #F5F8FC; }
  .btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .btn-secondary {
    background: transparent; color: var(--hero-text); font-weight: 600;
    padding: 14px 28px; border: 1.5px solid var(--hero-btn-border);
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  .btn-secondary:hover { border-color: var(--hero-btn-border-hover); }

  .hero-linkedin {
    display: flex; align-items: center; gap: 8px; margin-top: 4px;
    font-size: 14px; font-weight: 600; color: var(--hero-text);
    border-bottom: 1.5px solid var(--hero-linkedin-border);
    padding-bottom: 2px; width: fit-content;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .hero-linkedin:hover { border-bottom-color: var(--hero-linkedin-border-hover); }
  .hero-linkedin svg { width: 15px; height: 15px; flex-shrink: 0; }

  .hero-photo-slot {
    width: 280px; height: 280px; border-radius: 50%; overflow: hidden;
    justify-self: center;
    box-shadow: 0 0 0 6px rgba(38, 139, 255, 0.12), 0 24px 48px rgba(10, 27, 46, 0.35);
  }
  @media (max-width: 860px) {
    .hero-photo-slot { width: 148px; height: 148px; box-shadow: 0 0 0 5px rgba(38, 139, 255, 0.12), 0 14px 30px rgba(10, 27, 46, 0.3); }
  }
  .hero-photo-slot img { width: 100%; height: 100%; object-fit: cover; }

  /* ---------- Shared section layout ---------- */
  .section-block { padding: 110px 56px; background: var(--bg); }
  .section-block-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
  }
  @media (max-width: 860px) {
    .section-block { padding: 64px 22px; }
  }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  }
  .section-head { max-width: 620px; margin-bottom: 56px; }
  .section-title { margin: 0 0 14px 0; font-size: 34px; font-weight: 800; color: var(--text); }
  .section-sub { font-size: 16px; color: var(--text-muted); line-height: 1.6; }
  @media (max-width: 860px) {
    .section-title { font-size: 25px; }
    .section-head { margin-bottom: 36px; }
  }

  /* ---------- Card grids (Expertises / Services / Publications) ---------- */
  .exp-grid, .svc-grid, .pub-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
  }
  .exp-grid { gap: 28px; }
  .svc-grid { gap: 24px; }
  .pub-grid { gap: 24px; }
  @media (max-width: 980px) {
    .exp-grid, .svc-grid, .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .exp-grid, .svc-grid, .pub-grid { grid-template-columns: 1fr; }
  }

  button.exp-card, button.svc-card {
    appearance: none; font-family: inherit; text-align: left; cursor: pointer;
    width: 100%; color: inherit; display: flex; flex-direction: column;
    background: var(--card-bg); border: 1px solid var(--card-border);
    transition: border-color 0.2s ease;
  }
  button.exp-card:hover, button.svc-card:hover { border-color: var(--accent); }

  .exp-card { border-radius: 18px; padding: 34px; gap: 14px; }
  .exp-icon {
    width: 46px; height: 46px; border-radius: 13px;
    background: rgba(38, 139, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
  }
  .exp-icon-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
  .exp-title { font-size: 19px; font-weight: 700; color: var(--text); }
  .exp-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

  .svc-card { border-radius: 16px; padding: 28px; gap: 10px; }
  .svc-title { font-size: 16.5px; font-weight: 700; color: var(--text); }
  .svc-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

  .card-more {
    display: none; font-size: 13.5px; color: var(--text-muted); line-height: 1.6;
    padding-top: 12px; border-top: 1px solid var(--card-border);
  }
  .exp-card.expanded .card-more, .svc-card.expanded .card-more { display: block; }
  .card-toggle {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--accent); margin-top: -4px;
  }
  .card-toggle .chevron { transition: transform 0.2s ease; flex-shrink: 0; }
  .expanded .card-toggle .chevron { transform: rotate(180deg); }
  .card-toggle .label-less { display: none; }
  .expanded .card-toggle .label-more { display: none; }
  .expanded .card-toggle .label-less { display: inline; }



  /* ---------- Services: rich "card-more" content (mission sub-entries) ---------- */
  .svc-mission {
    padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--card-border);
  }
  .svc-mission:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
  .svc-mission-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    flex-wrap: wrap; margin-bottom: 4px;
  }
  .svc-mission-title { font-weight: 700; color: var(--text); font-size: 13.5px; }
  .svc-mission-duration { font-weight: 700; color: var(--accent); font-size: 12px; white-space: nowrap; }
  .svc-mission-objectif { margin: 0 0 6px 0; }
  .svc-field-label {
    display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text); margin: 8px 0 2px;
  }
  .svc-liv-list { margin: 3px 0 0; padding-left: 16px; }
  .svc-liv-list li { margin-bottom: 2px; }
  .svc-trigger { font-style: italic; margin: 8px 0 0; }
  .svc-trigger-label { font-style: normal; font-weight: 700; color: var(--text); }
  .svc-more-intro { margin: 0 0 12px 0; }

  /* ---------- Publications ---------- */
  .pub-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 56px; flex-wrap: wrap;
  }
  .pub-head .section-head { margin-bottom: 0; }
  .btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--card-border); color: var(--text);
    font-weight: 700; font-size: 14.5px; padding: 13px 24px; border-radius: 12px;
    white-space: nowrap; transition: border-color 0.2s ease, color 0.2s ease;
  }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

  .pub-card {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px;
    padding: 30px; display: flex; flex-direction: column; gap: 16px;
  }
  .pub-title { font-size: 18px; font-weight: 700; color: var(--text); }
  .pub-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
  .pub-thumb {
    width: 100%; display: block; border-radius: 12px; border: 1px solid var(--card-border);
  }
  .pub-cta {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; color: var(--accent);
  }
  .pub-cta svg { transition: transform 0.2s ease; }
  .pub-cta:hover svg { transform: translateX(3px); }

  /* ---------- Rendez-vous ---------- */
  .rdv-section {
    position: relative; overflow: hidden;
    padding: 100px 56px;
    background: linear-gradient(135deg, #123A63, #0A1B2E);
  }
  @media (max-width: 860px) { .rdv-section { padding: 64px 22px; } }
  .rdv-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .rdv-inner {
    position: relative; z-index: 2; max-width: 680px; margin: 0 auto; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
  }
  .rdv-inner h2 { margin: 0; font-size: 32px; font-weight: 800; color: #F5F8FC; }
  .rdv-inner p { font-size: 16px; color: #B9C7D6; line-height: 1.6; max-width: 480px; }
  .rdv-inner .btn { margin-top: 12px; padding: 16px 34px; font-size: 15.5px; }
  @media (max-width: 860px) { .rdv-inner h2 { font-size: 25px; } }

  /* ---------- Footer ---------- */
  .site-footer { background: #0A1B2E; padding: 56px 56px 40px; }
  @media (max-width: 860px) { .site-footer { padding: 40px 22px 32px; } }
  .footer-top {
    max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-start;
    justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding-bottom: 32px; border-bottom: 1px solid rgba(245, 248, 252, 0.1);
  }
  .footer-brand { display: flex; flex-direction: column; gap: 10px; }
  .footer-brand-row { display: flex; align-items: center; gap: 10px; }
  .footer-logo { width: 32px; height: 32px; border-radius: 50%; display: block; }
  .footer-brand-name { font-size: 15.5px; font-weight: 800; color: #F5F8FC; }
  .footer-tagline { font-size: 13.5px; color: #8A9AAD; }
  .footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
  .footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
  .footer-col-title { color: #268BFF; font-weight: 700; margin-bottom: 4px; }
  .footer-col a, .footer-col span { color: #B9C7D6; }
  .footer-col a { transition: color 0.2s ease; }
  .footer-col a:hover, .footer-col a:focus-visible { color: #F5F8FC; }
  .footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; font-size: 12.5px; color: #8A9AAD; }

/* Ajout correctif — cartes Expertise */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.exp-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1.75rem;
  border: 1px solid rgba(38, 139, 255, 0.22);
  border-radius: 14px;
  background: #112840;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.exp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: rgba(38, 139, 255, 0.16);
}

.exp-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #268bff;
}

.exp-title {
  margin-bottom: 0.55rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.exp-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

html[data-theme="light"] .exp-card {
  border-color: rgba(10, 27, 46, 0.12);
  background: #f2f7fc;
  box-shadow: 0 10px 28px rgba(10, 27, 46, 0.08);
}

html[data-theme="light"] .exp-title {
  color: #0a1b2e;
}

html[data-theme="light"] .exp-desc {
  color: rgba(10, 27, 46, 0.72);
}

@media (max-width: 860px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }
}
