/* ============================================
   MPA Theme — Data & Cloud Architecture
   Palette: noir profond + accent cyan
   Typo: Inter (UI) + Newsreader (serif éditorial) + JetBrains Mono (code)
   ============================================ */

:root {
  /* Palette */
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #161616;
  --border: #1f1f1f;
  --border-soft: #2a2a2a;
  --text: #fafafa;
  --text-soft: #a3a3a3;
  --text-dim: #737373;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.08);
  --accent-glow: rgba(56, 189, 248, 0.4);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);

  /* Typo */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Layout */
  --max-w: 1240px;
  --max-w-narrow: 760px;
  --max-w-medium: 1000px;
  --gutter: 32px;
  --header-h: 64px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

/* === Layout === */
.mpa-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === Header === */
.mpa-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.mpa-header .mpa-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.mpa-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.mpa-logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: var(--bg);
}
.mpa-nav {
  display: flex;
  gap: 32px;
}
.mpa-nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.mpa-nav a:hover { color: var(--text); }
.mpa-header-cta {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.mpa-header-cta:hover { color: #7dd3fc; }

/* === Footer === */
.mpa-footer {
  padding: 20px 0 16px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.mpa-footer .mpa-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.mpa-copy {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.mpa-footer-links {
  display: flex;
  gap: 20px;
}
.mpa-footer-links a {
  font-size: 12px;
  color: var(--text-soft);
  transition: color .15s;
}
.mpa-footer-links a:hover { color: var(--accent); }

/* === HOME — Hero === */
.mpa-hero {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
}
.mpa-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.mpa-hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}
.mpa-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  max-width: 1000px;
}
.mpa-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.mpa-hero-sub {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.mpa-hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mpa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  border: none;
}
.mpa-btn-primary {
  background: var(--text);
  color: var(--bg);
}
.mpa-btn-primary:hover { background: #e5e5e5; }
.mpa-btn-ghost {
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
  background: transparent;
}
.mpa-btn-ghost:hover { color: var(--text); border-color: var(--text-soft); }

/* === HOME — Proof bar === */
.mpa-proof-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.mpa-proof-bar .mpa-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.mpa-proof-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.mpa-tech-stack {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.mpa-tech-stack span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}
.mpa-tech-stack span::before {
  content: "◆";
  color: var(--accent);
  margin-right: 6px;
  font-size: 9px;
}

/* === HOME — Section header === */
.mpa-section {
  padding: 30px 0;
}
.mpa-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.mpa-section-header h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.mpa-section-header .mpa-all-link {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.mpa-section-header .mpa-all-link:hover { color: var(--accent); }

/* === HOME — Posts grid (uniforme 3 colonnes) === */
.mpa-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mpa-post-grid .mpa-post-card {
  height: 100%;
}
.mpa-post-grid .mpa-post-card h3 {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 8px;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mpa-post-grid .mpa-post-card p {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mpa-post-grid .mpa-post-card .mpa-cover {
  aspect-ratio: 16 / 7;
  max-height: 130px;
}

/* === Post cards === */
.mpa-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.mpa-post-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
}
.mpa-post-card .mpa-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0c1a2b 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}
.mpa-post-card.secondary .mpa-cover { aspect-ratio: 4 / 3; }
.mpa-post-card .mpa-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mpa-post-card .mpa-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mpa-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.mpa-post-meta .mpa-tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mpa-post-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.mpa-post-card.featured h3 { font-size: 32px; }
.mpa-post-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.mpa-post-card .mpa-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.mpa-post-card .mpa-arrow {
  color: var(--accent);
  transition: transform .2s;
}
.mpa-post-card:hover .mpa-arrow { transform: translateX(4px); }

/* === HOME — Post list (right column) === */
.mpa-post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mpa-post-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: block;
  transition: border-color .2s, transform .2s;
  color: inherit;
}
.mpa-post-mini:hover {
  border-color: var(--border-soft);
  transform: translateY(-1px);
}
.mpa-post-mini .mpa-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.mpa-post-mini .mpa-meta .mpa-tag { color: var(--accent); }
.mpa-post-mini h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.mpa-post-mini p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* === HOME — About === */
.mpa-about {
  padding: 50px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mpa-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.mpa-about-avatar {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(60px, 8vw, 100px);
  color: var(--bg);
}
.mpa-about-content .mpa-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.mpa-about-content h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.mpa-about-content p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.mpa-about-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mpa-about-links a {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  transition: color .15s;
}
.mpa-about-links a:hover { color: #7dd3fc; }

/* === ARTICLE === */
.mpa-article-header {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
}
.mpa-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.mpa-breadcrumb a { color: var(--accent); }
.mpa-article-header h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.mpa-article-deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 40px;
}
.mpa-article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.mpa-article-meta .mpa-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}
.mpa-author-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  color: var(--bg); font-size: 15px;
}
.mpa-article-meta .mpa-author .mpa-author-avatar { font-size: 15px; }

.mpa-article-hero {
  max-width: var(--max-w-medium);
  margin: 0 auto 60px;
  padding: 0 var(--gutter);
}
.mpa-article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.mpa-article-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1fr min(var(--max-w-narrow), 720px) 1fr;
  gap: 60px;
  align-items: start;
}
.mpa-article-toc {
  position: sticky;
  top: 96px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.6;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.mpa-article-toc .mpa-toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mpa-article-toc ol {
  list-style: none;
  counter-reset: toc;
}
.mpa-article-toc li {
  counter-increment: toc;
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  color: var(--text-soft);
}
.mpa-article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.mpa-article-toc a { color: inherit; }
.mpa-article-toc a:hover { color: var(--accent); }

.mpa-article-body {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: #d4d4d4;
}
.mpa-article-body > * + * { margin-top: 28px; }
.mpa-article-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text);
  margin-top: 60px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.mpa-article-body h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}
