/* 
Aloïs Rigotti
2023-12-18
Version 1
*/

/* _______________________________ FONT _____________________ */

@font-face {
    font-family: 'EuclidCircularA';
    font-weight: 400;
    font-style: normal;
    src: url("font/EuclidCircularA-Regular-WebXL.woff2") format('woff2'),
        url("font/EuclidCircularA-Regular-WebXL.woff") format('woff');
}

@font-face {
    font-family: 'EuclidCircularA';
    font-weight: 400;
    font-style: italic;
    src: url("font/EuclidCircularA-RegularItalic-WebXL.woff2") format('woff2'),
        url("font/EuclidCircularA-RegularItalic-WebXL.woff") format('woff');
}

@font-face {
    font-family: 'EuclidCircularA';
    font-weight: 300;
    font-style: normal;
    src: url("font/EuclidCircularA-Light-WebXL.woff2") format('woff2'),
        url("font/EuclidCircularA-Light-WebXL.woff") format('woff');
}

@font-face {
    font-family: 'EuclidCircularA';
    font-weight: 300;
    font-style: italic;
    src: url("font/EuclidCircularA-LightItalic-WebXL.woff2") format('woff2'),
        url("font/EuclidCircularA-LightItalic-WebXL.woff") format('woff');
}

@font-face {
    font-family: 'EuclidCircularA';
    font-weight: 500;
    font-style: normal;
    src: url("font/EuclidCircularA-Medium-WebXL.woff2") format('woff2'),
        url("font/EuclidCircularA-Medium-WebXL.woff") format('woff');
}

@font-face {
    font-family: 'EuclidCircularA';
    font-weight: 500;
    font-style: italic;
    src: url("font/EuclidCircularA-MediumItalic-WebXL.woff2") format('woff2'),
        url("font/EuclidCircularA-MediumItalic-WebXL.woff") format('woff');
}

/* _______________________________ ROOT _____________________ */

:root {
    --primary: #fff;
    --secondary: #000;
    --mobile: 600px;
}

/* * {
    border: 1px solid salmon;
} */

/* _______________________________ STRUCTURE ________________ */
html,
body {
    max-height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-family: 'EuclidCircularA', sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

.container {
    /* width: 92vw; */
    margin: 0 auto;
    max-width: 1250px;
    padding: 0 3rem;

    transition: all 80ms;
}

.site-header,
.site-footer {
    background-color: grey;
    padding: 1px 0;
}

figure {
    /* height: 100%;
    width: auto; */
    margin: 0;
    padding: 0;
}

img {
    /*width: 100%;
    height: auto;*/
    max-width: 100%;
}

*:focus {
    outline: 0 !important;
}

.overlay {
    background: none;
}

@media screen and (max-width: 600px) {

    .container {
        padding: 0 1rem;
    }
}

/* _______________________________ TYPOGRAPHIE ______________ */

h1,
h2,
h3 {
    margin: 1rem 0;
    /* font-size: 6.666em; */
    font-size: 3em;
    font-weight: 500;
    line-height: 1;
}

a,
a:visited,
a:hover {
    color: var(--secondary);
    text-decoration: none;
}

a:active,
a:focus,
a:focus-visible {
    outline: 0;
    border: none;
    --moz-outline-style: none;
    background-color: transparent;
}

/* _______________________________ LOGIN ____________________ */
.error404 .site-main {
    padding-top: 50dvh;
}

.error404 .not-found {
    transform: translateY(-70%);
}

.error404 #breadcrumbs {
    display: none;
}

.error404 .site-footer {
    display: none;
}

.error404 a:hover {
    text-decoration: underline;
}

/* _______________________________ HEADER ___________________ */
.site-header {
    font-size: 1.333em;
    mix-blend-mode: difference;
    z-index: 9999999999 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
}

.site-header a {
    color: var(--primary);
}

.site-header .container {
    position: relative;
    max-width: 100%;
    margin: 0 3rem;
}

.site-header .site-title {
    position: absolute;
    top: 0;
    left: 0;
}

.site-header #breadcrumbs {
    position: absolute;
    top: 0;
    left: 120px;
    color: var(--primary);
}



.site-description {
    position: absolute;
    left: -999999px;
}

@media screen and (max-width: 600px) {
    .site-header .container {
        margin: 0 1rem;
    }

    .single .breadcrumb_last {
        position: fixed;
        bottom: 0;
        left: 10px;
    }
}

/* _______________________________ NAVIGATION PRINCIPALE ____ */

.menu-toggle {
    display: none;
}

