/* Guides exposants : copie du style des PDF 2027 (exception documentée à COMMUN/intranet.css). */
:root {
  --rouge: #e62c3d;
  --bleu: #0000f2;
  --texte: #000;
  --gris: #666;
  --trait: #d9d9d9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ececec;
  color: var(--texte);
  font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-wrap: anywhere;
}
.page { max-width: 880px; margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: 0 0 24px rgba(0, 0, 0, .08); }

/* Bandeau du salon (image des PDF) ; recadré sur logo + dates en petit écran */
.bandeau { background: #333; line-height: 0; }
.bandeau img { display: block; width: 100%; height: auto; }

.barre { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 40px; border-bottom: 1px solid var(--trait); }
.langues { display: flex; gap: 4px; }
.langues a, .btn-pdf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--trait); border-radius: 8px; color: var(--texte); background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
}
.langues a[aria-current] { background: var(--texte); border-color: var(--texte); color: #fff; }
.btn-pdf { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.langues a:hover, .btn-pdf:hover { filter: brightness(.92); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

.contenu { padding: 28px 40px 56px; }
h1 { margin: 0; font-size: 26px; line-height: 1.25; text-transform: uppercase; }
.version { margin: 4px 0 20px; color: var(--gris); font-size: 14px; }

.sommaire { margin: 0 0 8px; border: 1px solid var(--trait); border-radius: 8px; padding: 0 16px; }
.sommaire summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.sommaire ul { list-style: none; margin: 0 0 12px; padding: 0; }
.sommaire li { padding: 3px 0; }
.sommaire li.n2 { font-weight: 700; margin-top: 6px; }
.sommaire li.n3 { padding-left: 18px; font-size: 15px; }
.sommaire a { color: var(--texte); text-decoration: none; }
.sommaire a:hover { color: var(--bleu); text-decoration: underline; }

/* Titres : chapitre rouge, sous-partie noire, niveau suivant bleu (comme les PDF) */
h2, h3, h4 { text-transform: uppercase; line-height: 1.3; scroll-margin-top: 12px; }
h2 { margin: 2.2em 0 .6em; color: var(--rouge); font-size: 22px; }
h3 { margin: 1.8em 0 .6em; padding-left: 24px; font-size: 18px; }
h4 { margin: 1.5em 0 .5em; padding-left: 48px; color: var(--bleu); font-size: 16px; font-weight: 400; }
p { margin: 0 0 .9em; }
.intertitre { margin: 1.3em 0 .4em; }
.intertitre strong { color: var(--bleu); }
a { color: var(--bleu); }
ul { padding-left: 1.6em; margin: 0 0 1em; }
ul ul { list-style: circle; margin: .2em 0 .4em; }
li { margin: .15em 0; }
img { display: block; max-width: 100%; height: auto; margin: 16px auto; }

.encadre { margin: 20px 0; padding: 14px 22px; border: 1.5px solid; }
.encadre.tip { border-color: var(--bleu); }
.encadre.alerte { border-color: var(--rouge); }
.encadre-titre { margin-bottom: .5em; font-weight: 700; }
.tip .encadre-titre { color: var(--bleu); }
.alerte .encadre-titre { color: var(--rouge); }
.encadre > :last-child { margin-bottom: 0; }

.tbl { overflow-x: auto; margin: 0 0 1.2em; }
/* Tableaux du contenu (le tableau .mise-en-page ne sert qu'à l'impression) */
.contenu table { border-collapse: collapse; min-width: 60%; font-size: 15px; }
.contenu th, .contenu td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.contenu th { color: var(--bleu); font-weight: 700; }

.pied-impression { display: none; }
.mise-en-page, .mise-en-page > tbody, .mise-en-page > tbody > tr, .mise-en-page > tbody > tr > td { display: block; }
.mise-en-page > tfoot { display: none; }

@media (max-width: 600px) {
  .bandeau img { height: 72px; object-fit: cover; object-position: 96% center; }
  .barre { padding: 10px 16px; }
  .contenu { padding: 20px 16px 40px; }
  h1 { font-size: 21px; }
  h2 { font-size: 19px; }
  h3 { font-size: 16px; padding-left: 0; }
  h4 { font-size: 15px; padding-left: 0; }
  .encadre { padding: 12px 14px; }
  .contenu table { font-size: 14px; }
}
@media (max-width: 360px) {
  body { font-size: 15px; }
  .langues a, .btn-pdf { padding: 0 10px; font-size: 13px; }
}

/* PDF : impression du navigateur */
@media print {
  @page { size: A4; margin: 14mm 14mm 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  .page { max-width: none; box-shadow: none; min-height: 0; }
  .barre, .sommaire { display: none; }
  .bandeau img { height: auto; object-fit: initial; }
  .contenu { padding: 18px 0 0; }
  h1 { font-size: 17pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12pt; }
  h4 { font-size: 11pt; }
  h2, h3, h4, .intertitre { break-after: avoid; page-break-after: avoid; }
  .encadre, .contenu tr, .contenu img { break-inside: avoid; page-break-inside: avoid; }
  .contenu img { max-height: 85mm; width: auto; }
  a { color: var(--bleu); text-decoration: none; }
  .mise-en-page { display: table; width: 100%; border-collapse: collapse; }
  .mise-en-page > tbody { display: table-row-group; }
  .mise-en-page > tfoot { display: table-footer-group; }
  .mise-en-page > tbody > tr, .mise-en-page > tfoot > tr { display: table-row; }
  .mise-en-page > tbody > tr > td, .mise-en-page > tfoot > tr > td { display: table-cell; padding: 0; border: 0; }
  .reserve-pied { height: 11mm; }
  .pied-impression {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; height: 9mm; padding-top: 3mm; border-top: .5pt solid var(--trait);
    background: #fff;
    font-size: 7.5pt; color: var(--gris); text-align: center;
  }
}

/* Bandeau d'aperçu (administration, brouillon non publié) */
.bandeau-apercu { position: sticky; top: 0; z-index: 10; padding: 8px 16px; background: #ffd400; color: #000; font: 700 14px/1.3 "Helvetica Neue", Arial, sans-serif; text-align: center; }
@media print { .bandeau-apercu { position: static; } }
.apercu-direct { background: #fff; }
.apercu-direct .ici { outline: 3px solid #ffd400; outline-offset: 4px; border-radius: 2px; }

/* Mises à jour importantes (bandeau sous la date de version) ; absent du PDF */
.majs { margin: 0 0 16px; padding: 12px 16px; border: 1.5px solid var(--rouge); border-radius: 8px; background: #fff5f5; font-size: 15px; }
.majs-titre { margin: 0 0 6px; font-weight: 700; color: var(--rouge); }
.majs ul { list-style: none; margin: 0; padding: 0; }
.majs li { margin: 0 0 6px; }
.majs time { font-weight: 700; white-space: nowrap; }
.majs-toutes { margin-top: 8px; }
.majs-toutes summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rouge); border-radius: 8px; background: #fff; color: var(--rouge); font-size: 14px; font-weight: 600; cursor: pointer; }
.majs-toutes ul { margin-top: 10px; }
@media (max-width: 360px) { .majs { padding: 10px 12px; font-size: 14px; } }
@media print { .majs { display: none; } }
