/* Novavision : pages intérieures, articles, projets, blocs de l'éditeur, formulaires. */

/* ---------- En-tête de page ---------- */
.phero { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.phero-dark { background: var(--graphite); color: var(--chalk); }
.phero-yellow { background: var(--yellow); color: var(--graphite); }
.phero-yellow :focus-visible { outline-color: var(--graphite); }
.phero-kicker { font-weight: 700; margin-bottom: .75rem; }
.phero-dark .phero-kicker { color: var(--yellow); }
.phero-title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.8rem, 1rem + 6vw, 7.5rem); line-height: .88; letter-spacing: -.005em;
  max-width: 16ch; text-wrap: balance;
}
.phero-lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.5; max-width: 56ch; }
.phero-dark .phero-lead { color: var(--stone); }
.phero-actions { margin-top: 2rem; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.phero-dark .crumbs { color: var(--stone); }

/* ---------- Corps de page ---------- */
.page-body { background: var(--chalk); color: var(--graphite); padding-block: clamp(3rem, 6vw, 5.5rem); }
.page-body :focus-visible { outline-color: var(--graphite); }
.page-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .page-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .page-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.page-aside { border-top: 3px solid var(--graphite); padding-top: 1rem; display: grid; gap: .5rem; }
.page-aside a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.aside-t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; }
.aside-note { color: var(--muted-light); }
.post-meta { color: var(--muted-light); font-size: .95rem; margin-bottom: 1.5rem; }
.post-cover { margin: 0 0 2rem; }
.post-cover img { width: 100%; height: auto; }

.facts-list > div { border-bottom: 1px solid var(--line-light); padding-block: .75rem; display: grid; gap: .15rem; }
.facts-list dt { font-size: .85rem; color: var(--muted-light); font-weight: 600; }
.facts-list dd { margin: 0; font-weight: 700; }

/* ---------- Texte riche (éditeur de blocs) ---------- */
.prose { max-width: 70ch; font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose .wp-block-heading:is(h2) {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: .95; margin-top: 2.2em;
}
.prose h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1; margin-top: 1.8em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.5em; }
.prose p { max-width: none; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.prose a:hover { background: var(--yellow); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--graphite); font-weight: 700; }
.prose strong { font-weight: 800; }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .9rem; color: var(--muted-light); margin-top: .5rem; }
.prose blockquote { border-left: 6px solid var(--yellow); padding-left: 1.25rem; font-size: 1.25rem; font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line-light); padding: .6rem .5rem; text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 2px solid var(--graphite); margin-block: 2.5em; }
.prose .wp-block-buttons { margin-top: 1.5rem; }
.prose .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 52px; padding: .85rem 1.5rem;
  background: var(--yellow); color: var(--graphite); font-weight: 700; text-decoration: none; border-radius: 0;
}
.prose .wp-block-button__link:hover { background: var(--graphite); color: var(--chalk); }
.prose .wp-block-embed iframe, .prose iframe { max-width: 100%; }

/* FAQ (bloc Détails) */
.prose details { border-top: 1px solid var(--line-light); margin-top: 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--line-light); }
.prose h2 + details { margin-top: 1em; }
.prose summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 60px; padding-block: .9rem; font-weight: 800;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > p { padding-bottom: 1rem; color: var(--muted-light); }

/* ---------- Réalisations : filtres et pagination ---------- */
.recent-all { padding-top: clamp(2rem, 4vw, 3rem); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .9rem; border: 1.5px solid var(--line-dark); font-weight: 700; font-size: .95rem; }
.filters a span { color: var(--stone); font-weight: 500; margin-left: .25rem; }
.filters a:hover, .filters a[aria-current="page"] { background: var(--yellow); color: var(--graphite); border-color: var(--yellow); }
.filters a[aria-current="page"] span { color: var(--graphite); }

.pager { margin-top: 3rem; }
.pager ul, .pager .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1.5px solid currentColor; font-weight: 700; }
.pager .current { background: var(--yellow); color: var(--graphite); border-color: var(--yellow); }
.pager a:hover { background: var(--chalk); color: var(--graphite); }

/* ---------- Liste d'articles ---------- */
.journal-list { padding-top: clamp(2rem, 4vw, 3rem); }
.posts .post-title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.6rem); line-height: 1; }
.empty { color: var(--stone); }
.empty a { color: var(--chalk); text-decoration: underline; }

/* ---------- Formulaire de devis ---------- */
.nv-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.nv-form fieldset { border: 0; padding: 0; margin: 0; }
.nv-form legend { font-weight: 800; margin-bottom: .75rem; }
.nv-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.nv-choices label { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem 1rem; border: 2px solid var(--graphite); font-weight: 700; cursor: pointer; }
.nv-choices input { width: 18px; height: 18px; accent-color: var(--graphite); }
.nv-choices label:has(input:checked) { background: var(--yellow); }
.nv-form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.nv-form input:not([type="checkbox"]), .nv-form textarea {
  width: 100%; min-height: 52px; padding: .75rem .9rem; font: inherit; color: var(--graphite);
  background: #fff; border: 2px solid var(--graphite); border-radius: 0;
}
.nv-form textarea { min-height: 140px; resize: vertical; }
.nv-form input:focus-visible, .nv-form textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; }
.nv-row { display: grid; gap: 1rem; }
@media (min-width: 700px) { .nv-row { grid-template-columns: repeat(3, 1fr); } }
.nv-hp { position: absolute; left: -9999px; }
.nv-form-ok { background: var(--yellow); padding: 1rem 1.25rem; font-weight: 700; }

/* ---------- 404 et recherche ---------- */
.routes-dark { border-color: var(--graphite); }
.routes-dark a:hover { background: var(--graphite); color: var(--yellow); }
.search-404 { margin-top: 2.5rem; }
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 560px; }
.search-form label { flex: 1 1 260px; }
.search-form .search-field { width: 100%; min-height: 52px; padding: .75rem .9rem; font: inherit; border: 2px solid var(--graphite); background: #fff; }
.search-form .search-submit { min-height: 52px; padding: 0 1.5rem; background: var(--graphite); color: var(--chalk); font-weight: 700; border: 0; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Menu : élément de la page courante */
.nav-list .is-current > a { color: var(--yellow); }

/* Éditeur : fond clair pour écrire */
.editor-styles-wrapper { background: var(--chalk, #F7F6F2); color: var(--graphite, #1F2328); font-family: var(--f-text, "Hanken Grotesk", system-ui, sans-serif); }
