        :root {
            --main-color: #0077cc;
            --bg-color: #f9f9f9;
            --card-bg: #fff;
            --text-color: #333;
            --hover-color: #005fa3;
            --success: #4caf50;
        }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background: linear-gradient(135deg, #004080, #0066cc);
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav {
  background: #fff;
  width: 100%;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: #004080;
  color: #fff;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.section {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.section:hover {
  transform: translateY(-5px);
  background: #f8f9fa;
}


h2 {
  background: #004080;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 20px;
}


.card {
            background-color: var(--card-bg);
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 1em 1.2em;
            margin-bottom: 1em;
            transition: 0.3s ease;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: bold;
            color: var(--main-color);
        }

        .card-header:hover {
            color: var(--hover-color);
        }

        .card-header span {
            font-size: 1.3em;
        }

        .list {
            list-style: none;
            margin: 0;
            padding-left: 1.2em;
            max-height: 0;
            overflow: hidden;
            overflow-y: scroll;
            transition: max-height 0.4s ease;
        }

        .list.open {
            max-height: 800px;
            margin-top: 0.7em;
        }

        .list li {
            margin: 0.4em 0;
        }

        .list a {
            color: var(--text-color);
            text-decoration: none;
        }

        .list a:hover {
            text-decoration: underline;
            color: var(--main-color);
        }

button {
  background: linear-gradient(135deg, #004080, #0066cc);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #002050, #004080);
  transform: scale(1.05);
}
footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #004080, #0066cc);
  color: #fff;
  margin-top: 40px;
  width: 100%;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}





/* Style de base pour le personnage */
.scene {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.walking-character {
    position: absolute;
    bottom: 0;
    left: -100px; /* Position initiale hors de l'écran */
    width: 60px;
    height: 100px;
    animation: walkAnimation 10s linear infinite; /* Animation du mouvement */
}

.walking-character .head,
.walking-character .body,
.walking-character .left-arm,
.walking-character .right-arm,
.walking-character .left-leg,
.walking-character .right-leg {
    position: absolute;
    background-color: #333;
}

/* Exemple de design simple pour chaque partie du personnage */
.walking-character .head {
    width: 50px; /* Augmenter la taille de la tête */
    height: 50px;
    background-color: #f8c291; /* Couleur de peau claire */
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 10px;
    border: 2px solid #e67e22; /* Ajout d'une bordure pour un effet de contour */
}

.walking-character .body {
    width: 35px; /* Largeur du corps */
    height: 50px; /* Hauteur du corps */
    background-color: #2c3e50; /* Couleur de la tenue */
    top: 50px;
    left: 12px;
    border-radius: 8px; /* Arrondir les bords du corps */
}

.walking-character .left-arm,
.walking-character .right-arm {
    width: 12px; /* Rendre les bras plus épais */
    height: 35px;
    background-color: #34495e; /* Couleur des bras */
    position: absolute;
}

.walking-character .left-arm {
    top: 55px;
    left: -5px; /* Décalage vers la gauche */
}

.walking-character .right-arm {
    top: 55px;
    right: -5px; /* Décalage vers la droite */
}

.walking-character .left-leg,
.walking-character .right-leg {
    width: 12px; /* Rendre les jambes plus épaisses */
    height: 40px;
    background-color: #34495e; /* Couleur des jambes */
    position: absolute;
}

.walking-character .left-leg {
    bottom: 0;
    left: 8px; /* Décalage des jambes pour les rendre plus centrées */
}

.walking-character .right-leg {
    bottom: 0;
    right: 8px;
}

/* Ajouter des chaussures */
.walking-character .left-leg::after,
.walking-character .right-leg::after {
    content: '';
    width: 14px;
    height: 8px;
    background-color: #2d3436; /* Couleur des chaussures */
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Ajouter un chapeau */
.walking-character .head::after {
    content: '';
    width: 50px;
    height: 15px;
    background-color: #cf2d46; /* Couleur du chapeau */
    position: absolute;
    top: -10px;
    left: 0;
    border-radius: 5px;
}


/* Animation pour le déplacement */
@keyframes walkAnimation {
    0% {
        left: -100px; /* Début hors de l'écran à gauche */
    }
    50% {
        left: 50%; /* Milieu de l'écran */
        transform: translateX(-50%); /* Centrer horizontalement */
    }
    100% {
        left: 100%; /* Fin hors de l'écran à droite */
    }
}
