:root {
  --bg: #0e1012;
  --bg-soft: #15181b;
  --accent: #00c2d6;
  --accent-dim: #00A4B7;
  --text: #f5f5f5;
  --text-muted: #b8bcc0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 194, 214, 0.6);
}

::-webkit-scrollbar-button {
  display: none;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Full-page fixed background image */
.hero-banner {
  position: fixed;
  inset: 0;
  z-index: -5;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: banner-zoom 18s ease-in-out infinite alternate;
}

@keyframes banner-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 18, 0.35) 0%, rgba(14, 16, 18, 0.6) 55%, var(--bg) 100%);
}

/* Animated background layers */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.bg-glow {
  position: fixed;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  z-index: -2;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  animation-duration: 18s;
}

.bg-glow-2 {
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, #0077a3, transparent 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}

.bg-glow-3 {
  top: 40%;
  left: 60%;
  width: 30vw;
  height: 30vw;
  opacity: 0.18;
  animation-duration: 20s;
  animation-delay: -12s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4vw, 3vw) scale(1.12);
  }
  100% {
    transform: translate(-3vw, -2vw) scale(0.95);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 194, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 214, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: grid-move 30s linear infinite;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}

@keyframes grid-move {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 42px 42px;
  }
}

/* Loader */
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #14181b 0%, #060708 75%);
  transition: opacity 0.7s ease 0.1s, visibility 0.7s ease 0.1s;
}

.loader > * {
  grid-area: 1 / 1;
}

.loader.exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-glow {
  width: clamp(220px, 55vw, 340px);
  height: clamp(220px, 55vw, 340px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 214, 0.35), transparent 70%);
  filter: blur(45px);
  animation: glow-pulse 2.4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

.loader-ping {
  width: clamp(90px, 24vw, 130px);
  height: clamp(90px, 24vw, 130px);
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: ping-expand 1.1s ease-out 0.15s forwards;
}

@keyframes ping-expand {
  0% {
    transform: scale(0.4);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.loader-ring {
  width: clamp(150px, 40vw, 220px);
  height: clamp(150px, 40vw, 220px);
  transform: rotate(-90deg);
  animation: ring-rotate 3s linear infinite;
}

.loader-ring-outer {
  width: clamp(165px, 44vw, 240px);
  height: clamp(165px, 44vw, 240px);
  opacity: 0.5;
  animation: ring-rotate-reverse 5s linear infinite;
}

@keyframes ring-rotate {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(270deg);
  }
}

@keyframes ring-rotate-reverse {
  from {
    transform: rotate(90deg);
  }
  to {
    transform: rotate(-270deg);
  }
}

.loader-ring-bg {
  fill: none;
  stroke: rgba(0, 194, 214, 0.15);
  stroke-width: 2;
}

.loader-ring-dashed {
  fill: none;
  stroke: rgba(0, 194, 214, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 10;
}

.loader-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 565.5;
  stroke-dashoffset: 565.5;
  filter: drop-shadow(0 0 6px rgba(0, 194, 214, 0.8));
  animation: ring-draw 1.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.loader-logo {
  width: clamp(90px, 24vw, 130px);
  height: clamp(90px, 24vw, 130px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.15) translateY(25px);
  filter: drop-shadow(0 0 0 rgba(0, 194, 214, 0));
  animation: logo-surge 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             logo-breathe 2.4s ease-in-out 1s infinite;
}

@keyframes logo-surge {
  0% {
    opacity: 0;
    transform: scale(0.15) translateY(25px);
    filter: drop-shadow(0 0 0 rgba(0, 194, 214, 0));
  }
  60% {
    opacity: 1;
    transform: scale(1.18) translateY(-8px);
    filter: drop-shadow(0 0 30px rgba(0, 194, 214, 0.85));
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 16px rgba(0, 194, 214, 0.5));
  }
}

@keyframes logo-breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 16px rgba(0, 194, 214, 0.5));
  }
  50% {
    transform: scale(1.05) translateY(-3px);
    filter: drop-shadow(0 0 26px rgba(0, 194, 214, 0.75));
  }
}

.loader.exit .loader-logo {
  animation: logo-zoom-out 0.7s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes logo-zoom-out {
  to {
    transform: scale(2.6);
    opacity: 0;
    filter: drop-shadow(0 0 60px rgba(0, 194, 214, 0));
  }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 10px rgba(0, 194, 214, 0.7);
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* Cursor glow (desktop only) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 214, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-glow.active {
  opacity: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem 0;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background-color: transparent;
  backdrop-filter: blur(0px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled .navbar {
  background-color: rgba(14, 16, 18, 0.85);
  backdrop-filter: blur(10px);
  border-color: #232629;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dropdown-btn:hover {
  color: var(--accent);
}

.nav-dropdown-btn .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-btn {
  color: var(--accent);
}

.nav-dropdown.open .nav-dropdown-btn .icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid #232629;
  background-color: rgba(14, 16, 18, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background-color: rgba(0, 194, 214, 0.08);
  color: var(--accent);
}

.nav-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #05070a;
  box-shadow: 0 0 0 rgba(0, 194, 214, 0.5);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 194, 214, 0.35);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 194, 214, 0.55);
  }
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: #05070a;
  transform: translateY(-2px);
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Rejoindre - timeline */
.join {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.join-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.join-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.join-intro h2 {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.join-desc {
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.join-intro .btn {
  margin-bottom: 1.5rem;
}

.join-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.join-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border: 1px solid #232629;
  border-radius: 10px;
  background-color: transparent;
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.join-link:hover {
  border-color: rgba(0, 194, 214, 0.3);
  color: var(--accent);
}

.join-link .icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.join-timeline {
  position: relative;
  padding-left: 2rem;
}

.join-timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(0, 194, 214, 0.15);
}

.join-step {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #232629;
  border-radius: 14px;
  background-color: transparent;
  backdrop-filter: blur(6px);
}

.join-step.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.join-step:nth-child(3).reveal {
  transition-delay: 0.12s;
}

.join-step:nth-child(4).reveal {
  transition-delay: 0.24s;
}

.join-step:hover {
  border-color: rgba(0, 194, 214, 0.25);
  background-color: rgba(0, 194, 214, 0.04);
}

.join-step-number {
  flex-shrink: 0;
  width: 2.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.join-step-content {
  flex: 1;
}

.join-step-duration {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.join-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.join-step-head h3 {
  font-size: 1.25rem;
}

.join-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: transparent;
  color: var(--accent);
  animation: icon-glow 2.6s ease-in-out infinite;
}

.join-step:nth-child(3) .join-step-icon {
  animation-delay: 0.3s;
}

.join-step:nth-child(4) .join-step-icon {
  animation-delay: 0.6s;
}

@keyframes icon-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 194, 214, 0);
  }
  50% {
    box-shadow: 0 0 14px rgba(0, 194, 214, 0.35);
  }
}

.join-step-icon .icon {
  width: 18px;
  height: 18px;
}

.join-step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0.8rem;
}

