/* onglets */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab {
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: grey;
}



.tab:hover {
    color: rgb(74, 74, 74);
    border-bottom: 2px solid rgba(128, 128, 128, 0.386) ;

}

.tab.active {
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

.exo-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 1rem;
}

.hidden {
    display: none;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}




/* page cours */
html {
    background-color: whitesmoke;
}

main {
    margin: 30px 60px 30px 60px;
}

.info-cours {
    display: flex;
    border-radius: 20px;
    padding: 30px;
    background-color: white;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.info-cours h1 {
    margin: 0;
}

.infoBulle {
    display: flex;
    gap: 10px;
}

.bulle {
    font-size: small;
    padding: 0px 7px 0px 7px;
    border-radius: 20px;
    width: max-content;
}

.bulle-blue {
    background-color: rgb(219 234 254);
    color: rgb(30 64 175);
}

.bulle-violet {
    color: rgb(107 33 168);
    background-color: rgb(243 232 255);
}

.bulle-vert {
    color: rgb(22 101 52);
    background-color: rgb(220 252 231);
}

.bulle-gris {
    color: rgb(31 41 55);
    background-color: rgb(243 244 246);
}


.bulle-rouge {
    color: red;
    background-color: rgb(252, 220, 220);
}

.icon-cours {
    height: 2.3rem;
    width: 2.3rem;
    font-size: small;
}



.language-cours {
    display: flex
    ;
    justify-content: start;
    align-items: center;
    gap: 10px;
}
.language-cours *{
    margin: 0;
}


/* Card exo */

.card-exo {
    position: relative;
    border-radius: 15px;
    background-color: white;
}
.card-exo:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-info-exo {
    padding: 20px;
}

.header-card-exo {
    display: flex;
    justify-content: space-between;
}
.header-card-exo h3,
.header-card-exo p{
    margin: 0;
}
.header-card-exo p{
    height: min-content;
}

.footer-exo {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    bottom: 5px;
    right: 5px;
}


.footer-exo-edit {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.footer-exo a,
.footer-exo-edit a{
    display: flex;
    gap: 10px;
    color: #4f46e5;
}

.footer-exo a:hover, .footer-exo a:hover *,
.footer-exo-edit a:hover, .footer-exo-edit a:hover *
{
    color: red;
    fill: red;
}

.border-vert {
    border-left: 3px solid rgb(34 197 94);
}

.border-blue {
    border-left: 3px solid rgb(59 130 246);
}

.border-gris {
    border-left: 3px solid rgb(209 213 219);
}

.border-rouge {
    border-left: 3px solid rgb(246, 59, 59);
}

.description-exo,.type-exo *{
    font-size: inherit;
    color: grey;
    margin: 0;
    margin-bottom: 1rem;
}

.type-exo p{
    font-size: small;
}


.siteWebLien{
    color: var(--color-principal);
}


.card-exo:active, .card-exo:visited{
    color: var(--color-principal);
}



.flask { 
    fill: #4f46e5;
    transition: transform 0.3s;
    cursor: pointer;
}

a:hover .flask {
    transform: translateY(-3px);
}

.particle {
    fill: #4f46e5;
    opacity: 0;
    animation: none;
}

a:hover .flask .particle {
    animation: fly 1.5s ease-out infinite;
}

@keyframes fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(0, -60px) scale(1.5);
    }
}

/* Petits décalages pour des trajectoires différentes */
.p1 { animation-delay: 0s; transform-origin: 480px 500px; }
.p2 { animation-delay: 0.2s; transform-origin: 500px 520px; }
.p3 { animation-delay: 0.4s; transform-origin: 460px 510px; }