/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Occupe toute la hauteur de la fenêtre */
}

/* Remove white space */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.flag-icon {
    width: 24px; /* or adjust as needed */
    height: auto;
    margin: 0 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.flag-icon:hover {
    transform: scale(1.1);
}

/* Navigation Bar */
.navbar {
    border-top: 5px solid #1087a9;
    width: 100%;
    background-color: #f1f1f1;
    padding: 10px 0;
    margin-bottom: 0; /* Supprimer toute marge inférieure */
    position: relative;
    top: 0;
    left: 0;
    z-index: 10;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar .logo {
    height: 85px; /* Adjust the logo height */
}

.navbar .nav-links {
    display: flex;
    align-items: center; /* Ensure vertical alignment */
    gap: 20px;
}

.navbar .nav-links li {
    display: inline;
}

.navbar .nav-links li a {
    color: #333; /* Dark gray for text */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navlinks option{
    color: #333; /* Dark gray for text */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #1087a9; /* Restore blue hover */
}

/* Menu hamburger - petits écrans */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        cursor: pointer;
        z-index: 11;
        margin-top: 30px;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #333;
        transition: all 0.3s ease;
    }

    /* Cacher le menu par défaut */
    .nav-links {
        display: flex;
        list-style: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; 
        background-color: rgba(16, 135, 169, 0.8);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        padding-top: 0; /* Supprimer tout padding en haut */
    }

    /* Quand le menu est actif, il occupe tout l'écran */
    .nav-links.active {
        height: 100vh; /* Prendre toute la hauteur de l'écran */
        display: flex;
        max-height: 300px; /* Ajuster la hauteur selon le contenu */
        margin-top: 32px;
    }

    .nav-links li {
        margin: 5px 0; /* Ajuster l'espacement pour s'adapter à la nouvelle taille */
    }

    .nav-links li a {
        color: #333;
        font-size: 1.2rem;
        text-decoration: none;
        font-family: 'Arial', sans-serif;
        font-weight: 600;
        position: relative;
    }
        /* Ajouter une ligne séparatrice centrée */
        .nav-links li a::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px; /* Longueur de la ligne */
            height: 2px; /* Épaisseur de la ligne */
            background-color: #ccc; /* Couleur de la ligne */
        }
    
        .nav-links li:last-child a::after {
            display: none; /* Pas de ligne après le dernier élément */
        }
}

/* Cacher le menu par défaut sur les petits écrans */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #f1f1f1;
        transition: max-height 0.3s ease-in-out;
        overflow: hidden;
        max-height: 0;
    }
}

/* Larger screens */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        gap: 20px;
    }
}

/* Desktop: Language switcher styles */
.language-switcher {
    display: flex;
    align-items: center; /* Vertical centering of label and select */
    justify-content: center;
    margin-left: auto;
}

/* Mobile: Hide the language switcher by default */
@media (max-width: 768px) {
    .language-switcher {
        display: none;
        flex-direction: column;
        margin-top: 500px; /* Adds space between menu items and language selector */
        text-align: center;
    }

    /* Show the language switcher when hamburger menu is active */
    .nav-links.active .language-switcher {
        display: block; /* Show it when menu is active */
    }
}

.language-switcher label {
    font-weight: 600;
}

.language-switcher select {
    padding: 5px 10px; /* Adjust padding for a better look */
    line-height: 1.2; /* Ensures alignment with text */
    border-radius: 5px;
}


/* Header Section */
.header-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0px; /* Assurez-vous qu'il n'y ait pas de marge supérieure */
    padding-top: 0px; /* Supprimer tout padding au-dessus */
}
@media screen and (max-width: 768px) {
.header-section {
    height: 400px;
}
}
/* Slideshow */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    animation: slideAnimation 12s infinite;
    filter: blur(5px); /* Apply a blur effect */
}

.slide1 {
    background-image: url('../IMAGES/IMAGE 1.webp'); /* Fabrication sur mesure */
    animation-delay: 0s;
}

.slide2 {
    background-image: url('../IMAGES/IMAGE 2.webp'); /* Conception */
    animation-delay: 4s;
}

.slide3 {
    background-image: url('../IMAGES/IMAGE 3.webp'); /* Rétro engineering */
    animation-delay: 8s;
}

/* Animation for the slideshow */
@keyframes slideAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2; /* Ensure text is on top of the slideshow */
    color: white;
    text-shadow: 6px 6px 10px rgba(0, 0, 0, 0.9);
}

.hero-content h1 {
    font-size: 2.5rem; /* Adjust size to fit the ribbon */
    margin-bottom: 20px;
    color: white;
    margin-Right: 20px;
    margin-Left: 20px;
}

.hero-content p {
    font-size: 1.0rem;
    margin-bottom: 40px;
    color: white;
    margin-Right: 20px;
    margin-Left: 20px;
}

