@font-face {
  font-family: "Tempting";
  src: url(font/Tempting\ -\ PERSONAL\ USE\ ONLY.woff) format("truetype");
}

:root {
  --bg-surface: rgba(26, 26, 30, 0.4);
  --bg-surface-hover: rgba(36, 36, 40, 0.8);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --accent: #FF1744;
  --accent-glow: rgba(255, 23, 68, 0.3);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 23, 68, 0.5);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;

  /* Lueur rouge dynamique (fond) */
  background-color: #050203;
  /* Teinte de fond très sombre */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 23, 68, 0.25) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(220, 15, 45, 0.2) 0%, transparent 25%);
  background-attachment: fixed;
  background-size: 200% 200%, 250% 250%;
  /* Différentes échelles pour les rendre indépendantes */
  background-position: 0% 0%, 100% 100%;
  animation: redGlowMove 40s ease-in-out infinite;
}

@keyframes redGlowMove {
  0% {
    background-position: 0% 0%, 100% 100%;
  }

  33% {
    background-position: 60% 100%, 80% 0%;
  }

  66% {
    background-position: 100% 20%, 0% 60%;
  }

  100% {
    background-position: 0% 0%, 100% 100%;
  }
}

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

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  filter: blur(15px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

h1,
h2,
h3,
h4,
.floating-logo {
  font-family: "Space Grotesk", sans-serif;
}

/* Floating Pill Navbar */
.header {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  background: rgba(10, 8, 12, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 23, 68, 0.15);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 15px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.header.scrolled {
  top: 20px;
  background: rgba(10, 8, 12, 0.85);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 23, 68, 0.15);
  border-color: rgba(255, 23, 68, 0.35);
  padding: 6px 12px;
}

/* Standalone Floating Logo */
.floating-logo {
  position: fixed;
  top: 35px;
  left: 4%;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
  text-decoration: none;
  z-index: 1001;
  transition: transform 0.3s ease, top 0.4s ease, border-color 0.3s ease;
  padding: 5px 15px;
  background: rgba(10, 8, 12, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 50px;
  border: 1px solid transparent;
}

.floating-logo .accent {
  color: var(--accent);
  display: inline-block;
}

.floating-logo:hover {
  transform: scale(1.05);
}

.nav-sticky ul {
  list-style: none;
  display: flex;
  gap: 5px;
}

.nav-sticky ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: block;
}

.nav-sticky ul li a:hover,
.nav-sticky ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .floating-logo {
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
  }

  .header {
    top: auto;
    bottom: 30px;
    width: 90%;
    padding: 10px;
    background: rgba(10, 8, 12, 0.7);
  }

  .header.scrolled {
    top: auto;
    bottom: 20px;
  }

  .nav-sticky {
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-sticky::-webkit-scrollbar {
    display: none;
  }

  .nav-sticky ul {
    gap: 5px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 0 5px;
  }

  .nav-sticky ul li a {
    font-size: 0.85rem;
    padding: 10px 15px;
    white-space: nowrap;
  }
}

.container {
  max-width: 92%;
  margin: 0 auto;
  padding: 0;
}

section {
  padding: 100px 0;
  position: relative;
}

section h2 {
  font-size: 3.5rem;
  margin-bottom: 60px;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -2px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  transition: width 0.4s ease;
}

section:hover h2::after {
  width: 100%;
}

@media (max-width: 900px) {
  section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }

  section h2::after {
    display: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid {
  display: flex;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 30px;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.hero-content h1 .accent {
  background: linear-gradient(90deg, #FF1744, #ff5c7c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: 500;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 2px;
}

.hero-text {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 700px;
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 18px 45px;
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 rgba(255, 23, 68, 0.5);
  background-color: #ff2a54;
}

@media (max-width: 1000px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

/* HUGE Typography Statement */
.presentation {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
}

.big-statement {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.4);
  max-width: 1400px;
  letter-spacing: -1.5px;
}

.big-statement strong {
  color: var(--text-main);
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}

.big-statement strong:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .big-statement {
    font-size: 2.2rem;
  }
}

/* Qualities (Bento style grid) */
.skills-grid-soft {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
}

.skill-card-soft {
  background: var(--bg-surface);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  transition: all 0.1s ease;
  display: flex;
  flex-direction: column;
}

.skill-card-soft:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: var(--bg-surface-hover);
}

@media (min-width: 900px) {
  .skill-card-soft:nth-child(1) {
    grid-column: span 2;
    background: var(--accent);
    border-color: var(--accent);
  }

  .skill-card-soft:nth-child(1) h3,
  .skill-card-soft:nth-child(1) p {
    color: #fff;
  }
}

.skill-emoji {
  font-size: 3.5rem;
  margin-bottom: 25px;
}

.skill-card-soft h3 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.skill-card-soft p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Hard Skills - Sleek Lists instead of cards */
.skills-grid-hard {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  transition: all 0.4s ease;
}

.skill-row:last-child {
  border-bottom: 1px solid var(--border-color);
}

.skill-row:hover {
  padding-left: 20px;
  border-top-color: var(--accent);
}

.skill-row h3 {
  width: 25%;
  font-size: 2rem;
  margin: 0;
  color: var(--text-main);
}

.skill-row .logo-list {
  width: 50%;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
}

.skill-row .skill-desc {
  width: 25%;
  text-align: right;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.logo-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.badge-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

@media (max-width: 900px) {
  .skill-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 0;
  }

  .skill-row h3,
  .skill-row .logo-list,
  .skill-row .skill-desc {
    width: 100%;
    text-align: left;
  }
}

/* Vision Marquee Banner to beautifully break symmetry */
.vision-banner {
  background-color: var(--accent);
  padding: 40px 0;
  margin: 150px 0;
  transform: rotate(-3deg) scale(1.05);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: #050505;
  letter-spacing: 2px;
  animation: scrollMarquee 25s linear infinite;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Projects Showcase - Asymmetrical Spans */
.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  list-style: none;
}

.project-feature {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-feature:hover {
  border-color: var(--accent);
  transform: translateY(-12px) scale(1.02) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 20px 50px rgba(255, 23, 68, 0.25), 0 0 30px rgba(255, 23, 68, 0.1);
}

.project-feature img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.project-feature:hover img {
  transform: scale(1.06);
  filter: contrast(1.05) brightness(1.05);
}

.project-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-feature:hover .project-info {
  transform: translateZ(20px);
}

.project-feature h3 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.project-feature:hover h3 {
  color: #fff;
}

.project-tags {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--accent);
}

.project-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
}

.project-link::after {
  content: "Voir le projet";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 10;

  /* Premium red glassmorphism overlay */
  background: rgba(255, 23, 68, 0.15);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Centered glowing text */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 0 0 15px var(--accent), 0 0 5px #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-feature:hover .project-link::after {
  opacity: 1;
  transform: scale(1.02);
}

/* Feature the first project to span across the page */
@media (min-width: 900px) {
  .project-feature:nth-child(1) {
    grid-column: 1 / -1;
    flex-direction: row;
    height: 500px;
  }

  .project-feature:nth-child(1) img {
    height: 100%;
    width: 55%;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }

  .project-feature:nth-child(1) .project-link::after {
    height: 100%;
    width: 55%;
  }

  .project-feature:nth-child(1) .project-info {
    width: 45%;
    justify-content: center;
  }
}

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

/* Services */
.services-wrapper {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  transition: padding-left 0.4s ease, border-color 0.4s ease;
}

.service-row:last-child {
  border-bottom: 1px solid var(--border-color);
}

.service-row:hover {
  padding-left: 40px;
  border-color: var(--accent);
}

.service-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-muted);
  margin-right: 50px;
  transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.service-row:hover .service-number {
  color: var(--accent);
  -webkit-text-stroke: 1px transparent;
}

