/* ==========================================================================
   L’Ouverture. — Investment Intelligence
   Identité : la bannière (encre, or, lever de soleil).
   Expérience : la sobriété d’apple.com (navigation translucide, grands titres,
   tuiles arrondies, beaucoup d’air).
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-opsz-normal.woff2) format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-opsz-italic.woff2) format('woff2-variations');
  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: 'Source Serif';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/serif/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Source Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/serif/source-serif-4-latin-wght-italic.woff2) format('woff2-variations');
  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;
}

/* ---------- Jetons ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Helvetica Neue', Helvetica,
    Arial, sans-serif;
  --font-serif: ui-serif, 'New York', 'Source Serif', Charter, Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --gold: #f0b95e;
  --gold-ink: #8f5b0e;
  --gold-soft: #fbf1e0;
  --pill-bg: #1d1d1f;
  --pill-bg-hover: #3a3a3c;
  --pill-fg: #ffffff;
  --danger: #d70015;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --scrim: rgba(232, 232, 237, 0.4);
  --shadow-tile: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 18px 40px -12px rgba(0, 0, 0, 0.18);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  --hero-fade: #ffffff;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --gnav-h: 52px;
  --lnav-h: 52px;
  --page: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 692px;
  --reader-size: 1.1875rem;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);

  color-scheme: light;
}

:root[data-theme='sepia'] {
  --bg: #f8f2e6;
  --bg-alt: #f0e7d6;
  --surface: #fbf6ec;
  --surface-raised: #fdf9f1;
  --ink: #2e261c;
  --ink-2: #4a3f31;
  --muted: #7a6a55;
  --line: #ddcfb6;
  --line-soft: #e8dcc6;
  --gold-soft: #f3e2c4;
  --glass: rgba(248, 242, 230, 0.75);
  --glass-strong: rgba(248, 242, 230, 0.9);
  --hero-fade: #f8f2e6;
}

:root[data-theme='dark'] {
  --bg: #000000;
  --bg-alt: #101012;
  --surface: #1c1c1e;
  --surface-raised: #232326;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #a1a1a6;
  --line: #424245;
  --line-soft: #2c2c2e;
  --gold-ink: #f0b95e;
  --gold-soft: rgba(240, 185, 94, 0.14);
  --pill-bg: #f5f5f7;
  --pill-bg-hover: #d2d2d7;
  --pill-fg: #1d1d1f;
  --danger: #ff6961;
  --glass: rgba(22, 22, 23, 0.72);
  --glass-strong: rgba(22, 22, 23, 0.88);
  --scrim: rgba(0, 0, 0, 0.45);
  --shadow-tile: none;
  --shadow-hover: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.6);
  --hero-fade: #000000;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --surface-raised: #232326;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #a1a1a6;
    --line: #424245;
    --line-soft: #2c2c2e;
    --gold-ink: #f0b95e;
    --gold-soft: rgba(240, 185, 94, 0.14);
    --pill-bg: #f5f5f7;
    --pill-bg-hover: #d2d2d7;
    --pill-fg: #1d1d1f;
    --danger: #ff6961;
    --glass: rgba(22, 22, 23, 0.72);
    --glass-strong: rgba(22, 22, 23, 0.88);
    --scrim: rgba(0, 0, 0, 0.45);
    --shadow-tile: none;
    --shadow-hover: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.6);
    --hero-fade: #000000;
    color-scheme: dark;
  }
}

:root[data-size='sm'] { --reader-size: 1.0625rem; }
:root[data-size='md'] { --reader-size: 1.1875rem; }
:root[data-size='lg'] { --reader-size: 1.3125rem; }
:root[data-size='xl'] { --reader-size: 1.4375rem; }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--lnav-h) + 24px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
code, kbd, pre { font-family: var(--font-mono); letter-spacing: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--surface); padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.icon { flex-shrink: 0; display: block; }
.action-form { display: contents; }

/* ---------- Marque ---------- */
.logo-mark { color: var(--gold); flex-shrink: 0; display: block; }
.wordmark { font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }
.wordmark-dot { color: var(--gold); }

