/* Styles pour un menu horizontal élégant, de type Apple */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* blanc */
    text-align: center;
}

/* Styles du conteneur vidéo */
.video-container {
    position: relative;
    width: 100%;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

.video-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

nav {
    position: relative;
    background-color: #ffffff;
    padding: 5px 0; /* Réduit la marge en haut */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 40px;
    width: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center; /* Centre le contenu horizontalement */
    padding-left: 0; /* Supprime le padding gauche */
}

.menu-container {
    display: block; /* Affiche le menu par défaut */
    position: relative;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.menu li {
    position: relative;
    margin: 0 20px;
}

.menu a {
    color: black; /* anciennement white */
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    display: block;
    transition: color 0.3s ease-in-out;
}

.menu a:hover {
    color: #b74839;
}

.dropdown {
    position: relative;
    margin: 0 20px;
    padding: 10px 20px;
}

.dropdown a {
    color: black; /* anciennement white */
    text-decoration: none;
    padding: 10px;
}

.submenu-container {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
}

.submenu {
    display: none;
    background-color: #655757;
    padding: 25px 0;
    margin: 0;
}

.submenu.active {
    display: block;
}

.dropdown:hover .submenu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.submenu li {
    display: inline-block;
    margin: 0 10px;
    margin-bottom: 20px; /* Augmentez cette valeur pour plus d'espace */
}

.submenu li a {
    color: black; /* anciennement white */
    text-decoration: none;
    padding: 10px 20px; /* Augmentez cette valeur pour plus d'espace */
    white-space: nowrap;
    position: relative;
    top: -10px;
}

.submenu li a:hover {
    background-color: #444;
}

.content-wrapper {
    position: relative;
    padding-top: 0px; /* Suppression du padding-top */
    margin-bottom: 0px;
}

.content-wrapper img {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

/* Style pour l'image et l'overlay */
.image-container {
    position: relative;
    display: inline-block;
}

.image-overlay {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    pointer-events: none; /* Si besoin de laisser passer les clics sur l'image */
}

.image-overlay.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Styles pour l'overlay de contact sur la deuxième image */
.contact-info-container {
    position: relative;
    display: inline-block;
}

.contact-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.8); /* rectangle sombre semi-transparent */
    padding: 40px;
    color: white;
    font-size: 3em;
    border-radius: 10px;
    text-align: center;
}

/* Positionnement en mode grand écran : affichage en deux colonnes */
.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* La photo occupe un maximum de 300px de largeur */
.contact-person img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* En petit écran, on empile la photo au-dessus */
@media screen and (max-width: 768px) {
    .contact-info-container {
        flex-direction: column;
    }
}

/* Slider styles */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 0;
    aspect-ratio: 16/9; /* Format 16:9 par défaut pour grands écrans */
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
}

/* Styles pour les flèches du slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Hover effect pour les flèches */
.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Adaptation pour les écrans mobiles */
@media screen and (max-width: 768px) {
    .slider-container {
        aspect-ratio: 4/3; /* Format 4:3 pour petits écrans */
    }
}

/* Media query pour cacher les flèches sur mobile quand le menu est ouvert */
@media screen and (max-width: 768px) {
    body.menu-open .slider-arrow {
        display: none;
    }
}

/* Responsive styles */
.menu-toggle, .close-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
}

.menu-toggle svg rect {
    fill: black;
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        align-items: center; /* Centrer les éléments du menu */
        width: 100%;
        background-color: #fffdfd;
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        justify-content: center;
        overflow-y: auto;
        padding-top: 100px; /* Ajoute de l'espace en haut */
    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .close-menu {
        display: none;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        color: white;
        font-size: 24px;
    }

    .menu.active + .close-menu {
        display: block;
    }

    .menu-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
        padding-top: 100px; /* Ajoute de l'espace en haut */
    }

    .menu-container.active {
        display: block;
    }

    .menu-container::before {
        content: "";
        display: block;
        height: 100px; /* Hauteur de l'espace en haut */
        background-color: #ffffff; /* Couleur de fond gris pour assurer la continuité */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: -1;
    }

    .menu a {
        color: white; /* Assurez-vous que le texte est blanc */
        font-size: 20px; /* Augmentez la taille du texte pour une meilleure visibilité */
    }
}

@media screen and (max-width: 768px) {
  /* Masquer le menu par défaut */
  .menu-container {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1500;
    overflow-y: auto;
    padding-top: 100px;
    text-align: center;
  }
  
  /* Affichage du menu lorsqu'il est actif */
  .menu-container.active {
    display: block !important; 
    animation: slideDown 0.5s ease-out forwards;
  }
  
  /* Bouton d'ouverture (burger) */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px; /* Vous pouvez ajuster (ou le centrer si besoin) */
    z-index: 1600;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Bouton de fermeture */
  .close-menu {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1600;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 24px;
  }
  
  /* Quand le menu est actif, afficher la croix */
  .menu-container.active ~ .close-menu {
    display: block;
  }
  
  /* Centrer le menu (la liste) */
  .menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .menu li {
    margin: 10px 0;
  }
  
  .menu a {
    color: white;
    font-size: 20px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    text-decoration: none;
  }
}

