@charset "utf-8";

.contenu h2.slide {
cursor: pointer;
text-decoration: underline dotted;
}

.contenu h2.slide > span.show {
font-family: monospace;
font-weight: normal;
letter-spacing: -0.2em;
margin-left: 0.3em;
}

/* DEBUT ONGLETS */
.onglets {
height: 2.5em;
border-bottom: 1px solid #999999;
margin-bottom: 2em;
}

.onglets a {
display: inline-block;
width: 10em;
height:  2em;
margin-right: 1em;
text-align: center;
color: #fff;
text-decoration: none;
line-height: 2em;
background-color: #ccc;
border-radius: 0.3em;
}

.onglets a:hover {
background-color: var(--msg-conf-fond);
}

.onglets a.actif {
background-color: var(--msg-conf-color);
}

.contonglets > div {
display: none;
}
/* FIN ONGLETS */

#overlay {
display: none;
opacity: 0;
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
background-color: rgba(0, 0, 0, 0.8);
z-index: 100;
}

#overlay img {
width:  90%;
margin: auto;
}

#dialog {
/*display: none;*/
position: absolute;
width: 70em;
margin: auto;
top: 30%;
left: calc(50% - 30em);
}


#contac {
position: relative;
height: 2.5em;
}

.autocomplete {
display: block;
position: absolute;
width:  calc(35em + 2em);
left: 0;
opacity: 0;
top: calc(2.5em + 1px);
border: 1px solid #999999;
background-color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
z-index: 10;
transition: all 0.3s ease;
}

.autocomplete.block {
display: block;
}

.autocomplete.visible {
opacity: 1;
}

.autocomplete a {
display: block;
width: calc(100% - 2em);
height:  3em;
padding:  0 1em;
color:  #333;
line-height: 3em;
text-decoration: none;
}

.autocomplete a:hover {
background-color:  var(--fond-actif);
}


.block {
display: block;
}

.none {
display: none;
}

.hide {
display: none;
height: 0;
}

.noheight {
height: 0;
}

.slide {
cursor: pointer;
}

.slide span.show {
font-family: monospace;
font-weight: bold;
}

.contslide {
transition: all 0.5s ease;
overflow: hidden;
}

.visible {
animation: fadein 0.5s ease forwards;
}

.invisible {
animation: fadeout 0.5s ease forwards;
}

.message.slideDown {
animation: slideDown 1s ease forwards;
}

.message.slideUp {
animation: slideUp 0.5s ease forwards;
}

/*.lightbox {
display: inline-block;
}

#lboverlay {
display: none;
position: absolute;
left: 0;
top: 0;
margin: 0;
padding: 5em;
width: calc(100vw - 10em);
height: calc(100vh - 10em);
text-align: center;
background-color: rgba(0, 0, 0, 0.8);
z-index: 500;
}

#lboverlay.visible {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
}

#lbimage {
max-width: 100%;
max-height: 100%;
}*/


#lightbox {
display: grid;
position: fixed;
width: 100vw;
height: 100vh;
left: 0;
top: 0;
margin: 0;
padding: 0;
grid-template-columns: 5em auto 5em;
gap: 0;
background-color: rgba(0, 0, 0, 0.7);
place-items: center;
visibility: hidden;
opacity: 0;
transition: visibility .2s, opacity .2s ease;
z-index: 999;
}

#lightbox div {
position: relative;
padding-top: 50px;
transition: padding .2s ease;
}

#lightbox div.slideleft {
transform: translateX(-400px);
opacity: 0;
/*transition: transform 1s, opacity 1s linear;*/
}

#lightbox img {
max-width: 100%;
max-height: 100%;
vertical-align: top;
}

#lightbox span {
position: absolute;
width: 100%;
height: 2em;
left: 0;
bottom: 0;
color: #fff;
font-size: 1.2em;
text-align: center;
line-height: 2em;
background-color: rgba(0, 0, 0, 0.7);
}

#lightbox a {
display: block;
width: 1em;
font-family: Fontello;
font-size: 5em;
color: #fff;
text-align: center;
text-decoration: none;
}

#lightbox.lbvisible {
visibility: visible;
opacity: 1;
transition: opacity .5s ease;
}

#lightbox.lbvisible div {
padding-top: 0;
/*transition: padding .5s ease;*/
transition: padding .5s ease, transform .5s linear, opacity .5s linear;
}


#lightbox div.notransition {
/*transition: none !important;*/
transition: padding .5s ease, opacity .5s linear !important;

}







@keyframes fadein {
from { opacity: 0; }
to   { opacity: 1; }
}

@keyframes fadeout {
from { opacity: 1; }
to   { opacity: 0; }
}

@keyframes slideDown {
from { margin-bottom: 0; height: 0; }
to   { margin-bottom: 2em; height: 5em; }
}

@keyframes slideUp {
from { margin-bottom: 2em; height: 5em; }
to   { margin-bottom: 0; height: 0; }
}



