/* Base Styles */
:root {
  --background: #0a0a0a;
  --foreground: #ffffff;
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --photoshop-glow: rgba(0, 147, 252, 0.8);
  --premiere-glow: rgba(234, 119, 255, 0.8);
  --lightroom-glow: rgba(49, 168, 255, 0.8);
  --illustrator-glow: rgba(255, 164, 26, 0.8);
  --blender-glow: rgba(214, 107, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Surlignage (selection) en couleur primary */
::selection {
  background-color: var(--primary);
  color: white;
}

::-moz-selection {
  background-color: var(--primary);
  color: white;
}

/* Local Poppins font declarations */
@font-face {
  font-family: 'PoppinsRegular';
  src: url('../font/Poppins-Regular.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PoppinsSemibold';
  src: url('../font/Poppins-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PoppinsBold';
  src: url('../font/Poppins-Bold.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PoppinsBlack';
  src: url('../font/Poppins-Black.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'PoppinsBold';
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

body.home {
  overflow: hidden;
}

#fullpage {
  height: 100svh;           
  overflow: hidden;        
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height pour mobile */
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-800);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--gray-400);
}

.logo {
  width: 10rem;
  height: 3rem;
  position: relative;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  width: 100%;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--gray-400);
  margin-bottom: 3rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline {
  border: 1px solid var(--foreground);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), #ff7b7b);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239,68,68,0.18);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-hover), #ff5b5b);
  box-shadow: 0 8px 30px rgba(239,68,68,0.3);
  transform: translateY(-2px);
}

/* Skills */
.skills-section h2,
.tools-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.skill-bar {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  align-items: center;
}

.skill-header span:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.skill-percent {
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 600;
}

/* Détail des compétences (outils/langages) */
.skill-detail {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-style: italic;
}

.skill-progress {
  height: 0.6rem;
  background-color: rgba(255,255,255,0.03);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #ff7b7b 60%);
  border-radius: 9999px;
  transition: width 1s cubic-bezier(.2,.9,.2,1), box-shadow 0.3s ease;
  width: 0;
  box-shadow: 0 0 18px rgba(239,68,68,0.22);
  position: relative;
  will-change: width;
}

/* subtle highlight gloss */
.skill-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06), rgba(255,255,255,0));
  transform: translateX(-100%) skewX(-10deg);
  transition: transform 1s cubic-bezier(.2,.9,.2,1);
}

/* when fill changes, bring gloss into view (it moves with parent width) */
.skill-progress-fill[style]::after {
  transform: translateX(0) skewX(-10deg);
}

/* hover state: stronger glow */
.skill-bar:hover .skill-progress-fill {
  box-shadow: 0 0 26px rgba(239,68,68,0.32);
  transform: translateZ(0);
}

.skill-header .skill-percent {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255,255,255,0.06);
}

.adobe-icon:hover {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .modal-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Navigation Dots */
.nav-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-dot {
  width: 12px;
  height: 12px;
  position: relative;
  cursor: pointer;
}

.nav-dot::before,
.nav-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dot::before {
  width: 8px;
  height: 8px;
  background-color: var(--gray-500);
  z-index: 2;
}

.nav-dot::after {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 2px solid transparent;
  z-index: 1;
}

/* Effet de pulsation pour le point actif */
@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.7);
  }
}

