/*
 * Fabien recommande : page Articles, pages catégorie, recherche et article.
 * Repris de maquettes/c-atelier/pages.css (même noms de classes), branché sur
 * les alias de theme.css (--sand, --plum, --mustard...) et sur les classes
 * que WordPress ajoute aux blocs (wp-block-*). Chargé seulement sur ces pages
 * (inc/assets.php) et dans l'éditeur (add_editor_style).
 */

/* Fil d'Ariane (bloc core/breadcrumbs, séparateur dessiné par la maquette) */
.crumbs { font-family: var(--f-mono); font-size: .78rem; font-weight: 700; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.wp-block-breadcrumbs.crumbs li:not(:last-child)::after { content: none; }
.crumbs li + li::before { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--plum); border-right: 2px solid var(--plum); transform: rotate(45deg); }
.crumbs a { text-underline-offset: 3px; }
.crumbs [aria-current] { opacity: .75; }

/* Pastilles et dates */
.kicker a { text-decoration: none; }
.chips .acard__vid, .acard__tags .acard__vid { display: inline-flex; align-items: center; gap: .3rem; align-self: auto; }
.chips .acard__vid::before, .acard__tags .acard__vid::before { content: ""; width: .8rem; height: .8rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-family: var(--f-mono); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.meta time { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chip { align-self: flex-start; width: fit-content; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--plum); padding: .1rem .5rem; border-radius: 6px; background: var(--sky); line-height: 1.5; }
.chip--vid { background: var(--plum); color: var(--sand); }
.chip--fe { background: var(--mustard); }
.chip--compta { background: var(--paper); }
.chip--lmnp { background: var(--sand-2); }
.chapo { font-size: 1.15rem; font-weight: 500; max-width: 46rem; }
.chapo p { margin: 0; }

/* ===================== PAGE ARTICLES ET CATÉGORIES ===================== */
.bloc--ahero { padding-block: 2.6rem 3rem; overflow: clip; }
.ahero__in { display: grid; gap: 2.6rem; align-items: start; }
.ahero__txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.ahero__txt > * { max-width: 100%; }
.ahero__txt .crumbs { margin-bottom: 1.4rem !important; }
.ahero__txt :is(h1, .wp-block-query-title) { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.6rem); }
.ahero__in--seul .ahero__txt :is(h1, .wp-block-query-title) { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); max-width: 56rem; }

/* Recherche : pastille avec bouton moutarde */
.ahero__in .ahero__txt .wp-block-search { width: 100%; max-width: 34rem; margin-top: .6rem; }
.ahero__txt .wp-block-search .wp-block-search__inside-wrapper { display: flex; gap: 0; padding: 0; background: var(--paper); border: var(--line) solid var(--plum); border-radius: 999px; box-shadow: 4px 4px 0 var(--plum); overflow: hidden; }
.ahero__txt .wp-block-search .wp-block-search__input { flex: 1; min-width: 0; min-height: 56px; padding: .6rem 1.2rem; border: 0; border-radius: 0; background: transparent; }
.ahero__txt .wp-block-search .wp-block-search__input::placeholder { color: var(--plum-soft); opacity: 1; }
.ahero__txt .wp-block-search .wp-block-search__input:focus { outline: none; }
.ahero__txt .wp-block-search .wp-block-search__inside-wrapper:focus-within { box-shadow: 6px 6px 0 var(--plum); outline: 3px solid var(--plum); outline-offset: 3px; }
.ahero__txt .wp-block-search .wp-block-search__button { flex: none; display: grid; place-items: center; width: 56px; min-height: 56px; margin: 0; padding: 0; border: 0; border-left: var(--line) solid var(--plum); border-radius: 0; background: var(--mustard); color: var(--plum); box-shadow: none; cursor: pointer; }
.ahero__txt .wp-block-search .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }

