/* aminejameli Ghost theme — mirrors www.aminejameli.com (globals.css tokens, IBM Plex, monochrome). */

/* ---------- Fonts (self-hosted IBM Plex, OFL) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-italic.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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-400-italic.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens (same values as the main site) ---------- */
:root, :root[data-theme="light"] {
  --background: #f8f8f5; --foreground: #111111; --primary: #111111; --secondary: #555555; --muted: #666666;
  --graphite: #e0e0dc; --graphite-control: #949490; --surface-low: #efefeb; --accent: #111111; --accent-contrast: #f8f8f5;
  --font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: #111111; --foreground: #f8f8f5; --primary: #f8f8f5; --secondary: #a8a8a5; --muted: #8c8c89;
  --graphite: #2a2a2a; --graphite-control: #5c5c5a; --surface-low: #1a1a1a; --accent: #f8f8f5; --accent-contrast: #111111;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
::selection { background: var(--primary); color: var(--background); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
[hidden] { display: none !important; }
html[lang="en"] .l-fr, html:not([lang="en"]) .l-en { display: none; }

.eyebrow { font-size: .875rem; font-weight: 500; color: var(--secondary); }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.chip { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--secondary); border: 1px solid var(--graphite); padding: 3px 8px; }
a.chip:hover { color: var(--primary); border-color: var(--graphite-control); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .85rem 1.4rem; background: var(--accent); color: var(--accent-contrast); font-size: .95rem; font-weight: 500; border: 1px solid var(--accent); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--graphite-control); }
.btn-ghost:hover { border-color: var(--primary); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--graphite); background: color-mix(in srgb, var(--background) 95%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hdr-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--primary); transition: color .15s; }
@media (min-width: 768px) { .brand { font-size: 1.25rem; } }
.brand:hover { color: var(--secondary); }
.brand .brand-mark { height: 28px; width: auto; }
.nav { display: none; gap: 32px; }
.nav a { font-size: .875rem; font-weight: 500; color: var(--secondary); transition: color .15s; }
.nav a:hover, .nav a.is-current { color: var(--primary); }
.nav a.is-current { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.hdr-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--secondary); background: none; border: 0; cursor: pointer; transition: color .15s; }
.icon-btn:hover { color: var(--primary); }
.burger { color: var(--primary); }
.btn-desktop { display: none; margin-left: 8px; }
:root[data-theme="dark"] .i-sun, :root:not([data-theme="dark"]) .i-moon { display: none; }
@media (min-width: 1024px) { .nav { display: flex; } .btn-desktop { display: inline-flex; } .burger { display: none; } }
.mobile-menu { border-top: 1px solid var(--graphite); }
.mobile-menu .wrap { display: flex; flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
.mobile-menu a:not(.btn) { border-bottom: 1px solid var(--graphite); padding: 16px 0; font-size: 1rem; font-weight: 500; color: var(--secondary); }
.mobile-menu .btn { margin-top: 20px; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Blog home / lists ---------- */
.hero { border-bottom: 1px solid var(--graphite); padding: 64px 0 40px; }
@media (min-width: 768px) { .hero { padding: 96px 0 48px; } }
.hero h1 { margin-top: 8px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; color: var(--primary); max-width: 18ch; }
.hero .lead, .lead { margin-top: 18px; max-width: 56ch; font-size: 1.08rem; line-height: 1.65; color: var(--secondary); }
.hero-sm { padding: 48px 0 36px; }
@media (min-width: 768px) { .hero-sm { padding: 64px 0 40px; } }
.hero .count { margin-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filters a { font-size: .85rem; font-weight: 500; color: var(--secondary); border: 1px solid var(--graphite); padding: 8px 14px; transition: border-color .15s, color .15s; }
.filters a:hover { color: var(--primary); border-color: var(--graphite-control); }
.filters a.is-current { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.feature { display: grid; gap: 28px; padding: 48px 0; border-bottom: 1px solid var(--graphite); }
@media (min-width: 900px) { .feature { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; } }
.cover { aspect-ratio: 16 / 10; background: var(--surface-low); border: 1px solid var(--graphite); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .cover-mark { width: 28%; color: var(--graphite-control); opacity: .55; }
.cover .cover-label { position: absolute; left: 20px; bottom: 16px; }
.feature h2 { margin-top: 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; color: var(--primary); }
.feature h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.feature p { margin-top: 14px; line-height: 1.65; color: var(--secondary); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }

.list { list-style: none; padding: 0; }
.row { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--graphite); }
@media (min-width: 900px) { .row { grid-template-columns: 160px minmax(0, 1fr) 220px; gap: 40px; align-items: baseline; } }
.row h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--primary); }
.row h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.row p { margin-top: 8px; line-height: 1.6; color: var(--secondary); max-width: 62ch; }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 900px) { .row-tags { justify-content: flex-end; } }

.empty { padding: 72px 0 24px; max-width: 56ch; }
.empty h2 { margin-top: 8px; font-size: 1.8rem; font-weight: 600; letter-spacing: -0.025em; color: var(--primary); }
.empty p:last-child { margin-top: 12px; color: var(--secondary); line-height: 1.6; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 40px 0 0; }

.cta { margin: 64px 0 80px; border: 1px solid var(--graphite); background: var(--surface-low); padding: 32px; display: grid; gap: 20px; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 44px 48px; } }
.cta h2 { font-size: 1.6rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; color: var(--primary); }
.cta p { margin-top: 8px; color: var(--secondary); line-height: 1.6; max-width: 56ch; }

