/* ==========================================================================
   AUTO MÉCA CONSEILS — Compléments WordPress
   (le design complet est dans theme.css)
   ========================================================================== */

/* ---------- Accessibilité WordPress ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; left: 16px; top: 16px; z-index: 200; width: auto; height: auto; padding: 10px 16px; clip: auto; background: var(--accent); color: var(--bg); }
img { height: auto; }

/* ---------- Barre d’administration (connecté) ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .read-progress { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header, .admin-bar .read-progress { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header, .admin-bar .read-progress { top: 0; }
}

/* ---------- Logo personnalisé ---------- */
.custom-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.custom-logo { width: auto; max-height: 46px; }

/* ---------- Accueil sans la voiture (option désactivée) ---------- */
.welcome__grid--solo { grid-template-columns: 1fr; }

/* ---------- Filtres de rubrique (liens) ---------- */
a.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: var(--shadow-hard); transform: translateY(-2px); }
.select-wrap label { cursor: pointer; }
.cat-list { padding-bottom: var(--section); }

/* ---------- Pagination ---------- */
.pagination, .comments .navigation { margin-top: clamp(40px, 5vw, 64px); }
.pagination .nav-links, .comments .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  transition: border-color .25s, color .25s, background .25s;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: var(--shadow-hard); }
.pagination .page-numbers.dots { border: 0; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; font-family: var(--f-mono); font-size: .75rem; }

/* ---------- Listes (recherche, archives) ---------- */
.section--list { padding-bottom: var(--section); }
.page-hero__title--sm { font-size: clamp(2rem, 6vw, 4.8rem); overflow-wrap: anywhere; }
.archive-search { max-width: 560px; margin-top: 28px; }
.search-form { display: flex; gap: 10px; }
.search-form .input { flex: 1; min-width: 0; }
.search__all { margin-top: 18px; }
.page-hero--404 .welcome__cta { margin-top: 28px; }

/* ---------- Pages ---------- */
.page-body { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.post-layout--no-toc { grid-template-columns: minmax(0, 720px); justify-content: center; }
.prose--page > p:first-of-type::first-letter { float: none; padding: 0; font: inherit; color: inherit; }
.contact-content { padding-bottom: var(--section); }
.contact-content .prose { max-width: 860px; }
.contact-card__hint { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin-bottom: 20px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: .95rem; }
.verdict--no-score { grid-template-columns: 1fr; }
.specs caption { caption-side: top; padding-bottom: 10px; text-align: left; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Contenu des articles : blocs de l’éditeur ---------- */
.prose img { max-width: 100%; height: auto; }
.prose figure, .prose .wp-block-image { margin: 2.2em 0; }
.prose .wp-block-image img { width: 100%; }
.prose figcaption, .prose .wp-element-caption { margin-top: 12px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); }
.prose .wp-block-pullquote { margin: 2.4em 0; padding: 28px 0; border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); text-align: center; }
.prose .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.prose table { width: 100%; margin: 1em 0 2em; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.prose th, .prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.prose .wp-block-table table { margin: 0; }
.prose hr, .prose .wp-block-separator { height: 2px; margin: 2.6em 0; border: 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 28px, transparent 28px 52px); }
.prose iframe, .prose video, .prose embed { max-width: 100%; }
.prose .wp-block-embed { margin: 2em 0; }
.prose code { padding: .15em .4em; border-radius: 4px; background: var(--surface); font-family: var(--f-mono); font-size: .88em; }
.prose pre { overflow-x: auto; padding: 18px 20px; background: var(--surface); font-size: .9rem; }
.prose pre code { padding: 0; background: none; }
.prose .wp-block-button__link, .prose .wp-element-button {
  display: inline-flex; align-items: center; padding: 14px 24px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--bg); text-decoration: none;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  box-shadow: var(--shadow-hard);
}
.prose .alignleft { float: left; max-width: 50%; margin: .4em 1.6em 1em 0; }
.prose .alignright { float: right; max-width: 50%; margin: .4em 0 1em 1.6em; }
.prose .aligncenter { margin-right: auto; margin-left: auto; text-align: center; }
.prose .has-text-align-center { text-align: center; }
.prose .wp-block-gallery { margin: 2em 0; }
.prose > *:last-child { margin-bottom: 0; }

