/* ============================================
   PAGES D'AIDE - JUKEBOX-CAB
   S'appuie sur les variables de style.css
   ============================================ */

/* ---------- En-tete de page ---------- */
.aide-hero {
    padding: 9rem 0 3rem;
    text-align: center;
    background: linear-gradient(160deg, var(--primary-gradient-start), var(--primary-gradient-end));
}

.aide-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.aide-hero .aide-sous-titre {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 48rem;
    margin: 0 auto;
}

.aide-hero .aide-intro {
    color: var(--text-muted);
    max-width: 46rem;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* ---------- Sommaire ---------- */
.aide-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.aide-carte {
    display: block;
    padding: var(--spacing-md);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.aide-carte:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: var(--accent-color);
}

.aide-carte h2 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
    color: var(--text-primary);
}

.aide-carte p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.aide-carte-icone {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.aide-carte.indisponible {
    opacity: 0.5;
    pointer-events: none;
}

.aide-carte .aide-bientot {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    border: 1px solid var(--text-muted);
    border-radius: 999px;
    color: var(--text-muted);
}

/* ---------- Etapes d'une page d'aide ---------- */
.aide-etape {
    max-width: 62rem;
    margin: 0 auto var(--spacing-lg);
}

.aide-etape-entete {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.aide-etape-numero {
    flex: none;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    align-self: center;
}

.aide-etape h2 {
    font-size: 1.5rem;
    margin: 0;
}

.aide-etape p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 1.2rem;
}

.aide-etape strong {
    color: var(--text-primary);
}

/* ---------- Captures ---------- */
.aide-capture {
    margin: 0 0 1.4rem;
}

.aide-capture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    background: var(--dark-bg);
}

.aide-capture video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    background: var(--dark-bg);
}

.aide-capture figcaption {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- Encadres ---------- */
.aide-note {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: rgba(74, 144, 226, 0.12);
    border-left: 3px solid var(--accent-color);
    margin: 0 0 1.2rem;
}

.aide-note.attention {
    background: rgba(255, 196, 0, 0.1);
    border-left-color: #ffc400;
}

.aide-note-titre {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.aide-note p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.aide-note svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 0.15rem;
    color: var(--accent-color);
}

.aide-note.attention svg { color: #ffc400; }

/* ---------- Pied de page d'aide ---------- */
.aide-pied {
    max-width: 62rem;
    margin: 0 auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Selecteur de langue ---------- */
.selecteur-langue {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.selecteur-langue a {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.selecteur-langue a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.selecteur-langue a.actif {
    color: var(--text-primary);
    border-color: var(--accent-color);
    background: rgba(74, 144, 226, 0.18);
}

@media (max-width: 900px) {
    .aide-hero { padding: 7rem 0 2.5rem; }
    .aide-etape-entete { gap: 0.6rem; }
    .aide-etape h2 { font-size: 1.25rem; }
}

/* Icone en tete des pages d'aide */
.aide-hero-icone {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 1rem;
    color: var(--accent-color);
    opacity: 0.9;
}
