@font-face {
    font-family: "Ivy-mode";
    src:
      url("../fonts/ivy-mode/IvyMode-Light.ttf"),
      url("../fonts/ivy-mode/IvyMode-Light.woff"),
      url("../fonts/ivy-mode/IvyMode-Light.woff2");
  }

:root {
    --dark-grey: rgba(10, 10, 10, 1);
    --grey: rgba(10, 10, 10, 0.9);
}

.italique{
    font-style: italic;
}

main.screen {
    position: absolute;
    margin: auto;
    top: 0;
    width: 100%;
    z-index: 4;
    opacity: 1;
    transform-origin: center right;
    transition: all 300ms ease-out;
}

main.screen.to-right {
    opacity: 0;
    z-index: 0;
    transform: scaleX(0.4);
}

.page {
    width: 70%;
    margin: auto;
    color: var(--dark-grey);
    z-index: 4;
}

.page .header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: var(--font-titre);
    font-size: clamp(1.5rem, 4.6vh, 5rem);
}

.page .header h1 {
    font-size: clamp(2.3rem, 6vh, 7rem);
    margin: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    color: var(--theme-color);
    opacity: 0;
    white-space: nowrap;
    max-width: 80vw;
    text-wrap: wrap;
    text-align: center;
}

.page .header h1.fade-in-up {
    -webkit-animation: fadeInUp 600ms ease-out both;
    animation: fadeInUp 600ms ease-out both;
}

.page .header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
}

.page .header ul.fade-in-up {
    -webkit-animation: fadeInUp 500ms ease-out 100ms both;
    animation: fadeInUp 500ms ease-out 100ms both;
}

.page .header ul li {
    color: var(--grey);
    opacity: 0.85;
    margin-bottom: 0.8rem;
    transition: color 100ms ease-out;
    cursor: pointer;
}

.page .header ul li:hover {
    color: var(--theme-color);
    opacity: 1;
}

.page .header ul li a {
    text-decoration: none;
    color: inherit;
}

.page .content {
    text-align: justify;
    font-size: clamp(1.1rem, 4vh, 2.8rem);
    font-family: var(--font-text);
}

.page .content .indent{
    display: inline-block;
    width: 6vw;
}

.page .content.in-header {
    margin-top: -28vh;
}
.page .content section {
    margin-bottom: 6rem;
}

.page .content section.fade-in-up {
    opacity: 0.3;
    transform: translateY(5vh);
    transition: all 1000ms ease-out;
}
.page .content section.fade-in-up.show {
    transform: translateY(0vh);
    opacity: 1;
}

.page .content section.jump-up {
    opacity: 0;
    transform: translateY(5vh);
    transition: all 1000ms ease-out;
}
.page .content section.jump-up.show {
    transform: translateY(-10vh);
    opacity: 1;
}

.page .content section .fade-in {
    opacity: 0.3;
    transform: translateY(5vw);
    transition: all 1000ms ease-out, 1s;
}

.page .content section .fade-in.show {
    transform: translateY(0vw);
    opacity: 1;
}

.page .content h2 {
    font-family: var(--font-titre);
    font-size: clamp(1.7rem, 5vh, 5rem);
    color: var(--theme-color);
    opacity: 0.8;
    margin-top: 5rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.page .content h2 span.black {
    display: inline-block;
    color: var(--dark-grey);
    font-size: clamp(1.3rem, 3.5vh, 3rem);
}

.page .content h3 {
    font-family: var(--font-titre);
    color: var(--grey);
    font-size: clamp(1.3rem, 3.5vh, 3rem);
    opacity: 0.8;
    font-weight: 600;
}

.underline{
    text-decoration: underline;
}

.page .content .container {
    position: relative;
}

.page .content .container .illustration{
    position: absolute;
    top: 0%;
    right: 0%;
}

.page .content p {
    margin-bottom: 3rem;
}

.page .content p.indent {
    padding-left: clamp(5rem, 10vw, 8rem);
}

.page .content .box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}
.page .content .box img {
    width: auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
    max-height: 90vh;
}
.page .content .box figcaption {
    font-size: clamp(1.1rem, 3vh, 2.2rem);
    font-family: var(--font-text);
    padding: 10px 0;
}

.page .content .box figcaption a{
    text-decoration: none;
    color: var(--theme-color);
}
.page .content .box figcaption a:hover{
    color: var(--dark-grey);
}

