/* Import custom fonts */
@font-face {
    font-family: 'ContentFont';
    src: url('fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'HeaderFont';
    src: url('fonts/Sverdlovsk.otf') format('truetype');
}

/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

/* Header styles */
header {
    background-color: transparent;
    position: fixed;
    display: flex;
    overflow: hidden;
    transition: all 0.4s;
    flex-direction: column;
    width: 100%;
    top: 0;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'HeaderFont', Arial, sans-serif;
}


.shrink {
    padding: 0;
    height: 0;
}

.unshrink {
    height: 40px !important;
}

header .title {
    color: #FFFFFF; /* White text color for title */
    font-size: 5em; /* Bigger font size for title */
    font-weight: bold; /* Emphasize the title */
    user-select: none; /* Prevent text selection */
    text-align: center;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li a {
    display: inline-block;
    color: #FFFFFF; /* White text color for nav items */
    text-align: center;
    padding: 10px 30px;
    text-decoration: none;
    border-right: 2px solid #FFFFFF; /* Add border to nav items */
    font-size: 3em;
}

header nav ul li:last-child a {
    border: none;
}

header nav ul li a:hover {
    background-color: rgb(146, 125, 59, 0.5);
}

.menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: white;
    text-decoration: none;
}

/* Mobile styles */
.menu-icon {
    z-index: 0;
    display: none;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
    }

    .menu.show {
        display: flex;
    }

    .label {
        max-height: 50vh !important;
        max-width: 50vw !important;
    }

    .LabelTitle {
        font-size: 2em !important;
    }
    
    .LabelContent {
        margin-top: 7vh !important;
    }
    
    .LabelContent1 {
        font-size: 1.5em !important;
    }
    
    .LabelContent2 {
        font-size: 1em !important;
    }
}

.arrow-up {
    z-index: 2;
    position: fixed;
    align-items: center;
    right: 50%;
    top: 15px;
    transition: all 0.4s;
    width: 20px;
    height: 0px;
    cursor: pointer;
}

section {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-start; /* Align to the start (left) */
    text-align: left; /* Align text to the left */
    align-items: center;
    position: relative;
    padding-left: 2%; /* Add some padding on the left */
    font-family: 'ContentFont', Arial, sans-serif; /* Custom font for content */
}

#divider0 {
    width: 100%;
    height: 5px; /* Fixed height of the bar */
    background-color: rgb(146, 125, 59, 1);
    position: relative;
    z-index: 1;
}

#filler0 {
    height: 100%;
    width: 0;
    background-color: rgba(105, 105, 105, 1);
}

#divider1 {
    width: 100%;
    height: 5px; /* Fixed height of the bar */
    background-color: rgba(105, 105, 105, 1);
    position: relative;
    z-index: 1;
}

#filler1 {
    height: 100%;
    width: 0;
    background-color: rgba(86, 159, 220, 1);
    transition: width 0.3s;
}

#divider2 {
    width: 100%;
    height: 5px; /* Fixed height of the bar */
    background-color: rgba(36, 66, 40, 1);
    position: relative;
    z-index: 1;
}

#filler2 {
    height: 100%;
    width: 0;
    background-color: rgba(105, 105, 105, 1);
    transition: width 0.3s;
}

.sectionRight {
    justify-content: flex-end; /* Align content to the right */
    padding-left: 0; /* Remove left padding */
    padding-right: 2%; /* Add some padding on the right */
}

.sectionCenter {
    justify-content: center; /* Align content to the right */
}

.veil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1918;
    opacity: 0.9;
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 10s ease;
}

.grid .hiddent {
    z-index:0;
}


.grid {
    z-index:6;
    position: fixed;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#veilContent1 {
    z-index: 6;
    background-image: url('img/sarment1.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 200px;
    width: 100px;
    grid-row: 1;
    grid-column: 2;
    margin-left: calc(50% - 50px);
}

#veilContent2 {
    z-index: 6;
    background-image: url('img/sarment2.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 200px;
    width: 100px;
    grid-row: 2;
    grid-column: 1;
    margin-top: calc(12.5vh);
    margin-left: calc(100% - 100px);
}

#veilContent3 {
    z-index: 6;
    background-image: url('img/sarment3.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 200px;
    width: 100px;
    grid-row: 2;
    grid-column: 3;
    margin-top: calc(12.5vh);
}

#veilContent4 {
    z-index: 6;
    background-image: url('img/sarment4.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 200px;
    width: 100px;
    grid-row: 3;
    grid-column: 2;
    margin-left: calc(50% - 50px);
}

#content0 {
    z-index: 6;
    height: 100vh;
    width: 100vh;
    font-size: 1.5rem;
    text-align: center;
    grid-row: 2;
    grid-column: 2;
}

