
body{margin:0;font-family:Verdana;background:#ffffee;font-size : .85rem;}
main{max-width:1200px;margin:0 auto;padding:0 20px;}
@media(max-width:768px){main{padding:0;}}
@media (max-width: 800px) { .zone-centre img {    width: 100%; }}

a {
text-decoration : none;
color : rgb(85, 107, 47);
cursor : pointer;
}

#search{position:fixed;top:10px;left:10px;}
.navlinks{text-decoration:none;margin:20px 0;}

#bandeau {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 98px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 10px;
  background: #e0ffff;
  z-index: 1000;
  border-bottom: 1px solid #ccc;
}
.bandeau-haut{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items:center;
    width:100%;
	
}

.bandeau-haut > div:first-child{
    justify-self:start;
	margin-left : -5px;
	margin-top : -1px;
}

.bandeau-haut > div:nth-child(2){
    justify-self:center;
	margin-top : -10px;
}

.bandeau-haut > div:last-child{
    justify-self:end;
	margin-top : -15px;
}

.bloc-popup{
    display:flex;
    align-items:center;
    gap:8px;
}

.c{
    width:70px;
    height:auto;
	margin-top : -30px;
}

.retour-haut{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:12px;
}

.retour-haut img{
  width:26px;
  height:auto;
  display:block;
  cursor:pointer;
}

.retour-haut:hover{
  transform: translateY(-1px);
}

html{
  scroll-behavior:smooth;
}



#toggleMenu {
    position: relative;
    display: inline-block;
    font-size: 1.4em;
    padding: 12px 24px;
    background: #163a5f;
    color: white;
    border: none;
    cursor: pointer;
    min-height: 48px;
    border-radius: 28px;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* 1re bosse */
#toggleMenu::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 6px;
    top: -9px;
    background: #163a5f;
    border-radius: 50%;
    z-index: -1;

    /* 2e et 3e bosses */
    box-shadow:
        18px -10px 0 4px #163a5f,
        44px -4px 0 8px #163a5f;
}

/* 4e bosse */
#toggleMenu::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    right: 8px;
    top: -7px;
    background: #163a5f;
    border-radius: 50%;
    z-index: -1;
}
#toggleMenu:hover {
    filter: brightness(1.06);
}


#textPopup {
    display: none;
    position: fixed;
    inset: 0;
     background: rgba(0,0,0,0.55); 
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.bloc-popup img.image-popup {
    cursor: pointer;
    width: auto !important;
    
    height: 10px !important;
}

#textPopupContent {
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 16px;
    box-sizing: border-box;
    line-height: 1.2;
    font-size: .9rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    cursor: default;
	text-align: justify;
	hyphens: auto;
}

.bloc-popup {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;
    border-radius: 12px;

    background-color: #e0ffff !important;
    border: 1px solid #b7cfe6;

    margin: 0 auto;
}

.bloc-popup .open-text-popup {
    background: transparent !important;
}

.image-popup {
    height: 20px;
    width: auto;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
}

.titre-popup {
    cursor: pointer;
    color: #163a5f !important;
    font-weight: bold;
    text-decoration: none;
    background: transparent !important;
}

.popup-logo {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}


div.bloc-popup *{
background : transparent !important;
color :#163a5f !important;
}
div.bloc-popup img.image-popup { 
  display: inline-block !important;
text-align:center;
height: 25px !important;
width: auto !important;
vertical-align :middle;
  cursor: pointer;
}






#menu{text-decoration:none;position:fixed;right:15px;top:0px;}
#menuContent {
  position: absolute;
  top: 45px;   /* ajuste selon ton bandeau */
  right: 0;
  width:300px;
  max-width:95vw;
  display: none;
  background: #e0ffff;
  padding: 10px;
  border: 1px solid #ccc;
  font-size : .95em;
	
	line-height : 1.00em;
  max-height: calc(100vh - 100px);
  overflow-y: auto;

  z-index: 2000;
}
#menuContent.open { display: block;}

