/* JUDICAEL BRINDEL — design system (minimalisme éditorial) */
:root {
  --bg:#FAFAFA; --surface:#FFFFFF; --line:rgba(128,128,128,.15);
  --txt:#111111; --mut:#666666;
  --accent:#111111; --accent-text:#111111;
  --btn-bg:#111111; --btn-txt:#FFFFFF;
  --tint:rgba(128,128,128,.08);
  --shadow:0 1px 2px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.05);
  --ease:cubic-bezier(0.16,1,0.3,1);
  --f-head:'Plus Jakarta Sans',system-ui,sans-serif;
  --f-body:'Inter',system-ui,sans-serif;
  --f-serif:'Instrument Serif',Georgia,serif;
  color-scheme:light;
  /* Visuels de podcast : carré par défaut. Se change dans /admin → Réglages (carré 1:1 ou YouTube 16:9) */
  --pod-ratio:1 / 1; --pod-row-w:96px; --pod-main-w:200px; --pod-main-max:260px;
}
:root[data-pod-format="wide"] {
  --pod-ratio:16 / 9; --pod-row-w:176px; --pod-main-w:320px; --pod-main-max:100%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0A0A0A; --surface:#141414; --txt:#F5F5F5; --mut:#A1A1AA;
    --accent:#F5F5F5; --accent-text:#F5F5F5; --btn-bg:#F5F5F5; --btn-txt:#0A0A0A;
    --tint:rgba(128,128,128,.1); --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 32px rgba(0,0,0,.35);
    color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0A0A0A; --surface:#141414; --txt:#F5F5F5; --mut:#A1A1AA;
  --accent:#F5F5F5; --accent-text:#F5F5F5; --btn-bg:#F5F5F5; --btn-txt:#0A0A0A;
  --tint:rgba(128,128,128,.1); --shadow:0 1px 2px rgba(0,0,0,.3),0 12px 32px rgba(0,0,0,.35);
  color-scheme:dark;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--txt); font:400 1rem/1.6 var(--f-body);
  padding-left:env(safe-area-inset-left,0px); padding-right:env(safe-area-inset-right,0px);
  min-height:100vh; display:flex; flex-direction:column; -webkit-font-smoothing:antialiased; }
main { flex:1; }
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
button { font:inherit; color:inherit; cursor:pointer; }
h1,h2,h3 { font-family:var(--f-head); font-weight:800; letter-spacing:-0.03em; line-height:1.08; margin:0; }
h1 { font-size:clamp(2.5rem,5vw,4.5rem); }
h2 { font-size:clamp(1.75rem,3vw,2.5rem); }
h3 { font-size:1.25rem; font-weight:700; letter-spacing:-0.02em; line-height:1.25; }
p { margin:0; }
.muted { color:var(--mut); }
.container { max-width:1160px; margin:0 auto; padding:0 24px; }
.eyebrow { font:600 .75rem/1 var(--f-body); text-transform:uppercase; letter-spacing:.15em; color:var(--mut); }
.editorial-highlight { font-family:var(--f-serif); font-style:italic; font-weight:400; letter-spacing:-0.01em; }
.section { padding:clamp(56px,9vw,112px) 0; }
.page-head { padding:clamp(56px,9vw,104px) 0 clamp(24px,4vw,40px); }
.page-head h1 { margin:14px 0 16px; }
.page-head .lead { max-width:620px; color:var(--mut); font-size:1.125rem; }

/* Header */
.site-header { position:sticky; top:0; z-index:40; background:color-mix(in srgb,var(--bg) 85%,transparent);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--line);
  padding-top:env(safe-area-inset-top,0px); }
