/* ============================================
   NAAN STOP — Carte de Fidélité
   Couleurs: Rouge #C0392B | Or #D4A017 | Noir #1A1A1A
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --ns-red: #C0392B;
    --ns-red-dark: #8B0000;
    --ns-gold: #D4A017;
    --ns-gold-light: #F0C040;
    --ns-black: #1A1A1A;
    --ns-dark: #2A2A2A;
    --ns-gray: #3A3A3A;
    --ns-light: #F5F3EE;
    --ns-white: #FFFFFF;
    --ns-radius: 16px;
    --ns-shadow: 0 8px 32px rgba(0,0,0,0.18);
    --ns-font-heading: 'Playfair Display', serif;
    --ns-font-body: 'DM Sans', sans-serif;
}

/* ===== BASE ===== */
.ns-page {
    font-family: var(--ns-font-body);
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    color: var(--ns-black);
}

/* ===== CARD ===== */
.ns-card {
    background: var(--ns-white);
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.06);
}

.ns-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.ns-card-header h2 {
    font-family: var(--ns-font-heading);
    font-size: 26px;
    color: var(--ns-black);
    margin: 8px 0 4px;
}

.ns-card-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.ns-logo-mini {
    font-size: 40px;
    margin-bottom: 8px;
}

/* ===== BENEFITS ===== */
.ns-benefits {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ns-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ns-light);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(192,57,43,0.15);
}

.ns-benefit-icon { font-size: 16px; }

/* ===== FORM ===== */
.ns-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ns-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ns-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.ns-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ns-form-group input {
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--ns-font-body);
    transition: border-color 0.2s;
    background: var(--ns-white);
}

.ns-form-group input:focus {
    outline: none;
    border-color: var(--ns-red);
}

.ns-toggle-mdp {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

/* ===== BUTTONS ===== */
.ns-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--ns-font-body);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.ns-btn-primary {
    background: linear-gradient(135deg, var(--ns-red), var(--ns-red-dark));
    color: var(--ns-white);
    box-shadow: 0 4px 15px rgba(192,57,43,0.4);
    width: 100%;
    margin-top: 4px;
}

.ns-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(192,57,43,0.5);
}

.ns-btn-outline {
    background: transparent;
    border: 2px solid var(--ns-red);
    color: var(--ns-red);
    font-size: 13px;
    padding: 8px 18px;
}

.ns-btn-ghost {
    background: transparent;
    border: 1px solid #DDD;
    color: #888;
    font-size: 13px;
    padding: 8px 18px;
}

/* ===== MESSAGE ===== */
.ns-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.ns-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.ns-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.ns-info-box {
    background: var(--ns-light);
    border: 1px solid rgba(192,57,43,0.2);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    font-family: var(--ns-font-body);
}

.ns-info-box a { color: var(--ns-red); font-weight: 600; }

.ns-link-connexion, .ns-link-inscription {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    color: #666;
}

.ns-link-connexion a, .ns-link-inscription a { color: var(--ns-red); font-weight: 600; }

/* ===== DASHBOARD ===== */
.ns-recompense-banner {
    background: linear-gradient(135deg, var(--ns-gold), #B8860B);
    color: var(--ns-black);
    padding: 16px 24px;
    border-radius: var(--ns-radius);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: ns-pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(212,160,23,0.4);
}

@keyframes ns-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(212,160,23,0.4); }
    50% { box-shadow: 0 4px 30px rgba(212,160,23,0.7); }
}

.ns-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .ns-dashboard-grid { grid-template-columns: 1fr; }
    .ns-form-row { grid-template-columns: 1fr; }
}

/* ===== POINTS CIRCLE ===== */
.ns-points-display {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.ns-points-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.ns-circle-svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.ns-circle-svg circle:last-child {
    transition: stroke-dasharray 1s ease;
}

.ns-points-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ns-points-number {
    display: block;
    font-family: var(--ns-font-heading);
    font-size: 36px;
    font-weight: 900;
    color: var(--ns-black);
    line-height: 1;
}

.ns-points-label {
    font-size: 13px;
    color: #888;
}

.ns-points-text {
    font-size: 15px;
    color: #444;
    margin-bottom: 16px;
}

.ns-stats-mini {
    display: flex;
    gap: 20px;
}

.ns-stat {
    text-align: center;
}

.ns-stat-val {
    display: block;
    font-family: var(--ns-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--ns-red);
}

.ns-stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PROGRESSION DOTS ===== */
.ns-progression-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ns-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F0F0F0;
    border: 2px solid #DDD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #AAA;
    transition: all 0.3s;
}

.ns-dot-filled {
    background: linear-gradient(135deg, var(--ns-red), var(--ns-red-dark));
    border-color: var(--ns-red);
    color: var(--ns-white);
    box-shadow: 0 2px 8px rgba(192,57,43,0.3);
}

.ns-progression-label {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* ===== QR CARD ===== */
.ns-card-qr {
    text-align: center;
}

.ns-card-qr h3 {
    font-family: var(--ns-font-heading);
    font-size: 20px;
    margin: 0 0 8px;
}

.ns-card-qr p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.ns-qr-container {
    display: inline-block;
    padding: 12px;
    background: var(--ns-white);
    border-radius: 12px;
    border: 3px solid var(--ns-gold);
    box-shadow: 0 4px 16px rgba(212,160,23,0.2);
    margin-bottom: 12px;
}

.ns-qr-image { display: block; border-radius: 6px; }
.ns-qr-hint { font-size: 12px; color: #999; margin: 8px 0 16px; }

/* ===== HISTORIQUE ===== */
.ns-card-historique h3 {
    font-family: var(--ns-font-heading);
    font-size: 20px;
    margin: 0 0 16px;
}

.ns-historique-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ns-historique-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--ns-light);
    border-radius: 10px;
}

.ns-historique-icon { font-size: 20px; }

.ns-historique-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ns-historique-type { font-size: 14px; font-weight: 500; }
.ns-historique-date { font-size: 12px; color: #888; }
.ns-historique-points {
    font-size: 15px;
    font-weight: 700;
    color: var(--ns-red);
}

.ns-logout-wrap { text-align: center; margin-top: 24px; }

/* ===== PRINT ===== */
@media print {
    .ns-page { padding: 0; }
    .ns-card:not(.ns-card-qr) { display: none; }
    .ns-btn { display: none; }
}