section {
scroll-margin-top:100px;
}

.cadre-img { border: 1px solid #ccc; border-radius: 8px; padding: 4px; background: white; box-shadow: 
0 4px 10px rgba(0,0,0,0.2); 

}



[id] {
scroll-margin-top:100px;
}
#menuContent ul{list-style:none;padding-left:0;}
#menuContent li{margin:2px 0;position:relative;}

#menuContent li ul li{padding-left:20px;border-left:2px solid #ddd;}
#menuContent li ul li ul li{padding-left:35px;border-left:2px solid #ccc;}

#menuContent a{text-decoration:none;color:black;}
#menuContent a:hover{color:blue;}
#menuContent a.active{color:red;font-weight:bold;}

.toggle-arrow{cursor:pointer;margin-right:5px;font-size:2px;}

#menuContent li ul{display:none;}
#menuContent li.open>ul{display:block;}

h1{
font-size : 1.6rem;
font-weight : bold;
line-height : 1.2rem;
margin : 0;
}
h2 {
font-size : 1.5rem;
font-weight : bold;
color : #666666;
line-height : 1.2rem;
margin : 0;
}
h3{
font-size : 1.3rem;
font-weight : bold;
line-height : 1.1rem;
color : green;
margin : 1.05em 0 0;
}

h4  {
font-size : 1.1em;
font-weight : bold;
line-height : 1.05em;
color : #804000;
margin : 1.05em 0 0;
}
.titre, .titre1 {
font-size : 1.0em;
font-weight : bold;
line-height : 1.1em;
margin : 1.1em 0 0;
}
.titre_marron {
font-size : 1.00rem;
font-weight : bold;
color : #804000;

}
.titre1 {
background-color : #cc00ff;
color : #fff;
}
.texte {
font-size : .85rem;
line-height : ..85rem;
}
.small {
font-size : .7rem;

}
.encadre { color: #0099CC; font-weight: bold; }
.encadre_text_ital {font-style: italic; color: #0099CC; }
.encadre_text { color: #0099CC; }

.texte-just {text-align:justify}
.container {
float : right;
margin : 5px 5px 5px 5px;
padding : 30px;
}
.containel {
float : left;
margin : 5px 5px 5px 5px;
padding : 30px;
}
.vert {
color : #006600;

}
.cache {
color : #ffffee;

}
.rouge {
color : #ff0000;

}
.marron {
color : #ce8413;

}
.bleu {
color : #0000ff;

}
.blanc {
color : #ffffff;

}
.orange {
color : #ff8000;


}
.neige {
color : #3366ff;


}
.fond_jaune {
color : #ffffee;

}
.violet {
color : #a82ba8;


}
.marron_jaune {
color : #b37604;
font-weight : bold;

}
.vert_gras {
color : #336600;

}
.neige_gras {
color : #3366ff;

font-weight : bold;
}
.rouge_gras {
color : #ff0000;

font-weight : bold;
}
.gras {
font-weight : bold;
}
.hr {
text-align : center;
}
hr.new1 {
border-top : 1px solid red;
}
hr.memo {
border-top : 4px dashed;
color : #cc00ff;
}
.left { text-align: left;}
/* ===== BANDEAU HAUT ===== */


/* zones */
.zone-gauche,
.zone-droite {
  width: 15%;
  display: flex;
  align-items: center;
}

.zone-centre {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* image centrée fixe */
.zone-centre img {
  width: 800px;
  height: 98px;
  object-fit: cover;
}

/* texte gauche */
.auteur {
  font-size: .8em;
  line-height: .9em;
}

/* menu droite */
.zone-droite {
  justify-content: flex-end;
}

#menu {
  position: relative;
}

/* éviter chevauchement contenu */
main {
  margin-top: 98px;
}


.bloc-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.bloc-3 img {
  height: 150px;
  cursor: pointer;
}

.texte-centre {
  max-width: 500px;
  text-align: justify;
  font-size: .85em;
}
.texte-centre1 {
  max-width: 800px;
  text-align: justify;
  font-size: .85rem;
}


.bloc-img-droite,
.bloc-img-gauche {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bloc-img-droite img,
.bloc-img-gauche img {
  height: 200px;
  cursor: pointer;
}

.bloc-img-droite .texte,
.bloc-img-gauche .texte {
  flex: 1;
  text-align: justify;
}

.bloc-4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.bloc-4 img {
  height: 150px;
  cursor: pointer;
}

.bloc-4 .texte {
  max-width: 400px;
  text-align: justify;
  font-size: .85rem;
}

/* mobile */
@media (max-width:768px){

  .bloc-4 {
    flex-direction: column;
    align-items: center;
  }

  .bloc-4 .texte {
    max-width: 100%;
  }

}








/* mobile */
@media (max-width:768px){
  .bloc-img-droite,
  .bloc-img-gauche {
    flex-direction: column;
  }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#overlay img {
  max-width: 90%;
  max-height: 90%;
  cursor: pointer;
}
.def {
    color: purple;
    text-decoration: underline;
    cursor: pointer;
}

.tooltip-def {
    position: absolute;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 260px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tooltip-def img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 5px;
}

.recherche-livre{
  margin:5px 0 5px 0;
  padding:2px;
  background:#e0ffff;
  border:1px solid #ccc;
  border-radius:12px;
}

#searchBook{
  width:65%;
  max-width:320px;
  padding:8px;
  font-size:0.80rem;
}

#searchBtn{
  padding:2px 2px;
  cursor:pointer;
}

#searchResults{
  margin-top:2px;
}

.result-item{
  margin:8px 0;
  padding:2px;
  background:#e0ffff;
  border-left:4px solid #668;
}

.result-item a{
  font-weight:bold;
  color:#334;
}

.result-extrait{
  font-size:0.85rem;
  margin-top:2px;
}
.search-highlight{
  background: #ffeb3b;
  padding: 0 3px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(255, 235, 59, 0.8);
}

.recherche-livre.closed{
  height:15px;
  overflow:hidden;
}
#closeSearch{
  margin-left:10px;
  cursor:pointer;
}