/* Questions / réponses (bloc « Détails ») */
.prose details { border-bottom: 1px solid var(--line); }
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: -.012em;
  transition: color .25s;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-2); border-radius: 50%;
  font-family: var(--f-mono); font-size: 1.1rem; color: var(--ink);
  transition: transform .5s var(--ease-out), background .3s, border-color .3s, color .3s;
}
.prose summary:hover { color: var(--accent); }
.prose details[open] > summary::after { content: "–"; background: var(--accent); border-color: var(--accent); color: var(--bg); transform: rotate(180deg); }
.prose details > :not(summary) { max-width: 70ch; color: var(--ink-2); }
.prose details[open] > :not(summary) { animation: fadeUp .5s var(--ease-out); }

/* ---------- Commentaires ---------- */
.comments { padding-bottom: clamp(48px, 6vw, 80px); }
.comments__title, .comment-reply-title { margin-bottom: 20px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.02em; }
.comment-reply-title small { margin-left: 12px; font-family: var(--f-mono); font-size: .7rem; }
.comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: 28px; border-left: 2px solid var(--line); list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 6px 0 10px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.comment-content { color: var(--prose); line-height: 1.7; }
.comment-content p { margin: 0 0 .8em; }
.reply a { font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--surface-2); border-radius: var(--radius-input);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-family: var(--f-body); font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.comment-notes, .logged-in-as, .comments__closed { color: var(--muted); font-size: .9rem; }
.comment-form .form-submit input[type="submit"] { cursor: pointer; border: 0; }

/* ==========================================================================
   Version 1.1 — gabarit d’article large, trame éditoriale, auteur, plan du site
   ========================================================================== */

/* ---------- Libellés : majuscule au début de chaque mot ---------- */
.nav__link, .footer-col a, .chip, .link-arrow, .post-nav__label, .select-wrap label { text-transform: capitalize; }

/* ---------- Article : colonne de texte large (1060 px) + sommaire (280 px) ---------- */
.post-article { --art-gap: clamp(32px, 4vw, 64px); }
.post-article .post-hero.container,
.post-article .post-layout.container { max-width: 1440px; }
.post-article .post-head.container--narrow { max-width: calc(1340px + var(--art-gap) + 2 * var(--gutter)); }
.post-chapo { max-width: none; font-size: 1.375rem; line-height: 1.5; }
.prose { font-size: 1.125rem; line-height: 1.65; }
.post-layout--no-toc { grid-template-columns: minmax(0, 1060px); }
@media (min-width: 1025px) {
  .post-layout { grid-template-columns: 280px minmax(0, 1060px); justify-content: center; gap: var(--art-gap); }
  .post-layout--no-toc { grid-template-columns: minmax(0, 1060px); }
  .post-article .post-foot.container--narrow { display: grid; grid-template-columns: 280px minmax(0, 1060px); justify-content: center; column-gap: var(--art-gap); max-width: 1440px; }
  .post-article .post-foot.container--narrow > * { grid-column: 2; }
  .toc { max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; }
}
@media (max-width: 1024px) {
  .post-layout { max-width: none; }
}

