/* ════════════════════════════════════════════════════════════════════
   biblio.css — sections noir-or de la bibliothèque (autonomes)
   MCW Édition · MCW Group · non destructif (scopé aux .biblio-*)
   ════════════════════════════════════════════════════════════════════ */
.biblio-landing, .biblio-head, .biblio-collection, .biblio-upsell {
  --black:#050506; --cream:#F4EEE3; --gold:#B89968; --gold-bright:#E6CF98;
  --ink:rgba(244,238,227,.94); --ink-soft:rgba(244,238,227,.66); --rule:rgba(184,153,104,.26);
  --vucko:#2B5CA5; --vucko-l:#91B1EA; --adv:#2F4A35; --adv-l:#9EB79A; --vallejo:#D97A3B; --vallejo-l:#E69A61;
  font-family:"DM Sans",system-ui,sans-serif;
}

/* Panneau premium : un bloc noir-or posé sur le chrome */
.biblio-landing, .biblio-head, .biblio-upsell {
  max-width:1100px; margin:1.6rem auto; padding:clamp(1.8rem,5vw,3.2rem);
  background:radial-gradient(circle at 88% 12%, rgba(184,153,104,.16), transparent 46%), linear-gradient(180deg,#0c0c0e,#070708);
  border:1px solid var(--rule); border-radius:18px; color:var(--ink);
}
.biblio-collection { max-width:1100px; margin:1.6rem auto; padding:0 clamp(1rem,4vw,2rem); }

.biblio-landing .kicker, .biblio-head .kicker {
  font-size:.74rem; letter-spacing:.24em; text-transform:uppercase; color:var(--gold-bright); font-weight:600;
}
.biblio-landing h1, .biblio-head h1 {
  font-family:"Fraunces",serif; font-weight:400; font-size:clamp(2rem,5.5vw,3.2rem);
  line-height:1.08; margin:.7rem 0 1rem; color:var(--cream);
}
.biblio-landing h1 em, .biblio-head h1 em { font-style:italic; color:var(--gold-bright); }
.biblio-landing .lead, .biblio-head .lead { font-size:1.12rem; line-height:1.65; color:var(--ink-soft); max-width:62ch; margin:0 0 1rem; }
.biblio-landing .lead strong, .biblio-head .lead strong { color:var(--ink); }
.biblio-landing .note { color:var(--ink-soft); font-size:.96rem; line-height:1.6; max-width:60ch; margin:0 0 1.6rem; }
.biblio-landing .note strong { color:var(--gold-bright); }

.cta-row { display:flex; flex-wrap:wrap; gap:.8rem; margin:.4rem 0 1rem; }
.cta-gold { display:inline-block; background:linear-gradient(180deg,var(--gold-bright),var(--gold)); color:#1a1305; font-weight:600; border-radius:999px; padding:.8rem 1.5rem; text-decoration:none; }
.cta-ghost { display:inline-block; border:1px solid var(--rule); color:var(--gold-bright); font-weight:600; border-radius:999px; padding:.8rem 1.4rem; text-decoration:none; }
.cta-ghost:hover, .cta-gold:hover { filter:brightness(1.06); }
.biblio-landing .micro { color:var(--ink-soft); font-size:.84rem; margin:.4rem 0 0; }

/* En-têtes de collection */
.col-head { display:flex; align-items:baseline; gap:.8rem; flex-wrap:wrap; padding:0 0 .9rem; margin-bottom:1.2rem; border-bottom:1px solid var(--rule); }
.col-head .bar { width:34px; height:4px; border-radius:2px; background:var(--gold); align-self:center; }
.col-head h2 { font-family:"Fraunces",serif; font-weight:400; font-size:clamp(1.4rem,3.6vw,2rem); margin:0; color:var(--cream); }
.col-head .col-meta { color:var(--ink-soft); font-size:.9rem; font-style:italic; }
.col-head .col-lock { margin-left:auto; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-bright); border:1px dashed var(--rule); border-radius:999px; padding:.2rem .7rem; }
.brand-end .bar{background:var(--gold)} .brand-vucko .bar{background:var(--vucko)} .brand-adv .bar{background:var(--adv)} .brand-vallejo .bar{background:var(--vallejo)}

/* Grille + cartes */
.biblio-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.1rem; }
.biblio-card {
  display:flex; flex-direction:column; text-decoration:none; color:var(--ink);
  background:linear-gradient(180deg,rgba(244,238,227,.05),rgba(244,238,227,.015)),rgba(12,12,13,.92);
  border:1px solid var(--rule); border-left:3px solid var(--gold); border-radius:14px;
  padding:1.25rem 1.25rem 1.05rem; transition:transform .3s, box-shadow .3s;
  box-shadow:0 18px 50px -44px rgba(184,153,104,.6);
}
.brand-vucko .biblio-card{border-left-color:var(--vucko)} .brand-adv .biblio-card{border-left-color:var(--adv)} .brand-vallejo .biblio-card{border-left-color:var(--vallejo)}
.biblio-card:hover { transform:translateY(-4px); box-shadow:0 28px 70px -40px rgba(184,153,104,.85); }
.biblio-card.is-locked { opacity:.62; }
.biblio-card .ck { font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-bright); font-weight:600; margin-bottom:.55rem; }
.brand-vucko .biblio-card .ck{color:var(--vucko-l)} .brand-adv .biblio-card .ck{color:var(--adv-l)} .brand-vallejo .biblio-card .ck{color:var(--vallejo-l)}
.biblio-card h3 { font-family:"Fraunces",serif; font-weight:400; font-size:1.22rem; line-height:1.2; margin:0 0 .55rem; color:var(--cream); }
.biblio-card p { color:var(--ink-soft); font-size:.94rem; line-height:1.5; margin:0 0 1rem; flex:1; }
.biblio-card .row { display:flex; align-items:center; gap:.8rem; font-size:.85rem; color:var(--ink-soft); }
.biblio-card .read { color:var(--gold-bright); font-weight:600; }
.brand-vucko .biblio-card .read{color:var(--vucko-l)} .brand-adv .biblio-card .read{color:var(--adv-l)} .brand-vallejo .biblio-card .read{color:var(--vallejo-l)}
.biblio-card .audio { margin-left:auto; }
.biblio-card .lock { color:var(--ink-soft); }

