/* Règles générales */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f0f2f7;
  color: #333;
}

header {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1003;
  flex-wrap: wrap;
}
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.logo {
  width: auto;
  margin-right: auto;
}

.logo img {
  width: 150px;
  height: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#language-selector {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #f9f9f9;
  appearance: none;
}

/* Subnav */
.subnav {
  background-color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;  
}

.subnav a {
  margin: 0 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.subnav a.active {
  font-weight: bold;
  color: #04446c;
  text-decoration: underline;
}

/* Menu hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px; /* Réduction de la largeur */
  height: 21px; /* Réduction de la hauteur */
  justify-content: space-between;
  margin-left: auto; /* Pour déplacer à droite */
}

.hamburger span {
  height: 3px; /* Réduction de la hauteur des barres */
  background: #333;
  border-radius: 2px;
}

/* Affichage du menu mobile */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  position: absolute;
  top: 60px; /* Ajustement de la position */
  right: 10px; /* Positionnement à droite */
  width: 200px; /* Largeur du menu */
  z-index: 1004;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-menu a {
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

/* Iframe */
.iframe-overlay {
  background-color: rgba(150, 150, 150, 0.5);
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 130px;
  z-index: 1000;
  display: block;
}

.iframe-container {
  background-color: #fff;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Main layout */
main {
  padding: 30px 20px;
  max-width: 1200px;
  margin: auto;
}

/* Cards */
.card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.card-content {
  flex: 1 1 60%;
  padding-right: 20px;
  min-width: 280px;
}

.card-content h2 {
  color: #3598D7;
  font-size: 20px;
  margin-bottom: 15px;
}

.card-content ul {
  margin-top: 10px;
  margin-bottom: 15px;
}

.card-content li {
  margin-bottom: 5px;
}

.card-content p {
  margin-bottom: 10px;
  word-wrap: break-word;
}

.card-image {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 300px;
}

.card-image img {
  margin-bottom: 10px;
  max-height: 200px;
}
.cardrow-image {
  display: flex;
  flex-direction: row;
}

/* Icones audio */
.voice-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.voice-icons img {
  height: 35px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .subnav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.active {
    display: flex;
  }

  .card {
    flex-direction: column;
    padding: 20px;
  }

  .card-content,
  .card-image {
    width: 100%;
    padding: 0;
  }

  .card-image {
    margin-top: 20px;
  }
  .vid_container video{
	  max-width: 150px;
  }

  .voice-icons {
    justify-content: flex-start;
  }

  .banner-container {
    width: 100%;
    overflow: hidden;
  }

  .banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
  }
}

.menu-toggle {
  display: block; /* Masqué par défaut */
  position: fixed;
  top: 70px;
  left: 10px;
  z-index: 1001;
  font-size: 24px;
  cursor: pointer;
}

#sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  height: 100vh;
  left: -250px;
  position: fixed;
  transition: left 0.3s ease-in-out;
  z-index: 1000;
}

#sidebar.open {
  left: 0;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

#sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px;
}

#sidebar a:hover {
  background-color: #34495e;
}

#content {
  transition: margin-left 0.3s ease-in-out;
}

#content.shifted {
  margin-left: 250px;
}

form {
    display: flex;
    flex-direction: column;
    width: 300px; /* Largeur du formulaire */
    gap: 1em;      /* Espacement entre les éléments */
  }

  label {
    font-weight: bold;
  }

  input, button {
    padding: 0.5em;
    font-size: 1em;
  }

  fieldset {
    border: 1px solid #ccc;
    padding: 1em;
  }

  legend {
    font-weight: bold;
    padding: 0 0.5em;
  }