nav {
    position: relative;
    background-color: #ffffff;
    padding: 5px 0; /* Réduit la marge en haut */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 40px;
    width: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center; /* Centre le contenu horizontalement */
    padding-left: 0; /* Supprime le padding gauche */
}

.menu-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5000;
    display: block;
}

.close-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Affiche le burger uniquement en mobile */
        position: fixed;
        top: 20px;
        right: 20px;
        left: auto;
        transform: none;
        z-index: 1500;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 28px;
    }

    .menu-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
    }

    .menu-container.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        padding-top: 60px;
    }

    .dropdown {
        margin: 10px 0;
        text-align: center;
    }

    .submenu {
        background-color: #444;
        padding: 10px 0;
    }

    .close-menu {
        display: block; /* Affiche le bouton de fermeture en mobile */
        color: white;
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    /* Assurer l'affichage en colonne du menu burger */
    .menu {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrage des éléments */
        width: 100%;
        padding-top: 60px;
    }

    /* Lorsque le menu burger est actif, on force l'affichage du menu */
    .menu-container.active .menu {
        display: flex;
    }

    /* Réglage de la lisibilité des liens */
    .menu a {
        color: white; /* Texte blanc */
        font-size: 24px; /* Texte plus grand pour être bien visible */
        padding: 15px; /* Plus d'espace autour du texte */
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Garder une bonne visibilité pour le bouton de fermeture */
    .close-menu {
        display: block;
    }
}
@media screen and (max-width: 768px) {
    /* Le bouton fermer apparaitant lors de l'ouverture du menu */
    .close-menu {
        display: none; /* Sera affiché dynamiquement */
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1500;
        background: none;
        border: none;
        color: black;  /* Modification ici : de white à black */
        font-size: 24px;
        cursor: pointer;
    }
}
@media (max-width: 768px) {
    /* ... autres règles ... */

    /* Réglage de la lisibilité des liens dans le menu burger */
    .menu a {
        color: black; /* Passage du blanc au noir */
        font-size: 24px; /* Texte plus grand pour une meilleure visibilité */
        padding: 15px;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Animation pour le conteneur du menu */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation pour le texte du menu */
@keyframes fadeInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Appliquer l'animation au menu burger en mobile */
@media (max-width: 768px) {
    .menu-container.active {
        display: block;
        animation: slideDown 0.5s ease-out forwards;
    }
    
    .menu-container.active .menu li {
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInDown 0.5s ease-out forwards;
        /* Optionnel : décaler les animations pour chaque lien */
        animation-delay: 0.2s;
    }
    
    /* Si vous souhaitez appliquer un léger délai pour chaque lien, vous pouvez personnaliser comme suit */
    .menu-container.active .menu li:nth-child(1) {
        animation-delay: 0.2s;
    }
    
    .menu-container.active .menu li:nth-child(2) {
        animation-delay: 0.3s;
    }
    
    .menu-container.active .menu li:nth-child(3) {
        animation-delay: 0.4s;
    }
    
    .menu-container.active .menu li:nth-child(4) {
        animation-delay: 0.5s;
    }
    
    .menu-container.active .menu li:nth-child(5) {
        animation-delay: 0.6s;
    }
}

/* Animation pour ouverture du menu */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation pour fermeture du menu */
@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Lorsqu'on ouvre le menu */
.menu-container.active {
    display: block;
    animation: slideDown 0.5s ease-out forwards;
}

/* Lors de la fermeture, la classe "closing" active l'animation slideUp */
.menu-container.closing {
    animation: slideUp 0.5s ease-in forwards;
}

/* Position et taille du logo */
.logo-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100; /* Au-dessus de la navigation */
}

.logo {
    max-height: 40px; /* Ajustez selon vos préférences */
}

/* En mode mobile, ajustez si nécessaire */
@media (max-width: 768px) {
    .logo-container {
        position: absolute;  /* Passage de fixed à absolute */
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }
    .logo {
        max-height: 35px;
    }
    /* Optionnel : ajuster le padding si besoin */
    nav {
        padding-left: 70px;
    }
}

@media screen and (max-width: 768px) {
    /* Assurez-vous que le bouton burger est affiché et positionné en haut à droite */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        right: 20px;
        z-index: 1500;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 28px; /* Taille agrandie */
    }

    /* Le bouton fermer apparaitant lors de l'ouverture du menu */
    .close-menu {
        display: none; /* Sera affiché dynamiquement */
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1500;
        background: none;
        border: none;
        color: black;  /* Modification ici : de white à black */
        font-size: 24px;
        cursor: pointer;
    }

    /* Ajustement du conteneur du logo pour qu'il ne recouvre pas le burger */
    .logo-container {
        position: absolute;  /* Passage de fixed à absolute */
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    /* Facultatif : réduire la taille du logo en mobile */
    .logo {
        max-height: 35px;
    }

    /* Afficher le menu burger en pleine page */
    .menu-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1400;
        overflow-y: auto;
        padding-top: 100px;
    }

    .menu-container.active {
        display: block;
    }
}

@media (min-width: 769px) {
    nav {
        padding-left: 0; /* Supprime le décalage causé par le padding-left */
        text-align: center; /* Centre le contenu dans la barre de nav */
    }
    nav .menu {
        display: inline-flex; /* Affiche la liste en ligne centrée */
        margin: 0 auto;
    }
}

@media (min-width: 769px) {
    .menu-toggle,
    .close-menu {
        display: none !important;
    }
    /* Optionnel : Assurez-vous que le menu s'affiche en pleine largeur sur grand écran */
    .menu-container {
        display: block !important;
        position: relative;
        height: auto;
        padding-top: 0;
    }
}
/* Cette règle cache les flèches du slider quand le menu burger est ouvert en mode portrait */
@media screen and (max-width: 768px) {
    body.menu-open .slider-arrow {
        display: none !important;
    }
}

/* Section Feature */
.feature-section {
    margin: 40px 0;
    margin-bottom: 140px; /* Ajustez la valeur selon vos besoins */
}

.feature-text {
    background-color: #fff;
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Classe ajoutée quand la section est visible */
.feature-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-image {
    margin-top: 20px;
}
.feature-section,
.feature-image,
.feature-text,
.feature-text h1 {
    margin: 0;
    padding: 0;
}

/* Optionnel : s'assurer que l'image occupe bien toute la largeur sans marge */
.feature-image img {
    display: block;
    margin: 0;
    padding: 0;
}

/* Positionnement de la section Feature */
.feature-container {
    text-align: center;
    position: relative;
}

.feature-text {
    margin-top: 20px;
    background-color: #ffffff; /* Fond blanc explicite */
}

.feature-title {
    font-size: 2.5em;
    margin: 20px 0 10px 0;
    text-align: center;
}

.feature-description {
    opacity: 0;
    transform: scale(0.95); /* Commence légèrement réduit */
    transition: opacity 1s ease-out, transform 1s ease-out;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

.feature-description.visible {
    opacity: 1;
    transform: scale(1);
}

.feature-container img {
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-text {
    margin-top: 0;
    padding-top: 0;
}

@media screen and (max-width: 768px) {
    .feature-title {
        font-size: 1.2em; /* Taille réduite pour le titre */
    }
    .feature-description {
        font-size: 0.7em; /* Taille réduite pour la description */
    }
    .feature-text {
        font-size: 1.2em; /* Ajustez si besoin */
    }
}

/* Positionnement et style de la section Feature */
.feature-container {
    text-align: center;
    position: relative;
}

.feature-text {
    margin-top: 20px;
}

.feature-title {
    font-size: 2.5em;
    margin: 20px 0 10px 0;
    text-align: center;
}

.feature-description {
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    background-color: rgba(255, 255, 255, 0.7); /* Fond blanc semi-transparent */
    padding: 10px;
}

/* Classe ajoutée par l'observer pour afficher la description */
.feature-description.visible {
    opacity: 1;
}

/* Ajustement pour les petits écrans */
@media screen and (max-width: 768px) {
    .feature-title {
        font-size: 1.2em;
    }
    .feature-description {
        font-size: 0.7em;
    }
}

.drone-description {
    background-color: #ffffff;  /* Fond blanc */
    text-align: center;
    padding: 20px 0;
}

.drone-container h1 {
    font-size: 2.5em;
    margin: 10px 0;
    color: #000;
}

.drone-container p {
    font-size: 1em;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.5;
    color: #000;
}

@media screen and (max-width: 768px) {
    .drone-container h1 {
        font-size: 1.5em;  /* Réduit la taille du titre */
    }
    .drone-container p {
        font-size: 0.9em;  /* Réduit la taille du paragraphe */
    }
}

/* Pour les titres et paragraphes du drone-container */
.drone-container h1,
.drone-container p {
    /* Initialement, le texte est blanc (invisible) */
    color: #000000;
    transition: color 0.8s ease-out, opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Quand l'animation est déclenchée */
.animate-slide-in h1,
.animate-slide-in p {
    color: #ffffff; /* Le texte devient noir */
}

/* Styles pour la section logiciel de pointe */
.software-feature-section {
    text-align: center;
    margin-bottom: 20px;
}

.software-feature-container {
    position: relative;
}

.software-feature-text {
    margin-top: 20px;
}

.software-feature-title {
    font-size: 2.5em;
    margin: 20px 0 10px 0;
}

.software-feature-description {
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 2.5s ease-out;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
}

.software-feature-description.visible {
    opacity: 1;
}

/* Styles pour la section drone de pointe */
.drone-feature-section {
    text-align: center;
    margin-bottom: 20px;
}

.drone-feature-container {
    position: relative;
}

.drone-feature-text {
    margin-top: 20px;
}

.drone-feature-title {
    font-size: 2.5em;
    margin: 20px 0 10px 0;
}

.drone-feature-description {
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 2.5s ease-out;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
}

.drone-feature-description.visible {
    opacity: 1;
}
/* Taille de base pour les descriptions */
.software-feature-description,
.drone-feature-description {
    font-size: 1.2em;
}
/* Pour les petits écrans (par exemple, largeur maximale 768px) */
@media screen and (max-width: 768px) {
    .software-feature-description,
    .drone-feature-description {
        font-size: 0.9em; /* Réduit la taille de la police sur petit écran */
    }
}
/* Styles pour la section Certification */
.certification-feature-section {
    text-align: center;
    margin-bottom: 20px;
}

.certification-feature-container {
    position: relative;
}

.certification-feature-text {
    margin-top: 20px;
}

.certification-feature-title {
    font-size: 2.5em;
    margin: 20px 0 10px 0;
    text-align: center;
}

.certification-feature-description {
    font-size: 1em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 2.5s ease-out;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
}

.certification-feature-description.visible {
    opacity: 1;
}

/* Ajustement pour les petits écrans */
@media screen and (max-width: 768px) {
    .certification-feature-title {
        font-size: 1.5em;
    }
    .certification-feature-description {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 768px) {
    .software-feature-title,
    .drone-feature-title,
    .certification-feature-title {
        font-size: 1.5em; /* Même taille pour tous les titres sur petit écran */
        max-width: 90%; /* Réduit la largeur pour forcer le retour à la ligne */
        margin: 0 auto;
        line-height: 1.4;
    }
}

@media screen and (max-width: 768px) {
    .software-feature-description,
    .drone-feature-description,
    .certification-feature-description {
        max-width: 65%;
        margin: 0 auto;
    }
}

.social-links a {
    text-decoration: none;
    outline: none;
    border: none;
}
/* Ajoutez ce bloc pour le slider continu */
.continuous-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.slider-track {
    display: flex;
    width: 200%; /* Grâce à la duplication, on a deux séries identiques */
    animation: scroll 60s linear infinite;
}

/* Suppression de marges/paddings pour coller les éléments */
.slider-track > * {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Style pour chaque slider-item et l'image */
.slider-item img {
    display: block;
    /* Si besoin, vous pouvez forcer une largeur ou hauteur */
    max-height: 300px;
    width: auto;
}

/* Overlay texte centré */
.slider-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 1em;
    text-align: center;
    opacity: 1;  /* Toujours visible */
    transition: none;  /* Pas d'animation de transition */
    pointer-events: none;
}

/* Animation de défilement vers la gauche (pour slider normal) */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pour le slider inverse (de droite à gauche) */
.continuous-slider.reverse .slider-track {
    animation: scrollReverse 60s linear infinite;
}

@keyframes scrollReverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Slider continu */
.continuous-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    /* Garder la duplication de contenu (200% de largeur pour deux séries identiques) */
    width: 200%;
    animation: scroll 60s linear infinite;
    gap: 0; /* Aucun espace entre les éléments */
}

/* On applique aux enfants une taille fixe et on empêche leur redimensionnement */
.slider-track > * {
    flex-shrink: 0;
    max-height: 300px;
    width: auto;
    /* Optionnel : vous pouvez forcer une hauteur fixe pour être sûr que tous ont la même dimension */
}

/* Animation classique (défilement de gauche à droite) */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pour le slider inverse (de droite à gauche) */
.continuous-slider.reverse .slider-track {
    animation: scrollReverse 60s linear infinite;
}

@keyframes scrollReverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}
/* Section Statistiques */
.statistics-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;  /* optionnel, couleur de fond */
}

.statistics-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* pour disposer verticalement sur petit écran */
}

.stat-item {
    margin: 20px;
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #000;
}

.stat-label {
    display: block;
    font-size: 1.2em;
    color: #555;
}

/* Sur petit écran, passe en disposition verticale */
@media (max-width: 768px) {
    .statistics-container {
        flex-direction: column;
    }
}
@media screen and (max-width: 768px) {
    .continuous-slider .slider-track .slider-item img,
    .continuous-slider.reverse .slider-track .slider-item img {
        max-height: 150px;
        object-fit: cover;
    }
    /* Réduire la taille du texte dans les sliders continus */
    .continuous-slider .slider-text {
    font-size: 0.8em;
}
.video-section {
    text-align: center;
    margin: 60px 0;
}

.video-title {
    font-size: 3em;
    margin: 0.5em 0;
}
}

/* Par défaut (petit écran) : affichage vertical */
.video-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px; /* marge sur les côtés pour le petit écran */
}

/* Pour les écrans en mode grand écran : affichage côte à côte */
@media screen and (min-width: 769px) {
    .video-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 60px; /* marge accrue sur les côtés */
        align-items: start;
    }

    /* Pour être certain que l'iframe occupe toute la largeur du conteneur */
    .video-container iframe {
        width: 100%;
        height: 300px; /* La vidéo occupe 70% de la hauteur de la fenêtre */
    }
}

