@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}

footer h3 {
  text-align: center;
}

body {
  background: #fefaf6;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  list-style-type: none;
  text-decoration: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  text-decoration: none;
}

.container {
  max-width: 80rem;
  width: 100%;
  height: auto;
  padding: 0 2rem;
  margin: 0 auto;
}

.brand img {
  width: 80px;
}

.navbar {
  width: 100%;
  height: auto;
  padding: 1rem 2rem;
  color: #252a32;
  background: #fefaf6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

@media only screen and (min-width: 768px) {
  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
  }
}

.navbar .navbrand {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.navbar .navbrand .burger {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: all 0.35s ease;
}

.navbar .navbrand .burger-close {
  display: none;
}

.navbar .navbrand .burger.active .burger-open {
  display: none;
}

.navbar .navbrand .burger.active .burger-close {
  display: flex;
}

@media only screen and (min-width: 768px) {
  .navbar .navbrand .burger {
    display: none;
  }
}

.navbar .menu {
  width: 100%;
  height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.navbar .menu-item {
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
}

.navbar .menu-link {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: inherit;
  color: #252a32;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  transition: all 0.35s ease;
}

.navbar .menu-link:hover {
  color: #148cb8;
}

.navbar .menu.active {
  width: 100%;
  height: 10rem;
  margin: 1rem 0;
}

@media only screen and (min-width: 768px) {
  .navbar .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: auto;
  }

  .navbar .menu-item {
    padding: 0;
    margin: 0 0.5rem;
  }
}

.navbar .social {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.navbar .social-item {
  font-size: 1.65rem;
  line-height: inherit;
  margin: 0 0.5rem;
  color: #252a32;
  transition: all 0.35s ease;
}

.navbar .social-item:hover {
  color: #148cb8;
}

@media only screen and (min-width: 768px) {
  .navbar .social {
    display: flex;
  }
}

main {
  font-family: "Roboto";
  display: flex;
  font-size: 24px;
}

main a {
  text-decoration: underline;
  text-align: center;
  color: black;
  font-size: 24px;
}

.title {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 15px;
  width: 100%;
}

.title p {
  text-align: center;
  width: 60%;
  padding-bottom: 30px;
  font-size: 22px;
}

.title p:nth-child(2) {
  padding-top: 15px;
}

.aside {
  position: absolute;
  top: 110px;
  /* Distance du haut */
  right: 20px;
  /* Distance de la droite */
  width: 200px;
  /* Largeur ajustable */
  font-size: 0.8rem;
  text-align: right;
  padding: 10px;
  text-align: center;
}

.carrousel video {
  width: 80%;
}

.carrousel {
  display: grid;
  place-items: center;
  margin-top: 15px;
}

.links {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  width: auto;
  flex-wrap: wrap;
}

.links p {
  text-align: center;
  margin-bottom: 60px;
  font-size: 1.1rem;
  font-weight: 600;
}

.links img {
  width: 100%;
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  content: "";
  display: block;
  height: 100%;
  left: -75%;
  position: absolute;
  top: 0;
  transform: skewX(-25deg);
  width: 50%;
  z-index: 2;
}

.shine:hover::before,
.shine:focus::before {
  animation: shine 0.85s;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
  position: relative;
  width: 100%;
  animation: fadeIn 2s ease-in-out;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 10px;
  animation: slideIn 1s ease-in-out;
}

.footer-section h3 {
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.social-media {
  padding-top: 10px;
}

.social-media a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.5em;
  transition: color 0.3s;
}

.social-media a:hover {
  color: #1da1f2;
}

.map-container {
  width: 100%;
  height: 200px;
  margin-top: 20px;
}

.newsletter input[type="email"] {
  padding: 10px;
  width: calc(100% - 22px);
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
}

.newsletter button {
  padding: 10px 20px;
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter button:hover {
  background-color: #777;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Ajuster le positionnement du logo pour les petits écrans */
@media screen and (max-width: 768px) {
  .logo {
    left: 20px;
    /* Moins de marge pour un logo plus proche du bord sur les petits écrans */
  }

  .menu-icon:checked + label {
    right: 20px;
    /* Modifier la position de l'icône du menu */
  }
}

/* Modifications de la taille du texte et de l'espace pour les petits écrans */
@media screen and (max-width: 991px) {
  .title p {
    font-size: 18px;
    width: 80%;
    /* Plus de largeur pour les textes sur petits écrans */
    padding-bottom: 20px;
  }

  .aside {
    display: none;
  }

  .carrousel video {
    width: 80%;
    /* Vidéo prend toute la largeur sur mobile */
  }

  .nav ul li a {
    font-size: 6vw;
    /* Taille ajustée pour les petits écrans */
  }

  .nav ul li {
    margin: 5px 0;
  }

  /* Améliorations supplémentaires pour les très petits écrans */
  @media screen and (max-width: 480px) {
    .menu-icon:checked + label {
      right: 15px;
      top: 10px;
      /* Réduire la taille du bouton */
    }

    .logo img {
      height: 90px;
      /* Réduire la taille du logo pour les très petits écrans */
    }

    .shine {
      font-size: 14px;
      /* Taille de texte ajustée pour les petits éléments */
    }
  }
}
