:root {
  --primary: #4a6cf7;
  --accent: #22c1c3;
  --secondary: #ff6b6b;
  
  --dark-bg: #0d0d0d;
  --dark-card: #1a1a1a;
  --dark-text: #f5f5f5;
  --dark-muted: #c2c2c2;
  
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark-bg);
  color: var(--dark-text);
  transition: var(--transition);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}

/* Header - Masqué sur mobile */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 300px;
  max-width: 90%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d0d0d;
  text-decoration: none;
  z-index: 1001;
  flex-shrink: 0;
}

.logo img {
  margin-right: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* Navigation Desktop */
.desktop-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.desktop-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #0d0d0d;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
  padding: 5px 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0; 
  bottom: -5px;
  height: 2px; 
  width: 0;
  background: var(--primary);
  transition: width 0.3s;
  border-radius: 1px;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.desktop-nav a:hover {
  color: var(--primary);
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Hero Section - Centrée */
.hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.2rem;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--dark-muted);
  text-align: center;
  line-height: 1.6;
}

/* Boutons centrés */
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  min-width: 150px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
  padding: clamp(3rem, 8vw, 6rem) 5%;
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.section-content {
  max-width: 1200px;
  width: 100%;
  overflow-x: hidden;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  color: var(--dark-text);
  width: 100%;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px; 
  left: 50%;
  transform: translateX(-50%);
  width: 60px; 
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Cards Grid centrée */
.cards-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  width: 100%;
  max-width: 1200px;
  justify-content: center;
}

.card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card i {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--primary);
  transition: var(--transition);
}

.card:hover i {
  transform: scale(1.2) translateZ(20px);
}

.card strong {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 0.7rem;
  color: var(--dark-text);
  text-align: center;
  width: 100%;
}

.card p {
  color: var(--dark-muted);
  text-align: center;
  width: 100%;
  line-height: 1.6;
}

/* Process Section - Centrée */
.process-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
  width: 100%;
  max-width: 1200px;
  overflow-x: hidden;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(250px, 100%);
  text-align: center;
  position: relative;
  transition: var(--transition);
  width: 100%;
}

.process-step:hover {
  transform: translateY(-5px);
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: clamp(-25px, -2vw, -30px);
  top: 30px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
}

.process-icon {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  margin-bottom: 1.2rem;
  transition: var(--transition);
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.process-step:hover .process-icon {
  transform: translateZ(20px) rotateY(180deg);
  background: var(--accent);
}

.process-step h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--dark-text);
  text-align: center;
}

.process-step p {
  text-align: center;
  color: var(--dark-muted);
  line-height: 1.6;
}

/* Portfolio Section */
#portfolio {
  background: transparent;
  width: 100%;
  overflow: hidden;
}

.clients-scroll-container {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.clients-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: clamp(30px, 4vw, 50px);
  width: max-content;
}

.clients-scroll:hover {
  animation-play-state: paused;
}

.client-item {
  flex: 0 0 auto;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 100px;
}

.client-item:hover {
  transform: scale(1.05);
}

.client-item img {
  height: auto;
  max-height: 150px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  padding: 10px 20px;
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.7;
}

.client-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-180px * 8 - 50px * 7));
  }
}

/* Portfolio Items */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
}

.portfolio-item {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dark-card);
  transition: var(--transition);
  flex-direction: column;
  align-items: center;
}

/* #WEB PROJET */