.video-section .video-title {
    position: static;  /* Supprime l'affichage en position absolue */
    transform: none;   /* Supprime la transformation de centrage */
    color: #000;       /* Vous pouvez adapter la couleur */
    font-size: 3em;    /* Taille importante du titre */
    margin: 60px 0;    /* Assez d'espace en haut et en bas */
    text-shadow: none; /* Supprime l'ombre si nécessaire */
}

.video-section .youtube-logo {
    display: block;
    margin: 20px auto;
    width: 150px;  /* Ajustez cette valeur pour obtenir la taille désirée */
    height: auto;
}

/* Par défaut sur grand écran, images et vidéos prennent au maximum 80% de la largeur, centrées */
.video-section img,
.video-section .video-container iframe {
    max-width: 80%;
    margin: 0 auto;
    display: block;
}

/* Sur petit écran, réduire la marge pour occuper plus de place */
@media screen and (max-width: 768px) {
    .video-section img,
    .video-section .video-container iframe {
        max-width: 85%;
    }
}

.apropos-title-section {
    text-align: center;
    margin: 80px 0;  /* Espace de 80px en haut et en bas */
}

.apropos-title {
    font-size: 2.5em;  /* Taille du titre à adapter si besoin */
    margin: 20px 0;  /* Espace supplémentaire au-dessus et en dessous */
}