section::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Dark overlay */
}

.content {
    height: 40vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    color: white;
    opacity: 0.9;
    border-radius: 10px; /* Rounded corners for better aesthetics */
    margin-top: 50px;
    margin-bottom: 50px;
    will-change: transform;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth; /* Smooth scrolling */
}


/* Hide scrollbar for Chrome, Safari and Opera */
.content::-webkit-scrollbar {
    display: none;
}

.paragraph-container {
    position: relative;
}

.paragraph {
    margin: 20px 0;
    position: relative;
}

h1 {
    font-size: 3em;
    text-align: center;
    color: white;
    font-style: bold;
    margin: 10px;
    font-family: 'HeaderFont', Arial, sans-serif;
}

.content .paragraph {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.paragraph-blackwhite {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Adding delays to each paragraph */
.content .paragraph-blackwhite:nth-child(1) {
    animation-delay: 0.5s;
}

.content .paragraph-blackwhite:nth-child(2) {
    animation-delay: 1s;
}

.content .paragraph-blackwhite:nth-child(3) {
    animation-delay: 1.5s;
}

.content .paragraph-blackwhite:nth-child(4) {
    animation-delay: 2s;
}

.content .paragraph:nth-child(1) {
    animation-delay: 0.5s;
}

.content .paragraph:nth-child(2) {
    animation-delay: 1s;
}

.content .paragraph:nth-child(3) {
    animation-delay: 1.5s;
}

.content .paragraph:nth-child(4) {
    animation-delay: 2s;
}

p {
    font-size: 1.2em;
}

.label {
    max-height: 25vw;
    max-width: 50vw;
    position: relative;
    z-index: 1;
    background-color: white ;
    color: black;
    font-family: 'HeaderFont', Arial, sans-serif;
    align-items: center;
}

.LabelTitle {
    font-size: 3em;
    font-style: bold;
    margin: 0em;
    margin-top: 7vh;
}

.LabelContent {
    margin-top: 7vh;
    text-align: end;
    padding-right: 7vh;
}

.LabelContent1 {
    font-size: 2em;
    margin-bottom: 0;
}

.LabelContent2 {
    font-size: 1.5em;
    margin-top: 0;
}

#section0 {
    padding-top: 50px;
    background-image: url('img/accueil.jpg?width=1920&height=1080');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#section1 {
    background-image: linear-gradient(to left, rgba(40, 40, 40, 0) 20%, rgba(40, 40, 40, 0.6) 90%), url('img/racines.jpg?width=1920&height=1080'); /* Add gradient overlay */
}

#section2 {
    background-image: linear-gradient(to right, rgba(40, 40, 40, 0) 20%, rgba(40, 40, 40, 0.5) 90%), url('img/engagement.jpg?width=1920&height=1080'); /* Add gradient overlay */
}

#section3 {
    background-image: linear-gradient(to left, rgba(40, 40, 40, 0) 20%, rgba(40, 40, 40, 0.7) 90%), url('img/audela.jpg?width=1920&height=1080'); /* Add gradient overlay */
}

#section4 {
    background-image: linear-gradient(to top, rgba(40, 40, 40, 0) 20%, rgba(40, 40, 40, 0.7) 90%), url('img/hommes.jpg?width=1920&height=1080'); /* Add gradient overlay */
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 50px;
}


.citation {
    margin-top: 180px;
    color: white;
    text-align: center;
}


.slider {
    margin-top: 2.5%;
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 500px; /* Set a fixed height for the slider */
    overflow: hidden;
    border: 2px solid #ccc;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.slide.active {
    display: flex;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure the image fits inside the slider */
    border-radius: 10px;
}

.thumbnails {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Prevent thumbnails from blocking arrow clicks */
}

.prev-thumbnail, .next-thumbnail {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border: 2px solid #ccc;
    cursor: pointer;
    pointer-events: auto; /* Allow clicks on thumbnails */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prev-thumbnail img, .next-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    user-select: none;
}

.nav.prev {
    left: 10px;
}

.nav.next {
    right: 10px;
}

.nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

section .content {
    position: relative;
    z-index: 0;
    padding: 20px;
    width: 30vw;
    min-width: 300px;
}

/* Wave effect */
@keyframes wave {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.wave-effect {
    animation: wave 0.6s ease-out;
}

footer {
    height: auto;
    background: #333;
    color: white;
    width: 100%;
}

.footer-content {
    max-height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    gap: 5%;
}

.footer-content h3 {
    width: 33%;
    font-size: 24px;
    font-family: 'HeaderFont', Arial, sans-serif; /* Custom font for content */
}

.footer-content p {
    width: 33%;
    font-family: 'ContentFont', Arial, sans-serif; /* Custom font for content */
}