.cta-button {
  	margin: 20px;
    background-color: #1087a9; /* Blue color */
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.0rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3),
                -2px -2px 5px rgba(255, 255, 255, 0.158); /* Light and dark shadow for 3D */
}

.cta-button:hover {
    background-color: #0d6881; /* Slightly darker blue */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3),
                -1px -1px 3px rgba(255, 255, 255, 0.5); /* Adjust shadow on hover */
    text-decoration: none; /* No underline on hover */
}
.cta-button, form button {
    text-shadow: none; /* Ensure no shadow on button text */
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* General Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  /* Section Styling */
  .creations-row-section {
    padding: 40px 20px;
    background-color: #f0f0f0;
    text-align: center;
  }
  
  .creations-row-section h2 {
    font-size: 2.5rem;
    color: #1087a9;
    margin-bottom: 50px;
    text-transform: uppercase;
  }
  
  /* Creations Grid */
  .creations-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
  }
  
  /* Creation Item Styling */
  .creation-item {
    position: relative;
    overflow: hidden;
    max-width: 300px;
    transition: all 0.4s ease;
  }
  
  .creation-item:hover {
    transform: translateY(-8px) rotate(2deg); /* Lift + slight rotation */
  }
  
  /* Creation Image Styling */
  .creation-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1);
  }
  
  .creation-item:hover .creation-image {
    transform: scale(1.08) rotate(-1deg); /* Zoom + slight counter-rotation */
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
  }
  
  /* Ajout d'un effet de brillance au hover */
  .creation-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
  }
  
  .creation-item:hover::before {
    transform: rotate(45deg) translateX(100%);
  }
  
  /* Creation Text Styling */
  .creation-text {
    margin-top: 20px;
    text-align: center;
  }
  
  .creation-text h3 {
    font-size: 1.5rem;
    color: #1087a9;
    margin-bottom: 10px;
  }
  
  .creation-text p {
    font-size: 1rem;
    color: #7f8c8d;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .creations-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .creation-item {
      max-width: 100%;
      cursor: pointer; /* Ajoute un curseur pointer pour indiquer que c'est cliquable */
      margin-bottom: 20px;
    }
    
    .creation-item:hover {
      transform: translateY(-5px) rotate(1deg); /* Effet réduit sur mobile */
    }
    
    .creation-item:hover .creation-image {
      transform: scale(1.05) rotate(-0.5deg); /* Zoom réduit sur mobile */
    }
    
    .creations-row-section h2 {
        font-size: 1.5rem;
        color: #1087a9;
        margin-bottom: 50px;
        text-transform: uppercase;
      }
      .creation-text h3 {
        font-size: 1.2rem;
        color: #1087a9;
        margin-bottom: 10px;
      }
  }
  
  /* Modal pour les GIFs sur mobile */
.gif-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.gif-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.gif-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  text-align: center;
}

.gif-modal-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gif-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.gif-modal-close:hover {
  color: #1087a9;
}

.gif-modal-instagram {
  margin-top: 20px;
  padding: 15px 25px;
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

.gif-modal-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4);
}

.gif-modal-instagram i {
  font-size: 1.2em;
}

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

/* Animation d'entrée pour le modal */
.gif-modal.show .gif-modal-content {
  animation: slideIn 0.3s ease;
}

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


