/* === Variables === */
:root {
  --bg: #0f1115;
  --fg: #ffffff;
  --muted: #a0a0a0;
  --acc: #ffffff;
  --acc-hover: #f0f0f0;
  --border: rgba(255, 255, 255, 0.2);
  --shadow: rgba(0, 0, 0, 0.3);
  --card-bg: rgba(255, 255, 255, 0.05);
}

/* === Reset & Base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

a {
  color: var(--acc);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--acc-hover);
}

/* === Header & Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.site-header .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Grille responsive pour les services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 colonnes égales */
  gap: 2rem;
  margin-top: 4rem;
}

.services-grid .card {
  grid-column: span 2; /* Chaque carte occupe 2 colonnes sur 6 */
  min-width: 280px;
  max-width: 350px;
  margin: 0 auto; /* Centre les cartes */
  text-align: center; /* Centre le texte */
  padding: 1rem; /* Réduit encore plus le padding */
  overflow: hidden; /* Empêche le débordement */
  word-wrap: break-word; /* Force le retour à la ligne */
}

.services-grid .card h2 {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 1.4rem; /* Réduit la taille du titre */
  line-height: 1.3;
}

.services-grid .card p {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 0.9rem; /* Réduit la taille du texte */
  line-height: 1.4;
}

.services-grid .card ul {
  text-align: left; /* Les listes restent alignées à gauche pour la lisibilité */
  margin: 0.8rem auto;
  max-width: 220px; /* Réduit la largeur maximale */
  padding-left: 1rem;
}

.services-grid .card li {
  margin-bottom: 0.4rem;
  font-size: 0.85rem; /* Réduit la taille des listes */
  line-height: 1.3;
}

/* Réduction de la taille des icônes dans les cartes services */
.services-grid .card h2 {
  font-size: 1.4rem; /* Réduit la taille du titre */
}

.services-grid .card h2::before {
  font-size: 1.2rem; /* Réduit la taille des emojis/icônes */
  margin-right: 0.5rem;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur tablette */
  }
  
  .services-grid .card {
    grid-column: span 1; /* Chaque carte occupe 1 colonne sur 3 */
    min-width: 260px;
    max-width: 320px;
  }
  
  .services-grid .card h2 {
    font-size: 1.2rem; /* Plus petit sur tablette */
  }
  
  .services-grid .card p {
    font-size: 0.85rem; /* Plus petit sur tablette */
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
  }
  
  .services-grid .card {
    grid-column: span 1; /* Chaque carte occupe 1 colonne sur 2 */
    min-width: 240px;
    max-width: 300px;
    padding: 0.8rem; /* Encore plus petit sur mobile */
  }
  
  .services-grid .card h2 {
    font-size: 1.1rem; /* Plus petit sur mobile */
  }
  
  .services-grid .card p {
    font-size: 0.8rem; /* Plus petit sur mobile */
  }
  
  .services-grid .card li {
    font-size: 0.8rem; /* Plus petit sur mobile */
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 colonne sur très petit mobile */
    gap: 1.5rem;
  }
  
  .services-grid .card {
    grid-column: span 1; /* Chaque carte occupe 1 colonne sur 1 */
    min-width: 100%;
    max-width: 350px;
  }
}

.site-header nav a {
  color: var(--fg);
  font-weight: 500;
  transition: color 200ms ease, transform 200ms ease;
  position: relative;
}

.site-header nav a:hover {
  color: var(--acc);
  transform: translateY(-2px);
}

/* Auth Links in Header */
.auth-links {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.btn-login {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--fg);
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 200ms ease;
}

.btn-login:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
}

/* User Avatar & Dropdown */
.user-avatar {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.avatar-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--fg);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
  overflow: hidden;
}

.avatar-btn:hover {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 200ms ease;
  z-index: 1000;
  margin-top: 8px;
}

.avatar-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.dropdown-header .user-name {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.dropdown-header .user-role {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-menu {
  list-style: none;
  padding: 0.5rem 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--fg);
  text-decoration: none;
  transition: background 200ms ease;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--card-bg);
  color: var(--acc);
}

.dropdown-menu a i {
  width: 16px;
  text-align: center;
  font-size: 1rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.dropdown-logout {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.dropdown-logout a {
  color: #ff6b6b;
  font-weight: 500;
}

.dropdown-logout a:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff5252;
}

.btn-register {
  padding: 0.5rem 1.2rem;
  border: 2px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 200ms ease;
}

.btn-register:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* === Buttons & CTA === */
.cta, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.cta:hover, .btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* === Filter Buttons (Portfolio) === */
.filter-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  border: 2px solid var(--fg);
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  margin: 0 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
  background: #000;
  color: #fff;
}

