/* Reset et styles globaux */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eaeaea;
  color: #000;
  font-family: GaramondPremrPro-ItCapt, serif;
  scrollbar-color: #c6c6ca #e6e6e636;
    scrollbar-width: thin;

}
html {
  font-size: 100%;
}
img {
  border: 0;
  outline: 0;
}
html, body {
    touch-action: none;
}


/* Conteneur principal */
#conteneur {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 522px;
  height: 460px;
  background: #fff;
  text-align: left;
  margin: -260px -264px;
  z-index: 1;
}

/* Variante miniature éventuelle */
#conteneur.mini {
  margin: -140px -165px;
}

/* Bandeau */
#bandeau {
  position: absolute;
  z-index: 100;
  height: 30px;
  width: 522px;
  left: 0;
  background: url(/ressources/bandeau-journal.png) no-repeat;
}

/* Navigation */
#navigation {
  width: 140px;
  font-size: 0.6em;
  float: left;
  position: relative;
  padding: 5px 0 0 11px;
  top: 18.5px;
  background: none;
}
#navigation ul {
  padding: 0 0 13px 0;
  list-style-type: none;
  margin: 0;
  border: 0;
}
#navigation li {
  font-size: 2em;
  padding: 9px 0 8px 7px;
  font-weight: normal;
  color: white;
  letter-spacing: -3px;
  border-bottom: 0 solid #fff;
  line-height: 1em;
  width: 200px;
}
#navigation li.noborder {
  border-bottom: none;
}
#navigation li.actif {
  color: #23dbdc;
}
#navigation li ul li a {
  padding-left: 8px;
  background: url(./images/icono/puceNiv2Off.png) no-repeat 0 0.25em;
  color: grey;
  text-decoration: none;
}
#navigation li ul li a.actif {
  background: url(./images/icono/puceNiv2On.png) no-repeat 0 0.3em;
  color: #23dbdc;
}
#navigation li ul li ul li a,
#navigation li ul li ul li a.actif {
  background: none;
}
#navigation li ul li ul li ul li a {
  padding-left: 13px;
  background: url(/images/icono/puceNiv4Off.png) no-repeat 8px 0.7em;
}
#navigation li ul li ul li ul li a.actif {
  background: url(/images/icono/puceNiv4On.png) no-repeat 8px 0.7em;
}
#navigation li a:hover {
  color: white;
}
#navigation li a:link,
#navigation li a:visited {
  color: color(srgb 0.7169 0.7348 0.775);
  text-decoration: none;
}

/* Menu */
#menu {
  width: 140px;
  border-top: 0 solid #fff;
}
#menu-libelle {
  font-family: 'ITC Avant Garde W1G Md', sans-serif;
  font-weight: 100;
  color: white;
  font-size: 2.3em;
  height: 20px;
  letter-spacing: 2px;
  padding: 10px 0 6px 5px;
  margin: 0;
}

/* Contenu */
#contenu {
  margin: 65px 0 20px 200px;
  z-index: 1;
  color: #000;
  position: relative;
  font-size: 1.05 em;
}

/* Styles spécifiques à visite */
#conteneur.visite {
  height: 444px;
  background: #dce0e9  url(/ressources/bandeaublanc.png) repeat-x 0 4px;
}

/* Petits ajustements */
h3 {
  font-weight: 200;
}

/* Petits ajustements */
h1 {
  font-size: 1.1em;
  letter-spacing: 2px;
  height: 34px;
  color: #2d2f80;
}

p {
  text-justify: justify;
  padding-left: 1px;
}

/* Styles de lien spécifiques */
#contenu.arret .lienLivre {
  background: url(./images/icono/pictoLivreOn.png) no-repeat 0 1px;
  padding-left: 19px;
}
#contenu.arret .lienAlbum {
  background: url(./images/icono/pictoAlbumO.png) no-repeat 0 1px;
  padding-left: 20px;
}
#contenu.arret .lienExplo {
  background: url(./images/icono/pictoExploO.png) no-repeat 0 1px;
  padding-left: 17px;
}
#contenu.anthologie .lienLivre {
  background: url(./images/icono/pictoLivreOn.png) no-repeat 0 1px;
  padding-left: 19px;
}
#contenu.anthologie .lienAlbum {
  background: url(./images/icono/pictoAlbumOn.png) no-repeat 0 1px;
  padding-left: 20px;
}
#contenu.anthologie .lienExplo {
  background: url(./images/icono/pictoExploOn.png) no-repeat 0 1px;
  padding-left: 17px;
}

/* Définition du texte */
#mots-def {
  color: rgb(41, 41, 41);
}

/* Cache message d'erreur par défaut */
.mobile-erreur {
  display: none;
}

/* Scrollable container et overlay */
.scrollable-container {
  position: absolute;
  top: 65px;
  width: 490px;
  height: 302px;
  z-index: -1;
}
.scrollable {
  height: 368px;    
  width: 500px;     
  position: absolute;
  top: 11px;
  overflow-y: auto; 
  border-bottom: 1px solid #ececec;
  border-top: 1px solid #ececec;
  padding: 30px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #fafafa;
  padding-right: 30px;
}
#overlay-scrollable {
  position: absolute;
  left: 0;
  width: 522px;
  height: 440px;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
#overlay-scrollable .overlay-panel {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #002FA7;
  border-radius: 2px;
  padding: 21px 25px 20px 24px;
  color: #000;
  max-width: 350px;
  width: 100%;
  text-align: left;
}
#overlay-btn {
  margin-top: 1px;
  padding: 5px 25px;
  font-size: 0.7em;
  cursor: pointer;
  background: rgba(245, 245, 245, 1);
  border-radius: 5px;
  border: 1px solid #333;
}
#overlay-btn:hover {
  background: #ddd;
}

/* Réglages media queries */
@media (max-width: 1024px) {
  #conteneur.visite {
    background-size: 142px;
    left: 50%;
  }
  #contenu {
    margin: 65px 0 20px 180px;
  }
  #navigation li {
    padding: 7px 0 2px 3px;
    letter-spacing: -4px;
  }
  #menu {
    width: 185px;
  }
  #conteneur.accueilvisite #bandeau,
  #conteneur.visite #bandeau {
    background: url(/ressources/at.jpg) no-repeat;
  }
  .scrollable {
    top: 7px;
      height: 372px;  
  }
}