/* Vision Section */
.vision-section {
    background: url('../IMAGES/IMAGE4.webp') center center/cover no-repeat;
    padding: 60px 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: background 0.5s ease;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.vision-comment {
    z-index: 2; /* Ensure it stays on top of background effects */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 1s ease, opacity 1s ease;
}

.vision-comment h3 {
    font-size: 2rem;
    color: #1087a9;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.vision-comment p {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Hover Effects */
.vision-comment:hover {
    transform: translateY(-15px) scale(1.05); /* Lift and scale the comment box */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.vision-comment:hover h3 {
    color: #1c92d2; /* Change the title color on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vision-comment {
        padding: 20px;
        font-size: 1rem;
    }

    .vision-comment h3 {
        font-size: 1.5rem;
    }

    .vision-comment p {
        font-size: 1rem;
    }
}
/* Modern CTA Button in Vision Section */
.cta-modern-button {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 20px;
    background-color: #1087a9; /* Button background color */
    color: white; /* Text color */
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease; /* Smooth transition for hover effects */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Initial shadow */
}

.cta-modern-button:hover {
    background-color: #0d6881; /* Slightly darker background on hover */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3); /* Increase shadow on hover */
    transform: translateY(-5px); /* Lift effect on hover */
}





/* Hover Effects for Vision Comment Box */
.vision-comment:hover {
    transform: translateY(-10px); /* Slight lift on hover */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

.vision-comment:hover h3 {
    color: #2980b9; /* Darker blue on hover */
}

/* Adjustments for Smaller Screens (Mobile) */
@media (max-width: 768px) {
    .vision-section {
        background-attachment: scroll; /* Disable parallax on mobile */
        padding: 40px 20px; /* Reduce padding for mobile */
    }

    .vision-text {
        font-size: 1.2rem; /* Smaller font size */
        line-height: 1.4;  /* Adjust line height for better spacing */
        margin-bottom: 30px; /* Reduce space between text and comment */
    }

    .vision-comment {
        padding: 20px; /* Reduce padding for mobile */
        font-size: 1rem;  /* Smaller font size for mobile */
        margin: 0 20px; /* Add margin on left and right */
        line-height: 1.5;  /* Adjust line height for readability */
    }
}
/*vision téléphone*/




/* Prestations Section Styling */
.prestations-section {
    margin: 40px 0;
}

.prestations-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    overflow-x: auto; /* Défilement horizontal */
    scroll-behavior: smooth; /* Défilement fluide */
}

/* Styles pour les boîtes dans Prestations */
.prestation-item {
    width: 500px;
    background-color: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #ddd;
    margin-right : 20px;
    margin-left : 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    will-change: transform, box-shadow; /* Enhances performance on Safari */
    margin-bottom: 40px;
}

/* Animation au survol pour Prestations */
.prestation-item:hover {
    transform: translateY(-10px) scale(1.02); /* Added scale for a smoother zoom effect */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

/* Style des images dans Prestations */
.prestation-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Liens dans Prestations */
.prestation-link {
    color: #1087a9;
    font-weight: 600;
    text-decoration: none;
}

.prestation-link:hover {
    color: #2980b9; /* Changement de couleur au survol */
}
/* === Media Query pour mobile (écran de moins de 768px) === */
@media (max-width: 768px) {
    .prestations-grid {
        flex-direction: column; /* Aligne les boîtes l'une sous l'autre */
        align-items: center; /* Centrer les boîtes */
    }

    .prestation-item {
        width: 70%; /* Ajuster la largeur pour s'adapter à l'écran mobile */
        margin-bottom: 20px; /* Espacement entre les boîtes sur mobile */
        margin-right: 20px;
        margin-left: 20px;
        padding: 20px;
    }
}
/* Style pour le titre de la section Prestations */
.prestations-section h2 {
    text-align: center; /* Centre le texte */
    font-size: 1.7rem; /* Taille de police identique à Nos Services */
    margin-bottom: 20px;
    color: #2c3e50; /* Couleur du texte identique */
    font-weight: 700; /* Poids de la police pour correspondre à Nos Services */
}


/* Services Section */
.section {
    padding: 40px 0;
    text-align: center;
}

.section h2 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: #2c3e50; /* Darker text color */
}

.section .lead-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    margin-right: 10px;
    margin-left: 10px;
}

/* Disposition des boîtes - grand écran (3 par ligne) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-right: 40px;
    margin-left: 40px;
}
.service-item:hover {
    max-height: 600px; /* Ajuste la hauteur de la boîte au contenu */
    transform: translateY(-5px); /* Légère levée de la boîte au survol */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
    border-color: #1087a9; /* Bleu lors du survol */
}

/* Téléphone (1 par ligne) */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        margin-right: 10px;    /* Réduit la marge droite */
        margin-left: 10px;     /* Réduit la marge gauche */
        gap: 15px;             /* Réduit l'espacement entre les cartes */
    }
    
    .service-item {
        display: block !important;        /* Force le display block sur mobile */
        height: auto !important;          /* Hauteur automatique sur mobile */
        flex-direction: unset !important; /* Supprime le flexbox sur mobile */
        justify-content: unset !important; /* Supprime la justification sur mobile */
        padding: 15px;                    /* Réduit le padding interne */
    }
    
    /* Images responsive sur mobile */
    .service-item .bottom-image {
        width: 100% !important;           /* Largeur complète sur mobile */
        height: 200px !important;         /* Hauteur fixe plus petite sur mobile */
        max-width: 320px !important;      /* Largeur maximale pour éviter que ce soit trop grand */
        margin-top: 20px !important;      /* Marge fixe sur mobile */
    }
}
.service-item.active .more-text {
    opacity: 1;
    max-height: 1000px; /* Adjust as necessary */
}
.service-item {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: max-height 0.5s ease, transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
    max-height: 4000px; /* Default collapsed height */
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Distribute space between items, pushing image to bottom */
    height: 100%; /* Ensure all service items take full available height in their grid/flex container */
}
.service-item .bottom-image {
    width: 400px;              /* Largeur plus grande pour toutes les images */
    height: 267px;             /* Hauteur proportionnelle (ratio 3:2) */
    border-radius: 8px;        /* Optional: add rounded corners */
    margin-top: auto;          /* Push image to bottom of flex container */
    margin-left: auto;         /* Auto margin left */
    margin-right: auto;        /* Auto margin right */
    display: block;            /* Ensure the image is treated as a block element */
    object-fit: cover;         /* Ensure the image fits its container without stretching */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
}