.brand { display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:26px 20px 18px; }
.brand-name { font:800 clamp(1.45rem,5.6vw,2.7rem)/1.05 var(--f-head); letter-spacing:.06em; text-transform:uppercase; color:var(--txt); }
.brand-tag { font:italic 400 clamp(.88rem,3vw,1.15rem)/1.35 var(--f-serif); color:var(--mut); max-width:34em; text-wrap:balance; }
.drawer-name { font:800 1rem var(--f-head); letter-spacing:.06em; text-transform:uppercase; }
.header-in { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; height:56px; border-top:1px solid var(--line); }
.logo { font:800 1.35rem var(--f-head); letter-spacing:-0.04em; }
.logo span { color:var(--accent); }
.nav { display:flex; gap:30px; font-family:var(--f-head); font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.nav a { color:var(--txt); opacity:.62; transition:opacity .3s var(--ease); }
.nav a:hover,.nav a[aria-current="page"] { opacity:1; }
.header-end .btn { font-family:var(--f-head); text-transform:uppercase; letter-spacing:.08em; font-weight:700; font-size:.74rem; }
.header-end { display:flex; justify-content:flex-end; align-items:center; gap:10px; }
.icon-btn { width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:transparent;
  display:inline-flex; align-items:center; justify-content:center; transition:background .3s var(--ease); }
.icon-btn:hover { background:var(--tint); }
.burger { display:none; }

/* Boutons */
.btn { display:inline-flex; align-items:center; gap:8px; font:600 .9rem var(--f-body); padding:13px 24px;
  border-radius:9999px; border:1px solid transparent; transition:transform .4s var(--ease),background .3s; white-space:nowrap; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { background:var(--btn-bg); color:var(--btn-txt); }
.btn-ghost { background:transparent; color:var(--txt); border-color:var(--line); }
.btn-ghost:hover { background:var(--tint); }
.btn-sm { padding:9px 18px; font-size:.82rem; }
.btn:disabled { opacity:.6; cursor:wait; }

/* Drawer mobile */
.drawer { position:fixed; inset:0; z-index:60; visibility:hidden; }
.drawer.open { visibility:visible; }
.drawer-bg { position:absolute; inset:0; background:rgba(0,0,0,.45); opacity:0; transition:opacity .4s var(--ease); }
.drawer-panel { position:absolute; top:0; right:0; bottom:0; width:min(86vw,360px); background:var(--bg);
  padding:calc(24px + env(safe-area-inset-top,0px)) 28px 28px; display:flex; flex-direction:column; gap:6px;
  transform:translateX(100%); transition:transform .5s var(--ease); border-left:1px solid var(--line); }
.drawer.open .drawer-bg { opacity:1; } .drawer.open .drawer-panel { transform:none; }
.drawer-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.drawer a.dl { font:800 1.25rem var(--f-head); letter-spacing:.06em; text-transform:uppercase; padding:10px 0; }
.drawer .btn { margin-top:20px; justify-content:center; }

/* Hero */
.hero { padding:clamp(48px,8vw,104px) 0 clamp(40px,6vw,80px); }
.hero-grid { display:grid; grid-template-columns:3fr 2fr; gap:clamp(32px,6vw,80px); align-items:center; }
.hero h1 { margin:20px 0 24px; }
.hero .sub { max-width:540px; color:var(--mut); font-size:1.125rem; margin-bottom:32px; }
.cta-row { display:flex; flex-wrap:wrap; gap:12px; }
.tagline { font:italic 400 clamp(1.25rem,2vw,1.6rem)/1.3 var(--f-serif); margin:-12px 0 28px; }
.pod-intro { max-width:680px; padding-bottom:clamp(32px,5vw,56px); display:flex; flex-direction:column; gap:16px; font-size:1.125rem; }
.pod-intro .big { font:800 clamp(1.5rem,2.6vw,2rem)/1.1 var(--f-head); letter-spacing:-0.03em; }
.pod-intro .tagline { margin:4px 0; }
.portrait { position:relative; aspect-ratio:4/5; border-radius:20px; overflow:hidden; border:1px solid var(--line);
  background:linear-gradient(145deg,var(--tint),var(--surface)); box-shadow:var(--shadow); }
.portrait img { position:relative; z-index:1; width:100%; height:100%; object-fit:cover; background:var(--surface); }
.portrait .ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font:800 5rem var(--f-head); letter-spacing:-0.05em; color:var(--mut); opacity:.5; }
.portrait .ph span { color:var(--accent); }

/* Cartes & Bento */
.card { background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow);
  transition:transform .5s var(--ease),border-color .3s; }
