@media (max-width: 767px) {
  .portfolio-img-1,
  .portfolio-img-2 {
    margin-top: 0;
    object-position: bottom;
  }
}
/* ===== CUSTOM CSS FOR DEPANNAGE SALOMON ===== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for easy theming */
:root {
  --primary-yellow: #fff100;
  --primary-blue: #1E3A8A;
  --primary-blue-dark: #1E40AF;
  --primary-black: #000000;
  --gray-900: #111827;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Full Screen Sections */
.section-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-half-screen {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-combined-fullscreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero section - Full screen */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Services section - Full screen */
#services {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Testimonials section - Full screen */
#testimonials {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Values + Portfolio combined - Full screen */
.values-portfolio-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.values-portfolio-container #values {
  flex: 1;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.values-portfolio-container #portfolio {
  flex: 1;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact + Footer combined - Full screen */
.contact-footer-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-footer-container #contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.contact-footer-container footer {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Tailwind classes for new yellow color */
.bg-yellow-500 {
  background-color: #fff100 !important;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.75) !important;
}

.text-yellow-400,
.text-yellow-500 {
  color: #fff100 !important;
  text-shadow: 0 1px 3px rgba(30, 58, 138, 0.75);
}

.hover\:text-yellow-400:hover,
.hover\:text-yellow-600:hover {
  color: #fff100 !important;
  text-shadow: 0 1px 4px rgba(30, 58, 138, 0.75);
  transition: all 0.3s ease;
}

.hover\:bg-yellow-500:hover {
  background-color: #fff100 !important;
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.75) !important;
  transition: all 0.3s ease;
}

/* Yellow elements shadows */
.service-icon {
  filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.75));
}

.service-icon:hover {
  filter: drop-shadow(0 3px 6px rgba(30, 58, 138, 0.75));
  transition: all 0.3s ease;
}

/* Stars shadow */
.text-yellow-400 i.fas.fa-star {
  filter: drop-shadow(0 1px 3px rgba(30, 58, 138, 0.75));
}

/* Portfolio button shadow */
#show-more-btn {
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.75) !important;
}

#show-more-btn:hover {
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.75) !important;
}

/* Contact icons shadow */
.fas.fa-clock.text-yellow-500,
.fas.fa-truck.text-yellow-500,
.fas.fa-shield-alt.text-yellow-500,
.fas.fa-credit-card.text-yellow-500,
.fas.fa-phone-square.text-yellow-500 {
  filter: drop-shadow(0 1px 3px rgba(30, 58, 138, 0.75));
}

/* Logo DS shadow */
.text-yellow-400 {
  text-shadow: 0 1px 3px rgba(30, 58, 138, 0.75);
}

/* CTA Button specific shadow */
.cta-button {
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.75) !important;
}

.cta-button:hover {
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.75) !important;
  transform: translateY(-1px);
}

/* Button text visibility fix */
.cta-button:hover,
#show-more-btn:hover {
  color: #fff100 !important;
}

/* Truck icon color filter */
.truck-icon-yellow {
  filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(2000%) hue-rotate(15deg) brightness(100%) contrast(100%);
}

/* Hero logo size - larger on desktop */
@media (min-width: 1024px) {
  .hero-section .logo-container img {
    height: 12rem !important; /* 192px au lieu de 160px (h-40) */
  }
}

/* Ensure button content stays visible */
.bg-yellow-500.hover\:bg-blue-800:hover {
  background-color: #1E3A8A !important;
}

.bg-yellow-500.hover\:bg-blue-800:hover .fas {
  color: #fff100 !important;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Smooth scroll désactivé */
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Éliminer tous les espaces entre sections */
main {
  margin: 0;
  padding: 0;
}

section {
  margin: 0 !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* ===== LOGO STYLES ===== */
.logo-container img {
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-container img:hover {
  transform: scale(1.05);
}

/* Logo responsiveness */
@media (max-width: 640px) {
  .logo-container img.h-12 {
    height: 2.5rem; /* 40px */
  }
  
  .logo-container img.h-32 {
    height: 6rem; /* 96px */
  }
  
  .logo-container img.h-16 {
    height: 3rem; /* 48px */
  }
}

@media (max-width: 480px) {
  .logo-container img.h-32 {
    height: 5rem; /* 80px */
  }
}

/* Loading Screen */
#loading-screen {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--primary-yellow);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation Styles */
#navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Navigation logo specific styles */
#navbar .logo-container img {
  max-height: 3rem;
  width: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  #navbar .logo-container img {
    max-height: 2.5rem;
  }
  
  #navbar .logo-container .text-xl {
    font-size: 1rem;
  }
}

.nav-link {
  position: relative;
  transition: var(--transition);
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-yellow);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-yellow) !important;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 2px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 300px;
}

.mobile-nav-link {
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
  border-left-color: var(--primary-yellow);
  background-color: rgba(255, 215, 0, 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-yellow);
  color: var(--primary-blue);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.75);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-blue);
  color: var(--primary-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.75);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/aaa49e8c-818b-4e5e-8605-208092f11bb6.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Changé de fixed à scroll */
  filter: blur(2.1px) brightness(0.15);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.1) 0%,
    rgba(255, 241, 0, 0.05) 50%,
    rgba(30, 58, 138, 0.1) 100%
  );
  z-index: 2;
}

