/* FONTS */

@import url("https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  list-style-type: none;
}

html {
  background-color: #f1eaea;
}

body {
  overflow: hidden auto;

  font-size: 1rem;

  background-color: rgb(230, 230, 230);

  display: flex;
  justify-content: center;
  align-items: flex-start;

  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

a {
  text-decoration: none;
}

/* CONTAINER */

#container {
  overflow: hidden;

  width: 80vw;
  max-width: 1441px;
  min-height: 100vh;

  background-color: rgb(255, 255, 255);

  display: flex;
  justify-content: stretch;
  align-items: flex-start;
  flex-flow: row nowrap;

  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* MENU - DISPLAY */

#menu {
  position: fixed;
  overflow: hidden;

  width: 20vw;
  max-width: 280px;
  height: 100vh;

  padding: 2rem 1.5rem;

  color: #ffffff;

  background: rgb(34, 60, 114);
  background: linear-gradient(
    90deg,
    rgba(34, 60, 114, 1) 0%,
    rgba(15, 113, 170, 1) 95%,
    rgba(255, 255, 255, 1) 98%
  );

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: column nowrap;

  flex: 1 0;

  z-index: 75;
}

.nav {
  width: calc(100% - 0.75rem);
  margin-right: 0.75rem;
}
.nav ul {
  width: auto;

  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;

  flex: 1 0;

  transition: 0.5s ease-out;
}
.nav li {
  overflow: hidden;

  padding: 0.5rem 1rem;
  height: 2rem;

  border: 1px solid #ffffff;
  border-radius: 1rem;

  color: #ffffff;
  text-transform: uppercase;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: 0.5s ease-out;
}
.nav li:hover {
  height: 4rem;
  background-color: rgb(187, 64, 80);
  cursor: pointer;
}
.nav li:hover a img {
  height: 2rem;
}
.nav a {
  width: 100%;

  color: #ffffff;

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav a img {
  height: 1.2rem;
  margin-right: 0.5rem;
  filter: invert(100%);

  transition: 0.5s ease-out;
}

.logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}
.logo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  transition: 0.3s ease-in;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1 0;
}
.socials img {
  height: 2.5rem;
  transition: 0.3s ease;
}
.socials img:hover {
  transform: scale(1.2);
}

.adress {
  padding-top: 0.5rem;
  font-size: 0.8rem;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
}

#display {
  overflow: hidden;
  width: 100%;
  min-height: 100vh;

  margin-left: 280px;

  padding: 2rem 2.5rem 2rem 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: column nowrap;
  flex: 1 0;

  > div {
    width: 100%;
  }
}
.header {
  margin-bottom: 8rem;

  font-weight: bold;
  font-family: "Mochiy Pop One", sans-serif;
  color: rgba(15, 113, 170, 1);
  text-shadow: 2px 2px 0px #ffffff, 5px 4px 0px rgba(0, 0, 0, 0.15);

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
}
.header h1 {
  font-size: 3.5rem;
}
.header h2 {
  font-size: 1.2rem;
}

.site-content {
  text-align: justify;

  display: flex;
  flex-flow: column nowrap;
  gap: 5rem;
  flex: 1 0;
}
.site-content h1,
.site-content h2 {
  text-transform: uppercase;
  color: rgb(34, 60, 114);
}

#facebook-banner {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
}

iframe {
  width: 360px;
}