.service-text h3 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.service-text p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 700px;
}

@media (max-width: 900px) {
  .service-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-number {
    margin-bottom: 20px;
    font-size: 3rem;
  }
}


/* Contact Section */
.contact-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info-section,
.contact-form-section {
  flex: 1;
  min-width: 350px;
  background: var(--bg-surface);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 60px;
}

.contact-info-section h3,
.contact-form-section h3 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.contact-info-section p {
  margin-bottom: 25px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.contact-info-section a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.contact-info-section a:hover {
  color: var(--accent);
}

.social-icon {
  width: 28px;
  height: 28px;
  margin-right: 15px;
  filter: grayscale(100%) brightness(200%);
  transition: transform 0.3s;
}

.contact-info-section a:hover .social-icon {
  transform: scale(1.2) rotate(-5deg);
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--accent);
  background-color: rgba(255, 23, 68, 0.05);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #ff2a54;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255, 23, 68, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 100px;
  background: rgba(5, 5, 8, 0.9);
}

footer p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Projects details */
.project-image-container {
  margin: 3rem 0;
}

.project-detail-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Galerie 2 colonnes (carrés) */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 4rem 0;
  align-items: start;
}

.gallery-item {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.gallery-item .project-detail-img {
  width: 100%;
  height: auto;
  max-height: none;
  border: none;
  border-radius: 0;
  display: block;
}

.gallery-video-item {
  grid-column: 1 / -1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.gallery-video-item .project-detail-img {
  width: 100%;
  height: auto;
  max-height: 800px;
  border: none;
  border-radius: 0;
  display: block;
}

@media (max-width: 768px) {
  .project-gallery-grid {
    gap: 15px;
  }
}

/* Project Filters */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.projects-header h2 {
  margin-bottom: 0;
}

.projects-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
}

.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Project Details Page Advanced Structure */
.project-section-title {
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.project-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

.project-content-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.project-content-block p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-content-block p:last-child {
  margin-bottom: 0;
}

/* ==================================================== */
/* WOW PROJECT PAGE STYLES (IMMERSIVE, GLASSMORPHISM)   */
/* ==================================================== */

.project-page {
  background-color: #030305; /* Deeper background for contrast */
}

/* Hero Section */
.wow-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.wow-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Extra height for parallax */
  z-index: 0;
  will-change: transform;
}

.bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1);
}