/* Section Projets Web */
.web-projects-section {
    margin: 80px 0;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.web-projects-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.web-projects-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grille des projets web */
.web-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Carte projet web */
.web-project-card {
    background: white;
    overflow: hidden;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.web-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.web-project-image {
    position: relative;
    height: auto;
    width: 300px;
    overflow: hidden;
}

.web-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.web-project-card:hover .web-project-image img {
    transform: scale(1.05);
}

.web-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.web-project-card:hover .web-project-overlay {
    opacity: 1;
}

.view-project-btn {
    padding: 12px 25px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-project-btn:hover {
    background: #0056b3;
    color: white;
}

/* Info projet web */
.web-project-info {
    padding: 25px;
}

.web-project-info h4 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: #333;
}

.web-project-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.web-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.web-project-tags .tag {
    padding: 5px 12px;
    background: #f0f8ff;
    color: #007bff;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* CTA */
.web-projects-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background: transparent;
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .web-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .web-projects-title {
        font-size: 1.8rem;
    }
    
    .web-projects-description {
        font-size: 1rem;
        padding: 0 15px;
    }
}

.portfolio-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-image img {
  width: 100%;
  height: auto;
  max-width: 100%; 
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Stats Section */
.portfolio-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--dark-card);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  border-radius: 15px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 1200px;
}

.stat-item {
  text-align: center;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--dark-muted);
  font-weight: 500;
  text-align: center;
}

/* Contact Section */
#contact {
  text-align: center;
  width: 100%;
  overflow-x: hidden;
}

.contact-content {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-top: 2rem;
  width: 100%;
}

.contact-icons a {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--dark-text);
  transition: var(--transition);
  text-decoration: none;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.contact-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateZ(20px) rotateY(360deg);
}

/* Footer */
footer {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--dark-muted);
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== MENU HAMBURGER À GAUCHE ===== */

/* Hamburger Button - Positionné à gauche */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px; /* Changé de right à left */
  z-index: 1001;
  background: white;
  border: none;
  cursor: pointer;
  width: clamp(45px, 8vw, 50px);
  height: clamp(45px, 8vw, 50px);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: clamp(20px, 4vw, 24px);
  height: 3px;
  background-color: #0d0d0d;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hamburger:hover span {
  background-color: var(--primary);
}

/* Menu Mobile - S'ouvre depuis la gauche */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%; /* Changé de right à left */
  width: 100%;
  max-width: 300px;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Changé de right à left */
  padding: 20px;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3); /* Ombre à droite au lieu de gauche */
}

.mobile-logo {
  display: flex;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  justify-content: center;
}

.mobile-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.mobile-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d0d0d;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
  align-items: center;
}

.mobile-nav-link {
  color: #0d0d0d !important;
  font-size: clamp(1rem, 3vw, 1.1rem);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  background: transparent;
  opacity: 0;
  transform: translateX(-20px); /* Changé de 20px à -20px */
  width: 90%;
  text-align: center;
}

.mobile-nav-link:hover {
  background-color: rgba(74, 108, 247, 0.1);
  color: var(--primary) !important;
  transform: translateX(5px); /* Changé de -5px à 5px */
}

/* Quand le menu est actif, il vient de la gauche */
.mobile-menu.active {
  left: 0; /* Changé de right à left */
}

.hamburger.active {
  background: var(--primary);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: white;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: white;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animation des liens - Direction inversée */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-link {
  animation: slideIn 0.5s forwards;
}

.mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }

body.no-scroll {
  overflow: hidden;
}

/* ===== CORRECTIONS POUR DÉBORDEMENT MOBILE ===== */

