/* ========================================
   STYLES POUR LA MODALE D'AIDE
   ======================================== */

/* Conteneur principal de l'aide */
.help-container {
    padding: 20px;
    max-width: 100%;
    font-family: var(--font-title, 'Inter', sans-serif);
    line-height: 1.6;
    color: var(--clr-text);
}

/* Titres de catégories */
.help-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-category-title:first-of-type {
    margin-top: 0 !important;
}


/* Sections d'aide individuelles */
.help-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 8px solid var(--primary-color);
}

.help-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color-hover);
    border-left: 10px solid var(--accent-color-hover);
}

/* En-tête de section avec icône */
.help-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    flex-shrink: 0;
    transition: all 0.5s ease;
    text-shadow: 0 3px 0px black;
    box-shadow: 0 5px 0 var(--accent-color-focus);
}

.help-section:hover .help-section-icon {
    background: var(--accent-color-hover);
    box-shadow: 0 7px 0 var(--primary-color);

}

.help-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

/* Description de la section */
.help-section-description {
    font-size: 0.95rem !important;
    color: var(--clr-text);
    margin: 0;
    line-height: 1.6;
    padding-left: 64px; /* Aligner avec le titre après l'icône */
}

/* Message d'absence d'accès */
.help-no-access {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--clr-text-muted);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.help-no-access i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
    display: block;
}

/* Bouton de fermeture */
.help-close-button-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.help-close-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-close-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
    background: var(--secondary-color);
}

/* Instructions détaillées */
.detailed-instructions {
    background: #f8f9fa;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
}

.detailed-instructions::before {
    content: '📋';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.5rem;
}

.detailed-instructions h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detailed-instructions ol {
    line-height: 1.8;
    padding-left: 1.5rem;
    counter-reset: instruction-counter;
}

.detailed-instructions li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.5rem;
    counter-increment: instruction-counter;
}

.detailed-instructions li::marker {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .help-container {
        padding: 15px;
        padding-top: 0;
    }
    
    .help-category-title,
    .help-section-icon {
        font-size: 1.3rem;
        margin: 1rem 0 0.75rem 0;
    }

    
    .help-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .help-section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .help-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .help-section-title {
        font-size: 1.1rem;
    }
    
    .help-section-description {
        padding-left: 0;
        text-align: center;
    }
    
    .detailed-instructions {
        padding: 1.5rem;
    }
    
    .detailed-instructions h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .help-container {
        padding: 10px;
    }
    
    .help-category-title {
        font-size: 1.1rem;
    }
    
    .help-section {
        padding: 0.75rem;
    }
    
    .help-section-title {
        font-size: 1rem;
    }
    
    .help-section-description {
        font-size: 0.9rem;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-section {
    animation: fadeInUp 0.6s ease-out;
}

.help-section:nth-child(2) { animation-delay: 0.1s; }
.help-section:nth-child(3) { animation-delay: 0.2s; }
.help-section:nth-child(4) { animation-delay: 0.3s; }
.help-section:nth-child(5) { animation-delay: 0.4s; }
.help-section:nth-child(6) { animation-delay: 0.5s; }

/* États de focus pour l'accessibilité */
.help-section:focus-within {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.help-close-button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
} 