/* MR POUPOU — V0.6
   Feuille consolidée : une règle de base par sélecteur ; seules les adaptations responsive
   sont redéfinies dans leurs @media respectifs. */
:root {
  --bg: #07101e;
  --bg2: #0a1629;
  --panel: #0d1d33;
  --text: #f4f8ff;
  --muted: #9aacc4;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #4aa8ff;
  --cyan: #61e8ff;
  --violet: #8877ff;
  --green: #70e5b2;
  --gold: #ffd166;
  --danger: #ff7d8d;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --scroll-track: rgba(255, 255, 255, 0.025);
  --scroll-thumb: rgba(78, 169, 255, 0.58);
  --scroll-thumb-hover: rgba(97, 232, 255, 0.78);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(74, 168, 255, 0.74),
    rgba(136, 119, 255, 0.64)
  );
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(97, 232, 255, 0.92),
    rgba(136, 119, 255, 0.84)
  );
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
.background {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% -18%, #15365c 0, transparent 42%),
    linear-gradient(180deg, #07101e 0%, #091426 48%, #07101e 100%);
}
.grid-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 84%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.22;
}
.orb-1 {
  width: 470px;
  height: 470px;
  background: #1c7cff;
  top: 3%;
  left: -150px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: #6b4dff;
  top: 42%;
  right: -180px;
}
.orb-3 {
  width: 400px;
  height: 400px;
  background: #14c7d9;
  top: 80%;
  left: 18%;
}
.glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.content-section {
  padding: 92px 0 105px;
}
.kicker,
.eyebrow,
.live-card-label {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  color: #86c8ff;
  text-transform: uppercase;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--green);
  display: inline-block;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: min(1220px, calc(100% - 32px));
  height: 76px;
  border-radius: 22px;
  padding: 0 18px 0 13px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(8, 18, 33, 0.74);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand strong {
  font-size: 1.42rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
}
.brand small {
  font-size: 1.02rem;
  color: var(--muted);
  margin-top: 4px;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav a {
  font-size: 0.82rem;
  color: #cbd7e7;
  padding: 10px 10px;
  border-radius: 12px;
  transition: 0.22s;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.nav .nav-lab {
  margin-left: 5px;
  padding-inline: 14px;
  border: 1px solid rgba(128, 152, 255, 0.22);
  background: linear-gradient(
    135deg,
    rgba(98, 75, 255, 0.13),
    rgba(38, 105, 170, 0.08)
  );
  color: #d0ceff;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px;
  border-radius: 2px;
}

/* Hero portail vivant */
.portal-hero {
  min-height: 700px;
  padding-top: 126px;
  padding-bottom: 50px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}
.hero-identity {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 34px 42px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 548px;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(73, 174, 255, 0.17),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.088),
      rgba(255, 255, 255, 0.024)
    );
}
.hero-identity::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(118, 195, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(82, 160, 255, 0.018),
    0 0 0 96px rgba(82, 160, 255, 0.012);
}
.hero-watermark {
  position: absolute;
  right: 26px;
  top: 18px;
  opacity: 0.12;
  pointer-events: none;
}
.hero-watermark img {
  width: 190px;
  filter: grayscale(0.15);
}
.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(106, 190, 255, 0.18);
  background: rgba(47, 145, 230, 0.08);
  border-radius: 999px;
}
.hero-identity h1 {
  font-size: clamp(4.6rem, 8.4vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.072em;
  margin: 24px 0 14px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.hero-identity h1 span {
  background: linear-gradient(90deg, #fff 20%, #68bcff 60%, #65e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 680;
  max-width: 760px;
  margin: 0 0 12px;
  line-height: 1.27;
}
.hero-intro {
  max-width: 710px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 26px;
  position: relative;
  z-index: 1;
}
.hero-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.74rem;
  font-weight: 720;
  color: #c9d8e9;
  transition: 0.2s;
}
.hero-shortcuts a:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 190, 255, 0.32);
  color: #fff;
  background: rgba(74, 168, 255, 0.1);
}
.hero-shortcuts i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(74, 168, 255, 0.6);
}
.hero-live {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  grid-template-rows: 1.08fr 0.82fr 0.82fr;
  gap: 14px;
}
.live-card {
  position: relative;
  border-radius: 25px;
  padding: 21px;
  overflow: hidden;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.live-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 192, 255, 0.26);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}
.live-news {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(52, 159, 255, 0.28),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.025)
    );
}
.live-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.035) 46%,
    transparent 72%
  );
  pointer-events: none;
}
.live-news h2 {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.14;
  max-width: 560px;
  margin: 13px 0 6px;
  position: relative;
}
.live-news p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.live-news a {
  margin-top: 19px;
  font-size: 0.78rem;
  font-weight: 780;
  color: #9cdbff;
  position: relative;
}
.live-game {
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 209, 102, 0.18),
      transparent 40%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.022)
    );
}
.live-game .live-card-label {
  align-self: stretch;
}
.live-game img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  align-self: center;
  filter: drop-shadow(0 15px 22px rgba(0, 0, 0, 0.36));
  margin-top: 3px;
}
.live-game div {
  width: 100%;
  text-align: center;
  margin-top: 6px;
}
.live-game strong,
.live-lab strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.08;
}
.live-game small,
.live-lab small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 7px;
  line-height: 1.45;
}
.live-setup {
  grid-column: 2;
  grid-row: 2/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(112, 229, 178, 0.12),
      transparent 43%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.022)
    );
}
.live-setup-visual {
  min-height: 166px;
  display: grid;
  place-items: center;
  margin: 4px 0 8px;
}
.live-setup-visual img {
  width: min(94%, 235px);
  height: 166px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
}
.setup-line {
  margin-top: 2px;
  padding-top: 0;
}
.setup-line strong {
  display: block;
  font-size: 1.58rem;
  line-height: 1.06;
}
.setup-details {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  color: #9dd9be;
  font-size: 0.82rem;
  line-height: 1.42;
}
.setup-details span {
  display: block;
}
.live-setup a {
  margin-top: auto;
  padding-top: 12px;
  color: #aee7cf;
  font-size: 0.78rem;
  font-weight: 780;
}
.live-lab {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 0;
  background:
    radial-gradient(
      circle at 20% 8%,
      rgba(136, 119, 255, 0.24),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.022)
    );
}
.live-lab strong {
  font-size: 1.55rem;
  line-height: 1.02;
  margin-top: 14px;
}
.live-lab small {
  font-size: 0.75rem;
  line-height: 1.42;
  max-width: 14ch;
  margin-top: 7px;
}
.live-lab b {
  font-size: 0.76rem;
  color: #c6c4ff;
  margin-top: auto;
  padding-top: 10px;
}

/* Sections */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: 0.025em;
  margin: 5px 0 0;
  line-height: 1.02;
  white-space: nowrap;
}
.section-heading > p {
  flex: 1 1 auto;
  max-width: 600px;
  min-width: 260px;
  color: var(--muted);
  margin: 0;
  text-align: right;
  line-height: 1.5;
}
.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: #71849c;
  font-size: 0.72rem;
}
.section-foot a {
  color: #8fd4ff;
  font-weight: 720;
}
.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 750;
  font-size: 0.84rem;
  transition: 0.22s;
  background: none;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn.primary {
  background: linear-gradient(135deg, #2f8af2, #4bc7ec);
  color: white;
  box-shadow: 0 10px 30px rgba(30, 140, 235, 0.26);
}
.btn.secondary {
  background: rgba(69, 166, 255, 0.1);
  border-color: rgba(90, 182, 255, 0.25);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #d9e6f7;
}
.btn.compact {
  padding: 8px 11px;
  font-size: 0.75rem;
}

/* News RSS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.news-card {
  min-height: 300px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 31, 54, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 190, 255, 0.26);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}
.news-card-image {
  height: 145px;
  background: linear-gradient(145deg, #173454, #0b192c);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.news-card-copy {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card small {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #83ccff;
  font-weight: 800;
  text-transform: uppercase;
}
.news-card h3 {
  font-size: 0.92rem;
  line-height: 1.26;
  margin: 9px 0 7px;
}
.news-card p {
  color: #92a5bc;
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card a {
  margin-top: auto;
  font-size: 0.7rem;
  color: #9ddcff;
  font-weight: 800;
}
.news-skeleton {
  grid-column: 1/-1;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #8095ad;
  background: rgba(255, 255, 255, 0.025);
}
/* Creations */
.creation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.creation-card {
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 230px auto;
}
.creation-preview {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 7px;
  padding: 14px;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(30, 121, 196, 0.28),
      transparent 50%
    ),
    #091827;
  overflow: hidden;
}
.creation-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.creation-preview img:first-child {
  grid-row: 1/3;
}
.creation-excel {
  background:
    radial-gradient(
      circle at 28% 18%,
      rgba(41, 165, 117, 0.24),
      transparent 50%
    ),
    #091915;
}
.creation-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.creation-copy > span {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  color: #83ccff;
  font-weight: 800;
}
.creation-copy h3 {
  font-size: 1.45rem;
  margin: 8px 0;
}
.creation-copy p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
}