.menu-menu-principal-container {
    display: none;
}

.menu-menu-principal-container,
.archive-nav {
    position: absolute;
    top: 50dvh;
    left: 0;
    transform: translateY(-50%);
    z-index: 999 !important;
}

.main-navigation ul {
    display: block;
    font-size: 1.7em;
    margin-bottom: 0;
}

.main-navigation a:hover::after {
    content: '·';
    margin-left: .2em;
}

@media screen and (max-width: 600px) {
    .menu-menu-principal-container {
        right: 0;
        margin: 0 auto;
        text-align: center;
    }

    .main-navigation ul {
        font-size: 1.5em;
    }

    .main-navigation a:hover::after {
        display: none;
    }
}

/* _______________________________ NAVIGATION SECONDAIRE ____ */

.archive-nav ul {
    list-style-type: none;
    padding: 0 0 0 5px;
    margin-bottom: 0;
    z-index: 999999999 !important;
}

.archive-nav a:hover::after {
    content: '·';
    margin-left: .2em;
    font-weight: 600;
    padding-left: -10px;
}

@media screen and (max-width: 600px) {
    .archive-nav ul {
        margin-left: 10px;
    }

    .archive-nav a:hover::after {
        content: none;
        margin: 0;
    }
}


/* _______________________________ FOOTER ___________________ */

.site-footer {
    display: none;
}

/* _______________________________ PAGES ____________________ */

.post,
.page {
    margin: 0;
}

.entry-content {
    margin: 0;
}


.page h1 {
    position: absolute;
    left: -99999999px;
}

/* .site-main {
    opacity: 0;
}

.loaded .site-main {
    opacity: 1;
} */


/* _______________________________ ACCUEIL __________________ */

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

.home .site-header #breadcrumbs {
    display: none;
}

.home .menu-menu-principal-container {
    display: block;
}


/* _______________________________ SLIDER ___________________ */


.slick-track {
    display: flex;
    align-items: center;
    pointer-events: none;
}


.slick-slider .slick-track,
.slick-slider .slick-list {
    transform: none;
}

.slick-list .slick-slide,
body .slick-slider,
.slick-list {
    z-index: 0 !important;
}

.slick-track h2,
.slick-track h3 {
    margin: 0;
}

.slick-track h2 a,
.slick-track h3 a {
    position: fixed;
    bottom: 1rem;
    z-index: 20;
    font-size: 1rem;
    max-width: 80vw;
    font-weight: 400;
    color: var(--secondary);
}

figure.wp-block-gallery.has-nested-images,
.slick-slider {
    display: flex;
    align-items: center;
    height: 100dvh;
}

.slick-slide {
    /* background-color: blue; */
    width: 100vw;
    pointer-events: none;
}

.slick-active a {
    pointer-events: all;
}

.slick-slide img {
    display: block;
    margin: 0 auto;
    width: auto;
    /* max-width: 85vw; */
    max-height: calc(100dvh - 8rem);
    /* background-color: greenyellow; */
}

body .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
body .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
    width: auto;
    object-fit: contain;
    height: auto;
    flex: none;
}

@media screen and (max-width: 600px) {
    .slick-slide img {
        max-height: calc(100dvh - 6rem);
    }
}


/* _______________________________ CATEGORIES _______________ */

.category h1 {
    position: absolute;
    left: -99999999px;
}

.category .slick-slide a img {
    object-fit: contain;
    height: 100%;
}

/* 
.category .slick-slide figure {
    aspect-ratio: 16/9;
} */


/* _______________________________ SINGLE ___________________ */

.single-post h1 {
    position: absolute;
    left: -99999999px;
}

/* _______________________________ VIDEOS ___________________ */
.aroundvideo {
    display: flex;
    align-items: center;
    height: 100dvh;
}

.aroundvideo .wp-block-group__inner-container {
    width: 100%;
}

.wp-block-embed-youtube iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

/* .video-vertical iframe {
    aspect-ratio: 9/16;
} */

/* _______________________________ ABOUT ____________________ */

.around-about {
    display: flex;
    align-items: center;
    height: 100dvh;
}

.about {
    margin-bottom: 0;
}

.about .left {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
}

.about .left p {
    width: 100%;
}

.about a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 781px) {
    .about .left {
        display: flex;
        align-items: end;
    }

    .about .left p {
        width: 50%;
    }

    .about .left p:first-child {
        text-align: initial;
    }
}

@media screen and (max-width: 600px) {
    .about a:hover {
        text-decoration: none;
    }
}