@keyframes pulsePoint {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* État au survol */
.nav-dot:hover::before {
  background-color: var(--primary);
  transform: translate(-50%, -50%) scale(1.2);
}

.nav-dot:hover::after {
  border-color: var(--primary);
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 0.5;
}

/* État actif */
.nav-dot.active::before {
  background-color: var(--primary);
  animation: pulsePoint 2s infinite ease-in-out;
}

.nav-dot.active::after {
  border-color: var(--primary);
  animation: pulseRing 2s infinite ease-in-out;
}

/* Effet de trace lumineuse */
.nav-dot.active::after {
  box-shadow: 0 0 15px var(--primary);
}

/* Sections */
.section {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height pour mobile */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Three.js canvas holder sits behind section content */
.threejs-canvas-holder {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.threejs-canvas-holder canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section-bg img,
.section-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-bg picture {
  width: 100%;
  height: 100%;
}

.section-bg picture img {
  display: none;
}

/* Video de fond */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section-content {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  text-align: left;
}

.section-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-content p {
  font-size: 1.25rem;
  color: var(--gray-300);
}

.section-btn {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 10;
}

/* Hero Section */

.hero-content {
  z-index: 10;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.social-links {
  position: absolute;
  bottom: 3rem;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--foreground);
  color: var(--background);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: var(--gray-200);
}

.social-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.scroll-down {
  position: absolute;
  bottom: 1rem;
  animation: bounce 2s infinite;
  z-index: 10;
  color: var(--foreground);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Animated Background */
.animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--background);
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(4rem);
  height: 80vh;
  width: 80vh;
  background: radial-gradient(
    circle,
    #000000 0%,
    #1a0505 15%,
    var(--primary) 40%,
    #ff7b7b 60%,
    rgba(239, 68, 68, 0.3) 85%,
    transparent 100%
  );
  animation: float-pulse 12s ease-in-out infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.hero-badges {
  position: absolute;
  bottom: 3rem;
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.badge svg { width: 18px; height: 18px; }

.badge:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.badge-cta {
  border-color: rgba(239, 68, 68, 0.35);
}

/* light-sweep reuse */
.badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    transparent,
    transparent,
    rgba(255, 255, 255, 0.158),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02),
    transparent,
    transparent
  );
  transform: translateX(-150%) rotate(-2deg);
  pointer-events: none;
}

.badge:hover::before {
  animation: light-sweep 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


.animated-line {
  position: absolute;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, transparent, white, transparent);
  opacity: 0.2;
}


@keyframes float-slow {
  0% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-30px) translateX(30px);
  }

  50% {
    transform: translateY(20px) translateX(-25px);
  }

  75% {
    transform: translateY(-25px) translateX(-20px);
  }

  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes float-medium {
  0% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-15px) translateX(15px);
  }

  50% {
    transform: translateY(8px) translateX(-10px);
  }

  75% {
    transform: translateY(-10px) translateX(-8px);
  }

  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes float-fast {
  0% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-10px) translateX(10px);
  }

  50% {
    transform: translateY(5px) translateX(-8px);
  }

  75% {
    transform: translateY(-8px) translateX(-5px);
  }

  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes float-pulse {
  0% {
    transform: translate(-50%, -50%) translateY(0) translateX(0) scale(1);
  }

  25% {
    transform: translate(-50%, -50%) translateY(-20px) translateX(15px) scale(1.1);
  }

  50% {
    transform: translate(-50%, -50%) translateY(10px) translateX(-15px) scale(0.95);
  }

  75% {
    transform: translate(-50%, -50%) translateY(-15px) translateX(-10px) scale(1.05);
  }

  100% {
    transform: translate(-50%, -50%) translateY(0) translateX(0) scale(1);
  }
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.scan-slow {
  animation: scan 20s linear infinite;
}

.scan-medium {
  animation: scan 15s linear infinite;
}

.scan-fast {
  animation: scan 10s linear infinite;
}

/* Projects Section */
.projects-title {
  font-size: 10rem;
  font-weight: 100;
  letter-spacing: 0.5rem;
  color: #fff;
  opacity: 0.3;
  position: absolute;
  z-index: 1;
}

/* Isolate blending in the Projects section to limit compositing cost */
#projects {
  isolation: isolate;
}

.footer {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-projet {
  position: relative;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Contact Cards Wrapper */
.contact-cards-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Social Buttons Container - maintenant en premier */
.social-buttons-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  order: 1;
}

/* Email Card - maintenant en second */
.email-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: background 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  order: 2;
}

.email-card .email-icon {
  min-width: 36px;
  min-height: 36px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.email-card .email-text {
  white-space: nowrap;
}

.email-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.email-card:hover .email-icon {
  transform: scale(1.1);
}

/* Social Buttons with Expand Effect */
.social-buttons-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  order: 1;
}

.social-expand-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 70px;
  height: 70px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 65px;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  overflow: hidden;
  transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

/* Light-sweep overlay for email card and social buttons */
.email-card::before,
.social-expand-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    transparent,
    transparent,
    rgba(255, 255, 255, 0.158),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02),
    transparent,
    transparent
  );
  transform: translateX(-150%) rotate(-2deg);
  pointer-events: none;
}