.join-step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.join-step-link .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .join-grid {
    grid-template-columns: 1fr;
  }

  .join-timeline {
    margin-top: 1rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-size: clamp(16rem, 45vw, 34rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 194, 214, 0.12);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  animation: watermark-pulse 6s ease-in-out infinite;
}

@keyframes watermark-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -54%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1.03);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 194, 214, 0.4);
  border-radius: 999px;
  background-color: rgba(0, 194, 214, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: badge-float 3s ease-in-out infinite;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.hero-badge.is-closed {
  border-color: rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.hero-badge .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon {
  width: 24px;
  height: 24px;
}

@keyframes badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-content h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  margin-bottom: 1rem;
}

.hero-title {
  line-height: 1.02;
  letter-spacing: -1px;
  font-weight: 800;
  background: linear-gradient(115deg, #6b7280 0%, #e5e7eb 18%, #f8fafc 32%, #9ca3af 48%, #f1f5f9 62%, #6b7280 78%, #cbd5e1 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(255, 255, 255, 0.12);
  animation: metal-shine 7s ease-in-out infinite;
}

@keyframes metal-shine {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), #7fe8f2, var(--accent-dim));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.connect-code {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.connect-code:hover {
  border-color: rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.06);
}

.connect-code-key {
  font-family: monospace;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
}

.connect-code code {
  font-family: monospace;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.connect-code:hover code {
  color: var(--accent);
}

.connect-code-copy {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.connect-code.copied .connect-code-copy {
  color: var(--accent);
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(184, 188, 192, 0.4);
  border-radius: 14px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background-color: var(--accent);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

/* Communauté */
.community {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 194, 214, 0.4);
  border-radius: 999px;
  background-color: rgba(0, 194, 214, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: badge-float 3s ease-in-out infinite;
}

.section-badge .icon {
  width: 14px;
  height: 14px;
}

.community-text h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.community-text p {
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 1.2rem;
}

.community-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.community-live strong {
  color: var(--text);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.community-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #232629;
  box-shadow: 0 0 0 rgba(0, 194, 214, 0);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.community-image:hover {
  border-color: rgba(0, 194, 214, 0.35);
  box-shadow: 0 0 40px rgba(0, 194, 214, 0.15);
}

.community-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.community-image:hover img {
  transform: scale(1.08);
}

.community-image-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.community-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.community-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.community-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  animation: icon-float 3.5s ease-in-out infinite;
}

.community-link:nth-child(2) .community-link-icon {
  animation-delay: 0.25s;
}

.community-link:nth-child(3) .community-link-icon {
  animation-delay: 0.5s;
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.community-link:hover .community-link-icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 194, 214, 0.2);
  animation-play-state: paused;
}

.community-link span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.community-link:hover span:last-child {
  color: var(--text);
}

@media (max-width: 768px) {
  .community-inner {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cartes 3D (recrutement) */
.hover-cards {
  padding: 1rem 1.5rem 4rem;
}

.hover-cards-grid {
  --card-height: 320px;
  --card-width: calc(var(--card-height) / 1.5);
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.hover-card {
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 2500px;
}

.hover-card-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hover-card:hover .hover-card-wrapper {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}

.hover-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.hover-card-wrapper::before,
.hover-card-wrapper::after {
  content: "";
  opacity: 0;
  width: 100%;
  height: 80px;
  position: absolute;
  left: 0;
  border-radius: 14px;
  transition: all 0.5s ease;
}

.hover-card-wrapper::before {
  top: 0;
  height: 100%;
  background-image: linear-gradient(to top, transparent 46%, rgba(9, 10, 12, 0.6) 68%, rgba(9, 10, 12, 0.95) 97%);
}

.hover-card-wrapper::after {
  bottom: 0;
  opacity: 1;
  background-image: linear-gradient(to bottom, transparent 46%, rgba(9, 10, 12, 0.6) 68%, rgba(9, 10, 12, 0.95) 97%);
}

.hover-card:hover .hover-card-wrapper::before,
.hover-card-wrapper::after {
  opacity: 1;
}

.hover-card:hover .hover-card-wrapper::after {
  height: 120px;
}

.hover-card-character {
  width: 100%;
  opacity: 0;
  position: absolute;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  transition: all 0.5s ease;
}

.hover-card:hover .hover-card-character {
  opacity: 1;
  transform: translate3d(0, -30%, 100px);
}

@media (max-width: 480px) {
  .hover-cards-grid {
    --card-height: 260px;
  }
}

/* Features */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.features h2 {
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background-color: transparent;
  backdrop-filter: blur(6px);
  border: 1px solid #232629;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: left;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: opacity 0.5s ease, transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 194, 214, 0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  transform: translateX(120%);
}

.feature-card:nth-child(2) {
  transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.2s;
}

.feature-card:nth-child(4) {
  transition-delay: 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 194, 214, 0.15);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: transparent;
  color: var(--accent);
  animation: icon-bounce 3s ease-in-out infinite;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 194, 214, 0.25);
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.3s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 0.6s;
}

.feature-card:nth-child(4) .feature-icon {
  animation-delay: 0.9s;
}

@keyframes icon-bounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-4deg);
  }
}