/* Upsell */
.biblio-upsell .ey { font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-bright); font-weight:600; }
.biblio-upsell h3 { font-family:"Fraunces",serif; font-weight:400; font-size:1.45rem; margin:.3rem 0 .5rem; color:var(--cream); }
.biblio-upsell p { color:var(--ink-soft); max-width:62ch; line-height:1.6; margin:0 0 1.1rem; }

@media (max-width:720px){
  .biblio-grid { grid-template-columns:1fr; }
  .biblio-landing, .biblio-head, .biblio-upsell { margin:1rem; padding:1.4rem; }
}

/* ════════════════════════════════════════════════════════════════════
   Landing enrichie — hero mosaïque, vignettes par besoin, famille, formats
   Ajout 2026-06-24 · scopé .biblio-* · non destructif
   ════════════════════════════════════════════════════════════════════ */

/* Hero : texte + mosaïque d'illustrations */
.biblio-hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(1.4rem,3vw,2.6rem); align-items:center; }
.biblio-hero-art { position:relative; height:380px; border-radius:18px; overflow:hidden; border:1px solid var(--rule); box-shadow:0 36px 80px -40px rgba(0,0,0,.8); }
.biblio-hero-art img { position:absolute; width:50%; height:50%; object-fit:cover; }
.biblio-hero-art img:nth-child(1){left:0;top:0} .biblio-hero-art img:nth-child(2){right:0;top:0}
.biblio-hero-art img:nth-child(3){left:0;bottom:0} .biblio-hero-art img:nth-child(4){right:0;bottom:0}

