/* ==========================================================================
   VGA Communes – impression (1.8.0). Chargée avec media="print" : aucun impact sur l'affichage écran.
   Contenu seul, en noir sur blanc ; navigation, bandeaux et éléments interactifs masqués ;
   adresse des liens externes affichée ; pas de coupure dans les tableaux, images et cartes.
   ========================================================================== */
@page { margin: 1.6cm 1.4cm; }

/* Éléments masqués : en-tête, menu, pied de page, annonces, cookies, recherche, carte, carrousel, contrôles. */
.vga-header, .vga-footer, .vga-skip, .vga-sentinel, .vga-announce, .vga-consent, .vga-prefs, .vga-search-panel,
.vga-hero__media, .vga-hero__search, .vga-hero__quick, .vga-quickbar, .vga-quick, .vga-breadcrumb,
.vga-map, .vga-carousel, .vga-nl, .vga-board__nl, .vga-tiles, .vga-pagination, .vga-docs__filters,
.vga-search, .vga-agglo, .vga-blocked, .vga-quick__nav, .vga-tabs__list, .vga-tabs__acc,
.wp-block-embed, .wp-block-video, .wp-block-audio, iframe, video, audio, button, .vga-btn,
.screen-reader-text, #wpadminbar { display: none !important; }

/* Noir sur blanc, sans décor. */
*, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; filter: none !important; }
html, body { margin: 0; padding: 0; font-size: 11.5pt; line-height: 1.45; }
body { font-family: Georgia, "Times New Roman", serif; }
.vga-container, .vga-container--text, .vga-container--narrow, .vga-main, .vga-entry { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.vga-hero, .vga-page-header { min-height: 0 !important; padding: 0 0 .5cm !important; border: 0 !important; text-align: start !important; }
.vga-hero__content { padding: 0 !important; }
h1, h2, h3, h4 { page-break-after: avoid; break-after: avoid; font-family: Arial, Helvetica, sans-serif; }
h1 { font-size: 20pt; } h2 { font-size: 15pt; } h3 { font-size: 13pt; }
p, li, blockquote { orphans: 3; widows: 3; }

/* Liens : soulignés, adresse des liens externes et des documents affichée. */
a { text-decoration: underline; }
a[href^="http"]:not([href*="://localhost"])::after, a[href$=".pdf"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
a[href^="#"]::after, a[href^="javascript"]::after, .vga-brand a::after, .vga-card__title a::after, .vga-event__title a::after, .vga-doc__link::after { content: "" !important; }
a[href^="mailto:"]::after { content: ""; }

/* Pas de coupure au milieu des blocs. */
img, svg, figure, table, pre, blockquote, .vga-card, .vga-event, .vga-doc, .vga-person, .vga-cta, .vga-mairie, .vga-figures__item, .vga-iconlist__item, .wp-block-image, .wp-block-table, .wp-block-group, .wp-block-media-text { page-break-inside: avoid; break-inside: avoid; }
img { max-width: 100% !important; max-height: 12cm; height: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #999 !important; padding: .15cm .25cm !important; }
thead { display: table-header-group; }

/* Cartes et listes : bordure fine pour garder la structure. */
.vga-card, .vga-event, .vga-doc, .vga-person, .vga-mairie--carte, .vga-cta, .vga-infocard, .vga-box, .vga-panel { border: 1px solid #bbb !important; border-radius: 0 !important; }
.vga-card__media img, .vga-event__media img { max-height: 5cm; }
.vga-news__list, .vga-cards, .vga-results, .vga-agenda__list, .vga-council__list { display: block !important; }
.vga-news__list > *, .vga-cards > *, .vga-results > *, .vga-agenda__list > *, .vga-council__list > * { margin-bottom: .3cm; }
.vga-cta__bg { display: none !important; }

/* Onglets et accordéons : tous les contenus imprimés, chacun précédé de son titre. */
.vga-tabs__panel, .vga-tabs__panel[hidden], .wp-block-details > :not(summary) { display: block !important; }
.vga-tabs .vga-tabs__heading, .vga-tabs.is-enhanced .vga-tabs__heading { display: block !important; margin: .4cm 0 .15cm; }
.vga-tabs .vga-tabs__htext { display: inline !important; }
.vga-tabs__panels { border: 0 !important; padding: 0 !important; }

/* Icônes décoratives réduites. */
.vga-icon { width: 14px !important; height: 14px !important; }
.vga-figures__icon, .vga-iconlist__icon, .vga-mairie__link .vga-icon, .vga-mairie__line > .vga-icon { width: auto !important; height: auto !important; padding: 0 !important; }
.vga-figures { display: block !important; }
.vga-figures__item { display: inline-block !important; width: 30%; margin: 0 1% .3cm 0; vertical-align: top; }

/* Mention de la source en fin de page. */
.vga-main::after { content: "Document imprimé depuis le site de la commune."; display: block; margin-top: .8cm; padding-top: .2cm; border-top: 1px solid #999; font-size: 9pt; }