/* À la une : la feuille du dessus */
.feat-liste { margin: 0; padding: 0; list-style: none; }
.feat { position: relative; display: flex; flex-direction: column; gap: .9rem; margin-top: .6rem; padding: 1rem 1rem 1.3rem; background: var(--paper); border: var(--line) solid var(--plum); border-radius: 18px; box-shadow: 8px 8px 0 var(--plum); transform: rotate(1.2deg); }
.feat::before { content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: var(--mustard); border: 2px solid var(--plum); transform: rotate(-3deg); z-index: 2; }
.feat .feat__label { position: absolute; z-index: 3; top: -1.1rem; right: 1rem; margin: 0; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--plum); color: var(--sand); padding: .2rem .6rem; border-radius: 6px; transform: rotate(3deg); }
.feat__thumb { border: 2px solid var(--plum); border-radius: 10px; }
.feat:hover .vcard__thumb img { transform: scale(1.04); }
.feat .wp-block-post-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.feat .wp-block-post-title a { text-decoration: none; }
.feat .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feat .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.feat .feat__ex { font-weight: 500; }
.feat .feat__ex p { margin: 0; }
.feat .vcard__cat a, .feat .wp-block-cq-statut-test { position: relative; z-index: 2; }
.feat .vcard__thumb .play { z-index: 2; }

/* Onglets de classeur (vrais liens vers les pages thème) */
.bloc--tabs { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-h)); z-index: 40; padding: 0; background: var(--sand); border-bottom: var(--line) solid var(--plum); }
.tabs { position: relative; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .9rem 0 0; scroll-padding-inline: var(--wp--preset--spacing--gouttiere); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: .5rem 1rem .6rem; border: var(--line) solid var(--plum); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--sand-2); font-weight: 800; font-size: .92rem; text-decoration: none; white-space: nowrap; transform: translateY(6px); transition: transform .25s var(--bounce), background-color .2s ease; }
.tab:hover { transform: translateY(2px); background: var(--paper); }
.tab[data-c="facturation"] { background: var(--sky); }
.tab[data-c="facture-electronique"] { background: var(--mustard); }
.tab[data-c="lmnp"] { background: #E9C9D9; }
.tab[aria-current] { transform: translateY(0); background: var(--paper); }
.tabs__sheet { position: absolute; z-index: 0; left: 0; bottom: 0; height: 8px; width: 80px; background: var(--paper); border: 2px solid var(--plum); border-bottom: 0; border-radius: 4px 4px 0 0; display: none; }
.js .tabs__sheet { display: block; }

/* Liste des articles : cartes (même carte que l'accueil, complétée) */
.bloc--alist { padding-top: 3rem; }
.alist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.4rem; margin-bottom: 2.6rem !important; }
.alist__head h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem); }
.acard .acard__thumb { margin: -.4rem -.3rem .2rem; }
.acard__thumb .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.acard__thumb .play svg { width: 24px; height: 24px; }
.acard .acard__ex { font-size: .98rem; }
.acard .acard__ex p { margin: 0; }
.acard .meta { margin-top: auto !important; padding-top: .4rem; border-top: 2px dashed var(--plum); }
.acard .acard__tags { align-items: center; }
.acard .acard__tags .status { transform: none; }
@media (min-width: 720px) and (max-width: 1023px) { .bloc--alist .articles, .bloc--more .articles { grid-template-columns: repeat(2, 1fr); } }

