/* Styles pour la page compte */
.account-page {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

/* Ajout d'un overlay sombre pour améliorer la lisibilité */
.account-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.account-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-light-dark);
    z-index: -1;
}

.account-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-header h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.account-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.account-status.premium {
    background: linear-gradient(135deg, #3B3EFF, #5D60FF);
    color: white;
}

.account-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.account-section h2 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.payment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-date {
    color: white;
    font-size: 1.1rem;
}

.payment-amount {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.invoice-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.danger-zone {
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.1);
}

.warning-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.delete-account-button {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #FF3B30;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-account-button:hover {
    background: rgba(255, 59, 48, 0.3);
    transform: translateY(-2px);
}

/* Modal de confirmation */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--background-dark);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.confirm-button {
    background: #FF3B30;
    border: none;
    color: white;
}

.confirm-button:hover {
    background: #FF453A;
    transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 768px) {
    .account-content {
        padding: 1rem;
    }

    .account-card {
        padding: 1.5rem;
    }

    .payment-item {
        flex-direction: column;
        gap: 1rem;
    }

    .invoice-button {
        width: 100%;
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }
}

/* Sélecteur de langue */
.language-selector {
    margin: 0;
    padding: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-selector h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.language-flags {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.flag-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flag-btn img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.flag-btn:hover img {
    transform: scale(1.1);
}

.flag-btn.active {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* Animation pour le changement de langue */
@keyframes flag-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.flag-btn.active img {
    animation: flag-pulse 0.3s ease-in-out;
}

/* Styles pour le sélecteur de fond d'écran */
.background-selector {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.background-selector h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.background-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.background-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.background-thumbnail.active {
    border-color: var(--primary-color);
}

.background-thumbnail.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

@media (max-width: 768px) {
    .background-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
} 
/* Progression (gamification) + préférences — refresh */
.gamification-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:14px; margin-top:12px; }
.gami-stat{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:16px; padding:16px; text-align:center; }
.gami-value{ font-family:'Instrument Serif',Georgia,serif; font-size:1.9rem; line-height:1; color:#fff; }
.gami-label{ font-size:.78rem; opacity:.8; margin-top:6px; }
.pref-toggle{ display:flex; align-items:center; gap:10px; cursor:pointer; padding:8px 0; }
.pref-toggle input{ width:18px; height:18px; accent-color:#3B3EFF; }