/* ---------- Boutons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 20px; border-radius: 980px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pill:active { transform: scale(0.97); }
.pill-primary { background: var(--pill-bg); color: var(--pill-fg); }
.pill-primary:hover { background: var(--pill-bg-hover); }
.pill-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.pill-secondary:hover { background: var(--bg-alt); border-color: var(--muted); }
.pill-secondary.star.is-active { color: var(--gold-ink); border-color: var(--gold); background: var(--gold-soft); }
.pill-danger:hover { color: var(--danger); border-color: var(--danger); background: transparent; }
.pill-sm { min-height: 32px; padding: 0 14px; font-size: 13.5px; }
.pill-lg { min-height: 48px; padding: 0 26px; font-size: 17px; }
.pill .btn-label { display: inline; }

.link-more {
  display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--gold-ink); font-size: 17px; font-weight: 500;
}
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: none; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--ink); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.star.is-active { color: var(--gold); }
.icon-btn .btn-label { display: none; }

.glass-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--glass-strong); color: var(--ink);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s var(--ease), background-color 0.2s;
}
.glass-btn:hover { transform: scale(1.08); }
.glass-btn.star.is-active { color: var(--gold); }
.glass-btn .btn-label { display: none; }

/* ==========================================================================
   Navigation globale
   ========================================================================== */