.mpa-article-body h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 4px;
}
.mpa-article-body p { margin-bottom: 24px; }
.mpa-article-body strong { color: var(--text); font-weight: 600; }
.mpa-article-body em { font-style: italic; color: var(--text); }
.mpa-article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .15s;
}
.mpa-article-body a:hover { border-bottom-color: var(--accent); }

.mpa-article-body code {
  font-family: var(--font-mono);
  font-size: 14.5px;
  padding: 2px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--amber);
}
.mpa-article-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.6;
}
.mpa-article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d4d4d4;
  font-size: 14px;
}

.mpa-article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text);
}

.mpa-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: var(--font-ui);
  font-size: 14px;
}
.mpa-article-body th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-soft);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}
.mpa-article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.mpa-article-body tr:last-child td { border-bottom: none; }

/* === Article end / share === */
.mpa-article-end {
  max-width: var(--max-w-narrow);
  margin: 60px auto 0;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--font-ui);
  flex-wrap: wrap;
}
.mpa-article-end .mpa-author-avatar { width: 48px; height: 48px; font-size: 22px; }
.mpa-article-end h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mpa-article-end p { font-size: 14px; color: var(--text-soft); margin: 0; }
.mpa-article-share { margin-left: auto; display: flex; gap: 8px; }
.mpa-article-share a {
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-soft);
  transition: all .15s;
}
.mpa-article-share a:hover { color: var(--text); border-color: var(--border-soft); }

/* === Blog list (separate from home) === */
.mpa-blog-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}
.mpa-blog-list .mpa-post-card .mpa-cover { aspect-ratio: 16/9; }
.mpa-blog-list h3 { font-size: 22px; }

