:root {
  --color-primary: #e5dbd8;
  --color-secondary: #2e2f32;
  --color-tertiary: #5b4c3e;
  --color-tertiary-light: #aba39c;
  --color-light: #ffffff;
  --color-dark: #000000;
}

html, body{
  overflow-x: hidden;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--color-secondary);
}

/* CONTAINER GLOBALE */
.container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* COMMUN AU CONTAINER DE L'IMAGE ET DU TEXTE */
.image,
.content {
  flex: 1 1 50%;
}

/* CONTAINER DE L'IMAGE */
.image {
  position: relative;
}

/* IMAGE */
.image img:not(.logo) {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTAINER DU TEXTE */
.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: max(15px, 1vmax);
  padding: max(20px, 3vmax);
}

/* TITRE */
.title {
  font-size: max(15px,1.25vw);
  text-transform: uppercase;
  color: var(--color-tertiary-light)
}

/* WRAPPER INFORMATIONS DE CONTACT */
.contact {
  display: flex;
  flex-direction: column;
  gap: max(10px, .5vmax);
  margin: max(15px, 1vmax) 0 ;
}

/* INTITULÉ DE CONTACT */
.contact strong {
  color: var(--color-tertiary);
}

/* LOGO */
.logo {
  width: max(250px, 20vmax);
  height: fit-content;
}

/* BOUTTON */
.button{
  position: relative;
  text-transform: uppercase;
  padding: max(5px, .3vmax) max(10px, .5vmax);
  transition: all .5s ease-in-out;
}

/* LIBELLÉ DU BOUTTON */
.button span{
  position: relative;
  z-index: 1;
  color: var(--color-tertiary);
}

/* COMMUN BARRE D'HABILLAGE DU BOUTTON */
.button::before,
.button::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-tertiary);
  transition: all .5s ease-in-out;
  z-index: 0;
}

/* BARRE DE GAUCHE */
.button::before{
  height: 100%;
}

/* BARRE DU BAS */
.button::after{
  height: 1px;
}

.local-switcher{
  position: absolute;
  width: 100%;
  top: 1rem;
  right: 1rem;
  text-align: right;
}

.local-switcher > .active {
  font-weight: 700;
}

#goTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#goTopBtn.show {
  opacity: 0.8;
  visibility: visible;
}

#goTopBtn>img{
  display: flex;
  margin: auto;
}

#goTopBtn:hover {
  opacity: 1;
}

.fancybox-active{
  height:100%;
}

.wrapper-buttons{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.masonry-gallery {
  column-count: 4;
  column-gap: 15px;
  padding: 2rem 5vw;
  position: relative;
}

.masonry-gallery a {
  margin-bottom: 15px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.masonry-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.masonry-gallery a:hover img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

/* Responsive */
@media (max-width: 1200px) {
  .masonry-gallery {
    column-count: 3;
  }
}
@media (max-width: 800px) {
  .masonry-gallery {
    column-count: 2;
  }
}
@media (max-width: 500px) {
  .masonry-gallery {
    column-count: 1;
  }
}

/*--------------------------------------------------------------------------*/
/*                              RESPONSIVE                                  */
/*--------------------------------------------------------------------------*/
@media screen and (max-width: 850px) {
  .container{
    flex-direction: column;
  }

  .logoDesktop{
    display: none;
  }

  .logoMobile{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-light);
    padding: max(20px, 2vmax);
  }

  .local-switcher{
    color: var(--color-light);
  }
}

@media screen and (min-width: 849px) {
  .logoMobile{
    display: none;
  }

  .logoDesktop {
    margin-bottom: 40px;
  }

  .content {
    justify-content: center;
  }
}

@media screen and (min-width: 1024px) {

  /* LIEN DE CONTACT */
  .contact a {
    position: relative;
  }

  /* AFTER DU LIEN */
  .contact a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-tertiary);
    transition: all .5s ease-in-out;
  }

  /* STATE HOVER - AFTER DU LIEN */
  .contact a:hover::after {
    width: 100%;
  }

  /* STATE HOVER - BARRE DE GAUCHE */
  .button:hover::before{
    height: 1px;
  }

  /* STATE HOVER - BARRE DU BAS */
  .button:hover::after{
    width: 100%;
  }
}