.email-card:hover::before,
.social-expand-btn:hover::before {
  animation: light-sweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


.social-expand-btn .social-icon {
  min-width: 28px;
  min-height: 28px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.social-expand-btn .social-text {
  margin-left: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.social-expand-btn:hover {
  width: 280px;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.social-expand-btn:hover .social-icon {
  transform: scale(1.1);
}

.social-expand-btn:hover .social-text {
  opacity: 1;
  transform: translateX(0);
}

/* Social Button Colors */
.linkedin-btn:hover {
  background: rgba(0, 119, 181, 0.2);
  border-color: rgba(0, 119, 181, 0.5);
}

.instagram-btn:hover {
  background: rgba(225, 48, 108, 0.2);
  border-color: rgba(225, 48, 108, 0.5);
}

.youtube-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
}

/* Responsive adjustments for contact cards */
@media (max-width: 768px) {
  .contact-cards-wrapper {
    gap: 1.5rem;
  }

  .email-card {
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
  }

  .email-card .email-icon {
    min-width: 24px;
    min-height: 24px;
  }

  .social-buttons-container {
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .social-expand-btn {
    width: 280px;
    height: 60px;
    padding: 0 20px;
    justify-content: flex-start;
    transition: none;
  }

  .social-expand-btn .social-icon {
    min-width: 28px;
    min-height: 28px;
  }
  
  .social-expand-btn .social-text {
    opacity: 1;
    transform: translateX(0);
    margin-left: 15px;
  }
  
  /* Couleurs appliquées directement sur mobile */
  .linkedin-btn {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.5);
  }

  .instagram-btn {
    background: rgba(225, 48, 108, 0.2);
    border-color: rgba(225, 48, 108, 0.5);
  }

  .youtube-btn {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
  }
}

/* Profile Page */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;

}

@media (min-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-text p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.profile-photo {
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  background-color: var(--background);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive image de profil */
@media (max-width: 768px) {
  .profile-photo {
    max-width: 300px;
    max-height: 300px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .profile-photo {
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
}

.quote {
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-400);
  margin-bottom: 3rem;
}

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.adobe-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.adobe-icon img {
  width: 2.5rem;
  height: 2.5rem;
  transition: filter 0.3s ease;
}

.adobe-icon.photoshop:hover {
  box-shadow: 0 0 15px var(--photoshop-glow);
}

.adobe-icon.premiere:hover {
  box-shadow: 0 0 15px var(--premiere-glow);
}

.adobe-icon.lightroom:hover {
  box-shadow: 0 0 15px var(--lightroom-glow);
}

.adobe-icon.illustrator:hover {
  box-shadow: 0 0 15px var(--illustrator-glow);
}


.adobe-icon.aftereffect:hover {
  box-shadow: 0 0 15px rgba(15, 0, 146, 0.8);
}

.adobe-icon.blender:hover {
  box-shadow: 0 0 15px var(--blender-glow);
}

/* Timeline avec animations et effets visuels modernes */
.timeline-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(239,68,68,0.1);
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.timeline-column h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 0.5rem;
}

/* Ligne verticale avec glow */
.timeline::before {
  content: "";
  position: absolute;
  left: 2;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, 
    transparent, 
    var(--primary) 15%, 
    var(--primary) 85%, 
    transparent
  );
  box-shadow: 0 0 15px rgba(239,68,68,0.3);
  border-radius: 1px;
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: top;
  transition: transform 1s cubic-bezier(.2,.9,.2,1), opacity 1s ease;
}

.timeline.in-view::before {
  opacity: 1;
  transform: scaleY(1);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 2rem;
  transform: translateX(-10px);
  opacity: 0;
  transition: all 600ms cubic-bezier(.2,.9,.2,1);
}

.timeline.in-view .timeline-item {
  transform: translateX(0);
  opacity: 1;
}

/* Animation en cascade des items */
.timeline.in-view .timeline-item:nth-child(1) { transition-delay: 200ms; }
.timeline.in-view .timeline-item:nth-child(2) { transition-delay: 300ms; }
.timeline.in-view .timeline-item:nth-child(3) { transition-delay: 400ms; }
.timeline.in-view .timeline-item:nth-child(4) { transition-delay: 500ms; }

/* Point avec effet de pulse */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), #ff7b7b);
  box-shadow: 0 0 10px rgb(175, 28, 28);
  transform: scale(0.6);
  transition: all 400ms cubic-bezier(.2,.9,.2,1);
}

/* Anneau autour du point */
.timeline-item::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 0px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,0.15);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.timeline.in-view .timeline-item::before {
  transform: scale(1);
}

/* Contenu avec hover effect */
.timeline-content {
  position: relative;
  transition: transform 300ms ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(5px);
}

.timeline-content h4 {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Date avec style moderne */
.timeline-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  position: absolute;
  right: 0;
  top: 0.2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  background: rgba(239,68,68,0.1);
  backdrop-filter: blur(8px);
  transition: all 300ms ease;
}

.timeline-item:hover .timeline-date {
  background: rgba(239,68,68,0.15);
  transform: scale(1.05);
}


/* Social Section */
.social-section {
  background-color: var(--gray-900);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.social-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.social-links-large {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--foreground);
  color: var(--background);
  border-radius: 50%;
  transition: background-color 0.3s;
}

