/* ============================================================
   EXTRAS : badge Nouveau, favoris, zoom plein écran, installation
   ============================================================ */

/* ---------- Étiquettes + badge « Nouveau » ---------- */
.ligne-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ligne-tags .tag {
    margin-bottom: 0;
}

.badge-nouveau {
    padding: 3px 9px;
    background: #3ddc84;
    color: #04210f;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Bouton cœur (favoris) ---------- */
.coeur {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.coeur:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, .6);
}

.coeur svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill .2s ease, stroke .2s ease;
}

.coeur.actif svg {
    fill: #ff4d6d;
    stroke: #ff4d6d;
    animation: battement .45s cubic-bezier(.2, .9, .3, 1.4);
}

@keyframes battement {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* ---------- Page du mod : boutons d'action ---------- */
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.actions .btn {
    margin-top: 0;
}

.btn-secondaire {
    background: transparent;
    color: var(--panneau-texte);
    border: 1px solid rgba(128, 128, 128, .5);
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Indice de zoom sur l'image ---------- */
#image-principale {
    cursor: zoom-in;
}

.indice-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.showcase-image:hover .indice-zoom {
    opacity: 1;
}

/* ---------- Comment installer ---------- */
.mod-installation {
    grid-column: 1 / -1;
}

.etapes {
    list-style: none;
    counter-reset: etape;
    display: grid;
    gap: 14px;
}

.etapes li {
    counter-increment: etape;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(128, 128, 128, .25);
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.6;
}

.etapes li::before {
    content: counter(etape);
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--couleur-texte);
    color: var(--couleur-fond);
    font-family: var(--police-titre);
    font-weight: 800;
    font-size: 14px;
}

/* ---------- Zoom plein écran (lightbox) ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.lightbox.ouvert {
    opacity: 1;
    pointer-events: auto;
}

.lb-image {
    max-width: 92vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .6);
}

.lb-image.entre {
    animation: lb-zoom .4s cubic-bezier(.2, .8, .2, 1);
}

@keyframes lb-zoom {
    from {
        opacity: 0;
        transform: scale(.94);
    }
}

.lb-bouton {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.lb-bouton:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.08);
}

.lb-fermer {
    top: 20px;
    right: 20px;
}

.lb-prec {
    left: 20px;
    top: 50%;
    translate: 0 -50%;
}

.lb-suiv {
    right: 20px;
    top: 50%;
    translate: 0 -50%;
}

.lb-compteur {
    position: absolute;
    bottom: 24px;
    left: 50%;
    translate: -50% 0;
    color: #ccc;
    font-size: 14px;
}

.lb-bouton[hidden],
.lb-compteur[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {

    .coeur.actif svg,
    .lb-image.entre {
        animation: none;
    }
}