/* Vignettes « entrer par le besoin » */
.biblio-shelf { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1.05rem; }
.biblio-tile { position:relative; height:250px; border-radius:16px; overflow:hidden; border:1px solid var(--rule); text-decoration:none; display:block; transition:transform .25s, box-shadow .25s; }
.biblio-tile:hover { transform:translateY(-5px); box-shadow:0 30px 60px -34px rgba(0,0,0,.85); }
.biblio-tile img { width:100%; height:100%; object-fit:cover; display:block; }
.biblio-tile::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(13,11,10,.05) 30%,rgba(13,11,10,.86)); }
.biblio-tile .cap { position:absolute; left:16px; right:16px; bottom:14px; z-index:2; }
.biblio-tile .cap small { color:var(--gold-bright); font-size:.66rem; letter-spacing:.18em; text-transform:uppercase; font-weight:600; }
.biblio-tile .cap h3 { font-family:"Fraunces",serif; font-weight:500; color:var(--cream); font-size:1.16rem; margin:.2rem 0 0; }

/* Bande FAMILLE — claire et chaleureuse (couleurs autonomes) */
.biblio-family { max-width:1100px; margin:1.6rem auto; padding:clamp(1.8rem,5vw,3.2rem); border-radius:22px;
  background:linear-gradient(180deg,#F6ECDB,#EFE2CC); border:1px solid #e7d8be; color:#5c4d3a; }
.biblio-family .ey { font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; color:#b07b2e; font-weight:700; }
.biblio-family h2 { font-family:"Fraunces",serif; font-weight:500; color:#2c2114; font-size:clamp(1.6rem,3vw,2.4rem); margin:.5rem 0 .6rem; line-height:1.08; }
.biblio-family > p { color:#5c4d3a; max-width:62ch; line-height:1.6; margin:0; }
.biblio-fam-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; margin-top:1.6rem; }
.biblio-fam-card { background:#fffdf8; border:1px solid #e7d8be; border-radius:18px; padding:1.1rem 1.1rem 1.3rem; text-align:center; box-shadow:0 18px 40px -30px rgba(120,90,40,.5); }
.biblio-fam-card .ph { height:148px; border-radius:13px; overflow:hidden; display:flex; align-items:flex-end; justify-content:center; gap:6px; }
.biblio-fam-card .ph.is-cover img { width:100%; height:100%; object-fit:cover; }
.biblio-fam-card .ph img { height:100%; width:auto; object-fit:contain; filter:drop-shadow(0 8px 12px rgba(120,90,40,.25)); }
.biblio-fam-card h3 { font-family:"Fraunces",serif; font-weight:500; color:#2c2114; font-size:1.22rem; margin:.6rem 0 0; }
.biblio-fam-card p { color:#6b5a44; font-size:.92rem; line-height:1.5; margin:.4rem auto 0; max-width:30ch; }
.biblio-fam-card .tag { display:inline-block; margin-top:.6rem; font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:#b07b2e; }
.biblio-family .foot { margin-top:1.4rem; text-align:center; color:#6b5a44; font-size:.94rem; }

/* Formats */
.biblio-formats { display:grid; grid-template-columns:repeat(3,1fr); gap:1.05rem; }
.biblio-fmt { border:1px solid #e7d8be; border-radius:16px; padding:1.4rem; background:#fffdf8; box-shadow:0 18px 40px -32px rgba(120,90,40,.45); }
.biblio-fmt .ic { font-size:1.6rem; }
.biblio-fmt h3 { font-family:"Fraunces",serif; font-weight:500; color:#2c2114; font-size:1.14rem; margin:.4rem 0 .35rem; }
.biblio-fmt p { color:#6b5a44; font-size:.92rem; line-height:1.5; margin:0; }

@media (max-width:820px){
  .biblio-hero-grid { grid-template-columns:1fr; }
  .biblio-hero-art { height:280px; }
  .biblio-fam-grid, .biblio-formats { grid-template-columns:1fr; }
}

/* ── Thème clair · suit le réglage de l'espace membre (clé mcw_theme) ──
   Ajouté 2026-09-11, à la demande de Célia : l'accueil suit le reste de la
   bibliothèque. Les panneaux restent noir-or en sombre ; en clair ils
   reprennent la palette crème DÉJÀ utilisée plus haut par .biblio-family
   et .biblio-fmt (#fffdf8 / #F6ECDB / #2c2114 / #e7d8be) — rien de nouveau,
   la page cesse simplement d'alterner deux mondes. */
html[data-theme="light"] .biblio-landing,
html[data-theme="light"] .biblio-head,
html[data-theme="light"] .biblio-collection,
html[data-theme="light"] .biblio-upsell{
  --cream:#2c2114; --gold:#7e5a12; --gold-bright:#8c5c12;
  --ink:rgba(44,33,20,.94); --ink-soft:rgba(44,33,20,.70); --rule:rgba(138,100,22,.28);
  --vucko:#2B5CA5; --vucko-l:#1f4a8a; --adv:#2F4A35; --adv-l:#2b5c3a; --vallejo:#b35c22; --vallejo-l:#a2511c;
}
html[data-theme="light"] .biblio-landing,
html[data-theme="light"] .biblio-head,
html[data-theme="light"] .biblio-upsell{
  background:radial-gradient(circle at 88% 12%, rgba(184,153,104,.13), transparent 46%), linear-gradient(180deg,#fffdf8,#f6ecdb);
  border-color:#e7d8be;
}
html[data-theme="light"] .biblio-card{
  background:#fffdf8; border-color:#e7d8be;
  box-shadow:0 18px 40px -34px rgba(120,90,40,.5);
}
html[data-theme="light"] .biblio-card:hover{box-shadow:0 26px 56px -34px rgba(120,90,40,.62)}
html[data-theme="light"] .cta-gold{color:#fff8ec}
html[data-theme="light"] .biblio-hero-art{box-shadow:0 30px 64px -42px rgba(120,90,40,.55)}
html[data-theme="light"] .biblio-tile{box-shadow:0 20px 44px -34px rgba(120,90,40,.5)}
html[data-theme="light"] .biblio-tile:hover{box-shadow:0 28px 58px -32px rgba(120,90,40,.62)}

/* Les sections « famille » et « formats » étaient crème EN DUR : en sombre
   elles restaient des îlots clairs au milieu de la page. Elles suivent. */
html[data-theme="dark"] .biblio-family{
  background:linear-gradient(180deg,#16151b,#121116); border-color:#2A2833; color:var(--ink-soft);
}
html[data-theme="dark"] .biblio-family .ey,
html[data-theme="dark"] .biblio-fam-card .tag{color:var(--gold-bright)}
html[data-theme="dark"] .biblio-family h2,
html[data-theme="dark"] .biblio-fam-card h3,
html[data-theme="dark"] .biblio-fmt h3{color:var(--cream)}
html[data-theme="dark"] .biblio-family > p,
html[data-theme="dark"] .biblio-fam-card p,
html[data-theme="dark"] .biblio-fmt p,
html[data-theme="dark"] .biblio-family .foot{color:var(--ink-soft)}
html[data-theme="dark"] .biblio-fam-card,
html[data-theme="dark"] .biblio-fmt{
  background:#1a1922; border-color:#2A2833; box-shadow:0 18px 40px -32px rgba(0,0,0,.8);
}

/* Lien « Essayer la nouvelle page d'accueil » (app-grille.php) — ex-style
   en ligne : or pâle illisible en thème clair (1,3:1). 2026-10-09. */
.biblio-try-new{display:inline-block;margin-top:.9rem;color:#E6CF98;text-decoration:none;font-size:.92rem;border:1px solid rgba(230,207,152,.4);border-radius:10px;padding:.5rem .9rem}
html[data-theme="light"] .biblio-try-new{color:#75561a;border-color:rgba(117,86,26,.4)}