/* Pagination en vrais liens */
.pager { margin-top: 3.2rem !important; gap: .6rem; align-items: center; }
.pager a, .pager .page-numbers, .pager .wp-block-query-pagination-numbers > span { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 .9rem; border: var(--line) solid var(--plum); border-radius: 999px; background: var(--paper); font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--plum); }
.pager a:hover { background: var(--mustard); }
.pager .page-numbers.current { background: var(--plum); color: var(--sand); box-shadow: 3px 3px 0 var(--mustard); }
.pager .page-numbers.dots { border: 0; box-shadow: none; background: none; min-width: 0; padding: 0 .2rem; }
.pager .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Commencez par les guides */
.bloc--guides { padding-block: 2.6rem 0; }
.guides__h { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin-bottom: 1.4rem !important; }
.guides { display: grid; gap: .9rem; }
@media (min-width: 720px) { .guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guides { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }

/* Les thèmes (cartes vers les pages catégorie) */
.bloc--themes { background: var(--plum); color: var(--sand); }
.bloc--themes :focus-visible { outline-color: var(--mustard); }
.themes { display: grid; gap: 1.1rem; padding: 0; margin: 0; list-style: none; }
.themes li { display: flex; margin: 0; }
.theme { position: relative; display: flex; flex-direction: column; flex: 1; gap: .5rem; min-height: 9.5rem; padding: 1.2rem 1.2rem 1.1rem; border: var(--line) solid var(--sand); border-radius: 18px; text-decoration: none; color: var(--plum); background: var(--paper); box-shadow: 5px 5px 0 var(--mustard); transition: transform .25s var(--bounce), box-shadow .2s ease; overflow: hidden; }
.themes li:nth-child(4n+1) .theme { background: var(--sky); } .themes li:nth-child(4n+2) .theme { background: var(--mustard); box-shadow: 5px 5px 0 var(--sky); } .themes li:nth-child(4n+3) .theme { background: var(--paper); } .themes li:nth-child(4n) .theme { background: #E9C9D9; }
.theme b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.theme span { font-weight: 600; font-size: .98rem; max-width: 22rem; }
.theme .theme__n { margin-top: auto; padding-right: 3rem; font-family: var(--f-mono); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.theme i { position: absolute; right: 1rem; bottom: .9rem; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--plum); background: var(--paper); display: grid; place-items: center; transition: transform .3s var(--bounce); }
.theme i svg { width: 18px; height: 18px; }
.theme:hover { transform: rotate(-1.2deg) translateY(-4px); box-shadow: 9px 9px 0 var(--mustard); }
.theme:hover i { transform: rotate(-45deg) scale(1.1); }

/* Cartes de maillage et de guides (liens étirés sur toute la carte) */
.links { display: grid; gap: 1rem; }
.lcard { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.1rem 1rem; border: var(--line) solid var(--plum); border-radius: 16px; background: var(--paper); box-shadow: 4px 4px 0 var(--plum); transition: transform .25s var(--bounce), box-shadow .2s ease; }
.lcard--argent { background: var(--mustard); }
.lcard p { margin: 0; }
.lcard .lcard__titre { font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.lcard .lcard__titre a { text-decoration: none; }
.lcard .lcard__titre a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lcard .lcard__titre a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lcard .lcard__txt { font-size: .95rem; font-weight: 500; }
.lcard:hover { transform: translateX(6px) rotate(-.6deg); box-shadow: 7px 7px 0 var(--plum); }
.lcard:has(a:focus-visible) { outline: 3px solid var(--plum); outline-offset: 3px; }
.lcard a:focus-visible { outline: none; }

/* ===================== ARTICLE ===================== */
.progress { position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; height: 5px; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--plum); transform-origin: 0 50%; transform: scaleX(0); }

.bloc--phead { padding-block: 2.4rem 2.6rem; overflow: clip; }
.phead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; max-width: none;
  grid-template-areas: "crumbs" "chips" "title" "video" "lead" "byline" "status" "disclo"; }
.phead > .crumbs { grid-area: crumbs; }
.phead > .chips { grid-area: chips; }
.phead > .wp-block-post-title { grid-area: title; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem); max-width: 60rem; }
.phead > .chapo { grid-area: lead; }
.phead > .vplayer { grid-area: video; margin: .4rem 0 .6rem; }
.phead > .byline { grid-area: byline; }
.phead > .statusline { grid-area: status; }
.phead > .mention-aff { grid-area: disclo; }
@media (min-width: 1024px) {
  .phead { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 3.5rem; row-gap: 1rem; align-items: start;
    grid-template-areas: "crumbs video" "chips video" "title video" "lead video" "byline video" "status status" "disclo disclo"; }
  .phead > .wp-block-post-title { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.6rem); }
  .phead > .vplayer { align-self: center; margin: 0; transform: rotate(1deg); }
  .phead > .statusline { margin-top: .6rem; }
}
.phead .chapo { max-width: 46rem; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.byline__who { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; text-decoration: none; }
.byline__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: var(--line) solid var(--plum); box-shadow: 2px 2px 0 var(--plum); background: var(--paper); }
.byline__who small { display: block; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; }
.byline .meta { gap: .3rem .8rem; margin: 0; }
.statusline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.statusline p { margin: 0; }
.statusline .status { margin: 0; }
.statusline__lien a { font-weight: 700; font-size: .92rem; text-underline-offset: 3px; }