/* On larger screens, make service items auto-size to fit their content */
@media (min-width: 768px) {
    .service-item {
        padding: 40px;
        height: auto;                 /* Allow the box to grow naturally */
        max-height: none;              /* Remove any height restriction */
        overflow: visible;             /* Ensure no content is hidden */
        cursor: default;               /* No pointer change */
        transition: none;              /* Remove any animations */
    }

    .service-item .more-text {
        max-height: none !important;   /* Allow full content visibility */
        opacity: 1 !important;         /* Ensure the text is fully visible */
        display: block !important;     /* Make sure the text is displayed */
    }

    /* Remove arrows or indicators on desktop */
    .service-item::after {
        display: none !important;
    }
}



/* Masquer le texte supplémentaire par défaut */
.more-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

/* Ajouter une flèche en bas de chaque box de service */
.service-item::after {
    content: '\2193'; /* Flèche vers le bas */
    font-size: 2rem;
    color: rgba(52, 152, 219, 0.5);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.service-item:hover .more-text {
    max-height: 1000px; /* Allow full expansion */
    opacity: 1; /* Ensure smooth appearance */
    transition: max-height 0.8s ease-in-out, opacity 0.5s ease-in-out;
}

/* Faire disparaître la flèche au survol */
.service-item:hover::after {
    opacity: 0; /* Flèche devient invisible */
}

.service-item h3 {
    font-size: 1.2rem;
    color: #1087a9;
    margin-bottom: 15px;

}

.service-item p {
    font-size: 1rem;
    color: #7f8c8d;
}

.service-item:hover .more-text,
.service-item:focus-within .more-text {
    display: block; /* Afficher le texte supplémentaire au survol ou au clic */
}

.service-item.active {
    transform: translateY(-10px); /* Soulève légèrement la boîte active */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Ombre plus forte */
    height: auto; /* La boîte prend la taille de son contenu */
}
.service-item .more-text {
    display: none; /* Masquer le texte supplémentaire par défaut */
}

/* Section À propos */
.about-section {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #1087a9;
    margin-bottom: 40px;
    text-align: center;
}

/* Style pour les blocs avec image et texte */
.about-block {
    display: flex;
    align-items: center; /* Aligner le contenu verticalement */
    gap: 20px; /* Espacement entre l'image et le texte */
    margin-bottom: 60px; /* Espacement entre les blocs */
    padding: 20px;
    background-color: white;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Image dans chaque bloc */
.about-image img {
    width: 300px;
    height: auto;
    border-radius: 10px; /* Coins arrondis pour l'image */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Texte dans chaque bloc */
.about-text {
    text-align: left; /* Aligner le texte à gauche */
    flex: 1; /* Le texte occupe tout l'espace restant */
}

.about-text h2 {
    font-size: 1.6rem;
    color: #1087a9;
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 1.6rem;
    color: #1087a9;
    margin-bottom: 20px;
}

.about-text h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsiveness pour les petits écrans */
@media (max-width: 768px) {
    .about-block {
        flex-direction: column; /* Empile les éléments verticalement */
        text-align: center;
    }

    .about-image img {
        width: 100%; /* L'image occupe toute la largeur disponible */
        max-width: 500px; /* Limite la taille maximale de l'image */
    }

    .about-text {
        text-align: center; /* Centrer le texte sur mobile */
    }
}





/* Slider container with margin */
#timeline-slider {
    width: 80%; /* 80% of the container width */
    margin: 0 auto; /* Center horizontally */
    display: block;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 900px;
}

/* Arrow container positioning */
.arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

/* Arrow above the slider with animation */
.arrow-container i {
    font-size: 24px;
    color: #1087a9;
    position: relative;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    margin-right: 0;
    flex-shrink: 0;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Flèches inactives (grisées) */
.arrow-container i.inactive {
    color: #ccc;
    opacity: 0.5;
    cursor: default;
}



/* Hide all timeline items by default */
.timeline-item {
    display: none;
}

/* Show only the active timeline item */
.timeline-item.active {
    display: block;
}

/* Amélioration du texte sous la timeline */
.timeline-text {
    font-size: 1.1rem; /* Augmentation de la taille de la police */
    color: #2c3e50; /* Couleur foncée pour le texte */
    line-height: 1.6; /* Amélioration de l'espacement entre les lignes */
    margin: 20px auto; /* Espacement au-dessus et en dessous */
    max-width: 1200px; /* Largeur maximale pour le contenu */
    padding: 20px; /* Ajout de padding pour espacer le texte des bords */
    background-color: #f9f9f9; /* Couleur de fond douce pour contraster avec le reste */
    border-radius: 10px; /* Coins arrondis pour un aspect élégant */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce pour mettre en relief */
    text-align: center; /* Justification du texte pour un alignement propre */
}

/* Ajout de marges latérales pour les petits écrans */
@media (max-width: 768px) {
    .timeline-text {
        margin-left: 15px;
        margin-right: 15px;
    }
}


/* Nos Clients Section Styling */
.clients-section {
    background: linear-gradient(135deg, #f1f1f1 30%, #e3e3e3 100%); /* Soft gradient background */
    padding: 40px 20px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.clients-section h2 {
    font-size: 2.2rem;
    color: #1087a9; /* Primary blue color */
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.clients-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    max-width: 300px;
    margin: 0 auto;
}

/* Client Item Styling */
.client-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-item img {
    width: 100%; /* Ensure logos scale responsively */
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.client-item:hover {
    transform: translateY(-10px); /* Lift effect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.client-item:hover img {
    transform: scale(1.05); /* Slight zoom effect on logo */
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr); /* Adjust grid to 2 columns */
        gap: 20px;
    }
    .clients-section h2 {
        font-size: 1.5rem;
        color: #1087a9; /* Primary blue color */
        margin-bottom: 20px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr; /* Adjust to 1 column on very small screens */
    }
}
/* Container for the button after clients section */
.about-lacoteq-button-container {
    text-align: center;
    margin-top: 40px;
}

/* Modern CTA Button Styling */
.cta-modern-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1087a9; /* Background color */
    color: white; /* Text color */
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease; /* Smooth transition for hover effects */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Initial shadow */
}

.cta-modern-button:hover {
    background-color: #0d6881; /* Darker background on hover */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
    transform: translateY(-5px); /* Lift effect on hover */
}




/* CONTACT STYLES */
form {
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

/* Formulaire par défaut (grande taille) */
form .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Formulaire sur petit écran (téléphone) */
@media (max-width: 768px) {
    form .form-group {
        display: block; /* Mettre chaque champ sur une nouvelle ligne */
    }
    
    form input, form textarea {
        width: 100%; /* S'assurer que chaque champ occupe toute la largeur */
    }
}

form input, form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 100%;
}

form button {
    background-color: #1087a9;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3),
                -2px -2px 5px rgba(255, 255, 255, 0.041); /* Light and dark shadow for 3D */
}

form button:hover {
    background-color: #2980b9;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3),
                -1px -1px 3px rgba(255, 255, 255, 1); /* Adjust shadow on hover */
}

#contact-form {
    display: none; /* Hidden by default */
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#contact-form input, 
#contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#contact-form label {
    display: block;
    margin-bottom: 10px;
}

#contact-form button {
    background-color: #1087a9;
    color: white;
    padding: 15px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

#contact-form button:hover {
    background-color: #2980b9;
}



/* FOOTER STYLE */
    .menu-footer {
        color: #ccc; /* Couleur grisée */
        font-size: 0.8rem; /* Taille de texte plus petite */
        text-align: center;
        padding-bottom: 1000px;
    }

    footer {
        background-color: #2c3e50;
        color: white;
        text-align: center;
        padding: 10px 0;
        width: 100%;
        position: relative;
        bottom: 0;
        margin-top: auto; /* Pousse le footer vers le bas */
    }
    
    
    footer p {
        font-size: 0.9rem;
    }
    
    .social-media {
        margin-top: 10px;
    }
    
    .social-media a {
        color: white;
        margin: 0 10px;
        font-size: 1.5rem;
        transition: color 0.3s ease;
    }
    
    .social-media a:hover {
        color: #1087a9;
    }






/* PAGE DEVIS */
.form-devis {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-devis input, 
.form-devis textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.form-devis label.file-label {
    font-size: 14px;
    color: #333;
}

.form-devis button {
    background-color: #1087a9;
    color: white;
    padding: 15px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
}

.form-devis button:hover {
    background-color: #2980b9;
}

/* Section Devis avec GIF en arrière-plan */
.devis-background {
    position: relative;
    background: url('../IMAGES/GIF 1.gif') center center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    min-height: 100vh;
}

.devis-background .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.devis-background .background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(16, 135, 169, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.1) 0%, transparent 50%);
    animation: subtleGlow 8s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.devis-background .container {
    position: relative;
    z-index: 2;
}

.devis-background h2 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.devis-background p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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



.devis-background .form-devis {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.devis-background .form-devis:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.devis-background .form-group {
    margin-bottom: 25px;
}

.devis-background .form-group input[type="text"],
.devis-background .form-group input[type="email"],
.devis-background .form-group input[type="file"] {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(16, 135, 169, 0.3);
    color: #333;
    font-weight: 500;
}

.devis-background .form-group input[type="text"]:focus,
.devis-background .form-group input[type="email"]:focus,
.devis-background .form-group input[type="file"]:focus {
    background: white;
    border-color: #1087a9;
    box-shadow: 0 0 20px rgba(16, 135, 169, 0.5);
    transform: translateY(-2px);
}

.devis-background .cta-button {
    background: linear-gradient(135deg, #1087a9, #0d6efd);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 135, 169, 0.4);
}

.devis-background .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 135, 169, 0.6);
}

.devis-background .captcha-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .devis-background {
        background-attachment: scroll;
    }
    
    .devis-background .form-devis {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .devis-background h2 {
        font-size: 1.8rem;
    }
    
    .devis-background p {
        font-size: 1rem;
    }
}




/* Section Styling */
.section {
    padding: 20px 20px;
}

.section h2 {
    font-size: 2.5rem;
    color: #1087a9;
    margin-bottom: 40px;
    text-align: center;
}

.section-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 60px;
}