.social-link-large:hover {
  background-color: var(--gray-200);
}

.cv-btn {
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--gray-300);
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  background-color: var(--gray-800);
  transition: all 0.3s;
}

.category-btn:hover {
  background-color: var(--gray-700);
}

.category-btn.active {
  background-color: var(--primary);
  color: var(--foreground);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background-color: var(--gray-900);
  border-radius: 0.5rem;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--foreground);
  border-radius: 50%;
  padding: 0.5rem;
  transition: background-color 0.3s;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 1.5rem 1.5rem 0;
}

.modal-content p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .modal-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 0.25rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-link-container {
  padding: 0 1.5rem 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--primary-hover);
}

/* Image Modal */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 90vh;
}

.image-modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Project Card for Carousel */
.carousel-card {
  flex-shrink: 0;
  width: 280px;
  padding: 0 0.5rem;
  margin-right: 0.5rem;
}

.carousel-card-inner {
  background-color: var(--gray-900);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
}

.carousel-image {
  aspect-ratio: 16 / 9;
  position: relative;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  padding: 0.75rem;
}

.carousel-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-description {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-link {
  display: inline-block;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: var(--foreground);
  border-radius: 0.25rem;
  transition: background-color 0.3s;
}

.carousel-link:hover {
  background-color: var(--primary-hover);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-content {
    top: 6rem;
  }
  
  .section-content h2 {
    font-size: 2rem;
  }

  .section-content p {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .projects-title {
    font-size: 5rem;
  }
  
  /* Masquer les 3 premiers badges et centrer le badge CTA */
  .hero-badges {
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .badge:not(.badge-cta) {
    display: none;
  }
  
  /* Changer l'image de la section profil sur mobile */
  #photography .section-bg img {
    content: url('../images/images-projets/lotus_PP_resultat.webp');
  }
}

@media (max-width: 640px) {
  .section-content {
    top: 5.5rem;
  }
  
  .section-content h2 {
    font-size: 1.75rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .projects-title {
    font-size: 3.5rem;
  }

  .timeline-date {
    position: static;
    display: block;
    margin-top: 0.25rem;
  }
}




/* Styles pour les cartes des projets principaux - Layout horizontal pleine largeur */
.project-box {
  position: relative;
  width: 100%;
  height: 280px;                    /* Hauteur fixe pour format horizontal */
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  margin-bottom: 3rem;              /* Augmenté de 2rem à 3rem pour laisser de l'espace au hover */
  margin-top: 0.5rem;               /* Petit espace en haut aussi */
  background: rgba(17, 25, 40, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;                    /* Flex pour layout horizontal */
  flex-direction: row;
}

.project-box:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

/* Styles pour la grille de projets - DEUX COLONNES */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Carte de projet - Format vertical/carré */
.project-box {
  display: flex;
  flex-direction: column;
  background: rgba(17, 25, 40, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  min-height: 450px;
}

/* Image prend maintenant toute la largeur et 60% de la hauteur */
.project-image {
  width: 100%;
  height: 60%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

/* Styles pour l'image */
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zoom de l'image au survol */
.project-box:hover .project-image img {
  transform: scale(1.08);
}

/* Conteneur du titre et de la description - prend 40% de la hauteur */
.project-info {
  width: 100%;
  height: 40%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  background: transparent;
  color: white;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  position: relative;
}

/* Overlay gradient sur l'info au hover */
.project-box:hover .project-info {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05), transparent);
}

/* Titre et description */
.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.project-description {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-radius: 12px;
}

/* Barre rouge - animation de gauche à droite en haut */
.project-info::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(239, 68, 68, 0.3));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Au hover, la barre s'étend vers la droite */
.project-box:hover .project-info::before {
  width: 100%;
}

/* Responsive : sur mobile et tablette */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .project-box {
    min-height: 400px;
  }
  
  .project-image {
    min-height: 240px;
  }
  
  .project-info {
    padding: 1.5rem;
  }
  
  .project-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
}

/* Tabs — style pour la section Projets (onglets) */
.projects-tabs {
  margin-top: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 4rem;
  justify-content: center;
  background: rgba(17, 25, 40, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 2rem;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.tab-btn {
  background: rgba(255,255,255,0.03);
  color: var(--foreground);
  border: 1px solid transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.4s ease;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.06);
}

.tab-btn.active {
  background: linear-gradient(180deg, var(--primary), #ff7b7b);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239,68,68,0.18);
  transform: translateY(-2px);
  border: 1px solid rgba(255,255,255,0.06);
}

.tabs-panels {
  min-height: 220px;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* smooth fade/slide */
.fade-in {
  animation: tab-fade-in 420ms cubic-bezier(.2,.9,.2,1) both;
}
.fade-out {
  animation: tab-fade-out 260ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes tab-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(6px); }
}

/* Make grid responsive inside tabs */
/* .tab-content .projects-grid { gap: 1rem; } */

@media (max-width: 768px) {
  .tabs-nav { 
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .tab-btn { 
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .tabs-nav {
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
  }
  .tab-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
}





/* Styles spécifiques à la page photographie */
.page-subtitle {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  color: var(--foreground);
}

/* Styles pour les projets principaux */
.main-projects {
  margin-bottom: 4rem;
}

/* Styles pour la galerie de photos individuelles */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
  /* Légère augmentation au survol */
}



/* ====== Contact Section ====== */

.bloc-contact {
  background-color: #11182700; 
  border: 2px solid var(--primary);
  text-align: center;
  padding: 80px 20px;
  color: #fff;
  border-radius: 15px;
  box-shadow: inset 0 0 30px rgba(239, 68, 68, 0.15),
              inset 0 0 60px rgba(239, 68, 68, 0.08);
}

.titre-contact {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.desc-contact {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}

.cartes-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.carte-contact {
  flex: 0 1 300px;
  width: 300px;
  min-height: 220px;
  background-color: #2b2b2b;
  border-radius: 15px;
  padding: 40px 20px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;

  display: flex;             /* Centrage interne */
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.carte-contact svg {
  margin-bottom: 20px;
  width: 50px;
  height: 50px;
  transition: filter 0.3s ease;
}

.carte-contact h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.carte-contact p {
  font-size: 1rem;
  word-break: break-all;
}

/* Couleurs icônes */
.carte-mail svg {
  stroke: #f44336; /* Rouge */
}

.carte-insta svg {
  stroke: #E1306C; /* Rose Instagram */
}

.carte-linkedin svg {
  stroke: #0A66C2; /* Bleu LinkedIn */
}

/* Hover effet */
.carte-contact:hover {
  transform: scale(1.05);
  background-color: #374151;
}

.carte-mail:hover {
  box-shadow: 0 0 15px #f44336;
}

.carte-insta:hover {
  box-shadow: 0 0 15px #E1306C;
}

.carte-linkedin:hover {
  box-shadow: 0 0 15px #0A66C2;
}

.carte-contact:hover svg {
  filter: brightness(1.2);
}

/* ===== Boutons ===== */
.boutons-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Bouton Me contacter : fond rouge */
.btn-rouge {
  background-color: #f44336;
  color: #fff;
}

.btn-rouge:hover {
  background-color: #ff5a4c;
}

/* Bouton CV : contour blanc */
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .cartes-contact {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .carte-contact {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    min-height: 200px;
  }
}

section:not(.section) {
  margin-top: 5vh;
}
/* ====== Navbar Styles ====== */
.navbar {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 25, 40, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 2rem;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    transparent,
    transparent,
    rgba(255, 255, 255, 0.158),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02),
    transparent,
    transparent
  );
  transform: translateX(-100%) rotate(-2deg);
  pointer-events: none;
  transition: none;
}

.navbar.sweep-forward::before {
  /* play sweep left->right once */
  animation: light-sweep 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes light-sweep {
  0% {
    transform: translateX(-150%) rotate(-2deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    transform: translateX(120%) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: translateX(120%) rotate(2deg);
    opacity: 0;
  }
}

.navbar.sweep-reverse::before {
  /* play sweep right->left once */
  animation: light-sweep-reverse 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes light-sweep-reverse {
  0% {
    transform: translateX(120%) rotate(2deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    transform: translateX(-150%) rotate(-2deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-150%) rotate(-2deg);
    opacity: 0;
  }
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  position: relative;
}

.navbar ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.4s ease;
  letter-spacing: 0.5px;
  position: relative;
}

.navbar ul li a.active {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary);
  background: rgba(239, 68, 68, 0.1);
}

.navbar ul li a:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsive navbar */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.6rem 1.5rem;
    top: 1.5rem;
  }

  .navbar ul {
    gap: 1.5rem;
  }

  .navbar ul li a {
    font-size: 0.rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
    top: 1rem;
    border-radius: 40px;
  }

  .navbar ul {
    gap: 1rem;
  }

  .navbar ul li a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    letter-spacing: 0.3px;
  }
}


/* ====== Navbar Styles ====== */

html {
  scroll-behavior: auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*Pointeur (curseur animé) */
.circle{
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background-color: black;
  position: fixed; /* rester lié à la fenêtre */
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 11000; /* au-dessus de la navbar (1000) et des autres éléments */
  pointer-events: none; /* ne bloque pas les clics/hover */
  transition: transform 120ms linear, width 120ms linear, height 120ms linear, opacity 120ms linear;
}

/* ============================================
   Project Detail Styles (from project-file.css)
   ============================================ */

/* Project Hero Section */
.project-hero {
  position: relative;
  height: 70vh;
  width: 100%;
  overflow: hidden;
}

.project-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  z-index: 1;
}

.project-hero-content {
  max-width: 800px;
}

.project-category {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Project Details */
.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-description {
  color: var(--foreground);
}

.project-description h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.project-description p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--gray-300);
}

.project-details {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .project-details {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.detail-item ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.detail-item ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray-300);
}

.detail-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Project Tools and Quote */
.tools-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  background-color: var(--gray-800);
  color: var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.project-quote {
  margin: 2.5rem 0;
  padding: 2rem;
  background-color: var(--gray-900);
  border-left: 4px solid var(--primary);
  border-radius: 0.25rem;
}

.project-quote blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gray-300);
  margin: 0;
}

/* Project Gallery */
.project-gallery-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item.active {
  grid-column: span 3;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--primary);
}

