/*
Theme Name: Agence EM - home+artists
Theme URI: 
Author: jojo
Author URI: https://joanajost.fr
Description: agence em theme
Version: 1.1
License: 
License URI: 
Text Domain: xxx
Tags: 
*/

:root {
    /* couleurs */
    --white: #ffffff;
    --black: #000000;
    --gris50: #808080;
    /* typos */
    --sans-serif: 'Inter', Arial, Helvetica, sans-serif;
    --sans-serif-tight: 'InterTight', Arial, Helvetica, sans-serif;
    /* texte */
    --body-txt: 13pt;
    --labor-txt: 14pt;
    --small-txt: 12pt;

    --mobile-txt: 12pt;
    --mobile-small-txt: 11pt;

    /* graisses */
    --extralight: 200;
    --light: 300;
    --regular: 400;
    --medium: 500;
    --semibold: 600;
    --bold: 700;


    /* tailles */
    --big-margin: 36px;
    --big-margin-y: 30px;
    --space: 120px;

    --column: calc((100vw - calc(var(--big-margin) * 2)) / 12);

    --mobile-big-margin: 20px;
    /* ombre */
    --shadow: 0px 0px 3px rgba(0, 0, 0, 0.25);

    /* transition */
    --smooth03: all 0.3s ease-in-out;
}



/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-optical-sizing: auto;
    list-style: none;
}



body {
    background-color: var(--white);
    font-family: var(--sans-serif);
    font-size: var(--body-txt);
    transition: all 0.7s ease-in-out;


    color: var(--black);

    /* margin: var(--big-margin-y) var(--big-margin); */
    margin-top: var(--big-margin);
    margin-right: var(--big-margin);
    margin-bottom: var(--big-margin-y);
    margin-left: var(--big-margin);
}

::-moz-selection {
    background-color: var(--black);
    color: rgb(220, 220, 220);
}

::selection {
    background-color: var(--black);
    color: rgb(220, 220, 220);
}

/* ==============
LIENS 
=================*/

a {
    color: var(--black);
    text-decoration: none;
    /* opacity: 1; */
    transition: opacity 0.3s ease-in-out;
}

a:hover {
    font-style: italic;
}

/* flèche après liens externes */
.external-link::after {
    content: "\2197";
    font-size: 0.7em;
    display: inline-block;
    transform: translateY(-0.5em);
}


.external-link.fw300::after {
    font-weight: 400;
}


.external-link.fw400::after {
    font-weight: var(--medium);
}

.external-link.fw600::after {
    font-weight: var(--bold);
}

/* CLASSES TYPO */

.tight {
    font-family: var(--sans-serif-tight);
}

.extralight {
    font-weight: var(--extralight);
}

.light {
    font-weight: var(--light);
}

.regular {
    font-weight: var(--regular);
}

.medium {
    font-weight: var(--medium);
}

.semibold {
    font-weight: var(--semibold);
}

.italic {
    font-style: italic;
}

.tight .italic {
    letter-spacing: -0.015em;
}

.uppercase {
    text-transform: uppercase;
}

.labor-lh {
    line-height: 150%;
}

.grey50 {
    color: var(--gris50);
}

.small-caps {
    font-size: var(--small-txt);
}


/* CLASSES DIMENSIONS */
.space-after {
    margin-bottom: var(--space);
}


/* HEADER */

header {
    /* background-color: rgb(143, 220, 255); */
    background-color: var(--white);
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;

    padding: var(--big-margin);

    z-index: 99;
}

.site-header {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
}

.site-header img {
    width: 200px;
    height: auto;
}

.site-main-nav li {
    font-family: var(--sans-serif-tight);
    text-transform: uppercase;
    font-weight: var(--medium);
    letter-spacing: 0.02em;

    margin-left: 60px;
}

/* non cliquable */
.non-cliquable {
    pointer-events: none;
    cursor: default;
}



/* ==============
slider
============== */
.slider-galerie {
    width: 100%;
    position: relative;
}

.js-swiper.swiper .swiper-wrapper {
    padding-left: 0 !important;
}

.swiper {
    overflow-y: visible !important;

    padding-left: var(--big-margin) !important;
    padding-right: var(--big-margin) !important;
}


.swiper-slide {
    width: auto !important;
    height: 100%;
    display: flex;
}

/* Contenu du slide (figure) */
.galerie-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.galerie-item img,
.galerie-item video {
    height: 70vh;
    width: auto;
    object-fit: cover;
    max-width: calc(100vw - 16px);
}

.galerie-item figcaption {
    display: block;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.25;
    padding-top: 0.3rem;
    padding-right: 1em;
    /* font-size: 11pt; */
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}


/* Désactiver le contenu SVG injecté par Swiper */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev,
.swiper-button-next {
    top: 0 !important;
    transform: translateY(90%);
    color: black !important;
    display: block !important;
    width: 1em !important;
    font-size: 50px;
    font-weight: 100;
    height: 35vh !important;

    text-shadow: 0px 0px 15px #FFF, 0px 0px 10px #FFF;

    transition: all 0.3s ease-in-out;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    font-weight: 130;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 0 !important;
}

.swiper-button-prev {
    left: 26px !important;
}

.swiper-button-next {
    right: 20px !important;
}

/* FOOTER */


.page-wrapper {
    position: relative;
    min-height: calc(100vh - var(--space));
    padding-bottom: 100px;
    box-sizing: border-box;
}

.temporary-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    text-align: end;
    padding: 0 var(--big-margin) var(--big-margin) var(--big-margin);
    margin-top: calc(var(--space) - var(--big-margin));
    opacity: 0.15;
    font-weight: 300;
    font-size: 10pt;
    transition: var(--smooth03);
}

.temporary-credit:hover {
    opacity: 0.3;
}



@media screen and (max-width: 768px) {
    body {
        font-size: var(--mobile-txt);
        margin: var(--space) var(--mobile-big-margin);
    }

    header {
        padding: var(--mobile-big-margin);
    }

    .site-header img {
        width: 30vw;
        min-width: 150px;
        max-width: 200px;
    }

    .site-main-nav li {
        margin-left: auto;
    }

    .small-caps {
        font-size: var(--mobile-small-txt);
    }


    /* slider */

    .swiper {
        overflow-y: visible !important;
        overflow-x: clip !important;
        padding-left: var(--mobile-big-margin) !important;
        padding-right: var(--mobile-big-margin) !important;
    }

    .galerie-item img,
    .galerie-item video {
        width: calc(100vw - calc(var(--mobile-big-margin) * 2));
        object-fit: contain;
        height: auto;
        max-height: 45vh;
    }

    .swiper-button-prev,
    .swiper-button-next {
        transform: translateY(-65%);
        height: auto !important;
        font-size: 28px;
    }

    .swiper-button-prev {
        right: calc(var(--mobile-big-margin) + 1.2em) !important;
        left: auto !important;
    }

    .swiper-button-next {
        right: 15px !important;
    }

    .galerie-item figcaption {
        padding-right: 0;
    }

    .temporary-credit {
        padding: 0 var(--mobile-big-margin) var(--mobile-big-margin) var(--mobile-big-margin);

    }
}



/* css ombres flèche :
text-shadow: 0px 0px 5px #FFF, 0px 0px 10px #FFF, 0px 0px 15px #FFF; */