.page .content .box-min {
    width: 50%;
    margin-bottom: 3rem;
    margin-left: 2rem;
    float: right;
}
.page .content .box-min img {
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
    height: auto;
}
.page .content .box-min figcaption {
    font-size: clamp(1.1rem, 3vh, 2.2rem);
    font-family: var(--font-text);
    padding: 10px 0;
}

.page .content ul li {
    list-style: none;
    padding-top: 7px;
}
.page .content ul.liens li a{
    text-decoration: none;
    color: var(--dark-grey);
    transition: all 0.3s ease-out;
}
.page .content ul.liens li a:hover{
    color: var(--theme-color);
}

.page .content  p a.link {
    text-decoration: none;
    color: var(--theme-color);
    transition: none;
}
.page .content  p a.link:hover {
    color: var(--dark-grey);
    transition: color 0.5s ease-out;
}

.page .content .legende {
    font-size: clamp(1.1rem, 3vh, 2.2rem);
    font-family: var(--font-text);
    text-align: center;
}

/* SLIDER ET DIAPORAMA */
.page .content .slider,
.page .content .diaporama{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 95vh;
    margin-bottom: 50px;
    margin-top: 0px;
}
.page .content .diaporama{
    margin-top: 120px;
}
@media (max-aspect-ratio: 4/3) {
    .page .content .slider,
    .page .content .diaporama{
        height: 75vh;
        margin-bottom: 50px;
        margin-top: 0px;
    }
    .page .content .diaporama{
        margin-top: 80px;
    }
}
@media (max-aspect-ratio: 2/2) {
    .page .content .slider,
    .page .content .diaporama{
        height: 65vh;
        margin-bottom: 50px;
        margin-top: 0px;
    }
    .page .content .diaporama{
        margin-top: 60px;
    }
}
@media (max-aspect-ratio: 3/4) {
    .page .content .slider,
    .page .content .diaporama{
        height: 50vh;
        margin-bottom: 50px;
        margin-top: 10px;
    }
    .page .content .diaporama{
        margin-top: 60px;
    }
}
@media (max-aspect-ratio: 9/16) {
    .page .content .slider,
    .page .content .diaporama{
        height: 40vh;
        margin-bottom: 50px;
        margin-top: 10px;
    }
    .page .content .diaporama{
        margin-top: 60px;
    }
}
.page .content .slider_slide {
    position: absolute;
    transform: translateX(-100%);
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s linear;
    background-position: center center;
   /*  background-size: cover; */
   background-size: contain;
    background-repeat: no-repeat;
}
.page .content .diaporama_slide {
    position: absolute;
    transform: translateX(-100%);
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s linear;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
.page .content .slider_slide.active,
.page .content .diaporama_slide.active{
    opacity: 1;
    transform: translateX(0%);
}
.page .content .diaporama_slide .diaporama_content{
    position: absolute;
    width: 100%;
    max-width: 600px;
    bottom: 0px;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    /* transform: translateY(100%); */
    opacity: 0;
    transition: opacity 0.5s linear 1s;
    color: #f3f3f3;
  }
  .page .content .diaporama_slide .diaporama_notice{
    position: absolute;
    width: 100%;
    bottom: 0px;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s linear 1s;
    color: #f3f3f3;
  }
  @media screen and (min-width: 600px) {
    .page .content .citation {
        width: 80%;
        margin: auto;
    }
    .page .content .diaporama_slide .diaporama_content{
      border-radius: 0px 50px 0px 0px;
    }
    .page .content ul.liens{
        margin-left: 10%;
    }
  }
  .page .content .diaporama_slide .diaporama_auteur span {
    display: block;
    font-weight: 300;
    color: var(--grey);
  }
  .page .content .diaporama_slide .diaporama_desc{
    font-size: clamp(1.1rem, 3vh, 2.2rem);
    font-family: var(--font-text);
    padding-left: 30px;
  }
  .page .content .diaporama_slide .diaporama_titre{
    color: var(--theme-color);
    font-family: var(--font-titre);
    text-transform: uppercase;
  }
  .page .content .diaporama_slide .diaporama_resp{
    font-family: var(--font-text);
    padding-left: 30px;
  }
  .page .content .diaporama_slide .diaporama_editeur{
    font-size: clamp(1.1rem, 3vh, 2.2rem);
    font-family: var(--font-text);
    padding-left: 30px;
  }
  /* cartel */
  .page .content .diaporama_slide .diaporama_cartel{
    position: absolute;
    width: 100%;
    max-width: 350px;
    bottom: 0px;
    left: 0px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.1s linear 3s;
  }
  .page .content .diaporama_slide .diaporama_cartel img{
    width: 100%;
  }
  /* notice */
  .page .content .diaporama_slide .diaporama_notice{
    position: absolute;
    width: 100%;
    bottom: 0px;
    left: 0px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.1s linear 1.8s;
  }
  
  .page .content .diaporama_slide.active .diaporama_content,
  .page .content .diaporama_slide.active .diaporama_notice {
   /*  transform: translateY(1%); */
   opacity: 1;
  }
  .page .content .diaporama_slide.active .diaporama_cartel {
    opacity: 0;
   }

/* SLIDER BUTTONS */
.page .content .slider_btns {
    position: absolute;
    z-index: 999;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}
.page .content .slider_btns .slider_btn {
    font-family: var(--font-text);
    width: 40px;
    height: 40px;
    color: #ffce00;
    font-size: 28px;
    line-height: 35px;
    text-align: center;
    font-weight: 300;
    border-radius: 50%;
    background: none;
    border: 1px solid #ffce00;
    cursor: pointer;
    transition: all 0.2s linear, color 0.2s ease-out;
}
.page .content .slider_btns .slider_btn:hover {
    background: #ffce00;
    color: #171717;
}

/* BIOBLIOGRAPHIE */
.illustrations{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 7%;
    padding-right: 7%;
    justify-content: space-around;
}
@media (orientation: portrait) {
    .illustrations img{
        max-height: 30vh;
        margin-top: 40px;
    }
}
@media (orientation: landscape) {
    .illustrations img{
        max-height: 50vh;
        margin-top: 40px;
    }
}

.illustrations img:hover{
    cursor: pointer;
}

/* ACTUALITES */
.actu_btns{
    position: absolute;
    z-index: 999;
    top: 62vh;
    width: 70%;
    padding-top: 15px;
    padding-bottom: 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
}
.actu_btns .actu_btn {
    font-family: var(--font-text);
    width: 40px;
    height: 40px;
    color: #ffce00;
    font-size: 28px;
    line-height: 35px;
    text-align: center;
    font-weight: 300;
    border-radius: 50%;
    background: none;
    border: 1px solid #ffce00;
    cursor: pointer;
    transition: all 0.2s linear, color 0.2s ease-out;
}
.actu_btns .actu_btn:hover {
    background: #ffce00;
    color: #171717;
}
.actu_btns .date{
    font-family: var(--font-titre);
    font-size: clamp(1.5rem, 4.6vh, 5rem);
    color: var(--grey);
    opacity: 0.85;
    text-align: center;
    width: 25vw;
}

.actualite .content{
    position: absolute;
    width: 70%;
}

.actualite .content.in-header {
    margin-top: -15vh;
}

.actualite .content h4 {
    font-family: var(--font-titre);
    color: var(--theme-color);
    font-size: clamp(1.5rem, 4.6vh, 5rem);
    opacity: 0.8;
    margin-bottom: 5vh;
}
.actualite .content .news{
    margin-left: 6vw;
    margin-right: 6vw;
    margin-bottom: 10vh;
}
  
.actualite[data-status="active"] {
    transition: opacity 300ms ease-in;
}
  
.actualite[data-status="inactive"] {
    opacity: 0;
    pointer-events: none;
}

.actualite[data-animation="opening"] {
    transition-delay: 900ms;
}
.actualite[data-order="first"] .prev {
    visibility: hidden;
    pointer-events: none;
}
.actualite[data-order="last"] .next {
    visibility: hidden;
    pointer-events: none;
}
.actualite .svg-center{
    text-align: center;
}
.actualite .svg-center svg{
    fill: rgba(255, 206, 0, 0.8);
    transform: scale(2.2);
    transition: fill .2s ease-out;
}
.actualite .svg-center svg:hover{
    fill: #ffce00;
    cursor: pointer;
}

.actualites .flex-container{
    display: flex;
    justify-content: space-between;
}
.actualites .flex-container img{
    width: 23%;
}

.actualites .legende{
    margin-top: 2rem;
}

.actualites .tooltip{
    position: relative;
}

.actualites .tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.419);
    color: #ffce00;
    text-align: center;
    padding: 5px 0;
    font-size: .8em;
    border-radius: 6px;
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
    top: 57%;
    pointer-events:none;
}
/* Show the tooltip text when you mouse over the tooltip container */
.actualites .tooltip:hover .tooltiptext {
    visibility: visible;
    transition-delay: 1s;;
}

