/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
  :root {
    --bg: #F7F5F0;
    --paper: #FFFFFF;
    --ink: #111114;
    --ink-2: #3A3A40;
    --muted: #5B5B63;
    --rule: #D9D5CC;
    --rule-strong: #111114;
    --accent: #1D3A6E;       /* bleu Gendarmerie */
    --accent-soft: #E6EBF3;
    --on-accent: #FFFFFF;
    --focus: #1D3A6E;
    --dark-band: #111114;
    --on-dark: #F7F5F0;

    --f-display: "Playfair Display", Georgia, serif;
    --f-body: "Source Serif 4", Georgia, serif;
    --f-mono: "JetBrains Mono", ui-monospace, monospace;

    --gutter: 16px;
    --max: 1180px;
    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
    --ease: cubic-bezier(.2,.7,.2,1);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121214; --paper: #1A1A1D; --ink: #F2EFE8; --ink-2: #D2CEC5; --muted: #A4A09A;
      --rule: #34343A; --rule-strong: #F2EFE8; --accent: #9DB6E3; --accent-soft: #1E2636;
      --on-accent: #0E1320; --focus: #9DB6E3; --dark-band: #0A0A0B; --on-dark: #F2EFE8;
    }
  }
  :root[data-theme="dark"] {
    --bg: #121214; --paper: #1A1A1D; --ink: #F2EFE8; --ink-2: #D2CEC5; --muted: #A4A09A;
    --rule: #34343A; --rule-strong: #F2EFE8; --accent: #9DB6E3; --accent-soft: #1E2636;
    --on-accent: #0E1320; --focus: #9DB6E3; --dark-band: #0A0A0B; --on-dark: #F2EFE8;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--f-body); font-size: 17px; line-height: 1.6;
    font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
  @media (min-width: 768px) { :root { --gutter: 32px; } }
  .skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
  .skip:focus { left: 8px; }

  /* ——— primitives typographiques ——— */
  .kicker {
    font-family: var(--f-mono); font-size: 12px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  }
  .display { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
  h2.display { font-size: clamp(36px, 6vw, 64px); }
  h2.display em, .hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
  .lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

  /* ——— en-tête ——— */
  header.site {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s2); }
  .brand { font-family: var(--f-display); font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
  .brand span { font-style: italic; font-weight: 400; color: var(--accent); }
  .nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: var(--s3); }
  .nav ul a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 12px 0; }
  .nav ul a:hover { color: var(--accent); }
  @media (min-width: 900px) { .nav ul { display: flex; } }
  .nav-right { display: flex; align-items: center; gap: var(--s1); }
  .icon-btn {
    width: 44px; height: 44px; display: inline-grid; place-items: center;
    border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; border-radius: 999px;
    transition: border-color .2s var(--ease);
  }
  .icon-btn:hover { border-color: var(--ink); }
  .icon-btn svg { width: 18px; height: 18px; }

  /* ——— boutons ——— */
  .btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
    font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  }
  .btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
  .btn:hover svg { transform: translateX(3px); }
  .btn-primary { background: var(--ink); color: var(--bg); }
  .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .btn-ghost { background: transparent; color: var(--ink); }
  .btn-ghost:hover { background: var(--ink); color: var(--bg); }
  .btn-sm { min-height: 44px; padding: 0 16px; font-size: 12px; }
  .nav .btn-sm .long { display: none; }
  @media (min-width: 560px) { .nav .btn-sm .long { display: inline; } }
  section[id], [id="top"] { scroll-margin-top: 72px; }

  /* ——— hero (adapté de 21st.dev « Editorial Hero ») ——— */
  .hero { padding: var(--s5) 0 var(--s6); }
  .hero-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
  .status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .status i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2E8B57; box-shadow: 0 0 0 4px color-mix(in srgb, #2E8B57 22%, transparent); }
  .hero-grid { display: grid; gap: var(--s6); padding-top: var(--s5); }
  .hero h1 { font-size: clamp(48px, 9vw, 112px); font-weight: 900; letter-spacing: -.035em; line-height: .95; }
  .hero h1 em { display: block; font-size: .42em; letter-spacing: -.015em; line-height: 1.15; margin-top: .45em; max-width: 20ch; }
  .hero .lede { margin: var(--s4) 0 0; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
  .portrait { position: relative; margin: 0 14px 14px 0; isolation: isolate; }
  .portrait img { aspect-ratio: 4/5; width: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
  .portrait figcaption { display: flex; justify-content: space-between; gap: var(--s2); margin-top: 12px; }
  .portrait::before { content: ""; position: absolute; top: 14px; left: 14px; right: -14px; bottom: 26px; border: 1px solid var(--accent); z-index: -1; }
  @media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.55fr 1fr; align-items: end; }
    .portrait { max-width: 380px; justify-self: end; width: 100%; }
  }

  /* ——— chiffres clés (adapté de 21st.dev « Stats Grid ») ——— */
  .facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
  .fact { padding: var(--s4) var(--s2) var(--s4) 0; border-right: 1px solid var(--rule); }
  .fact:nth-child(2n) { border-right: 0; padding-left: var(--s2); }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .fact b { display: block; font-family: var(--f-display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
  .fact span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.4; }
  @media (min-width: 768px) {
    .facts { grid-template-columns: repeat(4, 1fr); }
    .fact, .fact:nth-child(2n) { padding: var(--s4) var(--s3); border-right: 1px solid var(--rule); border-bottom: 0; }
    .fact:nth-child(-n+2) { border-bottom: 0; }
    .fact:first-child { padding-left: 0; }
    .fact:last-child { border-right: 0; }
  }

  /* ——— sections ——— */
  section.block { padding: var(--s7) 0 var(--s6); }
  section.block + section.block { padding-top: var(--s6); }
  .sec-head { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
  .sec-head .num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  @media (min-width: 900px) {
    .sec-head { grid-template-columns: 200px 1fr; align-items: baseline; gap: 0; }
  }

  /* profil */
  .profil-grid { display: grid; gap: var(--s5); }
  .profil-body p { margin: 0 0 1em; font-size: 19px; color: var(--ink-2); max-width: 62ch; }
  .profil-body p:first-child::first-letter {
    font-family: var(--f-display); font-weight: 700; float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--accent);
  }
  .pull { margin: var(--s4) 0 0; padding: 4px 0 4px var(--s3); border-left: 2px solid var(--accent); font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; max-width: 30ch; }
  .aside-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); align-self: start; }
  .aside-list li { display: flex; justify-content: space-between; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .aside-list li span:first-child { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; flex: none; }
  .aside-list li span:last-child { text-align: right; }
  @media (min-width: 900px) { .profil-grid { grid-template-columns: 200px 1.4fr 1fr; } .profil-grid > :first-child { grid-column: 2; } }

  /* compétences (adapté de 21st.dev « Feature Grid ») */
  .skills { display: grid; border-top: 1px solid var(--rule-strong); }
  .skill { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
  .skill-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
  .skill-ico { width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
  .skill-ico svg { width: 20px; height: 20px; }
  .skill h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
  .skill p { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
  .tags li { font-family: var(--f-mono); font-size: 12px; line-height: 1.4; padding: 5px 10px; border: 1px solid var(--rule); color: var(--ink-2); background: var(--paper); }
  @media (min-width: 768px) {
    .skills { grid-template-columns: repeat(2, 1fr); }
    .skill { padding: var(--s4) var(--s4) var(--s4) 0; }
    .skill:nth-child(2n) { padding: var(--s4) 0 var(--s4) var(--s4); border-left: 1px solid var(--rule); }
  }
  @media (min-width: 1024px) {
    .skills { grid-template-columns: repeat(3, 1fr); }
    .skill, .skill:nth-child(2n) { padding: var(--s4); border-left: 1px solid var(--rule); }
    .skill:nth-child(3n+1) { padding-left: 0; border-left: 0; }
    .skill:nth-child(3n) { padding-right: 0; }
  }

  /* parcours (adapté de 21st.dev « Experience Timeline ») */
  .parcours { display: grid; gap: var(--s6); }
  @media (min-width: 900px) { .parcours { grid-template-columns: 1fr 1fr; } }
  .col-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); border-bottom: 1px solid var(--rule-strong); padding-bottom: 12px; margin-bottom: var(--s4); }
  .col-title h3 { font-family: var(--f-display); font-size: 28px; font-weight: 600; margin: 0; }
  .timeline { position: relative; margin: 0 0 0 6px; padding: 0; list-style: none; }
  .timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 0; border-left: 1px solid var(--rule); }
  .tl { position: relative; padding: 0 0 var(--s5) var(--s4); }
  .tl:last-child { padding-bottom: 0; }
  .tl::before { content: ""; position: absolute; left: -6px; top: 5px; width: 13px; height: 13px; background: var(--bg); border: 2px solid var(--ink); border-radius: 50%; }
  .tl.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .tl .when { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
  .tl h4 { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.25; margin: 6px 0 4px; letter-spacing: -.01em; }
  .tl .where { font-style: italic; color: var(--muted); font-size: 16px; }
  .tl p { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; }
  .tl .tags { margin-top: 14px; }
  .missions { margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 16px; }
  .missions li { position: relative; padding-left: 20px; margin-top: 4px; }
  .missions li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 8px; height: 1px; background: var(--accent); }

  .extras { display: grid; gap: var(--s4); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule); }
  @media (min-width: 768px) { .extras { grid-template-columns: repeat(3, 1fr); } }
  .extras h4 { margin: 0 0 10px; }
  .extras p { margin: 0; color: var(--ink-2); font-size: 17px; }

  /* FAQ (adapté de 21st.dev « Ghost Accordion ») */
  .faq { border-top: 1px solid var(--rule-strong); max-width: 860px; }
  @media (min-width: 900px) { .faq { margin-left: 200px; } }
  .faq details { border-bottom: 1px solid var(--rule); }
  .faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s2);
    min-height: 44px; padding: 22px 0; font-family: var(--f-display); font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; line-height: 1.3;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .n { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--muted); width: 22px; flex: none; }
  .faq summary .q { flex: 1; transition: color .2s var(--ease); }
  .faq summary .plus { position: relative; width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
  .faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--ink); }
  .faq summary .plus::after { transform: rotate(90deg); }
  .faq details[open] summary .plus { transform: rotate(45deg); }
  .faq summary:hover .q { color: var(--accent); }
  .faq .a { padding: 0 38px 24px; color: var(--ink-2); max-width: 68ch; }
  .faq .a p { margin: 0; }

  /* contact */
  .contact { background: var(--dark-band); color: var(--on-dark); }
  .contact .kicker { color: color-mix(in srgb, var(--on-dark) 70%, transparent); }
  .contact h2.display { color: var(--on-dark); font-size: clamp(40px, 8vw, 96px); }
  .contact h2.display em { color: color-mix(in srgb, var(--on-dark) 75%, transparent); }
  .contact-grid { display: grid; gap: var(--s5); }
  .contact .lede { color: color-mix(in srgb, var(--on-dark) 82%, transparent); }
  .mail { display: inline-block; margin-top: var(--s4); font-family: var(--f-display); font-size: clamp(22px, 4vw, 40px); color: var(--on-dark); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--on-dark) 40%, transparent); padding-bottom: 4px; overflow-wrap: anywhere; transition: border-color .2s var(--ease); }
  .mail:hover { border-color: var(--on-dark); }
  .links { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--on-dark) 30%, transparent); }
  .links a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 14px 0; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 20%, transparent); font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
  .links a svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
  .links a:hover svg { transform: translate(3px, -3px); }
  @media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: end; } }

  footer.site { background: var(--dark-band); color: color-mix(in srgb, var(--on-dark) 70%, transparent); border-top: 1px solid color-mix(in srgb, var(--on-dark) 15%, transparent); }
  footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); padding-bottom: var(--s3); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
  footer.site a { text-decoration: none; padding: 12px 0; margin: -12px 0; }
  footer.site a:hover { color: var(--on-dark); }

  /* apparition au défilement */
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: 0s !important; }
  }

  /* bouton de langue */
  .lang-btn {
    min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 10px;
    border: 1px solid var(--rule); border-radius: 999px; text-decoration: none;
    font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink);
    transition: border-color .2s var(--ease), color .2s var(--ease);
  }
  .lang-btn:hover { border-color: var(--ink); color: var(--accent); }

  /* lien du pied de page */
  footer.site span a { text-decoration: underline; text-underline-offset: 3px; }

  /* pages de texte (mentions légales) */
  section.page { padding-top: var(--s6); min-height: 60vh; }
  section.page h1.display { font-size: clamp(36px, 6vw, 64px); }
  .prose { max-width: 68ch; color: var(--ink-2); }
  @media (min-width: 900px) { .prose { margin-left: 200px; } }
  .prose h2 { font-family: var(--f-display); font-size: 26px; font-weight: 600; color: var(--ink); margin: var(--s5) 0 var(--s2); letter-spacing: -.01em; }
  .prose h2:first-child { margin-top: 0; }
  .prose p, .prose ul { margin: 0 0 1em; }
  .prose ul { padding-left: 1.2em; }
  .prose li { margin-bottom: .5em; }
  .prose a { color: var(--accent); text-underline-offset: 3px; }

  /* page 404 */
  .erreur .num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .code404 { font-variant-numeric: lining-nums; font-family: var(--f-display); font-weight: 900; font-size: clamp(120px, 26vw, 280px); line-height: .9; letter-spacing: -.05em; margin: var(--s3) 0 var(--s3); color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent); }
  .erreur h1.display { max-width: 18ch; }
  .erreur .lede { margin: var(--s4) 0 0; }
  .erreur .lede.en { font-style: italic; color: var(--muted); font-size: 17px; margin-top: var(--s2); }
  .erreur .hero-ctas { margin-top: var(--s5); }

  /* très petits écrans (320 px) : on resserre l'en-tête */
  @media (max-width: 359px) {
    .nav { gap: var(--s1); }
    .nav-right { gap: 4px; }
    .nav .btn-sm { padding: 0 10px; letter-spacing: .04em; }
    .lang-btn { padding: 0 6px; }
  }

  /* veille techno */
  .veille-intro { display: grid; gap: var(--s2); margin: calc(-1 * var(--s3)) 0 var(--s5); }
  .veille-intro .lede { margin: 0; }
  @media (min-width: 900px) { .veille-intro { margin-left: 200px; } }
  .veille { display: grid; gap: var(--s4); }
  .veille-col { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: var(--s3); }
  .col-title-sm { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); font-family: var(--f-display); font-size: 24px; font-weight: 600; margin: 0 0 var(--s2); padding-bottom: 14px; border-bottom: 1px solid var(--rule); letter-spacing: -.01em; line-height: 1.2; }
  .col-title-sm span { white-space: nowrap; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
  .veille-list { list-style: none; margin: 0; padding: 0; }
  .veille-list li { padding: var(--s2) 0; border-top: 1px solid var(--rule); }
  .veille-list li:first-child { border-top: 0; }
  .veille-list li:last-child { padding-bottom: 0; }
  .veille-list a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-family: var(--f-display); font-size: 18px; font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
  .veille-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .veille-list p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
  @media (min-width: 900px) {
    .veille { grid-template-columns: repeat(2, 1fr); }
    .veille-col { padding: var(--s4); }
  }
