/* Rako Dev — rako.dev */

/* Geist est une fonte variable : un seul fichier couvre 400–700 */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-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: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-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;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-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: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-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;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-symbols.woff2") format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

:root {
  --bg: #070a16;
  --bg-alt: #090d1c;
  --card: #0d1122;
  --line: #1c2340;
  --line-2: #232c4d;
  --line-3: #2a3355;
  --chip-bg: #121732;
  --text: #e9ecf8;
  --muted: #9aa3c0;
  --muted-2: #7b85ae;
  --chip-text: #bcc4e2;
  --bullet-text: #b6bdd9;
  --logo-text: #aab3d4;
  --accent: oklch(0.72 0.17 290);
  --accent-soft: oklch(0.75 0.16 290);
  --accent-bright: oklch(0.8 0.14 290);
  --accent-dot: oklch(0.72 0.19 290);
  --grad: linear-gradient(90deg, oklch(0.58 0.22 295), oklch(0.6 0.19 258));
  --grad-text: linear-gradient(90deg, oklch(0.74 0.19 295), oklch(0.74 0.15 252));
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }
::selection { background: oklch(0.66 0.21 295 / 0.35); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 96px 32px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(7, 10, 22, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--text); letter-spacing: 0.02em; }
.nav-logo b { background: linear-gradient(90deg, oklch(0.7 0.21 295), oklch(0.72 0.17 255)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; font-family: var(--mono); font-size: 12px; }
.lang a { border-radius: 4px; padding: 3px 8px; color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang a.on { background: var(--line); color: var(--text); }

/* ── Buttons ── */
.btn { display: inline-block; border-radius: 9px; font-size: 15px; padding: 13px 26px; }
.btn-primary { background: var(--grad); color: #fff; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.15); color: #fff; }
.btn-outline { border: 1px solid var(--line-3); background: var(--card); color: var(--text); font-weight: 500; }
.btn-outline:hover { border-color: oklch(0.66 0.21 295); color: var(--text); }
.btn-ghost { color: var(--muted); font-weight: 500; padding: 13px 20px; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; }
.hero-glow-1, .hero-glow-2, .contact-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-glow-1 { top: -220px; right: -160px; width: 640px; height: 640px; background: radial-gradient(circle, oklch(0.5 0.22 295 / 0.28), transparent 65%); }
.hero-glow-2 { top: 120px; left: -200px; width: 520px; height: 520px; background: radial-gradient(circle, oklch(0.5 0.18 255 / 0.18), transparent 65%); }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 165px 32px 80px; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid oklch(0.66 0.21 295 / 0.4);
  background: oklch(0.66 0.21 295 / 0.09);
  border-radius: 100px; padding: 6px 14px;
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-bright);
  margin-bottom: 30px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dot); animation: pulse 2.2s ease-in-out infinite; }
.hero-name { display: block; font-family: var(--mono); font-size: 14.5px; font-weight: 500; color: var(--text); margin: 0 0 12px; letter-spacing: 0.02em; line-height: 1.4; }
.hero-name span { color: var(--muted-2); }
h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 20px; max-width: 880px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-family: var(--mono); font-size: clamp(15px, 2vw, 19px); color: var(--accent-soft); margin: 0 0 26px; }
.cursor { animation: blink 1s step-end infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 26px; }
.chip { font-family: var(--mono); font-size: 12px; color: var(--chip-text); border: 1px solid var(--line-2); background: var(--chip-bg); border-radius: 100px; padding: 5px 12px; }
.chips-note { font-size: 12.5px; color: var(--muted-2); }
.hero-desc { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 640px; margin: 0 0 38px; text-wrap: pretty; }
.hero-desc strong { color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }
.stats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 56px; }
.stat { padding-right: 48px; margin-right: 48px; border-right: 1px solid var(--line); }
.stat:last-child { padding-right: 0; margin-right: 0; border-right: none; }
.stat-num { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.trust-title { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.12em; margin-bottom: 18px; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.trust-logos span { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; color: var(--logo-text); }

/* ── Sections ── */
section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent-soft); margin-bottom: 14px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 44px; }