/* ---------- Trame des articles ---------- */
.prose > p.article-intro { font-size: 1.375rem; line-height: 1.5; color: var(--ink-2); }
.prose > p.article-intro::first-letter { float: none; padding: 0; font: inherit; color: inherit; }
.prose h2[data-amc="resume"] { margin-bottom: 0; padding: 22px 26px 0; background: var(--surface); font-size: 1.25rem; }
.prose h2[data-amc="resume"]::before { margin-bottom: 12px; }
.prose p[data-amc="resume-text"] { padding: 12px 26px 24px; background: var(--surface); border-bottom: 3px solid var(--accent); }
.prose p[data-amc="conseil"] { position: relative; margin-block: 1.8em; padding: 20px 24px 20px 28px; border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--ink); }
.prose p[data-amc="conseil"] > strong:first-child, .prose p[data-amc="conseil"] > b:first-child { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.article-table-wrapper { margin: 2em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table.article-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.prose table.article-table th { padding: 14px 16px; background: var(--surface); border-bottom: 2px solid var(--accent); text-align: left; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.prose table.article-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose table.article-table tbody tr:hover td { background: var(--accent-soft); }

.article-video { margin: 1.2em 0 2.2em; }
.article-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #11151D; }
.youtube-intro { margin: 2.2em 0 0; padding: 18px 22px; background: var(--surface); border-left: 4px solid currentColor; }
.youtube-intro p { margin: 0; color: var(--ink-2); }
.youtube-intro .youtube-intro-title { margin-bottom: 6px; color: inherit; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }

.article-faq-block { margin: 1.4em 0 2.4em; border-top: 1px solid var(--line); }
.article-faq-item { border-bottom: 1px solid var(--line); }
.article-faq-question { position: relative; display: block; padding: 20px 48px 20px 0; cursor: pointer; list-style: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; transition: color .25s; }
.article-faq-question::-webkit-details-marker { display: none; }
.article-faq-question::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.4rem; font-weight: 500; color: var(--accent); }
.article-faq-item[open] > .article-faq-question::after { content: "–"; }
.article-faq-question:hover { color: var(--accent); }
.article-faq-answer { padding: 0 48px 22px 0; }
.article-faq-answer > :last-child { margin-bottom: 0; }

.article-interactive-tool { margin: 2.4em 0; padding: clamp(20px, 3vw, 32px); background: var(--surface); border-top: 3px solid var(--accent); }
.article-interactive-tool p { margin: 0 0 .5em; }
.interactive-tool-label { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.interactive-tool-title { color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; text-transform: capitalize; }

/* ---------- Articles similaires (5) ---------- */
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 22px; }
.grid--5 .card__title { font-size: 1.02rem; line-height: 1.25; }
@media (max-width: 1280px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--5 { grid-template-columns: 1fr; } }

/* ---------- Auteur ---------- */
.meta__author, .meta__author a { position: relative; z-index: 2; }
.author-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .25s; }
.author-link:hover { color: var(--accent); }
img.avatar--img { display: block; object-fit: cover; padding: 0; background: var(--surface); }
.author-box__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.author-box__tags li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.author-box .link-arrow { margin-top: 4px; }
.author-hero__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.author-hero__photo { display: grid; place-items: center; width: clamp(120px, 16vw, 220px); aspect-ratio: 1; overflow: hidden; background: var(--accent-2); color: #F3EEE9; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.6rem); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.author-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-hero .stats { margin-top: 28px; }
.author-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); }
.author-about__bio p { margin-top: 16px; font-size: 1.25rem; line-height: 1.6; color: var(--ink-2); }
.author-about__side .eyebrow { margin-bottom: 14px; }
.author-about__side .eyebrow:not(:first-child) { margin-top: 28px; }
.footer-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.footer-author span { display: flex; flex-direction: column; gap: 3px; }
.footer-author small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .author-hero__grid, .author-about { grid-template-columns: 1fr; }
}

/* ---------- Plan du site / tous les articles ---------- */
.sitemap { display: grid; gap: clamp(32px, 4vw, 56px); padding-bottom: var(--section); }
.sitemap__title { padding-bottom: 14px; border-bottom: 2px solid var(--accent); font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.sitemap__title sup { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; color: var(--accent); }
.sitemap__title a:hover { color: var(--accent); }
.sitemap__list { margin: 0; padding: 0; list-style: none; }
.sitemap__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sitemap__list a { font-weight: 500; transition: color .25s; }
.sitemap__list a:hover { color: var(--accent); }
.sitemap__list time { flex-shrink: 0; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sitemap__list--inline { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 16px; }
.sitemap__list--inline li { padding: 0; border: 0; }
.sitemap__empty { padding-top: 14px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