.gallery-item:not(.active) {
  aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
  .project-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item.active {
    grid-column: span 3;
  }
}

.gallery-item {
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project Process Section */
.project-process {
  margin: 4rem 0;
  padding: 3rem;
  background-color: var(--gray-900);
  border-radius: 1rem;
}

.project-process h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--foreground);
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.step-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-400);
}

/* Project Results and Stats */
.project-results {
  margin: 4rem 0;
}

.project-results h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.project-results p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: var(--gray-300);
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  background-color: var(--gray-900);
  border-radius: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-400);
}

/* Project Navigation */
.next-project {
  margin: 5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
}

.next-project-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 1.5rem;
  background-color: var(--gray-900);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.next-project-link:hover {
  background-color: var(--gray-800);
  transform: translateY(-5px);
}

.next-project-link span {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.next-project-link h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.next-project-link svg {
  color: var(--primary);
}

/* Project Footer */
.project-footer {
  background-color: var(--gray-900);
  padding: 4rem 2rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  width: 120px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--gray-300);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-copyright {
  color: var(--gray-500);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 2rem;
}

/* Single Gallery Section */
.project-gallery-section.single-gallery .project-gallery {
  display: flex;
  justify-content: center;
}

.project-gallery-section.single-gallery .gallery-item {
  width: 300px;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.project-gallery-section.single-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1010;
  user-select: none;
  transition: background-color 0.2s;
}

.lightbox-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow.left {
  left: 20px;
}

.lightbox-arrow.right {
  right: 20px;
}

/* Responsive Adjustments for Projects */
@media (max-width: 768px) {
  .project-hero {
    height: 50vh;
  }

  .project-hero-overlay {
    padding: 2rem;
  }

  .project-title {
    font-size: 2rem;
  }

  .project-container {
    padding: 2rem 1rem;
  }

  .results-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO plein écran + inversion de couleurs sur le texte ===== */

/* Évite le max-width/marges d'un autre wrapper de s'appliquer au hero */
.project-hero {
  background-size: cover;        /* pour qu’elle remplisse l’espace */
  background-position: center;   /* centrage */
  background-attachment: fixed;  /* <-- c’est ça qui la rend fixe */
  height: 100vh;              /* plein écran */
  position: relative;
  width: 100%;
  height: 100vh;                 /* plein écran */
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0;
  isolation: isolate;            /* important pour un blending propre */
}

.hero1{
  background-image: url(../images/images-projets/RENDERED_resultat.webp);
}
.hero2{
  background-image: url(../images/images-projets/Mockup1.webp);
  background-size: cover; 
}
.hero3{
  background-image: url(../images/images-projets/ChainTalesCover.png);
  background-size: cover;
  background-position: center;
}
.hero4{
  background-image: url(../images/images-projets/galerie4_resultat_resultat.webp);
  background-size: cover;
  background-position: center;
}
.hero6{
  background-image: url(../images/images-projets/WordPress.png);
  background-size: cover;
  background-color: white;
}
.hero7{
  background-image: url(../images/images-projets/StJeanFos.webp);
  background-size: cover;
  background-color: white;
}

/* Image de fond */
.project-hero .hero-img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Assombrir un peu, mais PAS TROP, sinon difference restera blanc */
  filter: brightness(80%);
}

/* Overlay plus léger pour laisser de la matière sous le texte */
.project-hero .hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);  /* 0.25 ~ 0.35 max, pas plus */
  z-index: 1;
  pointer-events: none;
}