/* Lecteur vidéo lu sur place (bloc cq/video, variante « lecteur ») */
.vplayer { position: relative; margin: 0; background: var(--paper); border: var(--line) solid var(--plum); border-radius: 18px; box-shadow: 9px 9px 0 var(--plum); overflow: hidden; }
.vplayer__view { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--plum); overflow: hidden; }
.vplayer__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplayer__view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer__fb { position: absolute; inset: 0; padding: 1.2rem; font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); line-height: 1; color: var(--sand); }
.vplayer .screen__play .play { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
.vplayer .screen__play .play svg { width: 36px; height: 36px; }
.vplayer figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .8rem 1rem; border-top: var(--line) solid var(--plum); background: var(--mustard); font-weight: 700; font-size: .95rem; }
.vplayer figcaption a { text-underline-offset: 3px; font-weight: 800; }
.vplayer .screen__play:focus-visible { outline: 4px solid var(--mustard); outline-offset: -8px; }
.vplayer.is-playing { transform: none !important; }
@media (max-width: 719px) { .vplayer { box-shadow: 5px 5px 0 var(--plum); } }

/* Mention d'affiliation (dessin « disclo ») */
.mention-aff { display: flex; gap: .9rem; align-items: flex-start; max-width: none; padding: 1rem 1.1rem; background: var(--paper); border: 2px dashed var(--plum); border-radius: 14px; font-size: .95rem; font-weight: 500; }
.mention-aff svg { flex: none; width: 26px; height: 26px; margin-top: .1rem; }
.mention-aff a { font-weight: 800; text-underline-offset: 3px; }
.mention-aff__qlynk { display: block; margin-top: .4rem; font-family: var(--f-mono); font-size: .78rem; }

/* Mise en page lecture + colonne */
.bloc--post { padding-block: 1rem 4rem; }
.layout { display: grid; gap: 2.6rem; }
.aside { display: flex; flex-direction: column; gap: 1.4rem; }
.cq-sommaire { display: flex; flex-direction: column; gap: 1.4rem; }
.toc { background: var(--paper); border: var(--line) solid var(--plum); border-radius: 16px; box-shadow: 4px 4px 0 var(--plum); }
.toc summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 54px; padding: .8rem 1rem; font-family: var(--f-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--mustard); border: 2px solid var(--plum); flex: none; }
.toc summary i::before, .toc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 3px; background: var(--plum); transform: translate(-50%, -50%); transition: transform .25s ease; }
.toc summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.toc[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.toc ol { counter-reset: t; padding: 0 1rem 1rem; margin: 0; list-style: none; display: flex; flex-direction: column; gap: .1rem; }
.toc li { counter-increment: t; margin: 0; }
.toc a { display: grid; grid-template-columns: 2rem 1fr; gap: .4rem; padding: .45rem .3rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: .75rem; font-weight: 700; padding-top: .15rem; }
.toc a:hover { background: var(--sand); }
.toc a.is-active { background: var(--plum); color: var(--sand); }

/* Fil conducteur : la feuille qui s'écrit au fil de la lecture (décor) */
.readsheet { display: none; }
.cq-carte-partenaire { display: contents; }
.cta-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem; background: var(--sky); border: var(--line) solid var(--plum); border-radius: 16px; box-shadow: 5px 5px 0 var(--plum); transform: rotate(-.8deg); }
.cta-card p { margin: 0; font-weight: 600; font-size: .95rem; }
.cta-card .cta-card__name { font-family: var(--f-display); font-size: 2rem; line-height: 1; font-weight: 400; }
.cta-card .btn { width: 100%; box-sizing: border-box; }
.cta-card small { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; }
.ql-note { display: block; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; }
.ql-note a { text-underline-offset: 2px; }
@media (max-width: 1023px) { .aside .cta-card { display: none; } }

