:root {
  --blue: #2aa4e0;
  --blue-dark: #0f83bd;
  --bg-top: #fdfdfd;
  --bg-bottom: #d9dcdd;
  --ink: #4a5b66;
  --ink-soft: #7b8c99;
  --frame: #ffffff;
  --frame-edge: #cdd8e0;
  --bar-top: #f4f7f9;
  --bar-bottom: #c6d1d9;
  --accent: #2aa4e0;
  --radius: 16px;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#repli {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #3d4d58;
}
#repli h2 { font-size: 24px; }
#repli h3 { margin-top: 26px; color: var(--blue-dark); }
#repli a { color: var(--blue-dark); }

html[data-lang="fr"] [data-l="en"],
html[data-lang="en"] [data-l="fr"] { display: none; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "M PLUS Rounded 1c", "Rubik", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-bottom);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.cursor-wii,
body.cursor-wii * { cursor: none !important; }

#scene {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #e5e5e5;
  overflow: hidden;
}

#scene::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    repeating-linear-gradient(180deg,
      #eeeeee 0 3px, #e5e5e5 3px 7px, #e4e4e4 7px 13px);
  opacity: 1;
  pointer-events: none;
}

#scene::after {
  content: "";
  position: absolute;
  left: -30%;
  top: -60%;
  width: 160%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), rgba(255,255,255,0));
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 3%, 0) scale(1.08); }
}

#menu {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  padding: clamp(8px, 1.8vh, 20px) 0;
}

#pages-viewport {
  position: relative;
  width: 100%;
  height: 100%;

  clip-path: inset(-100vh 0px);
}

#pages {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  transition: transform .45s cubic-bezier(.22,.85,.3,1);
}

.page {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.page > .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.channel {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.3), filter .18s ease;
  will-change: transform;
}

.channel .frame {
  position: relative;
  display: block;
  height: 100%;
  padding: calc(var(--tw, 200px) * .016);
  border-radius: calc(var(--tw, 200px) * .085);
  background: #ffffff;
  box-shadow:
    0 0 0 1px #b8b8b8,
    0 0 3px 1px rgba(140, 144, 148, .55),
    0 3px 7px rgba(90, 96, 102, .18);
  transition: box-shadow .18s ease;
}

.channel .screen {
  position: relative;
  display: block;
  height: 100%;
  border-radius: calc(var(--tw, 200px) * .07);
  overflow: hidden;
  background: #eef3f6;
}

.channel .screen img.art-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.channel .screen.portrait img.art-shot { object-fit: contain; background: #eaf4fa; }

.bn {
  display: block;
  width: 100%;
  height: 100%;
}
.bn .sc-name {
  font-family: "M PLUS Rounded 1c", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  stroke-linejoin: round;
}

.channel:hover,
.channel:focus-visible {
  transform: scale(1.05);
  z-index: 5;
  outline: none;
}

.channel:hover .frame,
.channel:focus-visible .frame {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px var(--blue),
    0 0 16px rgba(42,164,224,.45),
    0 8px 18px rgba(30,60,80,.2);
}

.channel:active { transform: scale(.98); }

.channel.empty { cursor: default; }
.channel.empty .frame {
  background: #d9d9d9;
  box-shadow: 0 0 0 1px #b8b8b8, 0 2px 5px rgba(90,96,102,.12);
}
.channel.empty .screen {
  background: repeating-linear-gradient(180deg, #d5d5d5 0 2px, #d0d0d0 2px 4px);
}

.page-arrow {
  position: absolute;
  z-index: 6;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(70,95,115,.3));
  transition: filter .15s ease;
  pointer-events: none;
}
.page-arrow path { pointer-events: auto; }

.page-arrow::before {
  content: "";
  position: absolute;
  inset: -28% -55%;
  pointer-events: auto;
}
.page-arrow svg { width: 100%; height: 100%; display: block; }
#arrow-left  path { fill: url(#chevL); }
#arrow-right path { fill: url(#chevR); }
.page-arrow path {
  stroke: #1d75be;
  stroke-width: 4.5;
  stroke-linejoin: round;
}
.page-arrow:hover:not(:disabled) {
  filter: drop-shadow(0 0 7px rgba(42,164,224,.9));
}
.page-arrow:active:not(:disabled) svg { transform: scale(.9); }

.page-arrow:disabled { display: none; }

@font-face {
  font-family: "DSEG7Classic";
  src: url("../assets/font/DSEG7Classic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

#bottom-bar {
  position: relative;
  flex: 0 0 auto;
  height: clamp(80px, 27.5vh, 320px);
  display: block;
  background: none;
}

#bar-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 -2px 6px rgba(30,60,80,.12));
}

.bar-side {
  --btn: clamp(42px, 15.6vh, 175px);
  position: absolute;
  top: 42.4%;
  transform: translateY(-50%);
  left: clamp(10px, 2.6vw, 46px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 9vh, 101px);
}
.bar-side.right { left: auto; right: clamp(12px, 3vw, 52px); }

.bar-side::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  height: calc(var(--btn) * 1.2);
  transform: translateY(-50%);
  left: -100vw;
  right: calc(100% - var(--btn) * 1.1);
  border-radius: 999px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 46%, rgba(160,170,180,.16) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    0 0 0 1px rgba(150,158,166,.3),
    0 2px 4px rgba(120,132,144,.22);
  pointer-events: none;
}
.bar-side.right::before {
  left: calc(100% - var(--btn) * 1.1);
  right: -100vw;
}

