/* =========================================================================
   litho-article.css — Template d'article premium (blog)
   Cloné de litho-fiche-pierre.css, re-thémé palette blog (vert/crème).
   Tout est scopé sous .single-post. Le base (max-width 752px, polices, h1/h2/p)
   reste défini dans litho-header.php ; ce fichier ajoute la couche premium.
   ========================================================================= */

:root{
  --lb-green:#2B4636; --lb-green-d:#22382B; --lb-green-l:#3C5C46;
  --lb-gold:#C49A4A; --lb-gold-d:#A87F33;
  --lb-cream:#FBF7EE; --lb-ink:#3D362C; --lb-muted:#8A8378;
  --lb-line:#E8DDCC; --lb-card:#fff; --lb-sage:#EDF1E7;
  --lb-serif:"Cormorant Garamond",Georgia,serif;
  --lb-sans:"Plus Jakarta Sans",ui-sans-serif,system-ui,sans-serif;
}

/* --- EYEBROW catégorie (au-dessus du H1) --- */
.single-post .litho-eyebrow{display:inline-block; font-family:var(--lb-sans); font-size:12px; letter-spacing:1.4px; text-transform:uppercase; font-weight:700; color:var(--lb-gold-d); text-decoration:none !important; margin:2px 0 6px; max-width:752px; margin-inline:auto; padding:0 22px; width:100%;}
.single-post .litho-eyebrow:hover{color:var(--lb-green);}

/* --- MÉTA (temps de lecture · date · auteur) --- */
.single-post .litho-meta{max-width:752px; margin:-8px auto 26px; padding:0 22px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-family:var(--lb-sans); font-size:13.5px; color:var(--lb-muted);}
.single-post .litho-meta span{display:inline-flex; align-items:center; gap:6px;}
.single-post .litho-meta span + span::before{content:"•"; color:var(--lb-line); margin-right:16px;}

/* --- BLOC « EN BREF » --- */
.single-post .litho-tldr{max-width:752px; margin:0 auto 30px; padding:20px 24px; background:var(--lb-cream); border:1px solid var(--lb-line); border-left:4px solid var(--lb-gold); border-radius:14px; box-sizing:border-box;}
.single-post .litho-tldr .t{font-family:var(--lb-sans); font-size:12px; letter-spacing:1.4px; text-transform:uppercase; font-weight:700; color:var(--lb-green); margin:0 0 12px;}
.single-post .litho-tldr ul{list-style:none; padding:0; margin:0;}
.single-post .litho-tldr li{position:relative; padding:.25em 0 .25em 1.6em; font-size:15.5px; line-height:1.55; color:var(--lb-ink);}
.single-post .litho-tldr li::before{content:"\2726"; position:absolute; left:0; top:.35em; color:var(--lb-gold); font-size:.85em;}

/* Conteneur des blocs hors flux texte (litho-tldr/meta) doit s'aligner au contenu : ils sont injectés
   dans .page-content donc déjà dans la colonne ; on neutralise le double-centrage. */
.single-post .page-content .litho-tldr,
.single-post .page-content .litho-meta,
.single-post .page-content .litho-eyebrow,
.single-post .page-content .litho-related,
.single-post .page-content .litho-pillars,
.single-post .page-content .litho-author{margin-left:0; margin-right:0; padding-left:0; padding-right:0; max-width:none; width:auto;}

