/* ============================================================
   JOY•STORE Pages — Frontend CSS commun
   Chargé une seule fois pour toutes les pages du plugin.
   Chaque page utilise un préfixe CSS unique (faq-, cgv-, etc.)
   mais hérite de ces classes communes via .jsp-*
   ============================================================ */

/* ── POLICES ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── VARIABLES GLOBALES ── */
:root {
    --jsp-red:      #FF0000;
    --jsp-red-dim:  #cc0000;
    --jsp-gold:     #f59e0b;
    --jsp-purple:   #a78bfa;
    --jsp-glass:    rgba(255,255,255,0.07);
    --jsp-glass-h:  rgba(255,255,255,0.11);
    --jsp-border:   rgba(255,255,255,0.10);
    --jsp-muted:    rgba(255,255,255,0.45);
    --jsp-card-bg:  rgba(255,255,255,0.06);
    --jsp-font-title: 'Syne', sans-serif;
    --jsp-font-body:  'DM Sans', sans-serif;
}

/* ── LAYOUT COMMUN ── */
.jsp-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.jsp-section { padding: 48px 0; }
.jsp-section--alt {
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.jsp-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0 16px; }

/* ── TYPOGRAPHIE ── */
.jsp-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--jsp-red);
    margin-bottom: 10px;
}

.jsp-h2 {
    font-family: var(--jsp-font-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: #fff;
}
@media (min-width: 600px)  { .jsp-h2 { font-size: 26px; } }
@media (min-width: 1024px) { .jsp-h2 { font-size: 30px; } }

.jsp-h3 {
    font-family: var(--jsp-font-title);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.jsp-p {
    font-size: 14px;
    font-weight: 300;
    color: var(--jsp-muted);
    line-height: 1.75;
}

/* ── BOUTONS ── */
.jsp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--jsp-font-title);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.jsp-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.jsp-btn--red   { background: var(--jsp-red); color: #fff; border-color: var(--jsp-red); }
.jsp-btn--red:hover   { background: var(--jsp-red-dim); border-color: var(--jsp-red-dim); transform: translateY(-2px); color: #fff; text-decoration: none; }
.jsp-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.72); }
.jsp-btn--ghost:hover { border-color: rgba(255,255,255,0.35); color: #fff; transform: translateY(-2px); text-decoration: none; }
.jsp-btn--green { background: #25d366; color: #fff; border-color: #25d366; }
.jsp-btn--green:hover { background: #1fb85a; transform: translateY(-2px); color: #fff; text-decoration: none; }
.jsp-btn--purple { background: var(--jsp-purple); color: #fff; border-color: var(--jsp-purple); }
.jsp-btn--purple:hover { background: #8b5cf6; transform: translateY(-2px); color: #fff; text-decoration: none; }
.jsp-btn:disabled { opacity: 0.4; cursor: default; transform: none; }

.jsp-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.jsp-btn-row--center { justify-content: center; }

/* ── CARDS ── */
.jsp-card {
    background: var(--jsp-card-bg);
    border: 1px solid var(--jsp-border);
    border-radius: 16px;
    padding: 24px 22px;
    transition: background 0.2s, border-color 0.2s;
}
.jsp-card:hover { background: var(--jsp-glass-h); border-color: rgba(255,0,0,0.18); }

/* ── INFOBOX ── */
.jsp-infobox {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 14px;
}
.jsp-infobox svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.jsp-infobox p { font-size: 13px; font-weight: 300; line-height: 1.65; }
.jsp-infobox p strong { font-weight: 500; }
.jsp-infobox--warn { background: rgba(255,165,0,0.05); border: 1px solid rgba(255,165,0,0.16); }
.jsp-infobox--warn svg { fill: #fb923c; }
.jsp-infobox--warn p { color: rgba(255,255,255,0.55); }
.jsp-infobox--warn p strong { color: rgba(255,255,255,0.78); }
.jsp-infobox--green { background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.16); }
.jsp-infobox--green svg { fill: #4ade80; }
.jsp-infobox--green p { color: rgba(255,255,255,0.55); }
.jsp-infobox--green p strong { color: rgba(255,255,255,0.78); }
.jsp-infobox--info { background: rgba(96,165,250,0.05); border: 1px solid rgba(96,165,250,0.16); }
.jsp-infobox--info svg { fill: #60a5fa; }
.jsp-infobox--info p { color: rgba(255,255,255,0.55); }

/* ── NAVIGATION LÉGALE ── */
.jsp-legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jsp-legal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.50);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    font-family: var(--jsp-font-title);
}
.jsp-legal-link:hover { border-color: rgba(255,0,0,0.30); color: rgba(255,255,255,0.80); text-decoration: none; }
.jsp-legal-link svg { width: 12px; height: 12px; fill: currentColor; }

/* ── ANIMATIONS COMMUNES ── */
/* Chaque page déclare ses propres classes .PREFIX-fade/.PREFIX-on */
/* mais elles partagent la même logique de transition */

/* ── CTA SECTION ── */
.jsp-cta { padding: 56px 0 48px; text-align: center; position: relative; overflow: hidden; }
.jsp-cta-glow {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 360px; height: 220px;
    background: radial-gradient(ellipse, rgba(255,0,0,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.jsp-cta .jsp-inner { position: relative; z-index: 1; }
.jsp-cta .jsp-p { max-width: 340px; margin: 0 auto 28px; }

/* ── BADGES ── */
.jsp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
}
.jsp-badge svg { width: 10px; height: 10px; fill: currentColor; }
.jsp-badge--green  { background: rgba(34,197,94,0.09);  color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.jsp-badge--orange { background: rgba(251,146,60,0.09); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }
.jsp-badge--blue   { background: rgba(96,165,250,0.09); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.jsp-badge--gray   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.10); }

/* ── TOAST NOTIFICATION ── */
.jsp-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20,20,20,0.96);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}
.jsp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.jsp-toast.success { border-color: rgba(74,222,128,0.30); }
.jsp-toast.error   { border-color: rgba(255,0,0,0.30); }

/* ── STEPS (processus) ── */
.jsp-steps { display: flex; flex-direction: column; gap: 0; }
.jsp-step { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; }
.jsp-step:last-child { padding-bottom: 0; }
.jsp-step-col { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.jsp-step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,0,0,0.09); border: 1px solid rgba(255,0,0,0.22);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--jsp-font-title); font-size: 14px; font-weight: 800; color: var(--jsp-red);
    flex-shrink: 0;
}
.jsp-step-line { width: 1px; flex: 1; min-height: 16px; background: rgba(255,255,255,0.07); margin-top: 5px; }
.jsp-step:last-child .jsp-step-line { display: none; }
.jsp-step-body { padding-top: 5px; flex: 1; }
.jsp-step-body h4 { font-family: var(--jsp-font-title); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.jsp-step-body p  { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ── DESKTOP ── */
@media (min-width: 1024px) {
    .jsp-section { padding: 72px 0; }
}
