/* julianrsterling.com : couche visuelle commune (14/11/2026).
   Chargee apres le style de chaque page. Aucune ressource externe. */
@font-face{font-family:"EB Garamond";src:url(/assets/fonts/ebgaramond-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"EB Garamond";src:url(/assets/fonts/ebgaramond-600.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}

:root{
  --bg:#0E1117;--panel:#161A22;--card:#161A22;--line:#272D38;
  --ink:#ECEAE4;--mute:#9DA5B0;--muted:#9DA5B0;
  --gold:#CBA869;--gold-dim:#8C7745;--accent:#CBA869;--btn:#CBA869;
  --gold-hi:#E3C88F;--serif:"EB Garamond",Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme:dark;
}
html{background:var(--bg);scroll-behavior:smooth;scroll-padding-top:76px;scrollbar-color:#3A4250 var(--bg)}
body{
  font-family:var(--sans);min-height:100vh;position:relative;
  background:
    radial-gradient(1000px 480px at 8% -6%,rgba(203,168,105,.14),transparent 62%),
    radial-gradient(900px 620px at 108% 4%,rgba(70,104,170,.16),transparent 60%),
    var(--bg);
  background-repeat:no-repeat;
  text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;
}
/* quadrillage de tableur, en filigrane derriere l'en-tete */
body::before{
  content:"";position:absolute;inset:0 0 auto 0;height:560px;pointer-events:none;z-index:0;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 75% 100% at 50% 0,#000 25%,transparent 78%);
          mask-image:radial-gradient(ellipse 75% 100% at 50% 0,#000 25%,transparent 78%);
}
.wrap{position:relative;z-index:1}
::selection{background:rgba(203,168,105,.85);color:#10141B}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:3px}

/* ---------- barre de navigation ---------- */
.jrs-nav{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:10px max(22px,calc((100vw - 1080px)/2 + 22px));
  background:rgba(14,17,23,.72);-webkit-backdrop-filter:saturate(160%) blur(14px);backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(255,255,255,.07);font-family:var(--sans);font-size:14px;line-height:1.2;
}
.jrs-nav a{text-decoration:none;color:var(--mute);transition:color .15s}
.jrs-nav a:hover{color:var(--ink)}
.jrs-nav .jrs-brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-family:var(--serif);font-size:19px;letter-spacing:.01em;white-space:nowrap}
.jrs-nav .jrs-brand img{display:block;width:28px;height:28px;border-radius:7px}
.jrs-links{display:flex;align-items:center;gap:22px;white-space:nowrap}
.jrs-links a.jrs-pro{color:var(--gold);border:1px solid rgba(203,168,105,.45);border-radius:999px;padding:6px 13px;transition:background .15s,color .15s,border-color .15s}
.jrs-links a.jrs-pro:hover{background:var(--gold);color:#10141B;border-color:var(--gold)}
@media (max-width:640px){
  .jrs-nav{padding:9px 16px;gap:12px}
  .jrs-nav .jrs-brand span{display:none}
  .jrs-links{gap:16px;font-size:13.5px;overflow-x:auto}
}

/* ---------- typographie ---------- */
h1,h2,li h2,.more a,.alsoby a,ul.guide h3,.cards h3,.book-cta h3,.bookbox h3{font-family:var(--serif);font-weight:400}
h1{font-size:clamp(33px,4.8vw,46px);line-height:1.12;letter-spacing:-.005em;text-wrap:balance}
h2{font-size:28px;line-height:1.2;text-wrap:balance}
li h2{font-size:23px;line-height:1.2}
.more a,.alsoby a{font-size:19.5px}
ul.guide h3,.cards h3,.book-cta h3,.bookbox h3{font-size:22px;line-height:1.25}
p{text-wrap:pretty}
.sub{font-size:17px;line-height:1.55}
.eyebrow{font-family:var(--sans);font-weight:600;font-size:11.5px;letter-spacing:.22em}
.eyebrow::before{content:"";display:inline-block;width:30px;height:1px;background:var(--gold);vertical-align:middle;margin:-2px 12px 0 0}
a{text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(203,168,105,.45);transition:color .15s,text-decoration-color .15s}
a:hover{color:var(--gold-hi);text-decoration-color:currentColor}
h2 a,.more a,.alsoby a{transition:color .15s}

header{border-bottom:0;position:relative}
header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,var(--gold),rgba(203,168,105,.18) 38%,rgba(255,255,255,.05))}

/* ---------- cartes et encadres ---------- */
.files li,.cards li,.panel,.wrap>ul:not([class])>li{
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  border:1px solid var(--line);border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 34px -22px rgba(0,0,0,.75);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.files li:hover,.cards li:hover,.wrap>ul:not([class])>li:hover{
  transform:translateY(-2px);border-color:rgba(203,168,105,.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 22px 44px -24px rgba(0,0,0,.9),0 0 0 1px rgba(203,168,105,.08);
}
.all,.cta,.book-cta,.bookbox{
  border:1px solid rgba(203,168,105,.38);border-radius:12px;
  background:linear-gradient(160deg,rgba(203,168,105,.12),rgba(203,168,105,.03) 55%,rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 40px -26px rgba(0,0,0,.8);
}
.book{border-color:var(--line);background:rgba(255,255,255,.025)}
.more li,.alsoby li,ul.guide li{border-radius:0}
.more li,.alsoby li{transition:padding-left .2s ease}
.more li:hover,.alsoby li:hover{padding-left:8px}
.note{border-left:2px solid var(--gold);border-image:linear-gradient(180deg,var(--gold),rgba(203,168,105,.15)) 1}

/* ---------- boutons ---------- */
a.btn{display:inline-block;padding:9px 16px;font-family:var(--sans);font-size:14.5px;font-weight:600;line-height:1.4;text-decoration:none}
a.btn,form.gate button{
  background:linear-gradient(180deg,#DEC28A,#BE9B5A);color:#10141B;border:0;border-radius:8px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 20px -10px rgba(203,168,105,.7);
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
a.btn:hover,form.gate button:hover{background:linear-gradient(180deg,#E8CE9A,#C9A766);color:#10141B;transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 12px 26px -10px rgba(203,168,105,.85)}
.dl,a.dl{
  background:rgba(203,168,105,.06);border:1px solid rgba(203,168,105,.55);border-radius:8px;color:var(--gold);
  font-family:var(--sans);font-weight:600;transition:background .15s,color .15s,border-color .15s,transform .15s;
}
.dl:hover,a.dl:hover{background:var(--gold);border-color:var(--gold);color:#10141B;transform:translateY(-1px)}
.dl:hover .size,a.dl:hover .size{color:#10141B;opacity:.7}
a.go{font-weight:600;text-decoration:none}
form.gate input[type=email]{border-radius:8px}

/* ---------- tableaux, images ---------- */
table{font-variant-numeric:tabular-nums}
tr{transition:background .12s}
tbody tr:hover td,table:not(:has(tbody)) tr:hover td{background:rgba(255,255,255,.028)}
.cover{border:0;border-radius:6px;box-shadow:0 26px 50px -22px rgba(0,0,0,.95),0 0 0 1px rgba(255,255,255,.08)}
figure img,.cards img{border-radius:10px}
li img{transition:transform .25s ease,filter .25s ease}
li a:hover img{transform:scale(1.02);filter:brightness(1.08)}

footer{border-top:0;position:relative}
footer::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(203,168,105,.35),rgba(255,255,255,.05))}

/* ---------- accueil ---------- */
.wrap:has(>header.hero){max-width:1120px}
header.hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;align-items:center;padding:72px 0 64px}
header.hero h1{font-size:clamp(46px,7.2vw,84px);line-height:1;letter-spacing:-.02em;margin:0 0 22px}
header.hero h1 em{font-style:normal;background:linear-gradient(180deg,#F0DBAE,#B8934F);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-tag{font-size:19px;line-height:1.55;color:var(--mute);margin:0 0 28px;max-width:34em}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 34px}
.hero-cta a.btn{margin:0;text-decoration:none;padding:13px 22px;font-size:15.5px;border-radius:10px}
.hero-cta a.btn.ghost{background:rgba(255,255,255,.04);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.hero-cta a.btn.ghost:hover{background:rgba(255,255,255,.09);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(203,168,105,.6)}
header.hero ul.hero-stats{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:0;margin:0;padding:0;list-style:none}
header.hero ul.hero-stats li{border:0;background:none;box-shadow:none;border-radius:0;margin:0;padding:0 26px 0 0;margin-right:26px;border-right:1px solid var(--line);color:var(--mute);font-size:13.5px;line-height:1.35;transform:none}
header.hero ul.hero-stats li:last-child{border-right:0;margin-right:0;padding-right:0}
header.hero ul.hero-stats strong{display:block;font-family:var(--serif);font-weight:400;font-size:38px;line-height:1;color:var(--ink);margin:0 0 6px}
.hero-art{position:relative;height:380px}
.hero-art img{position:absolute;width:78%;height:auto;border-radius:12px;box-shadow:0 36px 70px -28px rgba(0,0,0,.95),0 0 0 1px rgba(255,255,255,.1);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.hero-art img:nth-child(1){left:0;top:4%;transform:rotate(-7deg)}
.hero-art img:nth-child(2){right:0;top:30%;transform:rotate(5deg)}
.hero-art img:nth-child(3){left:9%;top:58%;transform:rotate(-2.5deg)}
header.hero:hover .hero-art img:nth-child(1){transform:rotate(-9deg) translate(-6px,-8px)}
header.hero:hover .hero-art img:nth-child(2){transform:rotate(7deg) translate(8px,-4px)}
header.hero:hover .hero-art img:nth-child(3){transform:rotate(-1deg) translateY(8px)}
header.hero~.lead{font-size:18px;max-width:46em;margin:40px 0 0}
h2.sec{font-size:34px;margin:64px 0 6px}
p.sec-sub{color:var(--mute);margin:0 0 22px;font-size:15.5px}

/* packs premium en cartes */
header.hero~section.cta{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px;padding:26px;margin:34px 0 !important}
header.hero~section.cta>h3{grid-column:1/-1;font-family:var(--serif);font-weight:400;font-size:30px;margin:0 0 4px}
header.hero~section.cta>p{margin:0;padding:18px 20px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(14,17,23,.55);font-size:14.5px;line-height:1.6;transition:border-color .2s,transform .2s}
header.hero~section.cta>p:hover{border-color:rgba(203,168,105,.5);transform:translateY(-2px)}
header.hero~section.cta>p>strong:first-child{font-family:var(--serif);font-weight:400;font-size:21px;line-height:1.2;color:var(--gold-hi)}
header.hero~section.cta>p[style]{grid-column:1/-1;padding:0 2px;border:0;background:none;transform:none}
header.hero~section.cta>p[style]>strong:first-child{display:inline;font:inherit;font-weight:600;color:var(--gold)}
header.hero~section.cta a[href*="payhip.com"]{display:inline-block;margin:0 2px;padding:1px 12px;border-radius:999px;background:linear-gradient(180deg,#DEC28A,#BE9B5A);color:#10141B;font-weight:600;text-decoration:none;white-space:nowrap}
header.hero~section.cta a[href*="payhip.com"]:hover{filter:brightness(1.08)}

/* titres phares et catalogue */
header.hero~section h2{font-size:34px !important;margin:44px 0 6px !important}
header.hero~section>ul{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr)) !important;gap:16px !important}
header.hero~section>ul>li{
  border-radius:12px !important;padding:14px !important;margin:0;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 34px -22px rgba(0,0,0,.75);
  transition:transform .2s ease,border-color .2s ease;
}
header.hero~section>ul>li:hover{transform:translateY(-3px);border-color:rgba(203,168,105,.5) !important}
header.hero~section>ul>li img{border-radius:8px !important}
header.hero~section>ul>li h3{font-family:var(--serif);font-weight:400;font-size:19px !important;line-height:1.25}
header.hero~section>ul>li h3 a{text-decoration:none;color:var(--ink)}
header.hero~ul:not([class]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
header.hero~ul:not([class])>li{margin:0;padding:22px 24px;position:relative}
header.hero~ul:not([class])>li h2{margin:0 0 8px}
header.hero~ul:not([class])>li h2 a{color:var(--ink);text-decoration:none}
header.hero~ul:not([class])>li h2 a::after{content:"";position:absolute;inset:0;border-radius:12px}
header.hero~ul:not([class])>li:hover h2 a{color:var(--gold-hi)}
header.hero~ul:not([class])>li p{font-size:14.5px;line-height:1.6}
@media (max-width:860px){
  header.hero{grid-template-columns:1fr;gap:8px;padding:44px 0 64px}
  .hero-art{height:auto;aspect-ratio:1;max-width:520px;margin-top:22px}
  header.hero~ul:not([class]){grid-template-columns:1fr}
  header.hero ul.hero-stats li{padding-right:14px;margin-right:14px;font-size:12.5px}
  header.hero ul.hero-stats strong{font-size:30px}
  h2.sec,header.hero~section h2{font-size:28px !important}
}

/* ---------- petits ecrans : tableaux defilables, liens longs, barre compacte ---------- */
.jrs-links{scrollbar-width:none}
.jrs-links::-webkit-scrollbar{display:none}
table{display:flex;flex-direction:column;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
table>tbody{display:table;width:100%;border-collapse:collapse;order:1}
table>caption{display:block;order:2}
code{overflow-wrap:anywhere}
pre{max-width:100%;overflow-x:auto}
.dl,a.dl{max-width:100%}
@media (max-width:700px){
  code{white-space:normal}
  header.hero~section.cta{padding:16px}
  p a,li a,dd a,h1,h2,h3{overflow-wrap:anywhere}
  td a,th a,a.btn,.dl,a.dl{overflow-wrap:normal}
}
@media (max-width:400px){
  .jrs-nav{padding:9px 12px;gap:8px}
  .jrs-links{gap:12px;font-size:13px}
  .jrs-links a.jrs-pro{padding:5px 10px}
}
@media (max-width:400px){.dl,a.dl{white-space:normal}}
@media (max-width:340px){
  .jrs-nav{gap:6px}
  .jrs-links{gap:9px;font-size:12.5px}
  .jrs-links a.jrs-pro{padding:4px 8px}
}

@media (prefers-reduced-motion:no-preference){
  @keyframes jrs-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  header>*{animation:jrs-rise .6s cubic-bezier(.2,.7,.2,1) both}
  header>*:nth-child(2){animation-delay:.06s}
  header>*:nth-child(3){animation-delay:.12s}
  header>*:nth-child(4){animation-delay:.18s}
  header>*:nth-child(5){animation-delay:.24s}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none !important;animation:none !important}}
@media print{.jrs-nav{display:none}body{background:#fff}body::before{display:none}}

/* Pages livre : les puces de la description ne sont pas des cartes (16/11/2026) */
.wrap>img.cover~ul:not([class])>li,.wrap>img.cover~ul:not([class])>li:hover{background:none;border:0;box-shadow:none;border-radius:0;transform:none}

/* Encadré vente directe : boutons secondaires en contour (16/11/2026) */
.pb-box a.btn.alt{background:none!important;border:1px solid rgba(203,168,105,.6)!important;color:inherit!important;box-shadow:none!important}
.pb-box a.btn.alt:hover{background:rgba(203,168,105,.12)!important}
.pb-shop{margin:30px 0;padding:14px 18px;border:1px solid rgba(203,168,105,.45);border-radius:10px;font-size:15px;line-height:1.6;background:rgba(14,17,23,.35)}
.pb-shop a{white-space:nowrap}

/* Images : jamais étirées ni recadrées par l'attribut height quand la largeur est réduite (16/11/2026) */
img{max-width:100%;height:auto}
.hero-art img{max-width:none}

/* Mise en avant des éditions PDF (16/11/2026) */
.pdf-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:20px 0 0;padding:13px 16px;border:1px solid rgba(203,168,105,.45);border-radius:10px;background:rgba(203,168,105,.07);font-size:15px;line-height:1.5}
.pdf-top span{flex:1 1 260px}
.pdf-top a.btn{margin:0;white-space:nowrap}
a.pdf-sample{font-size:14px;white-space:nowrap}

/* ---------- correctifs 16/11 ---------- */
.note{padding-left:16px}
a.is-loading{cursor:progress;opacity:.92}
a.is-loading .spin{display:inline-block;width:.9em;height:.9em;margin:0 .5em -.12em 0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:jrs-spin .7s linear infinite}
@keyframes jrs-spin{to{transform:rotate(360deg)}}

/* Controle d'affichage du 17/11/2026 (ordinateur, tablette, mobile) : correctifs communs, affichage seul. */
/* Noms de fichiers et formules longs : retour a la ligne au lieu de sortir de l'encadre */
.files strong,.files .size,.meta .size,p.files strong{overflow-wrap:anywhere}
.panel{overflow-wrap:anywhere}
.wrap p,.wrap li,.wrap dd{overflow-wrap:break-word}
.panel code{white-space:normal;overflow-wrap:anywhere}
/* Texte courant : 14 px minimum (styles en ligne des blocs generes et du bloc d'achat) */
p[style*="font-size:13px"],p[style*="font-size:13.5px"],p[style*="font-size: 13px"],p[style*="font-size: 13.5px"]{font-size:14px!important}
figcaption{font-size:14px}
/* Ecrans tactiles : boutons et liens d'achat d'au moins 44 px de haut, champ e-mail a 16 px (pas de zoom iPhone) */
@media (pointer:coarse){
  a.btn,a.go,a.pdfgo,a.dl,.pb-box a.pb-b{min-height:44px;box-sizing:border-box}
  a.btn,.pb-box a.pb-b{display:inline-flex;align-items:center;justify-content:center}
  a.go,a.pdfgo,a.dl{display:inline-flex;align-items:center}
  body #mp-bar a{display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box}
  li[id^="pdf-"] a.buy,li[id^="pack-"] a.buy{display:inline-flex;align-items:center;min-height:44px}
  label.mp-add{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  .pb-cart a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
  .pb-cart button{min-width:44px;min-height:44px}
  html body input[type=email],html body form.gate input[type=email]{font-size:16px}
}
/* Choix du pays du broche : la liste reste dans l encadre a 320 px */
.pb-box select{max-width:100%}

/* lien Calculators de la barre (17/11/2026) : masque sous 540 px, la barre deborderait */
@media (max-width:540px){.jrs-links a.jrs-calc{display:none}}

/* onglet Courses (17/11/2026) : sous 440 px, il prend la place du lien Articles (articles accessibles par la loupe et l accueil) */
@media (max-width:440px){.jrs-links a[href="/articles/"]{display:none}}
@media (max-width:340px){html body .jrs-nav .jrs-links{gap:5px;font-size:11.5px}html body .jrs-nav .jrs-links a.jrs-pro{padding:3px 6px}}

/* Repli : encarts .cta et boutons .dl sur les pages qui ne les stylent pas elles-memes (accueil, buyouts, articles). Specificite nulle, les styles des pages priment. */
:where(.cta){display:block;padding:20px 22px;margin:28px 0 0}
:where(.cta) h3{margin:0 0 8px;font-size:18px;line-height:1.3}
:where(.cta) p{margin:0;font-size:14.5px}
:where(.cta) p + p{margin-top:12px}
:where(a.dl){display:inline-block;padding:9px 16px;text-decoration:none;font-size:14.5px;line-height:1.4}
/* Barre du haut sur mobile : tout tient sans couper la bordure de « Pro models » */
@media (max-width:440px){.jrs-nav .jrs-links{gap:11px}.jrs-nav .jrs-links{padding-right:2px}}
@media (max-width:400px){html body .jrs-nav{gap:6px}.jrs-nav .jrs-links{gap:8px}.jrs-nav .jrs-links a.jrs-pro{padding:4px 9px}}
