.aiw-container {
    max-width: 935px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 20px 10px;
}

.aiw-error {
    padding: 14px 16px;
    border-left: 4px solid #d63638;
    background: #fcf0f1;
}

/* Style de l'en-tête du profil */
.aiw-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.aiw-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dbdbdb;
}

.aiw-profile-info {
    flex: 1;
}

.aiw-top-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.aiw-username {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #737373;
}

.aiw-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #262626;
}

.aiw-follow-btn {
    background-color: #0095f6;
    color: #ffffff !important;
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.aiw-follow-btn:hover {
    background-color: #1877f2;
}

.aiw-stats-row {
    display: flex;
    gap: 30px;
    font-size: 15px;
    color: #262626;
}

/* Style de la grille responsive */
.aiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.aiw-grid-item {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #fafafa;
    display: block;
}

.aiw-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aiw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
    color: #fff;
}

.aiw-grid-item:hover img {
    transform: scale(1.03);
}

.aiw-grid-item:hover .aiw-overlay {
    opacity: 1;
}

/* Responsive Mobile */
@media (max-width: 640px) {
    .aiw-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .aiw-top-row {
        justify-content: center;
    }

    .aiw-stats-row {
        justify-content: center;
        gap: 15px;
        font-size: 13px;
    }

    .aiw-grid {
        gap: 0;
    }
}