/* CTA Button */
.cta-button {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-button::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: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

/* Service Cards */
.service-card {
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.service-card .service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card .service-icon {
  margin-bottom: 1rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .service-title {
  margin-bottom: 0.75rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  text-align: center;
}

.service-card .service-description {
  flex: 1;
  display: flex;
  align-items: flex-start;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-yellow);
  box-shadow: var(--shadow-lg);
}

.service-card:hover .fa-shield-alt,
.service-card:hover .fa-globe-europe,
.service-card:hover .fa-gem,
.service-card:hover .fa-crown,
.service-card:hover .fa-key,
.service-card:hover .fa-recycle {
  transform: scale(1.1);
  transition: var(--transition);
}

/* Services Grid - Centrer le dernier service en desktop */
@media (min-width: 1024px) {
  .service-card-center {
    grid-column: 3; /* Position en colonne 3 (droite ligne 2) */
    grid-row: 2;    /* Deuxième ligne */
  }
}

/* Portfolio Section */
.portfolio-item {
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Portfolio images positioning */
.portfolio-item img {
  object-fit: cover !important;
  height: 256px; /* h-64 = 16rem = 256px */
}

/* Positionnement spécifique pour chaque image */
.portfolio-img-1 {
  object-position: center !important;
}

.portfolio-img-2 {
  object-position: center 75% !important; /* Juste un petit peu plus bas */
}

/* Gallery modal images positioning */
.gallery-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  object-position: bottom !important;
  border-radius: 0.5rem;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Contact Links */
.contact-link {
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.contact-link:hover {
  transform: scale(1.05);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: var(--primary-yellow);
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  max-height: 80%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary-yellow);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }
  
  .lightbox-content {
    width: 95%;
  }
  
  .back-to-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  /* Navigation mobile améliorée */
  #navbar {
    padding: 0.5rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Contact section mobile */
  .contact-link {
    display: block;
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
  }
  
  /* Testimonials mobile */
  .testimonial-card {
    margin-bottom: 1.5rem;
  }
  
  /* Services mobile */
  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Stack contact items vertically */
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-info-item .icon-container {
    margin-bottom: 1rem;
  }
}

/* Landscape mobile optimization - styles supprimés car redondants */

/* Contact Section Mobile Optimization */
@media (max-width: 1023px) {
  #contact .contact-link {
    display: inline-block;
    text-align: center;
  }
  
  #contact .space-x-2 {
    display: flex;
    justify-content: center;
  }
  
  /* Ensure all contact elements stay centered on tablets and mobile */
  #contact .flex.flex-col.sm\\:flex-row {
    align-items: center;
  }
  
  /* Service d'urgence alignment for tablet/mobile */
  #contact .bg-gray-100 {
    text-align: center;
  }
  
  #contact .bg-gray-100 .space-y-4 > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  #contact .bg-gray-100 .space-y-4 > div i {
    margin-bottom: 0.5rem;
  }
}

/* Desktop alignment improvements for Service d'urgence */
@media (min-width: 1024px) {
  #contact .bg-gray-100 .space-y-4 > div {
    align-items: flex-start;
  }
  
  #contact .bg-gray-100 .space-y-4 > div i {
    margin-top: 0.125rem; /* 2px pour aligner avec la première ligne de texte */
    line-height: 1.5;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Print Styles */
@media print {
  .hero-section,
  #navbar,
  .modal,
  .lightbox {
    display: none !important;
  }
  
  body {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
  
  .service-card {
    border: 2px solid var(--primary-yellow);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-yellow);
  color: var(--primary-blue);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: bold;
}

.skip-link:focus {
  top: 6px;
}

/* Testimonials */
.testimonial-card {
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* Protection des images */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

/* Désactiver la sélection de texte sur les images */
img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

/* Protection contre l'impression des images */
@media print {
    img {
        display: none !important;
    }
}

/* Cache le menu contextuel sur mobile */
img {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Fix pour le débordement horizontal mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Container général pour éviter le débordement */
* {
    box-sizing: border-box;
}

/* Back to top button - repositionnement mobile */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #fff100;
    color: #1E3A8A;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Ajustements mobile pour le back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Hamburger menu - fix position mobile */
#mobile-menu-btn {
    position: relative;
    z-index: 1001;
    padding: 8px;
}

/* Navigation mobile - fix débordement */
@media (max-width: 768px) {
    #navbar {
        padding-left: 0;
        padding-right: 0;
    }
    
    #navbar .container {
        max-width: 100%;
        padding-left: 20px; /* 1.25rem */
        padding-right: 20px; /* 1.25rem */
    }
    
    /* Menu mobile fix */
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Container fix pour toutes les sections - Standards modernes */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Marges modernes selon les breakpoints */
@media (min-width: 1280px) {
    .container {
        padding-left: 5rem; /* 80px */
        padding-right: 5rem; /* 80px */
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        padding-left: 4rem; /* 64px */
        padding-right: 4rem; /* 64px */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-left: 3rem; /* 48px */
        padding-right: 3rem; /* 48px */
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .container {
        padding-left: 2rem; /* 32px */
        padding-right: 2rem; /* 32px */
    }
}

@media (max-width: 639px) {
    .container {
        padding-left: 1.25rem; /* 20px */
        padding-right: 1.25rem; /* 20px */
    }
}

/* Exceptions pour les composants spéciaux */
.modal .container,
.lightbox .container,
#mobile-menu .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Grid responsive fix */
@media (max-width: 768px) {
    .grid {
        margin-left: 0;
        margin-right: 0;
    }
    
    .grid > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Contact section - fix débordement mobile */
@media (max-width: 768px) {
    #contact .grid {
        gap: 2rem;
    }
    
    #contact .flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Portfolio modal - fix mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 2% auto;
        padding: 1rem;
    }
}

/* Lightbox - fix mobile */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
}