/*#titre-impression { display: none; } 
@media print { 
#bandeau, #menu, .retour-haut, .recherche-livre, 
#toggleMenu { display: none !important; } 
#titre-impression { display: block !important; text-align: center; font-size: 22pt; font-weight: bold; margin: 35mm 0 20mm 0; } }*/


.radio-zone{
  display:flex;
  align-items:flex-start;
  gap:20px;
  flex-wrap:wrap;
}

.radio-wrapper{
  position:relative;
  display:inline-block;
}

.point{
  position:absolute;
  width:40px;
  height:40px;
  border:none;
  border-radius:50%;
  background:transparent;
  cursor:pointer;
  transform:translate(-50%,-50%);
  z-index:10;
}

#legende{
  width:480px;
  line-height:1.1;
   font-size:0.80rem;
}

.explication.active{
 /*background:#ffe66a;*/
  padding:4px 6px;
  margin-bottom:4px;
  border:1px solid #444;
  font-weight : bold;
   border-radius:20px;
}

.active{
  background:#fff3a0;
  outline:1px solid #888;
}

.noir{color:black;}
.bleu{color:blue;}
.bistre{color:brown;}
.rouge1{background:red;color:white;}
.vert1{background:green;color:white;}
.violet1{background:blue;color:white;}
.jaune{color:black; background:yellow;}
.vert{color:green;}
.rouge{color:red;}

.numero{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  margin-right:7px;
  border-radius:50%;
  background:#000;
  color:#fff;
  font-size:11px;
  font-weight:bold;
  line-height:1;
  vertical-align:middle;
}