/* Texte de l'article (bloc Contenu de l'article) */
.prose { min-width: 0; max-width: 46rem; display: flex; flex-direction: column; gap: 3rem; }
.prose .cq-corps { display: flex; flex-direction: column; gap: 1.2rem; font-size: 1.12rem; line-height: 1.7; }
body .prose .cq-corps > * { margin-block: 0; }
body .prose .cq-corps > h2 { margin-top: 2.2rem; font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); scroll-margin-top: calc(var(--header-h) + 24px); }
body .prose .cq-corps > h2:first-child { margin-top: 0; }
.prose .cq-corps h3 { font-size: 1.35rem; margin-top: .6rem; }
.prose .cq-corps p a:not(.wp-block-button__link), .prose .cq-corps li a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--plum); box-shadow: inset 0 0 0 var(--mustard); transition: box-shadow .2s ease; }
.prose .cq-corps p a:not(.wp-block-button__link):hover, .prose .cq-corps li a:hover { box-shadow: inset 0 -.5em 0 var(--mustard); }
.prose .cq-corps strong { font-weight: 800; }
.prose .cq-corps ul.wp-block-list, .prose .cq-corps ol.wp-block-list { padding-left: 1.4rem; list-style: revert; }
.prose .cq-corps li + li { margin-top: .4rem; }
.prose .cq-corps ul.is-style-puces { display: flex; flex-direction: column; gap: .55rem; padding: 0; list-style: none; }
.prose .cq-corps ul.is-style-puces li { position: relative; margin: 0; padding-left: 1.8rem; }
.prose .cq-corps ul.is-style-puces li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 12px; height: 12px; background: var(--mustard); border: 2px solid var(--plum); border-radius: 3px; transform: rotate(8deg); }

/* En bref */
.short { position: relative; padding: 1.5rem 1.3rem 1.3rem; background: var(--paper); border: var(--line) solid var(--plum); border-radius: 18px; box-shadow: var(--shadow); }
.short .short__lbl { position: absolute; top: -.95rem; left: 1.1rem; margin: 0; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--mustard); border: 2px solid var(--plum); padding: .15rem .6rem; border-radius: 6px; transform: rotate(-2deg); line-height: 1.5; }
.short p { margin: 0; font-size: 1.12rem; font-weight: 600; }
.prose .short p + p { margin-top: .7rem; font-weight: 500; }
.prose .short .short__date { margin-top: .9rem; font-family: var(--f-mono); font-size: .76rem; font-weight: 700; }

/* Verdict */
.verdict { display: grid; gap: 1.1rem; }
.vcol { position: relative; padding: 1.3rem 1.2rem; border: var(--line) solid var(--plum); border-radius: 18px; box-shadow: var(--shadow); }
.vcol--yes { background: var(--sky); transform: rotate(-.6deg); }
.vcol--no { background: var(--paper); transform: rotate(.6deg); }
.prose .vcol h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; margin: 0 0 .8rem; }
.vcol h3::before { content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--plum); background: var(--mustard) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%233B1F3F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.vcol--no h3::before { background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23F5E6DA' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.prose .cq-corps .vcol ul { display: flex; flex-direction: column; gap: .6rem; padding: 0; list-style: none; font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.vcol li { position: relative; margin: 0; padding-left: 1.2rem; }
.vcol li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--plum); }
.verdict__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; padding: 1rem 1.2rem; background: var(--mustard); border: var(--line) solid var(--plum); border-radius: 18px; box-shadow: var(--shadow); }
.verdict__cta > p:first-child { margin: 0; font-weight: 700; font-size: 1rem; flex: 1 1 16rem; line-height: 1.4; }
.verdict__cta .wp-block-buttons { margin: 0; }
.verdict__cta .wp-block-button__link { box-shadow: 4px 4px 0 var(--plum); background: var(--paper); }
.verdict__cta .aff-note, .verdict__cta .ql-note { margin: 0; }
.aff-note { font-family: var(--f-mono); font-size: .74rem; font-weight: 700; }
.verdict__cta .ql-note { flex-basis: 100%; }

