html {
height: 100%;
width: 100%;
}
body {
background-color: white;
font-family: Verdana, sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
}
header {
background-color: white;
border: solid;
padding : 2em;
}
footer {
    background-color: #F5F5F5; /* Fond du footer */
    color: black;
    padding: 10px;
}
h1 {
font-size: 200%;
color: #0065d8;
text-align: center;
}
h2 {
font-size: 150%;
color: #9370DB;
padding-left: 15px;
}
p,ul,li,td {
color: black;
}
p.bandeau{
   font-size: 200%;
}

nav {
   text-align: center;
   margin-top: 15px;
   margin-b: 15px;
   padding : 5px;
   width: 50%
}
a:link {
color: #1E90FF;
text-decoration: underline;
}
a:visited {
color: #800080;
}
a:hover {
color: #0816ff;
text-decoration: none;
}

details {
margin : 1em;
font-size: 80%;
padding-left: 30px;
padding-bottom : 30px;
}
aside{
margin : 1em;
font-size: 80%;
}

img {
   border : 2px     solid #000000;
width : 80%;
}
img.middle {
   vertical-align: middle;
}

iframe {
   display: block;
   margin: 0 auto;
    width: 100%; /* Adapte l'iframe à la largeur du parent */
   max-width: 100%; /* Empêche le dépassement */
   height: calc(100vw * 9 / 16); /* Fixe la hauteur au ratio 16:9 */
   max-height: 500px; /* Empêche que la vidéo devienne trop grande sur grand écran */
}


div.menu {
text-align: center;  
}



.mainmenubtn {
   background-color: #0065d8;
   color: white;
   border: none;
   cursor: pointer;
   padding:20px;
   margin-top:20px;
   width: 100%;
}
.mainmenubtn:hover {
   background-color: #ADD8E6;
   width: 100px
   }
.dropdown {
   position: relative;
   display: inline-block;
}
.dropdown-child {
   display: none;
   background-color: #ADD8E6;
}
.dropdown-child a {
   color: #9370DB;
   padding: 5px;
   text-decoration: none;
   font-size: 80%
}
.dropdown:hover .dropdown-child {
   display: grid;
   grid-template-columns: 100px;
}

section {
   background: #F5F5F5;
   border : 2px solid #9370DD;
   padding: 50px;
   border-radius: 8px;
   margin: 20px auto;
   width: 80%; 
    box-shadow: 0px 2px 10px rgba(0,0,0,0.05)
}
.alternate-section {
 background: white;
 padding: 50px;
 border-radius: 8px;
}

.social-buttons {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.social-button {
   display: inline-block;
   padding: 10px 20px;
   font-size: 16px;
   color: #F5F5F5;
   text-align: center;
   text-decoration: none;
    background-color: #efcaff;
   border-radius: 5px;
   transition: background-color 0.3s, color 0.3s;
}

.social-button:hover {
   opacity: 0.9;
   background-color: #9370DB;
}






body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
}

.bandeau {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd; 
}

.bandeau img {
    height: 50px;
}

.quote-container {
    text-align: center;
    font-style: italic;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
}