/* Services and Prestations Grid */
.services-grid, .prestations-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.service-item, .prestation-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover, .prestation-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.service-image, .prestation-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-item h3, .prestation-item h3 {
    font-size: 1.5rem;
    color: #1087a9;
    margin-bottom: 10px;
}

.service-item p, .prestation-item p {
    font-size: 1rem;
    color: #7f8c8d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-grid, .prestations-grid {
        flex-direction: column;
        align-items: center;
    }
    .section h2 {
        font-size: 1.5rem;
        color: #1087a9;
        margin-bottom: 40px;
        text-align: center;
    }
    .service-item, .prestation-item {
        max-width: 100%;
    }
}
/* Container for the CTA button */
.cta-devis-button-container {
    text-align: center;
    margin-top: 40px;
}

/* Modern CTA Button Styling */
.cta-modern-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1087a9; /* Background color */
    color: white; /* Text color */
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease; /* Smooth transition for hover effects */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Initial shadow */
}

.cta-modern-button:hover {
    background-color: #0d6881; /* Darker background on hover */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
    transform: translateY(-5px); /* Lift effect on hover */
}


/* Section À propos */
.a-propos-section, .developpement-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.a-propos-section h2, .developpement-section h2 {
    font-size: 2.5rem;
    color: #1087a9;
    margin-bottom: 40px;
}

