/* =========================================================
   MLife — DA inspirée du launcher (noir profond, blanc, néon rose/violet)
   ========================================================= */
:root {
  --bg: #0b0c0e;
  --panel: #121316;
  --panel-2: #18191d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f4f6;
  --muted: #8b8d94;
  --pink: #ff2fb0;
  --violet: #8a2bff;
  --blue: #2f45ff;
  --sun: #ff8a2a;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 40%, var(--pink) 100%);
  --radius: 4px;
  --topbar-h: 72px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }
body {
  font-family: "Barlow", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: -.01em; line-height: 1.02; }

/* ---------- Boutons ---------- */
.btn-play {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #0b0c0e;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .85rem 2.6rem; border-radius: var(--radius);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
}
.btn-play::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.btn-play:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 40px -10px rgba(255, 47, 176, .6); }
.btn-play:hover::before { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .55rem 1rem; font-weight: 600; font-size: .95rem;
  transition: background .25s, border-color .25s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(11, 12, 14, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.topbar.scrolled { background: rgba(11, 12, 14, .92); border-color: var(--line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1rem; }

.brand { display: flex; align-items: center; height: 100%; padding: 4px 0; }
.brand-logo { height: 48px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(255, 47, 176, .35)); transition: transform .3s var(--ease), filter .3s; }
.brand:hover .brand-logo { transform: scale(1.05) rotate(-2deg); filter: drop-shadow(0 2px 16px rgba(255, 47, 176, .6)); }

.tabs { display: flex; gap: .5rem; height: 100%; }
.tab {
  position: relative; display: flex; align-items: center; gap: .5rem; padding: 0 1.1rem;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--muted);
  transition: color .2s;
}
.tab svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.tab::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 3px; background: #fff;
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.tab:hover, .tab.active { color: #fff; }
.tab.active::after { transform: scaleX(1); }

/* Navigation principale dans la barre du haut */
.top-nav { position: relative; flex: 1; display: flex; justify-content: center; align-items: center; gap: .25rem; min-width: 0; }
.top-link {
  position: relative; display: flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .9rem; flex-shrink: 0;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.12rem; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .03em; color: var(--muted);
  transition: color .2s;
}
.top-link svg { width: 17px; height: 17px; transition: color .2s; }
.top-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 4px; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.top-link:hover, .top-link[aria-current="page"] { color: #fff; }
.top-link:hover svg, .top-link[aria-current="page"] svg { color: var(--pink); }
.top-link:hover::after, .top-link[aria-current="page"]::after { transform: scaleX(1); }

/* Écrans moyens : on retire les icônes pour gagner de la place */
@media (max-width: 1180px) {
  .top-link svg { display: none; }
  .top-link { padding: 0 .65rem; font-size: 1.05rem; }
  .top-link::after { left: .65rem; right: .65rem; }
}
/* Tablettes / mobiles : la navigation passe sur une 2e ligne défilante */
@media (max-width: 900px) {
  :root { --topbar-h: 118px; }
  .topbar { height: 72px; }
  .top-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: 46px; justify-content: flex-start;
    padding: 0 .75rem; overflow-x: auto; scrollbar-width: none;
    background: rgba(11, 12, 14, .92); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-link { height: 46px; font-size: 1rem; }
  .top-link::after { bottom: 0; }
}

/* Dropdown connexion */
.dropdown { position: relative; }
.dropdown[hidden] { display: none !important; }
.account-label { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.dropdown.open .chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: .4rem;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu button, #accountDropdown .dropdown-menu a {
  width: 100%; display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem;
  border-radius: 4px; font-weight: 500; text-align: left; transition: background .15s;
}
.dropdown-menu button svg, #accountDropdown .dropdown-menu a svg { width: 18px; height: 18px; color: var(--muted); transition: color .15s; }
.dropdown-menu button:hover, #accountDropdown .dropdown-menu a:hover { background: rgba(255, 255, 255, .06); }
.dropdown-menu button:hover svg, #accountDropdown .dropdown-menu a:hover svg { color: var(--pink); }

.btn-account { display: flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .35rem; border-radius: var(--radius); border: 1px solid var(--line-2); font-weight: 600; transition: border-color .2s, background .2s; }
.btn-account:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: end center;
  background: linear-gradient(145deg, #ff6fd0 0%, var(--pink) 55%, #c4129a 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 14px rgba(255, 47, 176, .55);
  transition: box-shadow .25s;
}
.avatar svg { width: 26px; height: 26px; fill: rgba(255, 255, 255, .92); stroke: none; margin-bottom: -2px; }
.btn-account:hover .avatar { box-shadow: 0 0 0 2px #fff, 0 0 20px rgba(255, 47, 176, .85); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--topbar-h) + 2rem) clamp(1.25rem, 6vw, 6rem) 5rem; }
.hero-bg {
  position: absolute; inset: 0;
  /* Mettez votre image de fond dans assets/hero.jpg — le dégradé sert de secours */
  background:
    url("assets/hero.jpg") center/cover no-repeat,
    radial-gradient(ellipse 60% 45% at 78% 62%, rgba(255, 170, 60, .55), transparent 70%),
    linear-gradient(180deg, #1a1440 0%, #5a2a7a 30%, #d2457a 55%, #ff8a3d 72%, #2a1530 88%, #0b0c0e 100%);
  transform: scale(1.08); animation: heroZoom 26s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-sun { position: absolute; width: 120px; height: 120px; right: 22%; top: 52%; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, #ffb648 45%, rgba(255, 138, 42, 0) 72%); filter: blur(2px); opacity: .85; mix-blend-mode: screen; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 14, .85) 0%, rgba(11, 12, 14, .35) 55%, rgba(11, 12, 14, .1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-logo {
  width: min(600px, 90vw); aspect-ratio: 1680 / 980; height: auto; display: block; margin-left: -2%;
  filter: drop-shadow(0 18px 50px rgba(255, 47, 176, .35));
  animation: rise 1s var(--ease) both, float 6s 1s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-logo-wrap {
  width: min(600px, 90vw); cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.hero-logo-wrap.hover { transition: transform .12s linear, filter .5s var(--ease); --s: 1.05; filter: drop-shadow(0 0 40px rgba(255, 47, 176, .45)) drop-shadow(0 0 80px rgba(47, 69, 255, .3)); }
.hero-logo-wrap .hero-logo { width: 100%; }
.hero-kicker { margin-top: .5rem; font-size: clamp(.8rem, 1.6vw, 1.05rem); font-weight: 500; letter-spacing: .5em; text-transform: uppercase; animation: rise 1s .15s var(--ease) both; }
.hero-title { margin-top: 2.2rem; font-size: clamp(2.8rem, 7vw, 5.4rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .5); animation: rise 1s .3s var(--ease) both; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; animation: rise 1s .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-hint { position: absolute; left: 50%; bottom: 2rem; z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 6vw, 6rem); max-width: 1440px; margin: 0 auto; }
.section-gallery { padding-top: 3rem; position: relative; z-index: 3; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.eyebrow { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--pink); font-weight: 600; margin-bottom: .9rem; }
.section-head h2, .join h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.lead { margin-top: 1rem; color: var(--muted); font-size: 1.12rem; }

.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise .9s var(--ease) backwards; }

/* ---------- Visionneuse ---------- */
.viewer {
  position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%;
  border-radius: 6px; overflow: hidden; background: #000; border: 1px solid var(--line);
  outline: none; box-shadow: 0 40px 100px -40px rgba(138, 43, 255, .45);
}
.viewer:focus-visible { border-color: var(--pink); }
.viewer-stage { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.4s ease-in-out, visibility 0s linear 1.4s;
}
.slide.active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.4s ease-in-out, visibility 0s; }
.slide img, .slide .ph {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ph { display: grid; place-items: center; }
.ph span { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); text-align: center; }
.ph span small { display: block; margin-top: .4rem; letter-spacing: .05em; font-size: .75em; font-weight: 500; text-transform: none; color: rgba(255, 255, 255, .5); }

.viewer::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, transparent 18%); }
@keyframes capIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.viewer-arrow, .viewer-play {
  position: absolute; z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 12, 14, .5); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); transition: background .25s, transform .25s var(--ease), opacity .25s;
}
.viewer-arrow { top: 50%; transform: translateY(-50%); opacity: 0; }
.viewer:hover .viewer-arrow, .viewer:focus-within .viewer-arrow { opacity: 1; }
.viewer-arrow.prev { left: 1.2rem; }
.viewer-arrow.next { right: 1.2rem; }
.viewer-arrow:hover { background: #fff; color: #000; transform: translateY(-50%) scale(1.06); }
.viewer-play { right: clamp(1rem, 3vw, 2.2rem); bottom: clamp(1.2rem, 3vw, 2.2rem); width: 44px; height: 44px; }
.viewer-play svg { width: 16px; height: 16px; }
.viewer-play .i-play { display: none; }
.viewer-play.paused .i-play { display: block; fill: currentColor; }
.viewer-play.paused .i-pause { display: none; }
.viewer-play:hover { background: #fff; color: #000; }
.viewer-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, .1); }
.viewer-progress span { display: block; height: 100%; width: 0; background: var(--grad); }

.thumbs { display: grid; grid-template-columns: repeat(10, 1fr); gap: .6rem; margin-top: 1rem; }
.thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden;
  opacity: .4; filter: grayscale(.6); border: 1px solid var(--line);
  transition: opacity .35s, filter .35s, transform .35s var(--ease), border-color .35s;
}
.thumb img, .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph span { font-size: .8rem; letter-spacing: .1em; }
.thumb:hover { opacity: .8; filter: none; }
.thumb.active { opacity: 1; filter: none; border-color: #fff; transform: translateY(-3px); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.feature { background: var(--panel); padding: 2.2rem 1.8rem; transition: background .3s; }
.feature:hover { background: var(--panel-2); }
.f-ico { width: 52px; height: 52px; border-radius: 6px; display: grid; place-items: center; background: #0b0c0e; border: 1px solid var(--line); margin-bottom: 1.4rem; transition: background .3s, border-color .3s; }
.f-ico svg { width: 24px; height: 24px; }
.feature:hover .f-ico { background: var(--grad); border-color: transparent; }
.feature h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.feature p { color: var(--muted); }

/* ---------- Nous rejoindre ---------- */
.join { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.steps { list-style: none; margin-top: 2.2rem; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps b { font-family: "Barlow Condensed", sans-serif; font-size: 1.1rem; color: var(--pink); letter-spacing: .1em; }
.steps span { color: var(--muted); font-size: 1.08rem; }
.steps strong { color: var(--text); }
.join-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2.4rem; display: flex; flex-direction: column; gap: .9rem; }
.join-card::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; background: var(--grad); border-radius: 6px 6px 0 0; }
.join-card h3 { font-size: 3.6rem; }
.join-sub { color: var(--muted); font-size: 1.2rem; margin: -.6rem 0 .8rem; }
.join-card .btn-ghost { padding: .85rem 1rem; }
.btn-discord { gap: .6rem; }
.btn-discord svg { width: 22px; height: 22px; fill: currentColor; stroke: none; transition: color .25s; }
.btn-discord:hover { background: #5865f2; border-color: #5865f2; }
/* Menu déroulant "Télécharger le launcher" */
.dl-dropdown { z-index: 5; }
.dl-dropdown .btn-play { gap: .6rem; }
.dl-dropdown .chev { width: 20px; height: 20px; position: relative; }
.dl-dropdown .dropdown-menu { left: 0; right: 0; min-width: 0; top: calc(100% + 8px); transform-origin: top center; }
.dl-dropdown .dropdown-menu a {
  display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; border-radius: 4px; transition: background .15s;
}
.dl-dropdown .dropdown-menu a:hover { background: rgba(255, 255, 255, .06); }
.dl-dropdown .dropdown-menu svg { width: 24px; height: 24px; color: var(--muted); transition: color .15s; }
.dl-dropdown .dropdown-menu svg.ico-brand { width: 32px; height: 32px; stroke: none; transition: transform .2s var(--ease); }
.dl-dropdown .dropdown-menu svg.ico-windows { width: 24px; height: 24px; margin: 0 4px; }
.dl-dropdown .dropdown-menu a:hover svg.ico-brand { transform: scale(1.1); }
.dl-dropdown .dropdown-menu a:hover svg { color: var(--pink); }
.dl-dropdown .dropdown-menu strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; line-height: 1.15; }
.dl-dropdown .dropdown-menu small { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- Boutique ---------- */
.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pack { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2.2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .35s var(--ease), border-color .35s; }
.pack:hover { transform: translateY(-6px); border-color: var(--line-2); }
.pack-hot { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 30px 80px -40px rgba(255, 47, 176, .6); }
.pack-badge { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 3px; background: var(--grad); font-weight: 600; }
.pack-tag { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: .4em; }
.pack-icon { height: 1.9em; width: auto; margin: -.45em 0; image-rendering: pixelated; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.pack-price { font-family: "Barlow Condensed", sans-serif; font-size: 3rem; font-weight: 700; line-height: 1; }
.pack-price small { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: .2rem; }
.pack ul { list-style: none; flex: 1; display: flex; flex-direction: column; gap: .55rem; margin: .4rem 0 1rem; color: var(--muted); }
.pack li::before { content: "★"; color: var(--pink); margin-right: .6rem; font-size: .8em; }
.pack .btn-ghost { padding: .85rem 1rem; }

/* ---------- Page boutique ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--topbar-h) + clamp(3rem, 8vw, 6rem)) clamp(1.25rem, 6vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.page-hero .hero-bg { animation: none; transform: none; }
.page-hero-content { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); animation: rise .9s var(--ease) both; }
.page-hero .lead { max-width: 620px; color: rgba(255, 255, 255, .78); animation: rise .9s .1s var(--ease) both; }
.lead-logo { display: inline-block; height: 1.5em; width: auto; margin-left: .4em; vertical-align: -.35em; filter: drop-shadow(0 0 8px rgba(255, 47, 176, .45)); }.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: 2rem; color: var(--muted); font-weight: 600; transition: color .2s, gap .2s; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { color: #fff; gap: .55rem; }
.section-tight { padding-top: 0; }

/* ---------- Page En savoir plus ---------- */
.page-anchors { display: flex; gap: .6rem; margin-top: 2rem; flex-wrap: wrap; animation: rise .9s .2s var(--ease) both; }
.page-anchors a { padding: .55rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 600; background: rgba(11, 12, 14, .4); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.page-anchors a:hover { background: #fff; color: #0b0c0e; border-color: #fff; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 2rem 1.8rem; transition: border-color .3s; }
.info-card:hover { border-color: var(--line-2); }
.info-card h3 { font-size: 1.7rem; margin-bottom: .7rem; }
.info-card p { color: var(--muted); }
.info-wide { grid-column: 1 / -1; position: relative; overflow: hidden; }
.info-wide::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); }
.info-wide p { font-size: 1.1rem; max-width: 900px; }
.info-list { list-style: none; display: flex; flex-direction: column; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }

.devlog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.chip { padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.chip.active { background: #fff; color: #0b0c0e; border-color: #fff; }

.devlog { position: relative; display: flex; flex-direction: column; gap: 1.2rem; padding-left: 2rem; }
.devlog::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--pink), var(--violet) 50%, var(--line)); }
.log { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem 1.8rem; animation: rise .6s var(--ease) both; transition: border-color .3s; }
.log:hover { border-color: var(--line-2); }
.log::before { content: ""; position: absolute; left: calc(-2rem + 1px); top: 1.9rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--pink); }
.log:first-child::before { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .6rem; }
.log-version { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; }
.log-date { color: var(--muted); font-size: .9rem; }
.log-tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: .25rem .55rem; border-radius: 3px; border: 1px solid currentColor; }
.log-tag.majeure { color: var(--pink); }
.log-tag.mineure { color: #8aa0ff; }
.log-tag.correctif { color: #2ee67a; }
.log-tag.evenement { color: var(--sun); }
.log-new { margin-left: auto; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: .25rem .55rem; border-radius: 3px; background: var(--grad); }
.log h3 { font-size: 1.8rem; margin-bottom: .4rem; }
.log > p { color: var(--muted); margin-bottom: .9rem; }
.log ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.log li { padding-left: 1.3rem; position: relative; }
.log li::before { content: "★"; position: absolute; left: 0; color: var(--pink); font-size: .75em; top: .2em; }
.devlog-empty { color: var(--muted); padding: 1rem 0; }

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
  .devlog { padding-left: 1.5rem; }
  .log { padding: 1.3rem 1.2rem; }
  .log::before { left: calc(-1.5rem + 1px); }
}

/* ---------- Règlement ---------- */
.rules { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rules details { border-bottom: 1px solid var(--line); }
.rules summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem .2rem; font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; transition: color .2s; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary b { color: var(--pink); font-size: 1rem; letter-spacing: .1em; }
.rules summary::after { content: "+"; margin-left: auto; font-size: 1.8rem; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease); }
.rules details[open] summary::after { transform: rotate(45deg); }
.rules summary:hover { color: #fff; }
.rules details p { padding: 0 .2rem 1.5rem calc(.2rem + 2.6rem); color: var(--muted); max-width: 760px; animation: capIn .5s var(--ease); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.footer-logo { height: 70px; width: auto; margin-bottom: .8rem; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer .muted { opacity: .6; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.show { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 2.4rem 2rem 2rem; transform: translateY(20px) scale(.97); transition: transform .4s var(--ease); overflow: hidden; }
.modal-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.modal.show .modal-box { transform: none; }
.modal-box .close-x { position: absolute; top: .9rem; right: .9rem; }
.modal-box h3 { font-size: 2.4rem; margin-bottom: 1.6rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form input { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: normal; color: var(--text); background: #0b0c0e; border: 1px solid var(--line-2); border-radius: var(--radius); padding: .8rem .9rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 47, 176, .18); }
.form .btn-play { margin-top: .6rem; }
.form-alt { text-align: center; color: var(--muted); font-size: .92rem; }
.form-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .tabs { display: none; }
  .join, .shop { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 .75rem; }
  .topbar-right { gap: .5rem; }
  .account-label { display: none; }
  .brand-logo { height: 38px; }
  .btn-ghost.dropdown-toggle { padding: .5rem .7rem; }
  .features { grid-template-columns: 1fr; }
  .viewer { aspect-ratio: 4 / 3; }
  .viewer-arrow { opacity: 1; width: 42px; height: 42px; }
  .viewer-arrow.prev { left: .6rem; } .viewer-arrow.next { right: .6rem; }
  .hero-kicker { letter-spacing: .3em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Page Nous suivre ---------- */
.socials { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; animation: rise .9s .2s var(--ease) both; }
.social-btn { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.4rem .95rem 1.1rem; min-width: 240px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(11, 12, 14, .55); backdrop-filter: blur(8px); transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.social-btn svg { width: 32px; height: 32px; stroke: none; flex-shrink: 0; transition: transform .25s var(--ease); }
.social-btn svg.logo-yt { width: 36px; }
.social-btn:hover svg { transform: scale(1.08); }
.social-btn strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; }
.social-btn small { display: block; color: var(--muted); font-size: .85rem; }
.social-btn:hover { transform: translateY(-3px); }
.social-btn.yt:hover { border-color: #ff0033; box-shadow: 0 12px 40px -12px rgba(255, 0, 51, .6); }
.social-btn.tt:hover { border-color: #fe2c55; box-shadow: 0 12px 40px -12px rgba(37, 244, 238, .45); }
.yt-player { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px -30px rgba(138, 43, 255, .45); }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--muted); background: radial-gradient(ellipse at center, var(--panel-2), var(--panel)); }
.yt-placeholder svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .6; }
.yt-placeholder p { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 560px) { .social-btn { min-width: 0; flex: 1 1 100%; } }

/* ---------- Plan interactif de la map ---------- */
.map-viewer {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 6px; background: #0e0f12;
  cursor: grab; touch-action: none; user-select: none; outline: none;
  box-shadow: 0 30px 80px -30px rgba(47, 69, 255, .35);
}
.map-viewer:focus-visible { border-color: var(--pink); }
.map-viewer.dragging { cursor: grabbing; }
.map-viewer:fullscreen { max-height: none; aspect-ratio: auto; border-radius: 0; }
.map-viewer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); z-index: 3; }
.map-canvas {
  position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform;
  /* quadrillage : une case = 1 000 blocs */
  background-color: #14161b;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 10% 10%;
}
.map-canvas img { display: block; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.map-viewer:not(.has-map) .map-canvas img { display: none; }
.map-viewer.has-map .map-canvas { background-image: none; }
.map-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem;
  color: var(--muted); pointer-events: none; text-align: center; padding: 1rem;
}
.map-empty[hidden] { display: none; }
.map-empty svg { width: 56px; height: 56px; stroke-width: 1.5; opacity: .6; }
.map-empty p { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; }

.map-controls { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: flex; flex-direction: column; gap: .4rem; }
.map-controls button {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius);
  background: rgba(11, 12, 14, .75); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.map-controls button svg { width: 18px; height: 18px; }
.map-controls button:hover { background: #fff; color: #0b0c0e; border-color: #fff; }

.map-coords, .map-scale {
  position: absolute; z-index: 2; background: rgba(11, 12, 14, .75); border: 1px solid var(--line-2);
  border-radius: var(--radius); backdrop-filter: blur(8px); pointer-events: none;
}
.map-coords { left: 1rem; bottom: 1rem; padding: .45rem .8rem; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.map-coords b { color: #fff; font-weight: 600; display: inline-block; min-width: 4.2ch; }
.map-coords span { margin: 0 .3rem; opacity: .5; }
.map-scale { right: 1rem; bottom: 1rem; padding: .45rem .8rem .5rem; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.map-scale span { display: block; height: 6px; border: 2px solid #fff; border-top: 0; transition: width .15s; }
.map-scale em { font-style: normal; font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) {
  .map-viewer { aspect-ratio: 4 / 5; }
  .map-coords { font-size: .8rem; }
}
/* ---------- Page Votez ---------- */
.vote-progress { margin-bottom: 1.4rem; color: var(--muted); font-size: 1.05rem; }
.vote-progress strong { color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; margin-right: .1rem; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.vote-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem 1.4rem 1.4rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.vote-card::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px; border-radius: 6px 6px 0 0; background: var(--line-2); transition: background .35s; }
.vote-card.ready::before { background: var(--grad); }
.vote-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.vote-card.ready:hover { box-shadow: 0 20px 50px -20px rgba(255, 47, 176, .45); }
.vote-card.off { opacity: .6; }
.vote-card.off:hover { transform: none; }
.vote-card-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.vote-num { font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: var(--pink); letter-spacing: .1em; }
.vote-state { font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.vote-state.ok { color: #2ee67a; background: rgba(46, 230, 122, .12); }
.vote-state.wait { color: #ffb648; background: rgba(255, 182, 72, .12); }
.vote-state.soon { color: var(--muted); background: rgba(255, 255, 255, .06); }
.vote-card h3 { font-size: 1.7rem; line-height: 1.1; word-break: break-word; }
.vote-meta { color: var(--muted); font-size: .9rem; flex: 1; }
.vote-card .btn-ghost, .vote-card .btn-play { padding: .8rem 1rem; margin-top: .4rem; }
.vote-card .btn-play { font-size: 1.2rem; }
.vote-card button[disabled] { cursor: not-allowed; opacity: .7; }
.vote-steps { margin-top: 3rem; max-width: 760px; }
/* ---------- Comptes : case « Se souvenir de moi », erreurs, vérif. mot de passe ---------- */
.form label.check { flex-direction: row; align-items: center; gap: .6rem; cursor: pointer; text-transform: none; letter-spacing: normal; font-size: .95rem; color: var(--text); }
.form label.check input { appearance: none; width: 1.15rem; height: 1.15rem; padding: 0; flex: none; border: 1px solid var(--line-2); border-radius: 3px; background: #0b0c0e; display: grid; place-content: center; cursor: pointer; }
.form label.check input::after { content: ""; width: .6rem; height: .35rem; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .15s; }
.form label.check input:checked { background: var(--grad); border-color: transparent; }
.form label.check input:checked::after { opacity: 1; }
.form input.match { border-color: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .18); }
.form input.mismatch, .form input.invalid { border-color: #ff4d4f; box-shadow: 0 0 0 3px rgba(255, 77, 79, .18); }
.pw-match { margin-top: -.5rem; font-size: .88rem; font-weight: 600; }
.pw-match.ok { color: #2ecc71; }
.pw-match.ko { color: #ff4d4f; }
.form-error { padding: .7rem .9rem; border-radius: var(--radius); background: rgba(255, 77, 79, .1); border: 1px solid rgba(255, 77, 79, .35); color: #ff8a8c; font-size: .92rem; }
.form .btn-play:disabled { opacity: .6; cursor: wait; }
/* ---------- Mon espace ---------- */
.profile { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem); }
.profile-head {
  flex: none; width: clamp(88px, 14vw, 128px); aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: linear-gradient(145deg, #ff6fd0 0%, var(--pink) 55%, #c4129a 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 40px rgba(255, 47, 176, .45);
  animation: rise .9s var(--ease) both;
}
.profile-head img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.profile h1 { word-break: break-word; }
.profile .lead { word-break: break-word; }
.space-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.space-grid[hidden], #guestPanel[hidden] { display: none; }
.space-card { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2rem); overflow: hidden; }
.space-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.space-card h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.4rem; }
.space-guest { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.space-guest h2 { margin-bottom: 0; }
.space-guest .muted { color: var(--muted); }
.space-empty { color: var(--muted); }
.space-empty a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tx-wrap { overflow-x: auto; }
.tx-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tx-table th { text-align: left; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 .8rem .7rem 0; border-bottom: 1px solid var(--line-2); }
.tx-table td { padding: .85rem .8rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tx-table td:nth-child(3) { font-weight: 600; white-space: nowrap; }
.tx-status { display: inline-block; padding: .2rem .55rem; border-radius: 3px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.tx-status.ok { color: #2ecc71; background: rgba(46, 204, 113, .12); }
.tx-status.wait { color: #ffb648; background: rgba(255, 182, 72, .12); }
.tx-status.ko { color: #ff4d4f; background: rgba(255, 77, 79, .12); }
.tx-status.muted { color: var(--muted); background: rgba(255, 255, 255, .06); }
.form-ok { padding: .7rem .9rem; border-radius: var(--radius); background: rgba(46, 204, 113, .1); border: 1px solid rgba(46, 204, 113, .35); color: #5fe39a; font-size: .92rem; }
.form-note { color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 900px) {
  .space-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .profile { flex-direction: column; align-items: flex-start; }
  .tx-table thead { display: none; }
  .tx-table tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .tx-table td { padding: 0; border: 0; }
  .tx-table td:nth-child(1) { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
}
/* Tête du skin dans le bouton « Mon compte » */
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; transition: opacity .2s; }
.avatar.has-skin { border-radius: 4px; background: #1d1e22; }
.avatar.has-skin img { opacity: 1; }
.avatar.has-skin svg { visibility: hidden; }
/* Bouton « afficher le mot de passe » */
.pw-field { position: relative; display: flex; }
.pw-field input { flex: 1; min-width: 0; padding-right: 2.9rem; }
.pw-toggle {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border-radius: var(--radius); color: var(--muted); transition: color .15s, background .15s;
}
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pw-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; color: #fff; }
.pw-toggle[aria-pressed="true"] { color: var(--pink); }
/* masque l'œil natif d'Edge pour éviter un doublon */
.pw-field input::-ms-reveal, .pw-field input::-ms-clear { display: none; }
/* Champ en lecture seule « anti-autoremplissage » : même apparence qu'un champ normal */
.form input[data-noautofill][readonly] { cursor: text; }
/* Autoremplissage du navigateur : garder le thème sombre au lieu du fond bleu clair */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0b0c0e inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}
/* ---------- Suppression du compte (code couleur : rouge = action destructive) ---------- */
:root { --danger: #ff4d4f; --danger-dark: #d9363e; --success: #2ecc71; }
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--danger); color: #fff; border: 1px solid var(--danger);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .75rem 1.4rem; border-radius: var(--radius);
  transition: background .2s, box-shadow .25s var(--ease), transform .25s var(--ease), opacity .2s;
}
.btn-danger svg { width: 18px; height: 18px; }
.btn-danger:hover:not(:disabled) { background: var(--danger-dark); transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(255, 77, 79, .7); }
.btn-danger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.btn-danger.loading { cursor: wait; }

.danger-zone {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-color: rgba(255, 77, 79, .45); background: linear-gradient(180deg, rgba(255, 77, 79, .08), rgba(255, 77, 79, .02)), var(--panel);
}
.danger-zone::before { background: var(--danger); }
.danger-zone .eyebrow { color: var(--danger); }
.danger-zone h2 { margin-bottom: .6rem; }
.danger-text { flex: 1 1 380px; }
.danger-text p:last-child { color: var(--muted); max-width: 620px; }
.danger-text strong { color: #ff8a8c; }

.modal-danger .modal-box { border-color: rgba(255, 77, 79, .5); }
.modal-danger .modal-box::before { background: var(--danger); }
.modal-danger .eyebrow { color: var(--danger); }
.modal-danger h3 { margin-bottom: 1rem; }
.danger-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; color: var(--danger); background: rgba(255, 77, 79, .12); box-shadow: 0 0 0 6px rgba(255, 77, 79, .06); }
.danger-icon svg { width: 26px; height: 26px; }
.danger-list { margin-bottom: 1.4rem; padding: .9rem 1rem; border-radius: var(--radius); background: rgba(255, 77, 79, .07); border: 1px solid rgba(255, 77, 79, .25); color: var(--muted); font-size: .95rem; }
.danger-list strong { color: #ff8a8c; }
.danger-list ul { margin: .5rem 0 0 1.1rem; display: grid; gap: .2rem; }
.modal-danger .form label.check input:checked { background: var(--danger); }
.modal-danger .form input:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 77, 79, .18); }
.modal-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: .7rem; margin-top: .4rem; }
.modal-actions .btn-ghost, .modal-actions .btn-danger { padding: .8rem 1rem; }
@media (max-width: 600px) { .modal-actions { grid-template-columns: 1fr; } .modal-actions .btn-danger { order: -1; } .danger-zone .btn-danger { width: 100%; } }

/* Message de confirmation (vert = succès) */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 95; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: .6rem; max-width: calc(100% - 2rem);
  padding: .85rem 1.2rem; border-radius: 6px; font-weight: 600;
  background: var(--panel); border: 1px solid rgba(46, 204, 113, .45); color: #5fe39a;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; }