/* ---------- Article ---------- */
.crumbs { padding-top: 40px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs-flush { padding-top: 0; margin-bottom: 12px; }
.crumbs a { color: var(--secondary); font-size: .875rem; } .crumbs a:hover { color: var(--primary); }
.art-head { padding: 20px 0 40px; border-bottom: 1px solid var(--graphite); }
.art-head-page { padding-top: 56px; }
.art-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; color: var(--primary); max-width: 22ch; overflow-wrap: break-word; }
.dek { margin-top: 18px; max-width: 60ch; font-size: 1.15rem; line-height: 1.6; color: var(--secondary); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.byline .mono { margin-top: 2px; }
.byline-name, .author-name { font-weight: 500; color: var(--primary); font-size: .95rem; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--graphite); display: flex; align-items: center; justify-content: center; color: var(--primary); overflow: hidden; }
.avatar svg { width: 55%; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; }
.art-image { margin-top: 40px; }
.art-image img { width: 100%; border: 1px solid var(--graphite); }
.art-image figcaption, .gh-content figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: center; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 48px 0 0; }
@media (min-width: 1024px) { .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } }
.toc { display: none; }
@media (min-width: 1024px) { .toc:not([hidden]) { display: block; position: sticky; top: 104px; align-self: start; } }
.toc ol { list-style: none; margin-top: 12px; padding: 0; border-left: 1px solid var(--graphite); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; font-size: .85rem; line-height: 1.4; color: var(--secondary); border-left: 1px solid transparent; }
.toc li a:hover { color: var(--primary); }
.toc li a.is-current { color: var(--primary); border-left-color: var(--primary); }

/* Post body (Ghost editor output) */
.prose { max-width: 68ch; font-size: 1.08rem; line-height: 1.75; color: var(--foreground); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { margin-top: 2.2em; font-size: 1.55rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--primary); }
.prose h3 { margin-top: 1.8em; font-size: 1.2rem; line-height: 1.35; font-weight: 600; color: var(--primary); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--secondary); }
.prose strong { font-weight: 600; color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: .45em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 20px; border-left: 2px solid var(--primary); font-size: 1.2rem; line-height: 1.55; color: var(--primary); }
.prose blockquote.kg-blockquote-alt { border-left: 0; padding: 0; text-align: center; font-size: 1.5rem; font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--graphite); margin: 2.5em 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-low); border: 1px solid var(--graphite); padding: .1em .35em; }
.prose pre { background: var(--surface-low); border: 1px solid var(--graphite); padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--graphite); padding: 10px 12px; text-align: left; }
.prose th { font-weight: 600; color: var(--primary); }
.prose img { border: 1px solid var(--graphite); }
.prose figure img { margin: 0 auto; }