.a-propos-section p, .developpement-section p {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.captcha-container {
    display: flex;
    justify-content: center;  /* Centers the reCAPTCHA horizontally */
    margin-top: 20px;         /* Adds spacing above */
}

.g-recaptcha {
    display: inline-block;    /* Ensure the reCAPTCHA element respects flexbox centering */
    transform: scale(1);      /* In case reCAPTCHA is scaled, this will adjust it properly */
    transform-origin: 0 0;    /* Keep the origin point top left to avoid any displacement */
}

/* Styles pour la page des machines - Design cohérent avec le site */
.machines-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f1f1f1 100%);
    min-height: 100vh;
    position: relative;
}

.machines-section h2 {
    font-size: 2.5rem;
    color: #1087a9;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.machines-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #1087a9;
    border-radius: 2px;
}

.machine-category {
    margin-bottom: 80px;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.machine-category:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    border-color: #1087a9;
}

.machine-category h3 {
    font-size: 2rem;
    color: #1087a9;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.machine-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1087a9;
    border-radius: 2px;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.machine-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #ddd;
    transition: all 0.3s ease-in-out;
    position: relative;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.machine-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    border-color: #1087a9;
}

.machine-item h4 {
    font-size: 1.5rem;
    color: #1087a9;
    margin-bottom: 20px;
    font-weight: 700;
}

.machine-item p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