/* Capture légendée */
.prose .cq-corps figure.cq-capture { margin: .4rem 0; background: var(--paper); border: var(--line) solid var(--plum); border-radius: 14px; box-shadow: 5px 5px 0 var(--plum); overflow: hidden; }
.cq-capture img { display: block; width: 100%; height: auto; }
.cq-capture figcaption { margin: 0; padding: .7rem 1rem; border-top: 2px solid var(--plum); font-size: .9rem; font-weight: 600; line-height: 1.5; text-align: left; }
.cq-capture figcaption em { display: block; font-family: var(--f-mono); font-style: normal; font-size: .76rem; font-weight: 700; }

/* Tableau de prix */
.prose .cq-corps figure.cq-prix { margin: 0; overflow-x: auto; border: var(--line) solid var(--plum); border-radius: 16px; box-shadow: var(--shadow); background: var(--paper); }
.cq-prix table { width: 100%; table-layout: auto; border-collapse: collapse; border: 0; font-size: 1rem; line-height: 1.4; }
.cq-prix th, .cq-prix td { padding: .8rem .9rem; text-align: left; vertical-align: top; border: 0; border-bottom: 2px solid rgba(59, 31, 63, .18); }
.cq-prix thead th { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; background: var(--plum); color: var(--sand); border-bottom: 0; }
.cq-prix tbody td:first-child { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.02rem, .9rem + .45vw, 1.25rem); line-height: 1.2; hyphens: manual; }
.cq-prix td strong { font-weight: 800; }
.cq-prix--gratuit tbody tr:first-child { background: var(--sky); }
.cq-prix tbody tr:last-child td { border-bottom: 0; }
.cq-prix figcaption { margin: 0; padding: .8rem 1rem; border-top: 2px dashed var(--plum); font-family: var(--f-mono); font-size: .76rem; font-weight: 700; line-height: 1.5; text-align: left; }
.cq-prix { scrollbar-width: thin; }

/* Défauts numérotés */
.prose .cq-corps ol.flaws { display: flex; flex-direction: column; gap: 1rem; counter-reset: f; padding: 0; list-style: none; }
.flaws > li { position: relative; counter-increment: f; margin: 0; min-height: 5.2rem; padding: 1rem 1.1rem 1rem 5.5rem; background: var(--paper); border: var(--line) solid var(--plum); border-radius: 16px; box-shadow: 4px 4px 0 var(--plum); font-size: 1.02rem; line-height: 1.5; }
.flaws > li::before { content: counter(f); position: absolute; left: 1.1rem; top: 1rem; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--plum); color: var(--mustard); font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.flaws > li strong { display: block; font-size: 1.08rem; margin-bottom: .2rem; }

.notest { padding: 1.2rem; background: var(--sand-2); border: var(--line) dashed var(--plum); border-radius: 16px; }
.prose .notest h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
.notest p { margin: 0; font-size: 1rem; }