a.card:hover,.card.lift:hover { transform:translateY(-4px); border-color:color-mix(in srgb,var(--accent) 45%,transparent); }
.bento { display:grid; grid-template-columns:repeat(12,1fr); gap:20px; }
.b-pod,.b-art { grid-column:span 7; } .b-book,.b-quote { grid-column:span 5; }
.bento .card { padding:28px; display:flex; flex-direction:column; gap:16px; }
.sec-title { display:flex; justify-content:space-between; align-items:end; margin-bottom:28px; gap:16px; }
.cover { aspect-ratio:var(--pod-ratio); border-radius:14px; overflow:hidden; background:linear-gradient(145deg,var(--tint),var(--surface));
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.cover img { width:100%; height:100%; object-fit:cover; }
.cover-mark { font:800 2.2rem var(--f-head); letter-spacing:-0.05em; color:var(--accent); }
.pod-main { display:flex; gap:24px; align-items:stretch; }
.pod-main .cover { width:var(--pod-main-w); flex-shrink:0; align-self:flex-start; }
.pod-body { display:flex; flex-direction:column; gap:12px; justify-content:center; align-items:flex-start; }
.clamp { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.meta { font-size:.82rem; color:var(--mut); }
.book-cover { aspect-ratio:3/4; max-height:270px; margin:0 auto; border-radius:12px; overflow:hidden; background:var(--tint); box-shadow:var(--shadow); }
.book-cover img { height:100%; width:auto; object-fit:cover; }
.art-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--line);
  transition:padding .4s var(--ease); }
.art-row:first-of-type { border-top:0; }
.art-row:hover { padding-left:8px; }
.art-row h3 { font-size:1.05rem; }
.quote-card { background:var(--tint)!important; justify-content:space-between; }
.quote-text { font:italic 400 clamp(1.5rem,2.6vw,2.1rem)/1.25 var(--f-serif); letter-spacing:-0.01em; }