/* Veille */
.tech-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: stretch;
}
.tech-main {
  position: relative;
  min-height: 548px;
  border-radius: 30px;
  padding: 36px;
  overflow: hidden;
  display: flex;
  align-items: end;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(38, 157, 255, 0.13),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.018)
    );
}
.tech-main div {
  position: relative;
  z-index: 2;
}
.tech-main small {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: #7fc9ff;
  font-weight: 800;
}
.tech-main h3 {
  font-size: 2.25rem;
  margin: 7px 0 8px;
}
.tech-main p {
  max-width: 430px;
  color: var(--muted);
  font-size: 0.86rem;
}
.tech-main b {
  font-size: 0.8rem;
  color: #9ddcff;
}
.tech-radar {
  position: absolute;
  right: -35px;
  top: -35px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(84, 180, 255, 0.17);
  box-shadow:
    0 0 0 46px rgba(78, 172, 255, 0.025),
    0 0 0 92px rgba(78, 172, 255, 0.018);
}
.tech-radar::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(99, 191, 255, 0.2);
}
.tech-radar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: rgba(99, 191, 255, 0.2);
}
.tech-radar img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  max-height: 118px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  filter: saturate(0.8) drop-shadow(0 0 18px rgba(96, 193, 255, 0.22));
}
.tech-radar i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.tech-radar i:nth-of-type(1) {
  left: 26%;
  top: 35%;
}
.tech-radar i:nth-of-type(2) {
  right: 26%;
  bottom: 30%;
}
.tech-radar i:nth-of-type(3) {
  left: 48%;
  top: 20%;
}
.tech-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
.tech-feed-card {
  min-height: 268px;
  border-radius: 21px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tech-feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.tech-feed-category {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #75c9ff;
  font-weight: 850;
}
.tech-feed-count {
  font-size: 0.59rem;
  color: #607b96;
  white-space: nowrap;
}
.tech-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.tech-feed-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}
.tech-feed-list li:first-child {
  border-top: 0;
}
.tech-feed-list li > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: #dce8f5;
  transition: 0.18s;
}
.tech-feed-list li > a:hover {
  color: #8ed8ff;
  padding-left: 4px;
}
.tech-feed-list li > a > span {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tech-feed-list time {
  font-size: 0.6rem;
  color: #698198;
  font-weight: 700;
}
.tech-feed-list b {
  font-size: 0.66rem;
  color: #60c8ff;
}
.tech-feed-empty {
  padding: 16px 0;
  color: #748ba2;
  font-size: 0.68rem;
}
.tech-feed-open {
  margin-top: auto;
  padding-top: 11px;
  font-size: 0.66rem;
  color: #86d2ff;
  font-weight: 800;
}
.tech-feed-loading {
  grid-column: 1/-1;
  min-height: 548px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  place-items: center;
  color: #7890aa;
  font-size: 0.75rem;
}
.tech-feed-loading.is-error {
  color: #d19aa5;
  border-color: rgba(255, 125, 141, 0.12);
}

/* Radar IA — Option B : bandeau horizontal + cartes lisibles */
.ai-overview {
  position: relative;
  min-height: 118px;
  border-radius: 23px;
  padding: 15px 22px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 16px;
  background:
    radial-gradient(
      circle at 8% 50%,
      rgba(111, 102, 255, 0.16),
      transparent 23%
    ),
    radial-gradient(
      circle at 88% 20%,
      rgba(33, 210, 227, 0.08),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.072),
      rgba(255, 255, 255, 0.018)
    );
}
.ai-overview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.022) 46%,
    transparent 72%
  );
  pointer-events: none;
}
.ai-overview-orbit {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(109, 176, 255, 0.18);
  box-shadow:
    0 0 0 13px rgba(78, 172, 255, 0.018),
    0 0 0 26px rgba(136, 119, 255, 0.012);
}
.ai-overview-orbit::before,
.ai-overview-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(103, 199, 255, 0.13);
}
.ai-overview-orbit::before {
  inset: 14px;
}
.ai-overview-orbit::after {
  inset: 27px;
}
.ai-overview-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(83, 168, 255, 0.2),
    rgba(128, 100, 255, 0.22)
  );
  border: 1px solid rgba(126, 194, 255, 0.2);
  font-size: 0.84rem;
  font-weight: 950;
  color: #e3f6ff;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(91, 176, 255, 0.08);
}
.ai-overview-orbit i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.ai-overview-orbit i:nth-of-type(1) {
  left: 10%;
  top: 38%;
}
.ai-overview-orbit i:nth-of-type(2) {
  right: 6%;
  top: 18%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}
.ai-overview-orbit i:nth-of-type(3) {
  right: 5%;
  bottom: 22%;
}
.ai-overview-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.ai-overview-copy small {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #8dc8ff;
  font-weight: 850;
}
.ai-overview-copy h3 {
  font-size: 1.38rem;
  margin: 1px 0 3px;
}
.ai-overview-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
  margin: 0;
}
.ai-overview-status {
  position: relative;
  z-index: 2;
  min-width: 190px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 5px;
  justify-items: end;
  font-size: 0.65rem;
  color: #8096ae;
}
.ai-overview-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9fddc6;
  font-weight: 780;
  white-space: nowrap;
}
.ai-overview-status span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(112, 229, 178, 0.6);
}
.ai-overview-status time {
  white-space: nowrap;
}
.ai-model-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.ai-loading {
  grid-column: 1/-1;
  min-height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  place-items: center;
  color: #7890aa;
  font-size: 0.82rem;
}
.ai-loading.is-error {
  color: #d19aa5;
  border-color: rgba(255, 125, 141, 0.12);
}
.ai-model-card {
  grid-column: span 2;
  min-height: 292px;
  border-radius: 23px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.072),
    rgba(255, 255, 255, 0.021)
  );
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ai-model-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 190, 255, 0.26);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25);
}
.ai-model-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}
.ai-brand {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.ai-brand img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.ai-brand-fallback {
  display: none;
  font-size: 0.72rem;
  font-weight: 950;
  color: #172235;
}
.ai-brand.is-fallback img {
  display: none;
}
.ai-brand.is-fallback .ai-brand-fallback,
.ai-brand:not(:has(img)) .ai-brand-fallback {
  display: block;
}
.ai-model-title-wrap {
  min-width: 0;
}
.ai-model-head small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  color: #7f9fbc;
  font-weight: 820;
}
.ai-model-head h3 {
  font-size: 1.13rem;
  line-height: 1.18;
  margin: 3px 0 0;
  letter-spacing: -0.015em;
}
.ai-model-topmeta {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: max-content;
}
.ai-model-topmeta span {
  display: grid;
  justify-items: end;
  gap: 1px;
  min-width: 0;
  color: #bfd0e1;
  font-size: 0.64rem;
  line-height: 1.2;
  white-space: nowrap;
}
.ai-model-topmeta b {
  color: #6f8ba6;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.ai-model-card > p {
  color: #a6b8cb;
  font-size: 0.79rem;
  line-height: 1.52;
  margin: 14px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.ai-strengths span {
  font-size: 0.61rem;
  font-weight: 760;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.ai-strengths .tag-violet {
  color: #d7ceff;
  background: rgba(136, 119, 255, 0.13);
  border-color: rgba(136, 119, 255, 0.28);
}
.ai-strengths .tag-blue {
  color: #bfe1ff;
  background: rgba(74, 168, 255, 0.13);
  border-color: rgba(74, 168, 255, 0.27);
}
.ai-strengths .tag-green {
  color: #baf1d8;
  background: rgba(112, 229, 178, 0.11);
  border-color: rgba(112, 229, 178, 0.24);
}
.ai-strengths .tag-cyan {
  color: #bdf6ff;
  background: rgba(97, 232, 255, 0.1);
  border-color: rgba(97, 232, 255, 0.24);
}
.ai-strengths .tag-gold {
  color: #ffe5a0;
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.25);
}
.ai-strengths .tag-orange {
  color: #ffd0a5;
  background: rgba(255, 154, 92, 0.11);
  border-color: rgba(255, 154, 92, 0.25);
}
.ai-strengths .tag-pink {
  color: #ffc5df;
  background: rgba(255, 121, 177, 0.1);
  border-color: rgba(255, 121, 177, 0.24);
}
.ai-strengths .tag-slate {
  color: #c4d4e6;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}
.ai-model-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ai-model-actions a {
  font-size: 0.69rem;
  color: #92dcff;
  font-weight: 820;
}
.ai-model-actions a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ai-source-link {
  color: #7e94aa !important;
  font-weight: 680 !important;
}

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.game-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 30, 51, 0.5);
  padding: 16px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: 0.24s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(27, 48, 76, 0.64);
}
.game-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  align-self: center;
  margin: 4px 0 13px;
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, 0.3));
}
.game-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #f5d985;
}
.game-card p {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.game-card-tags span {
  font-size: 0.57rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 6px;
  border-radius: 999px;
  color: #adc4dd;
}
.game-card button {
  margin-top: auto;
  border: 0;
  border-radius: 11px;
  padding: 9px;
  background: rgba(255, 209, 102, 0.09);
  color: #ffe5a5;
  font-weight: 800;
}

/* Apps */
.app-toolbar {
  border-radius: 19px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter {
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #99acc3;
}
.filter.active {
  background: rgba(80, 169, 255, 0.13);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(110, 193, 255, 0.14);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-width: 275px;
  color: #8da2ba;
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 0.82rem;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 138px));
  justify-content: center;
  gap: 10px;
}
.app-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 30, 51, 0.5);
  border-radius: 17px;
  padding: 13px 10px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: 0.22s;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 180, 255, 0.3);
  background: rgba(25, 52, 84, 0.65);
}
.app-card img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.18);
}
.app-card h3 {
  font-size: 0.76rem;
  margin: 10px 0 2px;
}
.app-card small {
  color: #758aa3;
  font-size: 0.61rem;
}
.app-card a {
  margin-top: auto;
  font-size: 0.61rem;
  color: #8fcfff;
  font-weight: 760;
}