/* Koenig card widths (required by Ghost): wide and full images break out of the text column. */
.kg-width-wide { position: relative; width: min(1040px, calc(100vw - 40px)); max-width: none; }
.kg-width-full { position: relative; width: calc(100vw - 40px); max-width: none; }
@media (min-width: 1024px) {
  .kg-width-wide { width: calc(100% + 120px); margin-left: -60px; margin-right: -60px; }
  .kg-width-full { width: calc(100% + 240px); margin-left: -120px; }
}
.kg-width-full img, .kg-width-wide img { width: 100%; }
.kg-image-card, .kg-gallery-card, .kg-embed-card, .kg-video-card, .kg-bookmark-card { margin-top: 2em; margin-bottom: 2em; }
.kg-embed-card iframe { max-width: 100%; }
.kg-callout-card { border-radius: 0 !important; border: 1px solid var(--graphite); }
.kg-callout-card-grey, .kg-callout-card-white { background: var(--surface-low) !important; }
.kg-bookmark-container { border-radius: 0 !important; border-color: var(--graphite) !important; color: var(--primary) !important; text-decoration: none !important; }
.kg-btn, .kg-btn-accent { border-radius: 0 !important; background: var(--accent) !important; color: var(--accent-contrast) !important; text-decoration: none !important; }
.kg-toggle-card { border-radius: 0 !important; }

/* Result box for case studies — in the editor, add an HTML card:
   <div class="aj-stat"><div class="was"><span>Avant</span><b>60&nbsp;%</b></div><div><span>Après</span><b>95&nbsp;%</b></div></div> */
.aj-stat { border: 1px solid var(--graphite); display: grid; grid-template-columns: 1fr 1fr; }
.aj-stat > div { padding: 24px; } .aj-stat > div + div { border-left: 1px solid var(--graphite); }
.aj-stat span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.aj-stat b { display: block; margin-top: 8px; font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--primary); }
.aj-stat .was b { color: var(--graphite-control); }

.author-card { margin-top: 56px; border-top: 1px solid var(--graphite); padding-top: 32px; display: flex; gap: 20px; max-width: 68ch; }
.author-card .avatar { width: 56px; height: 56px; }
.author-card p { margin-top: 6px; color: var(--secondary); line-height: 1.6; font-size: .95rem; }
.author-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 16px; font-size: .875rem; }
.author-links a { color: var(--primary); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.author-hero { display: flex; gap: 24px; align-items: flex-start; }
.author-hero h1 { margin-top: 0; }

.related { border-top: 1px solid var(--graphite); padding: 48px 0 72px; }
.related-grid { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related .card { border: 1px solid var(--graphite); padding: 24px; transition: border-color .15s; }
.related .card:hover { border-color: var(--graphite-control); }
.related .card h3 { margin-top: 10px; font-size: 1.15rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; color: var(--primary); }

.error-page { padding: 96px 20px 120px; }
.error-page h1 { margin-top: 12px; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; letter-spacing: -0.035em; color: var(--primary); }
.error-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--graphite); padding: 56px 0 32px; }
@media (min-width: 768px) { .ftr { padding: 64px 0 40px; } }
.ftr-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 6fr 3fr 3fr; gap: 32px; } }
.brand-sm { font-size: 1rem !important; } .brand-sm .brand-mark { height: 24px; }
.ftr-tagline { margin-top: 16px; max-width: 24rem; font-size: .875rem; line-height: 1.5rem; color: var(--secondary); }
.ftr h2 { font-size: .875rem; font-weight: 500; color: var(--secondary); margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ftr li a, .ftr-links a, .ftr-links button { display: inline-flex; min-height: 32px; align-items: center; font-size: .875rem; color: var(--secondary); transition: color .15s; }
.ftr li a:hover, .ftr-links a:hover, .ftr-links button:hover { color: var(--primary); }
.ftr-bottom { margin-top: 48px; border-top: 1px solid var(--graphite); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; font-size: .875rem; color: var(--secondary); }
@media (min-width: 640px) { .ftr-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.ftr-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.ftr-links button { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Consent bar (same choice as the main site) ---------- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 420px; margin-left: auto; background: var(--background); border: 1px solid var(--graphite-control); padding: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.consent p { font-size: .9rem; line-height: 1.55; color: var(--secondary); }
.consent-actions { display: flex; gap: 10px; margin-top: 16px; }
.consent .btn { min-height: 40px; padding: .6rem 1rem; font-size: .9rem; }

/* Ghost's search/portal accent follows the brand. */
:root { --ghost-accent-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
