/* saad-bokhari.com : feuille de style du site (refonte 2026).
   Une seule page à faire défiler : barre de navigation fixe, présentation, puis sections centrées. */

/* ---------- Polices hébergées sur le site (aucun appel à un serveur externe) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-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;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-700-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;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --ink: #0D1B2E;
  --muted: #55647A;
  --line: #D9E1EC;
  --accent: #1D5BD0;
  --accent-ink: #17479F;
  --soft: #E4ECFB;
  --err: #B3261E;
  --ok: #1B6E3C;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 56px;
}

*, *::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: 400 16px/1.6 var(--text); }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
ul { list-style: none; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--ink); color: #FFFFFF; padding: 8px 14px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- Barre de navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; max-width: 1040px; min-height: var(--nav-h); margin: 0 auto; padding: 8px 32px; }
.brand { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-right: auto; border-radius: 9px; background: var(--ink); color: #FFFFFF; font: 500 16px/1 var(--text); letter-spacing: .01em; text-decoration: none; }
.brand:hover { background: var(--accent-ink); }
.links { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a { border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; text-decoration: none; }
.links a:hover, .links a[aria-current="true"] { color: var(--accent-ink); background: var(--soft); }
.lang { display: flex; flex: none; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.lang a, .lang span { border-radius: 6px; padding: 4px 9px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--accent-ink); }
.lang span[aria-current="true"] { background: var(--accent); color: #FFFFFF; }

/* ---------- Présentation ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 56px 32px 48px; scroll-margin-top: var(--nav-h); }
h1 { font: 700 clamp(36px, 5.4vw, 56px)/1.02 var(--display); letter-spacing: -.02em; }
h1 .role { display: block; font: 600 clamp(18px, 2.3vw, 22px)/1.35 var(--text); letter-spacing: 0; color: var(--accent-ink); margin-top: 10px; }
.lede { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 56ch; }
.lede + .lede { margin-top: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 11px 20px; background: var(--surface); color: var(--ink); font: 600 15px/1.4 var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn[disabled] { opacity: .6; cursor: default; }
/* Le portrait vient d'une photo d'identité : affiché à taille modérée, il reste net. */
.portrait { aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #FFFFFF; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.facts { display: grid; margin-top: 14px; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 2px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-size: 14px; font-weight: 600; line-height: 1.3; text-align: right; }

/* ---------- Sections ---------- */
.sec { max-width: 880px; margin: 0 auto; padding: 44px 32px; scroll-margin-top: var(--nav-h); }
h2 { font: 700 30px/1.1 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.sub { color: var(--muted); font-size: 15px; }

.xp, .edu { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 28px; border-top: 1px solid var(--line); }
.xp { padding: 24px 0; }
.edu { padding: 16px 0; }
h2 + .xp, h2 + .edu { border-top: 0; }
.xp-side { display: grid; gap: 12px; align-content: start; justify-items: start; }
.when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.logo { display: block; width: 116px; height: 58px; padding: 8px 10px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; }
.org { color: var(--accent-ink); font-weight: 500; font-size: 15px; }
.lead { margin-top: 8px; }

details { margin-top: 10px; }
summary { display: inline-block; padding: 4px 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; }
details[open] summary::after { content: " –"; }
details .s-open, details[open] .s-closed { display: none; }
details[open] .s-open { display: inline; }
.det { display: grid; gap: 12px; margin-top: 10px; }
.pts { list-style: disc; padding-left: 1.15em; display: grid; gap: 4px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; background: var(--soft); color: var(--accent-ink); border-radius: 999px; padding: 3px 10px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 16px; }
.grid2 h3 { font-size: 15px; margin-bottom: 8px; }
.langs { display: grid; gap: 4px; font-size: 15px; }
.langs span { color: var(--muted); }

/* ---------- Formulaire de contact ---------- */
.cform { display: grid; gap: 14px; max-width: 580px; margin-top: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cform label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.cform input, .cform textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.cform textarea { min-height: 130px; resize: vertical; }
.cform [aria-invalid="true"] { border-color: var(--err); }
.cform .btn { justify-self: start; }
/* Champ piège pour les robots : invisible et hors du parcours clavier. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fnote { font-size: 14px; font-weight: 500; }
.fnote.ok { color: var(--ok); }
.fnote.ko { color: var(--err); }

.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 32px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Page d'erreur 404 ---------- */
.lost { max-width: 620px; margin: 0 auto; padding: 96px 32px; display: grid; gap: 16px; justify-items: start; }
.lost .code { font-size: 14px; font-weight: 600; color: var(--accent-ink); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-in { padding: 8px 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px; }
  .portrait { max-width: 220px; }
  .facts { max-width: 320px; }
  .sec { padding: 32px 16px; }
  .xp, .edu, .grid2 { grid-template-columns: 1fr; }
  .xp-side { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: 6px; }
  .logo { width: 96px; height: 48px; }
  .foot { padding: 16px; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
  .brand { display: none; }
  .links { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
