/* ============================================
   Système de tutoriels (modale à pages)
   ============================================ */

.ss-tuto-card {
    position: relative;
    width: min(640px, 94vw);
    padding: 22px 22px 16px;
    text-align: left;
}

.ss-tuto-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #dfe8f5;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ss-tuto-close:hover {
    background: rgba(255, 90, 90, 0.18);
    border-color: rgba(255, 90, 90, 0.45);
}

.ss-tuto-title {
    margin: 0 34px 14px 0;
    font-size: 19px;
    color: #eaf6ff;
}

/* --- Média (image / vidéo) --- */
.ss-tuto-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    margin-bottom: 14px;
    border: 1px solid rgba(34, 227, 255, 0.18);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 35%, rgba(34, 227, 255, 0.08), rgba(0, 0, 0, 0) 70%),
        rgba(255, 255, 255, 0.03);
    overflow: hidden;
}
.ss-tuto-media img,
.ss-tuto-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ss-tuto-media img {
    max-height: 82%;
    image-rendering: pixelated;
}
.ss-tuto-media.is-empty {
    font-size: 52px;
    opacity: 0.35;
}

/* --- Texte --- */
.ss-tuto-text {
    min-height: 72px;
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(234, 242, 252, 0.92);
}
.ss-tuto-text strong {
    color: #7fe3ff;
}

/* --- Pied : navigation + opt-out --- */
.ss-tuto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.ss-tuto-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ss-tuto-arrow {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 227, 255, 0.3);
    border-radius: 8px;
    background: rgba(34, 227, 255, 0.08);
    color: #bfeeff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.ss-tuto-arrow:hover:not(:disabled) {
    background: rgba(34, 227, 255, 0.2);
}
.ss-tuto-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.ss-tuto-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}
.ss-tuto-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(191, 238, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.ss-tuto-dot:hover {
    background: rgba(191, 238, 255, 0.35);
}
.ss-tuto-dot.is-active {
    background: #7fe3ff;
    border-color: #7fe3ff;
    transform: scale(1.15);
}

.ss-tuto-optout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    font-size: 12.5px;
    color: rgba(234, 242, 252, 0.65);
    cursor: pointer;
    user-select: none;
}
.ss-tuto-optout input {
    accent-color: #22e3ff;
    cursor: pointer;
}

/* --- Section "Tutoriels" dans l'en-tête du glossaire --- */
.ss-tuto-glossary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ss-tuto-glossary-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.ss-tuto-glossary-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
