/* ============================================================
   IA CONFÉRENCES — Anthony Charretier
   style.css
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Sora:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Round");

:root {
  --bg: #080c14;
  --bg-card: #0f1523;
  --bg-nav: rgba(15, 21, 35, 1);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --accent2: #06b6d4;
  --text: #e8edf5;
  --text-muted: rgba(232, 237, 245, 0.75);
  --accent: #3b82f6;
  --accent-light: rgba(59, 130, 246, 0.15);
  --accent-dark: #2563eb;
  --overlay-bg: rgba(8, 12, 20, 0.97);
  --overlay-text: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.6);
  --font-mono: "DM Mono", monospace;
  --font-body: "Sora", sans-serif;
  --nav-h: 64px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-dark);
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}

.material-icons-round {
  font-family: "Material Icons Round";
  font-style: normal;
  font-weight: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ============================================================
   NAV — dropdowns + mobile
   ============================================================ */

/* ---- structure de base ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 200;
  box-shadow: var(--shadow-sm);
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo span {
  color: var(--accent);
}

/* ---- centre ---- */
.nav-center {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* lien direct */
.nav-center > a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-center > a:hover,
.nav-center > a.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* ---- dropdown wrapper ---- */
.nav-dropdown {
  position: relative;
}

/* bouton trigger */
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  border: none;
  background: none;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.nav-dropdown-toggle .material-icons-round {
  font-size: 13px;
  opacity: 0.7;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.is-open > .nav-dropdown-toggle {
  background: var(--accent-light);
  color: var(--accent);
}

/* caret SVG inline */
.nav-dropdown-caret {
  display: inline-block;
  width: 8px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.5;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.nav-dropdown.is-open > .nav-dropdown-toggle .nav-dropdown-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* menu déroulant */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-nav);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  list-style: none;
  margin: 0;
  min-width: 160px;
  z-index: 300;
}
.nav-dropdown.is-open > .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: calc(var(--radius) - 2px);
  transition:
    background var(--transition),
    color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* ---- actions ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-slide-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-slide-btn .material-icons-round {
  font-size: 15px;
}
.nav-slide-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-slide-btn.hidden {
  display: none;
}

/* ---- hamburger ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
/* animation hamburger → croix */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- menu mobile ---- */
.nav-links {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-nav);
  flex-direction: column;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  gap: 0.15rem;
  z-index: 199;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
}
.nav-links.is-open {
  display: flex;
}

/* lien direct mobile */
.nav-links > li > a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition);
  text-decoration: none;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* groupe mobile */
.nav-mobile-group {
  margin-top: 0.35rem;
}

.nav-mobile-group-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.55;
  padding: 0.35rem 0.75rem 0.2rem;
}
.nav-mobile-group-label .material-icons-round {
  font-size: 12px;
}

.nav-mobile-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-sublist a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--text-muted);
  padding: 0.42rem 0.75rem 0.42rem 1.5rem;
  border-radius: var(--radius);
  transition:
    background var(--transition),
    color var(--transition);
  text-decoration: none;
}
.nav-mobile-sublist a:hover,
.nav-mobile-sublist a.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-center {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.page-wrapper {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.page-header p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  font-weight: 300;
}

/* ============================================================
   CARD GRID
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   FLIP CARD
   Le JS injecte :
   - .flip-card-visual (icône + titre) dans .flip-card-front
   - le dégradé en background inline sur .flip-card-front
   - cache l'<img> existante
   ============================================================ */

.flip-card {
  perspective: 1200px;
  height: 300px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Recto */
.flip-card-front {
  display: flex;
  flex-direction: column;
}
.flip-card-front img {
  display: none;
} /* cachée, remplacée par fond CSS */

.flip-card-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0.5rem;
}
.flip-card-visual .material-icons-round {
  font-size: 3.4rem;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}
.flip-card:hover .flip-card-visual .material-icons-round {
  transform: scale(1.1);
}

.flip-card-visual-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  line-height: 1.4;
}

