/* Page Mon Compte Styles */

.account-page {
    background-color: #1a1a1a;
    padding: 80px 0;
    min-height: 100vh;
}

.account-page .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.account-page .page-header {
    text-align: center;
    margin-bottom: 60px;
}

.account-page .page-header h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.account-page .page-header p {
    color: #ccc;
    font-size: 18px;
}

/* Account Dashboard */
.account-dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* Account Menu */
.account-menu {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.account-menu h3 {
    color: #FFDD03;
    font-size: 20px;
    margin-bottom: 25px;
}

.account-menu nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-nav-item {
    color: #ccc;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.account-nav-item.active {
    color: #fff;
    background-color: #333;
}

.account-nav-item:hover:not(#logout-link) {
    background-color: #333;
    color: #fff;
}

.account-nav-item#logout-link {
    color: #dc3545;
}

.account-nav-item#logout-link:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Account Content */
.account-content {
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 12px;
}

.account-section {
    display: none;
}

#profile-section {
    display: block;
}

.account-section h2 {
    color: #FFDD03;
    font-size: 24px;
    margin-bottom: 30px;
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group-single {
    margin-bottom: 30px;
}

.form-group-single label,
.form-grid label {
    color: #ccc;
    display: block;
    margin-bottom: 8px;
}

.form-group-single input,
.form-grid input,
.form-group-single select,
.address-form-container input,
.address-form-container select {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
}

.form-group-single input[readonly],
.form-grid input[readonly] {
    background-color: #333;
    border: none;
}

.required {
    color: #FF6B35;
}

.btn-primary {
    background-color: #FFDD03;
    color: #000;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e5c700;
}

.btn-secondary {
    background-color: #666;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Orders Section */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #ccc;
}

.empty-state p {
    font-size: 18px;
}

/* Addresses Section */
.addresses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.addresses-header h2 {
    margin: 0;
}

.address-item {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #444;
}

.address-item-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.address-details strong {
    color: #FFDD03;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.address-details .recipient-name {
    color: #999;
    margin: 5px 0;
    font-size: 14px;
}

.address-details p {
    color: #ccc;
    margin: 5px 0;
}

/* Address Form */
.address-form-container {
    display: none;
    background-color: #333;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.address-form-container h3 {
    color: #FFDD03;
    font-size: 20px;
    margin-bottom: 20px;
}

.address-form-container .form-group-single {
    margin-bottom: 20px;
}

.address-form-container .form-grid {
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-actions .btn-primary {
    flex: 1;
}

/* Not Logged In */
.not-logged-in {
    background-color: #2a2a2a;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
}

.not-logged-in h2 {
    color: #FFDD03;
    font-size: 28px;
    margin-bottom: 20px;
}

.not-logged-in p {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 40px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.auth-buttons .btn-login {
    display: inline-block;
    background-color: #FFDD03;
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.auth-buttons .btn-register {
    display: inline-block;
    background-color: transparent;
    color: #FFDD03;
    border: 2px solid #FFDD03;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .account-dashboard {
        grid-template-columns: 1fr;
    }
    
    .account-menu {
        height: auto;
    }
}

@media (max-width: 768px) {
    .account-page {
        padding: 40px 0;
    }
    
    .account-page .page-header h1 {
        font-size: 32px;
    }
    
    .account-content {
        padding: 25px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
}


/* ========================================
   MODAL AVIS
   ======================================== */

.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.review-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-modal-header h2 {
    color: #FFDD03;
    margin: 0;
}

.review-modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-close:hover {
    color: #FFDD03;
}

#review-form .form-group {
    margin-bottom: 20px;
}

#review-form label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 600;
}

#review-form .required {
    color: #ff4444;
}

#review-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}

#review-form textarea:focus {
    outline: none;
    border-color: #FFDD03;
}

.rating-stars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    cursor: pointer;
    padding: 8px 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.rating-stars input[type="radio"]:checked + label {
    background-color: #FFDD03;
    color: #000;
    border-color: #FFDD03;
}

.rating-stars label:hover {
    border-color: #FFDD03;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background-color: #FFDD03;
    color: #000;
}

.form-actions .btn-primary:hover {
    background-color: #ffed4e;
}

.form-actions .btn-secondary {
    background-color: #444;
    color: #fff;
}

.form-actions .btn-secondary:hover {
    background-color: #555;
}