/* Hardware */
.hardware-feature {
  display: grid;
  grid-template-columns: 2fr 3fr;
  border-radius: 30px;
  overflow: hidden;
  min-height: 470px;
}
.hardware-feature-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(92, 185, 255, 0.12),
    transparent 58%
  );
}
.hardware-feature-image img {
  position: relative;
  z-index: 2;
  width: min(84%, 440px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.38));
}
.hardware-feature-copy {
  padding: 45px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #75c9ff;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.hardware-feature-copy h3 {
  font-size: 2.65rem;
  letter-spacing: -0.045em;
  margin: 11px 0 2px;
}
.hardware-change {
  color: #9dd6b7;
  font-size: 0.78rem;
  margin: 0 0 20px;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0 0 26px;
}
.spec-grid div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.spec-grid dt {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7d91aa;
}
.spec-grid dd {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 650;
}
.spec-values {
  display: grid;
  gap: 4px;
}
.spec-values span {
  display: block;
}
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 14px;
}
.hardware-card {
  position: relative;
  border-radius: 22px;
  padding: 16px;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hardware-card img {
  height: 145px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 9px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.32));
}
.hardware-card span {
  font-size: 0.59rem;
  letter-spacing: 0.11em;
  color: #7cc8ff;
  font-weight: 800;
}
.hardware-card h3 {
  margin: 4px 0;
  font-size: 1rem;
}
.hardware-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.hardware-card button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

/* Resources */
.split-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}
.resource-split {
  align-items: stretch;
}
.resource-panel {
  padding: 28px;
  border-radius: var(--radius);
  min-height: 690px;
}
.resource-panel-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.resource-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(73, 163, 244, 0.12);
  border: 1px solid rgba(90, 180, 255, 0.16);
  color: #89d1ff;
  font-size: 1.35rem;
}
.resource-panel h3 {
  font-size: 1.7rem;
  margin: 0 0 5px;
}
.resource-panel-head p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  max-width: 590px;
}
.resource-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.resource-download-card {
  min-height: 264px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 19px;
  background: linear-gradient(
    145deg,
    rgba(20, 43, 72, 0.62),
    rgba(10, 24, 43, 0.52)
  );
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  padding: 15px;
  transition: 0.22s;
}
.resource-download-card:hover {
  border-color: rgba(92, 184, 255, 0.25);
  background: linear-gradient(
    145deg,
    rgba(24, 52, 87, 0.72),
    rgba(12, 29, 50, 0.62)
  );
  transform: translateY(-2px);
}
.resource-download-visual {
  height: 190px;
  display: grid;
  place-items: center;
  padding: 6px;
}
.resource-download-visual img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.36));
}
.resource-download-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.resource-download-copy small {
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  color: #77c8ff;
  font-weight: 850;
  text-transform: uppercase;
}
.resource-download-copy h4 {
  font-size: 1.1rem;
  line-height: 1.15;
  margin: 7px 0 8px;
}
.resource-download-copy h4 span {
  color: #7fc1ff;
}
.resource-download-copy p {
  color: #8fa4bb;
  font-size: 0.68rem;
  line-height: 1.4;
  margin: 0 0 15px;
}
.resource-download-copy a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(74, 168, 255, 0.105);
  border: 1px solid rgba(90, 182, 255, 0.22);
  color: #a7dcff;
  font-size: 0.69rem;
  font-weight: 800;
  transition: 0.18s;
}
.resource-download-copy a:hover {
  background: rgba(74, 168, 255, 0.16);
  border-color: rgba(97, 232, 255, 0.28);
  color: #e6f7ff;
}
.resource-download-grid.is-fallback .resource-download-copy small::after {
  content: " · cache local";
  color: #60778f;
}
.resource-loading {
  grid-column: 1/-1;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: #8094aa;
  font-size: 0.74rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.resource-tool-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 3px;
  border-top: 1px solid var(--line);
}
.resource-tool-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 11px;
  padding: 9px 2px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--line);
  transition: 0.18s !important;
}
.resource-tool-row:hover {
  padding-left: 6px !important;
  background: rgba(74, 168, 255, 0.045);
}
.resource-tool-row img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.045);
  padding: 2px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}
.resource-tool-row span {
  font-size: 0.77rem;
  font-weight: 760;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resource-tool-row b {
  font-size: 0.55rem;
  letter-spacing: 0.055em;
  color: #7188a2;
  font-weight: 720;
  text-align: right;
  white-space: nowrap;
}
.resource-tool-row i {
  font-size: 0.65rem;
  font-style: normal;
  color: #62c7ff;
  text-align: center;
}

/* Wallpapers */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.wallpaper-card {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid var(--line);
  background: #0c1a2d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transition: 0.28s;
}
.wallpaper-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 182, 255, 0.24);
}
.wallpaper-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}
.wallpaper-card button {
  position: absolute;
  inset: auto 12px 12px auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 16, 30, 0.68);
  backdrop-filter: blur(9px);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.69rem;
}

/* Travels */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.travel-card {
  position: relative;
  min-height: 330px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  background: #0b1728;
}
.travel-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transform: scale(1.001);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.45s ease;
}
.travel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(5, 11, 19, 0.95) 0%,
    rgba(5, 11, 19, 0.56) 33%,
    rgba(5, 11, 19, 0.07) 69%
  );
}
.travel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(136, 211, 255, 0.2);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.39);
}
.travel-card:hover .travel-cover {
  transform: scale(1.025);
  filter: saturate(1.04);
}
.travel-card > div {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  z-index: 2;
}
.travel-card span {
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #9bdcff;
}
.travel-card h3 {
  font-size: 1.55rem;
  margin: 3px 0 13px;
}
.travel-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 13px 0 0;
  background: transparent;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}
.travel-card button b {
  font-size: 0.65rem;
  color: #9fb0c4;
  font-weight: 600;
}

