/* Masquer les éléments inutiles à l'impression */
nav, #menu, #topbar, #upbtn, #dnbtn, footer,
#searchbox, #outils, #meteo, #tiroiroutilsmob,
.sharepage, .pictoslei, #carte, #mapid,
#actupopup, #tiroiractu,
.sous-menu, .navigation, .arrows,
form, .niceform, #srclei,
#footer-partager, #footer-raisons,
#lequipe, #logos, #footerbtns,
.infopops, #nousappeler, #envoyercourriel, #horairesouverture,
.video_info, #flux_video a[target],
#Accueil-social, #Accueil-video, #Accueil-grc,
script, iframe, .pop, .pop_off, .pop_out,
#debug, .debug,
[onclick], .calendar,
#vignette, .sharepage {
  display: none !important;
}

/* Reset page */
body {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 12pt;
  line-height: 1.5;
  color: #000;
  background: #fff;
  margin: 0;
  padding: 0;
}

#wrapper, #content, .innerwidth80, .innerwidth70 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Images : on les laisse visibles avec taille raisonnable */
img {
  max-width: 100% !important;
  page-break-inside: avoid;
}

#slider img, .slide img {
  max-width: 80% !important;
  display: block;
  margin: 1cm auto;
}

.dia-caption {
  position: static !important;
  background: none !important;
  color: #000 !important;
  padding: 0.5cm 0;
}

.dia-caption h2 {
  font-size: 18pt;
  margin: 0.3cm 0;
}

/* Liens : afficher les URLs */
a[href^="http"]:after {
  content: " (" attr(href) ")";
  font-size: 9pt;
  color: #555;
  word-wrap: break-word;
}

a[href^="/"]:after {
  content: " (https://www.mso-tourisme.com" attr(href) ")";
  font-size: 9pt;
  color: #555;
  word-wrap: break-word;
}

a[href^="#"]:after, a[href^="javascript"]:after {
  content: "";
}

/* Éviter les coupures de page */
h1, h2, h3, h4 {
  page-break-after: avoid;
  page-break-inside: avoid;
}

.lei_item {
  page-break-inside: avoid;
  break-inside: avoid;
  border-bottom: 1pt solid #ccc;
  padding: 0.3cm 0;
  margin-bottom: 0.3cm;
}

/* Forcer les sections de contenu à s'afficher */
[style*="display:none"], [style*="display: none"] {
  display: block !important;
}

#content {
  display: block !important;
}

/* Pages blanches/rouges : fond blanc à l'impression */
.home, .red, .white, .black, .grey {
  color: #000 !important;
  background: #fff !important;
}

/* Afficher les infos bulles/tooltip */
.tooltip {
  display: block !important;
  position: static !important;
}

/* Section vidéo YouTube : afficher les liens */
#flux_video a {
  display: block;
  padding: 0.2cm 0;
  border-bottom: 1pt dotted #ccc;
}

/* Blog et articles */
.blogentry {
  page-break-inside: avoid;
}

/* Footer : ne garder que le plan/mentions */
footer p {
  display: block !important;
  font-size: 9pt;
  text-align: center;
  border-top: 1pt solid #000;
  padding-top: 0.3cm;
  margin-top: 0.5cm;
}

/* Actu popup */
#actupopup {
  display: block !important;
  position: static !important;
}