.wow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,8,0.7) 0%, rgba(5,5,8,0.3) 50%, rgba(3,3,5,1) 100%);
  z-index: 1;
}

.wow-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
}

.wow-subtitle {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.wow-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  letter-spacing: -2px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  margin-top: 10px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Glassmorphism Details Grid */
.wow-main-content {
  position: relative;
  z-index: 5;
  padding: 60px 0 120px;
}

.wow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: -100px; /* Overlap hero */
}

.glass-card {
  background: rgba(20, 20, 25, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.span-2 { grid-column: span 1; }
.span-full { grid-column: 1 / -1; }

.accent-card {
  background: rgba(255, 23, 68, 0.05);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

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

.mt-margin { margin-top: 20px; }

.glass-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  color: #fff;
  margin-bottom: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.glass-title::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  margin-right: 15px;
  border-radius: 50%;
}

.glass-text {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
}

.large-text {
  font-size: 1.5rem;
  line-height: 1.95;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
  .wow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -50px;
  }
  .span-2 { grid-column: 1 / -1; }
  .glass-card { padding: 30px; }
}

/* Masonry Gallery */
.wow-gallery-section {
  padding: 100px 0;
}

.section-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
}

.wow-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 350px;
  gap: 30px;
}

.masonry-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.masonry-item img,
.masonry-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.masonry-item:hover img,
.masonry-item:hover video {
  transform: scale(1.05);
}

