#help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;

    background-image: url('../../images/aide.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

#help-button-mobile {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-family: 'Crafty Girls', cursive;
    font-size: 0.8rem;
    padding: 0;
}

#help-button-mobile i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 990px) {
    #help-button {
        display: none;
    }

    #help-button-mobile {
        display: block;
    }
}

#help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

@keyframes modalAppear {
    from {
        opacity: 0; /* Commence complètement transparent */
        transform: translateY(-20px); /* Déplace légèrement vers le haut */
    }
    to {
        opacity: 1; /* Devient complètement opaque */
        transform: translateY(0); /* Retourne à sa position d'origine */
    }
}

/* Appliquer l'animation à la modale */
#help-modal .modal-content{
    animation: modalAppear 0.3s ease; /* Durée de l'animation de 0.3 secondes */
}

.modal-content {
    max-width: 700px;
    max-height: 80vh;
}

#help-modal .modal-body {
    display: flex;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.help-categories {
    width: 200px;
    border-right: 1px solid #eee;
    padding: 1rem 0;
    overflow-y: auto;
    background-color: #fff;
}

.category-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.category-button:hover {
    background-color: #f8f9fa;
}

.category-button.active {
    background-color: #e9ecef;
    border-left: 4px solid #007bff;
}

.help-content-wrapper {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

#help-content {
    margin-bottom: 1.5rem;
    max-width: 90%;
    text-align: justify;
    font-size: 0.95rem;
    line-height: 1.6;
}

.help-media-figure {
    margin: 1rem 0;
    text-align: center;
    max-width: 90%;
}

.help-media-image,
.help-media-video {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

figcaption {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}



#help-title {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    text-align: center;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    #help-modal {
        padding-top: 5rem;
       
    }

    .modal-content {
        width: 95%;
        height: auto;
        margin: 0;
    }

    .modal-body {
        flex-direction: column;
        height: calc(100% - 60px);
    }

    .help-categories {
        width: 100%;
        max-height: 25%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .help-content-wrapper {
        padding: 1rem;
        height: auto;
    }

    #help-content {
        font-size: 0.9rem;
        max-width: 95%;
    }

    #help-title{
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        height: 75vh;
    }

    .help-categories {
        max-height: 30%;
    }

    #help-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    #help-title{
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        height: 90vh;
    }

    .modal-body {
        flex-direction: row;
    }

    .help-categories {
        width: 35%;
        height: 100%;
        max-height: none;
        border-right: 1px solid #eee;
        border-bottom: none;
    }

    .help-content-wrapper {
        width: 65%;
    }
}

@media (max-width: 990px) {
    .modal-content {
        margin-bottom: 60px;
    }
}

.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: rgba(201, 90, 229, 0.7);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 100%;
    padding-bottom: 10px;
    left: 45%;
    transform: translateX(-50%);
    z-index: 999;
    transition: visibility 0s, opacity 0.2s linear;
    opacity: 0;
}

#help-button:hover .tooltip {
    visibility: visible;
    opacity: 1;
} 