.flash-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: white;
    border: 2px solid;
}

.flash-success {
    background-color: #28a745;
    border-color: #1e7e34;
}

.flash-error {
    background-color: #dc3545;
    border-color: #bd2130;
}

.flash-warning {
    background-color: #ffc107;
    border-color: #d39e00;
    color: #212529;
}

.flash-info {
    background-color: #17a2b8;
    border-color: #117a8b;
}

.container-account {  
    background-color: #005;
    border-radius: 50%;
    margin: 0;
    padding: 20px;
    border: thick double #006;
    border-width: 0.4em;
}
.container-account:hover { 
    background-color: #004;
    border: thick double #009;
    border-width: 0.4em;
}
.title-wrapper {
    text-align: center;
    margin: 20px 0;
}

.title-account { 
    background-color: #007;
    border-radius: 50%;
    border: thick double #006;
    border-width: 0.4em;
    display: inline-block;
    padding: 10px 20px;
}
.title-account:hover { 
    background-color: #007;
    border: thick double #009;
    border-width: 0.4em;
}
.account-btn { 
    background-color: #007;
    text-align: center;
    border-radius: 50%;
    border: thick double #006;
    border-width: 0.4em;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}
.account-btn:hover { 
    background-color: #006;
    border: thick double #009;
    border-width: 0.4em;
}

.account-btn a {
    text-decoration: none;
    color: #f90;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: #009;
    border: thick double #006;
    border-width: 0.2em;
    margin: 0 10px;
}

.account-btn a:hover {
    color: #fff;
    background-color: #006;
    border: thick double #009;
    border-width: 0.2em;
}

.account-btn a i {
    font-size: 70px;
}

.account-btn a h2 {
    margin: 0;
    color: #f90;
}

.account-btn a:hover h2 {
    color: #f90;
}

.account-btn form {
    margin: 0;
}

.account-btn button {
    text-decoration: none;
    color: #f90;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: #009;
    border: thick double #006;
    border-width: 0.2em;
    cursor: pointer;
    margin: 0 10px;
}

.account-btn button:hover {
    color: #fff;
    background-color: #006;
    border: thick double #009;
    border-width: 0.2em;
}

.account-btn button i {
    font-size: 70px;
}

.account-btn button h2 {
    margin: 0;
    color: #f90;
}

.account-btn button:hover h2 {
    color: #f90;
}

.back-wrapper {
    text-align: center;
    margin: 20px 0;
}

.back-account { 
    background-color: #007;
    border-radius: 50%;
    font-size: 25px;
    color: #f90;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top: thick double #006;
    border-bottom: thick double #006;
    border-width: 0.4em;
    cursor: pointer;
    display: inline-block;
    padding: 10px 20px;
}
.back-account:hover {
    background-color: #006;
    border-top: thick double #009;
    border-bottom: thick double #007;
    border-width: 0.4em;
}

.user-info-account {
    background-color: #007;
    padding: 20px;
    border-radius: 50%;
    border: thick double #006;
    border-width: 0.4em;
    color: white;
    text-align: center;
    margin: 20px 0;
}

.user-info-account:hover {
    background-color: #006;
    border: thick double #009;
    border-width: 0.4em;
}

.user-info-account h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #f90;
}

.user-info-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.user-profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.user-profile-large {
    width: 100%;
    height: 440px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #009;
}

.user-profile-large:hover {
    border: 1px solid #006;
}

.user-profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #006;
    border: 3px solid #f90;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f90;
    font-size: 60px;
}

.user-details-section {
    background-color: #005;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 50%;
    border: 1px solid #009;
}

.user-details-section:hover {
    border: 1px solid #006;
}

.user-actions-section {
    background-color: #005;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 50%;
    align-items: center;
    border: 1px solid #009;
}

.user-actions-section:hover {
    border: 1px solid #006;
}

.account-action-btn {
    text-decoration: none;
    color: #f90;
    background-color: #007;
    border: thick double #006;
    border-width: 0.4em;
    border-radius: 50%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 182px;
    height: 138px;
    transition: all 0.3s;
}

.account-action-btn:hover {
    background-color: #006;
    border: thick double #009;
    border-width: 0.4em;
    color: #fff;
}

.account-action-btn i {
    font-size: 77px;
    margin-bottom: 5px;
}

.account-action-btn h2 {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

.account-action-form {
    margin: 0;
}

.account-action-form button {
    text-decoration: none;
    color: #f90;
    background-color: #007;
    border: thick double #006;
    border-width: 0.4em;
    border-radius: 50%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 182px;
    height: 138px;
    transition: all 0.3s;
    cursor: pointer;
}

.account-action-form button:hover {
    background-color: #006;
    border: thick double #009;
    border-width: 0.4em;
    color: #fff;
}

.account-action-form button i {
    font-size: 77px;
    margin-bottom: 5px;
}

.account-action-form button h2 {
    margin: 0;
    font-size: 12px;
    text-align: center;
}

.user-info-item {
    margin-bottom: 10px;
    padding: 5px;
}

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

.user-info-item strong {
    color: #f90;
}

.user-profile-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-left: 10px;
}

.toggle-visibility-btn {
    background-color: #009;
    border: thick double #006;
    border-width: 0.2em;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.toggle-visibility-btn:hover {
    background-color: #006;
    border: thick double #009;
    border-width: 0.2em;
    color: #f90;
}

.password-registration {
    text-align: center;
    padding: 20px;
}

.password-registration i {
    font-size: 60px;
    color: #f90;
    display: block;
    margin: 0 auto;
}

/* Responsive pour la nouvelle structure à trois colonnes */
@media (max-width: 768px) {
    .user-info-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .user-profile-section {
        order: 1;
    }
    
    .user-details-section {
        order: 2;
    }
    
    .user-actions-section {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .account-action-btn {
        width: 100px;
        height: 100px;
    }
    
    .account-action-btn i {
        font-size: 25px;
    }
    
    .account-action-btn h2 {
        font-size: 10px;
    }
    
    .user-profile-large,
    .user-profile-placeholder {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .user-actions-section {
        flex-direction: column;
    }
    
    .account-action-btn {
        width: 90px;
        height: 90px;
    }
    
    .account-action-btn i {
        font-size: 20px;
    }
    
    .account-action-btn h2 {
        font-size: 9px;
    }
}