/* Timeline */
.timeline-section {
  padding: 92px 0 110px;
}
.timeline-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: -17px;
}
.timeline-controls {
  display: flex;
  gap: 8px;
}
.timeline-controls button {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}
.timeline-viewport {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  overflow-x: auto;
  padding: 52px 0 45px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 191, 255, 0.32) transparent;
  overscroll-behavior-inline: contain;
}
.timeline-track {
  position: relative;
  display: flex;
  width: max-content;
  min-height: 480px;
  padding: 0 100px 0 30px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 0;
  top: 250px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #46a9f2 6%,
    #7c7aff 88%,
    transparent
  );
}
.timeline-item {
  position: relative;
  width: 250px;
  min-width: 250px;
  height: 480px;
  scroll-snap-align: center;
}
.timeline-marker {
  position: absolute;
  top: 240px;
  left: 20px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #0d1a2c;
  border: 4px solid #65bfff;
  box-shadow:
    0 0 0 7px rgba(65, 171, 247, 0.09),
    0 0 22px rgba(65, 171, 247, 0.4);
  z-index: 2;
}
.timeline-card {
  position: absolute;
  left: 0;
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 27, 48, 0.68);
  backdrop-filter: blur(14px);
  padding: 17px;
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}
.timeline-icon {
  height: 38px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.timeline-icon svg {
  width: 34px;
  height: 34px;
  stroke: #69bfff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(85, 181, 255, 0.22));
}
.timeline-icon img {
  max-width: 42px;
  max-height: 36px;
  object-fit: contain;
}
.timeline-item:nth-child(odd) .timeline-card {
  bottom: 260px;
}
.timeline-item:nth-child(even) .timeline-card {
  top: 280px;
}
.timeline-card::after {
  content: "";
  position: absolute;
  left: 28px;
  width: 1px;
  height: 27px;
  background: rgba(101, 191, 255, 0.45);
}
.timeline-item:nth-child(odd) .timeline-card::after {
  bottom: -27px;
}
.timeline-item:nth-child(even) .timeline-card::after {
  top: -27px;
}
.timeline-year {
  font-size: 1.2rem;
  font-weight: 900;
  color: #7bc9ff;
}
.timeline-card h3 {
  font-size: 0.89rem;
  line-height: 1.25;
  margin: 7px 0;
}
.timeline-card strong {
  display: block;
  font-size: 0.7rem;
  color: #b8cae0;
  margin-bottom: 6px;
}
.timeline-card p {
  font-size: 0.69rem;
  color: #7f93ab;
  margin: 0;
}

/* Footer */
.footer {
  padding-top: 36px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.footer-brand img {
  width: 46px;
}
.footer-brand div {
  display: flex;
  flex-direction: column;
}
.footer-brand span {
  font-size: 0.72rem;
  color: var(--muted);
}
.footer-mail {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9fc5e5;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: 0.2s;
}
.footer-mail-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(105, 194, 255, 0.16);
  border-radius: 10px;
  background: rgba(74, 168, 255, 0.055);
  color: #7fc9f7;
}
.footer-mail-icon svg {
  width: 17px;
  height: 17px;
}
.footer-mail:hover {
  color: #e0f3ff;
}
.footer-mail:hover .footer-mail-icon {
  border-color: rgba(105, 194, 255, 0.3);
  background: rgba(74, 168, 255, 0.1);
}
.admin-link {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #8cbfe4;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}
.admin-link:hover {
  background: rgba(74, 168, 255, 0.08);
  border-color: rgba(74, 168, 255, 0.18);
  color: #d5efff;
}
.site-build {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 44;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(7, 16, 30, 0.72);
  backdrop-filter: blur(10px);
  color: #6f849c;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* Mini-player YouTube compact */
.radio-player {
  position: fixed;
  right: 18px;
  bottom: 22px;
  top: auto;
  transform: none;
  z-index: 85;
  width: 168px;
  border-radius: 19px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  background: rgba(8, 19, 35, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  user-select: none;
}
.radio-thumb {
  width: 100%;
  height: 126px;
  border-radius: 13px;
  object-fit: cover;
  background: #0d213a;
}
.radio-main {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 9px;
}
.radio-main select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0b1d33;
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 0.69rem;
  outline: 0;
}
.radio-volume-row {
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: center;
  gap: 5px;
  color: #9eb4ca;
  font-size: 0.68rem;
}
.radio-volume-row input {
  width: 100%;
  accent-color: #52b8ef;
}
.radio-play {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(105, 194, 255, 0.2);
  background: rgba(65, 160, 255, 0.13);
  font-size: 0.95rem;
}
.youtube-engine {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1559px) {
  .radio-player {
    display: none;
  }
}

/* Dialogs */
dialog {
  color: var(--text);
}
.modal {
  width: min(760px, calc(100% - 34px));
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 0;
  background: rgba(8, 19, 34, 0.96);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(24px);
}
.modal::backdrop,
.game-dialog::backdrop {
  background: rgba(0, 5, 12, 0.78);
  backdrop-filter: blur(7px);
}
.modal[open],
.game-dialog[open] {
  animation: modalIn 0.22s ease-out;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 1.8rem;
  margin: 4px 0 0;
}
.modal-x {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.25rem;
}
.modal-body {
  padding: 24px 28px;
}
.modal-intro {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0 0 19px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px 26px;
  border-top: 1px solid var(--line);
}
.playlist-modal {
  width: min(880px, calc(100% - 34px));
}
.playlist-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  max-height: 420px;
  overflow: auto;
}
.playlist-row {
  display: grid;
  grid-template-columns: 26px 1fr 1.65fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}
.playlist-row input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #0b1b2f;
  padding: 8px;
  font-size: 0.76rem;
  outline: 0;
}
.playlist-row-actions {
  display: flex;
  gap: 4px;
}
.playlist-row-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.playlist-row .active-radio {
  accent-color: var(--cyan);
}
.media-modal {
  width: min(1040px, calc(100% - 34px));
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.project-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}
.project-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.project-gallery figcaption {
  padding: 9px 11px;
  font-size: 0.7rem;
  color: #a9bdd2;
}
.wallpaper-preview {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.wallpaper-preview img {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 17px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.photo-modal {
  width: min(1220px, calc(100% - 26px));
  height: min(90vh, 920px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 0;
  background: rgba(7, 17, 31, 0.97);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}
.photo-modal[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.photo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.93);
  z-index: 2;
}
.photo-filter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 7px 10px;
  font-size: 0.7rem;
}
.photo-filter.active {
  background: rgba(71, 166, 249, 0.15);
  border-color: rgba(86, 181, 255, 0.3);
  color: #fff;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  padding: 10px;
  overflow: auto;
  min-height: 0;
  scrollbar-width: none;
}
.photo-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.photo-grid button {
  border: 0;
  background: none;
  padding: 0;
  min-height: 132px;
  border-radius: 11px;
  overflow: hidden;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  display: block;
  transition: 0.25s;
}
.photo-grid button:hover img {
  transform: scale(1.025);
}
.games-library-modal {
  width: min(1080px, calc(100% - 34px));
}
.games-library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.game-library-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
  padding: 13px;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 11px;
  align-items: center;
  text-align: left;
}
.game-library-card:hover {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.045);
}
.game-library-card img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}
.game-library-card strong {
  display: block;
  font-size: 0.82rem;
  color: #f4dd9a;
}
.game-library-card small {
  display: block;
  color: var(--muted);
  font-size: 0.63rem;
  margin-top: 3px;
}
.game-dialog {
  width: min(1280px, calc(100% - 24px));
  height: min(92vh, 900px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 0;
  background: #050c16;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.game-dialog-head {
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 18px;
  border-bottom: 1px solid var(--line);
  background: #081426;
}
.game-dialog-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-dialog-head span {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #8195ad;
  font-weight: 800;
}
.game-dialog-head strong {
  font-size: 0.94rem;
}
.game-dialog-head > div:last-child {
  display: flex;
  gap: 6px;
}
.game-dialog-head button {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 0.68rem;
}
.game-stage {
  width: 100%;
  height: calc(100% - 86px);
  background: #071322;
}
.game-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #071322;
  display: block;
}
.game-stage:fullscreen,
.game-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #050c16;
}
.game-stage:fullscreen iframe,
.game-stage:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
}
.game-dialog-note {
  height: 28px;
  padding: 6px 14px;
  color: #697f98;
  font-size: 0.61rem;
  background: #06101c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.hardware-modal {
  width: min(760px, calc(100% - 34px));
}
.hardware-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.hardware-detail > img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}
.hardware-detail dl {
  margin: 0;
}
.hardware-detail dl div {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.hardware-detail dt {
  font-size: 0.61rem;
  color: #72869e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hardware-detail dd {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-weight: 650;
}
.hardware-detail .spec-values {
  gap: 5px;
}
img[src$="matos_corsair.png"] {
  filter: invert(1) brightness(1.35)
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}

/* Admin */
.admin-modal {
  width: min(1050px, calc(100% - 26px));
  max-height: 90vh;
  overflow: hidden;
}
.admin-modal[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.admin-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}
.admin-tabs button {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 9px 13px;
  color: #90a6bf;
  font-size: 0.78rem;
  font-weight: 750;
}
.admin-tabs button.active {
  background: rgba(80, 169, 255, 0.12);
  color: #fff;
}
.admin-panel {
  display: none;
  padding: 22px 28px 28px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.admin-panel.active {
  display: block;
}
.section-order-list {
  display: grid;
  gap: 7px;
  margin: 17px 0;
}
.section-order-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}
.section-order-item.dragging {
  opacity: 0.45;
  border-style: dashed;
}
.drag-handle {
  font-size: 1.05rem;
  color: #7c91a9;
  cursor: grab;
  text-align: center;
}
.section-order-item strong {
  font-size: 0.82rem;
}
.visibility-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  color: #a5b8cc;
}
.visibility-toggle input {
  accent-color: #4aa8ff;
}
.hardware-admin-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}
.admin-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-subhead h3 {
  margin: 0;
}
.hardware-admin-list {
  display: grid;
  gap: 7px;
  max-height: 560px;
  overflow: auto;
}
.hardware-admin-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.hardware-admin-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.hardware-admin-item strong {
  display: block;
  font-size: 0.76rem;
}
.hardware-admin-item small {
  display: block;
  color: #71859d;
  font-size: 0.62rem;
}
.hardware-admin-item div:last-child {
  display: flex;
  gap: 4px;
}
.hardware-admin-item button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.hardware-form {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.form-grid label {
  display: grid;
  gap: 5px;
  font-size: 0.69rem;
  color: #a8bbcf;
}
.form-grid label.wide {
  grid-column: 1/-1;
}
.form-grid label small {
  font-size: 0.58rem;
  color: #6d829b;
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #0a192b;
  padding: 9px;
  outline: 0;
}
.form-grid textarea {
  resize: vertical;
}
.form-grid .check-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.form-grid .check-label input {
  width: auto;
  accent-color: #4aa8ff;
}
.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 25px);
  z-index: 120;
  padding: 12px 16px;
  border-radius: 13px;
  background: rgba(12, 26, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  color: #d9e9fa;
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.24s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
}

