/* Ipdo : habillage des formats (boutique, comparatifs, pas à pas, outil) par-dessus la feuille du kit.
   Typo du thème partout (aucune capitale de machine à écrire), liens de navigation sans soulignement au repos,
   cartes qui « se branchent » au survol (la fiche RJ45 glisse dans la vignette), vignettes dessinées par rayon. */

:root {
    --soj-f-mono: var(--f-text);
    --soj-f-display: var(--f-display);
}

/* Étiquettes : Author, casse normale, chasse resserrée */
.soj-fx-kicker, .soj-fx-meta, .soj-fx-cote, .soj-fx-tete-n, .soj-sv-sous, .soj-plan-sous, .soj-gd-bref h2,
.soj-gd-table caption, .soj-gd-signature, .soj-tu-bandeau dt, .soj-fp-badge, .soj-fp-marque, .soj-fp-meta dt,
.soj-bt-marque, .soj-bt-stock, .soj-ix-type, .soj-ix-compte span, .soj-ix-niveau, .soj-sm-champ label,
.soj-sm-chiffres dt, .soj-suite-type {
    text-transform: none;
    letter-spacing: .01em;
    font-family: var(--f-text);
}
.soj-bt-marque, .soj-ix-type, .soj-fp-marque, .soj-suite-type { font-size: .8rem; font-weight: 600; color: var(--muted); }
.soj-fx-kicker, .soj-ix-niveau { font-size: .85rem; }
.soj-fp-cta { text-transform: none; letter-spacing: 0; }

/* Liens de navigation : pas de soulignement au repos (le texte courant garde le sien) */
.soj-bt-lien, .soj-bt-rayons a, .soj-fp-onglets a, .soj-ix-titre a, .soj-ix-fiche h2 a, .soj-gd-nav a, .soj-fp-credit { text-decoration: none; }

/* Rayons : prises à brancher. Au survol, la prise s'enfonce d'un cran, le fil orange se tend dessous. */
.soj-bt-rayons a {
    position: relative; border-radius: var(--r); border-color: var(--line-2); background: var(--surface);
    font-family: var(--f-text); font-weight: 600; font-size: .9rem; letter-spacing: 0;
    transition: translate .35s var(--ease), background .2s, color .2s, border-color .2s;
}
.soj-bt-rayons a::after {
    content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 2px;
    background: var(--o); scale: 0 1; transform-origin: left; transition: scale .35s var(--ease);
}
.soj-bt-rayons a:hover { translate: 0 -3px; background: var(--surface); color: var(--ink); border-color: var(--ink); }
.soj-bt-rayons a:hover::after, .soj-bt-rayons a[aria-current="page"]::after { scale: 1 1; }
.soj-bt-rayons a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.soj-bt-rayons a:active { translate: 0 0; }
.soj-bt-rayons a:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; }

/* Grille : plaques séparées par un trait fin, plus de cadre noir partout */
.soj-bt-grille { border-color: var(--line-2); }
.soj-bt-fiche { border-color: var(--line-2); background: var(--surface); }
.soj-bt-lien { transition: background .25s; }
.soj-bt-lien:hover { background: #fff; }
.soj-bt-nom { font-family: var(--f-text); font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.soj-bt-lien:hover .soj-bt-nom { color: var(--b); }
.soj-bt-stock { border-color: var(--line-2); border-radius: 99px; color: var(--muted); font-size: .75rem; font-weight: 500; padding: 3px 10px; }

/* Vignettes : photo sur blanc, ou picto du rayon sur plaque gravée */
.soj-bt-picto { background: var(--ground); border-bottom: 1px solid var(--line); overflow: hidden; }
.soj-bt-picto--img { background: #fff; }
.soj-bt-picto--img img { transition: scale .5s var(--ease); }
.soj-bt-lien:hover .soj-bt-picto--img img { scale: 1.04; }

.ip-vignette {
    position: relative; display: grid; place-items: center; width: 100%; height: 100%;
    background:
        radial-gradient(circle at 1px 1px, rgba(16, 18, 20, .12) 1px, transparent 1.5px) 0 0 / 12px 12px,
        var(--ground);
}
.ip-vignette::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
    background: var(--fil, var(--g)); opacity: .9;
}
.ip-vignette__pi {
    position: relative; z-index: 1; width: 52px; height: 52px; padding: 12px; box-sizing: content-box;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink);
    transition: translate .4s var(--ease);
}
.ip-vignette__fiche {
    position: absolute; z-index: 2; right: 14px; top: 50%; width: 22px; height: 14px; margin-top: -7px;
    background: var(--ink); border-radius: 2px 2px 4px 4px;
    box-shadow: inset 0 -4px 0 var(--fil, var(--g));
    translate: 14px 0; opacity: 0; transition: translate .4s var(--ease), opacity .25s;
}
.soj-bt-lien:hover .ip-vignette__pi { translate: 0 -4px; }
.soj-bt-lien:hover .ip-vignette__fiche { translate: 0 0; opacity: 1; }
.soj-bt--liste .ip-vignette__pi { width: 30px; height: 30px; padding: 8px; border-radius: 8px; }
.soj-bt--liste .ip-vignette__fiche { display: none; }

/* Onglets de fiche, sommaire de comparatif */
.soj-fp-onglets a { font-family: var(--f-text); position: relative; }
.soj-fp-onglets a::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 3px; background: var(--o); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease); }
.soj-fp-onglets a:hover { background: transparent; }
.soj-fp-onglets a:hover::after { scale: 1 1; }

/* Index des comparatifs et des pas à pas */
.soj-ix-titre a, .soj-ix-fiche h2 a { background: linear-gradient(var(--o), var(--o)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.soj-ix-titre a:hover, .soj-ix-fiche h2 a:hover { color: var(--ink); background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
    .soj-bt-rayons a, .soj-bt-rayons a::after, .ip-vignette__pi, .ip-vignette__fiche, .soj-bt-picto--img img, .soj-fp-onglets a::after { transition: none; }
}