@media screen and (max-width: 768px) {
    .apropos-title {
        font-size: 1.5em; /* Ajustez cette valeur selon le rendu souhaité */
    }
}

.software-feature-section-2 {
    text-align: center;
    margin: 80px 0;
    /* Le contenu sera visible automatiquement */
}
.feature-section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
    .feature-section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
}
.software-feature-container-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.software-feature-description-2 {
    font-size: 1.2em;
    width: 60%; /* Le texte n'occupe que 60% de la largeur */
    margin: 0 auto;
}
@media screen and (max-width: 768px) {
    .software-feature-description-2 {
        font-size: 0.9em; /* Taille réduite */
        margin: 0 auto; /* Centrage horizontal */
        padding: 0 20px; /* Espace sur les côtés pour éviter que le texte touche les bords */
    }
}

.apropos-image-overlay {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
}

.apropos-overlay-image {
    width: 100%;
    display: block;
}

.apropos-overlay-text {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.apropos-overlay-text.visible {
    opacity: 1;
}

/* Par défaut, sur grand écran, affiche l'image et la description côte à côte */
.apropos-image-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.apropos-overlay-image {
    max-width: 60%;
    width: 100%;
    height: auto;
}

.apropos-overlay-desc {
    max-width: 40%;
    font-size: 1.2em;
}

/* Sur petit écran, la disposition passe en colonne */
@media screen and (max-width: 768px) {
    .apropos-image-overlay {
        flex-direction: column;
    }
    .apropos-overlay-image,
    .apropos-overlay-desc {
        max-width: 100%;
    }
    .apropos-overlay-desc {
        margin-top: 20px;
        text-align: center;
    }
}
@media screen and (max-width: 768px) {
    .apropos-overlay-desc {
        width: 60%;
        font-size: 0.9em; /* Ajustez la valeur selon la taille désirée */
        margin: 0 auto;   /* Centrage horizontal */
    }
}
@media screen and (min-width: 769px) {
    .apropos-overlay-desc {
        padding-right: 60px; /* Ajustez cette valeur selon l'espacement désiré */
    }
}
/* Section Témoignage */
.testimonial-section {
    margin: 40px 0;
    text-align: center;
    padding: 0 20px;
}

.testimonial-container {
    max-width: 80%;
    margin: 0 auto;
}

.testimonial-photo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.testimonial-description {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Sur petit écran */
@media screen and (max-width: 768px) {
    .testimonial-container {
        max-width: 60%;
    }
    .testimonial-description {
        font-size: 0.9em;
    }
}

/* Affichage des prix */
.prices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.prices-container img {
    flex: 1 1 calc(100% - 30px);
    max-width: calc(100% - 30px);
    object-fit: cover;
    opacity: 0; /* départ transparent */
    animation: fadeIn 0.8s ease forwards;
}

/* Délai d'apparition progressif pour chaque image */
.prices-container img:nth-child(1) {
    animation-delay: 0.2s;
}

.prices-container img:nth-child(2) {
    animation-delay: 0.4s;
}

.prices-container img:nth-child(3) {
    animation-delay: 0.6s;
}

.prices-container img:nth-child(4) {
    animation-delay: 0.8s;
}

/* Sur petit écran, organiser les images verticalement */
@media screen and (max-width: 768px) {
    .prices-container {
        flex-direction: column;
        padding: 20px;  /* Ajoute de l'espace en haut et sur les côtés */
    }
    .prices-container img {
        flex: none;
        width: 70%;  /* L'image occupe 70% de la largeur */
        margin: 10px auto; /* Ajoute un espace vertical et centre l'image */
        object-fit: contain; /* S'assure que l'image n'est pas recadrée */
    }
}

/* Pour les écrans en mode grand écran */
@media screen and (min-width: 769px) {
    .prices-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
        padding: 60px 60px 0;  /* 60px de marge à gauche, à droite et en haut */
        margin-top: 30px;     /* Espace supplémentaire en haut du conteneur */
    }
    .prices-container img {
        width: 100%;
        height: auto;
        object-fit: contain; /* Affiche l'image entièrement sans recadrage */
    }
}

/* Animation pour faire apparaître les images progressivement */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reveal {
    from {
      clip-path: inset(0 100% 0 0); /* masque tout sauf le bord gauche */
    }
    to {
      clip-path: inset(0 0 0 0); /* toute l'image est visible */
    }
  }
  .feature-image {
    /* Masquer initialement l'image en dévoilant uniquement sur le côté gauche */
    clip-path: inset(0 100% 0 0);
    animation: reveal 1s ease-out forwards 0.5s;
  }

/* Masquer le déclencheur par défaut */
.three-dots {
  display: none;
}

/* Afficher le déclencheur uniquement sur les écrans inférieurs ou égaux à 375px */
@media screen and (max-width: 375px) {
  .three-dots {
    display: block;
    position: fixed;
    top: 20px;
    right: calc(20px + env(safe-area-inset-right, 0px));
    background: none;
    border: none;
    font-size: 24px;
    z-index: 1500;
    cursor: pointer;
  }
}

@media screen and (max-width: 375px) {
  /* Masquer par défaut le bouton burger et le conteneur du menu */
  .menu-toggle,
  .menu-container {
    display: none !important;
  }
  
  /* Afficher le déclencheur (les trois points) toujours à droite */
  .three-dots {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    z-index: 1500;
    cursor: pointer;
  }
  
  /* Lorsque le déclencheur est activé (classe .active ajoutée via JS), afficher le menu burger et le conteneur */
  .three-dots.active + .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .three-dots.active ~ .menu-container {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    z-index: 1400;
    overflow-y: auto;
    padding-top: 100px;
    text-align: center;
    animation: slideDown 0.5s ease-out forwards;
  }
}

@media screen and (max-width: 375px) {
  .three-dots {
    position: fixed;
    top: 20px;
    right: calc(20px + env(safe-area-inset-right, 0px));
    background: none;
    border: none;
    font-size: 24px;
    z-index: 6000 !important;
    pointer-events: auto;
    color: black;
    cursor: pointer;
  }
}

/* Masquer les trois points par défaut (pour tous les écrans) */
.three-dots {
    display: none;
}

/* Afficher les trois points uniquement sur les très petits écrans */
@media screen and (max-width: 375px) {
    .three-dots {
        display: block;
        position: fixed;
        top: 20px;
        right: calc(20px + env(safe-area-inset-right, 0px));
        background: none;
        border: none;
        font-size: 24px;
        z-index: 6000;
        pointer-events: auto;
        color: black;
        cursor: pointer;
    }
}

/* Pour les très petits écrans, s'assurer que rien ne décale le menu */
@media screen and (max-width: 600px) {
    nav {
        padding-left: 0;
        padding-right: 0;
    }
    .menu-toggle {
        left: auto;
        right: 20px;
        top: 20px;
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    nav {
        min-height: 45px;      /* Augmente la hauteur minimale */
        padding: 15px 0;       /* Augmente le padding vertical */
    }
    .logo {
        max-height: 45px;      /* Optionnel : agrandir un peu le logo si besoin */
    }
}

@media screen and (min-width: 601px) and (max-width: 768px) {
    .menu-toggle {
        position: absolute;
        top: 50%;
        right: 20px;
        left: auto;
        transform: translateY(-50%);
        z-index: 1500;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 10px !important; /* Espace réduit */
        margin: 0;
    }
    .menu-container,
    .menu-container.active {
        padding-top: 10px !important; /* Espace réduit */
    }
}
/* Slider classe pour la page À propos */
.apropos-slider-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0;
}

.apropos-slider-container {
    position: relative;
    width: 80vw;
    max-width: 800px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background: #fff;
    display: flex;
    align-items: center;
}

.apropos-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1);
    height: 100%;
    width: 100%;
}