/* --- H2 : icône de section (injectée par JS) --- */
.single-post .page-content h2{display:flex; align-items:center; gap:13px; scroll-margin-top:88px;}
.single-post .litho-ico{flex:none; width:44px; height:44px; border-radius:50%; background:var(--lb-sage); display:inline-flex; align-items:center; justify-content:center;}
.single-post .litho-ico svg{width:22px; height:22px; stroke:var(--lb-green); fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;}
.single-post .litho-ico.gold{background:#F6EEDD;} .single-post .litho-ico.gold svg{stroke:var(--lb-gold-d);}

/* --- listes du corps : puces dorées --- */
.single-post .page-content > ul{list-style:none; padding-left:0;}
.single-post .page-content > ul li{position:relative; padding:.2em 0 .2em 1.6em;}
.single-post .page-content > ul li::before{content:"\2726"; position:absolute; left:0; top:.45em; color:var(--lb-gold); font-size:.82em;}

/* --- FAQ accordéon (surcharge des cartes statiques de litho-header.php) --- */
.single-post .faq-item{padding:0 22px; overflow:hidden;}
.single-post .faq-item h3{margin:0; padding:16px 0; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px;}
.single-post .faq-item h3::after{content:"+"; color:var(--lb-gold-d); font-size:24px; font-weight:400; line-height:1; flex:none;}
.single-post .faq-item.open h3::after{content:"\2013";}
.single-post .faq-item p{max-height:0; opacity:0; margin:0; padding:0; overflow:hidden; transition:max-height .3s ease, opacity .25s ease, padding .3s ease;}
.single-post .faq-item.open p{max-height:600px; opacity:1; padding:0 0 16px;}

/* --- CTA inline (~50%) --- */
.single-post .litho-inline-cta{display:flex; align-items:center; gap:14px; background:var(--lb-sage); border:1px solid var(--lb-line); border-radius:14px; padding:16px 20px; margin:30px 0; font-size:15.5px; line-height:1.5;}
.single-post .litho-inline-cta .ic{flex:none; width:40px; height:40px; border-radius:50%; background:var(--lb-green); display:flex; align-items:center; justify-content:center;}
.single-post .litho-inline-cta .ic svg{width:20px; height:20px; stroke:#fff; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}
.single-post .litho-inline-cta a{font-weight:700;}

/* --- ARTICLES LIÉS --- */
.single-post .litho-related{max-width:752px; margin:48px auto 0; padding:0 22px; box-sizing:border-box;}
.single-post .litho-related > .t{font-family:var(--lb-serif); font-size:26px; font-weight:600; color:var(--lb-green); margin:0 0 18px;}
.single-post .litho-related .grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.single-post .litho-related .card{background:var(--lb-card); border:1px solid var(--lb-line); border-radius:14px; overflow:hidden; display:block; text-decoration:none !important; transition:transform .15s, box-shadow .15s;}
.single-post .litho-related .card:hover{transform:translateY(-4px); box-shadow:0 16px 30px -16px rgba(43,70,54,.4);}
.single-post .litho-related .card .thumb{height:120px; background:var(--lb-sage) center/cover no-repeat;}
.single-post .litho-related .card .nm{font-family:var(--lb-sans); font-size:14.5px; font-weight:600; color:var(--lb-ink); line-height:1.35; padding:12px 14px 16px;}

/* --- PILIERS --- */
.single-post .litho-pillars{max-width:752px; margin:32px auto 0; padding:24px 22px 0; box-sizing:border-box; border-top:1px solid var(--lb-line); display:flex; gap:12px; flex-wrap:wrap;}
.single-post .litho-pillars a{background:var(--lb-card); border:1px solid var(--lb-line); padding:10px 18px; border-radius:30px; font-family:var(--lb-sans); font-size:14px; font-weight:600; color:var(--lb-green); text-decoration:none !important;}
.single-post .litho-pillars a:hover{border-color:var(--lb-gold); color:var(--lb-gold-d);}

/* --- AUTEUR (E-E-A-T) --- */
.single-post .litho-author{max-width:752px; margin:28px auto 60px; padding:18px 22px; box-sizing:border-box; display:flex; gap:16px; align-items:center; background:var(--lb-sage); border-radius:16px;}
.single-post .litho-author .av{flex:none; width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg,var(--lb-green-l),var(--lb-gold)); display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--lb-serif); font-size:22px; font-weight:600;}
.single-post .litho-author .m{font-family:var(--lb-sans); font-size:13.5px; color:#52483d; line-height:1.5;}
.single-post .litho-author .m b{color:var(--lb-ink);}

/* --- BARRE DE PROGRESSION + SOMMAIRE (injectés par JS) --- */
#litho-progress{position:fixed; top:0; left:0; height:4px; width:0; z-index:9999; background:linear-gradient(90deg,var(--lb-green),var(--lb-green-l),var(--lb-gold));}
.litho-toc{position:fixed; top:96px; right:24px; width:208px; z-index:50; font-family:var(--lb-sans); font-size:13.5px; background:rgba(255,255,255,.74); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); border:1px solid var(--lb-line); border-radius:16px; padding:16px 14px;}
.litho-toc .t{text-transform:uppercase; letter-spacing:1.2px; font-size:10.5px; color:var(--lb-muted); margin-bottom:10px;}
.litho-toc a{display:block; padding:6px 0 6px 13px; border-left:2px solid var(--lb-line); color:#52483d; text-decoration:none; transition:all .2s; line-height:1.25;}
.litho-toc a:hover{color:var(--lb-green);}
.litho-toc a.active{border-left:3px solid var(--lb-green); color:var(--lb-green); font-weight:700; padding-left:15px;}
@media(max-width:1200px){ .litho-toc{display:none;} }

/* --- REVEAL AU SCROLL (gate par body.js-reveal => fallback sans JS = tout visible) --- */
/* On NE cache jamais l'image à la une (.litho-featured) pour préserver le LCP. */
body.js-reveal .single-post .page-content > *:not(.litho-featured){opacity:0; transform:translateY(14px);}
body.js-reveal .single-post .page-content > *.in{opacity:1; transform:none; transition:opacity .5s ease, transform .5s ease;}
@media(prefers-reduced-motion:reduce){
  body.js-reveal .single-post .page-content > *{opacity:1; transform:none;}
}

/* --- COMMENTAIRES (rendu thème, hors .page-content) : contraints à la colonne + responsive --- */
.single-post .comments-area{max-width:752px; width:auto; margin:0 auto 64px; padding:0 22px; box-sizing:border-box; font-family:var(--lb-sans); color:var(--lb-ink);}
.single-post .comments-area .comment-reply-title,
.single-post .comments-area #reply-title{font-family:var(--lb-serif); font-size:26px; font-weight:600; color:var(--lb-green); margin:0 0 6px;}
.single-post .comments-area .comment-notes,
.single-post .comments-area .logged-in-as{font-size:13.5px; color:var(--lb-muted); margin:0 0 18px;}
.single-post .comment-form{display:block;}
.single-post .comment-form p{margin:0 0 14px;}
.single-post .comment-form label{display:block; font-size:13.5px; font-weight:600; color:var(--lb-ink); margin:0 0 6px;}
.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"],
.single-post .comment-form input[type="url"],
.single-post .comment-form textarea{
  width:100%; max-width:100%; box-sizing:border-box; display:block;
  background:var(--lb-card); border:1px solid var(--lb-line); border-radius:12px;
  padding:12px 14px; font-family:var(--lb-sans); font-size:15px; color:var(--lb-ink);
}
.single-post .comment-form textarea{min-height:130px; resize:vertical; line-height:1.6;}
.single-post .comment-form input:focus,
.single-post .comment-form textarea:focus{outline:none; border-color:var(--lb-gold); box-shadow:0 0 0 3px rgba(196,154,74,.15);}
/* champs auteur/email/url sur une grille fluide en desktop, empilés en mobile */
.single-post .comment-form-author,
.single-post .comment-form-email,
.single-post .comment-form-url{display:inline-block; width:100%;}
@media(min-width:560px){
  .single-post .comment-form-author,
  .single-post .comment-form-email{width:calc(50% - 7px);}
  .single-post .comment-form-author{margin-right:14px;}
}
.single-post .comment-form-cookies-consent{display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--lb-muted);}
.single-post .comment-form-cookies-consent input{width:auto; margin-top:3px;}
.single-post .comment-form-cookies-consent label{display:inline; font-weight:400; margin:0;}
.single-post .comments-area .form-submit{margin:6px 0 0;}
.single-post .comments-area .submit,
.single-post .comments-area input[type="submit"]{
  -webkit-appearance:none; appearance:none; cursor:pointer; width:auto; display:inline-block;
  background:var(--lb-green); color:#fff; border:none; border-radius:30px;
  padding:13px 30px; font-family:var(--lb-sans); font-size:15px; font-weight:700;
}
.single-post .comments-area .submit:hover,
.single-post .comments-area input[type="submit"]:hover{background:var(--lb-green-l);}
.single-post .commentlist,
.single-post .comment-list{list-style:none; padding:0; margin:0 0 28px;}
.single-post .comment-list .comment-body{background:var(--lb-card); border:1px solid var(--lb-line); border-radius:14px; padding:16px 18px; margin-bottom:14px;}
@media(max-width:640px){
  .single-post .comments-area{padding:0 18px;}
  .single-post .comments-area .comment-reply-title,
  .single-post .comments-area #reply-title{font-size:23px;}
  .single-post .comment-form-author{margin-right:0;}
  .single-post .comments-area .submit,
  .single-post .comments-area input[type="submit"]{width:100%;}
}

/* --- MOBILE --- */
@media(max-width:640px){
  .single-post .litho-related .grid{grid-template-columns:1fr;}
  .single-post .page-content h2{scroll-margin-top:72px;}
  .single-post .faq-item h3{padding:14px 0;}
}