.round-btn {
  position: relative;

  width: var(--btn);
  height: var(--btn);
  border: 0;
  border-radius: 50%;
  background: linear-gradient(168deg, #e2e2e2 0%, #d7d7d7 40%, #c9c9c9 74%, #c0c0c0 100%);
  box-shadow:
    0 0 0 clamp(2px, .55vh, 6px) #68c4e9,
    0 3px 7px rgba(95, 105, 115, .3);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: box-shadow .14s ease, transform .14s ease;
}

.round-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(58% 52% at 33% 27%,
    rgba(255,255,255,.95) 0%, rgba(255,255,255,.45) 48%, rgba(255,255,255,0) 72%);
  pointer-events: none;
}
.round-btn > *, .round-btn svg { position: relative; z-index: 1; }
.round-btn:hover {
  box-shadow:
    0 0 0 clamp(2px, .7vh, 7px) #35b0e2,
    0 0 18px rgba(53,176,226,.6),
    0 3px 7px rgba(95,105,115,.3);
}
.round-btn:active { transform: scale(.96); }

.wii-logo {
  font-size: clamp(13px, 3.5vh, 39px);
  font-weight: 800;
  letter-spacing: -.07em;
  color: #8f8f8f;
}

.mail-ico { width: 52%; }
.mail-ico rect { fill: #909090; stroke: none; }
.mail-ico .flap { fill: none; stroke: #ededed; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.sd-card {
  width: clamp(18px, 7.3vh, 82px);
  margin-top: 3.2vh;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  filter: drop-shadow(1px 2px 2px rgba(95,105,115,.4));
  transition: transform .14s ease;
}
.sd-card svg { width: 100%; height: auto; display: block; }
.sd-card .body { fill: url(#sdBody); }
.sd-card .haut { fill: url(#sdHaut); }
.sd-card .etiq { fill: #ffffff; }
.sd-card .bas  { fill: #57cbe9; }
.sd-card .logo .s {
  fill: none;
  stroke: #93cee5;
  stroke-width: 6;
  stroke-linecap: round;
}
.sd-card .logo .d { fill: #93cee5; }
.sd-card:active { transform: translateY(0) scale(.94); }

#clock-panel {
  position: absolute;
  inset: 0;
  text-align: center;
  color: #64747f;
  pointer-events: none;
}

#clock-time {
  position: absolute;
  left: 0;
  right: 0;
  top: 15.2%;
  transform: translateY(-50%);
  font-family: "DSEG7Classic", "M PLUS Rounded 1c", monospace;
  font-size: clamp(16px, 7vh, 76px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: .02em;
  color: #8b8f96;
}

#clock-time .seg-ghost {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: rgba(90, 96, 104, .1);
}
#clock-time .seg-live { position: relative; }
#clock-time .colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .2; } }
#clock-date {
  position: absolute;
  left: 0;
  right: 0;
  top: 57.2%;
  transform: translateY(-50%);
  font-size: clamp(12px, 4.6vh, 50px);
  font-weight: 500;
  line-height: 1;
  color: #74797f;
  text-transform: capitalize;
}

#zoomer {
  position: fixed;
  z-index: 60;
  display: none;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent), 0 20px 50px rgba(20,50,70,.35);
  transition: left .34s cubic-bezier(.4,0,.2,1), top .34s cubic-bezier(.4,0,.2,1),
              width .34s cubic-bezier(.4,0,.2,1), height .34s cubic-bezier(.4,0,.2,1),
              border-radius .34s ease;
  pointer-events: none;
}
#zoomer.on { display: block; }
#zoomer .z-art { position: absolute; inset: 0; }
#zoomer .z-art img.art-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

#flash {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#flash.on { opacity: .85; transition: opacity .08s ease; }

#channel-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #e5e5e5;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
#channel-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(180deg,
      #eeeeee 0 3px, #e5e5e5 3px 7px, #e4e4e4 7px 13px);
  pointer-events: none;
}
#channel-screen.on { opacity: 1; visibility: visible; transform: none; }

#channel-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 2.4vh, 28px) clamp(10px, 3vw, 40px) clamp(4px, 1vh, 12px);
}

#channel-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1000px, 100%);
  min-height: 0;
  border-radius: clamp(10px, 1.6vh, 20px);
  background: #ffffff;
  box-shadow:
    0 0 0 1px #b8b8b8,
    0 0 3px 1px rgba(140, 144, 148, .55),
    0 6px 16px rgba(90, 96, 102, .22);
  overflow: hidden;
}