.large-item {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .wow-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .large-item {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Simple Gallery for 1 or 2 items (e.g. France Sécurité) */
.wow-simple-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.wow-simple-gallery .masonry-item {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: auto;
}

.wow-simple-gallery .masonry-item img,
.wow-simple-gallery .masonry-item video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.wow-simple-gallery .masonry-item.banner-item {
  box-shadow: none;
  background: transparent;
  border: none;
  overflow: visible;
}

.wow-simple-gallery .masonry-item.banner-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.wow-simple-gallery .masonry-item.video-item {
  max-width: 650px;
  border-radius: 16px;
  overflow: hidden;
}

.wow-simple-gallery .masonry-item.video-item video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.text-center { text-align: center; }
.bottom-nav { margin-top: 60px; }
.wow-cta { padding: 20px 50px; font-size: 1.4rem; border-radius: 50px; }

/* ==================================================== */
/* 3D WEBGL SCROLL SECTION (INDEX.PHP)                  */
/* ==================================================== */

.scroll-container {
  position: relative;
  width: 100%;
  background: #000;
  /* La hauteur totale sera donnée par le nombre de sections (100vh chacune) */
}

.sticky-canvas-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  outline: none;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-content {
  position: relative;
  z-index: 2;
  /* On remonte le contenu d'1 écran pour qu'il commence dès le haut du sticky */
  margin-top: -100vh; 
  pointer-events: none; /* Laisse les clics passer au canvas, sauf sur les boutons */
}

.scroll-section {
  width: 100%;
  height: 100vh; /* Chaque projet prend 1 écran de hauteur pour le scroll */
  display: flex;
  align-items: center;
  padding: 0 10vw;
  box-sizing: border-box;
}

.empty-intro, .empty-outro {
  height: 100vh;
}

.project-trigger {
  /* Le texte apparaîtra au fur et à mesure */
}

.align-left {
  justify-content: flex-start;
}
.align-right {
  justify-content: flex-end;
}

.project-3d-text {
  pointer-events: auto; /* Réactiver les clics sur les boutons */
  background: linear-gradient(135deg, rgba(35, 8, 12, 0.55) 0%, rgba(15, 4, 6, 0.75) 100%);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  padding: 48px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 520px;
  opacity: 0;
  filter: blur(20px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.85), 
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 35px rgba(255, 23, 68, 0.12);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 1s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease, 
              background 0.4s ease,
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Futuristic scanlines pattern */
.project-3d-text::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 28px;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.2) 50%
  );
  background-size: 100% 4px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* active light sweep reflection */
.project-3d-text::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 23, 68, 0.06) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.project-trigger.active .project-3d-text::after {
  animation: sweep 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes sweep {
  0% { transform: translateY(-100%) rotate(-12deg); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateY(100%) rotate(-12deg); opacity: 0; }
}

.align-left .project-3d-text {
  transform: translateX(-140px) translateY(45px) translateZ(-80px) rotateY(22deg) scale(0.85);
}

.align-right .project-3d-text {
  transform: translateX(140px) translateY(45px) translateZ(-80px) rotateY(-22deg) scale(0.85);
}

/* Active State - Pure, Silky-Smooth 3D Transitions */
.project-trigger.active .project-3d-text {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0) translateY(0) translateZ(0) rotateY(0deg) rotateX(0deg) scale(1);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.85), 
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 35px rgba(255, 23, 68, 0.2);
}

.project-3d-text.tilt-active {
  animation: none !important;
  transition: transform 0.12s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Staggered smooth sliding entrance for card elements */
.project-trigger .title-3d {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-trigger .cat-3d {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-trigger .btn-3d {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  filter: blur(5px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              color 0.4s ease,
              box-shadow 0.4s ease;
}

/* Staggered activation delays */
.project-trigger.active .title-3d {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.25s;
}

.project-trigger.active .cat-3d {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.45s;
}

.project-trigger.active .btn-3d {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.65s;
}

.title-3d {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -1.2px;
  text-transform: uppercase;
}

.cat-3d {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 30px;
}

.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0b0b0e;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 4px 15px rgba(255, 255, 255, 0.15), 
    0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 3;
}

.btn-3d:hover {
  background: #ffffff;
  color: #0b0b0e;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.3), 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 23, 68, 0.2);
}

@media (max-width: 900px) {
  .title-3d { font-size: 2.2rem; }
  .align-left, .align-right { justify-content: center; }
  
  .align-left .project-3d-text, .align-right .project-3d-text {
    transform: translateY(40px) scale(0.9);
  }
  
  .align-left.active .project-3d-text, .align-right.active .project-3d-text {
    transform: translateY(0) scale(1);
    animation: none;
    opacity: 1;
    filter: blur(0);
  }
  
  .project-3d-text { text-align: center; padding: 35px 25px; }
}

/* ==================================================== */
/* INTERACTIVE CYBER-GLITCH PRELOADER (KRTOUCHE UNIVERSE)*/
/* ==================================================== */
body.loading-active {
  overflow: hidden !important;
  height: 100vh !important;
}

#cyber-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050203;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 23, 68, 0.15) 0%, transparent 60%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s;
  will-change: transform, opacity;
}

#cyber-preloader.fade-out {
  transform: translateY(-100%);
  opacity: 0;
}

/* CRT Scanline Glitch Overlays */
.preloader-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
}

