@font-face {
    font-family: 'Futura Light';
    src: url('fonts/Futura-Std-Light.ttf') format('truetype'),
         url('fonts/Futura-Std-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Odstemplik';
    src: url('fonts/odstemplik.ttf') format('truetype'),
         url('fonts/odstemplik.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BodoniXT';
    src: url('fonts/BodoniXT.ttf') format('truetype'),
         url('fonts/BodoniXT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair';
    src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype'),
         url('fonts/PlayfairDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fanwood';
    src: url('fonts/Fanwood.ttf') format('truetype'),
         url('fonts/Fanwood.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: local('Alegreya Sans Thin'), local('Alegreya-Sans-Thin'),
        url('fonts/AlegreyaSans-Thin.woff2') format('woff2'),
        url('fonts/AlegreyaSans-Thin.woff') format('woff'),
        url('fonts/AlegreyaSans-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
  }



@font-face {
    font-family: 'Euphorigenic';
    src: url('fonts/Euphorigenic.ttf') format('truetype'),
         url('fonts/Euphorigenic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Futura Light', sans-serif;
}

.spacer {
    height: 1000px;
    background: linear-gradient(white, lightgray);
}

body {
    background-color: rgb(245, 245, 245);
}

header {
    position: relative;
    padding-top:10px;
}

.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 20px;
    position: relative;
    margin-bottom:10px;
}

.nav-links {    
    list-style: none;
    display: flex;
    gap: 20px;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
}

.nav-links li a {
    font-family: 'Alegreya Sans', sans-serif;
    color: rgb(174, 114, 114);
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    transition: color 0.5s ease;
    border-right: solid rgba(174, 114, 114) 1px;
    padding-right:30px;
}

.nav-links li a:hover {
    color: rgb(225, 220, 198);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: rgb(150, 139, 112);
    border-radius: 3px;
}

/* Sticky bloc */

#header_scroll{
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    padding-top:20px;
    padding-bottom:15px;
    z-index: 2;
}

#header_noscroll{
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    margin-bottom:-10px;
    z-index: 1;
}

#header_scroll.sticky {
    background-color: #f4f4f4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1000;
}



.sticky-navbar {
    position: relative;
    transition: all 0.3s ease;
}

.sticky-navbar.sticky {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(243, 243, 243, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


#sticky-wrapper {
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
}



#logo_image{
    width:230px;
}

#logo_texte{
    width:230px;
}

/* Responsive blocs */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 200;
}

.articles {
    display: flex;
    flex-direction: row;
    justify-content: center;

    
    
}

.pave-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    line-height: 1.5;
    flex:1;
}

.pave-intro p{
    margin-bottom: 15px;
}

#important {
    color: rgb(255, 255, 255);
    background-color: rgb(187, 180, 150);
    padding: 15px;
    border-radius: 15px;
    font-weight: bold;
}

#center {
    text-align: center;
}

h1 {
    font-family: 'Playfair', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2em;
    font-weight: 100;
}

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width:90%;
    max-width:800px;
    color: rgb(120, 110, 85);
    opacity:0;
    animation: IntroFadeIn 2s ease forwards;
}

#banniere {
    flex-direction: row-reverse; 
    margin-bottom: 20px;  
}

#banniere_reverse {
    flex-direction: row; 
    margin-bottom: 20px; 
}

@keyframes IntroFadeIn {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
        opacity:1;
    }
}

.separator {
    width: 30px;
    height: 3px;
    background-color: rgb(157,145,114);
    margin-left: 20px;
    margin-bottom: 15px;
}

.sep-branche {
    width: 120px; 
    height: 40px; 
    background-image: url("images/logos/sep_branche.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 70%;
    margin-bottom: -20px;
}

.event-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width:100%;
    max-width:800px;
    margin-bottom: 20px;
}

h3 {
    font-family: 'Playfair', sans-serif;
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 200;
}

.text-event{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 0px;
    font-weight: 200;
    opacity:0;
    animation: EventFadeIn 2s ease forwards;
}

.def-event{
    text-align: center;
}

    @keyframes EventFadeIn {
    from {
    }
    to {
        opacity:1;
    }
    }


.text-event p {
    display:block;
    width: 90%;
    line-height: 1.5;
    padding:0px 20px;
    margin-bottom:30px;
}

.responsive-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    padding: 10px;
}

.block {
    width: 100%;
    flex:1;
}

.image-block {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 2s ease, transform 0.6s ease;
}




.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 500;
    border-radius: 3px;
}

.text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    z-index: 5;
}

.pave-text {
    color:rgb(65, 62, 55);
    width: 85%;
}

.text-block h2 {
    font-family: 'Playfair', serif;
    font-size: 1.6rem;
    font-weight: 200;
    margin-top: -100px;
    margin-bottom: 20px;
    margin-left: -5%;
}

.text-block p {
    line-height: 1.5;
}

.narratif-section {
    display: flex;
    flex-direction: column;
    align-items: left;
    max-width: 800px;
    text-align: justify;
}

.pave-narratif p {
    color: rgb(112, 103, 82);
    padding-left: 20px;
    padding-right: 20px;
    text-indent:2rem;
    line-height: 1.7rem;
    margin-bottom: 30px;
}

#first::first-letter {
  font-size: 200%;
}