.flip-card-front-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.flip-card-front-label span:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.93);
}
.flip-hint {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.flip-hint .material-icons-round {
  font-size: 13px;
}

/* Verso */
.flip-card-back {
  background: var(--overlay-bg);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.flip-card-back h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: #93c5fd;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.flip-card-back p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #d1d9e8;
  font-weight: 300;
  flex: 1;
  overflow-y: auto;
}
.flip-card-back p::-webkit-scrollbar {
  width: 3px;
}
.flip-card-back p::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.flip-back-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  transition: background var(--transition);
}
.flip-back-btn .material-icons-round {
  font-size: 13px;
}
.flip-back-btn:hover {
  background: rgba(147, 197, 253, 0.1);
}

/* ============================================================
   INFO CARD
   ============================================================ */

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    transform var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.info-card-icon {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.info-card-icon .material-icons-round {
  font-size: 1.7rem;
}
.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
}
.info-card a {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--accent);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */

.section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   HOME — hero
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 4rem;
  min-height: calc(100vh - var(--nav-h) - 2.5rem);
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--accent2);
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-topic-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}
.hero-topic-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-grid-decoration {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hero-grid-decoration .dot {
  border-radius: 3px;
  background: var(--border);
  aspect-ratio: 1;
  animation: dotPulse 3s ease-in-out infinite;
}
.hero-grid-decoration .dot:nth-child(odd) {
  animation-delay: 0.5s;
}
.hero-grid-decoration .dot.active {
  background: var(--accent);
  opacity: 0.7;
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.home-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.home-nav-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}
.home-nav-card-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  margin-bottom: 0.1rem;
}
.home-nav-card-icon .material-icons-round {
  font-size: 1.5rem;
}
.home-nav-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.home-nav-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

/* ============================================================
   FADE-UP
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   MODE SLIDE — overlay fullscreen
   ============================================================ */

body.slide-mode {
  overflow: hidden;
}

.slide-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #0b0e18;
  z-index: 1000;
  flex-direction: column;
}
.slide-overlay.is-active {
  display: flex;
}

.slide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  gap: 1rem;
}
.slide-bar-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: 1;
}
.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.slide-counter strong {
  color: #fff;
}

.slide-close-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.slide-close-btn .material-icons-round {
  font-size: 14px;
}
.slide-close-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.slide-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 5.5rem;
  overflow: hidden;
}

/* Flip card agrandi en mode slide */
.slide-stage .flip-card {
  width: min(700px, 100%);
  height: min(460px, 75vh);
  animation: slideIn 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.slide-stage .flip-card.from-left {
  animation: slideInLeft 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-stage .flip-card-visual .material-icons-round {
  font-size: 5rem;
}
.slide-stage .flip-card-visual-title {
  font-size: 1rem;
}
.slide-stage .flip-card-front-label span:first-child {
  font-size: 0.88rem;
}
.slide-stage .flip-card-back h3 {
  font-size: 1.05rem;
}
.slide-stage .flip-card-back p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.slide-nav-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.slide-nav-btn:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}
.slide-nav-btn .material-icons-round {
  font-size: 22px;
}
.slide-nav-prev {
  left: 1rem;
}
.slide-nav-next {
  right: 1rem;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  flex-shrink: 0;
}
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.slide-dot.is-active {
  background: var(--accent);
  width: 22px;
}
.slide-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.35);
}

.slide-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.18);
  padding-bottom: 0.9rem;
  letter-spacing: 0.08em;
}

.nn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--nn-accent);
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 0.5rem 0;
  transition: all 0.2s ease;
}
.nn-more-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.nn-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.nn-modal.is-open {
  display: flex;
}

.nn-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.nn-modal-box {
  position: relative;
  background: #0f1523;
  border-radius: 16px;
  padding: 2rem;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
}

.nn-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--nn-text);
}

.nn-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--nn-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.nn-modal-close:hover {
  color: var(--nn-text);
}
.nn-modal-close .material-icons-round {
  font-size: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem 0 3rem;
  }
  .hero-visual {
    display: none;
  }
  .nav-center {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .flip-card {
    height: 260px;
  }
  .home-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
  .slide-stage {
    padding: 1rem 3.5rem;
  }
  .slide-nav-prev {
    left: 0.25rem;
  }
  .slide-nav-next {
    right: 0.25rem;
  }
  .nav-slide-btn .label {
    display: none;
  }
}