/* === Hero Section === */
.hero {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15vh 8vw;
  position: relative;
  overflow: hidden;
  background-image: url('/assets/hero/logo.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero h1 {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInFade 800ms ease forwards;
  animation-delay: 200ms;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
  animation-delay: 400ms;
  position: relative;
  z-index: 1;
}

.hero .cta {
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
  animation-delay: 600ms;
  position: relative;
  z-index: 1;
}

/* === Container & Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Container spécifique pour la page services */
body.services .container {
  max-width: 1500px;
}

/* === Hero Services Carousel === */
.hero-services {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom: 1px solid #333;
  padding: 0;
  margin: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content .service-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
  white-space: nowrap; /* Empêche le retour à la ligne */
  overflow: visible; /* Permet au texte de déborder du container */
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  margin-bottom: 2rem; /* Espacement supplémentaire sous le bouton */
}

.hero-cta:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Indicateurs de navigation */
.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
  padding-top: 40px; /* Espacement important pour séparer du bouton */
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicator.active {
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-services {
    height: 400px;
  }
  
  .hero-content .service-icon {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
    white-space: nowrap;
    overflow: visible;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-indicators {
    bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-services {
    height: 350px;
  }
  
  .hero-content .service-icon {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
    white-space: nowrap;
    overflow: visible;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .hero-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* === Section Services Dynamique === */
.services-detail-container {
  background: var(--bg);
  border-bottom: 1px solid #333;
  animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-detail-content {
  padding: 4rem 3rem;
  max-width: 1500px;
  margin: 0 auto;
}

.services-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-detail-header .service-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.services-detail-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.services-detail-header p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.services-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.services-detail-features {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-detail-features h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.services-detail-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-detail-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 2rem;
}

.services-detail-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

.services-detail-features li:last-child {
  border-bottom: none;
}

.services-detail-pricing {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.services-detail-pricing h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.services-detail-pricing .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.services-detail-pricing .price-details {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.services-detail-cta {
  background: #ffffff;
  color: #000000;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
}

.services-detail-cta:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Section processus de travail */
.services-detail-process {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.services-detail-process .process-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.process-step {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.process-step h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.process-step p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* === Section Projets Réalisés === */
.projects-showcase {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid #333;
}

.projects-header {
  text-align: center;
  margin-bottom: 4rem;
}

.projects-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.projects-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.projects-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden; /* Empêche le débordement */
  padding: 0 60px; /* Espace pour les boutons de navigation */
}

.projects-carousel {
  display: flex;
  gap: 2rem;
  overflow: visible;
  padding: 2rem 0;
  will-change: transform; /* Optimisation GPU pour le défilement */
}

.project-card {
  flex: 0 0 350px;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 1rem; /* Espacement uniforme */
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover .project-content {
  transform: translateY(0);
  opacity: 1;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.project-category {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contrôles de navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Indicateurs */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Animations pour les cartes de projets */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px) scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOutToRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: translateX(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Style pour un seul projet */
.projects-carousel:has(.project-card:only-child) {
  justify-content: center;
}

/* Message quand aucun projet */
.no-projects {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .projects-carousel-container {
    padding: 0 2rem;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .projects-showcase {
  padding: 4rem 0;
  }
  
  .projects-header h2 {
    font-size: 2.2rem;
  }
  
  .projects-subtitle {
    font-size: 1rem;
  }
  
  .project-card {
    flex: 0 0 280px;
    height: 200px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.3rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-prev {
    left: 5px;
  }
  
  .carousel-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .project-card {
    flex: 0 0 250px;
    height: 180px;
  }
  
  .projects-carousel {
    gap: 1rem;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .services-detail-content {
    padding: 3rem 2rem;
  }
  
  .services-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .services-detail-content {
    padding: 2rem 1.5rem;
  }
  
  .services-detail-header .service-icon {
    font-size: 3rem;
  }
  
  .services-detail-header h2 {
    font-size: 2.2rem;
  }
  
  .services-detail-header p {
    font-size: 1rem;
  }
  
  .services-detail-features,
  .services-detail-pricing {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-detail-content {
    padding: 1.5rem 1rem;
  }
  
  .services-detail-header .service-icon {
    font-size: 2.5rem;
  }
  
  .services-detail-header h2 {
    font-size: 1.8rem;
  }
  
  .services-detail-pricing .price {
    font-size: 2rem;
  }
}

section {
  border-bottom: 1px solid white;
}

section h1,
section h2,
section h3 {
  margin-top: 20px;
  margin-bottom: 2rem;
}

/* === Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* === Cards === */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--acc);
  box-shadow: 0 12px 30px var(--shadow);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.placeholder-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(106, 166, 255, 0.1) 0%, rgba(106, 166, 255, 0.05) 100%);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 4rem;
}

.card h3 {
  color: var(--fg);
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.card p.category {
  font-size: 0.85rem;
  color: var(--acc);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.card p.technologies {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(106, 166, 255, 0.05);
  border-left: 3px solid var(--acc);
  border-radius: 4px;
}

/* === Services Cards === */
.card-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.card-content {
  text-align: center;
}

.card-content h3 {
  margin-bottom: 1rem;
  color: var(--fg);
  font-size: 1.3rem;
  font-weight: 600;
}

.card-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* === Footer === */
.site-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  margin-top: 6rem;
  text-align: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* === Animations === */
@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .site-header nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-header .nav-links {
    gap: 1rem;
  }
  
  .hero {
    padding: 6vh 4vw;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* === Utilities === */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* === Admin User Avatar & Dropdown (pour header public) === */
.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.admin-user-avatar {
    position: relative;
    display: inline-block;
}

.admin-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--fg);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.admin-avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--fg);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
}

.admin-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-avatar-img span {
    color: var(--fg);
}

.admin-user-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.admin-user-name {
    font-weight: 600;
    color: var(--fg);
    font-size: 0.9rem;
}

.admin-user-role {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    color: #ef4444;
}

.role-collaborator {
    color: #3b82f6;
}

.role-user {
    color: #22c55e;
}

.admin-avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.admin-avatar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.admin-dropdown-header .user-name {
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.admin-dropdown-header .user-role {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.admin-dropdown-menu li {
    margin: 0;
}

.admin-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--fg);
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.admin-dropdown-menu a:hover {
    background: var(--card-bg);
    color: var(--acc);
}

.admin-dropdown-menu a i {
    width: 16px;
    text-align: center;
    font-size: 1rem;
}

.admin-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.admin-dropdown-logout {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.admin-dropdown-logout a {
    color: #ff6b6b;
    font-weight: 500;
}

.admin-dropdown-logout a:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

/* Responsive pour le widget avatar */
@media (max-width: 768px) {
    .admin-avatar-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .admin-user-details {
        display: none;
    }
    
    .admin-avatar-img {
        width: 40px;
        height: 40px;
    }
}


