* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "poppins";
  src: url(Poppins-ExtraLight.ttf);
}

body {
  font-family: "Poppins", sans-serif;
  color: white;
  background: url("/images/bg-icnd5.jpg") no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bodybg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: url("/images/bg-icnd5.jpg") no-repeat center center/cover;
  background-size: cover;
  transform-origin: center;
  transition: transform 0s linear;
}

.content {
  flex: 1; /* Prend tout l'espace disponible */
  position: relative; /* Laisse le contenu statique */
  color: white;
  font-size: 1rem;
}

header {
  display: flex; /* Affiche les éléments en ligne */
  justify-content: space-between; /* Aligne les éléments sur l'axe horizontal */
  align-items: center; /* Aligne les éléments sur l'axe vertical */
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
}

#logo a,
#logo-p a {
  text-decoration: none;
  color: inherit;
  font-size: 1.3rem;
}

#logo-header {
  font-size: 1.3rem;
}

.logo-img {
  width: 50px;
  height: 60px;
}

.logo-img-large {
  width: 100px;
  height: 120px;
}

.logo-img-small {
  width: 30px;
  height: 40px;
}

nav ul {
  display: flex;
  gap: 15px;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav ul a.button {
  padding: 10px 15px;
  border: 2px solid white;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

nav ul a.button:hover {
  background-color: #ffffff00;
  color: #ff4a4a;
}

.cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  padding: 20px;
}

.cta h1 {
  font-size: 3rem;
  margin: 20px 0;
}

.cta h2 {
  font-size: 2rem;
  margin: 10px 0;
}

.cta h3 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.cta p {
  font-size: 1.2rem;
  margin: 20px 0;
}

.wrapper {
  background-color: black;
  padding: 20px;
}

.article1,
.article2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  background-color: black;
  border: 1px solid #8d8d8d;
  margin-bottom: 20px;
}

.one-wrapper,
.four-wrapper {
  grid-column: 1 / 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
}

.one,
.four {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.one .content,
.four .content {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 1.5rem;
  color: white;
  padding: 10px 20px;
  text-align: left;
}

.two,
.three {
  grid-column: 2 / 3;
  grid-row: 1;
  margin: 0;
  padding-right: 20px;
  background-color: black;
  text-align: left;
}

.two p,
.three p {
  font-size: 1.1rem;
  color: rgb(224, 224, 224);
  text-align: center;
  vertical-align: middle;
}

@media screen and (max-width: 768px) {
  .article1,
  .article2 {
    display: flex;
    flex-direction: column;
  }

  .one-wrapper,
  .four-wrapper {
    height: 200px;
  }

  .two,
  .three {
    padding: 20px;
    text-align: left;
  }

  .two p,
  .three p {
    font-size: 1rem;
  }

  .one .content,
  .four .content {
    font-size: 1.2rem;
  }

  .wrapper {
    padding: 10px;
  }

  nav ul.desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  nav ul.mobile.active {
    display: flex;
  }
}

footer {
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

footer p {
  font-size: 0.9rem;
}

#mentions a {
  font-size: 0.9rem;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s;
}

nav ul.mobile {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  z-index: 10;
  padding: 20px;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

nav ul.mobile a {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 80%;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}

nav ul.mobile a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.three {
  grid-column: 1 / 2;
  padding-left: 20px;
  background-color: black;
  text-align: left;
}

.four-wrapper {
  grid-column: 2 / 3;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px;
}

.four {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.four .background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("/images/bg-icnd7.2.jpg") no-repeat center center;
  background-size: cover;
  transform-origin: center;
  z-index: 1;
  transition: transform 0s ease-in-out;
}

.four .content {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 1.5rem;
  color: white;
  padding: 10px 20px;
  text-align: right;
}

.one .background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("/images/bg-icnd7.jpg") no-repeat center center;
  background-size: cover;
  transform-origin: center;
  z-index: 1;
  transition: transform 0s ease-in-out;
}

/* Responsive design pour le header et le footer */
@media screen and (max-width: 768px) {
  /* Masquer la navigation bureau en mobile */
  nav ul.desktop {
    display: none;
  }

  /* Afficher le menu burger en mobile */
  .burger {
    display: flex;
  }

  /* Afficher la navigation mobile lorsqu'elle est active */
  nav ul.mobile.active {
    display: flex;
  }
}

/* Styles pour le logo dans le header */
#logo-header {
  display: flex;
  align-items: center; /* Aligne verticalement le logo et le texte */
  gap: 10px; /* Espace entre le logo et le texte */
}

#logo-header img {
  width: 50px;
  height: 60px;
  vertical-align: middle; /* Alignement vertical */
}

/* Styles pour le logo dans le main */
#logo-p {
  display: flex;
  align-items: center; /* Aligne verticalement le logo et le texte */
  gap: 10px; /* Espace entre le logo et le texte */
}

#logo-p img {
  width: 100px;
  height: 120px;
  vertical-align: middle; /* Alignement vertical */
}

/* Styles pour le logo dans le footer */
#logo-footer {
  align-items: center; /* Aligne verticalement le logo et le texte */
  gap: 10px; /* Espace entre le logo et le texte */
  font-size: 1.3rem;
}

#logo-footer img {
  width: 30px;
  height: 40px;
  vertical-align: middle; /* Alignement vertical */
}

.two,
.three {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Assurez-vous que le conteneur prend bien toute la hauteur */
}