.machine-capacities {
    background: linear-gradient(135deg, #1087a9, #2980b9);
    padding: 30px;
    border-radius: 15px;
    color: white;
    position: relative;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.machine-capacities h4 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.machine-capacities ul {
    list-style: none;
    padding: 0;
}

.machine-capacities li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.machine-capacities li:before {
    content: "✓";
    color: #ffffff;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
    font-weight: bold;
}

/* Animation d'entrée pour les éléments */
.machine-category {
    animation: slideInUp 0.6s ease-out;
}

.machine-item {
    animation: fadeInScale 0.5s ease-out;
}

.machine-item:nth-child(1) { animation-delay: 0.1s; }
.machine-item:nth-child(2) { animation-delay: 0.2s; }
.machine-item:nth-child(3) { animation-delay: 0.3s; }
.machine-item:nth-child(4) { animation-delay: 0.4s; }

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design pour la page des machines */
@media (max-width: 768px) {
    .machines-section {
        padding: 60px 15px;
    }
    
    .machines-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .machine-category {
        padding: 25px;
        margin-bottom: 50px;
    }
    
    .machine-category h3 {
        font-size: 1.8rem;
    }
    
    .machine-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .machine-item {
        padding: 25px;
    }
    
    .machine-capacities {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .machines-section h2 {
        font-size: 1.8rem;
    }
    
    .machine-category h3 {
        font-size: 1.5rem;
    }
    
    .machine-item h4 {
        font-size: 1.3rem;
    }
    
    .machine-item p {
        font-size: 1rem;
    }
    
    .machine-category {
        padding: 20px;
    }
    
    .machine-item {
        padding: 20px;
    }
}

/* Section Nos Créations - Showcase d'image unique */
.creations-showcase-section {
    padding: 30px 20px; /* Réduction du padding */
    background-color: #f0f0f0;
    text-align: center;
}

.creations-showcase-section h2 {
    font-size: 2.2rem; /* Réduction de la taille du titre */
    color: #1087a9;
    margin-bottom: 25px; /* Réduction de la marge */
    text-transform: uppercase;
}

.creations-subtitle {
    font-size: 1.1rem; /* Réduction de la taille du sous-titre */
    color: #7f8c8d;
    margin-bottom: 30px; /* Réduction de la marge */
    max-width: 500px; /* Réduction de la largeur max */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5; /* Réduction de l'interligne */
}

.creation-showcase {
    position: relative;
    max-width: 700px; /* Réduction de la largeur max */
    margin: 0 auto;
    border-radius: 15px; /* Réduction du border-radius */
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* Réduction de l'ombre */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creation-showcase:hover {
    transform: translateY(-8px); /* Réduction de l'effet hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Réduction de l'ombre hover */
}

.creation-showcase-image {
    width: 100%;
    height: 400px; /* Réduction de la hauteur */
    object-fit: cover;
    display: block;
}

.creation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 15px; /* Réduction du padding */
    text-align: left;
}

.creation-overlay p {
    font-size: 1rem; /* Réduction de la taille */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5; /* Réduction de l'interligne */
    margin: 0;
}

/* Responsive pour la section creations showcase */
@media (max-width: 768px) {
    .creations-showcase-section {
        padding: 25px 15px; /* Réduction du padding mobile */
    }
    
    .creations-showcase-section h2 {
        font-size: 1.4rem; /* Réduction de la taille mobile */
        color: #1087a9;
        margin-bottom: 20px; /* Réduction de la marge mobile */
        text-transform: uppercase;
    }
    
    .creations-subtitle {
        font-size: 1rem; /* Réduction de la taille mobile */
        margin-bottom: 20px; /* Réduction de la marge mobile */
        max-width: 100%; /* Largeur complète sur mobile */
    }
    
    .creation-showcase {
        max-width: 100%; /* Largeur complète sur mobile */
        border-radius: 10px; /* Réduction du border-radius mobile */
    }
    
    .creation-showcase-image {
        height: 300px; /* Réduction de la hauteur mobile */
    }
    
    .creation-overlay {
        padding: 25px 15px 15px; /* Réduction du padding mobile */
    }
    
    .creation-overlay p {
        font-size: 0.95rem; /* Réduction de la taille mobile */
        line-height: 1.4; /* Réduction de l'interligne mobile */
    }
}

/* Section Carousel - Images 1 à 3 */
.carousel-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: grab;
    user-select: none;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-slide {
    display: none;
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 20px 20px;
    text-align: left;
}

.carousel-content h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.carousel-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Navigation arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(16, 135, 169, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots indicators */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Swipe indicator */
.carousel-container::before {
    content: "← Swipez pour naviguer →";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.carousel-container:hover::before {
    opacity: 1;
}

/* Responsive pour le carousel */
@media (max-width: 768px) {
    .carousel-section {
        padding: 40px 0; /* Suppression des marges latérales */
    }
    
    .carousel-container {
        max-width: 100%; /* Prend toute la largeur */
        border-radius: 0; /* Suppression des coins arrondis */
        margin: 0; /* Suppression des marges */
    }
    
    .carousel-slide img {
        height: 350px;
    }
    
    .carousel-content {
        padding: 30px 15px 20px; /* Réduction du padding bottom */
        bottom: 0; /* Remettre le texte tout en bas */
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); /* Ombre complète tout en bas */
    }
    
    .carousel-content h3 {
        font-size: 1.5rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    /* Masquer les boutons sur mobile */
    .carousel-btn {
        display: none !important;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* Texte "Swiper pour naviguer" toujours visible sur mobile */
    .carousel-container::before {
        content: "← Swiper pour naviguer →";
        font-size: 0.9rem;
        padding: 8px 16px;
        opacity: 1; /* Toujours visible */
        background: rgba(0, 0, 0, 0.8);
        color: white;
        border-radius: 20px;
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        pointer-events: none;
    }
    
    /* Déplacer les points en haut sur mobile */
    .carousel-dots {
        position: absolute;
        top: 60px; /* En dessous du texte "Swiper pour naviguer" */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }
}

/* Section Vision déroulable sur mobile */
.vision-header {
    display: block; /* Par défaut en block sur PC */
}

.vision-title-clickable {
    cursor: default; /* Curseur normal sur PC */
    transition: none; /* Pas de transition sur PC */
    user-select: text; /* Sélection de texte normale sur PC */
}

.vision-title-clickable:hover {
    color: inherit; /* Pas de changement de couleur sur PC */
}

.vision-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none; /* Caché par défaut sur PC */
}

.vision-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 1.2rem;
    color: #1087a9;
    transition: all 0.3s ease;
    animation: none; /* Pas d'animation sur PC */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.vision-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg);
    animation: none;
}

.vision-body {
    transition: none; /* Pas de transition sur PC */
    overflow: visible; /* Contenu toujours visible sur PC */
}

/* Responsive pour la section Vision - MOBILE UNIQUEMENT */
@media (max-width: 768px) {
    .vision-section {
        padding: 40px 0; /* Suppression des marges latérales sur mobile */
    }
    
    .vision-comment {
        margin: 0; /* Suppression des marges sur mobile */
        border-radius: 0; /* Suppression des coins arrondis sur mobile */
    }
    
    .vision-header {
        display: block; /* Block sur mobile pour empiler verticalement */
        text-align: center;
    }
    
    .vision-header h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin: 0 0 15px 0; /* Marge en bas pour séparer de la flèche */
    }
    
    .vision-title-clickable {
        cursor: pointer; /* Curseur pointer sur mobile */
        transition: color 0.3s ease; /* Transition sur mobile */
        user-select: none; /* Pas de sélection sur mobile */
    }
    
    .vision-title-clickable:hover {
        color: #1087a9; /* Changement de couleur sur mobile */
    }
    
    .vision-toggle {
        display: block; /* Visible sur mobile */
        margin: 0 auto; /* Centrer le bouton */
        width: 40px;
        height: 40px;
    }
    
    .toggle-icon {
        animation: bounce 2s infinite; /* Animation sur mobile */
        font-size: 1.5rem; /* Flèche plus grande */
    }
    
    .vision-body {
        transition: all 0.3s ease; /* Transition sur mobile */
        overflow: hidden; /* Masquage sur mobile */
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0 -20px; /* Étendre au-delà des marges de la section */
    }
    
    .vision-body.expanded {
        max-height: 500px; /* Hauteur suffisante pour le contenu */
        opacity: 1;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 20px; /* Remettre le padding gauche */
        padding-right: 20px; /* Remettre le padding droit */
        margin: 0 -20px; /* Étendre sur toute la largeur */
        background: rgba(255, 255, 255, 0.95); /* Fond légèrement transparent */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Ombre pour séparer du fond */
    }
    
    .vision-body p {
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .vision-body .cta-modern-button {
        margin-top: 15px;
    }
}

/* Section Contact/Questionnaire avec GIF 2 en arrière-plan */
.contact-questionnaire-background {
    position: relative;
    background: url('../IMAGES/GIF 2.gif') center center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    min-height: 100vh;
}

/* Correction pour les pages dans les sous-dossiers DE et ENG */
.contact-questionnaire-background.de-gif,
.contact-questionnaire-background.eng-gif {
    background-image: url('../../IMAGES/GIF 2.gif');
}

.contact-questionnaire-background .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.contact-questionnaire-background .background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(16, 135, 169, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.1) 0%, transparent 50%);
    animation: subtleGlow 8s ease-in-out infinite alternate;
}

