* {
    box-sizing: border-box;
}

body {
    background-color: white; /* Fond gris clair */
    color: #34495E; /* Texte principal */
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: justify;
}

/* Header and Footer */
header, footer {
    background-color: #2C3E50; /* Bleu foncé */
    color: white; /* Texte blanc */
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* Main content */
main {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Sections */
section {
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: auto;
}

section.corps {
    text-align: left; /* Aligne tout le contenu de la section à gauche */
    background-color: #7A90A4;
    color: black;
}

section.corps li {
    margin-left: 20px; /* Ajoute une marge pour indenter les puces */
}


section.feet {
    text-align: left;
    background-color: #B8CBD0;
    color: black;
}

section.feet li{
    margin-left: 20px;
}

.feet:hover .info-cachee {
    opacity: 1;
    max-height: 500px; /* Ajuste selon ton contenu */
}

/* Projets */
.projets-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacement entre les carrés */
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
    margin-top: 20px;
    margin-left: 5% ;
}

.projet {
    display: flex;
    flex-direction:column;
    justify-content :center;
    align-items :center;
    text-align: center;
    width: 200px;
    height: 200px;
    background-color: #384454; /* Couleur de fond */
    color: #ECF0F1; /* Texte blanc */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet:hover {
    background-color: #2C3E50; /* Bleu foncé au survol */
    transform: translateY(-10px); /* Légère élévation */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
}

/* Links */
a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E74C3C; /* Rouge vif au survol */
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Language selector */
.accessibility-selector {
    position: fixed; /* ou fixed si tu veux qu'il reste visible en scroll */
    top: 60px; /* Ajuste selon la position du bouton */
    right: 20px; /* Distance depuis la droite */
    font-weight: bold;
    background-color:#F4F7F9; /* Fond semi-transparent */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 2px solid #7A90A4;
    box-shadow: 0 0 10px #7A90A4;
}

.accessibility-selector a {
    text-decoration: none;
    color: #333;
    margin: 0 5px;
}

.accessibility-selector a:hover {
    color: #0077b6; /* Effet au survol */
}


.button-container {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    margin-top: 20px; /* Ajoute un espacement si nécessaire */
    /*flex-direction: column;*/ 
}

button {
    padding: 10px 20px;
    margin: 2px;
    background-color: #2C3E50; /* Couleur de fond */
    color: white; /* Couleur du texte */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #E74C3C; /* Couleur au survol */
}

/* Bouton pour ouvrir/fermer le menu */
button#toggle-accessibility-menu {
    padding: 10px 15px;
    background-color: #2C3E50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button#toggle-accessibility-menu:hover {
    background-color: #E74C3C;
}


/* Headings */
h1 {
    text-align: center;
}

body.light-mode {
    background-color: white;
  }
  body.dark-mode {
    background-color: #121212;
  }