#channel-banner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(12px, 2.2vh, 22px) clamp(14px, 2.6vw, 30px);
  background: linear-gradient(180deg, #ffffff, #eff4f7);
  border-bottom: 1px solid #dde5ea;
}

#channel-banner-art {
  --tw: clamp(128px, 21vw, 250px);
  position: relative;
  flex: 0 0 auto;
  width: var(--tw);
  aspect-ratio: 16 / 9;
  padding: calc(var(--tw) * .016);
  border-radius: calc(var(--tw) * .085);
  background: #ffffff;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #b8b8b8,
    0 0 3px 1px rgba(140, 144, 148, .55),
    0 3px 7px rgba(90, 96, 102, .18);
}
#channel-banner-art .bn {
  border-radius: calc(var(--tw) * .07);
  overflow: hidden;
}

#channel-title {
  margin: 0;
  font-size: clamp(19px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #3d4d58;
}
#channel-subtitle {
  margin: 5px 0 0;
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--ink-soft);
  font-weight: 500;
}

#channel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(14px, 2.6vh, 26px) clamp(14px, 2.6vw, 30px) clamp(16px, 3vh, 30px);
  scrollbar-width: thin;
}
#channel-body::-webkit-scrollbar { width: 10px; }
#channel-body::-webkit-scrollbar-thumb {
  background: #c9d3da;
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}

#channel-bar {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: clamp(74px, 21vh, 240px);
}
#channel-bar .bar-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 -2px 6px rgba(30,60,80,.12));
}