.contact-questionnaire-background .container {
    position: relative;
    z-index: 2;
}

.contact-questionnaire-background h2 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.contact-questionnaire-background p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.contact-questionnaire-background .form-devis {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-questionnaire-background .form-devis:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.contact-questionnaire-background .form-group {
    margin-bottom: 25px;
}

.contact-questionnaire-background .form-group input[type="text"],
.contact-questionnaire-background .form-group input[type="email"],
.contact-questionnaire-background .form-group input[type="file"] {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(16, 135, 169, 0.3);
    color: #333;
}

.contact-questionnaire-background .form-group input[type="text"]:focus,
.contact-questionnaire-background .form-group input[type="email"]:focus,
.contact-questionnaire-background .form-group input[type="file"]:focus {
    border-color: #1087a9;
    box-shadow: 0 0 10px rgba(16, 135, 169, 0.3);
}

.contact-questionnaire-background .cta-button {
    background: linear-gradient(135deg, #1087a9, #0d6efd);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-questionnaire-background .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 135, 169, 0.4);
}

.contact-questionnaire-background .captcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.contact-questionnaire-background textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(16, 135, 169, 0.3);
    color: #333;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-questionnaire-background textarea:focus {
    border-color: #1087a9;
    box-shadow: 0 0 10px rgba(16, 135, 169, 0.3);
    outline: none;
}