/* Lissor : articles de blog (guides) et liste des guides.
   Chargé après lissor.css et lissor-checkout.css. Les blocs de l'éditeur gardent leur
   structure, seules les couleurs, la typographie et les espacements suivent la charte. */

body.lx-blog { --lx-read: #cdd4db; }

/* ---------- Tête d'article ---------- */
.lx-post, .lx-archive-head { max-width: 760px; margin: 0 auto; }
.lx-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .86rem; color: var(--lx-text-2); margin: 0 0 18px; }
.lx-crumbs a { color: var(--lx-text-2); text-decoration: none; }
.lx-crumbs a:hover { color: var(--lx-light); text-decoration: underline; }
.lx-crumbs a:last-child { color: var(--lx-amber); }
.lx-post-title { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1; margin: 0 0 clamp(22px, 3vw, 34px); }
.lx-post-cover { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: 12px; overflow: hidden; border: 1px solid var(--lx-line); }
.lx-post-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Corps de texte ---------- */
.lx-post-body { color: var(--lx-read); font-size: 1.06rem; line-height: 1.75; }
.lx-post-body > * { margin-top: 0; margin-bottom: 1.15em; }
.lx-post-body :where(h2, h3) { color: var(--lx-light); font-family: var(--lx-display); letter-spacing: -.01em; scroll-margin-top: 24px; text-wrap: balance; }
.lx-post-body h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.05; margin: 2.3em 0 .7em; padding-top: .9em; border-top: 1px solid var(--lx-line); }
.lx-post-body h3 { font-size: clamp(1.22rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.15; margin: 1.9em 0 .55em; }
.lx-post-body strong { color: var(--lx-light); font-weight: 600; }
.lx-post-body a { color: var(--lx-light); text-decoration-color: var(--lx-amber); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.lx-post-body a:hover { color: var(--lx-amber); }
.lx-post-body :where(ul, ol) { padding-left: 1.3em; }
.lx-post-body li { margin: 0 0 .5em; }
.lx-post-body li::marker { color: var(--lx-amber); font-weight: 600; }
.lx-post-body .has-small-font-size { font-size: .86rem !important; color: var(--lx-text-2); line-height: 1.6; }

/* ---------- Médias ---------- */
.lx-post-body figure { margin: 2em 0; }
.lx-post-body .wp-block-image img { border-radius: 10px; height: auto; }
.lx-post-body .wp-block-video video { display: block; width: auto; max-width: 100%; max-height: min(72vh, 560px); margin: 0 auto; border-radius: 12px; background: #000; border: 1px solid var(--lx-line); }
.lx-post-body figcaption, .lx-post-body .wp-element-caption { color: var(--lx-text-2); font-size: .86rem; line-height: 1.5; text-align: center; margin: 12px auto 0; max-width: 46em; }
.lx-post-body .wp-block-columns { display: flex; gap: 16px; margin: 2em 0; flex-wrap: nowrap !important; }
.lx-post-body .wp-block-column { flex: 1 1 0 !important; min-width: 0; }
.lx-post-body .wp-block-column figure { margin: 0; }
@media (max-width: 600px) { .lx-post-body .wp-block-columns { flex-wrap: wrap !important; } .lx-post-body .wp-block-column { flex-basis: 100% !important; } }

/* ---------- Tableaux ---------- */
.lx-post-body .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lx-post-body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; border: 1px solid var(--lx-line); }
.lx-post-body .wp-block-table thead { border-bottom: 0; }
.lx-post-body .wp-block-table th { background: var(--lx-ink-3); color: var(--lx-light); font-weight: 600; text-align: left; padding: 12px 14px; border: 1px solid var(--lx-line); }
.lx-post-body .wp-block-table td { padding: 12px 14px; border: 1px solid var(--lx-line); vertical-align: top; }
.lx-post-body .wp-block-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.lx-post-body .wp-block-table td:first-child { color: var(--lx-light); font-weight: 600; }
@media (max-width: 700px) { .lx-post-body table { min-width: 560px; } }

/* ---------- Encadrés écrits dans l'article (styles en ligne pris en charge par la charte) ---------- */
.lx-post-body .lx-meta { color: var(--lx-text-2); opacity: 1 !important; font-size: .88rem !important; }
.lx-post-body .lx-bref { background: var(--lx-ink-2); border: 1px solid var(--lx-line) !important; border-left: 3px solid var(--lx-amber) !important; border-radius: 12px; }
.lx-post-body .lx-bref > p:first-child { color: var(--lx-light); font-family: var(--lx-display); font-size: 1.25rem !important; letter-spacing: -.01em; }
.lx-post-body .lx-bref li { margin-bottom: .55em; }
.lx-post-body .lx-sommaire { background: var(--lx-ink-2) !important; border: 1px solid var(--lx-line); }
.lx-post-body .lx-sommaire > p:first-child { color: var(--lx-light); font-family: var(--lx-display); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.lx-post-body .lx-sommaire a { color: var(--lx-read); text-decoration: none; }
.lx-post-body .lx-sommaire a:hover { color: var(--lx-amber); }
/* .lx-compare sert aussi au curseur avant/après de l'accueil (lissor.css) : on neutralise son format 4:3. */
.lx-post-body .lx-compare { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; touch-action: auto; user-select: auto; }
.lx-post-body .lx-compare > div { background: var(--lx-ink-2); border: 1px solid var(--lx-line) !important; }
.lx-post-body .lx-compare > div:last-child { border-color: var(--lx-amber) !important; box-shadow: 0 0 0 1px var(--lx-amber) inset; }
.lx-post-body .lx-compare > div > p:first-child { color: var(--lx-light); font-family: var(--lx-display); font-size: 1.15rem; }
.lx-post-body .lx-compare > div:last-child > p:first-child { color: var(--lx-amber); }
.lx-post-body .lx-cta { background: linear-gradient(135deg, var(--lx-ink-3), var(--lx-paint)) !important; border: 1px solid var(--lx-line); }
.lx-post-body .lx-cta p:first-child { font-family: var(--lx-display); font-size: 1.5rem !important; letter-spacing: -.01em; }
.lx-post-body .lx-cta p { color: var(--lx-light) !important; }
.lx-post-body .lx-cta a { background: var(--lx-light) !important; color: var(--lx-ink) !important; border-radius: 6px !important; min-height: 50px; display: inline-flex !important; align-items: center; padding: 0 24px !important; box-shadow: 0 14px 40px -12px rgba(238,241,244,.45); }
.lx-post-body .lx-cta a:hover { background: #fff !important; }

/* ---------- Liste des guides ---------- */
.lx-archive-head { margin-bottom: clamp(28px, 4vw, 48px); }
.lx-archive-head .lx-lead { margin-top: -6px; }
.lx-cards { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.lx-card { border: 1px solid var(--lx-line); border-radius: 12px; overflow: hidden; background: var(--lx-ink-2); transition: border-color .2s; }
.lx-card:hover { border-color: var(--lx-text-2); }
.lx-card-link { display: grid; grid-template-columns: 240px 1fr; text-decoration: none; color: inherit; }
.lx-card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.lx-card-text { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.lx-card-text .lx-h3 { color: var(--lx-light); }
.lx-card-excerpt { color: var(--lx-text-2); font-size: .95rem; line-height: 1.6; }
.lx-card-more { color: var(--lx-amber); font-weight: 600; font-size: .92rem; margin-top: auto; }
@media (max-width: 640px) { .lx-card-link { grid-template-columns: 1fr; } }
.lx-blog .navigation.pagination { max-width: 760px; margin: 32px auto 0; }
.lx-blog .nav-links { display: flex; gap: 14px; color: var(--lx-text-2); }
.lx-blog .nav-links a { color: var(--lx-light); }