.actualites a{
    text-decoration: none;
    color: var(--theme-color);
}
.actualites a:hover{
    color: var(--dark-grey);
}
.actualites .titre-centre{
    text-align: center;
    padding-bottom: 2rem;
}
.actualites span.alinea{
    display: inline-block;
    margin-left: 10%;
}

.page .content .box img.horizontale {
        width: 100%;
    }



/* TOOLTIP */
.page .content p .with-tooltip {
    position: relative;
}
.page .content p .with-tooltip #adresse {
    color: var(--theme-color);
    transition: none;
}
.page .content p .with-tooltip #adresse.active {
    opacity: 0.1;
}
.page .content p .with-tooltip #adresse:hover {
    cursor: pointer;
    color: var(--dark-grey);
    transition: color 0.5s ease-out;
}
.page .content p .with-tooltip #bulle {
    position: absolute;
    font-weight: normal;
    opacity: 0;
    left: 10%;
    bottom: 0%;
    transform: rotateZ(-120deg);
    font-family: var(--font-text);
    /* font-size: clamp(0.9rem, 3vh, 2.2rem); */
    color: var(--dark-grey);
    transition: none;
    pointer-events: none;
}
.page .content p .with-tooltip #bulle.active {
    opacity: 1;
    color: var(--theme-color);
    transform: rotateZ(0deg);
    transition: all 0.2s ease;
}