.preloader-scanlines::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(255, 23, 68, 0.05) 50%);
  background-size: 100% 10px;
  z-index: 2;
  pointer-events: none;
  animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
  0% { opacity: 0.97; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}

.preloader-content {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* KRTOUCHE Glitch Logo */
.krt-glitch-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 5px;
  color: #fff;
  position: relative;
  text-shadow: 0.05em 0 0 rgba(255, 23, 68, 0.75),
               -0.025em -0.05em 0 rgba(0, 229, 255, 0.75),
               0.025em 0.05em 0 rgba(255, 255, 0, 0.75);
  animation: glitch-logo 1.5s infinite;
}

.krt-glitch-logo::before,
.krt-glitch-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050203;
}

.krt-glitch-logo::before {
  left: 2px;
  text-shadow: -2px 0 #ff0000;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.krt-glitch-logo::after {
  left: -2px;
  text-shadow: -2px 0 #00ffff, 2px 2px #ff0000;
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-logo {
  0% { text-shadow: 0.05em 0 0 rgba(255, 23, 68, 0.75), -0.025em -0.05em 0 rgba(0, 229, 255, 0.75); }
  14% { text-shadow: 0.05em 0 0 rgba(255, 23, 68, 0.75), -0.025em -0.05em 0 rgba(0, 229, 255, 0.75); }
  15% { text-shadow: -0.05em -0.025em 0 rgba(255, 23, 68, 0.75), 0.025em 0.025em 0 rgba(0, 229, 255, 0.75); }
  49% { text-shadow: -0.05em -0.025em 0 rgba(255, 23, 68, 0.75), 0.025em 0.025em 0 rgba(0, 229, 255, 0.75); }
  50% { text-shadow: 0.025em 0.05em 0 rgba(255, 23, 68, 0.75), 0.05em 0 0 rgba(0, 229, 255, 0.75); }
  99% { text-shadow: 0.025em 0.05em 0 rgba(255, 23, 68, 0.75), 0.05em 0 0 rgba(0, 229, 255, 0.75); }
  100% { text-shadow: -0.025em 0 0 rgba(255, 23, 68, 0.75), -0.025em -0.025em 0 rgba(0, 229, 255, 0.75); }
}

@keyframes glitch-anim {
  0% { clip: rect(15px, 9999px, 66px, 0); transform: skew(0.3deg); }
  5% { clip: rect(30px, 9999px, 5px, 0); transform: skew(0.1deg); }
  10% { clip: rect(85px, 9999px, 140px, 0); transform: skew(-0.5deg); }
  15% { clip: rect(125px, 9999px, 80px, 0); transform: skew(0.8deg); }
  20% { clip: rect(4px, 9999px, 98px, 0); transform: skew(0.2deg); }
  25% { clip: rect(80px, 9999px, 50px, 0); transform: skew(-0.3deg); }
  30% { clip: rect(110px, 9999px, 15px, 0); transform: skew(0.4deg); }
  35% { clip: rect(50px, 9999px, 115px, 0); transform: skew(-0.1deg); }
  40% { clip: rect(2px, 9999px, 90px, 0); transform: skew(0.6deg); }
  45% { clip: rect(95px, 9999px, 45px, 0); transform: skew(-0.4deg); }
  50% { clip: rect(15px, 9999px, 66px, 0); transform: skew(0.3deg); }
  55% { clip: rect(30px, 9999px, 5px, 0); transform: skew(0.1deg); }
  60% { clip: rect(85px, 9999px, 140px, 0); transform: skew(-0.5deg); }
  65% { clip: rect(125px, 9999px, 80px, 0); transform: skew(0.8deg); }
  70% { clip: rect(4px, 9999px, 98px, 0); transform: skew(0.2deg); }
  75% { clip: rect(80px, 9999px, 50px, 0); transform: skew(-0.3deg); }
  80% { clip: rect(110px, 9999px, 15px, 0); transform: skew(0.4deg); }
  85% { clip: rect(50px, 9999px, 115px, 0); transform: skew(-0.1deg); }
  90% { clip: rect(2px, 9999px, 90px, 0); transform: skew(0.6deg); }
  95% { clip: rect(95px, 9999px, 45px, 0); transform: skew(-0.4deg); }
  100% { clip: rect(15px, 9999px, 66px, 0); transform: skew(0.3deg); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(45px, 9999px, 120px, 0); transform: skew(-0.4deg); }
  5% { clip: rect(12px, 9999px, 85px, 0); transform: skew(0.5deg); }
  10% { clip: rect(75px, 9999px, 4px, 0); transform: skew(-0.2deg); }
  15% { clip: rect(115px, 9999px, 95px, 0); transform: skew(0.3deg); }
  20% { clip: rect(33px, 9999px, 18px, 0); transform: skew(-0.6deg); }
  25% { clip: rect(6px, 9999px, 130px, 0); transform: skew(0.1deg); }
  30% { clip: rect(90px, 9999px, 60px, 0); transform: skew(-0.3deg); }
  35% { clip: rect(140px, 9999px, 2px, 0); transform: skew(0.7deg); }
  40% { clip: rect(25px, 9999px, 105px, 0); transform: skew(-0.1deg); }
  45% { clip: rect(82px, 9999px, 40px, 0); transform: skew(0.4deg); }
  50% { clip: rect(45px, 9999px, 120px, 0); transform: skew(-0.4deg); }
  55% { clip: rect(12px, 9999px, 85px, 0); transform: skew(0.5deg); }
  60% { clip: rect(75px, 9999px, 4px, 0); transform: skew(-0.2deg); }
  65% { clip: rect(115px, 9999px, 95px, 0); transform: skew(0.3deg); }
  70% { clip: rect(33px, 9999px, 18px, 0); transform: skew(-0.6deg); }
  75% { clip: rect(6px, 9999px, 130px, 0); transform: skew(0.1deg); }
  80% { clip: rect(90px, 9999px, 60px, 0); transform: skew(-0.3deg); }
  85% { clip: rect(140px, 9999px, 2px, 0); transform: skew(0.7deg); }
  90% { clip: rect(25px, 9999px, 105px, 0); transform: skew(-0.1deg); }
  95% { clip: rect(82px, 9999px, 40px, 0); transform: skew(0.4deg); }
  100% { clip: rect(45px, 9999px, 120px, 0); transform: skew(-0.4deg); }
}

/* Terminal & Progress Elements */
.loader-terminal {
  width: 100%;
  background: rgba(15, 10, 12, 0.85);
  border: 1px solid rgba(255, 23, 68, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 23, 68, 0.05);
}

.terminal-line {
  font-family: monospace;
  font-size: 0.8rem;
  color: #a1a1aa;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.loader-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff1744, #ff5252);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.7);
  transition: width 0.25s ease-out;
}

.terminal-status {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff1744;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Interactive Enter Button */
.cyber-btn {
  width: 100%;
  padding: 22px 40px; /* Thicker, premium cyber padding */
  background: transparent;
  border: 2px solid rgba(255, 23, 68, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem; /* Larger font size */
  font-weight: 800;
  letter-spacing: 5px; /* Broad cinematic letter spacing */
  text-transform: uppercase;
  cursor: not-allowed;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.05);
}

.cyber-btn.active {
  background: rgba(255, 23, 68, 0.05);
  border-color: #ff1744;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.25);
}

.cyber-btn.active:hover {
  background: #ff1744;
  color: #050203;
  box-shadow: 0 0 35px rgba(255, 23, 68, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cyber-btn.active:active {
  transform: translateY(0);
}

.btn-glitch-text {
  position: relative;
  display: block;
}

.preloader-3d-container {
  width: 60vh;
  height: 60vh;
  max-width: 580px;
  max-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  filter: drop-shadow(0 0 45px rgba(255, 23, 68, 0.4));
  z-index: 10;
  pointer-events: none;
}

.preloader-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

#preloader-3d-canvas-container-left {
  left: 2vw;
  animation: hologram-float-left 5.2s ease-in-out infinite;
}

#preloader-3d-canvas-container-right {
  right: 2vw;
  animation: hologram-float-right 5.2s ease-in-out infinite;
}

.loader-terminal {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.preloader-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem; /* Significantly larger signature font */
  font-weight: 700;
  color: #ff1744;
  letter-spacing: 14px; /* Broader tracking */
  text-transform: uppercase;
  margin-top: -10px; /* Pull closer to the main logo */
  text-shadow: 0 0 15px rgba(255, 23, 68, 0.6);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.7; text-shadow: 0 0 8px rgba(255, 23, 68, 0.3); }
  100% { opacity: 1; text-shadow: 0 0 18px rgba(255, 23, 68, 0.8); }
}

@keyframes hologram-float-left {
  0% { transform: translateY(-50%) translateY(0px); }
  50% { transform: translateY(-50%) translateY(-20px); }
  100% { transform: translateY(-50%) translateY(0px); }
}

@keyframes hologram-float-right {
  0% { transform: translateY(-50%) translateY(-15px); }
  50% { transform: translateY(-50%) translateY(10px); }
  100% { transform: translateY(-50%) translateY(-15px); }
}

@media (max-width: 1400px) {
  .preloader-3d-container {
    width: 45vh;
    height: 45vh;
    max-width: 420px;
    max-height: 420px;
  }
  #preloader-3d-canvas-container-left {
    left: 1vw;
  }
  #preloader-3d-canvas-container-right {
    right: 1vw;
  }
}

