@charset "utf-8";
/* ============================================================================
   crahier.be — single stylesheet
   No framework, no JavaScript, no external request.
   Edit tokens in :root to restyle the whole site.
   ========================================================================== */

/* ---- Webfont ------------------------------------------------------------ */
/* Display face only (wordmark + headings). Body text uses system fonts.
   To drop the webfont entirely: delete this @font-face block and remove
   "Alata" from --font-display below. Saves 32 kB. */
@font-face {
  font-family: "Alata";
  src: url("alata.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Palette */
  --deep: #001f3f;        /* navy ground: header, hero, footer */
  --deep-2: #032e5a;      /* navy lift for gradients */
  --blue: #0074d9;        /* brand accent */
  --blue-ink: #0060b0;    /* accent darkened for body links (AA on white) */
  --blue-lift: #4ebdf5;   /* accent on dark ground */
  --amber: #f0a020;       /* logo colour — reserved for "current role" only */
  --ink: #0e1b29;         /* body text */
  --ink-soft: #52657a;    /* secondary text */
  --paper: #ffffff;
  --paper-alt: #f3f7fa;
  --line: #dce4ec;
  --line-dark: rgba(255, 255, 255, .16);

  /* Type */
  --font-display: "Alata", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(2rem, 4vw, 3.25rem);
  --wrap: 68rem;
  --read: 42rem;
  --radius: 6px;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Base --------------------------------------------------------------- */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--deep);
}
h1 { font-size: clamp(1.95rem, 1.35rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p + p { margin-top: 1em; }

/* Focus ring — visible on every interactive element, both grounds. */
:focus-visible {
  outline: 3px solid var(--blue-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--paper); color: var(--deep);
  padding: .7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---- Layout primitives -------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.band { padding-block: var(--band); }
.band--alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
/* Tighten the dead space right under the header and right above the footer.
   Only plain bands are trimmed: .hero and .cta are coloured blocks that need
   their padding balanced on both sides. */
main > .band:first-child { padding-top: clamp(1.6rem, 3vw, 2.5rem); }
main > .band:last-child { padding-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.prose { max-width: var(--read); }
/* Wider measure for long-form pages. Raise the value to widen further —
   past ~56rem the eye starts losing the start of the next line. */
.prose--wide { max-width: 52rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { position: relative; padding-left: 1.15rem; margin-top: .35rem; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}
.prose a { color: var(--blue-ink); text-underline-offset: .18em; }

/* Eyebrow: small mono label. Used for dates, kickers, section counters. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: .8rem;
}
.eyebrow--light { color: var(--blue-lift); }

/* Short rule under a heading — the one decorative motif, reused everywhere. */
.rule { width: 68px; height: 3px; background: var(--blue); margin: 1.1rem 0 1.4rem; }
.rule--light { background: var(--blue-lift); }

.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-soft); }

/* ---- Header ------------------------------------------------------------- */
.site-head { background: var(--deep); color: #fff; }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: .95rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .01em;
  text-decoration: none;
  color: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
}
.wordmark img { width: 52px; height: 52px; }

.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.nav a {
  display: block;
  padding: .3rem 0;
  font-size: .93rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover { color: #fff; border-bottom-color: var(--blue-lift); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue-lift); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #fff;
  padding-block: clamp(1.9rem, 4vw, 3.25rem);
}
.hero .wrap {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 52em) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
}
.hero h1 { color: #fff; }
.hero .role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  color: var(--blue-lift);
}
.hero p { color: rgba(255, 255, 255, .8); margin-top: 1rem; max-width: 34rem; }
.portrait {
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
  width: 100%; max-width: 332px;
}
@media (min-width: 52em) { .portrait { margin-left: auto; } }

/* ---- Icons -------------------------------------------------------------- */
/* Inline SVG: no extra request, and it inherits the surrounding text colour. */
.icon {
  width: 1.15em; height: 1.15em;
  fill: currentColor;
  vertical-align: -.22em;
}
/* Icon-only link: padding keeps the tap target near 44 px on touch screens. */
.ico-link {
  display: inline-flex; align-items: center;
  padding: .35rem;
  margin: -.35rem;
  border-radius: var(--radius);
}
.ico-link .icon { width: 1.5rem; height: 1.5rem; vertical-align: 0; }
.ico-link:hover { color: #fff; }

/* ---- Buttons ------------------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .72rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--solid { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--solid:hover { background: #fff; color: var(--deep); border-color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
/* Ghost variant for use on the light ground */
.btn--outline { color: var(--blue-ink); border-color: var(--line); background: var(--paper); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-ink); }

/* ---- Career chart (signature element) ----------------------------------- */
/* Two lanes, segment width proportional to real duration.
   Each segment carries --from / --to as decimal years.
   Month → decimal: jan .00  fév .08  mar .17  avr .25  mai .33  juin .42
                    juil .50 août .58 sep .67  oct .75  nov .83  déc .92    */
.chart { --origin: 1997; --span: 30; margin-top: 2.5rem; }

.lane-label {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}
.lane {
  position: relative;
  height: 40px;
  margin-bottom: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.seg {
  position: absolute; top: 5px; bottom: 5px;
  left: calc((var(--from) - var(--origin)) / var(--span) * 100%);
  width: calc((var(--to) - var(--from)) / var(--span) * 100%);
  min-width: 5px;
  background: var(--blue);
  /* Right border in the lane colour separates back-to-back roles, which
     would otherwise read as one long uninterrupted bar. */
  border-right: 2px solid var(--paper);
  border-radius: 3px;
  text-decoration: none;
  transition: background-color .18s, transform .18s;
}
.seg:hover { background: var(--deep); transform: scaleY(1.14); }
.seg--side { background: repeating-linear-gradient(115deg, var(--blue-lift) 0 5px, #b9dff7 5px 10px); }
.seg--side:hover { background: var(--blue); }
.seg--now { background: var(--amber); }
.seg--now:hover { background: #c47c08; }
.seg span {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Decade scale */
.scale {
  position: relative; height: 1.6rem;
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft);
}
.scale b {
  position: absolute; top: 0;
  left: calc((var(--at) - var(--origin)) / var(--span) * 100%);
  font-weight: 400;
  padding-left: .35rem;
  border-left: 1px solid var(--line);
}

.legend {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  margin-top: .6rem;
  font-size: .85rem; color: var(--ink-soft);
}
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: .45rem; vertical-align: 1px; }

/* ---- Timeline (mon-parcours) -------------------------------------------- */
/* max-width keeps the bullet lines near 70 characters — past that, the eye
   loses the start of the next line. */
.timeline {
  border-left: 2px solid var(--line);
  margin: 2.6rem 0 0 .5rem;
  max-width: 46rem;
}
.job { position: relative; padding: 0 0 2.6rem 1.9rem; scroll-margin-top: 1.5rem; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -7px; top: .45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--blue);
}
.job--now::before { border-color: var(--amber); }
.job h3 { color: var(--deep); }
.job .org { color: var(--blue-ink); font-weight: 600; }
.job .when {
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .04em; color: var(--ink-soft);
  margin-top: .2rem;
}
.job ul { margin-top: .8rem; }
.job li { position: relative; padding-left: 1.15rem; margin-top: .3rem; color: var(--ink-soft); }
.job li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: #a3b2c2;
}
.job .note { margin-top: .6rem; color: var(--ink-soft); }
.tag-now {
  display: inline-block; margin-left: .5rem; vertical-align: 2px;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .09em; text-transform: uppercase;
  background: var(--amber); color: #2c1c00;
  padding: .12rem .45rem; border-radius: 3px;
}

/* ---- 404 ---------------------------------------------------------------- */
/* Decorative smiley: uses the system emoji font, so it costs nothing to load. */
.oops {
  font-size: clamp(2.75rem, 2rem + 2.6vw, 3.75rem);
  line-height: 1;
  margin-bottom: .9rem;
}

.probe {
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.7rem 0;
  max-width: 30rem;
}

/* ---- Skill groups ------------------------------------------------------- */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.card h3 { margin-bottom: .7rem; }
.card li { font-size: .95rem; color: var(--ink-soft); padding: .2rem 0; }

/* ---- Contact ------------------------------------------------------------ */
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; max-width: var(--read); }
.contact-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-row .k {
  font-family: var(--font-mono); font-size: .75rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft);
  flex: 0 0 6.5rem;
}
.contact-row .v { color: var(--blue-ink); font-weight: 600; word-break: break-word; }
/* Only the link rows get the flex treatment — the address row holds a <br>
   that inline-flex would turn into a broken column. */
a.contact-row .v { display: inline-flex; align-items: center; gap: .5rem; }
a.contact-row:hover .v { color: var(--deep); text-decoration: underline; text-underline-offset: .18em; }

/* ---- Call to action band ------------------------------------------------ */
.cta {
  background: var(--deep); color: #fff;
  padding-block: clamp(1.9rem, 4vw, 3rem);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .78); margin-top: .6rem; max-width: 36rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-foot {
  background: var(--deep-2); color: rgba(255, 255, 255, .78);
  padding-block: 2.5rem 1.5rem;
  font-size: .92rem;
}
.site-foot .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 40em) {
  .site-foot .top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
}
.site-foot strong { color: #fff; font-weight: 600; }
.site-foot a { color: var(--blue-lift); text-underline-offset: .18em; }
.site-foot .links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; }
/* inline-flex puts the icon and its label on a shared centre line, instead of
   letting the icon sit on the text baseline. */
.site-foot .links a {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none;
}
.site-foot .links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-foot .fine {
  margin-top: .5rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: .82rem; color: rgba(255, 255, 255, .55);
}

/* ---- Print -------------------------------------------------------------- */
@media print {
  .site-head, .site-foot, .cta, .actions, .chart, .skip { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero { background: none !important; color: #000; padding-block: 0; }
  .hero h1, .hero .role, .hero p { color: #000; }
  .band { padding-block: 1rem; }
  .band--alt { background: none; border: 0; }
  .job { page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}
