/* Wrapper de recherche */
.documentation-search-wrapper {
    margin-bottom: 20px;
}

/* Champ de recherche */
.documentation-search {
    position: relative;
    max-width: 100%;
}

.documentation-search__input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 15px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.documentation-search__input:focus {
    outline: none;
    border-color: #2c5364;
}

.documentation-search__input::placeholder {
    color: #999;
}

/* Bouton effacer */
.documentation-search__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    padding: 0;
}

.documentation-search__clear:hover {
    color: #333;
}

.documentation-search__clear.is-visible {
    display: flex;
}

/* Message aucun résultat */
.documentation-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 10px;
}

/* Conteneur de l'accordéon */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Item de l'accordéon */
.accordion-item {
    border-radius: 4px;
    overflow: hidden;
}

/* Header de l'accordéon */
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #2c5364;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #1f3f4d;
}

.accordion-header[aria-expanded="true"] {
    background: #1f3f4d;
}

.accordion-header__title {
    flex: 1;
}

.accordion-header__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-header__icon {
    transform: rotate(45deg);
}

.accordion-header__icon svg {
    width: 100%;
    height: 100%;
}

/* Contenu de l'accordéon */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.is-open {
    max-height: 5000px;
}

/* Liste des documents */
.documentation-list {
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

/* Item de documentation */
.documentation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #e8e8e8;
    color: #666;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #d0d0d0;
}

.documentation-item:last-child {
    border-bottom: none;
}

.documentation-item:hover {
    background: #d8d8d8;
    color: #333;
}

.documentation-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #999;
    border-radius: 50%;
    color: #fff;
}

.documentation-item__icon svg {
    width: 24px;
    height: 24px;
}

.documentation-item__title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Breakpoint 1000px */
@media (min-width: 1000px) {
    .accordion-container {
        gap: 15px;
    }

    .accordion-header {
        padding: 20px 25px;
        font-size: 18px;
    }

    .accordion-header__icon {
        width: 28px;
        height: 28px;
    }

    .documentation-item {
        padding: 18px 25px;
    }

    .documentation-item__icon {
        width: 45px;
        height: 45px;
    }

    .documentation-item__icon svg {
        width: 26px;
        height: 26px;
    }

    .documentation-item__title {
        font-size: 16px;
    }
}