@media (max-width: 1100px) {
  .preloader-3d-container {
    display: none !important;
  }
}

/* ==================================================== */
/* WEBGL FALLBACK & 2D PREMIUM CYBER-GRID SYSTEM        */
/* ==================================================== */

/* Outils d'affichage en mode rechange */
.webgl-fallback-indicator {
  display: none;
  position: absolute;
  top: 40px;
  left: 40px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff1744;
  background: rgba(3, 1, 2, 0.85);
  border: 1px solid rgba(255, 23, 68, 0.4);
  padding: 10px 18px;
  border-radius: 6px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.15), inset 0 0 10px rgba(255, 23, 68, 0.1);
  animation: hud-blink 2s infinite alternate;
}

@keyframes hud-blink {
  0% { opacity: 0.65; border-color: rgba(255, 23, 68, 0.3); }
  100% { opacity: 1; border-color: rgba(255, 23, 68, 0.85); }
}

.webgl-disabled .webgl-fallback-indicator {
  display: block;
}

.webgl-disabled #webgl-canvas {
  display: none !important;
}

/* Grille Tactique 2D Animée en CSS Pur */
.webgl-disabled .sticky-canvas-container {
  background-color: #030102 !important;
  position: relative;
  overflow: hidden;
}

/* Radial gradient pour l'immersion */
.webgl-disabled .sticky-canvas-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 23, 68, 0.05) 0%, #030102 85%);
  pointer-events: none;
  z-index: 2;
}