@media (max-width: 1100px) {
  .nav {
    position: absolute;
    top: 85px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(8, 18, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .portal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-identity {
    min-height: 490px;
  }
  .hero-live {
    grid-template-rows: 1fr 0.78fr;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .live-news {
    grid-column: 1/-1;
  }
  .live-setup {
    grid-column: auto;
    grid-row: auto;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wallpaper-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 820px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }
  .content-section {
    padding: 72px 0 82px;
  }
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    height: 68px;
    border-radius: 18px;
  }
  .brand img {
    width: 46px;
    height: 46px;
  }
  .brand small {
    display: none;
  }
  .portal-hero {
    padding-top: 102px;
  }
  .hero-identity {
    padding: 34px 28px 30px;
    min-height: 470px;
  }
  .hero-identity h1 {
    font-size: clamp(4rem, 16vw, 6.2rem);
  }
  .hero-watermark img {
    width: 140px;
  }
  .hero-live {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .live-news {
    grid-column: 1/-1;
  }
  .live-setup {
    grid-column: auto;
  }
  .live-lab {
    min-height: 185px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    min-width: 0;
    max-width: 690px;
    margin-top: 12px;
    text-align: left;
  }
  .section-heading h2 {
    white-space: normal;
  }
  .creation-grid,
  .tech-layout,
  .split-section,
  .hardware-feature,
  .hardware-admin-layout {
    grid-template-columns: 1fr;
  }
  .resource-panel {
    min-height: 0;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tech-main {
    min-height: 330px;
  }
  .tech-feed {
    grid-template-columns: 1fr 1fr;
  }
  .tech-feed-loading {
    min-height: 260px;
  }
  .ai-overview {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 15px;
  }
  .ai-overview-orbit {
    width: 68px;
    height: 68px;
  }
  .ai-overview-status {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0 0;
    display: flex;
    justify-content: space-between;
  }
  .ai-model-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ai-model-card {
    grid-column: auto;
  }
  .ai-loading {
    min-height: 280px;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wallpaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .travel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .games-library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hardware-detail {
    grid-template-columns: 1fr;
  }
  .hardware-detail > img {
    max-height: 220px;
  }
  .timeline-viewport {
    width: calc(100% - 28px);
  }
}
@media (max-width: 560px) {
  .brand strong {
    font-size: 1rem;
  }
  .portal-hero {
    padding-top: 94px;
  }
  .hero-identity {
    padding: 26px 18px 24px;
    min-height: 430px;
    border-radius: 25px;
  }
  .hero-identity h1 {
    font-size: clamp(3.7rem, 20vw, 5.6rem);
    margin-top: 28px;
  }
  .hero-tagline {
    font-size: 1.22rem;
  }
  .hero-intro {
    font-size: 0.89rem;
  }
  .hero-shortcuts {
    gap: 6px;
  }
  .hero-shortcuts a {
    font-size: 0.66rem;
    padding: 7px 9px;
  }
  .hero-watermark {
    right: -8px;
    top: 14px;
  }
  .hero-watermark img {
    width: 115px;
  }
  .hero-live {
    grid-template-columns: 1fr;
  }
  .live-news,
  .live-setup {
    grid-column: auto;
  }
  .live-card {
    min-height: 168px;
  }
  .live-news h2 {
    font-size: 1.28rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .creation-card {
    grid-template-rows: 190px auto;
  }
  .creation-preview {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    padding: 9px;
  }
  .tech-feed {
    grid-template-columns: 1fr;
  }
  .tech-feed-card {
    min-height: 0;
  }
  .ai-overview {
    grid-template-columns: 1fr;
    padding: 17px 18px;
  }
  .ai-overview-orbit {
    display: none;
  }
  .ai-overview-status {
    grid-column: auto;
    display: grid;
    justify-items: start;
  }
  .ai-model-grid {
    grid-template-columns: 1fr;
  }
  .ai-model-card {
    grid-column: auto;
    min-height: 0;
  }
  .ai-model-head {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .ai-model-topmeta {
    grid-column: 2;
    justify-items: start;
    grid-template-columns: auto auto;
    gap: 7px 12px;
  }
  .ai-model-topmeta span {
    justify-items: start;
    white-space: normal;
  }
  .live-game img {
    width: 76px;
    height: 76px;
  }
  .live-setup-visual {
    min-height: 145px;
  }
  .live-setup-visual img {
    width: min(96%, 210px);
    height: 145px;
  }
  .setup-details {
    gap: 6px;
    font-size: 0.8rem;
  }
  .games-grid,
  .hardware-grid,
  .wallpaper-grid,
  .travel-grid,
  .project-gallery,
  .photo-grid,
  .games-library-grid,
  .resource-download-grid {
    grid-template-columns: 1fr;
  }
  .resource-download-card {
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 210px;
  }
  .resource-download-visual {
    height: 160px;
  }
  .resource-download-visual img {
    max-height: 150px;
  }
  .resource-panel {
    padding: 22px;
  }
  .resource-tool-row {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
  }
  .resource-tool-row b {
    display: none;
  }
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .app-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-box {
    min-width: 0;
  }
  .game-card {
    min-height: 210px;
  }
  .hardware-feature-copy {
    padding: 30px 22px;
  }
  .hardware-feature-copy h3 {
    font-size: 2.15rem;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .travel-card {
    min-height: 290px;
  }
  .project-gallery img {
    height: 220px;
  }
  .timeline-controls {
    margin-top: 15px;
  }
  .timeline-track {
    padding-left: 22px;
    padding-right: 65px;
  }
  .timeline-track::before {
    left: 22px;
  }
  .timeline-item {
    width: 220px;
    min-width: 220px;
  }
  .timeline-card {
    width: 200px;
  }
  .site-build {
    bottom: 14px;
  }
  .footer {
    padding-bottom: 32px;
  }
  .footer-top {
    align-items: center;
  }
  .playlist-row {
    grid-template-columns: 24px 1fr;
  }
  .playlist-row input:nth-of-type(2) {
    grid-column: 2;
  }
  .playlist-row-actions {
    grid-column: 2;
    justify-content: flex-end;
  }
  .game-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  .game-dialog-head {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
  }
  .game-dialog-head > div:first-child {
    display: grid;
    gap: 1px;
  }
  .game-dialog-head button {
    font-size: 0;
    padding: 8px;
  }
  .game-dialog-head button::first-letter {
    font-size: 0.8rem;
  }
  .game-stage {
    height: calc(100% - 95px);
  }
  .game-dialog-note {
    height: 33px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label.wide {
    grid-column: auto;
  }
  .admin-panel {
    padding: 18px;
  }
  .section-order-item {
    grid-template-columns: 30px 1fr;
  }
  .visibility-toggle {
    grid-column: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   CONNEXION ADMIN — STYLE FINAL CIBLÉ
   Structure réelle :
   #adminLoginDialog
     form.admin-login-form
       .modal-body
         p.modal-intro
         label > input
         label > input
         p.login-error
   ============================================================ */

#adminLoginDialog .admin-login-form .modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
}

#adminLoginDialog .admin-login-form .modal-intro {
  grid-column: 1 / -1;
  margin: 0 0 20px;
}

#adminLoginDialog .admin-login-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
  margin: 0;
  color: #dbe8f6;
  font-size: 0.82rem;
  font-weight: 750;
}

#adminLoginDialog .admin-login-form label input {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 9px 12px;
  color: #edf6ff !important;
  -webkit-text-fill-color: #edf6ff !important;
  caret-color: #61e8ff;
  background: #0a192b !important;
  border: 1px solid rgba(126, 174, 218, 0.3);
  border-radius: 11px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#adminLoginDialog .admin-login-form label input:hover {
  border-color: rgba(126, 194, 246, 0.44);
  background: #0b1d33 !important;
}

#adminLoginDialog .admin-login-form label input:focus {
  border-color: rgba(74, 168, 255, 0.78);
  background: #0b1d33 !important;
  box-shadow:
    0 0 0 3px rgba(74, 168, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#adminLoginDialog .admin-login-form input:-webkit-autofill,
#adminLoginDialog .admin-login-form input:-webkit-autofill:hover,
#adminLoginDialog .admin-login-form input:-webkit-autofill:focus,
#adminLoginDialog .admin-login-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #edf6ff !important;
  caret-color: #61e8ff !important;
  -webkit-box-shadow: 0 0 0 1000px #0a192b inset !important;
  box-shadow: 0 0 0 1000px #0a192b inset !important;
  border-color: rgba(74, 168, 255, 0.55) !important;
}

#adminLoginDialog .admin-login-form .login-error {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 10px 0 0;
  color: #ff9bad;
  font-size: 0.72rem;
}

#adminLoginDialog .modal-actions {
  align-items: center;
}

/* La modale profite un peu mieux de l'espace disponible sans devenir énorme. */
#adminLoginDialog {
  width: min(760px, calc(100% - 34px));
}

@media (max-width: 680px) {
  #adminLoginDialog .admin-login-form .modal-body {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  #adminLoginDialog .admin-login-form .modal-intro,
  #adminLoginDialog .admin-login-form .login-error {
    grid-column: auto;
  }

  #adminLoginDialog .admin-login-form .modal-intro {
    margin-bottom: 2px;
  }
}

/* ============================================================
   MINI-PLAYER — CHAÎNE YOUTUBE INDISPONIBLE
   app.js ajoute/enlève automatiquement la classe .is-unavailable.
   ============================================================ */

.radio-player.is-unavailable {
  border-color: rgba(255, 86, 112, 0.42);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 86, 112, 0.08);
}

.radio-player.is-unavailable .radio-thumb {
  filter: grayscale(0.72) brightness(0.28);
  opacity: 0.72;
}

.radio-player.is-unavailable::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 91, 116, 0.88);
  border-radius: 50%;
  background:
    linear-gradient(
        45deg,
        transparent 43%,
        #ff667d 43%,
        #ff667d 57%,
        transparent 57%
      )
      center / 24px 24px no-repeat,
    linear-gradient(
        -45deg,
        transparent 43%,
        #ff667d 43%,
        #ff667d 57%,
        transparent 57%
      )
      center / 24px 24px no-repeat,
    rgba(45, 8, 17, 0.82);
  box-shadow: 0 0 24px rgba(255, 74, 104, 0.24);
  pointer-events: none;
}