.feature-card h3 {
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Stats */
.stats {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: transparent;
  backdrop-filter: blur(6px);
  border: 1px solid #232629;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 214, 0.25), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  pointer-events: none;
}

.stat-item:hover::before {
  transform: translate(-50%, -50%) scale(2.2);
}

.stat-item:nth-child(2) {
  transition-delay: 0.08s;
}

.stat-item:nth-child(3) {
  transition-delay: 0.16s;
}

.stat-item:nth-child(4) {
  transition-delay: 0.24s;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 194, 214, 0.12);
}

.stat-number,
.stat-suffix {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-item p {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Admin */
.admin-gate {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.admin-gate-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.admin-gate-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 194, 214, 0.8);
  opacity: 0;
  animation: gate-particle 7s ease-in infinite;
}

.admin-gate-particles span:nth-child(1) { left: 8%; animation-delay: 0s; }
.admin-gate-particles span:nth-child(2) { left: 18%; animation-delay: 0.7s; }
.admin-gate-particles span:nth-child(3) { left: 30%; animation-delay: 1.4s; }
.admin-gate-particles span:nth-child(4) { left: 42%; animation-delay: 2.1s; }
.admin-gate-particles span:nth-child(5) { left: 55%; animation-delay: 2.8s; }
.admin-gate-particles span:nth-child(6) { left: 65%; animation-delay: 3.5s; }
.admin-gate-particles span:nth-child(7) { left: 74%; animation-delay: 4.2s; }
.admin-gate-particles span:nth-child(8) { left: 83%; animation-delay: 4.9s; }
.admin-gate-particles span:nth-child(9) { left: 91%; animation-delay: 5.6s; }
.admin-gate-particles span:nth-child(10) { left: 50%; animation-delay: 6.3s; }

@keyframes gate-particle {
  0% {
    bottom: -5%;
    opacity: 0;
    transform: translateX(0);
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    bottom: 105%;
    opacity: 0;
    transform: translateX(20px);
  }
}

.admin-gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 3rem 2.2rem;
  border-radius: 24px;
  border: 1px solid #232629;
  background-color: rgba(14, 16, 18, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.admin-gate-card h1 {
  font-size: 1.9rem;
  margin: 1rem 0 0.6rem;
}

.admin-gate-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-gate-error {
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444 !important;
  font-size: 0.82rem !important;
}

.admin-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.admin-discord-btn .icon {
  width: 20px;
  height: 20px;
}

.admin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(0, 194, 214, 0.4);
  margin-bottom: 1rem;
}

.admin-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.admin-role-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Panel admin — mise en page sidebar */
.admin-home-logo,
.admin-sidebar-logo {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
}

.admin-home-logo {
  margin-bottom: 1.4rem;
  text-align: center;
}

.admin-home-logo span,
.admin-sidebar-logo span {
  color: var(--accent);
}

.admin-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2rem 1.4rem;
  border-right: 1px solid #232629;
  background-color: rgba(9, 10, 12, 0.4);
  backdrop-filter: blur(16px);
}

.admin-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #232629;
}

.admin-logout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.admin-logout-icon:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
  background-color: rgba(239, 68, 68, 0.1);
}

.admin-logout-icon .icon {
  width: 17px;
  height: 17px;
}

.admin-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.admin-sidebar-profile:hover {
  border-color: rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.04);
}

.admin-avatar-sm {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.admin-username {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-sidebar-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-tab {
  position: relative;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background-color: var(--accent);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 0.25s ease;
}

.admin-tab:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateX(3px);
}

.admin-tab.is-active {
  color: var(--accent);
  border-color: rgba(0, 194, 214, 0.35);
  background-color: rgba(0, 194, 214, 0.08);
}

.admin-tab.is-active::before {
  height: 60%;
}

.admin-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2.5rem 4rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) transparent;
}

.admin-content::-webkit-scrollbar {
  width: 8px;
}

.admin-content::-webkit-scrollbar-track {
  background: transparent;
}

.admin-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 194, 214, 0.6);
}

@keyframes admin-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-shell:not([hidden]) {
  animation: admin-panel-in 0.5s ease;
}

.admin-tab-panel:not([hidden]) {
  animation: admin-panel-in 0.35s ease;
}

.admin-app-notify-bar:not([hidden]),
.admin-logs-warning:not([hidden]) {
  animation: admin-panel-in 0.3s ease;
}

@media (max-width: 860px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #232629;
  }

  .admin-sidebar-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-tab {
    width: auto;
  }

  .admin-content {
    padding: 1.8rem 1.5rem 3rem;
  }
}

.admin-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Onglet Live */
.admin-live-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.admin-live-form input {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.admin-live-form input[name="name"] {
  flex: 1 1 160px;
}

.admin-live-form input[name="url"] {
  flex: 2 1 220px;
}

/* Menu déroulant maison (plateforme) */
.admin-select {
  position: relative;
  flex: 0 0 150px;
}

.admin-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.admin-select-btn:hover {
  border-color: rgba(0, 194, 214, 0.4);
}

.admin-select-btn.has-error {
  border-color: #ef4444;
}

.admin-select-btn .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.admin-select-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 5;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: rgba(14, 16, 18, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  animation: menu-in 0.2s ease;
}

.admin-select-menu button {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: none;
  background-color: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-select-menu button:hover {
  background-color: rgba(0, 194, 214, 0.1);
  color: var(--accent);
}

.admin-live-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-live-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: transparent;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.admin-live-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 194, 214, 0.35);
  box-shadow: 0 8px 24px rgba(0, 194, 214, 0.1);
}

