/* alh.ovh — feuille de style unique. Pas de style inline : la CSP l'interdit. */

/* ---------- Polices (hébergées localement, licence OFL dans fonts/OFL.txt) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ground: #F5F6F4;
  --surface: #FFFFFF;
  --ink: #14171A;
  --ink-2: #2B3036;
  --muted: #4F5660;
  --line: #D9DDE0;
  --line-strong: #B9BFC5;
  --accent: #0B6E4F;
  --accent-ink: #FFFFFF;
  --tag: #EEF0EE;
  --todo-bg: #FFF1CC;
  --todo-ink: #6B4300;
  --term-bg: #101418;
  --term-line: #232A31;
  --term-ink: #E6EDF3;
  --term-dim: #9AA4AE;
  --term-prompt: #3FB68B;
  --term-warn: #E3B341;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 12px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--ground); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3vw, 38px); }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.9em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -48px; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Repères à remplacer avant la mise en ligne : chercher "todo" dans les fichiers. */
mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 4px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #085A40; color: var(--accent-ink); }
.btn--outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost { border-color: #4F5660; color: var(--ground); }
.btn--ghost:hover { border-color: var(--ground); color: #fff; }
.btn mark.todo { background: transparent; color: inherit; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand__mark { width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 14px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 15px; }
.site-nav a:not(.btn) { text-decoration: none; padding-block: 12px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; padding-block: 88px 96px; }
.hero__text { display: flex; flex-direction: column; gap: 20px; }
.kicker { color: var(--accent); font-weight: 500; font-size: 15px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .actions { margin-top: 8px; }
.hero__meta { color: var(--muted); font-size: 15px; }

/* ---------- Terminal ---------- */
.terminal { background: var(--term-bg); color: var(--term-ink); border-radius: var(--radius); overflow: hidden; font-family: var(--mono); box-shadow: 0 16px 40px -12px rgba(16, 20, 24, 0.35); }
.terminal__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--term-line); }
.terminal__dots { display: flex; gap: 8px; }
.terminal__dots span { width: 10px; height: 10px; border-radius: 50%; background: #3A434C; }
.terminal__title { font-size: 13px; color: var(--term-dim); }
.terminal__spacer { width: 46px; }
.terminal__output { padding: 24px 24px 0; min-height: 214px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.terminal__output > div { white-space: pre-wrap; }
.terminal__cursor-line { padding: 0 24px 16px; color: var(--term-prompt); font-size: 15px; line-height: 1.75; }
.terminal__cursor { display: inline-block; width: 9px; height: 17px; background: var(--term-ink); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-prompt { color: var(--term-prompt); }
.t-dim { color: var(--term-dim); }
.t-warn { color: var(--term-warn); }
.terminal__commands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 24px 24px; }
.terminal__hint { font-size: 13px; color: var(--term-dim); margin-right: 4px; }
.t-cmd { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid #3A434C; background: transparent; color: #C9D1D9; font: 500 14px var(--mono); cursor: pointer; }
.t-cmd:hover { border-color: var(--term-dim); color: #fff; }
.t-cmd[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.t-cmd:focus-visible { outline-color: var(--term-prompt); }

/* ---------- Bandes de section ---------- */
.band { padding-block: 88px; }
.band--white { background: var(--surface); border-block: 1px solid var(--line); }
.band--dark { background: var(--ink); color: var(--ground); }
.section-intro { margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 42em; }

/* ---------- Études de cas ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 48px; }
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); }
.case__area { color: var(--accent); font-weight: 500; font-size: 14px; }
.case h3 { font-size: 22px; }
.case dl { margin: 0; display: grid; gap: 4px 0; }
.case dt { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.case dt:first-child { margin-top: 0; }
.case dd { margin: 0; font-size: 15px; }
.tags { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--tag); color: var(--ink-2); }

/* ---------- Comment le site tourne ---------- */
.pipelines { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
.pipeline { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.pipeline__name { flex: 0 0 80px; display: flex; align-items: center; font-size: 15px; color: var(--muted); font-weight: 500; }
.pipeline__steps { flex: 1 1 600px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.step { flex: 1 1 170px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.step strong { font-weight: 600; }
.step span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.step--dark span { color: #C9D1D9; }
/* Chevron entre deux étapes, sur grand écran uniquement */
@media (min-width: 900px) {
  .step + .step::before { content: ""; position: absolute; left: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #8A9199; border-right: 2px solid #8A9199; transform: translate(-50%, -50%) rotate(45deg); }
}
.host-note { margin-top: 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 20px; font-size: 14px; color: var(--muted); }
.practices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 40px; }
.practice { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.practice p { font-size: 15px; color: var(--muted); }
.practice .practice__data { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.status-dot.is-down { background: #B42318; }

/* ---------- Compétences ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; margin-top: 48px; }
.skill-group ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }

/* ---------- Parcours ---------- */
.experience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.timeline li { display: grid; gap: 4px; padding-left: 20px; border-left: 2px solid var(--line); }
.timeline__when { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.timeline p:not(.timeline__when) { font-size: 15px; color: var(--ink-2); }
.certs { list-style: none; margin: 32px 0 0; padding: 0; }
.certs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.certs__year { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; }
.next-up { margin-top: 24px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; gap: 6px; }
.next-up__label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Contact et pied de page ---------- */
.contact { display: flex; flex-direction: column; gap: 20px; }
.contact p { font-size: 17px; color: #AEB6BE; max-width: 34em; }
.contact .actions { margin-top: 8px; }
.site-footer { background: var(--ink); color: #AEB6BE; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 32px; border-top: 1px solid var(--ink-2); font-size: 14px; }

/* ---------- Page CV ---------- */
.page-cv .cv { max-width: 980px; padding-block: 32px 64px; display: grid; gap: 24px; }
.cv__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; }
.cv__card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 5vw, 56px); display: grid; gap: 40px; }
.cv__header { display: grid; gap: 8px; }
.cv__header h1 { font-size: clamp(34px, 4vw, 44px); letter-spacing: -0.02em; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.figure { background: var(--ground); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; }
.figure strong { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.figure span { font-size: 14px; color: var(--muted); }
.cv__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; }
.cv__columns h2 { font-size: 18px; letter-spacing: 0; }
.bullets { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--accent); font-weight: 500; }
.cv__facts { margin: 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.cv__facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.cv__facts dd { margin: 4px 0 0; font-size: 15px; }

/* ---------- Page 404 ---------- */
.page-404 { min-height: 100vh; display: grid; place-items: center; }
.notfound { display: grid; gap: 16px; padding-block: 64px; max-width: 34em; }
.notfound h1 { font-size: clamp(32px, 4vw, 44px); }

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terminal__cursor { animation: none; }
}

/* ---------- Choix de la langue ---------- */
.site-header__inner .lang-switch { order: 3; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: var(--tag); }
.lang-switch a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cv__top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.notfound__fr { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.notfound__fr h2 { font-size: 24px; }