.sources { padding: 1.1rem 1.2rem; border-top: 2px dashed var(--plum); border-bottom: 2px dashed var(--plum); }
.prose .cq-corps .sources .sources__h { font-family: var(--f-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .7rem; }
.prose .cq-corps .sources ol { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; list-style: decimal; padding-left: 1.3rem; line-height: 1.5; }
.prose .faq { max-width: none; }
.prose .faq p { font-size: 1.02rem; }

/* Encadré auteur */
.authorbox { display: grid; gap: 1.2rem; align-items: center; padding: 1.4rem 1.3rem; background: var(--sky); border: var(--line) solid var(--plum); border-radius: 20px; box-shadow: var(--shadow); }
.authorbox .authorbox__photo { margin: 0; }
.authorbox__photo img { width: 112px !important; height: 112px !important; border-radius: 14px; object-fit: cover; border: var(--line) solid var(--plum); box-shadow: 4px 4px 0 var(--plum); transform: rotate(-3deg); background: var(--paper); }
.authorbox__txt { display: flex; flex-direction: column; gap: .6rem; }
.authorbox__txt .authorbox__h { font-size: 1.6rem; margin: 0; }
.authorbox__txt p { margin: 0; font-size: 1rem; line-height: 1.55; }
.authorbox__txt .authorbox__side { font-size: .92rem; }
.authorbox__side a { font-weight: 700; text-underline-offset: 3px; }
.authorbox__links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-weight: 800; }
.authorbox__links a { text-underline-offset: 3px; }

/* À lire aussi (même thème) : masqué s'il n'y a rien à montrer */
.bloc--more { background: var(--sand-2); border-top: var(--line) solid var(--plum); }
.bloc--more:not(:has(.wp-block-post-template)) { display: none; }

/* Barre mobile : rappel du lien partenaire (pas une fenêtre surgissante) */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: .8rem; padding: .7rem var(--wp--preset--spacing--gouttiere) calc(.7rem + env(safe-area-inset-bottom)); background: var(--plum); color: var(--sand); border-top: var(--line) solid var(--mustard); transform: translateY(110%); transition: transform .35s var(--bounce); }
.mbar.is-on { transform: translateY(0); }
.mbar p { flex: 1; min-width: 0; margin: 0; font-size: .85rem; font-weight: 700; line-height: 1.3; }
.mbar p small { display: block; font-family: var(--f-mono); font-size: .68rem; opacity: .85; }
.mbar .btn { box-sizing: border-box; flex: none; min-height: 44px; padding: .4rem 1rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--sand); border-color: var(--mustard); }
.mbar :focus-visible { outline-color: var(--mustard); }
@media (max-width: 719px) { body:has(.mbar) { padding-bottom: 76px; } }

/* La feuille de lecture (ordinateur) : pleine sans JavaScript, vide puis écrite avec */
.rs { position: absolute; left: 50%; top: 10px; width: 150px; height: 190px; margin-left: -75px; transform: rotate(-4deg); filter: drop-shadow(4px 5px 0 var(--plum)); }
.rs__in { position: absolute; inset: 0; background: var(--paper); padding: 22px 18px; display: flex; flex-direction: column; gap: 11px; clip-path: polygon(0 1%, 100% 0, 99% 100%, 1% 99%); }
.rs__in i { display: block; height: 5px; border-radius: 3px; background: var(--plum); transform-origin: 0 50%; }
.cq-anime .rs__in i { transform: scaleX(0); }
.rs__in i:nth-child(odd) { width: 100%; } .rs__in i:nth-child(even) { width: 78%; }
.rs__stamp { position: absolute; right: -16px; bottom: 26px; display: none; font-family: var(--f-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; background: var(--mustard); border: 2px solid var(--plum); padding: .1rem .5rem; transform: rotate(-12deg) scale(0); }
.cq-anime .rs__stamp { display: block; }
.rs__fold { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; background: var(--sand-2); border-top: 2px solid var(--plum); border-left: 2px solid var(--plum); clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* Tablette */
@media (min-width: 720px) {
  .themes { grid-template-columns: repeat(2, 1fr); }
  .verdict { grid-template-columns: 1fr 1fr; }
  .links { grid-template-columns: 1fr 1fr; }
  .authorbox { grid-template-columns: auto 1fr; gap: 1.6rem; }
}

/* Ordinateur */
@media (min-width: 1024px) {
  .ahero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4.5rem; align-items: center; }
  .ahero__in--seul { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(4, 1fr); }
  .tabs { gap: .45rem; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; }
  .aside { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-h) + 24px); order: 2; }
  .toc summary { pointer-events: none; }
  .toc summary i { display: none; }
  .toc a { padding: .32rem .3rem; font-size: .9rem; }
  .readsheet { display: block; position: relative; height: 160px; }
  .rs { width: 120px; height: 150px; margin-left: -60px; }
  .rs__in { padding: 18px 15px; gap: 9px; }
  .mbar { display: none; }
}
@media (min-width: 1280px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .readsheet { display: none; }
}

