/* AYANI COIFFURE - Fidelité Stylesheet */

.fidelite-main {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
}

/* Login Section */
.fidelite-login {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 450px;
    margin: 0 auto;
}

.login-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(183, 110, 121, 0.3);
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.login-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.login-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-gray);
    transition: var(--transition);
    position: relative;
}

.login-tab.active {
    color: var(--color-primary);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gold);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.login-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit-fidelite {
    width: 100%;
    padding: 1rem;
    background: var(--rose-gold-gradient);
    background-size: 200% 200%;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.btn-submit-fidelite:hover {
    background-position: 100% 100%;
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.forgot-password:hover {
    color: var(--color-gold);
}

/* Dashboard Section */
.fidelite-dashboard {
    padding: 2rem 0 4rem;
    background: var(--color-cream);
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.welcome-text h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.welcome-text h1 span {
    background: var(--rose-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.welcome-text p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.btn-logout {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-gray-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-gray-light);
}

/* Client Loyalty Card */
.loyalty-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
}

.loyalty-card.client-card {
    max-width: 380px;
    width: 100%;
    transform: none;
}

.loyalty-card.client-card:hover {
    transform: scale(1.02);
}

/* Points Summary */
.points-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.point-stat {
    text-align: center;
    padding: 1rem;
    background: var(--color-cream);
    border-radius: 8px;
}

.point-stat .stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--rose-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.point-stat .stat-label {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.points-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--color-gray-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--rose-gold-gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.points-progress p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* History */
.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

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

.history-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.history-item.earned .history-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.history-item.redeemed .history-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.history-details {
    flex: 1;
}

.history-title {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.history-date {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.history-points {
    font-weight: 600;
    font-size: 0.9rem;
}

.history-item.earned .history-points {
    color: #22c55e;
}

.history-item.redeemed .history-points {
    color: #ef4444;
}

/* Rewards */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-cream);
    border-radius: 8px;
    transition: var(--transition);
}

.reward-item.available:hover {
    background: var(--color-gray-light);
}

.reward-item.locked {
    opacity: 0.6;
}

.reward-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.reward-cost {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 500;
}

.btn-reward {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-reward:hover:not(:disabled) {
    background: var(--color-gold);
    color: var(--color-primary);
}

.btn-reward:disabled {
    background: var(--color-gray-light);
    color: var(--color-gray);
    cursor: not-allowed;
}

/* Footer */
.fidelite-footer {
    padding: 2rem 0;
}

.fidelite-footer .footer-bottom {
    padding: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .points-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fidelite-login {
        padding: 2rem 0;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-form .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .points-stats {
        grid-template-columns: 1fr;
    }

    .loyalty-card-container {
        padding: 1.5rem;
    }

    .loyalty-card.client-card {
        aspect-ratio: auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .reward-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}