.paragraph-lined {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 1rem;
}
.paragraph-lined a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.paragraph-lined a img {
  height: 1rem;
}
.paragraph-lined li {
  margin-left: 1rem;
  display: flex;
  gap: 0.5rem;
}
.paragraph-lined span {
  color: rgba(15, 113, 170, 1);
  font-weight: bold;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.line {
  width: 100%;
  height: 5px;

  border-radius: 8px;
  background: rgb(34, 60, 114);
  background: linear-gradient(
    90deg,
    rgba(34, 60, 114, 1) 0%,
    rgba(15, 113, 170, 1) 40%,
    rgba(255, 255, 255, 1) 98%
  );
  flex: 1 1;
}

.carnet {
  padding: 1rem;

  background-color: rgba(240, 230, 140, 0.524);
}
.carnet a {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 1rem;
}

.main-infos {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-flow: row nowrap;
}

.infos {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 2rem;
}
.infos li {
  margin-left: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.infos li:first-child {
  margin-bottom: 1rem;
}
.infos li img {
  height: 1rem;
  margin-right: 0.5rem;
}
.infos li a.smartphone {
  display: none;
}
.infos li span.desktop {
  display: block;
}

.thumbs {
  width: 100%;
  max-width: 320px;
  min-width: 150px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;

  flex-flow: row wrap;

  z-index: 50;
}
.thumbs a {
  overflow: hidden;

  max-width: 150px;
  height: 150px;

  border: 4px solid rgba(15, 113, 170, 1);
  border-radius: 10px;

  box-shadow: 0 0 0 3px white, 0 5px 8px 3px rgba(black, 0.6);

  flex: 1 0 150px;
}
.thumbs img {
  height: 100%;

  transform: scale(1);
  filter: grayscale(60%);

  transition: transform 0.3s ease-in-out;
}
.thumbs img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.events {
  text-indent: 2rem;
}
.events li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.list-title {
  margin-top: 1.5rem;
  text-indent: 0rem;
  color: rgb(15, 113, 170, 1);
}
.lines {
  width: 100%;
  height: 1px;

  background: rgb(0, 0, 0);

  flex: 1 1;
}

.illustration {
  margin-top: 2rem;
  font-size: 0.5rem;

  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-flow: column nowrap;
}
.illustration img {
  height: 20vh;
  max-height: 200px;
}
.illustration p {
  margin-right: 2.5rem;
}
.illustration a {
  color: rgba(15, 113, 170, 1);
}

/* LIGHTBOX */

#lightbox {
  position: fixed;
  left: 0;
  top: 0;

  height: 100vh;
  width: 100vw;

  background: rgba(#000000, 0.5);
  backdrop-filter: blur(20px);

  display: flex;
  justify-content: center;
  align-items: center;

  flex-flow: column nowrap;

  transform: translateY(-100%);
  opacity: 0;

  transition: opacity 0.5s ease-in-out;

  z-index: 1000;

  &:has(div:target) {
    transform: translateY(0%);
    opacity: 1;
  }

  a.nav-l,
  a.nav-r {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border: 2px solid rgba(15, 113, 170, 1);
    border-radius: 50px;

    letter-spacing: -0.5rem;

    display: flex;
    justify-content: center;
    align-items: center;

    aspect-ratio: 1/1;
    transform-origin: center left;

    background-color: rgba(15, 113, 170, 1);
    color: #ffffff;

    font-size: 3rem;
    font-weight: 600;

    text-shadow: 0 2px 2px rgba(black, 0.8);
    opacity: 0.5;

    transition: 0.2s ease;
    z-index: 1001;

    &:hover {
      padding: 0.5rem 1rem 0.5rem 0.5rem;
      border-radius: 0 50px 50px 0;
      opacity: 1;
    }
  }

  a.nav-l {
    transform: translateX(50%);
    &:hover {
      border-radius: 50px 0 0 50px;
      transform: translateX(10%);
    }
  }
  a.nav-r {
    transform: translateX(-50%);
    &:hover {
      border-radius: 0 50px 50px 0;
      transform: translateX(-10%);
    }
  }

  .target {
    position: absolute;

    height: 100%;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transform: scale(0);

    z-index: 1002;

    *:first-child,
    *:last-child {
      flex: 0 0 100px;
      text-align: center;
      @media all and (max-width: 600px) {
        flex: 0 0 50px;
      }
    }
    .content {
      transform: scale(0.9);
      opacity: 0;
      flex: 1 1 auto;
      align-self: center;
      max-height: 100%;
      min-height: 0;
      max-width: calc(100% - 200px);
      min-width: 0;

      border: 0.8rem solid #ffffff;
      border-radius: 5px;

      overflow: hidden;
      box-shadow: 0 0 0 3px white, 0 5px 8px 3px rgba(black, 0.6);
      transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;

      z-index: 100;

      img {
        min-width: 100%;
        min-height: 100%;
        max-width: 100%;
        max-height: calc(100vh - 40px);
        display: block;

        margin: 0;
      }

      .copyright {
        position: absolute;
        bottom: 1.5rem;
        right: 2rem;

        color: #ffffff;
        font-size: 1vw;
        text-transform: uppercase;
        font-weight: bold;

        font-family: "Mochiy Pop One", sans-serif;
        text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5),
          5px 4px 0px rgba(0, 0, 0, 0.5);
      }
    }
    &:target {
      transform: scale(1);
      .content {
        transform: scale(1);
        opacity: 1;
      }
    }
  }

  a.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    width: 2rem;
    height: 2rem;

    aspect-ratio: 1/1;

    border-radius: 50%;

    background-color: red;
    color: #ffffff;

    font-weight: bold;
    font-stretch: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: 0.2s ease;

    z-index: 1003;

    &:hover {
      background-color: transparent;
      color: red;
      border: 2px solid red;

      transform: scale(1.5);
    }
  }
}