/* Images responsives */
img {
  max-width: 100%;
  height: auto;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

@media (max-width: 768px) {
  /* Header desktop caché, hamburger visible à gauche */
  header {
    display: none !important;
  }
  
  .hamburger {
    display: flex;
    left: 20px; /* Position à gauche */
    top: 20px;
  }
  
  .hero {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .portfolio-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    min-width: 200px;
  }
  
  .portfolio-image img {
    width: 100%;
    max-height: 380px;
  }
  
  .mobile-menu {
    max-width: 280px;
  }
  
  /* Correction animation des partenaires sur mobile */
  .clients-scroll {
    animation: scrollMobile 20s linear infinite;
    gap: 20px;
  }
  
  .client-item {
    min-width: 140px;
    height: 80px;
  }
  
  .client-item img {
    max-height: 60px;
    max-width: 140px;
    padding: 8px 15px;
  }
  
  .clients-scroll-container {
    width: 100vw;
    overflow: hidden;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  @keyframes scrollMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-140px * 4 - 20px * 3));
    }
  }
  
  /* Correction padding pour petits écrans */
  section {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .hero {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 100px 5% 50px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 5%;
  }
  
  .cards {
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .contact-icons a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .mobile-menu {
    max-width: 250px;
  }
  
  .mobile-nav-link {
    font-size: 1rem;
    padding: 10px 15px;
    width: 95%;
  }
  
  .hamburger {
    left: 15px; /* Position à gauche pour petits écrans */
    top: 15px;
    width: 45px;
    height: 45px;
  }
  
  /* Correction animation partenaires très petits écrans */
  .clients-scroll {
    gap: 15px;
    animation: scrollMobile 15s linear infinite;
  }
  
  .client-item {
    min-width: 120px;
    height: 70px;
  }
  
  .client-item img {
    max-height: 100px;
    max-width: 120px;
    padding: 5px 10px;
  }
  
  @keyframes scrollMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-120px * 4 - 15px * 3));
    }
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    min-width: 140px;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .cards {
    gap: 1rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .mobile-menu {
    max-width: 230px;
  }
  
  .mobile-logo img {
    width: 40px;
    height: 40px;
  }
  
  .mobile-logo span {
    font-size: 1.2rem;
  }
  
  .hamburger {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px; /* Position à gauche pour très petits écrans */
  }
  
  .hamburger span {
    width: 18px;
  }
  
  /* Correction spécifique pour très petits écrans */
  section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .hero {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .clients-scroll {
    gap: 10px;
  }
  
  .client-item {
    min-width: 100px;
    height: 60px;
  }
  
  .client-item img {
    max-height: 80px;
    max-width: 100px;
    padding: 5px;
  }
}

/* Support pour orientation paysage sur mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 120px 5% 50px;
  }
  
  .mobile-menu {
    max-width: 250px;
  }
  
  .mobile-menu-content {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .hamburger {
    left: 15px;
    top: 15px;
  }
  
  .clients-scroll {
    animation-duration: 15s;
  }
}

/* Support pour les gauchers - Optionnel : on peut ajouter un bouton pour changer le côté */
.hamburger-left {
  left: 20px;
  right: auto;
}

.hamburger-right {
  left: auto;
  right: 20px;
}

/* Pour les appareils avec notches (iPhone X, etc.) */
@supports (padding: max(0px)) {
  .hamburger {
    left: max(20px, env(safe-area-inset-left));
    top: max(20px, env(safe-area-inset-top));
  }
}

/* Correction pour les tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  .hamburger {
    left: 25px;
    top: 25px;
  }
  
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .clients-scroll {
    animation-duration: 25s;
    gap: 40px;
  }
  
  .client-item {
    min-width: 160px;
  }
}

/* Animation légèrement ajustée pour l'ouverture depuis la gauche */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-link {
  animation: slideInFromLeft 0.5s forwards;
}

/* Support pour très grandes écrans */
@media (min-width: 1600px) {
  .section-content,
  .hero-content,
  .clients-scroll-container,
  .footer-content {
    max-width: 1400px;
  }
  
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Correction pour les tablettes en portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .process-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step:not(:last-child)::after {
    display: block;
  }
  
  .clients-scroll {
    animation-duration: 20s;
  }
}

/* Correction pour éviter le débordement sur tous les éléments */
@media (max-width: 768px) {
  .portfolio-grid,
  .process-container,
  .cards-container,
  .contact-content {
    width: 100%;
    overflow-x: hidden;
  }
}


.portfolio-image img,
.client-item img {
  max-width: 100%;
  height: auto;
}

/* Duplication des logos pour animation infinie */
.clients-scroll::before {
  content: '';
  display: none;
}

/* Pour animation fluide */
.clients-scroll {
  will-change: transform;
}