/*--------------------------------------------------
 # 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
--------------------------------------------------*/

/*--------------------------------------------------
 # Styles du menu mobile supprimés
--------------------------------------------------*/
/* Les styles du menu mobile ont été retirés comme demandé */

/*--------------------------------------------------
 # 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 supprimés */
  /* Tous les styles liés au menu mobile ont été retirés */
  
  /* Make the header smaller on mobile */
  .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;
  }
  
  /* Bouton de menu mobile supprimé */
  
  /* IMPORTANT - Supprimé les styles contradictoires */
  
  /* Les styles du menu mobile ont été supprimés */
  
  /* 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: 215px; /* Position ajustée pour s'aligner avec les cercles plus grands */
    width: 12px; /* Épaisseur légèrement augmentée */
    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: 6px; /* Bords légèrement plus arrondis */
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.07); /* Ombre intérieure renforcée */
  }
  
  .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: 40px; /* Espacement augmenté entre les étapes pour les grands cercles */
    align-items: flex-start; /* Alignement à gauche */
    margin-left: 0;
    margin-bottom: 30px; /* Légèrement augmenté pour la barre */
    position: relative;
    padding: 5px 0; /* Padding vertical légèrement augmenté */
    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: 80px; /* Taille des cercles considérablement augmentée */
    height: 80px;
    font-size: 2.2rem; /* Taille du texte augmentée proportionnellement */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5; /* Au-dessus de la barre */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); /* Ombre renforcée */
    position: relative;
    border: 3.5px solid #e0e0e0; /* Épaisseur bordure augmentée */
    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: 30px; /* Espace augmenté 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;
  }
  
  .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;
  }
}

/* iPhone XR, 12, 14 Optimizations */
@media only screen and (min-width: 375px) and (max-width: 428px) {
  /* Ajustements pour iPhone XR (414×896), iPhone 12 & 14 (390-428×844-926) */
  .loader-svg-container {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto !important;
  }
  
  .loader-svg {
    width: 54px !important;
    height: 54px !important;
  }
  
  .loader-progress {
    width: 240px !important;
    height: 16px !important;
    margin: 10px auto !important;
  }
  
  .loader-logo-container {
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
  }
  
  .loader-logo {
    max-width: 85px !important;
    max-height: 30px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
  }
  
  /* Fix spécifique pour éviter le débordement du loader sur ces appareils */
  .page-transition-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }
  
  /* Gestion de l'orientation portrait/paysage */
  @media (orientation: landscape) {
    .modern-loader {
      transform: scale(0.85) !important;
      gap: 15px !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;
  }
}

/*--------------------------------------------------
 # TIMELINE MOBILE - NOUVELLE VERSION
--------------------------------------------------*/

/* 
 * STRUCTURE POUR TIMELINE MOBILE
 * Chaque taille d'écran a sa propre section media query
 * Formaté pour être facilement modifiable par taille d'écran
 */

