@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


[x-cloak]{display:none !important;}

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

        abbr[title], abbr {
            text-decoration: none;
            border-bottom: none;
            cursor: help; 
        }

        body {
            font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
        }

        .site-header {
            background-color: #ffffff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .container {
            max-width: 1250px;
            margin: 0 auto;
            padding: 0 0px;
        }

        .nav-site {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding: 20px 0;
        }

        .logo {
            font-size: 28px;
            font-weight: bold;
            color: #000;
            text-decoration: none;
        }

        .logo-img {
            height: 58px;
        }


        /* Tablette - Logo plus gros */
        @media (max-width: 1024px) {
            .logo-img {
                height: 60px;
            }
        }

        .nav-menu {
            display: flex;
            list-style: none;
            align-items: center;
            gap: 25px;
        }

        .nav-menu li a {
            color: #000;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-menu li a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #ff0000;
            transition: width 0.2s ease;
        }

        .nav-menu:not(.active) {
            transition: right 0.2s ease;
        }


        /* Soulignement rouge */
        .nav-menu a.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #ff0000;
            border-radius: 2px;
        }

        /* .nav-menu li a:hover {
            color: #ff0000;
        } */

        .nav-menu li a:hover::after {
            width: 100%;
        }

.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
    left: 0;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Animation croix PROFESSIONNELLE - Symétrique et fluide */
.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}



        /* Responsive - Tablette et Mobile */
        @media (max-width: 768px) {
            .container{
                padding: 0 20px;
            }

             .nav-site {
                align-items: center;
                padding: 35px 0;
            }

            .logo {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                font-size: 32px;
            }

            .hamburger {
                display: block;
                margin-left: auto;
            }

            .nav-menu {
                position: fixed;
                top: 90px;
                right: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background-color: #ffffff;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding-top: 50px;
                gap: 0;
                transition: right 0.4s ease;
                box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            }

            .nav-menu.active {
                right: 0;
            }

            .nav-menu li {
                width: 100%;
                text-align: center;
                font-weight: 500;
            }

            .nav-menu li a {
                display: block;
                padding: 20px 0;
                font-size: 18px;
                font-weight:600;
                width: 100%;
            }

            .nav-menu li a::after {
                display: none;
            }

            .nav-menu li a:hover {
                background-color: #f8f8f8;
            }
        }

        /* Pour très petits écrans */
        @media (max-width: 480px) {
            .logo {
                font-size: 28px;
            }

            .hamburger {
                width: 26px;
                height: 20px;
            }

            .hamburger span {
                height: 2.5px;
            }
        }