.admin-live-platform {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(0, 194, 214, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-live-name {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text);
}

.admin-live-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-live-url:hover {
  color: var(--accent);
}

.admin-live-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-live-remove:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.admin-live-remove .icon {
  width: 14px;
  height: 14px;
}

/* Onglets Candidatures */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-app-row {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.admin-app-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: transparent;
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.admin-app-row-main:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(0, 194, 214, 0.05);
  transform: translateX(3px);
}

.admin-app-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.admin-app-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.admin-app-action .icon {
  width: 16px;
  height: 16px;
}

.admin-app-action-accept:hover,
.admin-app-action-accept.is-active {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.5);
  background-color: rgba(52, 211, 153, 0.1);
}

.admin-app-action-refuse:hover,
.admin-app-action-refuse.is-active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
  background-color: rgba(239, 68, 68, 0.1);
}

.admin-app-action-delete:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
  background-color: rgba(239, 68, 68, 0.1);
}

.admin-app-notify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.06);
  box-shadow: 0 8px 24px rgba(0, 194, 214, 0.08);
}

.admin-app-notify-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.admin-app-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.admin-app-modal-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.admin-app-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-app-qa {
  padding-bottom: 1rem;
  border-bottom: 1px solid #232629;
}

.admin-app-qa:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-app-q {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.admin-app-a {
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Onglet Logs */
.admin-logs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-logs-warning {
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 0.78rem;
  line-height: 1.6;
}

.admin-logs-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s ease;
}

.admin-logs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-logs-status.is-online {
  color: #34d399;
}

.admin-logs-status.is-online .admin-logs-status-dot {
  background-color: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

.admin-logs-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.logs-cat-tab {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.logs-cat-tab:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.logs-cat-tab.is-active {
  color: var(--accent);
  border-color: rgba(0, 194, 214, 0.4);
  background-color: rgba(0, 194, 214, 0.08);
}

.admin-logs-search,
.perm-role-search {
  position: relative;
  margin-bottom: 1rem;
}

.admin-logs-search .icon,
.perm-role-search .icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.admin-logs-search input,
.perm-role-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s ease;
}

.admin-logs-search input:focus,
.perm-role-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-logs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 1641px;
  height: 800px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) transparent;
}

.admin-logs::-webkit-scrollbar {
  width: 8px;
}

.admin-logs::-webkit-scrollbar-track {
  background: transparent;
}

.admin-logs::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
}

.admin-logs::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 194, 214, 0.6);
}

.admin-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  animation: admin-panel-in 0.35s ease;
}

.admin-log-entry:hover {
  transform: translateX(4px);
  border-color: rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.admin-log-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: rgba(0, 194, 214, 0.08);
  border: 1px solid rgba(0, 194, 214, 0.25);
  color: var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.admin-log-icon .icon {
  width: 18px;
  height: 18px;
}

.admin-log-entry:hover .admin-log-icon {
  transform: scale(1.08);
  background-color: rgba(0, 194, 214, 0.15);
}

.admin-log-body {
  flex: 1;
  min-width: 0;
}

.admin-log-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.admin-log-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-log-pair {
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-log-pair strong {
  color: var(--text);
  font-weight: 600;
}

.admin-log-time {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-logs {
    height: 60vh;
    max-height: 60vh;
  }

  .admin-log-time {
    margin-left: 0;
  }
}

/* Onglet Settings */
.admin-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 480px;
}

.admin-settings-form .btn {
  align-self: flex-start;
}

.admin-settings-saved {
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  animation: admin-panel-in 0.3s ease;
}

.admin-maintenance-block {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
}

.admin-maintenance-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-maintenance-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-maintenance-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.admin-maintenance-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--text-muted);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.admin-maintenance-toggle input:checked + .admin-maintenance-switch {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}

.admin-maintenance-toggle input:checked + .admin-maintenance-switch::before {
  transform: translateX(18px);
  background-color: #ef4444;
}

.admin-maintenance-hint {
  margin: 0.7rem 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.admin-maintenance-hint code {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
}

.admin-maintenance-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-maintenance-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.admin-maintenance-page:has(input:checked) {
  color: var(--accent);
  border-color: rgba(0, 194, 214, 0.4);
  background-color: rgba(0, 194, 214, 0.08);
}

/* Onglet Règlement */
.admin-reglement-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.admin-reglement-form input {
  flex: 1 1 220px;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.reg-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reg-icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.reg-icon-option .icon {
  width: 16px;
  height: 16px;
}

.reg-icon-option:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.reg-icon-option.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(0, 194, 214, 0.1);
}

.reg-chapter-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  border-radius: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease, outline-color 0.25s ease,
    background-color 0.25s ease, margin-left 0.3s ease;
  animation: admin-panel-in 0.3s ease;
}

.reg-chapter-row.is-dragging {
  opacity: 0.3;
  transform: scale(0.98);
}

.reg-chapter-row.drag-target-before {
  box-shadow: inset 0 2px 0 var(--accent);
  transform: translateY(2px);
}

.reg-chapter-row.drag-target-after {
  box-shadow: inset 0 -2px 0 var(--accent);
  transform: translateY(-2px);
}

.reg-chapter-row.drag-target-nest {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  background-color: rgba(0, 194, 214, 0.1);
  transform: scale(1.01);
}

.reg-chapter-row-ghost {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 194, 214, 0.4);
  transition: opacity 0.15s ease, transform 0.15s ease;
  animation: none;
}

.reg-chapter-row-ghost.is-active {
  opacity: 1;
}