.apropos-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.apropos-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.apropos-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1.2em;
    padding: 12px 0;
    text-align: center;
    border-radius: 0 0 18px 18px;
    letter-spacing: 1px;
}

.apropos-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2em;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apropos-slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}
.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

@media (max-width: 600px) {
    .apropos-slider-container {
        width: 98vw;
        max-width: 100vw;
        aspect-ratio: 4/3;
    }
    .apropos-slide-caption {
        font-size: 1em;
        padding: 8px 0;
    }
}

/* --- Menu burger design amélioré --- */
@media (max-width: 768px) {
  .menu {
    align-items: flex-start !important;
    text-align: left;
    padding-left: 30px !important;
  }
  .menu li {
    width: 100%;
    margin: 12px 0;
    display: flex;
    justify-content: flex-start;
  }
  .menu a {
    background: #fff;
    color: #000000 !important;
    border-radius: 32px;
    padding: 14px 28px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-block;
    width: auto;
    text-align: left;
  }
  .menu a:hover,
  .menu a:focus {
    background: #b74839;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(183,72,57,0.15);
  }
  /* Pour les sous-menus dans le burger */
  .submenu {
    background: transparent;
    padding-left: 20px;
  }
  .submenu li a {
    background: #f5f5f5;
    color: #000000 !important;
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 17px;
    margin: 4px 0;
    box-shadow: none;
  }
  .submenu li a:hover {
    background: #000000;
    color: #fff !important;
  }
}
.contact-bubble.phone,
.contact-bubble.email {
  background: #f5f5f7 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* --- Apple-style Contact Bubbles --- */
.contact-bubble-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  margin: 60px auto 120px auto;
  max-width: 1100px;
  min-height: 60vh;
  position: relative;
}

