/* === Dans votre fichier css/style.css === */

/* ... (Vos autres styles : body, .container, header, etc.) ... */
/* En-tête et Logo */
header {
    background: #333; /* Fond sombre pour l'en-tête */
    color: #fff;
    padding-top: 15px;
    padding-bottom: 10px; /* Ajustement pour le menu */
    min-height: 70px;
    border-bottom: #0779e4 3px solid; /* Ligne de couleur accentuée */
}

header #logo {
    float: left;
    text-decoration: none; /* Enlever le soulignement du lien */
}

header #logo h1 {
    margin: 0;
    color: #fff;
    font-weight: 400; /* Police plus légère */
    padding-top: 10px; /* Ajustement vertical */
}

/* Navigation */
header nav {
    float: right;
    margin-top: 10px; /* Alignement vertical avec le logo */
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block; /* Menu horizontal */
    position: relative; /* Pour les sous-menus */
    margin-left: 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 5px;
    transition: color 0.3s ease; /* Effet de transition doux */
}

header nav ul li a:hover,
header nav ul li.active a { /* Style pour page active (à ajouter via JS ou manuellement) */
    color: #0779e4; /* Couleur accentuée au survol */
}

/* Title */
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
  border-left: 5px solid #4e91f9;
  padding-left: 10px;
}

.intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

/* Video item styling */
.video-item {
  margin-bottom: 40px;
}

.video-item h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #4e91f9;
}

.video-description {
  margin-top: 10px;
  font-size: 1rem;
  color: #666;
}

/* Responsive video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}


/* Section Hero (Bannière d'accueil) */
.hero {
    min-height: 400px;
    background: url('../images/banner_main.jpg') no-repeat center center/cover; /* Image de fond */
    /* Vous pouvez utiliser une couleur unie ou un dégradé aussi:
       background: linear-gradient(to right, #007bff, #0056b3); */
    text-align: center;
    color: #fff; /* Texte blanc sur fond sombre/image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Ombre portée pour lisibilité */
}

.hero h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px;
}




header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    /* S'assurer qu'il n'y a pas de styles conflictuels ici */
}

/* --- Style des éléments du menu principal --- */
header nav ul li {
    display: inline-block; /* IMPORTANT: pour le menu horizontal */
    position: relative;    /* IMPORTANT: pour positionner le sous-menu */
    margin-left: 15px;     /* Espacement entre les éléments */
}

header nav ul li a {
    /* Style des liens principaux (couleur, padding, etc.) */
    display: block; /* Bonne pratique pour les liens de nav */
    padding: 15px 10px; /* Espace cliquable */
    color: #fff; /* Exemple */
    text-decoration: none;
}

/* --- Style du sous-menu (caché par défaut) --- */
.dropdown-content {
    display: none;           /* IMPORTANT: Caché par défaut */
    position: absolute;      /* IMPORTANT: Positionné par rapport au LI parent */
    top: 100%;               /* Se positionne juste en dessous du LI parent */
    left: 0;                 /* S'aligne à gauche du LI parent */
    background-color: #333;  /* Fond du sous-menu */
    min-width: 200px;        /* Largeur minimale */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3); /* Ombre portée */
    z-index: 100;            /* IMPORTANT: Pour s'afficher au-dessus des autres éléments */
    padding: 10px 0;         /* Espace intérieur haut/bas */
    border-top: 3px solid #0779e4; /* Accent visuel (optionnel) */
}

/* --- Style des éléments du sous-menu --- */
.dropdown-content li {
    display: block;         /* Les éléments du sous-menu sont verticaux */
    margin-left: 0;         /* Réinitialise la marge */
}

.dropdown-content li a {
    color: #fff;            /* Couleur des liens du sous-menu */
    padding: 10px 20px;     /* Espace intérieur des liens */
    display: block;         /* Pour que le lien prenne toute la largeur */
    white-space: nowrap;    /* Empêche le retour à la ligne si le texte est long */
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: #555; /* Effet au survol des liens du sous-menu */
    color: #0779e4;
}


/* === LA RÈGLE CRUCIALE POUR L'AFFICHAGE AU SURVOL === */
/* Quand on survole le LI qui a la classe 'dropdown', on affiche son enfant DIRECT qui a la classe 'dropdown-content' */
li.dropdown:hover > .dropdown-content {
    display: block; /* Affiche le sous-menu */
}


/* Optionnel : Changer le style du lien parent au survol */
li.dropdown:hover > a {
    color: #0779e4; /* Ou une autre couleur/style pour indiquer l'activation */
    /* background-color: #444; */ /* Exemple */
}

footer {
    background: #333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9em;
}
.heros p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #ffffff;
}
#videoList {
    width: 90%;
    max-width: 800px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    background-color: #f9f9f9;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    appearance: none;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
  }

  #videoList:focus {
    border-color: #2c6ed5;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 145, 255, 0.2);
  }

  option {
    font-size: 1rem;
    padding: 10px;
  }

  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
  }
  
  .card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  
  .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  
  .card h3 {
    margin: 15px 0;
    font-size: 1.4rem;
    color: #333;
  }
  
  .card a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
  }
  
  h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
  }

  p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
  }

  .content-list {
    list-style: none;
    padding: 20;
    margin: 20;
  }

  .content-list li {
    background-color: #f0f4f8;
    border-left: 46px solid #3498db;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
  }

  .content-list li:hover {
    background-color: #e6f2fc;
  }

  .content-list a {
    font-size: 18px;
    font-weight: bold;
    color: #2980b9;
    text-decoration: none;
  }

  .content-list a:hover {
    text-decoration: underline;
  }

  .content-list p {
    margin: 10px 10 10;
    font-size: 15px;
    color: #444;
  }
  .contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
  }

  .contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
  }

  .contact-list a {
    text-decoration: none;
    color: #0077cc;
    margin-left: 8px;
  }

  .contact-list i {
    color: #333;
    margin-right: 5px;
  }

  .contact-list a:hover {
    text-decoration: underline;
  }
  .icon-img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
  }
  
/* --- Fin des styles du menu --- */

/* ... (Vos autres styles : main, footer, etc.) ... */