.reg-chapter-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  cursor: grab;
  touch-action: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.reg-chapter-drag-handle:hover {
  color: var(--accent);
  border-color: rgba(0, 194, 214, 0.4);
  background-color: rgba(0, 194, 214, 0.05);
}

.reg-chapter-row.is-dragging .reg-chapter-drag-handle {
  cursor: grabbing;
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(0, 194, 214, 0.12);
}

.reg-chapter-drag-handle .icon {
  width: 16px;
  height: 16px;
}

.reg-chapter-checkbox {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.reg-chapter-checkbox input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.reg-chapter-checkbox-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #333;
  background-color: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.reg-chapter-checkbox-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 9px;
  border: solid #05070a;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translate(-50%, -60%) rotate(45deg) scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.reg-chapter-checkbox input:checked ~ .reg-chapter-checkbox-mark {
  border-color: var(--accent);
  background-color: var(--accent);
  transform: scale(1.05);
}

.reg-chapter-checkbox input:checked ~ .reg-chapter-checkbox-mark::after {
  opacity: 1;
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.reg-chapter-checkbox input:focus-visible ~ .reg-chapter-checkbox-mark {
  box-shadow: 0 0 0 3px rgba(0, 194, 214, 0.2);
}

.reg-bulk-bar {
  margin-top: 1rem;
}

.reg-bulk-delete-btn {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.reg-bulk-delete-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.reg-dragging {
  user-select: none;
}

.reg-admin-chapter-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.reg-admin-chapter-label .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.reg-admin-chapter-edit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #232629;
}

.reg-admin-chapter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.reg-admin-rules {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.reg-admin-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
}

.reg-admin-rule-title {
  flex: 1 1 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
}

.reg-admin-rule-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  resize: vertical;
}

.reg-admin-rule-actions {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  flex-shrink: 0;
}

.reg-admin-rule-add {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #232629;
}

/* Onglet Légal & Illégal */
.org-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.org-admin-heading h3 {
  font-size: 1.05rem;
}

.org-card-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: transparent;
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.org-card-btn:hover {
  border-color: var(--accent);
  background-color: rgba(0, 194, 214, 0.05);
  transform: translateX(3px);
}

.org-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 194, 214, 0.3);
  color: var(--accent);
  background-color: rgba(0, 194, 214, 0.08);
}

.org-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-card-avatar .icon {
  width: 18px;
  height: 18px;
}

.org-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.org-card-name {
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-card-warnings {
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #232629;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.org-card-warnings.has-warnings {
  border-color: rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.org-image-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #232629;
}

.org-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.08);
  color: var(--accent);
}

.org-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-image-preview .icon {
  width: 26px;
  height: 26px;
}

.org-image-hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.org-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.org-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.org-modal-actions .btn:first-child {
  margin-right: auto;
}

.org-warning-control {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background-color: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.org-warning-control .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.org-warning-value {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 2.2em;
  text-align: center;
}

.org-warning-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background-color: transparent;
  color: #f59e0b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.org-warning-btn:hover:not(:disabled) {
  background-color: #f59e0b;
  color: #0e1012;
}

.org-warning-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Onglet Connexions */
.login-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: transparent;
  backdrop-filter: blur(6px);
}

.login-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.login-name {
  font-weight: 700;
  color: var(--text);
}

.login-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.login-badge-super {
  border-color: rgba(245, 158, 11, 0.4);
  background-color: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.login-kick-btn {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.login-kick-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.conn-subtabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.conn-subtab {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.conn-subtab:hover {
  color: var(--text);
}

.conn-subtab.is-active {
  color: var(--accent);
  border-color: rgba(0, 194, 214, 0.4);
  background-color: rgba(0, 194, 214, 0.08);
}

@media (max-width: 640px) {
  .login-row {
    flex-wrap: wrap;
  }

  .login-date {
    width: 100%;
    margin-left: calc(42px + 0.9rem);
  }

  .login-kick-btn {
    margin-left: calc(42px + 0.9rem);
  }
}

/* Onglet Permissions */
.perm-intro {
  margin-bottom: 1.4rem;
}

.perm-role-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) transparent;
}

.perm-role-list::-webkit-scrollbar {
  width: 8px;
}

.perm-role-list::-webkit-scrollbar-track {
  background: transparent;
}

.perm-role-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
}

.perm-role-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 194, 214, 0.6);
}

.perm-role-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  animation: admin-panel-in 0.3s ease;
}

.perm-role-row:hover {
  transform: translateX(4px);
  border-color: rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.perm-role-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.perm-role-name {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perm-role-count {
  flex-shrink: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.perm-role-count.has-perms {
  color: var(--accent);
  border-color: rgba(0, 194, 214, 0.4);
  background-color: rgba(0, 194, 214, 0.08);
}

.perm-role-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.perm-role-row:hover .perm-role-chevron {
  transform: translateX(3px);
  color: var(--accent);
}

.reg-parent-select {
  flex: 1 1 200px;
}

.reg-parent-menu {
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) transparent;
}

.reg-parent-menu::-webkit-scrollbar {
  width: 8px;
}

.reg-parent-menu::-webkit-scrollbar-track {
  background: transparent;
}

.reg-parent-menu::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
}

.reg-parent-menu::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 194, 214, 0.6);
}

.perm-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.perm-toggle {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease;
}

.perm-toggle:has(input:checked) {
  border-color: rgba(0, 194, 214, 0.35);
}

.perm-toggle input:checked + .admin-maintenance-switch {
  background-color: rgba(0, 194, 214, 0.15);
  border-color: rgba(0, 194, 214, 0.5);
}

.perm-toggle input:checked + .admin-maintenance-switch::before {
  background-color: var(--accent);
}

.logperm-toggle span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logperm-toggle .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Page Live */
.live-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 6rem;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.live-card-embed {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 720px) {
  .live-card-embed {
    grid-column: span 2;
  }
}

