/* G6M_MANETTES_V1 (18/11/2026) — touches de manette dessinées en CSS, pour les articles et les
   guides (combinaisons des codes de triche, commandes). Aucune image : la croix directionnelle
   est tracée par dégradés, la branche à presser ressort en rose néon ; les gâchettes sont des
   pastilles de texte (L1, R1, LB, RB…).
   Balisage (le corps d'article garde span, class, role et aria-label) :
     <span class="g6m-touche g6m-touche--croix g6m-touche--haut" role="img" aria-label="Haut">↑</span>
     <span class="g6m-touche g6m-touche--epaule g6m-touche--ps">L1</span>
     <p class="g6m-touches" role="img" aria-label="Combinaison : haut, bas…">…</p>
   Sans cette feuille, le caractère flèche reste lisible. Chargée par layouts/main.php avec les
   feuilles d'article (deux branches). Cache « immutable » : suffixe -t1, -t2… à chaque modification. */

.g6m-article__content .g6m-touches,
.g6m-touches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.32rem;
    margin: 0.55rem 0 0.8rem;
}

.g6m-touche {
    --g6m-touche: 2.35rem;
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    inline-size: var(--g6m-touche);
    block-size: var(--g6m-touche);
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #241d42 0%, #130f26 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 rgba(0, 0, 0, 0.5);
    color: transparent;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
}

/* Croix directionnelle : croix grise, branche active en rose. Zone utile = 64 % de la touche. */
.g6m-touche--croix::before {
    content: "";
    position: absolute;
    inset: 18%;
    background:
        linear-gradient(#5d557c, #5d557c) center / 34% 100% no-repeat,
        linear-gradient(#5d557c, #5d557c) center / 100% 34% no-repeat;
    border-radius: 2px;
}
.g6m-touche--croix::after {
    content: "";
    position: absolute;
    border-radius: 2px;
    background: #ff3fb4;
    box-shadow: 0 0 8px rgba(255, 63, 180, 0.85);
}
.g6m-touche--haut::after { left: 39.12%; width: 21.76%; top: 18%; height: 21.12%; }
.g6m-touche--bas::after { left: 39.12%; width: 21.76%; bottom: 18%; height: 21.12%; }
.g6m-touche--gauche::after { top: 39.12%; height: 21.76%; left: 18%; width: 21.12%; }
.g6m-touche--droite::after { top: 39.12%; height: 21.76%; right: 18%; width: 21.12%; }

/* Gâchettes et boutons à libellé (L1, R1, LB, RB…). */
.g6m-touche--epaule {
    inline-size: auto;
    min-inline-size: 2.75rem;
    padding: 0 0.6rem;
    border-radius: 0.85rem 0.85rem 0.45rem 0.45rem;
    color: #fff;
    font-family: "Rajdhani", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}
.g6m-touche--ps { box-shadow: inset 0 0 0 1px rgba(110, 160, 255, 0.55), 0 2px 0 rgba(0, 0, 0, 0.5); }
.g6m-touche--xbox { box-shadow: inset 0 0 0 1px rgba(110, 220, 110, 0.55), 0 2px 0 rgba(0, 0, 0, 0.5); }

/* Séparateurs et repères entre les touches (« + », « puis », « maintenir »). */
.g6m-touches__sep {
    color: rgba(235, 235, 245, 0.75);
    font-family: "Rajdhani", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.g6m-touches__plateforme {
    display: inline-block;
    min-inline-size: 3.2rem;
    color: #2fd8ff;
    font-family: "Rajdhani", system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Fiche d'un code : nom, effet, combinaison, déblocage. */
.g6m-article__content .g6m-code {
    margin: 0 0 1.1rem;
    padding: 1rem 1.15rem 0.6rem;
    border-radius: 14px;
    background: rgba(18, 13, 40, 0.72);
    box-shadow: inset 0 0 0 1px rgba(185, 140, 255, 0.24);
}
.g6m-article__content .g6m-code h3 {
    margin: 0 0 0.3rem;
    color: #fff;
    font-family: "Orbitron", "Rajdhani", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}
.g6m-article__content .g6m-code p {
    margin: 0 0 0.45rem;
}
.g6m-article__content .g6m-code .g6m-code__deblocage {
    color: rgba(220, 220, 232, 0.8);
    font-size: 0.92em;
}

@media (max-width: 479px) {
    .g6m-touche { --g6m-touche: 2.05rem; }
    .g6m-touche--epaule { min-inline-size: 2.4rem; font-size: 0.92rem; }
}

/* END G6M_MANETTES_V1 */