.quote {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.author {
    font-size: 1em;
    color: #888;
}

.menu {
    display: flex;
    justify-content: center;
    background-color: #f8f8f8;
    padding: 10px 0; 
}

.dropdown {
    position: relative;
    margin: 0 15px;
}

.mainmenubtn {
    width: 10vw;
    min-width: 50px;
    max-width: 200px;
    background-color: #0065d8;
    color: white;
    padding: 1vw;
    font-size: 1.2vw
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dropdown-child {
    display: none;
    position: absolute;
    background-color: #ADD8E6;
    width: 100%;
    overflow: hidden;
    max-height: 500px;
    border-radius:8px;
    flex-direction: column;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-child a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ffffff
}

.dropdown-child a:hover {
    background-color: #A7C7E7;
    border-bottom : 2px solid #9370DB;
}

.dropdown:hover .dropdown-child {
    display: block;
}




.share-buttons {
    display: flex;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne */
    gap: 10px;
    max-width: 100%;
}
.share-buttons a {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 16px;
}
.share-buttons .facebook { background-color: #3b5998; }
.share-buttons .twitter { background-color: #1da1f2; }
.share-buttons .linkedin { background-color: #007bb5; }
.share-buttons .pinterest { background-color: #bd081c; }

/* Applique uniquement au logo */
img.logo {
    width: 10vw; /* 10% de la largeur de l'écran */
    height: 10vw; /* Même hauteur pour garder le rond */
    max-width: 150px; /* Taille max pour éviter qu’il ne devienne trop grand */
    max-height: 150px;
    border-radius: 50%; /* Rend l'image circulaire */
    object-fit: cover; /* Évite les déformations */
}

img.body{
    width: 50vw; /* 10% de la largeur de l'écran */
    height: 50vw; /* Même hauteur pour garder le rond */
    max-width: 150px; /* Taille max pour éviter qu’il ne devienne trop grand */
    max-height: 150px;  
    object-fit: cover; /* Évite les déformations */
}



.lexique {
    font-weight: bold;
    color: #0c0bff;
    cursor: pointer;
    text-decoration: underline;
    position: relative;
}

.tooltip {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 220px; /* Fixe une largeur pour éviter le dépassement */
    white-space: normal; /* Permet le retour à la ligne */
    word-wrap: break-word; /* Assure que le texte ne dépasse pas */
    text-align: center;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.tooltip .close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}




.tooltip .close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}



@keyframes colorChange {
    0% { color: #00008B; } /* Bleu foncé */
    25% { color: #0000CD; } /* Bleu moyen */
    50% { color: #4B0082; } /* Violet indigo */
    75% { color: #800080; } /* Violet */
    100% { color: #00008B; } /* Bleu foncé */
}

.animated-title {
    font-size: 2em;
    font-weight: bold;
    animation: colorChange 5s infinite;
}


.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f9fa;
    padding: 50px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 20px auto;
    width: 80%;
}

.imagebody{
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Ajuste selon tes besoins */
    height: 40px;
    border-radius: 50%;
    background-color: #0065d8;
    color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background-color 0.3s;
}

.home-icon img {
    width: 25px; /* Ajuste selon ton icône */
    height: auto;
}

.home-icon i {
    font-size: 24px;
    color: #ffffff;
}

.home-icon:hover {
    background-color: #ffffff; 
}

.home-icon:hover i {
    font-size: 24px;
    color: #1E90FF;
}

.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #9370DB;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.chatbot-button:hover {
    background-color: #ADD8E6;
}

.chatbot-window {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 70%;
    height: 50%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.chatbot-header {
    background-color: #1E90FF;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
}

.chatbot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.chatbot-message {
    margin-bottom: 10px;
}

.chatbot-message.user {
    text-align: right;
    background-color: #ffffff;
    border: 1px solid #ADD8E6;
    border-radius: 5px;
    padding: 10px;
    margin: 10px:
}

.chatbot-message.bot {
    text-align: left;
    background-color: #ADD8E6;
    border-radius: 5px;
    padding: 10px;
    margin: 10px:
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #ccc;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.chatbot-input button {
    padding: 10px;
    background-color: #1E90FF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.chatbot-input button:hover {
    background-color: #ADD8E6;
}








/* Appliquer le filtre seulement au body et à la page entière */
body {
    transition: filter 0.3s ease;
}

body.filter-mode .protanopie,
body.filter-mode .deuteranopie,
body.filter-mode .tritanopie {
    filter: contrast(1.4) saturate(1.5) hue-rotate(-60deg); /* Exemple pour un mode */
}

/* Appliquer des filtres aux autres sections de la page si besoin */

/* Mais ne pas appliquer le filtre au pop-up */
#settings-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    filter: none; /* S'assurer qu'il n'est pas affecté par les filtres */
}

/* Style du contenu de la pop-up */
.popup-content {
    overflow: auto;
}

/* Style pour les boutons de fermeture */
.close-btn {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
}

/* Fond semi-transparent derrière */
.popup::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(147, 112, 221, 0.5);
    z-index: -1;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Mode Protanopie */
.protanopie {
    filter: contrast(0.8) saturate(2) hue-rotate(-90deg);
}

/* Mode Deutéranopie */
.deuteranopie {
    filter: contrast(1.4) saturate(1.5) hue-rotate(-60deg);
}

/* Mode Tritanopie */
.tritanopie {
    filter: contrast(0.8) saturate(1.5) hue-rotate(90deg);
}

.settings-btn{
    position: absolute; /* ou fixed, selon vos besoins */
        top: 5%; /* Ajustez cette valeur selon vos besoins */
        left: 85%; /* Ajustez cette valeur selon vos besoins */
        width: 7%; /* Ajustez la largeur */
        height: 7%; /* Ajustez la hauteur */
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Style pour l'image dans le bouton */
    .settings-btn img {
        width: 100%;
        height: auto;
    }
}