.content footer {
    width: 115%;
    text-align: right;
    font-size: clamp(1.1rem, 3vh, 2.2rem);
    z-index:5;
    font-family: var(--font-text);
    opacity: 0.7;
    margin-bottom: 3rem;
}

.content footer a {
    text-decoration: none;
    color: var(--dark-grey);
    opacity: 0.7;
}
.content footer a:hover {
    opacity: 1;
    cursor: pointer;
}

.content footer.to-left{
    opacity: 0;
}

cite, .italic {
    font-style: italic;
}

/* gallery 3 columns */
.photo-gallery{
    display:flex;
    gap: 20px;
}

.column{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* lightbox */
#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .8);
    display: none;
}

#lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

svg.file{
    margin-left: 10px;
}
svg.file:hover{
    cursor: pointer;
    fill: var(--theme-color);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(120px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@media (orientation: portrait) {
    .page .content {
        font-size: clamp(1.1rem, 3vh, 2.8rem);
    }
}

@media (max-width: 1070px) {
    .page .content .container .illustration{
       display: none;
    }
    .photo-gallery{
        gap: 15px;
    } 
    .column{
        gap: 15px;
    }
}

@media (max-width: 870px) {
    .photo-gallery{
        gap: 10px;
    } 
    .column{
        gap: 10px;
    }
    .actu_btns .date{
        width: 35vw;
    }
}

@media (max-width: 670px) {
    .page .content {
        text-align: left;
    }
    .photo-gallery{
        gap: 7px;
    } 
    .column{
        gap: 7px;
    }
}

@media (max-width: 570px) {
    .page {
        width: 77%;
        margin: auto;
    }
    .page .header h1 {
        max-width: 80vw;
        text-wrap: wrap;
        text-align: left;
    }
    .actu_btns{
        width: 77%;
    }
    .actu_btns .date{
        width: 50vw;
    }
    .actualite .content{
        width: 77%;
    }
    .page .content {
        text-align: left;
    }
    .page .content .box img {
        width: 100%;
    }
    .page .content .box figcaption {
        width: 100%;
    }
    /* .photo-gallery{
        flex-direction: column;
    } */
}
@media (max-width: 470px) {
    .actu_btns .date{
        width: 60vw;

    }
    .too-long{
        display: none;
    }
}
@media (max-width: 420px) {
    .actu_btns .date{
        width: 70vw;

    }
}
@media (max-width: 370px) {
    .actu_btns .date{
        width: 100vw;

    }
}