/************ BANNER *************/
.banner-carousel {
            position: relative;
            width: 100%;
            height: 85vh;
            overflow: hidden;
        }

        .carousel-slides {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
        }

        .carousel-slide.active {
            opacity: 1;
            z-index: 1;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        /* Overlay sombre optionnel */
        .carousel-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1;
        }

        /* Contenu texte sur le carrousel */
        .carousel-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: white;
            z-index: 2;
            width: 100%;
            max-width: 980px;
        }

        .carousel-content h1 {
            font-size: 3.3rem;
            font-weight: thin;
            margin-bottom: 20px;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
        }

        .carousel-content p {
            font-size: 1.5rem;
            margin-bottom: 30px;
            text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
        }

        .carousel-content .btn-red {
            display: inline-block;
            padding: 10px 20px;
            margin: 0px 5px;
            background-color: #ed0606;
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

         .carousel-content .btn-darkgray {
            display: inline-block;
            padding: 10px 20px;
            margin: 0px 5px;
            background-color: #374151;
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

         .carousel-content .btn-lightgray {
            display: inline-block;
            padding: 10px 20px;
            margin: 0px 5px;
            background-color: #6b7280;
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .carousel-content .btn:hover {
            background-color: #cc0000;
            transform: translateY(-2px);
        }

        /* Navigation dots */
        .carousel-dots {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 3;
        }

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

        .dot.active {
            background-color: #ff0000;
            transform: scale(1.3);
        }

        .dot:hover {
            background-color: rgba(255, 255, 255, 0.8);
        }

        /* Flèches de navigation */
        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            z-index: 3;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-arrow:hover {
            background-color: rgba(255, 0, 0, 0.8);
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-arrow.prev {
            left: 20px;
        }

        .carousel-arrow.next {
            right: 20px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .carousel-content h1 {
                font-size: 2rem;
            }

            .carousel-content p {
                font-size: 1.1rem;
            }

            .carousel-content .btn {
                padding: 12px 30px;
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .carousel-content h1 {
                font-size: 1.5rem;
            }

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



        /*************** FOOTER ***************/
        .scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;
}

/* Cercle avec ombre et dégradé */
.circle-container {
    position: relative;
    width: 44px;  /* md:w-11 */
    height: 44px; /* md:h-11 */
}

.scroll-top-btn:hover{
    opacity: 0.5;
}

.circle-main {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #374151;
    opacity:0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover .circle-main {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Flèche */
.arrow-icon {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover .arrow-icon {
    transform: translateY(-4px);
}

/* Animations x-transition (Alpine.js) */

.fadeInUp {
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(16px);
}
.fadeInUp[x-show="true"] {
    opacity: 1;
    transform: translateY(0);
}

.fadeOutDown {
    transition: all 0.2s ease-in;
    opacity: 1;
    transform: translateY(0);
}
.fadeOutDown[x-show="false"] {
    opacity: 0;
    transform: translateY(16px);
}

 .fade-in-up-title {
    animation: fadeInUp 0.6s ease-out forwards;
}


/*************************** VOS ENJEUX **************************************/


.gauge-progress {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}



/************************** REALISATIONS *************************************/
    @media (max-width: 768px) {
        [style*="aspect-ratio: 4/3"] {
            aspect-ratio: 16/11 !important;
        }
    }

    /* Animation personnalisée pour le chargement */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


/************************** realisation grid masonry *************************************/
/* Grille masonry : 4 colonnes pour permettre 2 petits côte à côte */

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 0.5rem;
    grid-auto-flow: dense;
}

.gallery-item {
    display: block;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Petits carrés : 1 colonne, 1 row */
.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Grands rectangles : 2 colonnes, 2 rows */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Images */
.gallery-masonry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== ADAPTATIONS POUR RENDU CARRÉ COMPACT ========== */

/* 1 image : grand carré centré */
.gallery-masonry:has(.gallery-item:first-child:last-child) {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
}

.gallery-masonry:has(.gallery-item:first-child:last-child) .gallery-item {
    grid-column: span 1;
    grid-row: span 2;
}

/* 2 images : 2 carrés côte à côte */
.gallery-masonry:has(.gallery-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-masonry:has(.gallery-item:nth-child(2):last-child) .gallery-item {
    grid-column: span 1;
    grid-row: span 2;
}

/* 3 images : 1 grand + 2 petits empilés (rectangle compact) */
.gallery-masonry:has(.gallery-item:nth-child(3):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-masonry:has(.gallery-item:nth-child(3):last-child) .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-masonry:has(.gallery-item:nth-child(3):last-child) .gallery-item:nth-child(2),
.gallery-masonry:has(.gallery-item:nth-child(3):last-child) .gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

/* 4 images : grille 2x2 parfaite (carré) */
.gallery-masonry:has(.gallery-item:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-masonry:has(.gallery-item:nth-child(4):last-child) .gallery-item {
    grid-column: span 1;
    grid-row: span 1;
}

/* 5 images : 2 en haut + 3 en bas (rectangle compact) */
.gallery-masonry:has(.gallery-item:nth-child(5):last-child) {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
}

.gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(1),
.gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(2),
.gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

/* Les 2 dernières images prennent chacune 1.5 colonnes pour combler */
.gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(4) {
    grid-column: 1 / span 2; /* De la colonne 1, prend 2 colonnes */
    grid-row: span 1;
}


/* 6+ images : structure masonry normale (comportement par défaut) */
/* Pas de règle spécifique = garde votre structure small/large en 2 colonnes */

/* Responsive */
@media (max-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 0.4rem;
    }
    
    .gallery-item.small {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    /* Adaptations tablette pour les petits nombres */
    .gallery-masonry:has(.gallery-item:first-child:last-child) {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry:has(.gallery-item:first-child:last-child) .gallery-item {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .gallery-masonry:has(.gallery-item:nth-child(2):last-child) .gallery-item {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .gallery-masonry:has(.gallery-item:nth-child(3):last-child) .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-masonry:has(.gallery-item:nth-child(3):last-child) .gallery-item:nth-child(2),
    .gallery-masonry:has(.gallery-item:nth-child(3):last-child) .gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-masonry:has(.gallery-item:nth-child(4):last-child) .gallery-item {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-masonry:has(.gallery-item:nth-child(5):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(2),
    .gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(3),
    .gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(4),
    .gallery-masonry:has(.gallery-item:nth-child(5):last-child) .gallery-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .gallery-masonry {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 250px;
    }
    
    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

.line-clamp-2 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}






/* Responsive : masquer sur mobile */
@media (max-width: 768px) {
    .fixed.group {
        display: none;
    }
}


.stat-text {
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.stat-text.show {
    opacity: 1;
    transform: translateY(0);
}

