body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f9;
    color: #333;
}

header {
    background: #007BFF;
    color: #fff;
    padding: 20px 10px;
    text-align: center;
  position: fixed;
  width: 100%;
  z-index: 999;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Menu vertical au centre */
nav {
    background-color: rgba(0, 86, 179, 0.5);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    width: auto;
    opacity: 1;
    transform: scale(1);
    position: relative;
    top: 50px;
    transition: all 0.5s ease; /* Animation fluide pour toutes les propriétés */
}

/* Menu horizontal en haut après clic */
nav.active {
    position: fixed;
    top: 104px; /* Position exacte sous le header */
    left: 0;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    border-radius: 0;
    margin: 0;
    z-index: 999;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease; /* Transition fluide à l'état actif */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    transition: flex-direction 0.5s ease; /* Changement de direction fluide */
}

/* Liste horizontale après clic */
nav.active ul {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

nav ul li {
    color: white;
    cursor: pointer;
    padding: 12px 25px; /* Taille légèrement augmentée */
    border-radius: 25px; /* Coins arrondis pour un effet de pillule */
    background: linear-gradient(90deg, #0056b3, #007BFF); /* Dégradé de couleur */
    transition: all 0.4s ease; /* Animation fluide pour tous les changements */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Ombre légère pour un effet de relief */
    text-align: center;
}

nav ul li:hover {
    text-decoration: none; /* Supprimer les soulignements */
    background: linear-gradient(90deg, #007BFF, #0056b3); /* Inverser le dégradé au survol */
    transform: scale(1.15) rotate(1deg); /* Zoom avec légère rotation */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Accentuer l'ombre au survol */
}

nav ul li:active {
    transform: scale(1.05); /* Réduction légère pour un effet de clic */
    background: linear-gradient(90deg, #004080, #0056b3); /* Couleur plus sombre */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ombre réduite */
}

/* Introduction */
.intro {
    margin-top: 60px ;
    text-align: center;
    padding: 50px 20px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.intro.hidden {
    opacity: 0;
    transform: translateY(-10px);
    display: none;
}

/* Sections */
section {
    display: none;
    border-top: 2px solid #ddd;
    background: #fff;
    margin-top: 160px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 1.8em;
    color: #007BFF;
    margin-bottom: 10px;
}

section p {
    margin-bottom: 15px;
    text-align: justify;
}

section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

section table th,
section table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

section table th {
    background-color: #f2f2f2;
}

section table .logo-column img {
    width: 50px;
    height: auto;
}

section table .logo-column a {
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #007BFF;
    color: #1e1e1e;
}

thead th {
    text-align: left;
    padding: 12px 15px;
}

tbody tr {
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

tbody td {
    padding: 12px 15px;
    text-align: left;
}

.logo-column img {
    display: block;
    margin: 0 auto;
    max-width: 50px;
    height: auto;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: disc;
    margin: 10px 0 20px 20px;
}

ul li {
    margin-bottom: 8px;
}

