/* -------------------------------- */
/* ------------ GLOBAL ------------ */
/* -------------------------------- */

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

#global {
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: #222222;
    background: linear-gradient(0deg, #222, #222) no-repeat right bottom / 0 1px;
    transition: background-size 350ms;
}

a:where(:hover, :focus-visible) {
    background-size: 100% 1px;
    background-position-x: left;
}

/* Reset du style par défaut de la balise <i> car sert uniquement à intégrer les icônes et les coordonnées gps*/
i {
    font-style: normal;
}

.content {
    display: flex;
    justify-content: center;
    width: 100%;
    height: calc(100dvh - 104px); /* 100% de la fenêtre moins la hauteur de la barre de navigation et du footer*/
}

footer {
    display: flex;
    width: 100%;
    height: 44px;
    align-items: center;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #808080;
    font-size: 12px; /* Equivalent a 13px standard*/
    padding: 0 25px 0 17px;
}

.endOfPage {
    position: absolute;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

footer img {
    display: block;
}

/* -------------------------------- */
/* ------ NAVIGATION EN HAUT ------ */
/* -------------------------------- */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: 60px;
    padding: 10px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #222;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-transform: uppercase;
    font-size: 20px; /* Equivalent a 21px standard*/
    letter-spacing: -0.01em;
}

#icons {
    cursor: pointer;
    display: none;
}

.containerMenu {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 12px; /* Equivalent a 13px standard*/
    margin: 0;
    padding: 0;
}

.is-active {
    background: linear-gradient(0deg, #222, #222) no-repeat right bottom / 100% 1px;
}

nav ul li {
    margin-right: 30px;
}

nav ul li:last-child {
    margin-right: 0;
}

.social {
    display: block;
}

.serie {
    font-weight: 700;
}

/* -------------------------------- */
/* ------------ INTRO ------------- */
/* -------------------------------- */

.fotorama {
    /* Masqué par défaut car géré par une animation en javascript au chargement de page */
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.forIntro {
    /* Masqué par défaut car géré par une animation en javascript au chargement de page */
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999; /* Toujours devant */
    font-family: 'Poppins', sans-serif;
    text-align: center;
    color: #eee;
}

.introTitle {
    font-weight: 500;
    text-transform: uppercase;
    font-size: min(50px,10.6666666667vw);
    line-height: 1.12em;
    letter-spacing: -0.01em;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.8);
    padding: 5px 0;
    margin: 0 0 8px 0;
}

.enterLink {
    text-transform: uppercase;
    font-size: min(20px,2.6666666667vw);
    background: none;
    color: #eee; /* Hérite de la couleur dynamique */
    padding: 2px 12px;
    background-color: #111;
}

.enterLink:hover {
    background-color: #eee;
    color: #111;
}

/* -------------------------------- */
/* ---------- CARROUSEL ----------- */
/* -------------------------------- */

.swiper {
    visibility: hidden;
    width: 100%;
}

.swiper-slide img {
    /* Opacité à 0 par défaut car géré par une animation en javascript au chargement de page */
    opacity: 0;
    max-height: 1400px;
    cursor: pointer;
}

.swiper-slide-active img {
    cursor: grab;
}

.caption {
    display: flex;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    margin-top: -3px;
}

/* Reset de l'effet de surlignage au survol pour ne l'appliquer que sur les coordonnées
et pas sur l'icône un peu plus bas ('.labeCoordinates') */
.caption a {
    background: none;
}

.caption a:where(:hover, :focus-visible) {
    background-size: none;
}

.coordinates.unavailable {
    color: #ccc;
}

.unavailable .labelCoordinates {
    background: none;
}

.labelCoordinates {
    background: linear-gradient(0deg, #222, #222) no-repeat right bottom / 0 1px;
    transition: background-size 350ms;
}

.labelCoordinates:where(:hover, :focus-visible) {
    background-size: 100% 1px;
    background-position-x: left;
}

.unavailable {
    color: #dadada;
}

.navButtons {
    /* Opacité à 0 par défaut car géré par une animation en javascript au chargement de page */
    opacity: 0;
    display: flex;
    height: 44px;
    margin: 0;
    padding: 0 8px;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.swiper-button-prev {
    margin: 0 10px 0 20px !important;
}

.buttonGrid:hover {
    cursor: pointer;
}

/* -------------------------------- */
/* --------- MASONRY GRID --------- */
/* -------------------------------- */

.forGrid {
    height: auto;
    padding: 0 20px;
    /* Marge pour décaler le footer */
    margin: 0 0 44px 0;
}

.grid {
    /* Masqué par défaut car géré par une animation en javascript au chargement de page */
    visibility: hidden;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

/* clear fix */
.grid:after {
    content: '';
    display: block;
    clear: both;
}

/* 5 colonnes */
.grid-item { 
    width: 20%;
    padding: 3px;
}

.grid-item img {
    display: block;
    width: 100%;
    transition: 0.2s;
}

.grid-item img:hover {
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
}

/* -------------------------------- */
/* ---------- GOOGLE MAP ---------- */
/* -------------------------------- */

.forContact {
    /* Masqué par défaut car géré par une animation en javascript au chargement de page */
    visibility: hidden;
    height: 100%;
    flex-direction: column;
    justify-content: start;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #222;
}

#map {
    width: 100%;
    background-color: #ededed;
}

#map img {
    width: 100%;
    height: 400px;
    object-fit: none;
    display: block;
}

.textContent {
    display: flex;
    justify-content: center;
    margin: 40px 0 40px 0;
    font-size: 16px;
    line-height: 1.8em;
}

.textContent h1 {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 30px;
}

.textContent h3 {
    text-transform: uppercase;
    font-weight: 400;
    color: #808080;
}

.about {
    border-right: 1px solid #222;
    padding: 0 40px 0 25px;
}

.contact {
    padding: 0 25px 0 40px;
}

.contact .bi {
    padding-right: 5px;
}

.contact .social {
    display: inline-block;
}