.contact-bubble {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  min-height: 120px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
}

.contact-bubble.main {
  flex: 2 1 340px;
  max-width: 420px;
  min-height: 220px;
  background: linear-gradient(135deg, #f5f5f7 60%, #eaeaea 100%);
  box-shadow: 0 12px 48px rgba(183,72,57,0.10);
  justify-content: center;
}

.bubble-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.bubble-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

.contact-bubble .bubble-label {
  font-size: 1.1em;
  font-weight: 600;
  color: #b74839;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.5px;
}

.contact-bubble .bubble-value {
  font-size: 1.2em;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  word-break: break-all;
}

.contact-bubble .bubble-value:hover {
  color: #b74839;
  text-decoration: underline;
}

.contact-bubble.socials {
  flex: 1 1 180px;
  max-width: 220px;
  min-height: 120px;
  background: #f5f5f7;
  justify-content: center;
}

.bubble-social-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.bubble-social-links img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s;
}

.bubble-social-links a:hover img {
  transform: scale(1.13) rotate(-6deg);
}

.contact-bubble.website {
  background: #f5f5f7;
}

.contact-bubble.address {
  background: #f5f5f7;
}

.contact-bubble:hover {
  box-shadow: 0 16px 48px rgba(183,72,57,0.18);
  transform: translateY(-6px) scale(1.03);
}

