html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #2c2c2c;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.container {
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  flex: 1; /* Cette propriété est essentielle */
}

/* Navbar */
.navbar {
  background-color: #333333;
  padding: 10px 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  border-radius: 6px;
  transition: background 0.3s;
  font-weight: 500;
}

.nav-links li a:hover {
  background-color: #777777;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0;
  z-index: 1000;
}

.dropdown-menu li a {
  color: #333333;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

/* Hero section */
.main-content {
  padding-top: 100px;
  max-width: 1000px;
  margin: 0 auto;
}

.presentation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.circular_image {
  background-image: url('image/OIG2.vqW_au.jpg');
  width: 220px;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 100%;
  border: 4px solid #486ce0;
}

.texte2 {
  white-space: nowrap;
}

.texte {
  max-width: 500px;
}

.intro {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.intro2 {
  font-size: 1.5rem;
}

.line-1 {
  font-size: 1.5rem;
  color: #64b5f6;
}
/* About paragraph */
.about{
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 25px;
  border-radius: 15px;
  width: 85%;
  color: #444;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 0 auto 50px auto; /* Ajout d'une marge en bas et centrage horizontal */
}
/* Footer */
footer {
  background-color: #333333;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
  margin-top: auto;
  position: relative; /* Ajouté pour assurer un bon positionnement */
}

footer h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #ffffff;
}

.bottom_line {
  width: 100px;
  margin: 0 auto 1rem;
  border: none;
  height: 2px;
  background: #fff;
}

.contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer img {
  width: 32px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

footer img:hover {
  transform: scale(1.1);
}

/* Animated Background */
.area {
  background: linear-gradient(to left, #bbdefb, #e3f2fd);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.circles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(25, 118, 210, 0.5);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

/* Randomize movement */
.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s;}
.circles li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s;}
.circles li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s;}
.circles li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s;}
.circles li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s;}
.circles li:nth-child(6){ left: 75%; width: 110px; height: 110px; animation-delay: 3s;}
.circles li:nth-child(7){ left: 35%; width: 150px; height: 150px; animation-delay: 7s;}
.circles li:nth-child(8){ left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s;}
.circles li:nth-child(9){ left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s;}
.circles li:nth-child(10){ left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s;}

@keyframes animate {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
  100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}
  
/* Ajoutez ces règles pour la responsivité générale */
@media screen and (max-width: 768px) {
  .main-content {
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .presentation {
    flex-direction: column;
    text-align: center;
  }

  .texte {
    width: 100%;
  }

  .intro, .intro2 {
    font-size: 1.2rem;
  }

  .about {
    width: 90%;
    margin: 0 auto 30px auto; /* Marge légèrement réduite sur mobile */
    padding: 15px;
  }

  /* Navigation responsive */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .navbar {
    padding: 5px;
  }
}

/* Ajustements pour les très petits écrans */
@media screen and (max-width: 480px) {
  .circular_image {
    width: 180px;
    height: 180px;
  }

  .contact {
    gap: 1rem;
  }

  footer img {
    width: 28px;
  }
}

/* Ajustements pour les grands écrans */
@media screen and (min-width: 1200px) {
  .main-content {
    max-width: 1200px;
  }
}