/* Contenu centré */
.project-hero .hero-content-projets {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  text-align: center;
  padding: 2rem;
  background: transparent;       /* pas de fond ici */
}

/* IMPORTANT: pour l’inversion, pas d’ombre portée qui "salit" le blend */
.project-hero .hero-title,
.project-hero .hero-subtitle {
  text-shadow: none;             /* neutralise les shadows plus haut */
}

/* Inversion dynamique */
.hero-title {
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 10rem);
  text-transform: uppercase;            
  mix-blend-mode: difference;
}

.hero-subtitle {
  margin-top: .35rem;
  font-weight: 500;
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: white;
}

/* Responsive (clamp gère déjà beaucoup) */
@media (max-width: 800px) {
  .hero-title   { font-size: clamp(1.8rem, 9vw, 3rem); }
  .hero-subtitle{ font-size: clamp(.95rem, 4.2vw, 1.1rem); }
}

/* ===========================
   SECTION DESCRIPTION PROJET
   =========================== */

.project-description {
  width: 100%;
  background: #0f0f0f; /* même ton que le reste de ton site */
  color: #fff;
  padding: 5rem 10%;
  display: flex;
  justify-content: center;
  overflow-x: hidden; /* Empêche le débordement horizontal */
}

.project-description-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes */
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1300px;
}