.radio-player.is-unavailable::after {
  content: "Chaîne non dispo";
  position: absolute;
  z-index: 5;
  top: 84px;
  left: 18px;
  right: 18px;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(45, 8, 17, 0.86);
  color: #ff8b9d;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.radio-player.is-unavailable .radio-play {
  border-color: rgba(255, 86, 112, 0.28);
  background: rgba(255, 86, 112, 0.08);
  color: #ff8b9d;
}

/* ============================================================
   MOBILE FINAL — navigation verticale + affichage progressif
   Desktop inchangé. Les longues sections sont condensées sur
   smartphone et développables à la demande.
   ============================================================ */
.mobile-more-row,
.mobile-games-note {
  display: none;
}
.mobile-collapsed {
  display: none !important;
}

@media (max-width: 680px) {
  .section-shell {
    width: min(100% - 24px, 1180px);
  }
  .content-section {
    padding: 48px 0 54px;
  }
  .section-heading {
    margin-bottom: 22px;
  }
  .section-heading > p {
    margin-top: 9px;
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .section-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  /* HERO : plus court, sans jeu rapide non adapté au tactile */
  .portal-hero {
    padding-top: 90px;
    padding-bottom: 42px;
    gap: 12px;
  }
  .hero-identity {
    min-height: 390px;
    padding: 28px 20px;
  }
  .hero-identity h1 {
    margin-top: 24px;
  }
  .hero-shortcuts {
    margin-top: 25px;
  }
  .live-game {
    display: none !important;
  }
  .hero-live {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 10px;
  }
  .live-card {
    padding: 19px;
    min-height: 0;
  }
  .live-news {
    min-height: 150px;
  }
  .live-setup {
    min-height: 290px;
  }
  .live-setup-visual {
    min-height: 156px;
    margin: 2px 0 7px;
  }
  .live-setup-visual img {
    width: min(96%, 225px);
    height: 156px;
  }
  .setup-line strong {
    font-size: 1.42rem;
  }
  .setup-details {
    margin-top: 9px;
    gap: 5px;
  }
  .live-setup a {
    padding-top: 12px;
  }
  .live-lab {
    min-height: 135px;
    padding: 18px 20px;
  }
  .live-lab strong {
    font-size: 1.5rem;
    margin-top: 14px;
  }
  .live-lab small {
    margin-top: 4px;
    max-width: none;
  }
  .live-lab b {
    padding-top: 8px;
    margin-top: auto;
  }

  /* Boutons Voir plus / Réduire */
  .mobile-more-row {
    display: flex;
    justify-content: center;
    margin-top: 17px;
  }
  .mobile-more-btn {
    min-width: 190px;
    padding: 9px 14px;
    font-size: 0.72rem;
  }
  .resource-mobile-more {
    margin-top: 13px;
  }

  /* Actualités */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .news-card {
    min-height: 255px;
  }
  .news-card-image {
    height: 112px;
  }
  .news-card-copy {
    padding: 14px;
  }
  .section-foot {
    margin-top: 17px;
  }

  /* Créations : deux vraies cartes verticales, plus compactes */
  .creation-card {
    grid-template-rows: 160px auto;
  }
  .creation-copy {
    padding: 20px;
  }

  /* Veille : carte radar compacte + 2 rubriques/2 articles au départ */
  .tech-layout {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .tech-main {
    min-height: 245px;
    padding: 23px;
  }
  .tech-radar {
    transform: scale(0.76);
    transform-origin: center top;
  }
  .tech-main h3 {
    font-size: 1.8rem;
  }
  .tech-main p {
    font-size: 0.79rem;
    line-height: 1.45;
  }
  .tech-feed {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .tech-feed-card {
    min-height: 0;
    padding: 16px;
  }
  .tech-feed-list li a {
    padding: 9px 0;
  }

  /* IA : aperçu + 3 modèles, le reste à la demande */
  .ai-overview {
    grid-template-columns: 1fr !important;
    min-height: 0;
    padding: 15px 17px;
    gap: 9px;
  }
  .ai-overview-orbit {
    display: none !important;
  }
  .ai-overview-copy h3 {
    font-size: 1.25rem;
  }
  .ai-overview-copy p {
    font-size: 0.72rem;
    line-height: 1.42;
  }
  .ai-overview-status {
    grid-column: auto !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 0 0 !important;
    display: flex !important;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
  }
  .ai-overview-status span,
  .ai-overview-status time {
    font-size: 0.61rem;
    white-space: normal;
  }
  .ai-model-grid {
    grid-template-columns: 1fr !important;
    gap: 11px;
  }
  .ai-model-card {
    grid-column: auto !important;
    min-height: 0;
  }

  /* Jeux : information seulement sur smartphone */
  #gamesPreview {
    display: none !important;
  }
  .mobile-games-note {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 22px;
    padding: 19px;
    background:
      radial-gradient(
        circle at 88% 12%,
        rgba(255, 209, 102, 0.11),
        transparent 42%
      ),
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.018)
      );
  }
  .mobile-games-icons {
    display: flex;
    justify-content: center;
    gap: 9px;
  }
  .mobile-games-icons img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
  }
  .mobile-games-note strong {
    display: block;
    text-align: center;
    font-size: 1.08rem;
    color: #f6dc91;
  }
  .mobile-games-note p {
    margin: 7px auto 0;
    max-width: 430px;
    text-align: center;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.5;
  }

  /* Applications : 6 cartes visibles en 2 x 3 */
  .app-toolbar {
    padding: 9px;
    margin-bottom: 13px;
    gap: 9px;
  }
  .filter-buttons {
    gap: 4px;
  }
  .filter {
    padding: 7px 9px;
    font-size: 0.68rem;
  }
  .search-box {
    padding: 7px 10px;
  }
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch;
    gap: 9px;
  }
  .app-card {
    min-height: 118px;
    padding: 11px 8px;
  }
  .app-card img {
    width: 44px;
    height: 44px;
  }

  /* Matériel : PC principal plus visuel, fiche condensée */
  .hardware-feature {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }
  .hardware-feature-image {
    min-height: 225px;
  }
  .hardware-feature-image img {
    width: min(88%, 285px);
    max-height: 215px;
  }
  .hardware-feature-copy {
    padding: 22px 18px 24px;
  }
  .hardware-feature-copy h3 {
    font-size: 2rem;
  }
  .hardware-change {
    margin-bottom: 14px;
  }
  .spec-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px 13px;
    margin-bottom: 18px;
  }
  .spec-grid div:nth-child(n + 5) {
    display: none;
  }
  .spec-grid dt {
    font-size: 0.56rem;
  }
  .spec-grid dd {
    font-size: 0.72rem;
  }
  .hardware-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }
  .hardware-card {
    min-height: 205px;
    padding: 12px;
  }
  .hardware-card img {
    height: 104px;
    margin-bottom: 7px;
  }
  .hardware-card h3 {
    font-size: 0.86rem;
    padding-right: 28px;
  }
  .hardware-card p {
    font-size: 0.64rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Windows & Office : aucune coupe, cartes compactes mais complètes */
  .resource-split {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .resource-panel {
    min-width: 0;
    padding: 18px;
    overflow: hidden;
  }
  .resource-panel-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 15px;
  }
  .resource-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .resource-panel h3 {
    font-size: 1.3rem;
  }
  .resource-panel-head p {
    font-size: 0.73rem;
  }
  .resource-download-grid {
    grid-template-columns: 1fr !important;
    gap: 9px;
    min-width: 0;
  }
  .resource-download-card {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    min-height: 148px;
    padding: 11px;
    gap: 9px;
    min-width: 0;
  }
  .resource-download-visual {
    height: 116px;
    padding: 2px;
  }
  .resource-download-visual img {
    max-height: 110px;
    max-width: 100%;
  }
  .resource-download-copy {
    min-width: 0;
  }
  .resource-download-copy h4 {
    font-size: 0.94rem;
    margin: 5px 0 6px;
    overflow-wrap: anywhere;
  }
  .resource-download-copy p {
    font-size: 0.63rem;
    line-height: 1.35;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
  }
  .resource-download-copy a {
    padding: 7px 9px;
    font-size: 0.63rem;
    white-space: normal;
  }
  .resource-tool-row {
    grid-template-columns: 30px minmax(0, 1fr) 16px !important;
    gap: 8px;
    padding: 8px 0 !important;
  }
  .resource-tool-row img {
    width: 30px;
    height: 30px;
  }
  .resource-tool-row span {
    font-size: 0.72rem;
  }
  .resource-tool-row b {
    display: none !important;
  }

  /* Fonds : 4 aperçus en grille 2x2 */
  .wallpaper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }
  .wallpaper-card {
    min-height: 120px;
    border-radius: 16px;
  }
  .wallpaper-card img {
    min-height: 120px;
  }
  .wallpaper-card button {
    right: 7px;
    bottom: 7px;
    padding: 5px 7px;
    font-size: 0.58rem;
  }

  /* Voyages : 2 albums avant développement */
  .travel-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .travel-card {
    min-height: 225px;
  }
  .travel-card > div {
    padding: 18px;
  }
  .travel-card h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  /* Timeline reste volontairement horizontale */
  .timeline-item {
    width: 220px;
    min-width: 220px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 12px;
  }
  .footer-brand {
    min-width: 0;
  }
  .footer-mail {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: center;
    font-size: 0.74rem;
  }
  .admin-link {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Créations — accès directs aux sites publiés depuis le LAB */
.creation-direct {
  width: 100%;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.creation-direct[hidden] {
  display: none !important;
}
.creation-direct > small {
  display: block;
  margin-bottom: 9px;
  color: #6f8ca8;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.creation-direct-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.creation-direct-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.creation-direct-link:hover {
  transform: translateY(-2px);
  border-color: rgba(86, 190, 255, 0.28);
  background: rgba(61, 155, 235, 0.09);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.17);
}
.creation-direct-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}
.creation-direct-icon img {
  display: block;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}