.live-card-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.live-card-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-card-embed .live-card-live {
  top: 0.7rem;
}

.live-card-embed-footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
}

.live-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid #232629;
  background-color: transparent;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.live-card-live {
  position: absolute;
  top: -0.55rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background-color: rgba(20, 8, 9, 0.9);
  backdrop-filter: blur(4px);
  color: #ef4444;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-card-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 194, 214, 0.15);
}

.live-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  color: var(--accent);
}

.live-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.live-card-name {
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card-platform {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.live-card-badge {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Page 404 */
.not-found {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.not-found-code {
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), #7fe8f2, var(--accent-dim));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.not-found h1 {
  font-size: 1.6rem;
  margin: 0.5rem 0 0.8rem;
}

.not-found p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2rem;
}

/* Page Maintenance */
.maintenance-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.maintenance-logo {
  display: block;
  margin-bottom: 1.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
}

.maintenance-logo span {
  color: var(--accent);
}

.maintenance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: rgba(0, 194, 214, 0.08);
  color: var(--accent);
  animation: maintenance-spin 6s linear infinite;
}

.maintenance-icon .icon {
  width: 36px;
  height: 36px;
}

@keyframes maintenance-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.maintenance-page .section-badge {
  margin-bottom: 1rem;
}

.maintenance-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.maintenance-page p {
  max-width: 480px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Légal / Illégal */
.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem 6rem;
  text-align: center;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.discord-embed {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #232629;
  background-color: transparent;
  backdrop-filter: blur(6px);
  text-align: left;
  transition: opacity 0.5s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.discord-embed-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.discord-embed-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.discord-embed-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-embed-tag {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.discord-embed-btn {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.discord-embed-illegal {
  border-color: rgba(239, 68, 68, 0.3);
}

.discord-embed-illegal:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.discord-embed-illegal .discord-embed-btn {
  background-color: #ef4444;
  animation: none;
}

.discord-embed-illegal .discord-embed-btn:hover {
  background-color: #dc2626;
}

.discord-embed-legal {
  border-color: rgba(52, 211, 153, 0.3);
}

.discord-embed-legal:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.15);
}

.discord-embed-legal .discord-embed-btn {
  background-color: #34d399;
  animation: none;
}

.discord-embed-legal .discord-embed-btn:hover {
  background-color: #10b981;
}

.discord-embed-avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.discord-embed-avatar-empty .icon {
  width: 22px;
  height: 22px;
}

.discord-embed-warnings {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #232629;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.discord-embed-warnings.has-warnings {
  border-color: rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

@media (max-width: 480px) {
  .discord-embed {
    flex-wrap: wrap;
  }

  .discord-embed-btn {
    width: 100%;
    text-align: center;
  }
}

/* CTA */
.cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: transparent;
  backdrop-filter: blur(6px);
  border-top: 1px solid #232629;
  border-bottom: 1px solid #232629;
}

.cta h2 {
  margin-bottom: 0.7rem;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(75vw, 300px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: rgba(14, 16, 18, 0.97);
    backdrop-filter: blur(10px);
    border-left: 1px solid #232629;
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-cta-mobile {
    display: block;
    margin-top: 0.5rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 200px;
    padding: 0.4rem 0 0 1rem;
    margin-top: 0.4rem;
  }

  /* Effets allégés pour la perf mobile */
  .bg-glow {
    filter: blur(60px);
    opacity: 0.2;
  }

  .bg-grid {
    background-size: 32px 32px;
  }
}

@media (max-width: 480px) {
  .hero-content p {
    font-size: 0.95rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* Page intro (règlement, etc.) */
.page-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 8rem 1.5rem 2rem;
  text-align: center;
}

.page-intro h1 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.page-intro p {
  color: var(--text-muted);
}

/* Règlement - barre de recherche */
.reg-search-bar {
  display: flex;
  justify-content: flex-end;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 0.5rem;
}

.reg-search {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.reg-search .icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease, transform 0.25s ease;
  z-index: 1;
}

.reg-search:focus-within .icon {
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.reg-search input {
  position: relative;
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.3rem;
  border-radius: 999px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-search input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(0, 194, 214, 0.06);
  box-shadow: 0 0 0 4px rgba(0, 194, 214, 0.12), 0 0 20px rgba(0, 194, 214, 0.15);
  animation: reg-search-pulse 2.4s ease-in-out infinite;
}

@keyframes reg-search-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(0, 194, 214, 0.12), 0 0 20px rgba(0, 194, 214, 0.15);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(0, 194, 214, 0.18), 0 0 26px rgba(0, 194, 214, 0.25);
  }
}

.reg-search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 340px;
  max-width: min(90vw, 380px);
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid #232629;
  background-color: rgba(14, 16, 18, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  z-index: 60;
  animation: menu-in 0.2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) transparent;
}

.reg-search-results::-webkit-scrollbar {
  width: 6px;
}

.reg-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.reg-search-results::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
}

.reg-search-result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  animation: reg-search-result-in 0.25s ease both;
}

@keyframes reg-search-result-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reg-search-result::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.reg-search-result:last-child {
  margin-bottom: 0;
}

.reg-search-result:hover {
  background-color: rgba(0, 194, 214, 0.06);
  border-color: rgba(0, 194, 214, 0.25);
  transform: translateX(3px);
}

.reg-search-result:hover::before {
  transform: scaleY(1);
}

.reg-search-result-crumb {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}

.reg-search-result-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.reg-search-result-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-search-highlight {
  background-color: rgba(0, 194, 214, 0.22);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 0.15em;
}

.reg-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.4rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.reg-search-empty::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #232629;
  background: radial-gradient(circle, rgba(0, 194, 214, 0.12), transparent 70%);
}

@media (max-width: 640px) {
  .reg-search-bar {
    justify-content: stretch;
  }

  .reg-search {
    max-width: none;
  }
}