.project-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #ffd900; /* ton jaune signature */
  word-wrap: break-word; /* Casse les mots longs si nécessaire */
}

.project-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.2rem;
  word-wrap: break-word;
}

/* Liste de fonctionnalités du projet */
.project-features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.project-features-list li {
  position: relative;
  padding-left: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.2rem;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.3);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.project-features-list li::before {
  content: '✓';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.project-features-list li:last-child {
  margin-bottom: 0;
}

/* Bloc image et iframe */
.project-illustration {
  width: 100%;
  position: relative;
}

.project-illustration img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Container responsive pour iframe YouTube */
.project-illustration iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border: none;
}

/* Image cliquable vers site web */
.project-website-preview {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-website-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project-website-preview:hover img {
  transform: scale(1.05);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.preview-overlay svg {
  stroke: var(--primary);
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.preview-overlay span {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-website-preview:hover .preview-overlay {
  opacity: 1;
}

/* Responsive : passe en colonne unique */
@media (max-width: 900px) {
  .project-description {
    padding: 3rem 5%; /* Réduit le padding sur mobile */
  }

  .project-description-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-text {
    text-align: left;
  }

  .project-text h2 {
    font-size: 1.5rem;
  }

  .project-text p {
    font-size: 1rem;
  }

  .project-illustration {
    width: 100%;
    max-width: 100%;
  }

  .project-illustration img,
  .project-illustration iframe {
    max-width: 100%;
    margin: 0;
    border-radius: 8px;
  }
}

/* Mobile très petit */
@media (max-width: 480px) {
  .project-description {
    padding: 2rem 1rem; /* Encore moins de padding sur très petit écran */
  }

  .project-text h2 {
    font-size: 1.3rem;
  }

  .project-text p {
    font-size: 0.95rem;
  }
}

/* ====== SECTION VIDÉO COMPLÈTE ====== */
.project-video-section {
  width: 100%;
  background: var(--background);
  padding: 5rem 10%;
  display: flex;
  justify-content: center;
}

.project-video-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.project-video-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.video-wrapper {
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .project-video-section {
    padding: 3rem 5%;
  }
  
  .project-video-section .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .project-video-section {
    padding: 2rem 1rem;
  }
  
  .project-video-section .section-title {
    font-size: 1.4rem;
  }
}

/* ====== SECTION PDF INTÉGRÉ ====== */
.project-pdf-section {
  width: 100%;
  padding: 6rem 2rem;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-pdf-container {
  width: 100%;
  max-width: 1200px;
}

.project-pdf-container .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}

.pdf-wrapper {
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.pdf-wrapper iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

/* Responsive PDF */
@media (max-width: 900px) {
  .project-pdf-section {
    padding: 3rem 5%;
  }
  
  .project-pdf-container .section-title {
    font-size: 1.6rem;
  }
  
  .pdf-wrapper iframe {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .project-pdf-section {
    padding: 2rem 1rem;
  }
  
  .project-pdf-container .section-title {
    font-size: 1.4rem;
  }
  
  .pdf-wrapper iframe {
    height: 500px;
  }
}

.project-tools{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-cta{
  padding: 2vw;
   width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ====== AVANT/APRÈS SLIDER (img-comparison-slider) ====== */
.before-after-section {
  width: 100%;
  padding: 6rem 2rem;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
}

.before-after-container {
  width: 100%;
  max-width: 1400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* Personnalisation du Web Component */
img-comparison-slider {
  --divider-width: 3px;
  --divider-color: var(--primary);
  --default-handle-opacity: 1;
  --default-handle-width: 60px;
  width: 100%;
  border-radius: 16px;
  position: relative;
}

img-comparison-slider img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Personnalisation de la poignée (handle) */
img-comparison-slider [slot="handle"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  background: var(--primary-hover);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
  transition: all 0.3s ease;
  cursor: pointer !important;
  position: relative;
}

/* Forcer le hover avec !important */
img-comparison-slider:hover [slot="handle"],
img-comparison-slider [slot="handle"]:hover {
  transform: scale(1.3) !important;
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.7) !important;
  cursor: pointer !important;
  background: var(--primary);;
}

/* Centrage parfait du SVG des flèches */
img-comparison-slider [slot="handle"] svg {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer !important;
}

/* Responsive */
@media (max-width: 768px) {
  .before-after-section {
    padding: 3rem 1rem;
  }
  
  .before-after-container {
    border-radius: 12px;
  }
  
  img-comparison-slider [slot="handle"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  img-comparison-slider [slot="handle"] svg {
    width: 20px;
    height: 20px;
  }
}

/* ====== slider comparaison ====== */

/* ====== GALERIE DE MOCKUPS ====== */
.mockups-gallery-section {
  width: 100%;
  padding: 6rem 2rem;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockups-gallery-container {
  width: 100%;
  max-width: 1400px;
}

.mockups-gallery-container .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--gray-100);
}

.mockups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.mockup-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.mockup-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.3);
}

.mockup-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mockup-item:hover::after {
  opacity: 1;
}

.mockup-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Icône zoom sur hover */
.mockup-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.mockup-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Responsive pour la galerie */
@media (max-width: 900px) {
  .mockups-gallery-section {
    padding: 4rem 1.5rem;
  }
  
  .mockups-grid {
    gap: 1.5rem;
  }
  
  .mockups-gallery-container .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .mockups-gallery-section {
    padding: 3rem 1rem;
  }
  
  .mockups-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .mockup-item {
    aspect-ratio: 4 / 3;
  }
  
  .mockups-gallery-container .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ====== LIGHTBOX POUR MOCKUPS ====== */
.mockup-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.mockup-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--primary-hover);
  border: none;
  color: white;
  font-size: 1rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: var(--primary-hover);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-hover);
  border: none;
  color: white;
  font-size: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 80%;
  }
  
  .lightbox-close {
    top: -40px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 20px;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

/* ========================================
   GALERIE PHOTO - MASONRY LAYOUT
======================================== */

/* Hero Section */
.gallery-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.gallery-hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  font-family: 'PoppinsBold';
}

.gallery-hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-400);
  line-height: 1.7;
  font-family: 'PoppinsRegular';
}

/* Gallery Section */
.gallery-section {
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Masonry Grid */
.grid {
  margin: 0 auto;
}

/* Grid sizer pour définir la largeur des colonnes */
.grid-sizer,
.grid-item {
  width: calc(25% - 15px);
}

.grid-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--gray-900);
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 92%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 45px;
  color: white;
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
  user-select: none;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .grid-sizer,
  .grid-item {
    width: calc(33.333% - 15px);
  }
}

@media (max-width: 1200px) {
  .grid-sizer,
  .grid-item {
    width: calc(33.333% - 15px);
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .gallery-hero-title {
    font-size: 2rem;
  }

  .gallery-hero-subtitle {
    font-size: 1rem;
  }

  .gallery-section {
    padding: 0 1.5rem 3rem;
  }

  .grid-sizer,
  .grid-item {
    width: calc(50% - 12px);
  }

  .grid-item {
    margin-bottom: 12px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 35px;
  }

  /* Object-fit contain pour mobile avec légère augmentation */
  .section-bg img,
  .section-bg video {
    object-fit: contain;
    transform: scale(1.15);
  }

  .background-video {
    display: none;
  }

  .section-bg picture img {
    display: block;
    object-fit: cover;
    transform: scale(1.15);
  }

  .section-bg img {
    object-fit: cover;

  }
}

@media (max-width: 480px) {
  .gallery-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .gallery-hero-title {
    font-size: 1.75rem;
  }

  .gallery-section {
    padding: 0 1rem 2rem;
  }

  .grid-sizer,
  .grid-item {
    width: 100%;
  }

  .lightbox img {
    max-width: 95%;
  }
}