.creation-direct-icon b {
  font-size: 0.82rem;
  color: #b7ddfa;
  font-weight: 850;
}
@media (max-width: 680px) {
  .creation-direct {
    margin-top: 15px;
    padding-top: 13px;
  }
  .creation-direct-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

/* Créations : titre + bouton sur la même ligne (carte Sites Web uniquement) */
.creation-copy-web .creation-title-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 10px;
}
.creation-copy-web .creation-title-action h3 {
  margin: 0;
}
.creation-copy-web .creation-title-action .btn {
  flex: 0 0 auto;
  margin: 0;
}
.creation-copy-web > p {
  margin-bottom: 0;
}

/* Mobile : on repasse naturellement en pile */
@media (max-width: 560px) {
  .creation-copy-web .creation-title-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* Kiosque Presse — ajout isole V1.7 */
.presse-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.presse-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid rgba(110, 171, 235, 0.2);
  background: linear-gradient(
    160deg,
    rgba(27, 48, 77, 0.9),
    rgba(8, 18, 33, 0.92)
  );
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}
.presse-card:hover,
.presse-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(116, 197, 255, 0.58);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
  outline: none;
}
.presse-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4.15;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(91, 143, 212, 0.2),
    rgba(7, 16, 30, 0.7)
  );
  padding: 10px;
  overflow: hidden;
}
.presse-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 13px rgba(0, 0, 0, 0.38));
}
.presse-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  padding: 11px 12px 12px;
}
.presse-caption strong {
  font-size: 0.8rem;
  font-weight: 790;
  line-height: 1.28;
  color: #f4f8ff;
}
.presse-caption small {
  font-size: 0.66rem;
  line-height: 1.35;
  color: #a5b9d3;
  min-height: 2.6em;
}
.presse-open {
  font-size: 0.66rem;
  color: #9ddcff;
  font-weight: 770;
  margin-top: auto;
  padding-top: 5px;
}
.presse-loading {
  grid-column: 1/-1;
  margin: 0;
  border: 1px dashed rgba(106, 186, 255, 0.25);
  border-radius: 15px;
  text-align: center;
  color: var(--muted);
  padding: 38px 12px;
}
.presse-foot {
  align-items: center;
}
@media (max-width: 1100px) {
  .presse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .presse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .presse-cover {
    padding: 9px;
  }
  .presse-caption {
    padding: 10px;
  }
  .presse-caption strong {
    font-size: 0.76rem;
  }
}
@media (max-width: 370px) {
  .presse-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .presse-caption small {
    font-size: 0.6rem;
  }
}

/* Voyages V8 : photo tracée en canvas et découpe à alpha nul.
   Le fond du portail est réellement visible sous les lettres. */
.travel-card--hollow {
  background: transparent;
}
.travel-card--hollow::before,
.travel-card--hollow::after {
  content: none;
}
.travel-card--hollow .travel-hollow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
}
.travel-card--hollow > .travel-hollow-footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 19px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(
    to bottom,
    rgba(5, 11, 19, 0),
    rgba(5, 11, 19, 0.45)
  );
}
.travel-card--hollow .travel-hollow-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.travel-card--hollow .travel-hollow-meta {
  color: #9bdcff;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.travel-card--hollow .travel-hollow-open {
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f8ff;
  white-space: nowrap;
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
}
.travel-card--hollow .travel-hollow-open:hover {
  color: #b4e8ff;
}
.travel-card--hollow .travel-hollow-open:focus-visible {
  outline: 2px solid #9bdcff;
  outline-offset: 5px;
  border-radius: 4px;
}
@media (max-width: 560px) {
  .travel-card--hollow > .travel-hollow-footer {
    padding: 13px 15px 14px;
    gap: 8px;
  }
  .travel-card--hollow .travel-hollow-meta {
    font-size: 0.64rem;
  }
  .travel-card--hollow .travel-hollow-open {
    font-size: 0.7rem;
  }
}

