/* Compléments natifs au style Neve et à ses réglages personnalisés. */
html { scroll-behavior: smooth; }
.nv-single-page-wrap { min-width: 0; }
.nv-content-wrap::after { content: ""; display: block; clear: both; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .5rem; border: 1px solid #ddd; }
.entry-content figure:has(table), .entry-content pre { overflow-x: auto; }
.menu-item a[aria-current=page] { color: var(--nv-primary-accent); }
.nv-post-cover { isolation: isolate; }
.nv-post-cover .cover-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.nv-post-cover .nv-overlay { z-index: -1; }
.cover-breadcrumb { font-size: .85rem; margin-bottom: 10px; }
.cover-breadcrumb a { color: inherit; }
.article-carousel {
    display: grid; grid-template-columns: 1fr 1.7fr 1fr;
    grid-template-rows: 150px 100px; gap: 6px;
    max-width: 762px; margin: 36px auto 24px;
}
.article-carousel figure { margin: 0; width: 100%; height: 100%; }
.article-carousel figure > a { display: block; height: 100%; width: 100%; }
.article-carousel img {
    width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; border-radius: 2px;
}
.article-carousel figure:nth-child(1) { grid-column: 1; grid-row: 1; }
.article-carousel figure:nth-child(2) { grid-column: 2; grid-row: 1/3; }
.article-carousel figure:nth-child(3) { grid-column: 3; grid-row: 1; }
.article-carousel figure:nth-child(4) { grid-column: 3; grid-row: 2; }
.article-carousel figure:nth-child(5) { grid-column: 1; grid-row: 2; }
.photo-viewer { max-width: 95vw; max-height: 95vh; padding: 12px; border: 0; background: #fff; }
.photo-viewer::backdrop { background: #000c; }
.photo-viewer img { display: block; max-width: 88vw; max-height: 78vh; object-fit: contain; }
.photo-viewer button { display: block; margin: 8px 0 0 auto; }
@media (max-width: 575px) { .article-carousel { grid-template-rows: 110px 80px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.contact-section { max-width: 720px; margin: 2rem 0; }
.contact-form fieldset { border: 0; padding: 0; min-width: 0; }
.contact-form label { display: block; margin: 1rem 0 .35rem; font-weight: 600; }
.contact-form input:not([type=hidden]), .contact-form textarea { display: block; width: 100%; max-width: 100%; }
.contact-form textarea { resize: vertical; }
.contact-form .cf-turnstile { margin-top: 1.5rem; }
.contact-privacy { margin: 1rem 0; font-size: .9rem; }
.contact-notice { padding: 1rem; background: var(--nv-light-bg); border-left: 3px solid var(--nv-primary-accent); }
.contact-error { border-color: #a02323; }
.contact-success { border-color: #287042; }
.contact-form .contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