/* Listes (pages) */
.grid-3 { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; padding-bottom:clamp(56px,9vw,112px); }
.grid-3 .card { padding:28px; display:flex; flex-direction:column; gap:12px; justify-content:space-between; min-height:220px; }
.stack { display:flex; flex-direction:column; gap:16px; padding-bottom:clamp(56px,9vw,112px); }
.row-card { display:flex; gap:24px; align-items:center; padding:20px; }
.row-card .cover { width:var(--pod-row-w); flex-shrink:0; }
.row-card .grow { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.books { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:24px; padding-bottom:clamp(56px,9vw,112px); }
.book-card { padding:24px; display:flex; flex-direction:column; gap:20px; }
.empty { color:var(--mut); padding:24px 0; }

/* Citations / texte */
.quote-hero { padding:clamp(28px,5vw,56px); margin-bottom:24px; }
.quote-hero .quote-text { font-size:clamp(1.75rem,3.4vw,2.8rem); margin-bottom:28px; transition:opacity .3s; }
.quote-actions { display:flex; gap:10px; flex-wrap:wrap; }
.q-card { padding:24px; display:flex; flex-direction:column; gap:20px; justify-content:space-between; }
.q-card .quote-text { font-size:1.35rem; }
.prose { max-width:840px; margin:0 auto; padding-bottom:clamp(56px,9vw,112px); }
.prose.md > p:first-child { font-weight:600; }
.sign { font:italic 400 2rem var(--f-serif); margin-top:12px; }

/* Markdown : rendu typographique commun (articles, à propos, livres) */
.md { font-size:clamp(1.06rem,1.7vw,1.16rem); line-height:1.72; overflow-wrap:break-word; }
.md > :first-child { margin-top:0; } .md > :last-child { margin-bottom:0; }
.md p { margin:0 0 1.5em; }
.md h1,.md h2,.md h3,.md h4 { font-family:var(--f-head); font-weight:800; letter-spacing:-0.03em; line-height:1.15; margin:2.2em 0 .7em; }
.md h1 { font-size:clamp(1.9rem,3.4vw,2.6rem); } .md h2 { font-size:clamp(1.5rem,2.6vw,2rem); }
.md h3 { font-size:1.35rem; } .md h4 { font-size:1.1rem; }
.md strong { font-weight:700; }
.md em { font-family:var(--f-serif); font-size:1.12em; }
.md ul,.md ol { margin:0 0 1.5em; padding-left:1.3em; }
.md li { margin:.45em 0; padding-left:.3em; } .md li::marker { color:var(--mut); }
.md blockquote { margin:2.2em 0; padding:.1em 0 .1em 1.4em; border-left:2px solid var(--accent);
  font:italic 400 clamp(1.4rem,2.4vw,1.8rem)/1.4 var(--f-serif); letter-spacing:-0.01em; }
.md blockquote p { margin:0 0 .6em; } .md blockquote > :last-child { margin-bottom:0; }
.md hr { border:0; height:1px; background:var(--line); margin:3em auto; max-width:120px; }
.md a { text-decoration:underline; text-decoration-color:var(--mut); text-underline-offset:3px; transition:text-decoration-color .3s; }
.md a:hover { text-decoration-color:var(--accent); }
.md img { border-radius:14px; margin:2em auto; height:auto; border:1px solid var(--line); }
.md code { font-size:.9em; background:var(--tint); padding:.15em .4em; border-radius:6px; }
.md pre { overflow:auto; background:var(--tint); padding:16px; border-radius:12px; margin:0 0 1.5em; } .md pre code { background:none; padding:0; }
.md p.sign { font:italic 400 2rem/1.2 var(--f-serif); margin:12px 0 0; }
.md.compact { font-size:.95rem; line-height:1.65; color:var(--mut); }
.md.compact p { margin-bottom:1em; } .md.compact strong { color:var(--txt); }
.md.compact h1,.md.compact h2,.md.compact h3,.md.compact h4 { font-size:1.05rem; margin:1.4em 0 .5em; color:var(--txt); }
.md.compact blockquote { font-size:1.15rem; margin:1.4em 0; }
.md.compact img { margin:1.2em auto; }

/* Page article & cartes d'articles */
.article-head { max-width:840px; margin:0 auto; padding:clamp(40px,7vw,80px) 0 clamp(20px,3vw,32px); }
.article-head h1 { font-size:clamp(2.2rem,4.6vw,3.6rem); margin:16px 0 18px; }
.article-head .lead { color:var(--mut); font-size:1.2rem; }
.back-link { display:inline-flex; gap:8px; align-items:center; font-size:.85rem; color:var(--mut); margin-bottom:24px; transition:color .3s; }
.back-link:hover { color:var(--txt); }
.article-cover { max-width:940px; margin:0 auto clamp(28px,5vw,48px); aspect-ratio:16/9; border-radius:20px; overflow:hidden; border:1px solid var(--line); background:var(--tint); }
.article-cover img { width:100%; height:100%; object-fit:cover; }
.art-cover { aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:var(--tint); margin-bottom:18px; }
.art-cover img { width:100%; height:100%; object-fit:cover; }
.article-end { max-width:840px; margin:0 auto; padding-bottom:clamp(56px,9vw,112px); }

/* Newsletter */
.nl { text-align:center; max-width:680px; margin:0 auto; padding:clamp(40px,7vw,72px) 24px; }
.nl h2 { margin:14px 0 14px; }
.nl p.muted { margin-bottom:28px; }
.nl-form { display:flex; gap:10px; max-width:460px; margin:0 auto; flex-wrap:wrap; justify-content:center; }
.nl-form input { flex:1; min-width:210px; padding:13px 20px; border-radius:9999px; border:1px solid var(--line);
  background:var(--bg); color:var(--txt); font:inherit; }
.nl-form input:focus { outline:2px solid var(--accent); outline-offset:1px; }
.form-msg { width:100%; font-size:.9rem; color:var(--txt); min-height:1.4em; }
.fine { font-size:.78rem; color:var(--mut); margin-top:14px; }

/* Réseaux sociaux */
.socials { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:24px; }
.pill { border:1px solid var(--line); border-radius:9999px; padding:8px 16px; font-size:.85rem; font-weight:500; color:var(--txt);
  transition:transform .4s var(--ease),background .3s; }
.pill:hover { background:var(--tint); transform:translateY(-2px); }
.socials.big { margin:0; } .socials.big .pill { padding:14px 26px; font-size:1rem; }
.socials .eyebrow { margin-right:6px; }
.social-group { margin-bottom:28px; } .social-group:last-child { margin-bottom:0; }
.social-group .eyebrow { display:block; margin-bottom:12px; }

/* Logos des plateformes d'écoute */
.pill.ic-pill { display:inline-flex; align-items:center; gap:10px; }
.pill .ic { flex-shrink:0; width:1.15em; height:1.15em; }
@media (max-width:620px) { .socials.big .pill.ic-pill { padding:11px 18px; font-size:.92rem; gap:8px; } }
/* Fin d'article : écoute, partage, note éditoriale, sources */
.listen-card { border-top:1px solid var(--line); padding-top:32px; margin-top:8px; }
.listen-title { font:800 1.25rem/1.25 var(--f-head); letter-spacing:-0.02em; margin-bottom:12px; }
.listen-card p:not(.listen-title) { font-size:1.02rem; line-height:1.75; }
.inl-link { display:inline-flex; align-items:center; gap:.35em; font-weight:600; border-bottom:1px solid var(--mut); line-height:1.3; transition:border-color .3s; }
.inl-link:hover { border-bottom-color:var(--txt); }
.inl-link .ic { width:1em; height:1em; }
.share-bar { margin-top:32px; }
.share-bar .eyebrow { display:block; margin-bottom:12px; }
.share-bar .socials { margin:0; }
button.pill { background:none; cursor:pointer; }
.share-native[hidden] { display:none; }
.pill.done { background:var(--tint); }
.editorial-note { margin-top:32px; font-size:.8rem; line-height:1.65; color:var(--mut); }
.editorial-note strong { color:var(--txt); font-weight:600; }
.article-sources { margin-top:36px; border-top:1px solid var(--line); padding-top:24px; }
.sources-title { font:600 .75rem/1 var(--f-body); text-transform:uppercase; letter-spacing:.15em; color:var(--mut); margin:0 0 16px; }
.prose.md.sources-body { font-size:.92rem; line-height:1.65; color:var(--mut); padding-bottom:0; }
.prose.md.sources-body > p:first-child { font-weight:inherit; }
.article-end > .btn { margin-top:28px; }
/* Épisode : « Voir plus » */
details.more { margin-top:4px; align-self:flex-start; max-width:100%; }
details.more > summary { list-style:none; cursor:pointer; display:inline-block; font-size:.85rem; font-weight:600; color:var(--txt); border-bottom:1px solid var(--txt); padding-bottom:1px; }
details.more > summary::-webkit-details-marker { display:none; }
details.more .more-close, details.more[open] .more-open { display:none; }
details.more[open] .more-close { display:inline; }
.more-body { margin-top:14px; }
.row-card:has(details.more[open]) { align-items:flex-start; }

/* Footer & toast */
.site-footer { border-top:1px solid var(--line); padding:32px 0 calc(32px + env(safe-area-inset-bottom,0px)); font-size:.85rem; color:var(--mut); }
.foot-in { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.foot-in nav { display:flex; gap:20px; flex-wrap:wrap; }
.foot-in a:hover { color:var(--txt); }
.toast { z-index:120; position:fixed; left:50%; bottom:calc(28px + env(safe-area-inset-bottom,0px)); transform:translate(-50%,20px); opacity:0;
  background:var(--btn-bg); color:var(--btn-txt); padding:12px 22px; border-radius:9999px; font-size:.88rem; 
  transition:all .5s var(--ease); pointer-events:none; }
.toast.show { opacity:1; transform:translate(-50%,0); }

/* Animations */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .9s var(--ease),transform .9s var(--ease); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; } html { scroll-behavior:auto; }
  .btn,.card,.art-row { transition:none; }
}

/* Responsive */
@media (max-width:900px) {
  .nav,.header-end .btn { display:none; } .burger { display:inline-flex; }
  .header-in { grid-template-columns:1fr auto; }
  .hero-grid { grid-template-columns:1fr; } .portrait { max-width:420px; }
  .b-pod,.b-art,.b-book,.b-quote { grid-column:span 12; }
  .pod-main { flex-direction:column; } .pod-main .cover { width:100%; max-width:var(--pod-main-max); }
}
@media (max-width:620px) { .row-card { flex-wrap:wrap; } .row-card .cover { width:100%; } }
@media (max-width:520px) { .container { padding:0 20px; } }

/* Fenêtre admin (Tailwind chargé seulement à l'ouverture) : remises à zéro à spécificité nulle */
:where(#global-admin-modal) *,:where(#global-admin-modal) *::before,:where(#global-admin-modal) *::after { box-sizing:border-box; border-width:0; border-style:solid; border-color:#26262b; }
:where(#global-admin-modal) button { background:transparent; color:inherit; font:inherit; cursor:pointer; }
:where(#global-admin-modal) :is(h3,h4,p) { margin:0; font-family:inherit; letter-spacing:normal; }
#global-admin-modal { z-index:100; }