/* À propos */
.about-grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 48px; }
.about-lead { font-size: 21px; line-height: 1.6; margin: 0 0 22px; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.about-grid p:not(.about-lead) { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; text-wrap: pretty; }
.about-grid p:last-child { margin-bottom: 0; }

/* Expertises */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: oklch(0.66 0.21 295 / 0.6); transform: translateY(-3px); }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--accent-soft); margin-bottom: 14px; }
.card h3 { font-size: 18.5px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-family: var(--mono); font-size: 11.5px; color: var(--chip-text); border: 1px solid var(--line-2); background: var(--chip-bg); border-radius: 5px; padding: 4px 8px; }

/* Expériences */
.xp-list { display: flex; flex-direction: column; gap: 14px; }
.xp { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 26px 28px; }
.xp:hover { border-color: #2c3765; }
.xp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.xp h3 { font-size: 17.5px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.pill {
  font-family: var(--mono); font-size: 11px; color: var(--accent-bright);
  border: 1px solid oklch(0.66 0.21 295 / 0.4); background: oklch(0.66 0.21 295 / 0.1);
  border-radius: 100px; padding: 3px 9px; margin-left: 10px; vertical-align: 2px; white-space: nowrap;
}
.xp-dates { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.xp-client { font-size: 14px; color: var(--accent-soft); margin-bottom: 12px; font-weight: 600; }
.xp > p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0 0 14px; text-wrap: pretty; }
.xp ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.xp li { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--bullet-text); }
.xp li::before { content: "▸"; color: var(--accent-dot); flex-shrink: 0; }
.xp-older { font-size: 14px; color: var(--muted-2); padding: 8px 28px 0; }

/* Publications */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.post {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #131a3a, #0d1122 55%);
  border-radius: 14px; padding: 24px; color: var(--text);
  transition: border-color 0.25s, transform 0.25s;
}
.post:hover { border-color: oklch(0.66 0.21 295 / 0.6); transform: translateY(-3px); color: var(--text); }
.post-tag { display: inline-flex; align-self: flex-start; font-family: var(--mono); font-size: 11px; color: #fff; background: linear-gradient(90deg, oklch(0.55 0.22 295), oklch(0.57 0.19 258)); border-radius: 5px; padding: 4px 8px; }
.post-title { font-size: 16.5px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.post-cta { font-size: 13px; color: #8f99bd; margin-top: auto; }
.posts-intro { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 0 44px; line-height: 1.65; text-wrap: pretty; }
.posts-more { margin-top: 28px; font-size: 14.5px; }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact-glow { bottom: -260px; left: 50%; transform: translateX(-50%); width: 720px; height: 520px; background: radial-gradient(circle, oklch(0.5 0.22 290 / 0.2), transparent 65%); }
.contact-inner { max-width: 1080px; margin: 0 auto; padding: 110px 32px 90px; text-align: center; position: relative; }
.contact h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.025em; margin: 0 0 18px; }
.contact-sub { font-size: 16.5px; color: var(--muted); max-width: 520px; margin: 0 auto 40px; line-height: 1.65; text-wrap: pretty; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 48px; }
.contact-ctas .btn { padding: 14px 28px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; font-size: 14.5px; }
.contact-links a { color: var(--muted); }
.contact-links a:hover { color: var(--accent-soft); }

/* Footer */
footer {
  border-top: 1px solid var(--line); padding: 26px 32px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted-2);
}

/* Reveal (progressive enhancement — contenu visible sans JS) */
.js [data-rv].rv-hidden { opacity: 0; transform: translateY(14px); }
.js [data-rv].rv-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat { padding-right: 28px; margin-right: 28px; }
  .wrap { padding: 72px 24px; }
  .hero-inner { padding: 140px 24px 64px; }
}