/* Grille animée en perspective rotateX */
.webgl-disabled .sticky-canvas-container::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -50%;
  width: 200%;
  height: 180%;
  background-image: 
    linear-gradient(rgba(255, 23, 68, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 23, 68, 0.14) 1.5px, transparent 1.5px);
  background-size: 55px 55px;
  background-position: center top;
  transform: perspective(600px) rotateX(65deg);
  transform-origin: center bottom;
  opacity: 0.75;
  mask-image: radial-gradient(ellipse at 50% 60%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, black 20%, transparent 80%);
  z-index: 1;
  /* Utilise la variable CSS --scroll-offset injectée en JS pour le scroll-sync */
  background-position-y: calc(var(--scroll-offset, 0px) * -1.2);
  /* Animation par défaut lente au repos */
  animation: grid-idle-flow 35s linear infinite;
  transition: background-position-y 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes grid-idle-flow {
  0% { background-position-x: 0; }
  100% { background-position-x: 1000px; }
}

/* 2D Preloader Fallback HUD Canvas replacement */
.cyber-2d-hud {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hud-circle-outer {
  position: absolute;
  width: 75%;
  height: 75%;
  animation: spin-clockwise 22s linear infinite;
  filter: drop-shadow(0 0 15px rgba(255, 23, 68, 0.35));
}

.hud-circle-inner {
  position: absolute;
  width: 52%;
  height: 52%;
  animation: spin-counter-clockwise 14s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 23, 68, 0.45));
}

.hud-glitch-text {
  position: absolute;
  bottom: 5%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff1744;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(255, 23, 68, 0.8);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

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

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