/* Responsive : bulles en colonne sur mobile */
@media (max-width: 900px) {
  .contact-bubble-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 98vw;
    margin: 30px auto 60px auto;
  }
  .contact-bubble {
    min-width: 160px;
    max-width: 95vw;
    padding: 18px 8px;
    margin: 0;
    font-size: 0.97em;
  }
  .bubble-avatar {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }
  .bubble-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }
}

/* Supprime la colonne forcée sur mobile */
@media (max-width: 700px) {
  .contact-bubble-wrapper {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }
  .contact-bubble {
    min-width: 140px;
    max-width: 90vw;
    padding: 14px 4px;
    margin: 0;
    font-size: 0.93em;
  }
  .bubble-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  .bubble-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
  }
}

/* Optionnel : retire les marges latérales forcées sur mobile */
@media (max-width: 700px) {
  .contact-bubble {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
.contact-bubble.main .bubble-avatar {
  width: 110px;
  height: 110px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .contact-bubble.main .bubble-avatar {
    width: 90px;
    height: 90px;
  }
}
@media (max-width: 700px) {
  .contact-bubble.main .bubble-avatar {
    width: 75px;
    height: 75px;
  }
}
/* --- Portfolio Design --- */
.portfolio-section {
  max-width: 1200px;
  margin: 40px auto 60px auto;
  padding: 0 2vw;
}
.portfolio-title {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 36px;
  color: #b74839;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Carousel automatique */
.portfolio-carousel {
  overflow: hidden;
  width: 100%;
  margin-bottom: 40px;
}
.carousel-track {
  display: flex;
  gap: 28px;
  animation: carousel-scroll 22s linear infinite;
}
@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.portfolio-carousel .portfolio-bubble {
  min-width: 260px;
  max-width: 260px;
}

/* Grille responsive */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.portfolio-bubble {
  position: relative;
  background: none;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 0;
  overflow: visible;
  width: 340px;
  height: 240px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.portfolio-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
  display: block;
}
.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg,rgba(0,0,0,0.55) 70%,rgba(0,0,0,0.0) 100%);
  color: #fff;
  font-size: 1.25em;
  font-weight: 600;
  text-align: center;
  padding: 18px 0 10px 0;
  border-radius: 0 0 32px 32px;
  letter-spacing: 0.5px;
  z-index: 2;
  pointer-events: none;
}

/* Première ligne : bulles plus grandes */
.portfolio-grid-large {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-bottom: 48px;
}
.portfolio-grid-large .portfolio-bubble {
  width: 440px;
  height: 320px;
  border-radius: 38px;
}
.portfolio-grid-large .portfolio-bubble img {
  border-radius: 38px;
}
.portfolio-grid-large .portfolio-caption {
  font-size: 1.35em;
  border-radius: 0 0 38px 38px;
  padding: 22px 0 14px 0;
}

/* Effet texte au clic */
.portfolio-bubble {
  cursor: pointer;
  position: relative;
}
.portfolio-bubble .portfolio-caption {
  opacity: 1;
  transition: opacity 0.5s;
  pointer-events: none;
}
.portfolio-bubble.hide-caption .portfolio-caption {
  opacity: 0;
  transition: opacity 0s;
}
.portfolio-bubble.show-caption .portfolio-caption {
  opacity: 1;
  transition: opacity 1s;
}

/* Agrandissement plus grand au hover/click */
.portfolio-bubble:active img,
.portfolio-bubble.clicked img,
.portfolio-bubble:hover img {
  transform: scale(1.25);
  box-shadow: 0 16px 48px rgba(183,72,57,0.25);
  z-index: 10;
}

/* Styles pour le portfolio en mosaïque */
.portfolio-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #f5f5f7;
}

.mosaic-bubble {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  animation: mosaic-pop 0.8s cubic-bezier(.4,2,.6,1) both;
  animation-delay: var(--delay, 0s);
  transition: box-shadow 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1);
  will-change: transform;
  margin: 0;
}

@keyframes mosaic-pop {
  0% { opacity: 0; transform: scale(0.7) translateY(40px);}
  100% { opacity: 1; transform: scale(1) translateY(0);}
}

.mosaic-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), filter 0.4s;
  display: block;
}