@media (max-width: 719px) {
  .bloc--phead { padding-top: 1.8rem; }
  .flaws > li { min-height: 4.6rem; padding-left: 4.4rem; }
  .flaws > li::before { width: 2.6rem; height: 2.6rem; font-size: 1.3rem; }
}

/* Mouvement réduit : tout visible, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  .acard, .theme, .lcard, .tab, .vcard__thumb img, .mbar { transition: none; }
  .progress { display: none; }
}

/* Fil d'Ariane sur mobile : une seule ligne, le titre de la page est coupé. */
@media (max-width: 719px) {
	.crumbs ol { flex-wrap: nowrap; min-width: 0; }
	.crumbs li { flex: none; }
	.crumbs li:last-child { flex: 1 1 auto; min-width: 0; }
	.crumbs [aria-current="page"] { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.cq-statuts { display: inline-flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Tableaux : lisibles à toutes les largeurs ----------
   Texte fluide, retour à la ligne dans les cellules (césure française), jamais coupé.
   Sous 600 px : une carte par ligne (première cellule en titre, intitulé de colonne
   devant chaque valeur, ajouté au rendu par inc/tableaux.php). Choix : sur un téléphone,
   les tableaux du site sont textuels (2 à 4 colonnes, cellules de phrases) ; un
   défilement horizontal obligerait à lire une phrase en faisant glisser, alors que la
   carte se lit de haut en bas comme le reste de l'article. */
.prose .wp-block-table table, .bloc--texte .wp-block-table table, .cq-prix table { table-layout: auto !important; font-size: clamp(.84rem, .8rem + .2vw, .95rem); line-height: 1.45; }
.wp-block-table :is(th, td) { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.wp-block-table thead th { hyphens: manual; }
/* Première colonne (intitulés) : jamais un mot coupé, les lignes reviennent entre les mots. */
.wp-block-table tbody td:first-child { overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }
.wp-block-table td strong { white-space: nowrap; }
.prose .cq-corps figure.wp-block-table, .bloc--texte .wp-block-table { max-width: 100%; }
@media (max-width: 599px) {
  .wp-block-table.cq-table-cartes { overflow: visible; }
  .wp-block-table.cq-table-cartes table, .wp-block-table.cq-table-cartes tbody, .wp-block-table.cq-table-cartes tr, .wp-block-table.cq-table-cartes td { display: block; width: 100%; }
  .wp-block-table.cq-table-cartes table { min-width: 0; font-size: .92rem; }
  .wp-block-table.cq-table-cartes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wp-block-table.cq-table-cartes tbody tr { padding: .85rem 1rem .9rem; border-bottom: 2px solid rgba(59, 31, 63, .18); }
  .wp-block-table.cq-table-cartes tbody tr:last-child { border-bottom: 0; }
  .wp-block-table.cq-table-cartes tbody td { padding: .2rem 0; border: 0; }
  .wp-block-table.cq-table-cartes tbody td:first-child { padding: 0 0 .35rem; font-weight: 700; }
  .wp-block-table.cq-table-cartes.cq-prix tbody td:first-child { font-weight: 400; font-size: 1.15rem; }
  .wp-block-table.cq-table-cartes tbody td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: .05rem; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--wp--preset--color--texte-doux); }
  .wp-block-table.cq-table-cartes td strong { white-space: normal; }
}
