/*--------------------------------------------------
 # Styles Responsifs Globaux Naery
 # Fichier centralisé pour tous les styles responsifs du site
--------------------------------------------------*/

/* Animation de flottement pour les SVG */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Animation combinée pour le SVG security: flottement + grossissement */
@keyframes floatAndScale {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

/* Animation de rotation complète pour le SVG workflow-arrow */
@keyframes rotate360 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Correction globale pour overflow - u00c9viter la bande blanche */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Classes utilitaires responsives */
.mobile-only {
  display: none !important; /* Par défaut, caché sur desktop */
}

.desktop-only {
  display: block !important;
}

/*--------------------------------------------------
 # 1. Header & Navigation
--------------------------------------------------*/

/* Masquer le bouton contact mobile en version desktop */
.mobile-contact-btn {
  display: none !important;
}

/* Menu mobile par défaut caché */
.mobile-menu-btn {
  display: none;
  background: #561285;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  z-index: 9998;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Classe pour quand le menu mobile est ouvert */
.menu-open .nav-links {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Overlay quand menu ouvert */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-open .mobile-menu-overlay {
  display: block;
  opacity: 1;
}

/*--------------------------------------------------
 # 2. Landing Section (Hero)
--------------------------------------------------*/

/* Animation du dégradé */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Overlay de brillance subtile pour mobile */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Optimisations pour les images sur mobile */
/* Style générique pour les images dans mobile-only */
.mobile-only img:not(.mobile-svg-main) {
  display: none; /* Masqué par défaut, affiché en mobile */
}

/*--------------------------------------------------
 # Media Queries - Tablettes et appareils moyens
--------------------------------------------------*/

@media (max-width: 991px) {

  /* Fix pour u00e9viter la bande blanche et le du00e9calage */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 100% !important;
    width: 100vw !important;
  }
  
  /* Force tous les conteneurs u00e0 respecter la largeur maximale */
  .container, 
  header .container,
  section .container,
  main .container,
  .hero-content,
  .services-modern-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Correction spu00e9cifique pour la landing */
  .hero {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Affichage conditionnel mobile/desktop pour les SVG */
  .mobile-only {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  /* Styles du menu mobile latéral */
  .mobile-contact-btn {
    display: block !important;
  }
  
  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important; /* Utiliser vw au lieu de % */
    height: 100vh !important; /* Utiliser vh au lieu de % */
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 9998 !important; /* Z-index élevé mais inférieur à celui du menu (9999) */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    display: block !important;
    pointer-events: none !important;
  }
  
  /* Visible overlay when the menu is open */
  .menu-open .mobile-menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  /* Mobile menu button styles */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    position: relative;
    z-index: 1600;
    border: none;
    outline: none;
    color: white;
  }
  
  /* MODERN MOBILE MENU - with contemporary style */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: -300px !important; /* Hidden by default */
    width: 300px !important;
    height: 100vh !important;
    background: linear-gradient(135deg, rgba(90, 50, 150, 0.85) 0%, rgba(70, 40, 130, 0.9) 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    z-index: 99999 !important; /* Maximum z-index */
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important; /* Smoother transition */
    overflow-y: auto !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5) !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    justify-content: center !important; /* Vertically center menu content */
    align-items: center !important; /* Horizontally center menu content */
  }
  
  /* Modern particle effect */
  .nav-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 10%),
      radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 15%),
      radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 12%),
      radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 18%);
    opacity: 1;
    z-index: -1;
  }
  
  /* Add a futuristic grid pattern to the menu background */
  .nav-links::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
    z-index: -1;
  }
  
  /* Open menu */
  .menu-open .nav-links {
    left: 0 !important;
  }
  
  /* Menu header style - no background */
  .nav-links .mobile-menu-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px 10px; /* Reduced padding */
    background: transparent; /* Removed background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px; /* Reduced margin */
  }
  
  /* Mobile menu logo - Resized with animation */
  .mobile-menu-header .mobile-menu-logo {
    width: 100px !important;
    height: auto !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1)) !important;
    transition: all 0.5s ease !important;
    animation: logoFloat 3s ease-in-out infinite !important;
  }
  
  /* Subtle floating animation for the logo */
  @keyframes logoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
  }
  
  /* Mobile menu close button - modern design */
  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-menu-close:hover {
    background: rgba(91, 30, 148, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  /* Rotation animation for the X icon */
  .mobile-menu-close:hover i {
    transform: rotate(90deg);
  }
  
  .mobile-menu-close i {
    transition: transform 0.3s ease;
  }
  
  /* Logo dans le menu */
  .nav-links .mobile-menu-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
  }
  
  /* Titre Naery dans le menu */
  .nav-links .mobile-menu-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  /* Liens de navigation dans le menu - style ultra-moderne */
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    width: 85%;
    letter-spacing: 0.02em;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  /* Subtle shine effect */
  .nav-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
  }
  
  /* Hover effect on links - ultra-modern style */
  .nav-links a:hover {
    background: rgba(91, 30, 148, 0.4);
    transform: translateY(-2px) scale(1.03);
  }
  
  /* Style spécial pour le lien Contact - mise en avant moderne */
  .nav-links a.mobile-contact-link {
    background: linear-gradient(45deg, #4e22a5, #6930c3) !important;
    color: white !important;
    font-weight: 500 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
  }
  
  /* Effet de brillance sur le bouton contact */
  .nav-links a.mobile-contact-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(30deg);
    transition: all 0.5s ease;
  }
  
  /* Animation au survol du bouton contact */
  .nav-links a.mobile-contact-link:hover {
    background: linear-gradient(45deg, #5827b0, #7b2fd6) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  /* Animation de l'effet de brillance au survol */
  .nav-links a:hover::before {
    left: 100%; /* Déplacement de la brillance */
  }
  
  /* Icônes pour chaque lien - style moderne */
  .nav-links a i {
    margin-right: 10px;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  /* Animation des icônes au survol */
  .nav-links a:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(5deg);
  }
  
  /* Logo dans le menu */
  .nav-links .mobile-menu-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
  }
  
  /* Titre Naery dans le menu */
  .nav-links .mobile-menu-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  /* Styles pour le hero section déplacés depuis le HTML */
  .hero {
    background: radial-gradient(ellipse at top right, rgba(211, 125, 220, 0.8), transparent 70%),
                radial-gradient(ellipse at bottom left, rgba(109, 113, 202, 0.8), transparent 70%),
                linear-gradient(to top right, #c660cd, #803ebc, #6d71ca) !important;
    background-size: 200% 200%, 200% 200%, 100% 100% !important;
    position: relative;
    overflow: hidden;
  }
  
  /* Supprime tous les clip-paths */
  .hero::before, .hero::after, .hero-content::before, .hero-content::after,
  .svg-animations-container, .modern-light-effects {
    display: none !important;
    opacity: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  
  /* Centre parfaitement le SVG */
  /* Style générique pour les images dans mobile-only */
.mobile-only img:not(.mobile-svg-main) {
    display: block !important;
    max-width: 250px !important;
    width: 100% !important;
    margin: 0 auto !important;
    transform: none !important;
  }
  
  /* Corrige la structure de base */
  .hero-content {
    margin-top: 90px !important;
  }
  
  /* Mettre les boutons sur la même ligne */
  .cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 20px auto !important;
  }

  /* 1. HEADER & NAVIGATION */
  header {
    padding: 10px 0;
    background: transparent; /* Menu transparent */
  }
  
  .navbar {
    padding: 0 15px;
  }
  
  /* Ajustement de la position du logo sur mobile */
  .logo {
    margin-left: 10px !important; /* Décalage du logo vers la droite */
  }
  
  /* Gestion des logos desktop/mobile */
  .desktop-logo {
    display: none !important; /* Masquer le logo desktop sur mobile */
  }
  
  .mobile-logo {
    display: block !important; /* Afficher le logo mobile */
    max-height: 20px; /* Taille très réduite pour mobile */
  }
  
  /* Réduire la taille du logo mobile lors du défilement */
  header.scrolled .mobile-logo {
    max-height: 18px;
  }
  
  /* Afficher le bouton de menu mobile */
  .mobile-menu-btn {
    display: block;
  }
  
  /* IMPORTANT - Supprimé les styles contradictoires */
  
  /* Masquer le bouton de contact dans la barre et l'ajouter au menu mobile */
  .navbar .contact-btn {
    display: none;
  }
  
  /* Ajouter le bouton contact dans le menu mobile */
  .nav-links .mobile-contact-btn {
    margin-top: 20px;
  }
  
  /* Animation pour les liens de navigation */
  .nav-links a {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    transition-delay: calc(0.1s * var(--i));
    padding: 10px 20px;
    border-radius: 8px;
    width: 80%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 4px 0;
  }
  
  .menu-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* 2. LANDING SECTION */
  .desktop-hidden {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Déplacé depuis le HTML (ancien bloc dans le body) */
  #hero-section {
    background: linear-gradient(to top right, #6236ff, #9c46ff, #bc4bff) !important;
    position: relative;
    overflow-x: hidden;
    min-height: 70vh;
  }
  .mobile-svg {
    margin: 0 auto !important;
    display: block !important;
    max-width: 280px !important;
  }
  #hero-section .container {
    padding-top: 80px;
    padding-bottom: 20px;
  }

  /* Déplacé depuis le HTML : corrections et centrage mobile */
  .hero-bg-mobile {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 1;
  }
  /* Supprime tous les clip-paths */
  .hero::before, .hero::after, .hero-content::before, .hero-content::after,
  .svg-animations-container, .modern-light-effects {
    display: none !important;
    opacity: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  /* Styles pour le conteneur des SVG mobiles */
  .mobile-only {
    position: relative !important;
    width: 100% !important;
    min-height: 300px !important;
    padding: 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
  }

  /* Centre parfaitement le SVG principal avec taille plus grande - PRIORITÉ MAXIMALE */
  img.mobile-svg-main,
  .mobile-only img.mobile-svg-main,
  .hero-image .mobile-only img.mobile-svg-main,
  #hero-illustration .mobile-only img.mobile-svg-main {
    display: block !important;
    width: 80vw !important;
    max-width: 360px !important; /* Taille augmentée */
    height: auto !important;
    margin: -30px auto 0 !important; /* Marge négative en haut pour remonter le SVG */
    position: relative !important;
    z-index: 100 !important; /* Z-index plus élevé pour s'assurer qu'il est au-dessus */
    transform: scale(1.25) !important; /* Échelle augmentée */
  }

  /* Styles pour les SVG décoratifs - repositionnés au-dessus du texte */
  .svg-decorative {
    position: absolute !important;
    width: 55px !important; /* Taille réduite davantage */
    height: 55px !important; /* Taille réduite davantage */
    opacity: 1 !important; /* Opaicité maximale pour visibilité optimale */
    filter: brightness(3) !important; /* Luminosité augmentée */
    z-index: 3 !important;
    top: -120px !important; /* Position au-dessus du texte */
  }
  
  /* Styles spécifiques pour chaque SVG mobile */


  .mobile_gear {
    right: 60% !important;
    top: -250px !important;
    animation: float 3s ease-in-out infinite !important;
  }

  .hero-image .mobile-only img.mobile_screen-coding,
  .svg-decorative.mobile_screen-coding {
    right: 49% !important;
    top: -248px !important;
    width: 55px !important;
    height: 55px !important;
    animation: float 4s ease-in-out infinite !important;
  }

  .mobile_loading {
    left: 29% !important;
    top: -106% !important;
    width: 70px !important;
    height: 70px !important;
    animation: float 3.5s ease-in-out infinite !important;
  }

  .mobile_code-windows {
    right: 42% !important;
    top: -98% !important;
    animation: float 2.8s ease-in-out infinite !important;
  }

  .mobile_security {
    position: absolute !important;
    left: 59% !important;
    top: -306px !important;
    width: 70px !important;
    height: 70px !important;
    z-index: 5 !important; /* Z-index plus élevé pour s'assurer qu'il est au premier plan */
    opacity: 1 !important;
    filter: brightness(3) !important;
    transform: translateZ(0); /* Force le rendu GPU pour rafraîchir l'affichage */
    animation: floatAndScale 4s ease-in-out infinite !important;
  }

  /* Style pour le nouveau SVG workflow-arrow avec animation de rotation complète */
  /* Style spécifique pour le workflow-arrow avec rotation forcée */
  #workflow-rotate,
  .mobile_workflow-arrow {
    position: absolute !important;
    left: 68% !important; /* Position centrée */
    top: -253px !important;
    width: 70px !important;
    height: 70px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    filter: brightness(2) !important;
    -webkit-transform-origin: center center !important;
    -ms-transform-origin: center center !important;
    transform-origin: center center !important;
    -webkit-animation: rotateArrow 10s linear infinite !important;
    animation: rotateArrow 10s linear infinite !important;
    will-change: transform !important;
    display: block !important;
  }
  
  /* Animation de rotation 360° pour le workflow-arrows, avec préfixes pour compatibilité */
  @-webkit-keyframes rotateArrow {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
  }
  
  @keyframes rotateArrow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  /* Corrige la structure de base */
  .hero-content {
    margin-top: 90px !important;
  }
  /* Mettre les boutons sur la même ligne */
  .cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 20px auto !important;
  }
  /* Réduire la taille des boutons sur mobile */
  .cta-buttons .btn {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  /* RÉINITIALISATION COMPLÈTE DU HERO POUR MOBILE AVEC HAUTEUR RÉDUITE */
  .hero {
    min-height: 90vh; /* Réduction de la hauteur minimale */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important; /* Empêcher le débordement horizontal */
    width: 100vw !important;
  }

  /* SOLUTION SIMPLE ET DIRECTE POUR LE FOND */
  .hero {
    background: linear-gradient(to top right, #6236ff, #9c46ff, #bc4bff) !important; /* Appliquer directement sur .hero */
  }
  
  /* Suppression complète de tous les pseudo-éléments et clip-paths */
  .hero::before,
  .hero::after,
  .hero-content::before,
  .hero-content::after,
  .svg-animations-container,
  .modern-light-effects {
    display: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    background: none !important;
  }
  
  /* SUPPRESSION DE TOUS LES AUTRES CLIPS PATHS */
  .svg-animations-container,
  .modern-light-effects,
  .hero-content::before,
  .hero-content::after {
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  
  /* Container pour SVG animations */
  .svg-animations-container {
    height: 70% !important;
    opacity: 0.7;
    pointer-events: none;
  }
  
  /* Masquer tous les petits SVGs */
  .svg-item {
    display: none !important;
  }
  
  /* CORRECTION DU CONTAINER DE CONTENU */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* CORRECTION DU CONTENT HERO */
  .hero-content {
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    padding: 130px 20px 30px 20px !important; /* Augmentation du padding-top pour descendre le bloc davantage */
    align-items: center !important;
    text-align: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  
  /* CORRECTION DU TEXTE HERO */
  .hero-text {
    margin: 10px auto 25px !important;
    max-width: 90% !important;
    order: 1 !important;
    text-align: center !important;
  }
  
  /* Centrer les titres et réduire leur taille sur mobile */
  .hero-text h1,
  .hero-text h2 {
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .hero-text h1 {
    font-size: 2rem !important; /* Taille réduite pour le titre principal */
    line-height: 1.2 !important;
  }
  
  .hero-text h2 {
    margin-bottom: 20px !important;
    font-size: 1.2rem !important; /* Taille réduite pour le sous-titre */
    line-height: 1.3 !important;
  }
  
  /* CORRECTION DES BOUTONS */
  .cta-buttons {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 20px auto 30px !important; /* Espace au-dessus et en-dessous des boutons */
    transform: scale(0.9) !important; /* Réduction générale de la taille des boutons */
  }
  
  /* Réduction de la taille des boutons individuellement */
  .cta-buttons .btn {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    letter-spacing: -0.01em !important;
  }
  
  /* CORRECTION DE L'IMAGE */
  .hero-image {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 15px auto !important;
    order: 2 !important;
  }
  
  /* 3. SERVICES SECTION */
  .services {
    padding: 60px 0 100px 0; /* Réduire le padding vertical */
  }
  
  /* Ajuster les cartes pour qu'elles s'affichent mieux sur tablette */
  .services-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    gap: 20px;
    padding: 0 15px;
  }
  
  .service-card {
    height: 350px; /* Légèrement plus petit */
  }
  
  /* Ajuster les modal details pour tablette */
  .service-detail {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Optimiser les animations pour économiser les performances */
  .card-blur, 
  .card-glow {
    display: none; /* Masquer les effets gourmands en ressources */
  }
  
  /* 4. PORTFOLIO SECTION */
  .portfolio {
    padding: 60px 0;
  }
  
  /* Ajuster la grille pour les tablettes */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    gap: 20px;
    padding: 0 15px;
  }
  
  /* Réduire légèrement la taille des cartes */
  .portfolio-item {
    height: 330px;
  }
  
  /* Ajuster le titre et la description pour avoir moins de place */
  .portfolio-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .portfolio-content p {
    font-size: 0.9rem;
    max-width: 90%;
    margin: 0 auto 12px;
  }
  
  /* Optimiser les listes de détails */
  .project-details ul {
    padding-left: 0;
  }
  
  .project-details ul li {
    font-size: 0.85rem;
    margin-bottom: 5px;
    padding: 6px 10px;
  }
  
  /* 5. ABOUT SECTION */
  .about {
    padding: 50px 0 15px 0;
  }
  
  /* Adapter le layout pour les tablettes */
  .about-content {
    flex-direction: column;
    align-items: center;
  }
  
  /* Profil en haut sur tablette */
  .about-profile {
    width: 90%;
    max-width: 450px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    order: 1;
  }
  
  /* Story (Mon Parcours) en bas */
  .about-story {
    width: 90%;
    max-width: 550px;
    min-width: auto;
    order: 2;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Ajuster les carrés décoratifs pour qu'ils ne gênent pas */
  .about::before,
  .about::after {
    opacity: 0.5;
    transform: scale(0.7);
  }
  
  /* Optimiser l'avatar sur tablette */
  .profile-avatar {
    width: 140px;
    height: 140px;
  }
  
  /* Ajuster les skills */
  .profile-skills {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .skill-tag {
    margin-bottom: 8px;
  }
  
  /* 6. PROJET/TIMELINE SECTION */
  .process-timeline-section {
    margin-top: 30px;
  }
  
  /* Améliorer la lisibilité des titres sur mobile */
  .process-timeline-section .section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
}

/*--------------------------------------------------
 # Media Queries - Mobiles
--------------------------------------------------*/

/* Restauration des styles desktop pour le menu */
@media (min-width: 992px) {
  /* Cacher les éléments spécifiques au menu mobile sur desktop */
  .mobile-menu-btn,
  .mobile-menu-overlay,
  .mobile-menu-header,
  .mobile-menu-close,
  .nav-links .mobile-menu-logo,
  .nav-links .mobile-menu-title,
  .mobile-contact-btn {
    display: none !important;
  }
  
  /* Restaurer les styles de navigation desktop */
  .nav-links {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    transition: none !important;
    padding: 0 !important;
    left: auto !important;
  }
  
  /* Restaurer les styles des liens de navigation */
  .nav-links a {
    display: inline-block !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    background: none !important;
    transform: none !important;
    font-size: 0.95rem !important;
    font-weight: normal !important;
  }
  
  /* Cacher les icônes sur desktop */
  .nav-links a i {
    display: none !important;
  }
  
  /* Restaurer l'effet de soulignement sur desktop */
  .nav-links a::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 2px !important;
    background: white !important;
    transition: width 0.3s ease !important;
  }
  
  .nav-links a:hover::before {
    width: 70% !important;
  }
  
  /* Restaurer l'effet de survol correct */
  .nav-links a:hover {
    background: transparent !important;
    transform: translateY(-2px) !important;
  }
}

@media (max-width: 767px) {
  /* 1. HEADER & NAVIGATION */
  /* Pas besoin de surcharger les styles existants pour mobile */
  
  /* 2. LANDING SECTION */
  /* Styles déjà appliqués dans les media queries précédentes */
  
  /* 3. SERVICES SECTION */
  .services {
    padding: 50px 0 80px 0;
  }

  .story-content {
    padding: 28px 20px 16px 20px !important;
    text-align: justify;
  }
  
  /* Single column on mobile */
  .services-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* -------------------------------------------------- 
   * 3.1 INTERACTIVE SERVICE CARDS - MOBILE SPECIFIC
   * -------------------------------------------------- */
  /* Base card structure */
  .service-card {
    height: 380px !important;
    margin: 0 auto 30px !important;
    width: 92% !important; /* Fixed width instead of max-width for uniformity */
  }
  
  /* Ensure all cards have the same width */
  .service-card[data-service="web-dev"],
  .service-card[data-service="automation"],
  .service-card[data-service="project-management"] {
    width: 92% !important;
  }
  
  /* Diagonal clip-path styling */
  .card-bg {
    clip-path: polygon(0% 0%, 100% 0%, 100% 42%, 0% 58%) !important;
  }
  
  .card-gradient {
    clip-path: polygon(0% 0%, 100% 0%, 100% 42%, 0% 58%) !important;
  }
  
  /* Hover effect to expand clip-path */
  .service-card:hover .card-bg,
  .service-card:hover .card-gradient {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  }
  
  /* Title container adjustments */
  .title-container {
    margin-bottom: 8px !important;
  }
  
  .title-container h3 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  }
  
  /* Main description container */
  .service-description {
    position: absolute !important;
    top: 80px !important; /* Vertical position of entire description block */
    left: 10px !important;
    width: 80% !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* -------------------------------------------------- 
   * 3.2 DESCRIPTION POSITIONING SYSTEM
   * -------------------------------------------------- */
  /* Base styles for all description lines */
  .service-brief-top, .service-brief-bottom {
    position: relative !important;
    margin-bottom: 15px !important; /* Spacing between lines */
    display: inline-block !important;
    padding: 5px 0 !important;
    margin: 5px 0 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  /* Card 1: Web Development - Top Line */
  .service-card[data-service="web-dev"] .service-brief-top {
    top: 74px !important;
    left: 7% !important;
  }
  /* Card 1: Web Development - Bottom Line */
  .service-card[data-service="web-dev"] .service-brief-bottom {
    top: 56px !important;
    left: 2% !important;
  }
  
  /* Card 2: Automation - Top Line */
  .service-card[data-service="automation"] .service-brief-top {
    top: 74px !important;
    left: 7% !important;
  }
  /* Card 2: Automation - Bottom Line */
  .service-card[data-service="automation"] .service-brief-bottom {
    top: 54px !important;
    left: 4% !important;
  }
  
  /* Card 3: Project Management - Top Line */
  .service-card[data-service="project-management"] .service-brief-top {
    top: 74px !important;
    left: 7% !important;
  }
  /* Card 3: Project Management - Bottom Line */
  .service-card[data-service="project-management"] .service-brief-bottom {
    top: 56px !important;
    left: 4% !important;
  }
  
  /* -------------------------------------------------- 
   * 3.3 ROTATION ANGLE CONTROL SYSTEM
   * -------------------------------------------------- */
  /* Rotation angles for descriptions (default and per card) */
  :root {
    --default-angle: -9.5deg; /* Default angle */
    
    /* Card-specific angles */
    --web-dev-top-angle: var(--default-angle);
    --web-dev-bottom-angle: var(--default-angle);
    
    --automation-top-angle: var(--default-angle);
    --automation-bottom-angle: var(--default-angle);
    
    --project-management-top-angle: var(--default-angle);
    --project-management-bottom-angle: var(--default-angle);
  }
  
  /* Apply specific angles to each card and line */
  /* Web Development */
  .service-card[data-service="web-dev"] .service-brief-top {
    transform: rotate(var(--web-dev-top-angle)) !important;
  }
  .service-card[data-service="web-dev"] .service-brief-bottom {
    transform: rotate(var(--web-dev-bottom-angle)) !important;
  }
  
  /* Automation */
  .service-card[data-service="automation"] .service-brief-top {
    transform: rotate(var(--automation-top-angle)) !important;
  }
  .service-card[data-service="automation"] .service-brief-bottom {
    transform: rotate(var(--automation-bottom-angle)) !important;
  }
  
  /* Project Management */
  .service-card[data-service="project-management"] .service-brief-top {
    transform: rotate(var(--project-management-top-angle)) !important;
  }
  .service-card[data-service="project-management"] .service-brief-bottom {
    transform: rotate(var(--project-management-bottom-angle)) !important;
  }
  
  /* -------------------------------------------------- 
   * 3.4 DESCRIPTION COLORS
   * -------------------------------------------------- */
  /* Top description - White text */
  .service-brief-top {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  }
  
  /* Bottom description - Service-specific colors */
  .service-card[data-service="web-dev"] .service-brief-bottom {
    color: rgba(32, 124, 229, 1) !important; /* Blue */
  }
  
  .service-card[data-service="automation"] .service-brief-bottom {
    color: rgba(69, 39, 160, 1) !important; /* Purple */
  }
  
  .service-card[data-service="project-management"] .service-brief-bottom {
    color: rgba(249, 193, 7, 1) !important; /* Yellow */
  }
  
  /* -------------------------------------------------- 
   * 3.5 FINE-TUNING WITH MARGINS
   * -------------------------------------------------- */
  /* Web Development card - margins adjustments */
  .service-card[data-service="web-dev"] .service-brief-bottom {
    margin-left: 15% !important;
  }
  
  /* Automation card - margins adjustments */
  .service-card[data-service="automation"] .service-brief-top {
    margin-left: 8% !important;
  }
  
  .service-card[data-service="automation"] .service-brief-bottom {
    margin-left: 18% !important;
  }
  
  /* Project management card - margins adjustments */
  .service-card[data-service="project-management"] .service-brief-top {
    margin-left: 6% !important;
  }
  
  .service-card[data-service="project-management"] .service-brief-bottom {
    margin-left: 16% !important;
  }
  
  /* -------------------------------------------------- 
   * 3.6 CARD DETAILS & TOUCH/HOVER EFFECTS
   * -------------------------------------------------- */
  /* Card details container */
  .card-details {
    position: relative !important;
    margin-top: 95px !important; /* Augmenté pour laisser place aux descriptions brèves */
    padding: 0 15px !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
  }
  
  /* Support for both hover on desktop and touch on mobile */
  .service-card:hover .card-details,
  .service-card:active .card-details,
  .service-card:focus .card-details,
  .service-card.touched .card-details {
    opacity: 1 !important;
    display: block !important; /* Forcer l'affichage */
    visibility: visible !important;
    height: auto !important; /* Rétablir la hauteur auto */
    overflow: visible !important; /* Permettre l'affichage du contenu qui déborde */
    transform: translateY(0) !important; /* Annuler tout décalage */
    max-height: none !important; /* Retirer toute limitation de hauteur */
  }
  
  /* Règles spécifiques pour s'assurer que les détails sont visibles sur mobile */
  @media (max-width: 767px) {
    /* Repositionnement de la boule décorative .dot1 pour mobile (ex-about-responsive.css) */
    .dot1 {
      top: 6px !important;
      right: 27px !important;
      width: 32px !important;
      height: 32px !important;
    }
    .card-details {
      top: 45% !important; /* Position optimale verticalement */
      transform: translateY(-50%) !important;
      padding: 0 15px !important;
      width: 90% !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
      text-align: center !important;
    }
    
    /* Uniquement le paragraphe principal */
    .card-details p {
      display: block !important;
      opacity: 1 !important;
      visibility: visible !important;
      position: relative !important;
      z-index: 10 !important;
      background: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      padding: 0 !important;
      margin: 0 auto 5px auto !important;
      font-size: 1rem !important;
      line-height: 1.5 !important;
      color: white !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
      border: none !important;
      max-width: 95% !important;
    }
    
    /* Masquer les listes sur mobile */
    .card-details ul {
      display: none !important;
    }
    
    /* Masquer également les items de liste */
    .card-details li {
      display: none !important;
    }
  }
  
  /* Card details text styling */
  .card-details p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    max-width: 90% !important; /* Limiter la largeur pour éviter les débordements */
    text-shadow: none !important; /* Enlever les ombres pour meilleure lisibilité */
  }
  
  .card-details ul {
    margin-left: 0 !important;
    padding-left: 20px !important;
  }
  
  .card-details li {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
  }
  
  /* Button positioning */
  .more-btn {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background: transparent !important; /* Fond transparent */
    padding: 8px 15px !important;
    border-radius: 30px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  
  .more-btn:active {
    transform: scale(0.98) !important; /* Léger effet d'enfoncement au toucher */
  }
  
  /* Performance optimization */
  .card-blur {
    opacity: 0 !important;
  }
  
  /* Show blur on hover/touch */
  .service-card:hover .card-blur,
  .service-card:active .card-blur,
  .service-card:focus .card-blur,
  .service-card.touched .card-blur {
    opacity: 1 !important;
  }
  
  /* Hide descriptions on hover/touch */
  .service-card:hover .service-brief-top,
  .service-card:hover .service-brief-bottom,
  .service-card:active .service-brief-top,
  .service-card:active .service-brief-bottom,
  .service-card:focus .service-brief-top,
  .service-card:focus .service-brief-bottom,
  .service-card.touched .service-brief-top,
  .service-card.touched .service-brief-bottom {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Service detail modals adjustments */
  .service-detail {
    width: 95%;
    padding: 20px;
    max-height: 85vh;
  }
  
  .detail-header h3 {
    font-size: 1.5rem;
  }
  
  .detail-content {
    padding: 15px;
  }
  
  /* Ajuster les titres */
  .service-card .title-container h3 {
    font-size: 1.4rem;
  }
  
  /* Réduire la taille de l'icône */
  .service-icon {
    width: 45px;
    height: 45px;
  }
  
  /* Optimiser le texte dans les cartes */
  .service-brief-top,
  .service-brief-bottom {
    font-size: 0.9rem;
  }
  
  .card-details ul li {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  
  /* Ajuster le bouton */
  .more-btn .btn-text {
    font-size: 0.9rem;
  }
  
  /* 4. PORTFOLIO SECTION */
  .portfolio {
    padding: 50px 0 60px 0;
  }
  
  /* Une seule colonne sur mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  
  /* Adapter la taille des cartes */
  .portfolio-item {
    height: 310px;
    max-width: 90%;
    margin: 0 auto;
  }
  
  /* Simplifier les animations et transitions pour mobile */
  .portfolio-item {
    transform: none !important; /* Désactiver les effets 3D qui peuvent être lourds */
    transition: transform 0.3s ease;
  }
  
  .portfolio-item:hover {
    transform: translateY(-5px) !important; /* Animation simplifiée */
  }
  
  .portfolio-content h3 {
    font-size: 1.3rem;
  }
  
  /* Ajuster le bouton Voir plus */
  .view-more {
    margin-top: 40px;
  }
  
  .view-more .btn {
    width: 80%;
    max-width: 260px;
  }
  
  /* 5. ABOUT SECTION */
  .about {
    padding: 40px 0 20px 0;
  }
  
  /* Réduire la taille des conteneurs */
  .about-profile,
  .about-story {
    width: 95%;
  }
  
  /* Optimiser l'affichage du profil */
  .profile-avatar-container {
    margin-bottom: 15px;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
  }
  
  .profile-title {
    font-size: 1.4rem;
  }
  
  .profile-subtitle {
    font-size: 0.95rem;
  }
  
  /* Ajuster les badges */
  .profile-badges {
    padding: 10px;
  }
  
  .badge-item {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .story-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .story-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Ajuster la citation */
  .story-quote {
    padding: 15px 15px;
    margin: 20px 0;
  }
  
  .story-quote blockquote {
    font-size: 1rem;
  }
  
  /* Optimiser le bouton */
  .cta-button {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------
 # Media Queries - Very Small Screens
--------------------------------------------------*/

/* Extra small screens (< 360px) */
@media (max-width: 360px) {
  /* Services Section Adjustments */
  .service-card {
    height: 420px !important; /* Adjusted height for very small screens */
  }
  
  .card-details p {
    font-size: 0.9rem !important;
  }
  
  .card-details li {
    font-size: 0.85rem !important;
  }
}

/*--------------------------------------------------
 # Media Queries - Small Phones
--------------------------------------------------*/

@media (max-width: 480px) {
  /* 1. HEADER & NAVIGATION */
  .logo img {
    height: 32px;
  }
  
  .nav-links {
    width: 85%;
    padding: 40px 20px;
  }
}

/*--------------------------------------------------
 # Media Queries - Restauration des styles Desktop
--------------------------------------------------*/

@media (min-width: 992px) {
  /* Restaurer le menu desktop */
  .nav-links {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    z-index: auto !important;
    max-width: none !important;
    gap: 50px !important; /* Augmentation de l'espacement entre les liens */
  }
  
  /* S'assurer que le bouton contact principal est visible */
  .contact-btn {
    display: block !important;
  }
  
  /* Masquer complètement le bouton contact mobile */
  .mobile-contact-btn {
    display: none !important;
  }
  
  /* Restaurer les animations SVG en desktop */
  .desktop-only {
    display: block !important;
  }
  
  .mobile-only {
    display: none !important;
  }
  
  /* Restaurer la mise en page du héro */
  .hero-content {
    display: flex !important;
    flex-direction: row !important;
    padding: 0 50px !important;
    margin-top: 0 !important;
  }
  
  .hero-text {
    order: unset !important;
    text-align: left !important;
  }
  
  .hero-image {
    order: unset !important;
  }
}

@media (max-width: 480px) {
  
  /* 2. LANDING SECTION */
  /* Styles déjà appliqués dans les media queries précédentes */
  
  /* 6. PROJET/TIMELINE SECTION */
  /* Optimisations supplémentaires pour très petits écrans */
  .process-timeline-section {
    padding: 30px 0;
    margin-top: 15px;
  }
  
  .timeline-wrapper {
    padding: 0 5px;
    max-width: 100%;
  }
  
  /* Ajustement de la position de la barre verticale pour petits écrans */
  .timeline-bar {
    width: 4px;
  }
  
  /* Réajustement des dimensions des cercles pour petit écran */
  .timeline-circle {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  /* Ajustements textuels */
  .timeline-step-label {
    font-size: 0.85rem;
  }
  
  .timeline-step-description {
    max-width: 180px;
    font-size: 0.7rem;
  }
  
  /* Détails d'étape plus compacts */
  .step-detail {
    padding: 18px 15px;
  }
  
  .step-detail-left h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  
  .step-detail-right {
    flex: 0 0 150px;
  }
  
  /* 3. SERVICES SECTION */
  .services {
    padding: 40px 0 60px 0;
  }
  
  .service-card {
    height: 300px;
    max-width: 95%;
  }
  
  /* Simplifier davantage la carte pour les petits écrans */
  .card-details p {
    display: none; /* Masquer la description détaillée pour gagner de l'espace */
  }
  
  .card-details ul {
    margin-top: 5px;
  }
  
  /* Réduire la hauteur du modal */
  .service-detail {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Centrer le titre de section */
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  /* 4. PORTFOLIO SECTION */
  .portfolio {
    padding: 40px 0 50px 0;
  }
  
  .portfolio-grid {
    gap: 20px;
  }
  
  .portfolio-item {
    height: 290px;
    max-width: 95%;
  }
  
  /* Simplifier encore les détails pour les petits écrans */
  .project-details ul li {
    font-size: 0.8rem;
    padding: 5px 8px;
    margin-bottom: 3px;
  }
  
  /* Réduire la taille du titre de section */
  .portfolio .section-title h2 {
    font-size: 1.6rem;
  }
  
  /* Centrer le texte des boutons */
  .view-more .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  /* 5. ABOUT SECTION */
  .about {
    padding: 30px 0 15px 0;
  }
  
  /* Réduire davantage pour les petits mobiles */
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .profile-title {
    font-size: 1.3rem;
  }
  
  /* Réduire les badges pour qu'ils tiennent mieux */
  .profile-badges {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .badge-item {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin-bottom: 5px;
  }
  
  /* Simplifier les skills */
  .skill-tag {
    padding: 5px 10px;
    font-size: 0.75rem;
    margin-right: 5px;
  }
  
  /* Ajuster le texte */
  .story-title {
    font-size: 1.4rem;
  }
  
  .story-paragraph {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  /* Simplifier la citation */
  .story-quote {
    padding: 12px 12px;
  }
  
  .story-quote blockquote {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  
  .story-quote blockquote::before,
  .story-quote blockquote::after {
    font-size: 1.2rem;
  }
  
  /*--------------------------------------------------
   # 6. PROJET/TIMELINE SECTION
  --------------------------------------------------*/
  
  /* Tablettes et écrans moyens */
  @media (max-width: 1000px) {
    .timeline-container {
      padding: 0 20px;
    }
    
    .timeline-node {
      width: auto;
      flex: 1;
    }
    
    .timeline-circle {
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
      margin-bottom: 70px;
    }
  }
  
  .process-timeline-section {
    padding: 40px 0;
    margin-top: 20px;
    position: relative;
  }
  
  /* Carré décoratif en arrière-plan - propriétés exactes de la capture d'écran */
  .process-timeline-bg-square {
    content: "";
    position: absolute;
    left: 392px;
    top: 264px;
    width: 320px;
    height: 320px;
    border: 2px solid rgba(123, 31, 162, 0.08);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.09), rgba(64, 76, 186, 0.05));
    border-radius: 32px;
    transform: rotate(30deg);
    pointer-events: none;
    opacity: 0.75;
    z-index: 0;
    box-shadow: 0 15px 35px rgba(123, 31, 162, 0.08);
  }
  
  /* Structure timeline pour mobile */
  .timeline-wrapper {
    position: relative;
    padding: 0 20px;
    max-width: 450px;
    margin: 0 auto;
  }
  
  /* Barre verticale positionnée correctement - commence un peu plus haut */
  .timeline-bar {
    top: -20px; /* Position légèrement plus haute pour voir la barre avant le cercle 1 */
    left: 199px; /* Position alignée */
    width: 10px; /* Épaisseur standard */
    height: calc(100% + 20px); /* Hauteur ajustée pour compenser le décalage vers le haut */
    transform: none;
    margin-top: 0;
    position: absolute;
    z-index: 1; /* Sous les cercles */
    background-color: rgba(240, 240, 250, 0.5); /* Fond discret */
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); /* Légère ombre intérieure */
  }
  
  .timeline-progress {
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* Hauteur initiale, mise à jour par JS */
    position: absolute;
    background-color: var(--timeline-purple); /* Couleur maintenue */
    border-radius: 4px; /* Cohérent avec la barre principale */
    box-shadow: 0 0 8px rgba(123, 31, 162, 0.3); /* Lueur violette */
    transition: height 0.8s cubic-bezier(0.215, 0.61, 0.355, 1); /* Animation smooth sur mobile */
  }
  
  /* Structure des noeuds */
  .timeline-nodes {
    flex-direction: column;
    height: auto;
    gap: 20px; /* Espacement encore plus réduit entre les étapes */
    align-items: flex-start; /* Alignement à gauche */
    margin-left: 0;
    margin-bottom: 20px; /* Encore plus réduit pour raccourcir la barre */
    position: relative;
    padding: 3px 0; /* Minimal padding vertical */
    padding-left: 15px; /* Maintien de l'alignement horizontal */
  }
  
  .timeline-node {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    position: relative;
  }
  
  /* Style des cercles */
  .timeline-circle {
    margin: 0 0 0 0; /* Espacement entre cercle et texte */
    width: 50px; /* Taille des cercles augmentée */
    height: 50px;
    font-size: 1.5rem; /* Taille du texte rétablie */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5; /* Au-dessus de la barre */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Ombre standard */
    position: relative;
    border: 2.5px solid #e0e0e0; /* Épaisseur bordure standard */
    background-color: white;
    transition: all 0.3s ease;
  }
  
  /* Suppression d'éléments inutiles */
  .timeline-node::after {
    display: none;
  }
  
  /* Conteneur du texte et description - plus flexible */
  .timeline-step-info {
    text-align: left;
    flex: 1;
    position: relative; /* Permet un positionnement plus libre */
    margin-left: 20px; /* Espace après le cercle */
  }
  
  .timeline-step-label {
    /* Style du label - facilement ajustable */
    display: block;
    text-align: left;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    /* Plus de padding imposé - ajustable manuellement */
  }
  
  /* Couleur violette pour les titres des étapes précédentes sur mobile */
  .timeline-step-label.previous-step {
    color: var(--timeline-purple);
    font-weight: 600;
  }
  
  .timeline-step-description {
    /* Style de la description - facilement ajustable */
    display: block;
    font-size: 0.75rem;
    margin-top: 5px; /* Espacement par défaut entre label et description */
    max-width: 220px;
    opacity: 0.7;
    line-height: 1.3;
    /* Aucun positionnement forcé - ajustable manuellement */
  }
  
  /* Styles pour les noeuds actifs et complétés */
  .timeline-node.active .timeline-circle {
    transform: scale(1.08); /* Légèrement plus grand mais pas trop */
    box-shadow: 0 0 0 6px rgba(123, 31, 162, 0.2), 0 8px 20px rgba(123, 31, 162, 0.25);
    border-color: var(--timeline-purple);
    background-color: rgba(123, 31, 162, 0.08);
  }
  
  /* Effet de halo derrière le cercle actif */
  .timeline-node.active .timeline-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.2) 0%, rgba(123, 31, 162, 0) 70%);
    border-radius: 50%;
    z-index: -1;
  }
  
  /* Style pour les étapes complétées */
  .timeline-node.completed .timeline-circle {
    background-color: var(--timeline-purple);
    border-color: var(--timeline-purple);
  }
  
  /* Accentuation du texte pour l'étape active */
  .timeline-node.active .timeline-step-label {
    color: var(--timeline-purple);
    font-weight: 700;
  }
  
  /* Style des étapes complétées sans coche */
  .timeline-node.completed .timeline-circle span {
    /* Pas de contenu supplémentaire, juste le numéro */
    position: relative;
    opacity: 1;
  }
  
  /* Système de positionnement individuel pour toutes les étapes */
  .timeline-step-label,
  .timeline-step-description {
    position: relative;
    display: block;
    margin-left: 15px;
    z-index: 2;
  }
  
  /* Style spécifique pour les descriptions pour qu'elles soient plus courtes */
  @media (max-width: 768px) {
    .timeline-step-description {
      max-width: 180px; /* Limite la largeur maximale */
      padding: 3px 6px; /* Léger padding pour l'espacement */
    }
  }
  
  /* Étape 1: On se rencontre */
  .timeline-node[data-step="1"] .timeline-step-label {
    position: relative;
    top: -52px;
    left: -9px;
  }
  
  .timeline-node[data-step="1"] .timeline-step-description {
    position: relative;
    top: -57px;
    left: -43px;
  }
  
  /* Étape 2: Proposition */
  .timeline-node[data-step="2"] .timeline-step-label {
    position: relative;
    top: -46px;
    left: 212px;
  }
  
  .timeline-node[data-step="2"] .timeline-step-description {
    position: relative;
    top: -52px;
    left: 167px;
  }
  
  /* Étape 3: Production */
  .timeline-node[data-step="3"] .timeline-step-label {
    position: relative;
    top: -48px;
    left: 13px;
  }
  
  .timeline-node[data-step="3"] .timeline-step-description {
    position: relative;
    top: -53px;
    left: -40px;
  }
  
  /* Étape 4: Ajustements */
  .timeline-node[data-step="4"] .timeline-step-label {
    position: relative;
    top: -49px;
    left: 218px;
  }
  
  .timeline-node[data-step="4"] .timeline-step-description {
    position: relative;
    top: -56px;
    left: 172px;
  }
  
  /* Étape 5: Mise en ligne */
  .timeline-node[data-step="5"] .timeline-step-label {
    position: relative;
    top: -49px;
    left: -2px;
  }
  
  .timeline-node[data-step="5"] .timeline-step-description {
    position: relative;
    top: -55px;
    left: -51px;
  }
  
  /* Étape 6: Accompagnement */
  .timeline-node[data-step="6"] .timeline-step-label {
    position: relative;
    top: -50px;
    left: 196px;
  }
  
  .timeline-node[data-step="6"] .timeline-step-description {
    position: relative;
    top: -56px;
    left: 170px;
  }
  
  /* Vous pouvez ajuster les valeurs top, right, bottom et left selon vos besoins
     par exemple: top: 15px; left: 20px; ou top: -10px; right: 5px; */
  
  /* Boîtes de détails */
  .step-details-container {
    height: auto;
    min-height: 370px; /* Augmenté pour s'assurer que tout est visible */
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 12px;
    position: relative;
  }
  
  .step-detail {
    flex-direction: column;
    height: auto;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.1);
    border: 1px solid rgba(123, 31, 162, 0.08);
    background: linear-gradient(to bottom, #ffffff, #fbfaff);
    display: block;
    width: 100%;
  }
  
  /* Masquer les éléments non actifs uniquement, au lieu de masquer tout par défaut */
  .step-detail:not(.active) {
    display: none;
  }
  
  /* Styles spécifiques pour le bouton et le conteneur d'appel à l'action */
  .step-detail-cta {
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: center;
    display: block;
    width: 100%;
  }
  
  .step-detail-cta .btn {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .step-detail-left {
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .step-detail-left h3 {
    font-size: 1.4rem;
    color: var(--timeline-purple);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 14px;
    text-align: center;
  }
  
  .step-detail-left h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--timeline-purple);
    border-radius: 2px;
    opacity: 0.7;
  }
  
  .step-detail-left p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #444;
  }
  
  .step-detail-right {
    display: none; /* Masquer l'élément complètement sur mobile */
    width: 100%;
    flex: 0 0 180px; /* Hauteur réduite */
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .step-detail-right img,
  .step-detail-right .step-illustration {
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    background: rgba(250, 248, 255, 0.8);
  }
  
  /* Optimiser les features */
  .feature h4 {
    font-size: 0.95rem;
  }
  
  .feature p {
    font-size: 0.8rem;
  }
  
  .feature-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.9rem;
    margin-right: 10px;
  }
  
  /* 7. FOOTER - Optimisation mobile */
  .modern-footer {
    padding: 2rem 0 1rem;
  }
  
  .modern-footer .container {
    padding: 0 20px;
    text-align: center;
  }
  
  .modern-footer .step-detail-cta {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    display: block;
    width: 100%;
  }
  
  .step-detail-cta .btn {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    margin: 0 auto;
    white-space: nowrap;
  }
  
  /* Ajustements pour les SVG */
  .mobile-svg-main {
    max-width: 90%;
    margin: 0 auto;
    display: block;
  }
  
  /* Filtre pour éclaircir tous les SVG sur mobile */
  img[src*=".svg"],
  .svg-decorative,
  .process-timeline-section img[src*=".svg"],
  .timeline-illustration svg,
  .step-detail img[src*=".svg"] {
    filter: brightness(1.15) opacity(0.85); /* Éclaircit les SVG et les rend légèrement transparents */
    transition: filter 0.3s ease;
  }
  
  /* Logo centré en haut */
  .modern-footer .footer-logo {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.8rem; /* Espace réduit */
  }
  
  .modern-footer .footer-logo img {
    max-width: 70px; /* Logo plus petit */
    margin-bottom: 0.3rem; /* Espace réduit */
  }
  
  .modern-footer .footer-logo p {
    font-size: 0.75rem; /* Texte plus petit */
    margin: 0;
    padding: 0;
    text-align: center;
  }
  
  /* Navigation horizontale sur une ligne */
  .modern-footer .footer-links {
    width: 100%;
    margin: 0 auto 0.8rem; /* Espace réduit entre les liens et les réseaux */
  }
  
  .modern-footer .footer-links ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
    justify-content: center;
    gap: 8px; /* Espacement réduit entre les liens */
    padding: 5px 0;
    margin: 0;
    white-space: nowrap; /* Empêche le retour à la ligne */
    -ms-overflow-style: none; /* Masque la barre de défilement sous IE et Edge */
    scrollbar-width: none; /* Masque la barre de défilement sous Firefox */
  }
  
  /* Masquer la barre de défilement pour Chrome, Safari et Opera */
  .modern-footer .footer-links ul::-webkit-scrollbar {
    display: none;
  }
  
  .modern-footer .footer-links li {
    margin: 0;
    padding: 0;
  }
  
  /* Taille de police uniforme pour tous les liens du footer sur mobile */
  .modern-footer .footer-links a {
    padding: 2px 0;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  /* Contacts également centrés */
  .modern-footer .footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Espace réduit entre les réseaux */
    align-items: center;
    margin: 0 auto;
  }
  
  .modern-footer .animated-social-link {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .modern-footer .animated-social-link .icon-container {
    display: flex;
    width: 20px; /* Icône plus petite */
    height: 20px; /* Icône plus petite */
    justify-content: center;
    align-items: center;
    margin-right: 6px; /* Espace réduit */
  }
  
  .modern-footer .animated-social-link .social-icon {
    width: 14px; /* Icône plus petite */
    height: 14px; /* Icône plus petite */
  }
  
  .modern-footer .animated-social-link .link-text {
    max-width: 100%;
    opacity: 1;
  }
  
  .modern-footer .animated-social-link .typing-content,
  .modern-footer .animated-social-link span {
    width: auto;
    font-size: 0.75rem; /* Texte plus petit pour les réseaux */
    animation: none; /* Désactiver l'animation sur mobile */
  }
  
  /* Copyright en bas */
  .modern-footer .footer-bottom {
    text-align: center;
    justify-content: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .modern-footer .footer-bottom p {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
  }
}

/*--------------------------------------------------
 # Contact page responsive styles
--------------------------------------------------*/

/* Tablet breakpoint */
@media (max-width: 991px) {
  /* Contact form section adjustments for tablet */
  .contact-form-container {
    grid-template-columns: 1fr; /* Stack columns on top of each other */
  }
  
  .contact-info {
    border-radius: 20px 20px 0 0; /* Adjust top corners only */
    padding: 30px; /* Reduce padding */
    text-align: center; /* Center text in violet section */
  }
  
  /* Center and style the line under title */
  .contact-info h3:after {
    left: 50%; /* Center the line */
    transform: translateX(-50%); /* Ensure it's truly centered */
    background-color: #fff; /* Make it white */
    margin-bottom: 25px; /* Add space below */
    width: 80px; /* Make it slightly wider */
  }
  
  /* Center text in contact info section */
  .contact-info h3 {
    text-align: center;
    margin-bottom: 30px; /* Increase spacing after title */
  }
  
  .contact-info p {
    text-align: center;
  }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  /* Contact form adjustments - stack elements properly */
  .contact-form-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Make left column (contact info) appear on top */
  .contact-info {
    width: 100% !important;
    order: 1 !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 30px 20px !important;
  }
  
  /* Hide intro text on mobile */
  .contact-intro-text {
    display: none !important;
  }
  
  /* Fix the line position under title so it doesn't cut through 'vous' */
  .contact-info h3:after {
    bottom: -20px !important; /* Move the line down */
    background-color: #fff !important; /* Make it white */
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 10px !important;
    width: 80px !important;
  }
  
  /* Form layout for mobile - consolidated styles */
  .form-container {
    width: 100% !important;
    order: 2 !important;
    border-radius: 0 0 20px 20px !important;
    padding: 25px !important;
  }
  
  /* Add margins to the overall contact form container */
  .contact-form-container {
    width: 92% !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    overflow: hidden !important; /* Ensure inner elements respect border-radius */
  }
  
  /* Make form elements take full width */
  .contact-form {
    width: 100% !important;
  }
  
  /* Contact method styles consolidated */
  .contact-method {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 5px !important;
  }
  
  .contact-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important; /* Uniform spacing between emoji and text */
    font-size: 1.2rem !important;
    width: 16px !important;
    height: 16px !important;
    margin-top: 0 !important;
  }
  
  /* Reduce text size for form field labels on mobile */
  .form-group label {
    font-size: 0.8rem;
  }
  
  /* Add space above social links */
  .contact-info .contact-social-links {
    margin-top: 30px !important;
  }
  
  /* Fix fields to fit on one line on mobile */
  .form-group input,
  .form-group textarea {
    font-size: 0.85rem; /* Reduce font size */
    padding: 10px 12px; /* Reduce padding */
    width: 100% !important;
  }
  
  /* Hide LinkedIn and Email on mobile */
  .contact-info .animated-social-link:nth-child(1),
  .contact-info .animated-social-link:nth-child(2) {
    display: none;
  }
  
  /* Footer links adjustment for single line */
  .modern-footer .footer-links ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 10px;
    padding-bottom: 0;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
  
  /* Ajustement de l'espace entre logo et liens */
  .modern-footer .footer-logo {
    margin-bottom: 5px !important;
  }
  
  /* Réduire l'espace entre les liens et les contacts */
  .modern-footer .footer-contact-links {
    margin-top: 5px !important;
  }
  
  /* Hide contact link in footer on mobile */
  .modern-footer .footer-links ul li:last-child {
    display: none !important;
  }
  
  /* Reduce font size for footer links on mobile */
  .modern-footer .footer-links ul li a {
    font-size: 0.70rem !important;
    padding: 0 4px !important;
  }
  
  /* Reduce logo size in footer */
  .modern-footer .footer-logo img {
    max-width: 70px !important;
  }
  
  .modern-footer .footer-logo p {
    font-size: 0.7rem !important;
  }
  
  .modern-footer .footer-links ul::-webkit-scrollbar {
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .modern-footer .footer-links ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .modern-footer .footer-links li {
    margin-bottom: 8px;
  }
  
  /* (Définition supprimée car déjà présente dans la règle tablette) */
  
  /* Reorganize contact methods - availability at top, email & phone bottom */
  .contact-info .contact-methods-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 15px !important;
    width: 100% !important;
  }
  
  /* Ajout d'espace au-dessus du titre */
  .contact-info h3 {
    padding-top: 15px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
  }

  /* Barre blanche sous le titre - plus large et plus bas */
  .contact-info h3::after {
    margin-top: 10px !important;
    width: 70px !important;
    height: 3px !important;
  }
  
  /* Wrapper pour disponibilité et téléphone sur une même ligne */
  .contact-info .dispo-phone-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 15px !important; /* Espace réduit après la barre */
    flex-wrap: wrap !important;
  }
  
  /* Style pour chaque méthode de contact */
  .dispo-phone-wrapper .contact-method {
    display: flex !important;
    width: auto !important;
    margin: 5px 10px !important;
    min-width: 130px !important;
  }
  
  /* Contact header mobile styles */
  .contact-hero {
    background-size: 200% auto !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  .contact-header h1 {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }
  
  .contact-header .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    max-width: 80% !important;
    margin: 0 auto !important;
    white-space: normal !important;
    display: block !important;
    padding: 0 10px !important;
  }
  
  /* Additional header adjustments for very small screens */
  @media (max-width: 480px) {
    .contact-header .hero-subtitle {
      font-size: 0.75rem !important;
      max-width: 90% !important;
    }
  }
  
  /* Reduce font size for contact info */
  .contact-text {
    text-align: left !important; /* Force left alignment for all contact methods */
  }
  
  .contact-text h4 {
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }
  
  .contact-text p {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important; /* Empêcher le retour à la ligne */
    text-align: left !important;
  }
  
  /* Move titles up to prevent overflow */
  .contact-header h2,
  .contact-header p {
    margin-bottom: 8px;
  }
  
  /* Form group adjustments for full width */
  .form-group {
    flex: 1 0 100% !important;
    width: 100% !important;
  }
  
  /* Center captcha on mobile */
  .g-recaptcha {
    display: flex !important;
    justify-content: center !important;
    margin: 15px 0 !important;
  }
}

/* Very small screens adjustments */
@media (max-width: 480px) {
  /* Further reduce padding */
  .contact-info {
    padding: 20px 15px !important;
  }
  
  .form-container {
    padding: 20px 15px !important;
  }
  
  /* Make form fields full width on very small screens */
  .form-group {
    flex: 1 0 100% !important;
    margin-bottom: 12px !important;
  }
  
  /* Adjust button sizes */
  .submit-btn {
    padding: 12px !important;
    font-size: 0.9rem !important;
    width: 100% !important;
  }
}

/* Ajustements pour très petits écrans */
@media (max-width: 360px) {
  .modern-footer .footer-links ul {
    gap: 6px;
  }
}
