/* Styles généraux */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #eaeaea;
  color: #333;
}

/* Animation Fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 1s ease-out;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2c3e50;
  padding: 15px 20px;
  position: relative;
}

/* Logo et texte */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  color: #e67e22;
  font-size: 1.5em;
  font-weight: bold;
}

/* Sélecteur de langue */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-switcher a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background-color: #e67e22;
  color: white;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.language-switcher a:hover {
  background-color: #d35400;
  transform: scale(1.1);
}

.language-switcher a.active {
  background-color: #d35400;
  font-weight: bold;
  color: white;
}

.language-switcher a:focus {
  outline: 2px solid #e67e22;
}

/* Menu hamburger */
.menu-icon {
  display: none;
  font-size: 1.5em;
  color: #ecf0f1;
  cursor: pointer;
}

nav input#menu-toggle {
  display: none;
}

nav ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul.menu li {
  margin-left: 15px;
}

nav ul.menu li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s;
}

nav ul.menu li a:hover {
  color: #e67e22;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/1600x900/?security,technology') center/cover;
  text-align: center;
  padding: 100px 20px;
  color: white;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #e67e22;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  background: #d35400;
  transform: scale(1.05);
}

/* Sections */
section {
  padding: 60px 20px;
  text-align: center;
}

/* Services Section */
#services {
  background: #34495e;
  color: #ecf0f1;
}

#services h2 {
  margin-bottom: 40px;
}

.services-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.service {
  background: #2c3e50;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service:hover {
  transform: translateY(-10px);
}

.service h3 {
  color: #e67e22;
  margin-bottom: 10px;
}

/* À Propos Section */
#about {
  background: #ecf0f1;
  color: #333;
}

#about h2 {
  margin-bottom: 20px;
}

/* Contact Section */
#contact {
  background: #e67e22;
  color: #fff;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: #333;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e67e22;
  outline: none;
}

.contact-info p {
  margin: 5px 0;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
}

footer a {
  color: #ecf0f1;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
}

footer a:hover {
  color: #e67e22;
  background-color: #34495e;
  padding: 5px 10px;
  border-radius: 5px;
}

footer a:focus {
  outline: 2px solid #e67e22;
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Navigation adjustments */
  nav {
    flex-wrap: wrap;
  }
  nav ul.menu {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  nav ul.menu li {
    margin: 10px 0;
  }
  /* Affichage du menu hamburger */
  #menu-toggle:checked + .menu-icon + ul.menu {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
  /* Ajustements dans la Hero Section */
  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }
  /* Services Section ajustée */
  .services-container {
    display: block;
  }
  .service {
    width: 100%;
    margin-bottom: 20px;
  }
  /* Contact Section ajustée */
  form {
    width: 100%;
  }
}