.mosaic-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg,rgba(0,0,0,0.55) 70%,rgba(0,0,0,0.0) 100%);
  color: #fff;
  font-size: 1.15em;
  font-weight: 600;
  text-align: center;
  padding: 18px 0 10px 0;
  letter-spacing: 0.5px;
  opacity: 0.95;
  pointer-events: none;
  transition: opacity 0.4s;
}

/* Tailles des bulles (4/3 et ultra-large) */
.bubble-ultra {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 16/7;
  min-height: 420px;
}
.bubble-large {
  aspect-ratio: 4/3;
  min-height: 360px;
}
.bubble-medium {
  aspect-ratio: 4/3;
  min-height: 240px;
}

/* Animation auto-zoom */
@keyframes auto-zoom {
  0%, 100% { transform: scale(1);}
  10% { transform: scale(1.13) rotate(-2deg);}
  20% { transform: scale(1);}
}
.mosaic-bubble.auto-zoom img {
  animation: auto-zoom 8s ease-in-out infinite;
}

/* Hover/click */
.mosaic-bubble:hover,
.mosaic-bubble:focus {
  z-index: 10;
  box-shadow: 0 24px 64px rgba(183,72,57,0.18), 0 2px 16px rgba(0,0,0,0.10);
  transform: scale(1.13) rotate(-2deg);
}
.mosaic-bubble:hover img,
.mosaic-bubble:focus img {
  transform: scale(1.18);
  filter: brightness(1.08) saturate(1.1);
}
.mosaic-bubble:active img {
  transform: scale(1.05);
  filter: brightness(0.95);
}
.mosaic-bubble:active .mosaic-caption {
  opacity: 0;
  transition: opacity 0s;
}
.mosaic-bubble:not(:active) .mosaic-caption {
  transition: opacity 0.8s 0.7s;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 1200px) {
  .portfolio-mosaic {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .bubble-ultra { min-height: 260px; }
  .bubble-large { min-height: 200px; }
  .bubble-medium { min-height: 140px; }
}
@media (max-width: 700px) {
  .portfolio-mosaic {
    grid-template-columns: 1fr;
  }
  .bubble-ultra, .bubble-large, .bubble-medium {
    min-height: 38vw;
    aspect-ratio: 16/9;
    border-radius: 18px;
  }
}
.portfolio-mosaic {
  column-count: 4;
  column-gap: 0;
  width: 100vw;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  background: #f5f5f7;
}

@media (max-width: 1200px) {
  .portfolio-mosaic { column-count: 3; }
}
@media (max-width: 900px) {
  .portfolio-mosaic { column-count: 2; }
}
@media (max-width: 600px) {
  .portfolio-mosaic { column-count: 1; }
}

.mosaic-bubble {
  display: block;
  break-inside: avoid;
  margin-bottom: 0;
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  background: #fff;
  position: relative;
  margin: 0 0 18px 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1);
  cursor: pointer;
}

.bubble-ultra img,
.bubble-large img,
.bubble-medium img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.bubble-ultra { height: 480px; }
.bubble-large { height: 340px; }
.bubble-medium { height: 220px; }

@media (max-width: 900px) {
  .bubble-ultra { height: 320px; }
  .bubble-large { height: 220px; }
  .bubble-medium { height: 140px; }
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 60px auto 80px auto;
  padding: 0 2vw;
}

@media (max-width: 1100px) {
  .portfolio-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}
@media (max-width: 800px) {
  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 500px) {
  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.gallery-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  background: #fff;
  transition: 
    box-shadow 0.2s,
    transform 0.4s cubic-bezier(.4,2,.6,1);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s, transform 0.4s cubic-bezier(.4,2,.6,1);
  border-radius: 28px;
  display: block;
}

.gallery-photo:hover,
.gallery-photo.zoomed {
  transform: scale(1.5); /* Zoom x2 sur la bulle entière */
  z-index: 20;
  box-shadow: 0 32px 96px rgba(183,72,57,0.25), 0 2px 16px rgba(0,0,0,0.10);
}

@media (max-width: 700px) {
  .gallery-photo:hover,
  .gallery-photo.zoomed {
    transform: scale(1.25);
  }
}

.gallery-caption {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 0.98em;
  color: #fff;
  background: rgba(0,0,0,0.38);
  padding: 2px 10px;
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.gallery-photo:hover .gallery-caption,
.gallery-photo.zoomed .gallery-caption {
  opacity: 0;
}
.bubble-video-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 60px auto 40px auto;
  /* Ajout pour centrage parfait */
  margin-left: auto;
  margin-right: auto;
}
.bubble-video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 32px rgba(255,0,0,0.13), 0 2px 16px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s, transform 0.4s cubic-bezier(.4,2,.6,1);
  cursor: pointer;
  border: none;
  outline: none;
  margin-bottom: 12px;
}
.bubble-video-btn img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
.bubble-video-btn:hover,
.bubble-video-btn:focus {
  transform: scale(1.15);
  box-shadow: 0 24px 64px rgba(255,0,0,0.18), 0 2px 16px rgba(0,0,0,0.10);
}
.bubble-video-label {
  font-size: 1.3em;
  color: #b74839;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 0;
}

/* Centrage parfait de la bulle vidéo */
.video-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 40px 0;
  padding: 0 !important;
}

.bubble-video-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}