/* ======= STRUCTURE DE BASE - TEMPLATE IPHONE 14 ======= */
@media (min-width: 391px) and (max-width: 430px) {
  /* Timeline wrapper - conteneur principal */
  .timeline-wrapper {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    min-height: 500px; /* Hauteur par défaut pour iPhone 14 */
  }
  
  /* Barre verticale centrale */
  .timeline-bar {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 10px !important; /* Épaisseur pour iPhone 14 */
    height: 100% !important;
    background-color: #e6e6e6 !important;
    z-index: 1 !important;
    border-radius: 10px !important;
  }
  
  /* Barre de progrès */
  .timeline-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 0%; /* Valeur initiale, mise à jour via JS */
    background-color: #731cd8 !important;
    border-radius: 10px !important;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 2 !important;
  }
  
  /* Structure globale des nodes */
  .timeline-nodes {
    flex-direction: column !important;
    height: 100% !important;
    align-items: center !important;
    padding: 10px 0 !important;
    position: relative !important;
    z-index: 3 !important;
  }
  
  /* Chaque étape de la timeline */
  .timeline-node {
    width: 100% !important;
    margin: 10px 0 !important; /* Espacement vertical entre nodes - iPhone 14 */
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    position: relative !important;
  }
  
  /* Cercles centraux */
  .timeline-circle {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
    z-index: 5 !important;
    width: 50px !important; /* Taille pour iPhone 14 */
    height: 50px !important; /* Taille pour iPhone 14 */
    font-size: 1.1rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
  }
  
  /* Étapes impaires - texte à gauche */
  .timeline-node:nth-child(odd) .timeline-step-label {
    grid-column: 1 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-right: 15px !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.85rem !important;
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(odd) .timeline-step-description {
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: center !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    font-size: 0.7rem !important;
    max-width: 150px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
  
  /* Étapes paires - texte à droite */
  .timeline-node:nth-child(even) .timeline-step-label {
    grid-column: 3 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-left: 15px !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.85rem !important;
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(even) .timeline-step-description {
    grid-column: 3 !important;
    grid-row: 2 !important;
    padding-left: 15px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 0.7rem !important;
    max-width: 150px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
  
  /* Boîte de détails adaptée pour mobile */
  .step-detail {
    flex-direction: column !important;
  }
  
  .step-detail-left {
    padding-right: 0 !important;
    margin-bottom: 20px !important;
  }
  
  /* Conteneur des détails */
  .step-details-container {
    margin-top: 30px !important;
    height: 320px !important;
  }
}

/* ======= TEMPLATE POUR IPHONE 12/13 (376px-390px) ======= */
/* Ajustements spécifiques pour iPhone 12/13 Mini et similaires */
@media (min-width: 376px) and (max-width: 390px) {
  /* Timeline wrapper - conteneur principal */
  .timeline-wrapper {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    min-height: 480px; /* Ajuster cette valeur */
  }
  
  /* Correction spécifique pour l'étape 6 sur iPhone 12/13 */
  .timeline-node[data-step="6"] {
    transform: translateX(16px) !important;
  }
  
  /* Barre verticale centrale */
  .timeline-bar {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 10px !important; /* Ajuster si besoin */
    height: 100% !important;
    background-color: #e6e6e6 !important;
    z-index: 1 !important;
    border-radius: 10px !important;
  }
  
  /* Barre de progrès */
  .timeline-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 0%; /* Valeur initiale, mise à jour via JS */
    background-color: #731cd8 !important;
    border-radius: 10px !important;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 2 !important;
  }
  
  /* Structure globale des nodes */
  .timeline-nodes {
    flex-direction: column !important;
    height: 100% !important;
    align-items: center !important;
    padding: 10px 0 !important;
    position: relative !important;
    z-index: 3 !important;
  }
  
  /* Chaque étape de la timeline */
  .timeline-node {
    width: 100% !important;
    margin: 10px 0 !important; /* Ajuster pour iPhone 12/13 */
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    position: relative !important;
  }
  
  /* Cercles centraux */
  .timeline-circle {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
    z-index: 5 !important;
    width: 50px !important; /* Taille uniforme pour tous les mobiles */
    height: 50px !important; /* Taille uniforme pour tous les mobiles */
    font-size: 1.1rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
  }
  
  /* Étapes impaires - texte à gauche */
  .timeline-node:nth-child(odd) .timeline-step-label {
    grid-column: 1 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-right: 15px !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.85rem !important;
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(odd) .timeline-step-description {
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: center !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    font-size: 0.65rem !important; /* Ajuster pour iPhone 12/13 */
    max-width: 150px !important; /* Ajuster pour iPhone 12/13 */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
  
  /* Étapes paires - texte à droite */
  .timeline-node:nth-child(even) .timeline-step-label {
    grid-column: 3 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-left: 15px !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.85rem !important;
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(even) .timeline-step-description {
    grid-column: 3 !important;
    grid-row: 2 !important;
    text-align: center !important;
    padding-left: 15px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 0.65rem !important; /* Ajuster pour iPhone 12/13 */
    max-width: 150px !important; /* Ajuster pour iPhone 12/13 */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
}

/* ======= TEMPLATE POUR IPHONE SE ET PETITS ÉCRANS (≤ 375px) ======= */
/* Ajustements pour iPhone SE (2nd gen), iPhone X et écrans 375px */
@media (max-width: 375px) {
  /* Réduire légèrement la taille du loader pour iPhone SE et similaires */
  .loader-logo-container {
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 45px !important;
  }
  
  .loader-logo {
    max-width: 80px !important;
    max-height: 28px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
  }
  .loader-svg-container {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto !important;
  }
  
  .loader-svg {
    width: 46px !important;
    height: 46px !important;
  }
  
  .loader-progress {
    width: 200px !important;
    height: 12px !important;
  }
  
  .loader-text {
    font-size: 0.95rem !important;
    padding: 6px 14px !important;
  }
  
  .modern-loader {
    gap: 18px !important;
    transform: scale(0.95) !important;
  }
  
  /* Fix pour centrer parfaitement */
  .page-transition-overlay {
    justify-content: center !important;
    align-items: center !important;
  }
  

  /* Timeline wrapper - conteneur principal */
  .timeline-wrapper {
    max-width: 100%;
    padding: 0 15px; /* Réduit pour les petits écrans */
    margin: 0 auto;
    position: relative;
    min-height: 480px; /* Ajuster cette valeur */
  }
  
  /* Correction spécifique pour l'étape 6 sur iPhone SE */
  .timeline-node[data-step="6"] {
    transform: translateX(10px) !important;
  }
  
  /* Barre verticale centrale */
  .timeline-bar {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 8px !important; /* Plus fin pour SE */
    height: 100% !important;
    background-color: #e6e6e6 !important;
    z-index: 1 !important;
    border-radius: 10px !important;
  }
  
  /* Barre de progrès */
  .timeline-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 0%; /* Valeur initiale, mise à jour via JS */
    background-color: #731cd8 !important;
    border-radius: 10px !important;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 2 !important;
  }
  
  /* Structure globale des nodes */
  .timeline-nodes {
    flex-direction: column !important;
    height: 100% !important;
    align-items: center !important;
    padding: 10px 0 !important;
    position: relative !important;
    z-index: 3 !important;
  }
  
  /* Chaque étape de la timeline */
  .timeline-node {
    width: 100% !important;
    margin: 10px 0 !important; /* Espacement réduit pour SE */
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    position: relative !important;
  }
  
  /* Cercles centraux */
  .timeline-circle {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
    z-index: 5 !important;
    width: 50px !important; /* Taille uniforme pour tous les mobiles */
    height: 50px !important; /* Taille uniforme pour tous les mobiles */
    font-size: 1rem !important; /* Texte plus petit */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
  }
  
  /* Étapes impaires - texte à gauche */
  .timeline-node:nth-child(odd) .timeline-step-label {
    grid-column: 1 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-right: 12px !important; /* Réduit pour SE */
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.8rem !important; /* Plus petit pour SE */
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(odd) .timeline-step-description {
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: center !important;
    padding-right: 12px !important; /* Réduit pour SE */
    margin-left: auto !important;
    margin-right: 0 !important;
    font-size: 0.6rem !important; /* Plus petit pour SE */
    max-width: 130px !important; /* Réduit pour SE */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
  
  /* Étapes paires - texte à droite */
  .timeline-node:nth-child(even) .timeline-step-label {
    grid-column: 3 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-left: 12px !important; /* Réduit pour SE */
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.8rem !important; /* Plus petit pour SE */
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(even) .timeline-step-description {
    grid-column: 3 !important;
    grid-row: 2 !important;
    text-align: center !important;
    padding-left: 12px !important; /* Réduit pour SE */
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 0.6rem !important; /* Plus petit pour SE */
    max-width: 130px !important; /* Réduit pour SE */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
}

/* ======= TEMPLATE POUR TABLETTES (431px-768px) ======= */
@media (min-width: 431px) and (max-width: 768px) {
  /* Timeline wrapper - conteneur principal */
  .timeline-wrapper {
    max-width: 100%;
    padding: 0 25px;
    margin: 0 auto;
    position: relative;
    min-height: 520px; /* Valeur pour tablettes */
  }
  
  /* Barre verticale centrale */
  .timeline-bar {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 12px !important; /* Plus épais pour tablette */
    height: 100% !important;
    background-color: #e6e6e6 !important;
    z-index: 1 !important;
    border-radius: 12px !important;
  }
  
  /* Barre de progrès */
  .timeline-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 0%; /* Valeur initiale, mise à jour via JS */
    background-color: #731cd8 !important;
    border-radius: 12px !important;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 2 !important;
  }
  
  /* Structure globale des nodes */
  .timeline-nodes {
    flex-direction: column !important;
    height: 100% !important;
    align-items: center !important;
    padding: 15px 0 !important; /* Plus d'espace sur tablette */
    position: relative !important;
    z-index: 3 !important;
  }
  
  /* Chaque étape de la timeline */
  .timeline-node {
    width: 100% !important;
    margin: 20px 0 !important; /* Plus d'espace sur tablette mais réduit */
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    position: relative !important;
  }
  
  /* Cercles centraux */
  .timeline-circle {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
    z-index: 5 !important;
    width: 50px !important; /* Taille uniforme pour tous les mobiles */
    height: 50px !important; /* Taille uniforme pour tous les mobiles */
    font-size: 1.2rem !important; /* Texte plus grand */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
  }
  
  /* Étapes impaires - texte à gauche */
  .timeline-node:nth-child(odd) .timeline-step-label {
    grid-column: 1 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-right: 20px !important; /* Plus grand sur tablette */
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.95rem !important; /* Plus grand pour tablette */
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(odd) .timeline-step-description {
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: center !important;
    padding-right: 20px !important; /* Plus grand sur tablette */
    margin-left: auto !important;
    margin-right: 0 !important;
    font-size: 0.75rem !important; /* Plus grand pour tablette */
    max-width: 170px !important; /* Plus large sur tablette */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
  
  /* Étapes paires - texte à droite */
  .timeline-node:nth-child(even) .timeline-step-label {
    grid-column: 3 !important;
    grid-row: 1 !important;
    text-align: center !important;
    padding-left: 20px !important; /* Plus grand sur tablette */
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.95rem !important; /* Plus grand pour tablette */
    align-self: end !important;
    margin-bottom: 2px !important;
  }
  
  .timeline-node:nth-child(even) .timeline-step-description {
    grid-column: 3 !important;
    grid-row: 2 !important;
    text-align: center  !important;
    padding-left: 20px !important; /* Plus grand sur tablette */
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 0.75rem !important; /* Plus grand pour tablette */
    max-width: 170px !important; /* Plus large sur tablette */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    align-self: start !important;
    margin-top: 2px !important;
  }
}

/* Commentaires de l'ancienne version pour référence si besoin */
/*
@media (max-width: 768px) {
  .timeline-wrapper {
    max-width: 100%;
    padding: 0 20px;
    min-height: var(--timeline-vertical-margin);
    position: relative;
  }
  
  .timeline-bar {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: var(--timeline-bar-width) !important;
    height: 100% !important;
    background-color: #e6e6e6 !important;
    z-index: 1 !important;
    border-radius: 10px !important;
  }
  
  .timeline-progress {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 0%;
    background-color: #731cd8 !important;
    border-radius: 10px !important;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 2 !important;
  }
  
  .timeline-nodes {
    flex-direction: column !important;
    height: 100% !important;
    align-items: center !important;
    padding-top: 10px !important;
    padding-bottom: 0 !important;
    position: relative !important;
    z-index: 3 !important;
  }
  
  .timeline-node {
    width: 100% !important;
    margin: 42px 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    position: relative !important;
  }
  
  .timeline-circle {
    grid-column: 2 !important;
    margin: 0 !important;
    z-index: 5 !important;
    width: var(--timeline-circle-size) !important;
    height: var(--timeline-circle-size) !important;
    font-size: 1.1rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
*/

/*--------------------------------------------------
 # PROJECT PAGE MOBILE RESPONSIVENESS
 # Responsive design for project page on all mobile devices
 # iPhone 14, 12, XR, SE compatibility
 # Uses project-specific classes to avoid affecting homepage timeline
--------------------------------------------------*/

/* Mobile Project Page - General Styles */
@media (max-width: 768px) {
  
  /*--------------------------------------------------
   # Project Hero Mobile - Fond identique à Contact
  --------------------------------------------------*/
  .project-hero {
    /* Supprimer complètement l'ancien background avant d'appliquer le nouveau */
    background: none;
    /* Appliquer le nouveau gradient identique à contact */
    background: linear-gradient(to left, #e835d1 10%, #cc32c0 20%, rgba(165, 40, 175, 1) 35%, rgba(140, 50, 185, 1) 50%, rgba(110, 60, 195, 1) 75%, #303db5 100%);
    background-size: 200% auto !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  /* Overlay identique à contact pour éliminer la luminosité blanche */
  .project-hero::after {
    background: radial-gradient(ellipse at center, rgba(65, 39, 132, 0) 0%, rgba(65, 39, 132, 0.35) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%) !important;
  }
  
  /* Style simple de l'overlay (sans le trait) */
  
  /*--------------------------------------------------
   # Project Timeline Mobile - Nouveau système
  --------------------------------------------------*/
  .project-timeline-section .timeline-nodes,
  .project-timeline-section .timeline-bar,
  .project-timeline-section .timeline-content,
  .project-timeline-section .timeline-step,
  .project-timeline-section .timeline-image {
    display: none !important; /* Masquer tous les éléments de la timeline desktop */
  }
  
  /* Activer la nouvelle timeline mobile */
  .project-timeline-section .project-timeline-mobile {
    display: block !important;
    padding: 10px 0;
    margin: 20px auto;
    max-width: 100%;
    position: relative;
  }
  
  /* Masquer les images et étapes sur mobile dans la timeline existante */
  @media (max-width: 480px) {
    .project-timeline-section .timeline-image,
    .project-timeline-section .timeline-step-image {
      display: none !important;
    }
  }
  
  /* Barre de progression verticale */
  .project-timeline-mobile-bar {
    position: absolute;
    left: 9%; /* Centré dans la colonne de gauche */
    top: 0;
    height: 100%;
    width: 12px; /* Plus épais */
    background-color: #f0f0fa;
    border-radius: 6px;
    z-index: 1;
  }
  
  .project-timeline-mobile-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0; /* Définir par JS */
    background-color: var(--timeline-purple);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(123, 31, 162, 0.3);
    transition: height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 2;
  }
  
  /* Conteneur de la grille */
  .project-timeline-mobile-grid {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0;
    padding: 20px 10px;
  }
  
  /* Étapes individuelles */
  .project-timeline-mobile-step {
    display: contents; /* Permet aux enfants d'être placés directement dans la grille */
  }
  
  /* Style des nœuds / cercles */
  .project-timeline-mobile-node {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0; /* Espacement vertical augmenté */
    z-index: 3;
  }
  
  .project-timeline-mobile-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }
  
  /* Étape active */
  .project-timeline-mobile-step.active .project-timeline-mobile-circle {
    border-color: var(--timeline-purple);
    color: var(--timeline-purple);
    box-shadow: 0 5px 18px rgba(123, 31, 162, 0.3);
    transform: scale(1.08);
  }
  
  /* Contenu textuel */
  .project-timeline-mobile-content {
    padding: 25px 15px 35px 30px; /* Plus d'espace à gauche pour éloigner de la barre */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le contenu verticalement */
    opacity: 0; /* Masqué par défaut */
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  /* Afficher le contenu uniquement quand le noeud est actif */
  .project-timeline-mobile-step.active .project-timeline-mobile-content {
    opacity: 1;
    transform: translateY(0);
  }
  
  .project-timeline-mobile-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--timeline-purple);
    font-weight: 600;
  }
  
  .project-timeline-mobile-content p {
    font-size: 0.80rem;
    line-height: 1.4;
    color: #333;
  }
  
  /* Styles pour les très petits écrans mobiles */
  @media (max-width: 380px) {
    .project-timeline-mobile-grid {
      grid-template-columns: 50px 1fr;
      padding: 15px 5px;
    }
    
    .project-timeline-mobile-bar {
      left: 8%;
      width: 8px;
    }
    
    .project-timeline-mobile-node {
      padding: 45px 0; /* Espacement proportionnel à celui des écrans plus grands */
    }
    
    .project-timeline-mobile-circle {
      width: 45px;
      height: 45px;
      font-size: 1.1rem;
    }
    
    .project-timeline-mobile-content {
      padding: 15px 10px 25px 35px; /* Plus d'espace à gauche */
    }
    
    .project-timeline-mobile-content h3 {
      font-size: 1.1rem;
      margin-bottom: 6px;
    }
    
    .project-timeline-mobile-content p {
      font-size: 0.8rem;
      line-height: 1.35;
    }
  }
  
  /* Styles pour iPhone SE et très petits écrans (320px) */
  @media (max-width: 320px) {
    .project-timeline-mobile-grid {
      grid-template-columns: 40px 1fr;
      padding: 10px 0;
    }
    
    .project-timeline-mobile-bar {
      left: 48%;
      width: 6px;
    }
    
    .project-timeline-mobile-node {
      padding: 35px 0;
    }
    
    .project-timeline-mobile-circle {
      width: 36px;
      height: 36px;
      font-size: 1.2rem;
      border-width: 2px;
    }
    
    .project-timeline-mobile-content {
      padding: 10px 5px 20px 25px;
    }
    
    .project-timeline-mobile-content h3 {
      font-size: 0.95rem;
      margin-bottom: 4px;
    }
    
    .project-timeline-mobile-content p {
      font-size: 0.7rem;
      line-height: 1.25;
      margin-top: 0;
    }
  }
  
  /*--------------------------------------------------
   # Project Hero Section Mobile
  --------------------------------------------------*/
  .project-hero {
    min-height: 40vh !important;
    padding: 80px 0 40px !important;
    text-align: center;
    background: linear-gradient(to left, #e835d1 10%, #cc32c0 20%, rgba(165, 40, 175, 1) 35%, rgba(140, 50, 185, 1) 50%, rgba(110, 60, 195, 1) 75%, #303db5 100%);
  }
  
  .project-hero .container {
    padding: 0 20px !important;
  }
  
  .project-hero h1 {
    font-size: 2.2rem !important;
    top: 40px;
    margin-bottom: 35px !important;
    line-height: 1.2 !important;
    position: relative;
  }
  
  /* Suppression du style de trait existant pour éviter les conflits avec notre nouvelle animation */
  .project-hero h1:after {
    display: none;
  }
  
  .project-hero p,
  .project-hero .hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 20px !important;
    opacity: 0.9;
  }
  
  /* Project Hero SVG Animations Mobile */
  .project-hero .svg-animations-container {
    opacity: 0.6 !important;
  }
  
  .project-hero .svg-item {
    width: 120px !important;
    transform: scale(0.5) !important;
  }
  
  .project-hero .svg-item[data-svg="screen-coding"] {
    top: 20% !important;
    left: -5% !important;
  }
  
  .project-hero .svg-item[data-svg="code-connect"] {
    top: 70% !important;
    left: 5% !important;
  }
  
  .project-hero .svg-item[data-svg="code-windows"] {
    top: 60% !important;
    right: -5% !important;
  }
  
  .project-hero .svg-item[data-svg="gear"] {
    top: 25% !important;
    right: 0% !important;
  }
  
  /*--------------------------------------------------
   # Project Timeline Mobile - Special Layout
   # Remove photos, timeline left, text right, centered
   # Uses project-timeline-section to avoid affecting homepage
  --------------------------------------------------*/
  .project-timeline-section {
    padding: 60px 0 !important;
  }
  
  .project-timeline-section .container {
    padding: 0 20px !important;
  }
  
  .project-timeline-section .section-title {
    text-align: center;
    margin-bottom: 40px !important;
  }
  
  .project-timeline-section .section-title h2 {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }
  
  .project-timeline-section .section-title p {
    font-size: 1rem !important;
    opacity: 0.8;
  }
  
  /* Project Timeline Container Mobile Layout */
  .project-timeline-container {
    position: relative;
    max-width: 100% !important;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Project Timeline Bar - Vertical on Left */
  .project-timeline-section .timeline-bar {
    position: absolute !important;
    left: 30px !important;
    top: 0 !important;
    width: 6px !important;
    height: 100% !important;
    background: var(--timeline-grey) !important;
    border-radius: 3px;
    z-index: 1;
  }
  
  .project-timeline-section .timeline-progress {
    width: 100% !important;
    height: 0% !important;
    background: var(--timeline-purple) !important;
    border-radius: 3px;
    transition: height 0.5s ease;
  }
  
  /* Project Timeline Nodes - Hide on Mobile */
  .project-timeline-section .timeline-nodes {
    display: none !important;
  }
  
  /* Project Timeline Content Mobile */
  .project-timeline-section .timeline-content {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 2;
  }
  
  /* Project Timeline Steps Mobile Layout */
  .project-timeline-section .timeline-step {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    margin-bottom: 50px !important;
    position: relative;
    padding-left: 80px !important; /* More space for larger timeline nodes */
    min-height: 120px !important; /* Ensure enough height for proper centering */
  }
  
  /* Project Timeline Step Number Circle - Larger and Vertically Centered */
  .project-timeline-section .timeline-step::before {
    content: '' !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    background: var(--timeline-purple) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.4);
    border: 3px solid white;
  }
  
  /* Add step numbers to project timeline steps */
  .project-timeline-section .timeline-step.step-1::before { content: "1" !important; }
  .project-timeline-section .timeline-step.step-2::before { content: "2" !important; }
  .project-timeline-section .timeline-step.step-3::before { content: "3" !important; }
  .project-timeline-section .timeline-step.step-4::before { content: "4" !important; }
  .project-timeline-section .timeline-step.step-5::before { content: "5" !important; }
  .project-timeline-section .timeline-step.step-6::before { content: "6" !important; }
  
  /* Project Timeline Text Mobile */
  .project-timeline-section .timeline-text {
    flex: 1 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .project-timeline-section .timeline-text h3 {
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
    color: var(--color-primary) !important;
    line-height: 1.3 !important;
  }
  
  .project-timeline-section .timeline-text p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
    color: var(--color-text) !important;
    opacity: 0.9;
  }
  
  .project-timeline-section .timeline-text p:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Project Timeline Images - Hide on Mobile */
  .project-timeline-section .timeline-image {
    display: none !important;
  }
  
  /*--------------------------------------------------
   # Project Details Section Mobile
  --------------------------------------------------*/
  .project-details {
    padding: 60px 0 !important;
  }
  
  .project-details .container {
    padding: 0 20px !important;
  }
  
  .project-details h2,
  .project-details .section-title h2 {
    font-size: 2rem !important;
    text-align: center;
    margin-bottom: 30px !important;
  }
  
  .project-details .technologies-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .project-details .technology-card {
    padding: 25px 20px !important;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .project-details .technology-card i {
    font-size: 2.5rem !important;
    margin-bottom: 15px !important;
    color: var(--color-primary);
  }
  
  .project-details .technology-card h3 {
    font-size: 1.3rem !important;
    margin-bottom: 10px !important;
    color: var(--color-primary);
  }
  
  .project-details .technology-card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: var(--color-text);
    opacity: 0.9;
  }
  
  /*--------------------------------------------------
   # Project CTA Section Mobile ("Un projet similaire")
  --------------------------------------------------*/
  .project-cta {
    padding: 50px 0 !important;
  }
  
  .project-cta .container {
    padding: 0 20px !important;
  }
  
  .project-cta .section-title {
    text-align: center;
    margin-bottom: 30px !important;
  }
  
  .project-cta .section-title h2 {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
  }
  
  .project-cta p {
    font-size: 1rem !important;
    text-align: center;
    margin-bottom: 30px !important;
    line-height: 1.5 !important;
    padding: 0 10px;
    opacity: 0.9;
  }
  
  .project-cta .btn {
    display: block !important;
    width: 90% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    padding: 15px 20px !important;
    font-size: 1rem !important;
    text-align: center;
    border-radius: 8px;
  }
}

/* iPhone SE and smaller devices */
@media (max-width: 430px) {
  /* Optimisations du loader pour iPhone SE et autres petits appareils */
  .loader-svg-container {
    width: 110px !important;
    height: 110px !important;
  }
  
  .loader-svg {
    width: 50px !important;
    height: 50px !important;
  }
  
  .loader-progress {
    width: 220px !important;
    height: 14px !important;
  }
  
  .modern-loader {
    gap: 20px !important;
  }
  
  .loader-text {
    font-size: 1rem !important;
    padding: 8px 16px !important;
  }
  
  /*--------------------------------------------------
   # iPhone SE Project Page Adjustments
  --------------------------------------------------*/
  .project-hero {
    min-height: 30vh !important;
    padding: 30px 0 !important;
  }
  
  .project-hero .container {
    padding: 0 15px !important;
  }
  
  .project-hero h1 {
    font-size: 1.9rem !important;
  }
  
  .project-hero p,
  .project-hero .hero-subtitle {
    font-size: 1rem !important;
  }
  
  /* Project Timeline Mobile SE */
  .project-timeline-section .container {
    padding: 0 15px !important;
  }
  
  .project-timeline-section .timeline-step {
    padding-left: 70px !important;
    margin-bottom: 45px !important;
    min-height: 100px !important;
  }
  
  .project-timeline-section .timeline-bar {
    left: 25px !important;
    width: 5px !important;
  }
  
  .project-timeline-section .timeline-step::before {
    left: 7px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  
  .project-timeline-section .timeline-text h3 {
    font-size: 1.2rem !important;
  }
  
  .project-timeline-section .timeline-text p {
    font-size: 0.9rem !important;
  }
  
  /* Project Details SE */
  .project-details .container {
    padding: 0 15px !important;
  }
  
  .project-details h2,
  .project-details .section-title h2 {
    font-size: 1.8rem !important;
  }
  
  .project-details .technology-card {
    padding: 20px 15px !important;
  }
  
  .project-details .technology-card h3 {
    font-size: 1.2rem !important;
  }
  
  .project-details .technology-card p {
    font-size: 0.9rem !important;
  }
  
  /* Project CTA SE */
  .project-cta .container {
    padding: 0 15px !important;
  }
  
  .project-cta .section-title h2 {
    font-size: 1.6rem !important;
  }
  
  .project-cta p {
    font-size: 0.95rem !important;
  }
}

/* iPhone 12/13/14 Standard */
@media (min-width: 390px) and (max-width: 430px) {
  
  /*--------------------------------------------------
   # iPhone 12/13/14 Project Page Optimizations
  --------------------------------------------------*/
  .project-hero h1 {
    font-size: 2.1rem !important;
  }
  
  .project-timeline-section .timeline-step {
    padding-left: 80px !important;
    min-height: 120px !important;
  }
  
  .project-timeline-section .timeline-bar {
    left: 30px !important;
  }
  
  .project-timeline-section .timeline-step::before {
    left: 12px !important;
    width: 36px !important;
    height: 36px !important;
  }
}

/* iPhone XR/11 */
@media (min-width: 414px) and (max-width: 450px) {
  
  /*--------------------------------------------------
   # iPhone XR/11 Project Page Optimizations
  --------------------------------------------------*/
  .project-hero h1 {
    font-size: 2.3rem !important;
  }
  
  .project-timeline-section .timeline-step {
    padding-left: 85px !important;
    min-height: 130px !important;
  }
  
  .project-timeline-section .timeline-step::before {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.2rem !important;
  }
  
  .project-timeline-section .timeline-text h3 {
    font-size: 1.5rem !important;
  }
  
  .project-timeline-section .timeline-text p {
    font-size: 1rem !important;
  }
}

/* Landscape Mobile Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  
  /*--------------------------------------------------
   # Mobile Landscape Project Page
  --------------------------------------------------*/
  .project-hero {
    min-height: 60vh !important;
    padding: 30px 0 !important;
  }
  
  .project-timeline-section {
    padding: 40px 0 !important;
  }
  
  .project-timeline-section .timeline-step {
    margin-bottom: 30px !important;
  }
  
  .project-details {
    padding: 40px 0 !important;
  }
  
  .project-cta {
    padding: 40px 0 !important;
  }
}

/*--------------------------------------------------
 # Media Queries - Grands écrans (2K et +)
--------------------------------------------------*/
@media (min-width: 2100px) {
  /* Styles spécifiques pour les écrans véritablement 2K+ */
  /* Styles spécifiques pour les écrans 2K et supérieurs */
  
  /* Ajustement de l'illustration principale de la page d'accueil */
  .hero-image {
    position: absolute;
    right: 6%;
    top: 9%;
    width: 36%;
    height: 105%;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
  }
  
  /* Augmenter légèrement la taille des SVGs décoratifs */
  .svg-item {
    transform: scale(1.15);
  }
  
  /* NE PAS modifier le clip-path pour éviter de casser le design */
  /* Repositionner le texte sur les grands écrans */
  .hero-text {
    margin-top: 164px;
    max-width: 38%;
    margin-left: -295px;
  }
  
  /* Augmenter légèrement la taille des titres */
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 2rem;
  }
}