.wii-oval {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  min-width: clamp(120px, 22vw, 280px);
  padding: clamp(9px, 1.9vh, 20px) clamp(16px, 2.4vw, 32px);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: clamp(13px, 1.7vw, 22px);
  color: #7c8792;
  background: linear-gradient(168deg, #f4f4f4 0%, #ebebeb 45%, #dcdcdc 100%);
  box-shadow:
    0 0 0 clamp(2px, .4vh, 4px) #68c4e9,
    0 3px 6px rgba(95, 105, 115, .28);
  cursor: pointer;
  outline: none;
  transition: box-shadow .14s ease, transform .14s ease, color .14s ease;
}
.wii-oval:focus-visible {
  box-shadow:
    0 0 0 clamp(2px, .55vh, 5px) #35b0e2,
    0 0 16px rgba(53,176,226,.55),
    0 3px 6px rgba(95,105,115,.28);
}
#btn-back { left: clamp(14px, 5vw, 96px); }
#btn-action { right: clamp(14px, 5vw, 96px); color: #2c88b8; }
.wii-oval:hover {
  box-shadow:
    0 0 0 clamp(2px, .55vh, 5px) #35b0e2,
    0 0 16px rgba(53,176,226,.55),
    0 3px 6px rgba(95,105,115,.28);
}
.wii-oval:active { transform: translateY(-50%) scale(.97); }

.c-section { margin-bottom: clamp(16px, 3vh, 26px); }
.c-section h3 {
  display: inline-block;
  margin: 0 0 10px;
  padding-bottom: 4px;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #4a5b66;
  border-bottom: 3px solid var(--accent);
}
.c-section p { margin: 0 0 8px; line-height: 1.65; font-size: clamp(13px, 1.5vw, 15.5px); }
.c-section a { color: var(--blue-dark); }

.bullets { margin: 0; padding-left: 20px; }
.bullets li { margin-bottom: 6px; line-height: 1.55; font-size: clamp(13px, 1.5vw, 15px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #d3dee5, 0 2px 5px rgba(40,70,90,.1);
  font-size: clamp(11px, 1.3vw, 13.5px);
  font-weight: 700;
  color: #55656f;
}
.tech-logo { width: 18px; height: 18px; object-fit: contain; display: block; }
.mail-dot {
  border-radius: 5px;
  background: linear-gradient(160deg, var(--blue), var(--blue-dark));
  position: relative;
}
.mail-dot::after {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: skewY(0);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
}

.timeline {
  --tl-trait: 3px;
  --tl-pad: 24px;
  --tl-point: 13px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--tl-pad);
  border-left: var(--tl-trait) solid rgba(42, 164, 224, .28);
}
.timeline > li { position: relative; margin-bottom: 18px; }
.timeline > li:last-child { margin-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;

  left: calc(-1 * (var(--tl-pad) + var(--tl-trait) / 2 + var(--tl-point) / 2));
  top: calc((var(--tl-ligne, 16px) - var(--tl-point)) / 2);
  width: var(--tl-point);
  height: var(--tl-point);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #ffffff;
}
.timeline .when {
  --tl-ligne: 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}
.timeline > li { --tl-ligne: 16px; }
.timeline .what { font-weight: 800; color: #3d4d58; margin-bottom: 4px; }
.timeline ul { margin: 4px 0 0; padding-left: 18px; }
.timeline ul li { font-size: 13.5px; line-height: 1.5; margin-bottom: 3px; }

.link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #d3dee5, 0 3px 8px rgba(40,70,90,.12);
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--accent), 0 6px 14px rgba(42,164,224,.3);
}
.link-card b { display: grid; font-size: 13.5px; font-weight: 800; color: #3d4d58; }
.link-card b span { font-weight: 500; font-size: 11.5px; color: var(--ink-soft); }
.link-card .tech-logo { width: 22px; height: 22px; }

.pdf-frame {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1 / 1.414;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 0 1px #cfdae2, 0 6px 16px rgba(40, 70, 90, .16);
}
.pdf-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pdf-note { margin: 10px 0 0; font-size: 13px; }
.pdf-note a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #c6d3db, 0 2px 6px rgba(40, 70, 90, .14);
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
}
.pdf-note a:hover {
  box-shadow: 0 0 0 2px var(--blue), 0 0 12px rgba(42, 164, 224, .35);
}

.c-shot { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #cfdae2, 0 6px 16px rgba(40,70,90,.16); }
.c-shot img { display: block; width: 100%; height: auto; }

.oval-btn {
  min-width: clamp(120px, 22vw, 220px);
  padding: clamp(10px, 1.7vh, 15px) 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: clamp(13px, 1.6vw, 16px);
  color: #55656f;
  background: linear-gradient(180deg, #ffffff, #e3ebf0);
  box-shadow: 0 0 0 1px #c0ccd4, inset 0 2px 3px rgba(255,255,255,.9), 0 4px 10px rgba(30,60,80,.18);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.oval-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--blue), 0 0 20px rgba(42,164,224,.55), inset 0 2px 3px rgba(255,255,255,.9);
}
.oval-btn:active { transform: scale(.97); }
.oval-btn.primary {
  color: #ffffff;
  background: linear-gradient(180deg, #52c2f2, var(--blue-dark));
  box-shadow: 0 0 0 1px var(--blue-dark), inset 0 2px 3px rgba(255,255,255,.5), 0 4px 12px rgba(15,131,189,.4);
}

#options-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20,45,60,.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
#options-panel.on { opacity: 1; visibility: visible; }

.options-card {
  width: min(440px, 100%);
  padding: clamp(18px, 3vh, 28px);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #eef4f8);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #b8c5ce, 0 20px 50px rgba(20,50,70,.35);
  transform: scale(.94);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.2);
}
#options-panel.on .options-card { transform: none; }

.options-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: #3d4d58;
  text-align: center;
}

.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(120,150,170,.18);
  font-weight: 700;
  font-size: 14px;
  color: #55656f;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #dfe7ec;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.14);
}
.lang-switch button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #6b7c88;
  background: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.lang-switch button:hover { color: #3d4d58; }
.lang-switch button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 2px 5px rgba(42,164,224,.45);
}

.toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #cdd8e0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.18);
  cursor: pointer;
  transition: background .18s ease;
}
.toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4);
}
.toggle[aria-pressed="true"] { background: var(--blue); }
.toggle[aria-pressed="true"] i { transform: translateX(26px); }

.opt-note {
  margin: 16px 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.options-card .oval-btn { width: 100%; min-width: 0; }

#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: #0b0f12;
  transition: opacity .6s ease, visibility .6s;
  cursor: pointer;
}
#boot-screen.gone { opacity: 0; visibility: hidden; }
body:not(.booting) #boot-screen { pointer-events: none; }

#boot-logo {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #ffffff;
}
#boot-logo b {
  font-size: clamp(56px, 14vw, 130px);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .9;
  text-shadow: 0 0 40px rgba(120,200,255,.5);
}
#boot-logo span {
  font-size: clamp(11px, 2vw, 16px);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: #8fa8b6;
  padding-left: .5em;
}
#boot-hint {
  margin-top: 26px;
  text-align: center;
  color: #7d95a3;
  font-size: 13px;
  font-weight: 500;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

#wii-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;

  width: clamp(32px, 7.8vh, 84px);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
#wii-cursor.on { opacity: 1; }
#wii-cursor img {
  width: 100%;
  height: auto;
  display: block;

  margin-left: -29.7%;
  transform-origin: 29.7% 0;
  transition: transform .1s ease;
}
#wii-cursor.press img { transform: scale(.88); }

@media (max-width: 900px) {
  .page > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  #scene { height: auto; min-height: 100vh; min-height: 100dvh; }

  #menu { padding: 16px 16px 30px; align-items: stretch; flex-wrap: wrap; }
  .page-arrow { display: none; }

  #pages-viewport { position: static; flex: 0 0 100%; width: 100%; overflow: visible; clip-path: none; }
  #pages { position: static; transform: none !important; display: block; }
  .page:not(.active) { display: none; }
  .page { height: auto; padding: 0; }
  .page { display: block; }
  .page > .grid {
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }
  .channel { aspect-ratio: 16 / 9; }
  .channel .label { font-size: 12px; }
  .channel:hover { transform: none; }
  .channel:active { transform: scale(.96); }

  #bottom-bar {
    position: sticky;
    bottom: 0;
    height: 92px;
    z-index: 20;
  }
  .bar-side { top: 46%; left: 12px; gap: 14px; }
  .bar-side.right { right: 12px; }
  .bar-side { --btn: 46px; }
  .sd-card { width: 20px; margin-top: 4px; }
  .wii-logo { font-size: 15px; }
  .sd-card { width: 19px; }
  #clock-time { font-size: 26px; }
  #clock-date { font-size: 15px; }

  #channel-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  #channel-banner-art { width: 100%; --tw: 100%; }
  #channel-bar { height: 96px; }
  .wii-oval {
    top: 68%;
    min-width: 0;
    font-size: 13px;
    padding: 9px 16px;
  }
  #btn-back { left: 12px; }
  #btn-action { right: 12px; }

  .pdf-frame { display: none; }
  .pdf-note { margin-top: 0; }
  #wii-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .01ms !important;
  }
}

.page-erreur #scene { justify-content: flex-start; }

#erreur {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vh, 32px) clamp(14px, 4vw, 44px);
}

.err-card {
  width: min(560px, 100%);
  padding: clamp(22px, 4.4vh, 44px) clamp(20px, 4vw, 44px) clamp(24px, 4.8vh, 48px);
  border-radius: clamp(10px, 1.6vh, 20px);
  background: #ffffff;
  box-shadow:
    0 0 0 1px #b8b8b8,
    0 0 3px 1px rgba(140, 144, 148, .55),
    0 6px 16px rgba(90, 96, 102, .22);
  text-align: center;
}

.err-code {
  margin: 0;
  font-size: clamp(58px, 13vh, 148px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.05em;
  color: #cdd7de;
}

.err-title {
  margin: clamp(8px, 1.6vh, 16px) 0 8px;
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #3d4d58;
}

.err-text {
  margin: 0;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.6;
  color: var(--ink-soft);
}

#btn-home {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
}
#btn-home:active { transform: translate(-50%, -50%) scale(.97); }

