:root{
  --accent:#8f2634;
  --heading:#2b2d42;
  --text:#212121;
  --muted:#686868;
  --line:#e7e2df;
  --soft:#f6f3f1;
  --paper:#fff;
  --max:1160px;
  --sidebar:200px;
  --radius:8px;
  --space:6px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.5;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.site-header{
  max-width:var(--max);
  margin:0 auto;
  padding:30px 28px 18px;
}
.logo-wrap{display:flex;align-items:center;min-height:88px;padding-left:14px}
.logo-wrap img{max-width:460px;width:100%;height:auto;display:block}
.top-rule{border-top:1px solid var(--line)}
.navrow{
  max-width:var(--max);
  margin:0 auto;
  padding:10px 28px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  font-size:14px;
  color:var(--muted);
}
.navrow-left,.navrow-right{display:flex;align-items:center;gap:12px}
.nav-primary,.nav-secondary{color:var(--muted);text-decoration:none}
.nav-primary{font-weight:600}
.nav-primary:hover,.nav-secondary:hover{text-decoration:underline}

.layout{
  max-width:var(--max);
  margin:0 auto;
  padding:24px 28px 54px;
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--sidebar);
  gap:42px;
  align-items:start;
}
.theme-kicker{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:#858585;
  font-weight:650;
  margin:0 0 6px;
}
.theme-title{
  color:#686868;
  font-family:Georgia,"Times New Roman",Times,serif;
  font-size:28px;
  line-height:1.22;
  margin:0 0 8px;
  font-weight:400;
  letter-spacing:0;
}
.theme-intro{
  max-width:760px;
  margin:0 0 24px;
  color:#5b5b5b;
  font-size:17px;
}
.article-preview{
  padding:12px 0 36px;
  border-top:1px solid var(--line);
}
.article-preview:first-of-type{border-top:0;padding-top:4px}
.article-preview h2{
  font-size:31px;
  line-height:1.16;
  letter-spacing:-.02em;
  margin:0 0 18px;
  font-weight:760;
  color:var(--heading);
}
.article-preview h2 a{color:inherit}
.article-body{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.thumb{
  width:180px;
  aspect-ratio:3/2;
  background:linear-gradient(145deg,#eee8e5,#faf8f7);
  border:1px solid var(--line);
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#807975;
  font-size:13px;
  line-height:1.35;
  padding:12px;
  overflow:hidden;
}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.article-preview p{margin:0 0 12px}
.readmore{font-weight:700;display:inline-flex;align-items:center;gap:6px}
.readmore span{transition:transform .15s ease}
.readmore:hover span{transform:translateX(3px)}
.sidebar{position:sticky;top:18px}
.side-box{
  border-top:1px solid var(--line);
  padding:18px 0 24px;
  margin-bottom:30px;
}
.sidebar .side-box:first-child{
  border-top:0;
  padding-top:0;
}
.side-box h3{
  margin:0 0 14px;
  font-size:17px;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.025em;
  color:var(--heading);
}
.theme-list{list-style:none;padding:0;margin:0}
.theme-list li{border-top:1px solid var(--line)}
.theme-list li:first-child{border-top:0}
.theme-list a{
  display:block;
  color:#444;
  padding:9px 2px;
  font-size:15px;
  line-height:1.35;
}
.theme-list a.active{color:var(--heading);font-weight:760}
.promo{
  border:1px solid var(--line);
  border-top:3px solid var(--accent);
  border-radius:var(--radius);
  background:var(--soft);
  padding:17px;
}
.promo .tag{
  display:inline-block;
  color:var(--accent);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.promo h3{text-transform:none;font-size:20px;margin:0 0 9px;letter-spacing:-.01em;color:var(--heading)}
.promo p{font-size:14px;line-height:1.45;color:#555;margin:0 0 16px}
.button{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:9px 13px;
  border-radius:5px;
  font-size:13px;
  font-weight:750;
}
.button:hover{text-decoration:none;filter:brightness(.94)}
.about{text-align:left}
.about img{
  display:block;
  width:135px;
  max-width:100%;
  margin:4px auto 14px;
  border-radius:4px;
}
.about p{font-size:14px;line-height:1.45;color:#555;margin:0 0 12px}
.article-main-image{
  float:left;
  margin:4px 22px 14px 0;
  max-width:300px;
}
.article-main-image img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
}
.article-header::after,.article-content::after{
  content:"";
  display:block;
  clear:both;
}
.article-proof{
  margin-top:28px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.article-proof h2{
  margin-top:0;
}
.article-proof img{
  display:block;
  max-width:100%;
  height:auto;
  border:1px solid var(--line);
}
@media(max-width:620px){
  .article-main-image{
    float:none;
    margin:6px 0 18px;
    max-width:100%;
  }
}

.site-footer{border-top:1px solid var(--line);background:#faf9f8}
.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:34px 28px 42px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:start;
  font-size:14px;
  color:#666;
}
.footer-links{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.footer-links a{color:#555}

/* Article complet */
.article-page{min-width:0}
.article-breadcrumb{
  margin:0 0 10px;
  font-size:14px;
  color:var(--muted);
}
.article-breadcrumb a{color:var(--muted)}
.article-header h1{
  font-size:42px;
  line-height:1.12;
  letter-spacing:-.025em;
  margin:0 0 18px;
  font-weight:780;
  color:var(--heading);
}
.article-lead{
  font-size:20px;
  line-height:1.45;
  color:#4c4c4c;
  margin:0 0 30px;
  max-width:800px;
}
.article-content{max-width:800px}
.article-content p{margin:0 0 18px}
.article-content h2{
  font-size:29px;
  line-height:1.2;
  margin:42px 0 16px;
  letter-spacing:-.015em;
  color:var(--heading);
}
.article-content h3{
  font-size:23px;
  line-height:1.25;
  margin:32px 0 12px;
  color:var(--heading);
}
.article-content blockquote{
  margin:18px 0 22px;
  padding:12px 18px;
  border-left:3px solid #b9b2ae;
  background:#faf9f8;
  color:#3d3d3d;
  font-size:18px;
}
.article-content blockquote p:last-child{margin-bottom:0}
.article-content strong{font-weight:760}
.article-content ul,.article-content ol{margin:0 0 20px;padding-left:24px}
.article-content li{margin:0 0 8px}
.dialogue{margin-left:18px}
.infographic-card{
  margin:38px 0 20px;
  padding:24px;
  border:1px solid var(--line);
  background:#faf9f8;
  border-radius:var(--radius);
  text-align:center;
}
.infographic-card h2{margin-top:0}
.infographic-card img{
  display:block;
  width:360px;
  max-width:100%;
  margin:18px auto;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.download-link{font-weight:760}
.article-note{
  margin:28px 0;
  padding:18px 20px;
  border-left:4px solid var(--accent);
  background:#faf9f8;
}
@media(max-width:860px){
  .site-header{padding-top:22px}
  .logo-wrap{display:flex;align-items:center;min-height:88px;padding-left:14px}
  .layout{grid-template-columns:1fr;gap:18px}
  .sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:22px}
  .side-box{margin-bottom:0}
  .about{grid-column:1/-1}
  .article-body{grid-template-columns:160px minmax(0,1fr)}
  .thumb{width:160px}
}
@media(max-width:620px){
  body{font-size:16px}
  .site-header,.navrow,.layout,.footer-inner{padding-left:20px;padding-right:20px}
  .logo-wrap img{max-width:460px;width:100%;height:auto;display:block}
  .theme-title{font-size:25px}
  .article-preview h2{font-size:27px}
  .article-body{grid-template-columns:1fr}
  .thumb{width:100%;max-width:360px}
  .sidebar{display:block}
  .side-box{margin-bottom:28px}
  .footer-inner{grid-template-columns:1fr}
  .footer-links{justify-content:flex-start}
  .article-header h1{font-size:34px}
  .article-lead{font-size:18px}
  .article-content h2{font-size:26px}
}


/* LOT LIENS & MEDIAS */
.zoomable-image{
  cursor:zoom-in;
}
.media-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.72);
}
.media-modal.is-open{display:flex}
.media-modal-dialog{
  position:relative;
  width:min(820px,94vw);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:8px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  padding:18px;
}
.media-modal-close{
  position:absolute;
  right:9px;
  top:7px;
  z-index:2;
  border:0;
  background:#fff;
  color:#333;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  border-radius:50%;
  width:38px;
  height:38px;
}
.media-modal-image{
  display:block;
  max-width:100%;
  max-height:72vh;
  margin:0 auto;
}
.media-modal-caption{
  margin:12px 4px 2px;
  text-align:center;
  color:#555;
  font-size:14px;
}
.media-modal-video{
  width:100%;
  aspect-ratio:16/9;
  border:0;
  display:block;
}
body.media-modal-open{overflow:hidden}
@media(max-width:620px){
  .media-modal{padding:10px}
  .media-modal-dialog{padding:12px}
}


/* SOMMAIRE AUTOMATIQUE + RETOUR AU DEBUT */
.article-toc{
  max-width:800px;
  margin:0 0 24px;
  padding:16px 20px 14px;
  border-left:4px solid var(--accent);
  background:#faf9f8;
}
.article-toc-title{
  margin:0 0 8px;
  font-weight:780;
  color:var(--heading);
}
.article-toc ol{
  margin:0;
  padding-left:22px;
}
.article-toc li{
  margin:5px 0;
}
.article-toc a{
  color:var(--heading);
  text-decoration:none;
}
.article-toc a:hover,
.article-toc a:focus{
  color:var(--accent);
  text-decoration:underline;
}
.article-content h2{
  scroll-margin-top:24px;
}
.back-to-top{
  max-width:800px;
  margin:34px 0 0;
  text-align:right;
}
.back-to-top-link{
  display:inline-block;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#faf9f8;
  color:var(--heading);
  font-weight:700;
  text-decoration:none;
}
.back-to-top-link:hover,
.back-to-top-link:focus{
  border-color:var(--accent);
  color:var(--accent);
}
@media (prefers-reduced-motion: no-preference){
  html{scroll-behavior:smooth}
}
@media(max-width:620px){
  .article-toc{padding:14px 16px 12px}
  .back-to-top{text-align:left}
}