/* Règlement - sommaire (dossiers) + contenu (règles en accordéon) */
.reg-layout {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.reg-layout::before {
  content: "";
  position: absolute;
  top: -6rem;
  left: 50%;
  width: 900px;
  max-width: 140vw;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 194, 214, 0.08) 0%, rgba(0, 194, 214, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.reg-sidebar {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  border: 1px solid #232629;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) transparent;
}

.reg-sidebar:hover {
  border-color: rgba(0, 194, 214, 0.22);
}

.reg-sidebar::-webkit-scrollbar {
  width: 6px;
}

.reg-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.reg-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
}

.reg-sidebar-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #232629;
  background: linear-gradient(180deg, rgba(14, 16, 18, 0.96) 0%, rgba(14, 16, 18, 0.85) 100%);
  backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.reg-sidebar-header .icon {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  animation: icon-glow 2.6s ease-in-out infinite;
}

.reg-chapter-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 1px solid #1c1e21;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
  overflow: hidden;
}

.reg-chapter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 194, 214, 0.3));
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.reg-chapter-btn:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.03);
  padding-left: 1.35rem;
}

.reg-chapter-btn.is-active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(0, 194, 214, 0.1), rgba(0, 194, 214, 0));
  text-shadow: 0 0 12px rgba(0, 194, 214, 0.35);
}

.reg-chapter-btn.is-active::before {
  transform: scaleY(1);
}

.reg-chapter-btn span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-chapter-arrow,
.reg-folder-icon,
.reg-leaf-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.75;
}

.reg-chapter-btn.is-active .reg-folder-icon,
.reg-chapter-btn.is-active .reg-leaf-icon {
  opacity: 1;
}

.reg-chapter-arrow {
  transition: transform 0.25s ease;
}

.reg-chapter-btn.is-open .reg-chapter-arrow {
  transform: rotate(90deg);
}

.reg-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.reg-sub.is-open {
  max-height: 2000px;
}

.reg-sub .reg-chapter-btn {
  padding-left: 2.2rem;
  font-size: 0.78rem;
}

.reg-sub .reg-sub .reg-chapter-btn {
  padding-left: 3.2rem;
}

.reg-sub .reg-sub .reg-sub .reg-chapter-btn {
  padding-left: 4.2rem;
}

.reg-sub a {
  display: block;
  margin: 0.15rem 0.6rem;
  padding: 0.35rem 0.7rem;
  border-left: 1px solid #232629;
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.reg-sub a:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}

.reg-sub a.is-active {
  color: var(--accent);
  background-color: rgba(0, 194, 214, 0.08);
  border-left-color: var(--accent);
  box-shadow: inset 3px 0 8px -4px rgba(0, 194, 214, 0.6);
}

.reg-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reg-article {
  scroll-margin-top: 6.5rem;
  position: relative;
  border: 1px solid #232629;
  border-radius: 16px;
  background-color: transparent;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reg-content > .reg-article:nth-child(2) {
  transition-delay: 0.06s;
}

.reg-content > .reg-article:nth-child(3) {
  transition-delay: 0.12s;
}

.reg-content > .reg-article:nth-child(4) {
  transition-delay: 0.18s;
}

.reg-content > .reg-article:nth-child(n + 5) {
  transition-delay: 0.24s;
}

.reg-article-children {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.1rem 1.1rem 1.7rem;
  margin: 0 1.1rem 1.1rem;
  border-radius: 14px;
  background-color: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}

.reg-article-children::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0.7rem;
  bottom: 1.1rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(0, 194, 214, 0.4), rgba(0, 194, 214, 0.05));
}

.reg-article-children .reg-article {
  border-color: rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.025);
}

.reg-article-children .reg-article-head {
  padding: 0.9rem 1.1rem;
  background: linear-gradient(120deg, rgba(0, 194, 214, 0.035), rgba(0, 194, 214, 0) 55%);
}

.reg-article-children .reg-article-icon {
  width: 2rem;
  height: 2rem;
}

.reg-article-children .reg-article-icon .icon {
  width: 16px;
  height: 16px;
}

.reg-article-children .reg-article-title {
  font-size: 0.92rem;
}

.reg-article.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reg-article:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 194, 214, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 194, 214, 0.06);
}

.reg-article-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid #232629;
  background: linear-gradient(120deg, rgba(0, 194, 214, 0.05), rgba(0, 194, 214, 0) 55%);
  overflow: hidden;
}

.reg-article-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(0, 194, 214, 0.08) 45%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.reg-article:hover .reg-article-head::after {
  transform: translateX(100%);
}

.reg-article-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: transparent;
  color: var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.reg-article:hover .reg-article-icon {
  transform: scale(1.08) rotate(-4deg);
  background-color: rgba(0, 194, 214, 0.1);
  box-shadow: 0 0 16px rgba(0, 194, 214, 0.35);
}

.reg-article-title {
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}

.reg-article-crumb {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reg-article-crumb span {
  color: var(--accent);
  opacity: 0.6;
}

details.reg-rule {
  position: relative;
  border-bottom: 1px solid #1c1e21;
}

details.reg-rule:last-of-type {
  border-bottom: none;
}

details.reg-rule summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.4rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s ease, background-color 0.15s ease, padding-left 0.2s ease;
}

details.reg-rule summary::-webkit-details-marker {
  display: none;
}

details.reg-rule summary:hover {
  color: var(--accent);
  background-color: rgba(0, 194, 214, 0.03);
  padding-left: 1.65rem;
}

details.reg-rule[open] > summary {
  color: var(--accent);
  background-color: rgba(0, 194, 214, 0.05);
}

.reg-rule-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(0, 194, 214, 0.3);
  background-color: transparent;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