.gnav {
  position: relative; z-index: 60;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.is-front .gnav { position: absolute; inset: 0 0 auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gnav-inner {
  max-width: var(--page); margin: 0 auto; height: var(--gnav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.gnav-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; color: var(--ink); }
.gnav-brand:hover { opacity: 0.85; }
.gnav-links { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 4px; }
.gnav-link {
  display: block; padding: 6px 11px; border-radius: 980px; font-size: 13px; letter-spacing: -0.005em; color: var(--ink-2);
  opacity: 0.88; transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}
.gnav-link:hover { opacity: 1; color: var(--ink); }
.gnav-link.is-active { color: var(--ink); opacity: 1; font-weight: 600; }
.gnav-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.gnav-links + .gnav-tools { margin-left: 0; }
.gnav-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; border-radius: 50%;
  color: var(--ink-2); cursor: pointer; transition: color 0.2s, background-color 0.2s;
}
.gnav-icon:hover, .gnav-icon.is-active { color: var(--ink); }
.gnav-icon.is-active .icon { color: var(--gold); fill: var(--gold); }
.gnav-menu-btn { display: none; }
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.burger span:first-child { top: 2px; }
.burger span:last-child { top: 9px; }
body.menu-open .burger span:first-child { top: 5.5px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 5.5px; transform: rotate(-45deg); }

/* Recherche (panneau déroulant façon apple.com) */
.search-panel {
  position: absolute; left: 0; right: 0; top: 0; z-index: 70;
  padding: calc(var(--gnav-h) + 20px) var(--gutter) 44px;
  background: var(--glass-strong); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  animation: drop 0.32s var(--ease);
}
.search-panel[hidden] { display: none; }
.search-form, .search-quick { max-width: 680px; margin: 0 auto; }
.search-form { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.search-form input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink);
  font-size: clamp(22px, 3.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; padding: 6px 0;
}
.search-form input::placeholder { color: var(--muted); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-quick { margin-top: 26px; }
.search-quick-title { margin: 0 0 10px; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.search-quick ul { list-style: none; margin: 0; padding: 0; }
.search-quick a { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.search-quick a .icon { color: var(--muted); }
.search-quick a:hover { color: var(--gold-ink); }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }

.scrim {
  position: fixed; inset: 0; z-index: 55; background: var(--scrim);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
body.search-open .scrim { opacity: 1; visibility: visible; }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: var(--gnav-h) 0 0; z-index: 65; overflow-y: auto;
  padding: 18px 40px 48px; background: var(--bg);
  animation: drop 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu-links a { display: block; padding: 7px 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.mobile-menu-sub { margin-top: 26px !important; }
.mobile-menu-sub a, .mobile-menu-sub button {
  display: block; padding: 6px 0; font-size: 17px; font-weight: 500; color: var(--ink-2); border: 0; background: none; cursor: pointer; text-align: left;
}
body.menu-open { overflow: hidden; }
body.menu-open .gnav { background: var(--bg); position: fixed; inset: 0 0 auto; }

/* Popover / menus */
.popover-wrap { position: relative; }
.popover {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 240px;
  padding: 8px; border-radius: 18px; background: var(--glass-strong);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-pop);
  animation: pop 0.22s var(--ease);
}
.popover[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: none;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer;
}
.menu-item .icon { color: var(--muted); }
.menu-item:hover { background: var(--bg-alt); }

/* ==========================================================================
   Barre locale (collante)
   ========================================================================== */
.lnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.lnav-inner {
  max-width: var(--page); margin: 0 auto; height: var(--lnav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.lnav-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lnav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.lnav-links { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.lnav-links::-webkit-scrollbar { display: none; }
.lnav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 980px;
  font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: color 0.2s, background-color 0.2s;
}
.lnav-link:hover { color: var(--ink); }
.lnav-link.is-active { background: var(--ink); color: var(--bg); font-weight: 500; }
.lnav-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 600; background: var(--gold); color: #1d1d1f; font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Hero (bannière)
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--hero-fade); isolation: isolate; }
.hero-sky {
  position: absolute; inset: 0 0 0 auto; width: min(68%, 1100px); z-index: -1;
  background: url(/img/hero-sunrise.webp) right 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 70%, transparent 100%);
  mask-composite: intersect;
}
:root[data-theme='dark'] .hero-sky { opacity: 0.55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .hero-sky { opacity: 0.55; } }
.hero-inner { max-width: var(--page); margin: 0 auto; padding: calc(var(--gnav-h) + clamp(56px, 9vw, 112px)) var(--gutter) 28px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 18px; margin: 0 0 clamp(18px, 3vw, 30px);
  font-size: clamp(12px, 1.4vw, 15px); letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink); font-weight: 400;
}
.hero-eyebrow strong { font-weight: 700; }
.hero-title {
  margin: 0; font-size: clamp(46px, 14.5vw, 152px); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em;
  margin-left: -0.04em;
}
.hero-title-sm { font-size: clamp(40px, 6vw, 72px); }
.hero-tagline { margin: clamp(14px, 2vw, 22px) 0 0; font-size: clamp(21px, 2.6vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; color: var(--ink-2); max-width: 22em; }
.hero-date { margin: 26px 0 0; font-size: 15px; color: var(--muted); }
.hero-date-day { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 22px; }

.hero-pillars { max-width: var(--page); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(36px, 5vw, 56px); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar {
  display: flex; align-items: center; gap: 16px; padding: 6px 22px; border-left: 1px solid var(--line); min-width: 0;
  transition: transform 0.3s var(--ease);
}
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar:hover { transform: translateY(-2px); }
.pillar-icon { color: var(--ink); transition: color 0.2s; }
.pillar:hover .pillar-icon { color: var(--gold-ink); }
.pillar-text { display: flex; flex-direction: column; min-width: 0; }
.pillar-name { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.pillar-tagline { font-size: 15px; color: var(--muted); }
.pillar-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0; background: var(--gold); color: #1d1d1f;
}

/* ==========================================================================
   Pages
   ========================================================================== */
.page { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 96px; }
.page-narrow { max-width: 820px; }
.page-narrow-top { padding-top: 48px; }
.page-header { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); max-width: 860px; }
.page-header-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--gold-soft); color: var(--gold-ink);
}
.page-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.page-title { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.title-soft { color: var(--muted); }
.page-sub { margin: 14px 0 0; font-size: clamp(17px, 2vw, 21px); color: var(--muted); letter-spacing: -0.015em; }

.section-title {
  margin: 0 0 22px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em;
}
.section-title span { color: var(--muted); }
.feed-section { padding-top: clamp(44px, 6vw, 72px); }

/* Bande de publications (façon « chiclets » de l’Apple Store) */
.strip-section { padding-top: 36px; }
.strip {
  display: flex; gap: 26px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none;
  justify-content: flex-start;
}
.strip::-webkit-scrollbar { display: none; }
.strip-item { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 84px; flex-shrink: 0; scroll-snap-align: start; text-align: center; }
.strip-avatar { position: relative; transition: transform 0.3s var(--ease); }
.strip-item:hover .strip-avatar { transform: translateY(-3px); }
.strip-name { font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip-badge {
  position: absolute; top: -5px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--gold); color: #1d1d1f;
  border: 2px solid var(--bg);
}
.avatar-more { background: var(--bg-alt) !important; color: var(--ink-2) !important; }

/* ---------- Avatars ---------- */
.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden;
  background: var(--avatar-bg, #888); color: #fff; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.avatar-xs { width: 20px; height: 20px; font-size: 8.5px; border-radius: 6px; }
.avatar-sm { width: 26px; height: 26px; font-size: 10px; border-radius: 7px; }
.avatar-md { width: 44px; height: 44px; font-size: 15px; border-radius: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 21px; border-radius: 18px; }
.avatar-xxl { width: 112px; height: 112px; font-size: 38px; border-radius: 28px; }

/* ==========================================================================
   Tuiles
   ========================================================================== */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.tile {
  position: relative; border-radius: var(--r-lg); background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-tile); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.layout-app .tile, .layout-reader .tile { background: var(--bg-alt); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile-link { display: flex; flex-direction: column; height: 100%; }
.tile-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.media-placeholder {
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(240, 185, 94, 0.55), transparent 60%),
    linear-gradient(140deg, color-mix(in srgb, var(--pub) 70%, #fff) 0%, var(--pub) 55%, color-mix(in srgb, var(--pub) 70%, #000) 100%);
}
.tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.eyebrow-line { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; min-width: 0; overflow: hidden; }
.eyebrow-rubrique { color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 700; white-space: nowrap; }
.eyebrow-pub { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: 0.6; flex-shrink: 0; }
.tile-title {
  margin: 0 0 8px; font-size: 21px; line-height: 1.19; font-weight: 700; letter-spacing: -0.025em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-excerpt {
  margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-meta { margin: auto 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 0 3px var(--gold-soft); }
.meta-ai { color: var(--gold-ink); display: inline-flex; margin-left: 2px; }
.meta-star { color: var(--gold); display: inline-flex; }
.tile.is-read .tile-title { color: var(--ink-2); }
.tile-actions {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 6px;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.tile:hover .tile-actions, .tile:focus-within .tile-actions { opacity: 1; transform: none; }
.tile.is-removing { animation: tile-out 0.35s var(--ease) forwards; }
@keyframes tile-out { to { opacity: 0; transform: scale(0.96); } }

/* Grande tuile « À la une » */
.feature { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-alt); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.feature:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-link { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 420px; }
.feature-media { overflow: hidden; background: var(--line-soft); min-height: 260px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.feature-title { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.feature-excerpt { margin: 0 0 22px; font-size: 17px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature-foot { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.feature-pub { font-weight: 600; }

/* Publications */
.pub-header { padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.pub-header .avatar { margin-bottom: 22px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35); }
.pub-desc { max-width: 560px; margin: 14px auto 0; color: var(--ink-2); }
.pub-links { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 16px; font-size: 15px; flex-wrap: wrap; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pub-tile {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-alt);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pub-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pub-tile > .icon { color: var(--muted); }
.pub-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pub-tile-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-tile-meta { font-size: 14px; color: var(--muted); }
.badge {
  min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold); color: #1d1d1f; font-size: 12.5px; font-weight: 700;
}

/* Recherche (page) */
.search-hero {
  display: flex; align-items: center; gap: 16px; max-width: 820px; padding: 14px 24px; margin: 0 0 48px;
  border-radius: 980px; background: var(--bg-alt); color: var(--muted);
}
.search-hero input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink);
  font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.025em;
}
.search-hero input::-webkit-search-cancel-button { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 980px;
  background: var(--bg-alt); font-size: 15px; font-weight: 500; transition: background-color 0.2s;
}
.chip:hover { background: var(--gold-soft); color: var(--gold-ink); }

/* États vides */
.empty { text-align: center; padding: 88px 20px 40px; max-width: 460px; margin: 0 auto; }
.empty-icon { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.empty h2 { margin: 0 0 10px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.empty p { margin: 0 0 26px; color: var(--muted); font-size: 17px; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; gap: 12px; }
.pagination-info { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Liseuse
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.progress-bar { height: 100%; width: 0; background: var(--gold); border-radius: 0 2px 2px 0; }

.reader-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease);
}
.reader-bar.is-hidden { transform: translateY(-100%); }
.reader-bar-inner { max-width: var(--page); margin: 0 auto; height: var(--lnav-h); padding: 0 calc(var(--gutter) - 8px); display: flex; align-items: center; gap: 12px; }
.reader-back { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; color: var(--gold-ink); font-weight: 500; white-space: nowrap; padding: 6px 4px; }
.reader-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.reader-pub {
  position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; max-width: 34vw; white-space: nowrap;
}
.reader-pub span { overflow: hidden; text-overflow: ellipsis; }
.reader-actions { margin-left: auto; display: flex; align-items: center; gap: 0; }

.reader { padding: 0 var(--gutter) 40px; }
.post { max-width: var(--measure); margin: 0 auto; }
.post-header { padding: clamp(44px, 7vw, 84px) 0 28px; }
.post-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; color: var(--muted); font-weight: 500; }
.post-eyebrow a { color: var(--gold-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.post-eyebrow time::first-letter { text-transform: uppercase; }
.post-title { margin: 0; font-size: clamp(34px, 5.4vw, 52px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; }
.post-subtitle { margin: 16px 0 0; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.33; color: var(--muted); letter-spacing: -0.02em; font-weight: 400; }
.byline { display: flex; align-items: center; gap: 13px; margin-top: 28px; }
.byline-text { display: flex; flex-direction: column; min-width: 0; }
.byline-name { font-weight: 600; font-size: 16px; }
.byline-name:hover { color: var(--gold-ink); }
.byline-meta { font-size: 14px; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.tag { font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 980px; background: var(--bg-alt); color: var(--ink-2); }

.post-cover { margin: 0 calc(50% - min(50vw, 490px)) 36px; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); display: block; }

.summary { margin: 8px 0 36px; padding: 26px 28px 16px; border-radius: var(--r-lg); background: var(--bg-alt); position: relative; overflow: hidden; }
.summary::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.summary-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
.summary-body { font-size: 17px; line-height: 1.55; }
.summary-body ul, .summary-body ol { margin: 0 0 10px; padding-left: 1.2em; }
.summary-body li { margin: 6px 0; padding-left: 2px; }
.summary-body li::marker { color: var(--gold); }
.summary-body p { margin: 0 0 10px; }
.summary-body a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.segmented { display: inline-flex; padding: 3px; border-radius: 980px; background: var(--bg-alt); }
.segment {
  height: 32px; padding: 0 18px; border-radius: 980px; border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.segment:hover { color: var(--ink); }
.segment.is-active { background: var(--surface-raised); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.view-toggle { margin: 0 0 32px; }

/* ---------- Typographie de lecture ---------- */
.prose {
  font-family: var(--font-sans); font-size: var(--reader-size); line-height: 1.6; letter-spacing: -0.014em;
  color: var(--ink); overflow-wrap: break-word;
}
:root[data-font='serif'] .prose { font-family: var(--font-serif); letter-spacing: 0; line-height: 1.66; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: var(--font-sans); font-weight: 700; line-height: 1.18; letter-spacing: -0.028em; margin: 1.8em 0 0.55em;
}
.prose h1 { font-size: 1.6em; }
.prose h2 { font-size: 1.4em; }
.prose h3 { font-size: 1.17em; }
.prose h4, .prose h5, .prose h6 { font-size: 1em; letter-spacing: -0.015em; }
.prose a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
  text-decoration-color: var(--gold); transition: color 0.2s;
}
.prose a:hover { color: var(--gold-ink); }
.prose :is(h1, h2, h3, h4) a { text-decoration: none; }
.prose strong, .prose b { font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin: 0.4em 0; padding-left: 0.2em; }
.prose li > p { margin: 0 0 0.5em; }
.prose li::marker { color: var(--gold-ink); }
.prose blockquote {
  margin: 1.6em 0; padding: 0 0 0 1.2em; border-left: 3px solid var(--gold);
  font-size: 1.12em; line-height: 1.45; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { display: block; height: auto; margin: 1.5em auto; border-radius: var(--r-md); }
.prose img.img-small { display: inline-block; margin: 0.6em 0; vertical-align: middle; border-radius: 6px; }
.prose img.img-icon { display: inline-block; margin: 0 0.2em; vertical-align: middle; border-radius: 4px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 0.75em; color: var(--muted); text-align: center; margin-top: 0.7em; }
.prose code { font-size: 0.85em; background: var(--bg-alt); padding: 0.12em 0.4em; border-radius: 6px; }
.prose pre { background: var(--bg-alt); padding: 16px 18px; border-radius: var(--r-md); overflow-x: auto; font-size: 0.8em; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--r-md); background: var(--bg-alt); -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--font-sans); font-size: 0.8em; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.prose th, .prose td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-weight: 600; color: var(--muted); font-size: 0.92em; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose a.button-link {
  display: inline-block; margin: 0.3em 0; padding: 0.6em 1.4em; border-radius: 980px; text-decoration: none;
  background: var(--pill-bg); color: var(--pill-fg); font-family: var(--font-sans); font-size: 0.85em; font-weight: 500;
}
.prose a.button-link:hover { background: var(--pill-bg-hover); color: var(--pill-fg); }
.prose .nl-footer { font-family: var(--font-sans); font-size: 0.72em; line-height: 1.5; color: var(--muted); margin-bottom: 0.6em; }
.prose .nl-footer:first-of-type { border-top: 1px solid var(--line-soft); padding-top: 1.8em; margin-top: 2.6em; }
.prose .nl-footer a { color: var(--muted); text-decoration-color: var(--line); text-decoration-thickness: 1px; }
.prose .nl-footer img { display: inline-block; margin: 0 0.25em; max-height: 2em; width: auto; }

.original-pane { margin: 0 -12px; }
.original-frame { width: 100%; min-height: 70vh; border: 0; border-radius: var(--r-lg); background: #fff; display: block; box-shadow: 0 0 0 1px var(--line-soft); }

.post-footer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.post-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r-md); background: var(--bg-alt); transition: transform 0.3s var(--ease); }
.post-nav-link:hover { transform: translateY(-2px); }
.post-nav-next { text-align: right; align-items: flex-end; }
.post-nav-dir { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--gold-ink); font-weight: 500; }
.post-nav-title { font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.more { max-width: var(--page); margin: 88px auto 0; padding-top: 0; }
.more .link-more { margin-top: 26px; }

/* Réglages de lecture */
.popover-row { display: flex; flex-direction: column; gap: 7px; padding: 6px; }
.popover-label { font-size: 12px; font-weight: 600; color: var(--muted); }
#reader-settings { width: 290px; }
.seg-mini { display: flex; background: var(--bg-alt); border-radius: 12px; padding: 3px; gap: 2px; }
.seg-mini button {
  flex: 1; height: 34px; border: 0; background: none; border-radius: 9px; cursor: pointer; color: var(--ink-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 500;
}
.seg-mini button:hover { color: var(--ink); }
.seg-mini button[aria-pressed='true'] { background: var(--surface-raised); color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
.seg-mini button[data-set-size='sm'] { font-size: 12px; }
.seg-mini button[data-set-size='md'] { font-size: 14px; }
.seg-mini button[data-set-size='lg'] { font-size: 17px; }
.seg-mini button[data-set-size='xl'] { font-size: 20px; }
.font-serif-btn { font-family: var(--font-serif); }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); display: block; }
.swatch-light { background: #fff; }
.swatch-sepia { background: #f8f2e6; }
.swatch-dark { background: #000; border-color: #555; }

/* ==========================================================================
   Connecter Claude
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 36px; }
.stat { padding: 22px 24px; border-radius: var(--r-lg); background: var(--bg-alt); display: flex; flex-direction: column; }
.stat-value { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; }
.step { display: flex; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line-soft); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px;
}
.step-body { flex: 1; min-width: 0; }
.step-title { margin: 4px 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.step-body p { margin: 0 0 14px; color: var(--ink-2); }
.step-body code { font-size: 13px; background: var(--bg-alt); padding: 2px 7px; border-radius: 6px; }
.copy-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.copy-value {
  flex: 1; min-width: 200px; padding: 11px 14px; border-radius: 12px; background: var(--bg-alt) !important;
  font-size: 13px !important; overflow-x: auto; white-space: nowrap;
}
.code-block { position: relative; margin-bottom: 12px; }
.code-block pre {
  margin: 0; padding: 20px; padding-top: 56px; border-radius: var(--r-md); background: var(--bg-alt);
  font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--ink-2);
}
.code-copy { position: absolute; top: 12px; right: 12px; }

/* ==========================================================================
   Connexion
   ========================================================================== */
.layout-bare { min-height: 100vh; background: var(--hero-fade); position: relative; overflow-x: hidden; }
.layout-bare::before {
  content: ''; position: fixed; inset: 0 0 0 auto; width: min(72%, 1200px); z-index: 0;
  background: url(/img/hero-sunrise.webp) right 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
:root[data-theme='dark'] .layout-bare::before { opacity: 0.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .layout-bare::before { opacity: 0.5; } }
.bare { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; max-width: var(--page); margin: 0 auto; padding: 48px var(--gutter); }
.login { width: 100%; }
.login-brand .pill { margin-top: 32px; }
.login-card { margin-top: 44px; max-width: 400px; }
.login-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.login-field {
  display: flex; align-items: center; padding: 5px 5px 5px 20px; border-radius: 980px;
  background: var(--glass-strong); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.login-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 17px; height: 44px; }
.login-submit {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--pill-bg); color: var(--pill-fg); transition: background-color 0.2s, transform 0.15s;
}
.login-submit:hover { background: var(--pill-bg-hover); }
.login-submit:active { transform: scale(0.94); }
.form-error { color: var(--danger); font-size: 14px; margin: 12px 0 0 20px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 40px; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 34px var(--gutter) 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; }
.footer-tagline { margin: 6px 0 18px; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.footer kbd { font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 11px 12px 11px 20px; border-radius: 980px; font-size: 14px; font-weight: 500;
  background: rgba(29, 29, 31, 0.86); color: #f5f5f7; box-shadow: var(--shadow-pop);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  animation: toast-in 0.35s var(--ease);
}
.toast[hidden] { display: none; }
.toast button { background: none; border: 0; color: var(--gold); font-weight: 600; cursor: pointer; padding: 4px 8px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .tile.reveal.is-visible:hover { transform: translateY(-4px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1068px) {
  .gnav-links { display: none; }
  .gnav-tools { margin-left: auto !important; }
  .gnav-menu-btn { display: inline-grid; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 834px) {
  .feature-link { grid-template-columns: 1fr; min-height: 0; }
  .feature-media { aspect-ratio: 16 / 9; min-height: 0; }
  .hero-sky { width: 100%; opacity: 0.9; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
  .hero-inner { padding-top: calc(var(--gnav-h) + 64px); }
  .hide-sm { display: none !important; }
  .reader-pub { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --lnav-h: 48px; }
  .lnav-title { display: none; }
  .lnav-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .tile-grid { grid-template-columns: 1fr; gap: 0; }
  .tile { border-radius: 0; background: transparent !important; box-shadow: none; border-bottom: 1px solid var(--line-soft); }
  .tile:hover { transform: none; box-shadow: none; }
  .js .tile.reveal.is-visible:hover { transform: none; }
  .tile-link { flex-direction: row-reverse; align-items: flex-start; gap: 16px; padding: 18px 0; }
  .tile-media { width: 92px; height: 92px; aspect-ratio: 1; border-radius: 14px; flex-shrink: 0; }
  .tile-media .icon { width: 30px; height: 30px; }
  .tile-body { padding: 0; }
  .tile-title { font-size: 18px; line-height: 1.22; }
  .tile-excerpt { font-size: 14px; margin-bottom: 10px; }
  .tile-actions { display: none; }
  .section-title { margin-bottom: 4px; }
  .feature { border-radius: var(--r-lg); }
  .hero-inner { padding-top: calc(var(--gnav-h) + 36px); padding-bottom: 8px; }
  .hero-eyebrow { gap: 12px; letter-spacing: 0.22em; font-size: 11px; }
  .hero-eyebrow .logo-mark { width: 22px; height: auto; }
  .hero-tagline { font-size: 20px; }
  .hero-date { margin-top: 18px; font-size: 14px; }
  .hero-ctas { gap: 14px 20px; margin-top: 16px; }
  .hero-ctas .pill-lg { min-height: 44px; font-size: 16px; padding: 0 22px; }
  .hero-ctas .link-more { font-size: 15px; }
  .hero-pillars { padding-top: 22px; padding-bottom: 24px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pillar { gap: 10px; padding: 11px 12px; border: 0; border-radius: var(--r-md); background: var(--glass-strong); }
  .pillar:first-child, .pillar:nth-child(3) { padding: 11px 12px; }
  .pillar-icon .icon { width: 24px; height: 24px; }
  .pillar-name { font-size: 15px; gap: 6px; }
  .pillar-tagline { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pillar-count { min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 5px; }
  .post-cover { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .post-cover img { border-radius: 0; }
  .strip { gap: 18px; }
  .strip-item { width: 72px; }
  .strip .avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
  .stats { gap: 8px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 30px; }
  .step { gap: 14px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; align-items: flex-start; }
  .original-pane { margin: 0 calc(-1 * var(--gutter)); }
  .original-frame { border-radius: 0; }
  .summary { padding: 22px 20px 12px; }
  .popover-wrap { position: static; }
  #reader-settings { position: fixed; left: 12px; right: 12px; top: calc(var(--lnav-h) + 8px); width: auto; }
  .reader-back span { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }
  .mobile-menu { padding: 12px var(--gutter) 40px; }
  .search-hero { padding: 12px 20px; }
  .layout-bare::before { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%); mask-image: linear-gradient(180deg, #000 20%, transparent 85%); opacity: 0.85; }
}

@media (hover: none) {
  .tile-actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .gnav, .lnav, .reader-bar, .progress, .post-footer, .more, .view-toggle, .toast, .footer { display: none !important; }
  .prose { font-size: 12pt; }
}