/* ============================================================
   PORTAIL V1.7 — NAVIGATION SYNCHRONISÉE + LECTURE COMPACTE
   ============================================================ */

/* La barre garde le thème d’origine et exploite mieux les grands écrans. */
.topbar {
  width: min(1320px, calc(100% - 32px));
  gap: 15px;
}
.nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}
.nav-primary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.nav-primary a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 8px;
}
.nav-primary a:focus-visible,
.nav-overflow a:focus-visible,
.nav-more-toggle:focus-visible {
  outline: 2px solid #73cdff;
  outline-offset: 2px;
}
.nav .nav-lab {
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}
.nav-more-wrap {
  position: relative;
  flex: 0 0 auto;
}
.nav-more-wrap[hidden],
.nav-overflow[hidden] {
  display: none !important;
}
.nav-more-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #b9dfff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(90, 182, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(
    130deg,
    rgba(74, 168, 255, 0.15),
    rgba(136, 119, 255, 0.12)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.nav-more-toggle:hover,
.nav-more-toggle[aria-expanded="true"] {
  background: linear-gradient(
    130deg,
    rgba(74, 168, 255, 0.25),
    rgba(136, 119, 255, 0.2)
  );
  border-color: rgba(110, 196, 255, 0.52);
  box-shadow: 0 6px 20px rgba(29, 96, 179, 0.18);
}
.nav-more-toggle span {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s;
}
.nav-more-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}
.nav-overflow {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  z-index: 100;
  width: max-content;
  min-width: 200px;
  max-width: min(440px, calc(100vw - 36px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 9px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  background: linear-gradient(
    145deg,
    rgba(21, 42, 70, 0.98),
    rgba(8, 19, 36, 0.98)
  );
  border: 1px solid rgba(111, 185, 247, 0.28);
  border-radius: 17px;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(119, 118, 255, 0.04);
  backdrop-filter: blur(20px);
}
.nav-overflow a {
  display: block;
  padding: 10px 13px !important;
  white-space: nowrap;
  border-radius: 10px;
  color: #c9daeb;
}
.nav-overflow a:hover {
  background: linear-gradient(
    110deg,
    rgba(77, 170, 255, 0.15),
    rgba(136, 119, 255, 0.11)
  );
  color: #fff;
}

/* Cartes IA : un rang de tags et des cartes sensiblement moins hautes. */
.ai-model-card {
  min-height: 218px;
  padding: 15px 19px 12px;
}
.ai-model-card > p {
  margin: 9px 0 7px;
  font-size: 0.76rem;
  line-height: 1.42;
}
.ai-model-actions {
  padding-top: 8px;
  gap: 10px;
}
.ai-model-actions a {
  font-size: 0.67rem;
}
.ai-strengths {
  flex-wrap: nowrap;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.ai-strengths span {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  font-size: 0.58rem;
}

/* Bouton discret bleu nuit, entre deux filets bleus. */
.section-expand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  width: 100%;
}
.section-expand-row[hidden] {
  display: none !important;
}
.section-expand-row::before,
.section-expand-row::after {
  content: "";
  display: block;
  height: 1px;
  min-width: 0;
  background: linear-gradient(90deg, transparent, rgba(103, 177, 232, 0.28));
}
.section-expand-row::after {
  background: linear-gradient(90deg, rgba(103, 177, 232, 0.28), transparent);
}
.section-expand-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: auto;
  max-width: 100%;
  min-height: 39px;
  padding: 8px 17px;
  border: 1px solid rgba(105, 182, 241, 0.33);
  border-radius: 999px;
  background: linear-gradient(
    140deg,
    rgba(23, 43, 67, 0.91),
    rgba(12, 26, 46, 0.96)
  );
  box-shadow:
    inset 0 1px 0 rgba(245, 252, 255, 0.055),
    0 5px 16px rgba(0, 0, 0, 0.17);
  color: #cde7fc;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-shadow: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}
.section-expand-button::before {
  content: none;
}
.section-expand-button:hover {
  transform: translateY(-2px);
  border-color: rgba(116, 204, 255, 0.69);
  background: linear-gradient(
    140deg,
    rgba(29, 57, 90, 0.97),
    rgba(16, 33, 59, 0.97)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 22px rgba(0, 0, 0, 0.2),
    0 0 16px rgba(81, 174, 254, 0.11);
  color: #f4fbff;
}
.section-expand-button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.19);
}
.section-expand-button:focus-visible {
  outline: 2px solid #89dcff;
  outline-offset: 3px;
}
.section-expand-symbol {
  display: none !important;
}
.section-expand-label {
  flex: 0 1 auto;
  text-align: center;
  min-width: 0;
}
.section-expand-chevron {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 0 3px 1px;
  width: 8px;
  height: 8px;
  border: solid #80caff;
  border-width: 0 2px 2px 0;
  font-size: 0;
  line-height: 0;
  transform: rotate(45deg);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
.section-expand-button:hover .section-expand-chevron {
  border-color: #c2edff;
}
.section-expand-button[aria-expanded="true"] .section-expand-chevron {
  transform: translateY(4px) rotate(225deg);
}
.section-expand-button[aria-expanded="true"] {
  border-color: rgba(125, 192, 247, 0.45);
  background: linear-gradient(
    145deg,
    rgba(27, 51, 78, 0.91),
    rgba(14, 28, 49, 0.96)
  );
}

/* Trois rangées complètes : 12 fonds sur grand écran (4 colonnes). */
#gamesPreview:not(.is-expanded) > .game-card:nth-child(n + 11) {
  display: none !important;
}
#hardwareGrid:not(.is-expanded) {
  display: none !important;
}
#wallpaperGrid:not(.is-expanded) > .wallpaper-card:nth-child(n + 13) {
  display: none !important;
}
#gamesPreview.is-expanded > .game-card:nth-child(n + 11),
#wallpaperGrid.is-expanded > .wallpaper-card:nth-child(n + 13) {
  animation: portalExpandedIn 0.28s ease-out both;
}
@keyframes portalExpandedIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  /* Navigation intégrale, adaptée aux petites résolutions. */
  .nav {
    position: absolute;
    top: 85px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 11px;
    background: rgba(8, 18, 33, 0.97);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .nav.open {
    display: flex;
  }
  .nav-primary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    flex: none;
    width: 100%;
    overflow: visible;
  }
  .nav-primary a {
    width: 100%;
    padding: 11px 13px;
  }
  .nav-more-wrap {
    display: none !important;
  }
  .nav .nav-lab {
    width: 100%;
    margin: 8px 0 0;
    padding: 11px 13px;
  }
  #gamesPreview:not(.is-expanded) > .game-card:nth-child(n + 7) {
    display: none !important;
  }
  #wallpaperGrid:not(.is-expanded) > .wallpaper-card:nth-child(n + 10) {
    display: none !important;
  }
}
@media (max-width: 820px) {
  #gamesPreview:not(.is-expanded) > .game-card:nth-child(n + 5) {
    display: none !important;
  }
  #wallpaperGrid:not(.is-expanded) > .wallpaper-card:nth-child(n + 7) {
    display: none !important;
  }
}
@media (max-width: 680px) {
  .nav {
    top: 78px;
    max-height: calc(100dvh - 98px);
  }
  .section-expand-row {
    margin-top: 16px;
  }
  .section-expand-row {
    margin-top: 15px;
    gap: 9px;
  }
  .section-expand-button {
    min-height: 38px;
    padding: 8px 13px;
    gap: 9px;
    font-size: 0.73rem;
  }
  .section-expand-chevron {
    width: 7px;
    height: 7px;
  }
  #gamesExpandRow {
    display: none !important;
  } /* Mobile : affiche uniquement l’avertissement sur les jeux. */
  #wallpaperGrid:not(.is-expanded) > .wallpaper-card:nth-child(n + 5) {
    display: none !important;
  }
  .ai-strengths {
    gap: 4px;
  }
  .ai-strengths span {
    font-size: 0.58rem;
    padding: 4px 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #gamesPreview.is-expanded > .game-card:nth-child(n + 11),
  #wallpaperGrid.is-expanded > .wallpaper-card:nth-child(n + 13) {
    animation: none;
  }
}