details.reg-rule[open] .reg-rule-num {
  background: linear-gradient(135deg, var(--accent), rgba(0, 194, 214, 0.5));
  color: #06070a;
  box-shadow: 0 0 12px rgba(0, 194, 214, 0.45);
}

.reg-rule-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

details.reg-rule[open] .reg-rule-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.reg-rule-body {
  position: relative;
  margin: 0 1.4rem 1.1rem 3.8rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background-color: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.7;
  white-space: pre-wrap;
  animation: rule-in 0.3s ease;
}

@keyframes rule-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reg-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reg-rule-list li {
  position: relative;
  padding-left: 1.2rem;
}

.reg-rule-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.reg-sanctions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.2rem 1.4rem 0.6rem;
}

.reg-sanction-badge {
  padding: 0.45rem 1rem;
  border: 1px solid #232629;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.reg-sanction-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(0, 194, 214, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 194, 214, 0.15);
}

.reg-sanction-note {
  padding: 0 1.4rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .reg-layout {
    grid-template-columns: 1fr;
  }

  .reg-sidebar {
    position: static;
    max-height: none;
  }

  .reg-article:hover {
    transform: none;
  }

  .reg-article-children {
    margin-left: 0.5rem;
    padding-left: 1.1rem;
  }

  .reg-article-children::before {
    left: 0.5rem;
  }

  .reg-rule-body {
    margin-left: 2.4rem;
  }
}

/* Footer enrichi (règlement) */
.footer-full {
  text-align: left;
  padding: 0;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-brand span {
  color: var(--accent);
}

.footer-tag {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-cols {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.footer-col a {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #232629;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom code {
  font-family: monospace;
  color: var(--accent);
}

@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Modal de candidature */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(6, 7, 8, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #232629;
  background-color: rgba(14, 16, 18, 0.96);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 194, 214, 0.35) transparent;
}

.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background-color: rgba(0, 194, 214, 0.35);
  border-radius: 999px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 194, 214, 0.6);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.modal-header {
  margin-bottom: 1.2rem;
  padding-right: 2rem;
}

.modal-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.modal-confirm {
  max-width: 400px;
  padding: 2.2rem 2rem 2rem;
  text-align: center;
}

.admin-confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 194, 214, 0.35);
  background-color: rgba(0, 194, 214, 0.1);
  color: var(--accent);
  animation: admin-confirm-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-confirm-icon .icon {
  width: 26px;
  height: 26px;
}

@keyframes admin-confirm-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.admin-confirm-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.admin-confirm-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.admin-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.admin-confirm-actions .btn {
  flex: 1;
}

.modal-progress-track {
  height: 4px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.modal-progress-bar {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.35s ease;
}

.modal-step-count {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.modal-status {
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.modal-status-success {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background-color: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.modal-status-error {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.modal-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: step-in 0.35s ease;
}

.modal-step.is-active {
  display: flex;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field span {
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 194, 214, 0.12);
}

.field-error {
  display: block;
  min-height: 1em;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ef4444;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ef4444;
}

.field.has-error input:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Radio animé */
.radio-group {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.3rem;
}

.radio-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  user-select: none;
}

.radio-check input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.radio-checkmark {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #333;
  background-color: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.radio-checkmark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 5px;
  height: 9px;
  border: solid #05070a;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translate(-50%, -60%) rotate(45deg) scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.radio-check input:checked ~ .radio-checkmark {
  border-color: var(--accent);
  background-color: var(--accent);
  transform: scale(1.05);
}

.radio-check input:checked ~ .radio-checkmark::after {
  opacity: 1;
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.radio-check input:focus-visible ~ .radio-checkmark {
  box-shadow: 0 0 0 3px rgba(0, 194, 214, 0.2);
}

/* Liste de réseaux dynamique */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  animation: step-in 0.3s ease;
}

.link-row-platform {
  flex-shrink: 0;
  min-width: 60px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.link-row input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #232629;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s ease;
}

.link-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.link-row-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-row-remove:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.link-row-remove .icon {
  width: 14px;
  height: 14px;
}

.link-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px dashed rgba(0, 194, 214, 0.4);
  background-color: rgba(0, 194, 214, 0.06);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.link-add-btn:hover {
  background-color: rgba(0, 194, 214, 0.12);
  border-color: var(--accent);
}

.link-add-btn .icon {
  width: 16px;
  height: 16px;
}

.link-add-menu {
  margin-top: 0.5rem;
  min-width: 160px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid #232629;
  background-color: rgba(14, 16, 18, 0.98);
  backdrop-filter: blur(10px);
  animation: menu-in 0.2s ease;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.link-add-menu button {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: none;
  background-color: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.link-add-menu button:hover {
  background-color: rgba(0, 194, 214, 0.1);
  color: var(--accent);
}

/* Navigation du modal */
.modal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #232629;
}

.modal-prev {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: auto;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid #232629;
  background-color: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-prev:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-prev .icon {
  width: 16px;
  height: 16px;
}

/* Bouton d'envoi animé */
.btn-send {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-send-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(5, 7, 10, 0.3);
  border-top-color: #05070a;
  border-radius: 50%;
}

.btn-send.sending .btn-send-spinner {
  display: inline-block;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-send-icon {
  display: none;
  width: 18px;
  height: 18px;
}

.btn-send.sent .btn-send-icon {
  display: inline-flex;
}

.btn-send-check polyline {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.4s ease 0.1s;
}

.btn-send.sent .btn-send-check polyline {
  stroke-dashoffset: 0;
}

.btn-send.sending,
.btn-send.sent {
  pointer-events: none;
}

.btn-send.sent {
  background-color: #34d399;
}

@media (max-width: 560px) {
  .modal {
    padding: 1.5rem;
    max-height: 90vh;
  }

  .modal-nav {
    flex-wrap: wrap;
  }

  .modal-prev {
    order: 1;
  }

  .modal-next,
  .btn-send {
    order: 2;
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
