*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
    width: 100%;
    height: 100%;
}


.site {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
}


ul, li, ol{
    list-style: none;
    padding: 0;
    margin: 0;
}

body {
    background-color: white;
    font-family: 'ABCFavReg';
    color: black;
}

@font-face {
    font-family: ABCFavBook;
    src: url(fonts/ABCFavoritEdu-Book.woff2);
}

@font-face {
    font-family: ABCFavBold;
    src: url(fonts/ABCFavorit-Bold.woff2);
}

@font-face {
    font-family: ABCFavMedium;
    src: url(fonts/ABCFavorit-Medium.woff2);
}

@font-face {
    font-family: ABCFavReg;
    src: url(fonts/ABCFavorit-Regular.woff2);
}

h1, a h1{
    font-family: 'ABCFavMedium';
}

.site-title a{
    font-size: 8rem;
    text-decoration: none;
    letter-spacing: -0.8rem;
    color: black;
}


.site-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main-navigation {
    width: auto;
    padding-top: 1.2rem;
    text-transform: lowercase;
    color: black;
    padding-right: 1em;
   
}

body .main-navigation ul{
    display: flex;
    flex-wrap: wrap;
}

.main-navigation a {
    color: black;
    padding-left: 4px;
    padding-right: 4px;
}


.home-button-group {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
}

ul.worklist {
    margin-top: 3rem;
}

.worklist a{
    display: flex;
    justify-content: space-between;
}

.home .entry-title {
    display: none;
}

.home-button a {
    display: block;
    width: 100%;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 0.9rem;
    text-decoration: none;
    color: black;
}

.main-navigation li {
    margin-right: 2em;  /* Ajoute un espace entre les éléments de la navigation */
}

.main-navigation li:last-child {
    margin-right: 0;  /* Retirer la marge pour le dernier élément */
}

#menu-item-11{
    border: 1px solid black;
    border-radius: 50px;
}

#menu-item-12{
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.home-button a:last-of-type {
    border-bottom: 0;
}

.home-button-group h2{
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 1rem;
    font-weight: 400;
}

p.site-title, h1.site-title {
    padding: 0;
    margin: 0;
    line-height: 1.1;
}

.site-footer {
    display: none;
}

:root{
    --imgHeight: 60vh;
}



.archive main{
    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slideshow{
    width: 100%;
    height:  var(--imgHeight);
    overflow: visible;
    padding: 0 0.5em;
}

.slideshow article, .slider figure{
    margin: 0 0.5em;
    padding-bottom: 2rem;
}

.slideshow img,
.slider img, .slider .wp-block-video{
    width: auto !important;
    height:  var(--imgHeight) !important;
}

.slider .wp-block-video video, .slideshow .wp-block-video{
    height: var(--imgHeight) !important;
}

.slideshow button,
.slider button{
    position: absolute;
    z-index: 9;
}

#navSlideShow{
    margin-top: 4rem;
    display: flex;
    justify-content: flex-end;
}



#navSlideShow .slick-prev {
    left: -60px; /* Ajuste la position de la flèche gauche */
}

#navSlideShow .slick-next {
    right: -60px; /* Ajuste la position de la flèche droite */
}

#navSlideShow .slick-prev::before,
#navSlideShow .slick-next::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    text-decoration: none;
}

#navSlideShow .slick-prev::before {
    background-image: url('./img/arrow_prev1.png'); /* Mets le chemin correct */
}

#navSlideShow .slick-next::before {
    background-image: url('./img/arrownext1.png'); /* Mets le chemin correct */
}

#navSlideShow button{
    background-color: transparent;
    border: none;
    width: 70px;
    height: 40px;
    background-color: transparent;
    overflow: hidden;
}

.aria-label{
    display: none;
}

.single .entry-header{
    display: none;
}

figure{
    margin-top: 0;

}
.site-header,
.site-main,
.site-footer{
    padding: 0 1rem;
}


.worklist ul {
    margin: 0;
    list-style-type: none;
}

.worklist li {
    background-color: white;
   position: relative;
}
.worklist li a{
    outline: 1px solid;
    padding: 0.4em 0.9em;
    background-color: white;
   
}

.dateprojet {
    font-size: 0.7em;
    transform: translateY(-0.5em);
    display: inline-block;
}

.wmedium {
    font-size: 10em;
}

.worktype{
    font-family: 'ABCFavBook';
    font-size: 0.9em;
}


.slideshow .worklist-number {
    background-color: white;
    width: 100%;
    position: absolute;
    bottom: 0;
    color: black;
}

li a {
    text-decoration: none;
    display: block;
    width: 100%;
    color: black;
}

a:visited{
    color: black;
}

/* Mobile (phones) */
@media (max-width: 480px) {
    /* Reduce the site title font size */
    .site-title a {
        font-size: 2rem;  /* Smaller size for phones */
        letter-spacing: -0.1rem;
    }

    /* Reduce slider height */
    :root {
        --imgHeight: 40vh;  /* Decrease height for mobile */
    }

    .slideshow {
        height: var(--imgHeight);
        padding: 0;
        padding-top: 1rem;
    }

    .slideshow img,
    .slider img, 
    .wp-block-video {
        max-width: 100%;
        height: var(--imgHeight) !important;
        object-fit: cover; /* Ensures images scale nicely */
    }

    /* Prevent horizontal scroll */
    .worklist ul {
        width: 100%;
        overflow-x: hidden; 
        padding: 0;
    }

    .worklist li {
        width: 100%;
        box-sizing: border-box;
    }

    .worklist li a {
        font-size: 0.85rem;
       
    }

    .menu li a {
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Slightly reduce site title */
    .site-title a {
        font-size: 3rem;
        letter-spacing: -0.3rem;
    }

    /* Adjust slider height */
    :root {
        --imgHeight: 40vh;
    }

    .slideshow {
        height: var(--imgHeight);
    }

    /* Ensure no horizontal scrolling */
    .worklist ul {
        width: 100%;
        overflow-x: hidden;
    }


}