/* === Responsive === */
@media (max-width: 900px) {
  :root { --gutter: 20px; --header-h: 56px; }
  .mpa-nav { gap: 18px; }
  .mpa-nav a { font-size: 13px; }
  .mpa-hero { padding: 80px 0 60px; }
  .mpa-post-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .mpa-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .mpa-article-wrap { grid-template-columns: 1fr; padding: 0 var(--gutter) 60px; }
  .mpa-article-toc { position: static; max-height: none; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .mpa-section { padding: 60px 0; }
  .mpa-about { padding: 60px 0; }
}

@media (max-width: 640px) {
  .mpa-logo-text { display: none; }
  .mpa-header-cta { display: none; }
  .mpa-hero h1 { font-size: 40px; }
  .mpa-article-body { font-size: 17px; }
  .mpa-article-body h2 { font-size: 26px; }
  .mpa-proof-bar .mpa-container { flex-direction: column; align-items: flex-start; }
}


/* === CV === */
body.cv-page {
  background: #f4f6f8;
}
.cv-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-family: 'Inter', sans-serif;
}
.cv-sidebar {
  width: 32%;
  background: #0f172a;
  color: #fff;
  padding: 30px;
  min-height: 600px;
}
.cv-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.cv-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.cv-sidebar h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  color: #fff;
}
.cv-sidebar h2 {
  font-size: 16px;
  font-weight: 400;
  color: #38bdf8;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 24px;
  letter-spacing: 0;
}
.cv-sidebar .cv-contact {
  text-align: center;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 12px;
}
.cv-sidebar .cv-contact i { color: #38bdf8; margin-right: 6px; }
.cv-sidebar h3 {
  margin-top: 25px;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.cv-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}
.cv-sidebar ul li {
  font-size: 13px;
  color: #cbd5e1;
  padding: 3px 0;
  font-family: 'Inter', sans-serif;
  display: list-item;
  justify-content: flex-start;
}
.cv-sidebar strong {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cv-cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cv-cert-badge:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background: #0f172a;
}
.cv-cert-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}
.cv-cert-badge span {
  line-height: 1.3;
  font-size: 13px;
  color: #fff;
}
.cv-cert-badge strong {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  display: inline;
  margin: 0;
}
.cv-cert-badge small {
  color: #94a3b8;
  font-size: 11px;
}
.cv-content {
  width: 68%;
  padding: 40px;
  background: #fff;
  color: #1e293b;
}
.cv-content h2 {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-top: 0;
}
.cv-content h2::before { display: none; }
.cv-experience {
  margin-bottom: 30px;
  padding: 0;
  border: none;
}
.cv-experience:last-child { margin-bottom: 0; }
.cv-exp-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.cv-exp-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cv-exp-header h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #0f172a;
  margin: 0 0 4px;
}
.cv-exp-header h3::before { display: none; }
.cv-date {
  font-size: 14px;
  color: #64748b;
  font-family: 'Inter', sans-serif;
}
.cv-experience ul {
  list-style: none;
  padding-left: 20px;
  margin: 12px 0;
}
.cv-experience ul li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 6px;
  position: relative;
}
.cv-experience ul li::before {
  content: "▸";
  position: absolute;
  left: -16px;
  color: #38bdf8;
  font-size: 11px;
  top: 2px;
}
.cv-tech {
  font-style: italic;
  color: #475569;
  font-size: 13px;
  margin: 8px 0 0;
  font-family: 'Inter', sans-serif;
}
.cv-tech i { color: #38bdf8; margin-right: 6px; }

@media (max-width: 900px) {
  .cv-container { flex-direction: column; margin: 20px; }
  .cv-sidebar, .cv-content { width: 100%; min-height: auto; }
  .cv-photo img { width: 110px; height: 110px; }
}
@media (max-width: 900px) {
  .cv-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cv-sidebar { position: static; }
  .cv-photo { max-width: 240px; }
}


/* ============================================
   CV — IMPRESSION (A4, marges, couleurs conservées)
   ============================================ */
@page {
  size: A4;
  margin: 12mm;
}

@media print {
  /* Couleurs conservées */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Reset des marges du body et fond blanc */
  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Cacher le header et le footer du site */
  .mpa-header,
  .mpa-footer {
    display: none !important;
  }

  /* Main : pas de padding */
  .mpa-main {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Container CV : flexbox explicite pour 2 colonnes */
  .cv-container {
    display: flex !important;
    flex-direction: row !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  /* Sidebar : 32% en largeur fixe, pas de min-height */
  .cv-sidebar {
    width: 32% !important;
    min-width: 32% !important;
    max-width: 32% !important;
    flex: 0 0 32% !important;
    box-sizing: border-box !important;
    background: #0f172a !important;
    color: #fff !important;
    padding: 30px 24px !important;
    min-height: auto !important;
  }

  /* Main content : 68% en largeur fixe */
  .cv-content {
    width: 68% !important;
    min-width: 68% !important;
    max-width: 68% !important;
    flex: 0 0 68% !important;
    box-sizing: border-box !important;
    padding: 30px !important;
  }

  /* Couleurs sidebar */
  .cv-sidebar h1 { color: #fff !important; font-size: 22px !important; }
  .cv-sidebar h2 { color: #38bdf8 !important; font-size: 13px !important; }
  .cv-sidebar h3 { color: #fff !important; font-size: 11px !important; border-bottom-color: #334155 !important; }
  .cv-sidebar li,
  .cv-sidebar .cv-contact { color: #cbd5e1 !important; font-size: 11px !important; }
  .cv-sidebar strong { color: #94a3b8 !important; font-size: 11px !important; }
  .cv-sidebar .cv-contact i { color: #38bdf8 !important; }

  /* Photo */
  .cv-photo img {
    border-color: #fff !important;
    width: 110px !important;
    height: 110px !important;
  }

  /* Liens : pas d'underline à l'impression */
  a {
    color: inherit !important;
    text-decoration: none !important;
  }

  /* Page break : éviter de couper une expérience */
  .cv-experience,
  .cv-cert-badge {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .cv-exp-header {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Tailles de police optimisées */
  .cv-content h2 {
    font-size: 18px !important;
    margin-top: 0 !important;
  }
  .cv-exp-header h3 {
    font-size: 13px !important;
  }
  .cv-experience ul li {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
  .cv-tech {
    font-size: 10px !important;
  }
  .cv-date {
    font-size: 11px !important;
  }
  .cv-content {
    font-size: 12px;
  }
  .cv-experience {
    margin-bottom: 16px !important;
  }
}


@media print {
  /* Reset des marges du body et fond blanc */
  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Cacher le header et le footer du site */
  .mpa-header,
  .mpa-footer,
  .mpa-main > *:not(.cv-container) {
    display: none !important;
  }

  /* Garder le main mais sans padding/margin */
  .mpa-main {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Container CV : pleine page, sans shadow */
  .cv-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  /* Sidebar : conserver le fond navy + texte blanc */
  .cv-sidebar {
    background: #0f172a !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .cv-sidebar h1,
  .cv-sidebar h2,
  .cv-sidebar h3,
  .cv-sidebar li,
  .cv-sidebar strong,
  .cv-sidebar .cv-contact {
    color: inherit !important;
  }

  .cv-sidebar h2 { color: #38bdf8 !important; }
  .cv-sidebar strong { color: #94a3b8 !important; }

  /* Photo de profil : pas de bordure cyan parasite */
  .cv-photo img {
    border-color: #fff !important;
  }

  /* Liens : pas d'underline à l'impression */
  a {
    color: inherit !important;
    text-decoration: none !important;
  }

  /* Page break : éviter de couper une expérience */
  .cv-experience,
  .cv-cert-badge {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Header de chaque expérience ne se coupe pas */
  .cv-exp-header {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Tailles de police optimisées pour l'impression */
  .cv-content {
    font-size: 12px;
  }
  .cv-content h2 {
    font-size: 20px;
    margin-top: 0;
  }
  .cv-exp-header h3 {
    font-size: 14px;
  }
  .cv-experience ul li {
    font-size: 12px;
  }
  .cv-tech {
    font-size: 11px;
  }
  .cv-sidebar h1 {
    font-size: 22px;
  }
  .cv-sidebar h2 {
    font-size: 14px;
  }
  .cv-sidebar h3 {
    font-size: 12px;
  }
  .cv-sidebar li,
  .cv-sidebar .cv-contact,
  .cv-cert-badge span {
    font-size: 11px;
  }

  /* Marges du contenu : éviter les pages surchargées */
  .cv-experience {
    margin-bottom: 18px;
  }
}


/* === Page /about === */
.mpa-about-page {
  padding: 60px 0 100px;
}
.mpa-back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 32px;
  text-decoration: none;
  transition: color .15s;
}
.mpa-back-link:hover { color: var(--accent); }
.mpa-about-grid-page {
  align-items: start;
  margin-bottom: 60px;
}
.mpa-about-content h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.mpa-about-lead {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.mpa-about-extra {
  max-width: 720px;
  margin: 0 auto;
}