/* RESPONSIVE */

@media screen and (max-width: 1441px) {
  #container {
    width: 100%;
  }
  #display {
    margin-left: 20vw;
  }
}
@media screen and (max-width: 1281px) {
  .header h1 {
    font-size: 4.5vw;
  }
  .header h2 {
    font-size: 1.5vw;
  }
}
@media screen and (max-width: 1025px) {
  .nav li {
    height: 4rem;
  }
  .nav a {
    font-size: 0.9rem;
    flex-flow: column nowrap;
    gap: 0.3rem;
  }
  .main-infos {
    flex-flow: column nowrap;
    align-items: center;
    gap: 2rem;
  }
  .infos {
    flex-flow: row nowrap;
  }
  .thumbs {
    max-width: 650px;
  }
}
@media screen and (max-width: 769px) {
  #container {
    flex-flow: column nowrap;
  }
  #display {
    margin: 30vw 0 0 0;
    padding: 2rem;
  }
  #menu {
    width: 100vw;
    max-width: 100vw;
    height: 15vw;

    padding: 3vw;

    background: linear-gradient(
      180deg,
      rgba(34, 60, 114, 1) 0%,
      rgba(15, 113, 170, 1) 95%,
      rgba(255, 255, 255, 1) 98%
    );

    justify-content: center;
    align-items: center;
    flex-flow: row nowrap;
  }
  .logo {
    position: fixed;
    top: 1rem;
    left: calc(50% - 15vw);

    width: 30vw;
  }
  .nav ul {
    flex-flow: row nowrap;
    gap: 0.5rem;
  }
  .nav li {
    padding: 0;
    border: 0;
  }
  .nav img {
    margin: 0 auto;
  }
  .socials img {
    height: 1.5rem;
  }
  .adress {
    position: fixed;
    top: calc(15vw - 0.8vw);
    right: 0;

    max-width: 40vw;

    padding: 0 0.7rem 0.5rem 1.2rem;

    border-radius: 0 0 0 2rem;
    background: rgb(34, 60, 114);
    background: linear-gradient(
      180deg,
      rgba(15, 113, 170, 1) 90%,
      transparent 98%
    );

    justify-content: flex-end;
    flex-flow: row nowrap;

    flex: 1 0;
  }
  .adress p:first-of-type {
    display: none;
  }
  .header {
    align-items: center;
  }
  .header h1 {
    font-size: 5.5vw;
  }
  .header h2 {
    font-size: 2vw;
  }
  .site-content {
    font-size: 0.8rem;
    gap: 2rem;
  }
  .carnet {
    text-align: center;
  }
  .infos {
    flex-flow: column nowrap;
  }
}
@media screen and (max-width: 601px) {
  #menu {
    height: 25vw;
  }
  .nav a {
    font-size: 0.5rem;
  }
  .adress {
    top: calc(25vw - 1.2vw);
  }
  .adress p {
    font-size: 0.4rem;
  }
  .header {
    margin-bottom: 3rem;
    text-shadow: none;
  }
}
@media screen and (max-width: 481px) {
  .infos li a.smartphone {
    display: block;
    margin-left: 0.3rem;
  }
  .infos li span.desktop {
    display: none;
  }
  .paragraph-lined li {
    margin-left: 0;
    font-size: 0.7rem;
  }
  .events {
    text-indent: 0;
    font-size: 0.5rem;
  }
  .list-title {
    font-size: 0.7rem;
  }
}
@media screen and (max-width: 320px) {
}