footer {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 50px;
        }

        .infos-section {
            color: #816d47;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #e2c2c2;
            width: 100%;
            opacity: 0; /* Initial opacity set to 0 */
            transition: opacity 1s ease-in-out; 
        }

        .infos-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 1000px;
            opacity: 0; 
            transition: opacity 0.6s ease-in-out; 
            padding: 20px;
        }

        .pave-infos {
            display: flex;
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
        }

        .info {
            padding: 5px 30px;
        }

        h6 {
            font-family: 'Playfair', serif;
            font-size: 1.2rem;
            padding-top: 10px;
            margin-bottom: 3px;
        }

        .mini_separator {
            display: block;
            height:10px;
        }

        .map-block {
            width: 400px;
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 20px;
            opacity: 0; 
            transform: translateY(0px);
            transition: opacity 1s ease, transform 0.6s ease;
        }

        .pave-map{
            border-radius: 20px;
        }

        .copyright{
            font-family: 'Alegreya Sans', sans-serif;
            font-weight: 1000;
            margin-bottom: 30px;
        }

        .foot-links{
            color: rgb(148, 76, 76);
            list-style-type: none;
            display: flex;
            flex-direction: row;
            width: auto;
            gap: 20px;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .foot-links li a {
            text-decoration: none;
            font-family: 'Alegreya Sans', sans-serif;
            color: rgb(148, 76, 76);
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .foot-links li a:hover {
            color: rgb(225, 220, 198);
        }

        .ent-info{
            display: flex;
            flex-direction: row;
            align-items: end;
            gap:5px;
        }

        .ent-info img{
            width:25px;
        }

        .res-links{
            width:50px;
            list-style-type: none;
            display: flex;
            flex-direction: column;
            gap: 5px;
            margin-bottom: 10px;
            padding-top: 20px;
        }


        .res-links img{
            opacity: 0.8;
            height: 50px;
            width: 50px;
        }

        .res-links a:hover{
            opacity: 0.5;
            transition: opacity 0.3s ease;
        }

        .visible {
            opacity: 1 ;
            transform: translateY(0) scale(1);
        }

.button-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width:80%
}


.button-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    color: #FFFFFF;
    background-color: rgb(185, 172, 139);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.5s ease;
    width:250px;
    font-weight: 200;
}

.button-link:hover {
    background-color: rgb(157,145,114);
}

.marge_bottom {
    height:100px;
}

/* VIDEO */
.video-block {
  height: 500px;  
  overflow: hidden; 
}

.video-rognee {
  width: 100%; /* Remplit la largeur du conteneur */
  height: 100%; /* Remplit la hauteur du conteneur */
  object-fit: cover; /* Rogne pour remplir le conteneur */
}

/*LOADER*/

.image_horizontale {
            width: 1000px;
            height: 300px;
            overflow: hidden;
            position: relative;
            margin: 20px auto;
        }

        .image_horizontale img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            opacity: 0; 
            transition: opacity 2s ease;
        }

        .image_horizontale img.loaded {
            opacity: 1; 
        }

        .loader {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            gap: 10px;
            z-index: 1;
        }

        .loader div {
            width: 20px;
            height: 20px;
            background-color: rgb(174, 114, 114);
            border-radius: 50%;
            opacity: 0;
            animation: blink 1.5s infinite ease-in-out;
        }

        .loader div:nth-child(1) {
            animation-delay: 0s;
        }

        .loader div:nth-child(2) {
            animation-delay: 0.3s;
        }

        .loader div:nth-child(3) {
            animation-delay: 0.6s;
        }

        @keyframes blink {
            0%, 100% { opacity: 0; }
            50% { opacity: 1; }
        }

        .loader {
            display: none;
        }

        .image_horizontale:not(.loaded) .loader {
            display: flex;
        }
    

    .test img{
        width:100px;
        height:50px;
    }



@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        background-color: transparent;
    }

    .logo {
        width: 220px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 65px;
        background-color: rgb(245, 240, 240);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        width: 90%;
        z-index: 1000;
        opacity: 0;
        margin-top:-50px;
    }

    .nav-links li a {
        background-color: rgb(236, 198, 198);
        border-radius:15px;
        border-right: 0px;
        font-family: 'Playfair', sans-serif;
        padding:10px;
    }

    .nav-links.active {
        display: flex;
        animation: NavFadeIn 1s ease forwards;
    }

    @keyframes NavFadeIn {
    from {
        height:0px
    }
    to {
        opacity:90%;
        height:90vh;
    }
    }

    .hamburger {
        display: flex;
        background-color: transparent;
        position: fixed;
        top: 18px;
        left: 20px;
        z-index: 2000; /* au-dessus du logo sticky */
    }

    main {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-section {
        color: rgb(177, 117, 114);
    }

    .separator {
        background-color: rgb(177, 117, 114);
    }

    .articles {
        flex-direction: column;
        align-items: center;
    } 

    .event-section {
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding: 20px 0;
    }

    .text-event p{
        margin-top: -20px;
        margin-bottom: 10px;
    }

    .responsive-section {
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding: 20px 0;
    }

    .block {
        width: 100%;
    }

    .infos-section{
        flex-direction: column;
        align-items: center;
    }

    #header_scroll.sticky {
        background-color: transparent;
        animation: HeaderScrollFadeIn 2s ease forwards;
    }

    @keyframes HeaderScrollFadeIn {
    to {
        background-color: rgba(239, 239, 239, 0.9);
    }
    }

    .button-block {
        align-items: center;
    }

    #banniere {
        flex-direction: column-reverse;   
    }

    #banniere_reverse {
        flex-direction: column;   
}
    .image_horizontale {
        width:90%;
        height:200px;
        margin-top: -10px;
        margin-bottom: -10px;
    }

    .image_horizontale img {
        width: 120%;
        height: 100%;
    }

    h6{
        font-size: 1.1rem;
    }

    .info {
        width: 50%;
        padding: 0px;
    }

    .info p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .res-links{
        flex-direction: row;
        justify-content: center;
        width:100%;
        gap:15px;
    }

    .foot-links{
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 1rem;
            gap:10px;
    }


}
