/* Théorie : schéma cliquable, puis la fiche du composant.
   Blanc, marine du logo, et le jaune de la page de garde comme seul accent. */
:root { --mist: #f1f4f9; --line: #c3cde0; }
html { scroll-padding-top: 10.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.t-bar { position: sticky; top: 5rem; z-index: 10; background: var(--paper); border-bottom: 2px solid var(--line); }
.t-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 2.5rem; }
.t-bar h1 { font-size: 1.75rem; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 1.15rem 1.1rem; border-bottom: .35rem solid transparent; font-weight: 600; text-decoration: none; }
.tabs a:hover { background: var(--mist); }
.tabs a[aria-current] { border-color: var(--yellow); }
.tabs a:focus-visible { outline-offset: -4px; }

.t-panel { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.hint { color: var(--ink-2); }
.schema { margin-top: .75rem; overflow-x: auto; background: var(--mist); }
.schema svg { display: block; width: 100%; min-width: 34rem; max-height: 72vh; margin-inline: auto; padding: clamp(.5rem, 2vw, 1.75rem); }
.schema .case { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.schema .board { fill: #e4eaf4; stroke: var(--ink); stroke-width: 3; }
.schema .hit { fill: transparent; stroke: none; }
.schema .b { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.schema .d { fill: var(--ink); stroke: none; }
.schema .l, .schema .desk { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.schema .desk { stroke-width: 6; }
.schema .cable { fill: none; stroke: #8794b1; stroke-width: 10; stroke-linecap: round; }
.schema .dot { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.schema .num { fill: #fff; font: 800 23px var(--font); text-anchor: middle; }
.schema .lab { fill: var(--ink); font: 600 30px var(--font); }
.schema a { cursor: pointer; outline: 0; }
.schema a:hover .b, .schema a:focus-visible .b { fill: #fff3cd; }
.schema a.is-on .b { fill: var(--yellow); }
.schema a.is-on .hit { stroke: var(--yellow); stroke-width: 10; }
.schema a.is-on .dot, .schema a:hover .dot, .schema a:focus-visible .dot { fill: var(--yellow); stroke: var(--ink); }
.schema a.is-on .num, .schema a:hover .num, .schema a:focus-visible .num { fill: var(--ink); }
.schema a:focus-visible .dot { stroke-width: 6; }


/* Fiche */
.fiches { display: grid; gap: 4rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.fiche { display: grid; gap: 1.5rem; padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: .5rem solid var(--yellow); outline: 0; }
.fiche > * { min-width: 0; }
.f-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.f-solo { grid-template-columns: minmax(0, 46rem); }
.fiche h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.fiche .def { margin-top: 1rem; font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.45; }
.pts { display: grid; gap: .5rem; margin-top: 1.25rem; padding-left: 1.3rem; list-style: disc; }
.photo { margin: 0; }
.photo img { width: 100%; max-height: 24rem; object-fit: contain; background: #fff; border: 2px solid var(--line); }
.photo figcaption { margin-top: .4rem; color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.fiche > .photo { max-width: 30rem; }
.fiche h3 { margin-top: 1.25rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.fiche h4 { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.fiche h4 span { margin-left: .6rem; color: var(--ink-2); font-size: 1.05rem; font-weight: 400; letter-spacing: 0; }
.tip { max-width: 48rem; padding: 1rem 1.3rem; background: #fff3cd; font-weight: 600; }
.small { max-width: 48rem; color: var(--ink-2); font-size: 1rem; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2rem; }
.types section { padding-top: .75rem; border-top: 2px solid var(--ink); }
.types p { margin-top: .3rem; }

/* RAM */
.gens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); }
.gen { display: grid; gap: .8rem; align-content: start; }
.gen h4 { font-size: 2rem; }
.gen svg { width: 100%; max-width: 32rem; }
.facts { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
.gen summary, .all summary { width: fit-content; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.speeds { columns: 2 13rem; margin-top: .6rem; }
.speeds li { padding-block: .15rem; break-inside: avoid; }

/* CPU */
.finder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--mist); }
.finder > div { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.finder label { font-weight: 600; }
.finder select { width: 100%; min-height: 3.4rem; padding: .7rem .9rem; border: 2px solid var(--ink); border-radius: .5rem; background: #fff; color: var(--ink); font: inherit; }
.finder .answer { grid-column: 1 / -1; padding: 1.25rem 1.5rem; background: #fff; }
.answer .big { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.answer ul { columns: 3 14rem; margin-top: .5rem; }
.answer li { padding-block: .2rem; break-inside: avoid; }
.all ul { columns: 2 24rem; column-gap: 3rem; margin-top: .75rem; }
.all li { padding-block: .4rem; border-bottom: 1px solid var(--line); line-height: 1.4; break-inside: avoid; }

/* Brochages */
.pins { margin: 0; overflow-x: auto; }
.pins svg { display: block; width: 100%; min-width: min(100%, 30rem); font-family: var(--font); }
.pins figcaption { margin-top: .5rem; font-weight: 600; }
.pair { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.pair .pins { flex: 1 1 15rem; max-width: 19rem; }
.pair .pins svg { min-width: 0; }
.wires { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .5rem 2rem; }
.wires li { display: flex; align-items: center; gap: .7rem; }
.wires i { flex: none; width: 2.2rem; height: 1.1rem; border: 1.5px solid var(--ink); border-radius: 99px; }
.wires b { flex: none; min-width: 4.2rem; }


@media (max-width: 62rem) {
  .t-bar .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-inline: 0; }
  .t-bar h1 { display: none; }
  .tabs a { padding: .95rem 1rem; }
  html { scroll-padding-top: 9.5rem; }
}
@media (max-width: 48rem) {
  .f-top, .finder { grid-template-columns: minmax(0, 1fr); }
  .schema { margin-inline: -20px; }
  .pins svg { min-width: 36rem; }
  .pair .pins svg { min-width: 0; }
}
@media (max-width: 36rem) { .schema { margin-inline: 0; } .answer ul, .all ul, .speeds { columns: 1; } .fiche h2 { font-size: 2rem; } }
@media (max-width: 48rem) {
  .schema svg { min-width: 0; padding: .5rem; }
  .schema .dot { r: 30px; }
  .schema .num { font-size: 33px; transform: translateY(4px); }
}

/* Dessins réalistes des ports et connecteurs */
.schema .hl { fill: transparent; }
.schema a:hover .hl, .schema a:focus-visible .hl { fill: #fff3cd; }
.schema a.is-on .hl { fill: var(--yellow); }
.draw { margin: 0; padding: clamp(1rem, 2.5vw, 2rem); background: var(--mist); }
.draw svg { display: block; width: 100%; margin-inline: auto; }
.draw figcaption { margin-top: .75rem; text-align: center; font-weight: 600; }
.fiche > .draw { justify-self: start; width: 100%; max-width: 44rem; }

/* Photos cliquables */
.shot { margin-top: .75rem; background: #11151c; }
.shot svg { display: block; width: 100%; max-height: 82vh; margin-inline: auto; }
.shot a { cursor: pointer; outline: 0; }
.shot .zone { fill: transparent; stroke: rgb(255 255 255 / .55); stroke-width: 3; transition: fill .15s, stroke .15s; }
.shot .dot { fill: var(--ink); stroke: #fff; stroke-width: 4; }
.shot .num { fill: #fff; font: 800 31px var(--font); text-anchor: middle; dominant-baseline: central; }
.shot a:hover .zone, .shot a:focus-visible .zone { fill: rgb(255 199 44 / .25); stroke: var(--yellow); }
.shot a.is-on .zone { fill: rgb(255 199 44 / .18); stroke: var(--yellow); stroke-width: 9; }
.shot a.is-on .dot, .shot a:hover .dot, .shot a:focus-visible .dot { fill: var(--yellow); stroke: var(--ink); }
.shot a.is-on .num, .shot a:hover .num, .shot a:focus-visible .num { fill: var(--ink); }
.shot a:focus-visible .dot { stroke-width: 9; }
.credit { margin-top: .4rem; color: var(--ink-2); font-size: .9rem; }

/* Vignettes */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.tiles--big { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.tiles a { display: grid; gap: .5rem; text-decoration: none; }
.tiles .pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: .6rem; background: #fff; box-shadow: 0 0 0 2px var(--line); transition: box-shadow .15s; }
.tiles .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tiles .pic img[src*="/cm-"] { object-fit: cover; }
.tiles .pic svg { width: 84%; height: 84%; }
.tiles .pic em { font: 800 1.6rem var(--font); }
.tiles .pic b { position: absolute; left: .45rem; top: .45rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1rem; box-shadow: 0 0 0 2px #fff; }
.tiles .nm { font-weight: 600; line-height: 1.25; }
.tiles a:hover .pic { box-shadow: 0 0 0 4px var(--ink); }

.tiles a.is-on .pic { box-shadow: 0 0 0 5px var(--yellow); }
.tiles a.is-on .pic b { background: var(--yellow); color: var(--ink); }
.tiles a.is-on .nm { font-weight: 800; }
.phone { display: none; }

/* Logiciel */
.soft { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.soft section { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; background: var(--ink); color: #fff; }
.soft-top { position: relative; }
.soft-top img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.soft-top h2 { position: absolute; left: 0; bottom: 0; padding: .7rem 1.25rem .55rem; border-radius: 0 1rem 0 0; background: var(--ink); font-size: clamp(1.35rem, 2vw, 1.8rem); }
.soft ul { display: grid; gap: .35rem; padding: .75rem; }
.soft a { display: flex; align-items: center; gap: 1rem; padding: .8rem .9rem; border-radius: .7rem; line-height: 1.3; text-decoration: none; }
.soft svg { flex: none; width: 2.9rem; height: 2.9rem; padding: .5rem; border-radius: .6rem; background: rgb(255 255 255 / .12); fill: none; stroke: var(--yellow); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.soft span { color: #c6d1e6; }
.soft b { display: block; color: #fff; font-size: 1.2rem; }
.soft a:hover { background: rgb(255 255 255 / .1); }
.soft a.is-on { background: var(--yellow); }
.soft a.is-on b, .soft a.is-on span { color: var(--ink); }
.soft a.is-on svg { background: var(--ink); }
.soft a:focus-visible { outline-color: var(--yellow); }

@media (max-width: 62rem) { .soft { grid-template-columns: minmax(0, 1fr); } .soft-top img { aspect-ratio: 5 / 2; } }
@media (max-width: 48rem) {
  .phone { display: block; }
  .tiles, .tiles--big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot { margin-inline: -20px; }
  .shot .dot { r: 46px; }
  .shot .num { font-size: 50px; }
}

/* Autour du PC : grille de style magazine */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.pills button { padding: .65rem 1.25rem; border: 2px solid var(--ink); border-radius: 99px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.pills button:hover { background: var(--mist); }
.pills button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 18vw, 15.5rem); grid-auto-flow: dense; gap: 1rem; margin-top: 1.25rem; }
.bento .l { grid-column: span 2; }
.bento .xl { grid-column: span 2; grid-row: span 2; }
.bento.is-filtered { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(13rem, 22vw, 19rem); }
.bento.is-filtered li { grid-column: auto; grid-row: auto; }
.bento a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 1.1rem; background: var(--ink); text-decoration: none; }
.bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bento a:hover img { transform: scale(1.06); }
.bento a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(transparent 28%, rgb(10 18 48 / .78) 68%, rgb(10 18 48 / .95)); }
.bento span { position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1rem; z-index: 1; color: #d5def0; line-height: 1.3; }
.bento b { display: block; color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em; }
.bento .xl b { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.bento a.is-on { box-shadow: 0 0 0 5px var(--yellow); }
.bento a.is-on b { color: var(--yellow); }
.bento a:focus-visible { outline-offset: 5px; }
@media (max-width: 62rem) { .bento, .bento.is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(10rem, 30vw, 15rem); } }
@media (max-width: 36rem) { .bento { gap: .7rem; } .bento span { left: .85rem; right: .85rem; bottom: .75rem; font-size: 1rem; } .bento b { font-size: 1.12rem; } .pills button { padding: .5rem .95rem; } }

/* Temps de lecture */
.tabs small { margin-left: .5rem; padding: .1rem .5rem; border-radius: 99px; background: var(--mist); color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.l-strip { position: sticky; bottom: 0; z-index: 12; background: var(--ink); color: #fff; }
.l-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; min-height: 4.75rem; padding-block: .7rem; line-height: 1.3; }
.l-strip b { display: block; font-size: 1.15rem; }
.l-time { font-variant-numeric: tabular-nums; }
.l-strip.is-done .l-time { color: var(--yellow); font-weight: 600; }
.l-bar { flex: 1 1 8rem; height: .7rem; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / .2); }
.l-bar i { display: block; height: 100%; border-radius: 99px; background: var(--yellow); transition: width 1s linear; }
.l-strip .btn { background: var(--yellow); color: var(--ink); }
.l-strip .btn:hover { background: #fff; }
.l-strip :focus-visible { outline-color: #fff; }
.tiles a.is-read .nm::before { content: "✓ "; color: #0f7a4d; font-weight: 800; }
.bento a.is-read b::before, .soft a.is-read b::before { content: "✓ "; color: var(--yellow); }
.soft a.is-read.is-on b::before { color: var(--ink); }
.shot a.is-read .dot { stroke: #34d08b; stroke-width: 9; }
@media (max-width: 48rem) { .l-strip .wrap { gap: .4rem 1rem; } .l-bar { order: 5; flex-basis: 100%; height: .5rem; } .l-count { margin-left: auto; } }
@media (max-width: 62rem) { .tabs small { font-size: .75rem; } }

/* BIOS */
.tiles .pic svg.line { width: 46%; height: 46%; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: pas; }
.chain li { position: relative; padding: 1.25rem 1.25rem 1.35rem; border-radius: 1rem; background: var(--mist); line-height: 1.35; counter-increment: pas; }
.chain li::before { content: counter(pas); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .7rem; border-radius: 50%; background: var(--yellow); font-weight: 800; }
.chain b { display: block; font-size: 1.25rem; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.keys li { display: grid; gap: .5rem; align-content: start; padding: 1.1rem 1.25rem; border-radius: 1rem; background: var(--mist); }
.keys b { font-size: 1.25rem; }
.keys span { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .75rem; color: var(--ink-2); }
kbd { padding: .25rem .75rem; border-radius: .5rem; background: var(--ink); box-shadow: 0 3px 0 #000; color: #fff; font: 600 1rem/1.4 var(--font); }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.duel section { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 1.25rem; background: var(--mist); }
.duel section + section { background: var(--ink); color: #fff; }
.fiche .duel h3 { margin: 0 0 .9rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.duel li { padding-block: .45rem; border-top: 1px solid rgb(128 140 175 / .4); }
.duel section + section b { color: var(--yellow); }
@media (max-width: 36rem) { .duel { grid-template-columns: 1fr; } }
/* Sept onglets : onglets serrés sur ordinateur */
@media (min-width: 62.01rem) { .t-bar .wrap { gap: .5rem 1.25rem; } .tabs a { padding-inline: clamp(.45rem, .75vw, .8rem); } .tabs small { margin-left: .35rem; padding-inline: .4rem; } }
@media (min-width: 62.01rem) and (max-width: 80rem) { .tabs small { display: none; } }

/* BIOS : choisir sa marque, la touche s'allume */
.touches { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 1.5rem; background: var(--mist); }
.t-brands h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.t-brands p { margin: 1.1rem 0 .55rem; color: var(--ink-2); font-weight: 600; }
.t-brands div { display: flex; flex-wrap: wrap; gap: .5rem; }
.t-brands button { padding: .7rem 1.1rem; border: 0; border-radius: .8rem; background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font-weight: 600; line-height: 1.2; cursor: pointer; transition: transform .15s, background-color .15s; }
.t-brands button:hover { box-shadow: inset 0 0 0 3px var(--ink); transform: translateY(-2px); }
.t-brands button[aria-pressed="true"] { background: var(--ink); box-shadow: none; color: #fff; }
.t-answer { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.clavier { padding: clamp(.6rem, 1.4vw, 1.1rem); border-radius: 1.1rem; background: #101937; box-shadow: 0 1.2rem 2.5rem rgb(15 29 69 / .3); }
.k-top { display: grid; grid-template-columns: 1.45fr repeat(12, minmax(0, 1fr)) 1.45fr; gap: .35rem; }
.clavier i { display: grid; place-items: center; min-height: 2.9rem; border-radius: .5rem; background: #26325f; box-shadow: inset 0 -4px 0 #1a2449; color: #dfe6fb; font: 600 clamp(.7rem, 1vw, .9rem)/1 var(--font); }
.clavier .is-bios { background: var(--yellow); box-shadow: 0 0 1.4rem rgb(255 199 44 / .85); color: var(--ink); font-weight: 800; animation: k-tap 1s ease-in-out infinite; }
.clavier .is-boot { background: #5b7bff; box-shadow: 0 0 1.2rem rgb(91 123 255 / .8); color: #fff; font-weight: 800; }
@keyframes k-tap { 50% { transform: translateY(5px) scale(.93); } }
.k-rest { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .35rem; margin-top: .6rem; opacity: .55; }
.k-rest i { min-height: 2.1rem; }
.k-rest .space { grid-column: span 2; }
.t-hint { font-size: 1.25rem; font-weight: 600; }
.t-out h3 { margin: 0 0 .9rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.t-out ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.t-out li { padding: 1.2rem 1.4rem; border-radius: 1.1rem; line-height: 1.3; }
.t-out .o-bios { background: var(--yellow); }
.t-out .o-boot { background: #2446ee; color: #fff; }
.t-out li span { font-weight: 600; }
.t-out li b { display: block; margin-top: .3rem; font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.t-out p { margin-top: 1rem; font-size: 1.15rem; font-weight: 600; }
.t-out .t-note { margin-top: .4rem; color: var(--ink-2); font-size: 1rem; font-weight: 400; }
.t-note:empty { display: none; }
@media (max-width: 62rem) { .touches { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 36rem) { .k-top { grid-template-columns: repeat(7, minmax(0, 1fr)); } .k-rest { display: none; } .t-brands button { padding: .6rem .85rem; } .t-out ul { gap: .6rem; } .t-out li { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { .clavier .is-bios { animation: none; } }

/* Titres qui changent la photo de la fiche */
.types--photo h4 button { padding: .1rem 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: .3em; cursor: pointer; }
.types--photo h4 button:hover { color: #2446ee; }
.types--photo section { transition: border-color .2s; }
.types--photo section:has([aria-pressed="true"]) { border-top-color: var(--yellow); box-shadow: 0 -4px 0 var(--yellow); }
.types--photo section:has(button) { position: relative; }
.types--photo h4 button::after { content: ""; position: absolute; inset: 0; }
.photo.is-new img { animation: photo-new .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes photo-new { from { opacity: 0; transform: scale(.94); } }
#boitier .photo img { height: 24rem; padding: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .photo.is-new img { animation: none; } }

/* Schémas des câbles réseau */
.net-svg { display: flex; flex-wrap: wrap; gap: 1rem 2rem; max-width: 46rem; margin-top: 1.5rem; padding: 1rem; border-radius: 1rem; background: #fff; box-shadow: 0 0 0 2px #e4e9f5; }
.net-svg svg { display: block; flex: 1 1 15rem; min-width: 0; height: auto; max-width: 22rem; margin: auto; }
.net-svg p { flex: 1 1 100%; margin: 0; text-align: center; color: var(--ink-2); }
.net-svg text { fill: #0f1d45; font-family: inherit; }
.net-svg .n-t { font-size: 30px; font-weight: 800; text-anchor: middle; }
.net-svg .n-p { font-size: 15px; font-weight: 800; text-anchor: middle; }
.net-svg .n-l { font-size: 24px; }
.net-svg .n-s { font-size: 19px; text-anchor: middle; }

/* 8 onglets : la barre tient sur un écran d’ordinateur */
@media (min-width: 62.01rem) { .tabs a { padding-inline: clamp(.35rem, .45vw, .8rem); } .tabs small { margin-left: .25rem; padding-inline: .3rem; font-size: .78rem; } }

/* Schémas larges : câbles et réseau de bureau */
.net-svg--wide { max-width: 62rem; }
.net-svg--wide svg { flex: 1 1 100%; max-width: none; }
.net-svg .n-b { font-size: 26px; font-weight: 800; text-anchor: middle; }
.net-svg a { text-decoration: none; }
.net-svg a .n-dev { transition: opacity .15s; }
.net-svg a:hover .n-dev, .net-svg a:focus-visible .n-dev { opacity: .7; }
.net-svg a:focus-visible { outline: 3px solid #ffc72c; }
