.class1 {
    background-color: #9c8bca;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
    margin-top: 3em;
    
}

h1{
    font-family:sans-serif;
    color:whitesmoke;
 }

#onglets{
    display: flex;
    justify-content: center;
    height: 100%;
    width: 70%;
}

body{
    margin:0px;
    padding: 0px;
    font-family: calibri;
}

#textepre {
    font-style: italic;
    font-family: sans-serif;
    color: whitesmoke;
    font-size: 40px;
    margin-bottom: 8em;
    margin-right: 5em;
}

.grid-container-element {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px;
}

.grid-child-element {
    flex: 1; 
    max-width: 50%; 
}

.clearfix {
    zoom: 1;
}

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

.top_nav {
    display: flex;
    justify-content: center;
    transition: all 1s;
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
    height: 40px;
}

div {
    display: block;
    unicode-bidi: isolate;
}

#greek {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#american {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#onglets li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10em;
    height: 100%;
    line-height: 30px;
    background-color: red;
    text-align: center;
    color: white;
    font-size: 3em;
    background-color: #ae85fe;
    border: solid 1px #46484D;
    box-shadow: 1px 1px 5px rgb(156, 156, 156);
    font-size: 30px;
    transition: all 0.4s;
}

#onglets {
    display: flex;
    justify-content: center;
    height: 100%;
    width: 70%;
}

#onglets li:hover {
    -webkit-box-shadow: 0px 0px 31px 5px rgba(174, 133, 254, 0.33);
    box-shadow: 0px 0px 31px 5px rgba(174, 133, 254, 0.33);
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card h2 {
    text-align: center;
    font-size: 22px;
}

.card p {
    font-size: 16px;
    color: #444;
    text-align: justify;
}

.btn {
    display: block;
    width: max-content;
    margin: 10px auto;
    padding: 10px 15px;
    background-color: #6A5ACD;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

#info-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0px;
    left: auto;
    transform: translateY(-25%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 95% ;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    width: 95%;
    overflow: auto;
}

.scientist-box {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    width: 100%; 
    max-width: none;
}

.scientist-box:hover {
    transform: scale(1.05);
}

.scientist-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.scientist-box h2 {
    font-size: 1.3rem;
    color: #22252e;
    font-weight: bold;
}

.scientist-box p {
    font-size: 1rem;
    color: #777474;
}

.box-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: stretch; 
    width: 100%; 
    gap: 20px; 
}

.box {
    flex: 1; 
    min-width: 250px; 
    max-width: 400px; 
    height: auto;
}

.hidden {
    display: none;
}

.actif{
    visibility: visible;
}

.scientist-box a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #6A5ACD;
    color: white;
    text-decoration: none;
    border-radius: 25px; 
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.scientist-box a:hover {
    background-color: #5640e7; 
    transform: translateY(-2px); 
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}

#onglets {
    position: relative;
}

.back-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #896CEE, #896CEE);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background: linear-gradient(45deg, #896CEE, #896CEE);
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}