* {
  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;
}

.content {
  flex: 1;
  position: relative;
  color: white;
  font-size: 1rem;
}

/* En-tête */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
}

#logo a {
  text-decoration: none;
  color: inherit;
}

#logo a:visited {
  color: inherit;
  text-decoration: none;
}

#logo img {
  width: 40px;
  height: 50px;
}

#logo-d a {
  font-size: 2.5rem;
  text-decoration: underline dotted;
}

#logo-d :visited {
  color: inherit;
  text-decoration: none;
}

.cta-d {
  font-size: 1rem;
  padding-left: 30px;
}

/* Navigation pour le bureau */
nav ul.desktop {
  display: flex;
  gap: 15px;
  list-style: none;
}

nav ul.desktop a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav ul.desktop 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.desktop a.button:hover {
  background-color: #ffffff00;
  color: #ff4a4a;
}

/* Menu burger (masqué par défaut) */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s;
}

/* Navigation pour le mobile (masquée par défaut) */
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;
}

/* Styles pour les liens dans la navigation mobile */
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);
}

nav ul.mobile a:visited {
  color: white;
  text-decoration: none;
}

/* Pied de page */
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;
}

/* 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 spécifiques à drone.html */
.wrapper {
  background-color: rgb(0, 0, 0, 0.336);
  padding: 20px;
}

.article1-container,
.article2-container,
.article3-container,
.article4-container {
  padding: 10px 0;
}

.article1,
.article2,
.article3,
.article4 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  background-color: rgb(0, 0, 0, 0.336);
  border: 1px solid #8d8d8d;
  margin-bottom: 20px; /* Espacement entre les articles */
}

.one-wrapper {
  grid-column: 1 / 5;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 220px;
}

.one {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.one .background1,
.one .background2,
.one .background3,
.one .background4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 70%;
  transform-origin: center;
  z-index: 1;
  transition: transform 0s ease-in-out;
}

.one .background1 {
  background: url("/images/vtdrone.jpg") no-repeat center center;
  background-size: 100%;
}

.one .background2 {
  background: url("/images/thdrone.jpg") no-repeat center center;
  background-size: 100%;
}

.one .background3 {
  background: url("/images/3ddrone.jpg") no-repeat center center;
  background-size: 100%;
}

.one .background4 {
  background: url("/images/suividrone.jpg") no-repeat center center;
  background-size: 100%;
}

.one .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 {
  display: inline;
  grid-column: 6 / 10;
  grid-row: 1;
  margin: 0px 0px 0px 0px;
  padding-right: 20px;
  padding-top: 20px;

  text-align: center;
}

.two h1 {
  font-size: 1.5rem;
  color: white;
}

.two p {
  font-size: 1.1rem;
  color: rgb(202, 202, 202);
}

/* Responsive design pour drone.html */
@media screen and (max-width: 768px) {
  .article1,
  .article2,
  .article3,
  .article4 {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr; /* Une seule colonne */
    grid-gap: 0;
  }

  .one-wrapper {
    grid-column: 1 / -1; /* Prend toute la largeur */
    height: 150px; /* Réduire la hauteur pour les mobiles */
  }

  .two {
    grid-column: 1 / -1; /* Prend toute la largeur */
    padding: 20px; /* Ajouter du padding pour une meilleure lisibilité */
    text-align: left; /* Aligner le texte à gauche */
  }

  .two h1 {
    font-size: 1.2rem; /* Réduire la taille de la police */
  }

  .two p {
    font-size: 1rem; /* Réduire la taille de la police */
  }

  .one .content {
    font-size: 1.2rem; /* Réduire la taille de la police */
  }

  .wrapper {
    padding: 10px; /* Réduire le padding pour les petits écrans */
  }
}
