/*
Theme Name:     piu
Theme URI:
Description:    piu theme
Author:         Piu
Version:        0.0.1
*/


/* Version améliorée */
html {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
}

body {
    touch-action: manipulation;
}

/* Empêche le zoom au double-tap sur mobile */
* {
    touch-action: manipulation;
}

/* Force la taille fixe */
/*
html {
  overflow-x: hidden;
}*/

.home {
    overflow-x: hidden;
}



/* Fonts */

:root {
    --default-font: 'Graphik', sans-serif;
    --default-font-title: 'Lufga', sans-serif;
    ;

}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
    --white: #ffffff;
    --black: #070300;

}

:root {
    /* Base */
    --fluid-12-14: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fluid-14-16: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
    --fluid-16-20: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    --fluid-18-24: clamp(1.125rem, 1rem + 0.625vw, 1.2rem);
    --fluid-20-28: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
    --fluid-26-42: clamp(1.625rem, 1.4rem + 1.125vw, 2.625rem);
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --radius-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --radius-md: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
}



/* TABLETTES & FORMATS COMPACTS (4:3, 3:2) */
@media (min-width: 1200px) and (max-aspect-ratio: 1.7/1) {
    :root {
        --fluid-18-24: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
        --fluid-20-28: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
        --fluid-26-42: clamp(1.375rem, 1.2rem + 0.875vw, 1.875rem);

        --space-sm: clamp(0.625rem, 0.5rem + 0.625vw, 1rem);
        --space-md: clamp(0.75rem, 0.6rem + 0.75vw, 1.125rem);
        --space-lg: clamp(1rem, 0.8rem + 1vw, 1.5rem);
        --space-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    }
}








/* Piu css */
body {
    color: var(--black);
    font-family: var(--default-font);
    font-size: 1rem;
}



.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--default-font-title);
    font-weight: 400;
}

h1,
.h1 {
    font-size: 3rem;
}

h2,
h3 {
    font-size: 2rem;
    font-weight: 300;
}



p {
    margin-bottom: 1.75rem;
}


.piu-p-7 {
    padding: 4rem 0;
}


.piu-mt-7 {
    margin-top: 4rem;
}

.piu-pb-7 {
    padding-bottom: 4rem;
}

.piu-pt-7 {
    padding-top: 4rem;
}

b,
strong {
    font-weight: 600;
}

@media screen and (min-width:1200px) {
    .piu-p-7 {
        padding: 7rem 0;
    }


    .piu-mt-7 {
        margin-top: 7rem;
    }

    .piu-pb-7 {
        padding-bottom: 7rem;
    }

    .piu-pt-7 {
        padding-top: 7rem;
    }

    .piu-pt-s {
        padding-top: max(3.5rem, 6vw);
    }

    h1,
    .h1 {
        font-size: 4rem;
    }


    h2,
    h3 {
        font-size: 3rem;
        font-weight: 300;
    }
}

@media screen and (min-width:1400px) {

    h1,
    .h1 {
        font-size: 4.5rem;
    }
}

.piu-pt-s {
    padding-top: max(3.5rem, 6vw);
}

a {
    text-decoration: none;
    text-transform: none;
    color: inherit;
}








.basic-page h1 {
    font-size: max(2.3rem, 4vw);
    padding-bottom: max(1.5rem, 2vw);
}



.basic-page h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1;
}



.basic-page h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1;
}




















/*** kuroko ***/

.kuroko-bg {
    background-color: #DBCFC3;
}


.order-6 {
    order: 6;
}

.order-7 {
    order: 7;
}

.order-8 {
    order: 8;
}

.order-9 {
    order: 9;
}

.order-10 {
    order: 10;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #E1551E;
    /* Yellow */
}


@media (min-width: 1400px) {

    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        width: 90%;
        max-width: 1800px;
    }
}

.kuroko-btn {
    background: rgba(255, 255, 255, 0.50);
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
    backdrop-filter: blur(10.2px);
    -webkit-backdrop-filter: blur(10.2px);
    border: 1px solid rgba(255, 255, 255, 0.39);
    color: white;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-size: 22px;
    cursor: pointer;
    background-color: #E1551E !important;
    color: white;
    border-color: #E1551E !important;
}

.wrapper-bg {
    position: relative;
}

.hero {
    background: #211E1E;

}

.hero::after {
    content: '';
}

.hero h1 {
    font-size: 4.5rem;
    color: white;
    padding-top: 8rem;
}

.svg-circle {
    position: absolute;
    right: 0;
    top: 20%;
    z-index: 0;
}




.hero-cta {
    padding: 8rem 0;
}



.horizontal-scroll-track:before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' viewBox='0 0 640 800' opacity='1'%3E%3Cdefs%3E%3Cfilter id='bbblurry-filter' x='-100%25' y='-100%25' width='400%25' height='400%25' filterUnits='objectBoundingBox' primitiveUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='29' x='0%25' y='0%25' width='100%25' height='100%25' in='SourceGraphic' edgeMode='none' result='blur'%3E%3C/feGaussianBlur%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23bbblurry-filter)'%3E%3Cellipse rx='277' ry='250.5' cx='-113.44651349886203' cy='484.20100823349844' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='136.0642014150544' cy='88.20747231310747' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='607.6325592281312' cy='142.95913720318651' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='251.09671200729713' cy='416.7716468150221' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='604.9417921652005' cy='358.6529798132228' fill='%23211e1eff'%3E%3C/ellipse%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom -100px;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

}

/** test hero section responsive **/

.kuroko-btn {
    background: rgba(255, 255, 255, 0.50);
    /*box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
    backdrop-filter: blur(10.2px);
    -webkit-backdrop-filter: blur(10.2px);
    border: 1px solid rgba(255, 255, 255, 0.39);
    color: white;
    padding: max(0.75rem, 1vw) max(1.5rem, 2vw);
    border-radius: 999px;
    font-size: max(16px, 1.2vw);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.kuroko-btn:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
    /*box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);*/
}

.wrapper-bg {
    position: relative;
}

.hero {
    background: #211E1E;
    position: relative;
}

.hero::after {
    content: '';
}

.hero h1 {
    font-size: max(2.5rem, 4.5vw);
    color: white;
    padding-top: max(4rem, 8vw);
    line-height: 1.2;
    padding-bottom: max(3rem, 4vh);
}

.hero h1 strong {
    font-weight: 700;
}

.svg-circle {
    position: absolute;
    right: 0;
    top: 20%;
    z-index: 0;
    width: max(200px, 15vw);
    height: auto;
}

.hero-cta {
    padding: max(4rem, 8vw) 0;
    display: flex;
    gap: max(1rem, 1.5vw);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.home .hero p {
    font-size: max(18px, 1.5vw);
    line-height: 1.6;
    max-width: 37vw;
}

@media (max-width:1200px){
   .home .hero p {
    font-size: max(18px, 1.5vw);
    line-height: 1.6;
    max-width: 450px;
} 
}

.mission{
    max-width: 600px;
   
}

@media (max-width: 991px){
    .mission{
   
    margin: auto;
    margin-bottom: 2rem;
}
}

/*
.horizontal-scroll-track {
    position: relative;
}
*/
.horizontal-scroll-track:before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' viewBox='0 0 640 800' opacity='1'%3E%3Cdefs%3E%3Cfilter id='bbblurry-filter' x='-100%25' y='-100%25' width='400%25' height='400%25' filterUnits='objectBoundingBox' primitiveUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='29' x='0%25' y='0%25' width='100%25' height='100%25' in='SourceGraphic' edgeMode='none' result='blur'%3E%3C/feGaussianBlur%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23bbblurry-filter)'%3E%3Cellipse rx='277' ry='250.5' cx='-113.44651349886203' cy='484.20100823349844' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='136.0642014150544' cy='88.20747231310747' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='607.6325592281312' cy='142.95913720318651' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='251.09671200729713' cy='416.7716468150221' fill='%23211e1eff'%3E%3C/ellipse%3E%3Cellipse rx='277' ry='250.5' cx='604.9417921652005' cy='358.6529798132228' fill='%23211e1eff'%3E%3C/ellipse%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom max(50px, 5vw);
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge-pill {
    padding: max(0.5rem, 0.8vw) max(1rem, 1.5vw);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: max(14px, 1vw);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .hero h1 {
        font-size: max(2.2rem, 5vw);
        padding-top: max(3.5rem, 6vw);
    }

    .kuroko-btn {
        font-size: max(16px, 1.8vw);
        padding: max(0.75rem, 1.2vw) max(1.5rem, 2.5vw);
    }

    .hero-cta {
        padding: max(3rem, 6vw) 0;
        gap: max(0.75rem, 1.2vw);
    }

    .svg-circle {
        width: max(150px, 18vw);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
        padding-top: 3rem;
        text-align: center;
    }

    .hero h1 br {
        display: none;
    }

    .kuroko-btn {
        font-size: 16px;
        padding: 0.875rem 1.75rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hero-cta {
        padding: 3rem 0;
        flex-direction: column;
        gap: 1rem;
    }

    .badge-pill {
        font-size: 13px;
        padding: 0.5rem 1rem;
    }

    .svg-circle {
        width: 120px;
        top: 10%;
    }

    .horizontal-scroll-track:before {
        background-position: center bottom 32px;
    }
}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {
    .hero h1 {
        font-size: 1.75rem;
        padding-top: 2.5rem;
    }

    .kuroko-btn {
        font-size: 15px;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    .hero-cta {
        padding: 2.5rem 0;
    }

    .badge-pill {
        font-size: 12px;
        padding: 0.4rem 0.875rem;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .hero h1 {
        font-size: max(4.5rem, 4vw);
        padding-top: max(8rem, 6vw);
    }

    .kuroko-btn {
        font-size: max(22px, 1.1vw);
        padding: max(1rem, 1vw) max(2rem, 2vw);
    }

    .hero-cta {
        padding: max(8rem, 6vw) 0;
        gap: max(1.5rem, 1.2vw);
    }

    .badge-pill {
        font-size: max(16px, 0.9vw);
        padding: max(0.6rem, 0.8vw) max(1.2rem, 1.5vw);
    }

    .svg-circle {
        width: max(250px, 13vw);
    }

    .horizontal-scroll-track:before {
        background-position: center bottom max(-300px, -11vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .hero h1 {
        font-size: max(5rem, 3.5vw);
        padding-top: max(10rem, 5vw);
    }

    .kuroko-btn {
        font-size: max(24px, 1vw);
        padding: max(1.2rem, 1vw) max(2.5rem, 2vw);
    }

    .hero-cta {
        padding: max(10rem, 5vw) 0;
        gap: max(2rem, 1vw);
    }

    .svg-circle {
        width: max(300px, 12vw);
    }
}

/* ====================================
   Protection contre le zoom
   ==================================== */
@media (min-resolution: 1.5dppx) {
    .hero h1 {
        font-size: max(2.3rem, 4vw);
    }

    .kuroko-btn {
        font-size: max(15px, 1.1vw);
    }
}

/** end hero section responsive **/





.horizontal-scroll-track:after {
    content: '';
    background-image: url(assets/img/circle-2.png);
    background-size: contain;
    background-position: right top;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 51.3vh;
    z-index: -1;

}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
}

@media (max-width:992px) {
    .hero-image {
        display: none;
    }

    .horizontal-scroll-track::after {
        display: none;
    }
}


.hero-image img {
    height: 70vh;
}

.hero-content {
    z-index: 2;
    position: relative;
}



/*** prestations ***/
.nav-pills .nav-link {
    color: #211E1E;
    background: transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 57px;
    font-weight: 600;

}

.card-presta-2 .nav-pills .nav-link{
     color: rgba(33, 30, 30, 0.5);

}

.card-presta-1 .nav-pills .nav-link {
    color: rgba(219, 207, 195, 0.5);

}

.card-presta-1 .nav-pills .nav-link:hover,
.card-presta-1 .nav-pills .nav-link.active {
    color: #fff;
    background-color: transparent !important;
    /*text-shadow:
        1.5px 0 0 currentColor,
        -1.5px 0 0 currentColor;*/


}


.card-presta-2 .nav-pills .nav-link:hover,
.card-presta-2 .nav-pills .nav-link.active {
    color: #211E1E;
    background-color: transparent !important;
    transition: transform 0.4s ease;
   /* text-shadow:
        1.5px 0 0 currentColor,
        -1.5px 0 0 currentColor;*/


}

.tab-content {
    padding: 1.5rem;
    /* color: #fff;*/
    font-size: 36px;
}

.tab-content ul {
    padding-left: 0;
    list-style: none;
}

.tab-pane {
    transition: opacity 0.2s ease-in-out;
}

/* Section conteneur */
.prestation {
    position: relative;

}

.test {
    border-radius: 3vmax;
    padding: 3vmax;
}

/* Couleurs distinctes pour chaque card */
.card-presta-1 .test {
    background-color: #211E1E;
    /* Rouge/Orange */
    color: #DBCFC3;
}

.card-presta-2 .test {
    background-color: #DBCFC3;
    /* Vert */
    color: #211E1E;
}

.card-presta-3 .test {
    background-color: #F4EFEA;
    /* Bleu */
    color: #211E1E;
    display: flex;
    align-items: center;
    justify-content: center;
}



.card-presta-3 h2 {
    text-align: center;
    font-size: max(28px, 3.2vw);
    margin-bottom: max(5rem, 3.5vw);
    line-height: 1.2;
    font-weight: 700;
}

.card-presta-3 p {
    text-align: center;
    font-size: max(18px, 2.2vw);
    padding: max(2.5rem, 4vw) 0;
    margin: 0;
    line-height: 1.5;
}

.card-presta-3 .btn-bloc {
    text-align: center;
    padding: 0;
    display: flex;
    gap: max(1rem, 1.5vw);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card-presta-3 .btn-bloc .kuroko-btn {
    background-color: #e6531d;
    border: none;
}

.card-presta-3 .btn-bloc .kuroko-btn:hover {
    background-color: #d14a18;
    transform: translateY(-2px);
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .card-presta-3 h2 {
        font-size: max(24px, 4vw);
        padding: 0 1rem;
    }

    .card-presta-3 p {
        font-size: max(16px, 2.5vw);
        padding: max(2rem, 3.5vw) 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-presta-3 .btn-bloc {
        gap: max(0.875rem, 1.2vw);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .card-presta-3 h2 {
        font-size: clamp(20px, 2vh, 24px);
        margin-bottom: max(5rem, 3.5vw);
        padding: 0 1rem;
    }

    .card-presta-3 p {
        font-size: 16px;
        padding: 1.5rem 1rem;
    }

    .card-presta-3 .btn-bloc {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .card-presta-3 .btn-bloc .kuroko-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {
    .card-presta-3 h2 {
        font-size: 20px;
    }

    .card-presta-3 p {
        font-size: 14px;
        padding: 1.25rem 0.75rem;
    }

    .card-presta-3 .btn-bloc {
        padding: 0 0.75rem;
    }

    .card-presta-3 .btn-bloc .kuroko-btn {
        width: 100%;
        max-width: none;
        font-size: 15px;
        padding: 0.75rem 1.5rem;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .card-presta-3 h2 {
        font-size: clamp(24px,4rem, 60px);
        margin-bottom: max(5rem, 3.5vw);
    }

    .card-presta-3 p {
        font-size: max(36px, 2vw);
        padding: max(5rem, 3.5vw) 0;
    }

    .card-presta-3 .btn-bloc {
        gap: max(1.5rem, 1.2vw);
    }

    .card-presta-3 .btn-bloc .kuroko-btn {
        font-size: max(22px, 1.2vw);
        padding: max(1rem, 1vw) max(2rem, 2vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .card-presta-3 h2 {
        font-size:clamp(24px,4rem, 60px);
    }

    .card-presta-3 p {
        font-size: max(40px, 1.8vw);
        padding: max(6rem, 3vw) 0;
    }

    .card-presta-3 .btn-bloc {
        gap: max(2rem, 1vw);
    }

    .card-presta-3 .btn-bloc .kuroko-btn {
        font-size: max(24px, 1.1vw);
        padding: max(1.2rem, 1vw) max(2.5rem, 2vw);
    }
}

/* ====================================
   Protection contre le zoom
   ==================================== */
@media (min-resolution: 1.5dppx) {
   /* .card-presta-3 h2 {
        font-size: max(26px, 2.8vw);
    }

    .card-presta-3 p {
        font-size: max(17px, 2vw);
        padding: max(2.2rem, 3.5vw) 0;
    }*/
}









@media (min-height: 600px) {
    [class^="card-presta-"][data-process-card] {
        --header-height: 80px;
        --card-height: 70vh;
        --top: calc(var(--header-height) + 5vmax);
        position: sticky;
        top: var(--top);
        padding-top: var(--padding-top);
        padding-bottom: calc(100vh - (var(--card-height) + var(--padding-top) + var(--top)));
    }

    /* Card 1 - Position haute, z-index bas */
    .card-presta-1[data-process-card] {
        z-index: 1;
    }

    /* Card 2 - Position intermédiaire, z-index moyen */
    .card-presta-2[data-process-card] {
        z-index: 2;
    }

    /* Card 3 - Position basse, z-index haut */
    .card-presta-3[data-process-card] {
        z-index: 3;
    }

    /* Hauteur max pour le contenu avec scroll si nécessaire */
    [class^="card-presta-"][data-process-card] .tab-content {
        max-height: calc(var(--card-height) - 200px);
        overflow-y: auto;
    }
}

/* Écrans courts : on maximise l'espace */
@media (min-height: 600px) and (max-height: 800px) {
    [class^="card-presta-"][data-process-card] {
        --header-height: 0px;
        --card-height: 92vh;
    }
}

@media (min-height: 600px) {
    [class^="test"][data-process-card-content] {
        height: var(--card-height);
    }
}

/* Version mobile/desktop classique */
@media (max-height: 599px) {
    [class^="card-presta-"] {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }
}





/* Container principal - hauteur calculée pour le défilement des cartes */

.horizontal-scroll-wrapper {
    height: 250vh;
    /* Réduit pour mobile */
    position: relative;
}

@media (min-width: 768px) {
    .horizontal-scroll-wrapper {
        height: 200vh;
        /* Réduit pour desktop */
    }
}



/* Élément sticky qui reste fixé */
.horizontal-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* Track pour l'alignement vertical */
.horizontal-scroll-track {
    height: 100%;
    display: flex;

    align-items: center;
    /* Centre les cartes verticalement */
    padding-left: 6vw;
    /* Marge à gauche */
}

/* Container des cartes qui va se déplacer horizontalement */
.horizontal-scroll-container {
    display: flex;
    gap: 2vmax;
    width: fit-content;
    will-change: transform;
    transition: transform 0.05s linear;
}

/* Wrapper de chaque carte */
.card-wrapper {
    flex-shrink: 0;
}

/* Carte de projet - Structure de base */
.card-project {
    flex-shrink: 0;
    /* background: #fff;*/
    border-radius: 16px;
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.50);
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
    backdrop-filter: blur(10.2px);
    -webkit-backdrop-filter: blur(10.2px);
    /* border: 1px solid rgba(255, 255, 255, 0.39);*/
}

.card-project:hover {
    /*transform: translateY(-8px);*/
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);*/
}

/* Wrapper de l'image - Dimensions fixes */
.card-project .wrapper-img {
    height: 583px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Size 1 - Format large */
.card-project.size-1 .wrapper-img {
    width: 798px;
}

/* Size 2 - Format étroit */
.card-project.size-2 .wrapper-img {
    width: 469px;
}

/* Image */
.card-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-project:hover img {
    transform: scale(1.05);
}


/*** test responsive slide project ***/

/* Wrapper de chaque carte */
.card-wrapper {
    flex-shrink: 0;
}

/* Carte de projet - Structure de base */
.card-project {
    display: block;
    flex-shrink: 0;
    border-radius: max(12px, 1vw);
    overflow: hidden;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.50);
    /*box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
    backdrop-filter: blur(10.2px);
    -webkit-backdrop-filter: blur(10.2px);
}

.card-project:hover {
    /*transform: translateY(-8px);*/
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);*/
}

/* Wrapper de l'image - Dimensions responsives */
.card-project .wrapper-img {
    height: max(400px, 30vw);
    border-radius: max(12px, 1vw);
    overflow: hidden;
    position: relative;
}

/* Size 1 - Format large */
.card-project.size-1 {
    width: max(600px, 41vw);
}

.card-project.size-1 .wrapper-img {
    width: 100%;
    aspect-ratio: 798 / 583;
}

/* Size 2 - Format étroit */
.card-project.size-2 {
    width: max(350px, 24vw);
}

.card-project.size-2 .wrapper-img {
    width: 100%;
    aspect-ratio: 469 / 583;
}

/* Image */
.card-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-project:hover img {
    transform: scale(1.05);
}

/* Footer de la carte */
.k-footer-card {
    padding: max(1rem, 1.2vw);
}

.k-footer-card h3 {
    font-size: max(18px, 1.5vw);
    margin-bottom: max(0.5rem, 0.8vw);
    font-weight: 600;
}

.tag-list {
    gap: max(0.5rem, 0.6vw);
    flex-wrap: nowrap;
}

.tag-list span {
    font-size: max(12px, 0.9vw);
    font-weight: 500;
}

.like {
    gap: max(0.4rem, 0.5vw);
}

.like-project svg {
    width: max(18px, 1.2vw);
    height: max(16px, 1.1vw);
}

.like .number {
    font-size: max(14px, 1vw);
    font-weight: 600;
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .card-project.size-1 {
        width: max(450px, 50vw);
    }

    .card-project.size-2 {
        width: max(300px, 35vw);
    }

    .card-project .wrapper-img {
        height: max(350px, 35vw);
    }

    .k-footer-card h2 {
        font-size: max(16px, 2vw);
    }

    .tag-list span {
        font-size: max(11px, 1.2vw);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    /*.card-project.size-1,
    .card-project.size-2 {
        width: 85vw;
        max-width: 400px;
    }*/

    .card-project .wrapper-img {
        height: 280px;
        border-radius: 12px;
    }

    .card-project {
        border-radius: 12px;
    }

    .k-footer-card {
        padding: 1rem;
    }

    .k-footer-card h2 {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }

    .tag-list {
        gap: 0.4rem;
    }

    .tag-list span {
        /*padding: 4px 10px;*/
        font-size: 11px;
    }

    .like-project svg {
        width: 18px;
        height: 16px;
    }

    .like .number {
        font-size: 13px;
    }
}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {

    .card-project.size-1,
    .card-project.size-2 {
        width: 90vw;
        max-width: none;
    }

    .card-project .wrapper-img {
        height: 240px;
    }

    .k-footer-card h2 {
        font-size: 15px;
    }

    .tag-list span {
        font-size: 10px;
        /*padding: 3px 8px;*/
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .card-project.size-1 {
        width: max(798px, 38vw);
    }

    .card-project.size-2 {
        width: max(469px, 22vw);
    }

    .card-project .wrapper-img {
        height: max(583px, 28vw);
    }

    .k-footer-card {
        padding: max(1.5rem, 1.2vw);
    }

    .k-footer-card h2 {
        font-size: max(20px, 1.4vw);
        margin-bottom: max(0.75rem, 0.8vw);
    }

    .tag-list span {
        /*padding: max(5px, 0.3vw) max(14px, 0.8vw);*/
        font-size: max(13px, 0.9vw);
    }

    .like-project svg {
        width: max(21px, 1.2vw);
        height: max(18px, 1.1vw);
    }

    .like .number {
        font-size: max(15px, 1vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .card-project.size-1 {
        width: max(900px, 36vw);
    }

    .card-project.size-2 {
        width: max(550px, 21vw);
    }

    .card-project .wrapper-img {
        height: max(650px, 26vw);
    }

    .k-footer-card h2 {
        font-size: max(22px, 1.3vw);
    }

    .tag-list span {
        font-size: max(14px, 0.8vw);
    }
}

/* ====================================
   Protection contre le zoom
   ==================================== */
@media (min-resolution: 1.5dppx) {
    .card-project .wrapper-img {
        height: max(380px, 28vw);
    }
}



/* Footer de la carte */
.k-footer-card {
    padding: max(0.75rem, 1vw);
    gap: max(12px, 1vw);
    display: flex;
    flex-direction: row;
}

.k-footer-card h2 {
    font-size: max(18px, 1.5vw);
    font-weight: 600;
    color: #0a0a0a;
    margin: 0 0 max(6px, 0.5vw) 0;
    line-height: 1.2;
    text-align: left;
}

/* Liste des tags */
.tag-list {
    display: flex;
    flex-wrap: nowrap;
    gap: max(6px, 0.6vw);
    margin-top: max(6px, 0.5vw);
    align-items: center;
}

.tag-list span,
.k-footer-card span {
    font-size: max(13px, 1vw);
    color: var(--black);
    font-weight: 500;
    white-space: nowrap;
}

.k-footer-card svg {
    height: max(13px, 1vw);
    width: max(13px, 1vw);
}

.tag-list span:nth-of-type(1) {
    padding-left: 0;
}

/* Section like */
.like {
    gap: max(5px, 0.5vw);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.like-project svg {
    width: max(18px, 1.3vw);
    height: max(16px, 1.2vw);
    flex-shrink: 0;
}

.like .number {
    font-size: max(14px, 1.1vw);
    font-weight: 600;
    color: #E1551E;
    background: none;
    padding: 0;
}





/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .k-footer-card {
        padding: max(0.875rem, 1.2vw);
    }

    .k-footer-card h2 {
        font-size: max(16px, 2vw);
        margin-bottom: max(6px, 0.7vw);
    }

    .tag-list {
        gap: max(6px, 0.8vw);
        margin-top: max(6px, 0.7vw);
    }

    .tag-list span,
    .k-footer-card span {
        font-size: max(12px, 1.4vw);
    }

    .like-project svg {
        width: max(18px, 1.6vw);
        height: max(16px, 1.4vw);
    }

    .like .number {
        font-size: max(13px, 1.3vw);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .k-footer-card {
        padding: 0.875rem;
        gap: 10px;
    }

    .k-footer-card h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .tag-list {
        gap: 6px;
        margin-top: 6px;
    }

    .tag-list span,
    .k-footer-card span {
        font-size: 12px;
    }



    .tag-list span:nth-of-type(1) {
        padding-left: 0;
    }

    .like {
        gap: 5px;
    }

    .like-project svg {
        width: 18px;
        height: 16px;
    }

    .like .number {
        font-size: 13px;
    }
}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {
    .k-footer-card {
        padding: 0.75rem;
        gap: 8px;
    }

    .k-footer-card h2 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .tag-list {
        gap: 5px;
        margin-top: 5px;
    }

    .tag-list span,
    .k-footer-card span {
        font-size: 16px;
    }


    .like-project svg {
        width: 20px;
        height: 20px;
    }

    .like .number {
        font-size: 12px;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .k-footer-card {
        padding: max(1.2rem, 1vw);
        gap: max(16px, 1vw);
    }

    .k-footer-card h2 {
        font-size: max(24px, 1.4vw);
        margin-bottom: max(8px, 0.5vw);
    }

    .tag-list {
        gap: max(8px, 0.6vw);
        margin-top: max(8px, 0.5vw);
    }

    .tag-list span,
    .k-footer-card span {
        font-size: max(14px, 0.9vw);
    }

    .k-footer-card svg {
        height: max(14px, 0.9vw);
        width: max(14px, 0.9vw);
    }

    .like {
        gap: max(6px, 0.5vw);
    }

    .like-project svg {
        width: max(20px, 1.2vw);
        height: max(18px, 1.1vw);
    }

    .like .number {
        font-size: max(15px, 1vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .k-footer-card {
        padding: max(1.5rem, 0.9vw);
        gap: max(18px, 0.9vw);
    }

    .k-footer-card h2 {
        font-size: max(26px, 1.3vw);
        margin-bottom: max(10px, 0.5vw);
    }

    .tag-list {
        gap: max(10px, 0.5vw);
        margin-top: max(10px, 0.5vw);
    }

    .tag-list span,
    .k-footer-card span {
        font-size: max(15px, 0.8vw);
    }


    .like-project svg {
        width: max(22px, 1.1vw);
        height: max(20px, 1vw);
    }

    .like .number {
        font-size: max(16px, 0.9vw);
    }
}

/* ====================================
   Protection contre le zoom
   ==================================== */
@media (min-resolution: 1.5dppx) {
    .k-footer-card h2 {
        font-size: max(17px, 1.4vw);
    }

    .tag-list span,
    .k-footer-card span {
        font-size: max(16px, 0.9vw);
    }

    .k-footer-card svg {
        height: max(20px, 1.2vw);
        width: max(20px, 1.2vw);
    }

    .like .number {
        font-size: max(13px, 1vw);
    }
}


/*** end test responsive slide project ***/

/* Footer de la carte */


/* Bootstrap helpers */
.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

/* Animation d'apparition progressive */
.card-project {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

/* Responsive - Mobile */
@media (max-width: 768px) {
    .card-project .wrapper-img {
        height: 450px;
    }

    /*
    .card-project.size-1 .wrapper-img {
        max-width: 600px;
    }
    
    .card-project.size-2 .wrapper-img {
        max-width: 400px;
    }*/
}

/* Optimisation des performances */
.horizontal-scroll-container {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .horizontal-scroll-sticky {
        padding-left: 4vw;
    }

    .horizontal-scroll-container {
        gap: 3vmax;
    }
}




/* ====================================
   SECTION TEAM - STYLES
   ==================================== */
/* ====================================
   STYLES DE BASE DES CARTES (tous écrans)
   ==================================== */
.card-team {
    background: transparent;

    margin-bottom: max(20px, 2vw);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card-team .wrapper-card-team {
    border-radius: max(16px, 1.2vw);
    overflow: hidden;
}

.card-team img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    pointer-events: none;
}

.card-footer-team {
    padding: max(16px, 1.5vw) 0;
}

.card-footer-team p {
    font-size: max(0.7rem, 0.8vw);
    /* text-transform: uppercase;*/
    letter-spacing: max(0.8px, 0.08vw);
    margin-bottom: max(10px, 1vw);
    line-height: 1.4;
}

.card-footer-team .prenom {
    font-size: max(1.2rem, 1vw);
    font-weight: 600;
    display: block;
    margin-bottom: max(2px, 0.2vw);
}

.card-footer-team .nom {
    font-size: max(1.2rem, 1vw);
    font-weight: 600;
    display: block;
}

/* ====================================
   DESKTOP (≥ 1200px) - Layout en grille + Animation
   ==================================== */
@media (min-width: 1200px) {
    .team-list {
        margin-top: max(40px, 5vw);
    }

    /* Décalages verticaux */
    .team-list .col-xl-3:nth-child(1) {
        margin-top: max(200px, 12vw);
    }

    .team-list .col-xl-3:nth-of-type(2) {
        /* margin-top: max(300px, 14vw); */
    }

    .team-list .col-xl-3:nth-of-type(3) {
        margin-top: max(-600px, -28vw);
    }

    .team-list .col-xl-3:nth-of-type(4) {
        margin-top: max(-150px, -8vw);
    }

    .team-list .col-xl-3:nth-of-type(5) {
        margin-top: 0;
    }

    .team-list .col-xl-3:nth-of-type(6) {
        margin-top: max(-150px, -5vw);
    }

    .team-list .col-xl-3:nth-of-type(7) {
        margin-top: max(-550px, -34vw);
    }

    .team-list .col-xl-3:nth-of-type(8) {
        margin-top: max(-200px, -11vw);
    }

    .team-list .col-xl-3:nth-of-type(9) {
        margin-top: max(-200px, -11vw);
    }

    /* Animation fade up */
    .card-team {
        opacity: 0;
        transform: translateY(60px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .card-team.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Hover effect sur desktop uniquement */
    .card-team:hover img {
        /* transform: scale(1.05);*/
        transition: transform 0.4s ease;
    }

    .card-team img {
        transition: transform 0.4s ease;

    }
}

@media (min-width:1200px) {

    .team-scroll-container,
    .mw-80 {
        max-width: 80%;
        margin: auto;
    }

}

/* ====================================
   MOBILE/TABLETTE (< 1200px) - Scroll horizontal
   ==================================== */
@media (max-width: 1199px) {

    /* Container avec scroll horizontal */
    .team-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 20px 0 40px 0;
        cursor: grab;
        position: relative;
        z-index: 2;
    }

    .team-scroll-container:active {
        cursor: grabbing;
    }

    .team-scroll-container::-webkit-scrollbar {
        display: none;
    }

    /* Team list en mode flex horizontal */
    .team-list {
        display: flex;
        gap: 20px;
        padding: 0 20px;
        flex-wrap: nowrap;
    }

    .team-list .col-xl-3,
    .team-list .col-md-6 {
        width: 280px;
        flex-shrink: 0;
        margin-top: 0 !important;
    }

    /* Pas d'animation en mode mobile */
    .card-team {
        opacity: 1;
        transform: translateY(0);
        height: 100%;
    }

    /* Empêcher la sélection pendant le drag */
    .team-scroll-container * {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }



    .card-team:hover img {
        transform: scale(1);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {

    .team-list .col-xl-3,
    .team-list .col-md-6 {
        width: 240px;
    }

    .card-footer-team {
        padding: 16px 0;
    }

    .card-footer-team p {
        font-size: 0.65rem;
    }

    .card-footer-team .prenom,
    .card-footer-team .nom {
        font-size: 1.1rem;
    }
}



/*** team ***/

.team-section {
    padding-top: max(4rem, 8vw);
    position: relative;
}

.about-section {
    padding-bottom: max(4rem, 8vw);
    position: relative;
}

.team-header h2,
.about-title {
    font-size: max(36px, 4.5vw);
    line-height: 1.2;
}

.team-header h2 span {
    color: #E1551E;
    font-weight: bold;
}

.team-header p,
.about-description {
    padding-top: max(2rem, 4vw);
    font-size: max(18px, 1.5vw);
    line-height: 1.6;
}

.team-list {
    z-index: 2;
    position: relative;
}



/** news background **/

.team-section::after {
    content: '';
    height: max(900px, 75vw);
    width: 100vw;
    position: absolute;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 800"><defs><filter id="bbblurry-filter" x="-100%" y="-100%" width="400%" height="400%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="29" x="0%" y="0%" width="100%" height="100%" in="SourceGraphic" edgeMode="none" result="blur"></feGaussianBlur></filter></defs><g filter="url(%23bbblurry-filter)" transform="rotate(180 320 400)"><ellipse rx="277" ry="250.5" cx="-113.44651349886203" cy="484.20100823349844" fill="%23dbcfc3"></ellipse><ellipse rx="277" ry="250.5" cx="136.0642014150544" cy="88.20747231310747" fill="%23dbcfc3"></ellipse><ellipse rx="277" ry="250.5" cx="574.8766820712352" cy="107.68355181836708" fill="%23dbcfc3"></ellipse><ellipse rx="277" ry="250.5" cx="251.09671200729713" cy="416.7716468150221" fill="%23dbcfc3"></ellipse><ellipse rx="277" ry="250.5" cx="604.9417921652005" cy="358.6529798132228" fill="%23dbcfc3"></ellipse></g></svg>');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

.team-section .mini-card.mini-card-cta {
    transform: none;
    transform: translateY(-8vw);
    margin: auto;
    border: none;
}

@media (max-width:1200px) {
    .team-section .mini-card.mini-card-cta {
        transform: none;
    }
}


/*** news home - Blog Section ***/




.blog-section {
    padding: max(60px, 5vw) 0 max(80px, 6vw);
    margin-top: max(-500px, -40vw);
}

.blog-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    justify-content: center;

}

.blog-categories a {
    border: solid 1px #211E1E;
    border-radius: 999px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .blog-section {
        padding: max(50px, 4vw) 0 max(70px, 5vw);
        margin-top: max(-400px, -35vw);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .blog-section {
        padding: 40px 0 60px;
        margin-top: -300px;
    }
}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {
    .blog-section {
        padding: 30px 0 50px;
        margin-top: -250px;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .blog-section {
        padding: max(60px, 4.5vw) 0 max(80px, 5.5vw);
        margin-top: max(-800px, -38vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .blog-section {
        padding: max(70px, 4vw) 0 max(90px, 5vw);
        margin-top: max(-900px, -36vw);
    }
}

/* ====================================
   Protection contre le zoom
   ==================================== */
@media (min-resolution: 1.5dppx) and (min-width: 1200px) {
    .blog-section {
        margin-top: max(-800px, -37vw);
    }
}

@media (max-width: 1200px) {
    .blog-section {
        margin-top: 0;
        background-color: #DBCFC3;


    }
}

body:not(.parallax-enabled) .blog-section {
    background-color: #DBCFC3;
}



.blog-section {
    padding: max(60px, 5vw) 0 max(80px, 6vw);
    margin-top: 0;
    /* Par défaut, pas de remontage */
    transition: margin-top 0.3s ease;
    /* Transition douce */
}

/* Remontage uniquement quand le parallaxe est actif */
body.parallax-enabled .blog-section {
    margin-top: max(-500px, -40vw);
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .blog-section {
        padding: max(50px, 4vw) 0 max(70px, 5vw);
        margin-top: 0;
    }

    /* Pas de remontage en tablette */
    body.parallax-enabled .blog-section {
        margin-top: 0;
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .blog-section {
        padding: 40px 0 60px;
        margin-top: 0;
    }

    /* Pas de remontage en mobile */
    body.parallax-enabled .blog-section {
        margin-top: 0;
    }
}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {
    .blog-section {
        padding: 30px 0 50px;
        margin-top: 0;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .blog-section {
        padding: max(60px, 4.5vw) 0 max(80px, 5.5vw);
    }

    body.parallax-enabled .blog-section {
        margin-top: max(-800px, -38vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .blog-section {
        padding: max(70px, 4vw) 0 max(90px, 5vw);
    }

    body.parallax-enabled .blog-section {
        margin-top: max(-900px, -36vw);
    }
}

/* ====================================
   Desktop avec parallaxe (> 1200px)
   ==================================== */
@media (min-width: 1200px) {
    body.parallax-enabled .blog-section {
        margin-top: max(-500px, -40vw);
    }
}

/* ====================================
   Protection contre le zoom
   ==================================== */
@media (min-resolution: 1.5dppx) and (min-width: 1200px) {
    body.parallax-enabled .blog-section {
        margin-top: max(-800px, -37vw);
    }
}

































.blog-section .container {
    position: relative;
    z-index: 2;
}

.blog-header {
    text-align: center;
    margin-bottom: max(40px, 4vw);
}

.blog-section h2 {
    font-size: max(2rem, 3vw);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: max(20px, 1.5vw);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Scroll horizontal container */
.blog-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE et Edge */
    padding: max(20px, 1.5vw) 0 max(40px, 3vw) 0;
    cursor: grab;
    position: relative;
    z-index: 2;
}

.blog-scroll-container:active {
    cursor: grabbing;
}

/* Masquer la scrollbar pour Chrome, Safari et Opera */
.blog-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Cards wrapper */
.cards-wrapper {
    display: flex;
    gap: max(20px, 1.5vw);
    padding: 0 max(20px, 2vw);
}

/* Cards - Carte externe avec padding de 6px */
.news-card {
    height: 100%;
    width: max(500px, 32vw);
    flex-shrink: 0;
    background-color: #fff;
    border-radius: max(12px, 1vw);
    overflow: hidden;
    padding: max(6px, 0.4vw);
    transition: transform 0.3s ease;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
    display: flex;
    flex-direction: row;
}

.news-card-link {
    display: flex;
    flex-direction: row;
}

.news-card:hover {
    transform: translateY(-8px);
    /*box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);*/
}

@media (max-width:992px) {
    .news-card:hover {
        transform: translateY(0);
    }

}

/* Card Layout - Contenu à gauche */
.card-content {
    width: 70%;
    background-color: #ffffff;
    border-top-right-radius: max(12px, 1vw);
    border-bottom-right-radius: max(12px, 1vw);
    padding: max(0.875rem, 1vw);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: max(6px, 0.5vw);
    z-index: 1;
}

/* Image à droite qui déborde légèrement */
.card-img {
    width: calc(30% + 10px);
    overflow: hidden;
    margin-left: -10px;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-top-right-radius: max(8px, 0.6vw);
    border-bottom-right-radius: max(8px, 0.6vw);
}

/* Typographie */
.news-card span {
    font-size: max(0.7rem, 0.8vw);
    opacity: 0.7;
}

.news-card h3 {
    font-size: max(15px, 1.1vw);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.news-card p {
    font-size: max(13px, 1vw);
    line-height: 1.5;
    opacity: 0.85;
    margin: 0;
    flex-grow: 1;
}

/* Meta footer (auteur + temps) */
.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: max(0.75rem, 0.8vw);
    padding-top: max(8px, 0.6vw);
}

.author {
    display: flex;
    align-items: center;
    gap: max(5px, 0.4vw);
}

.author svg {
    width: max(14px, 1vw);
    height: max(14px, 1vw);
    flex-shrink: 0;
}

.time {
    opacity: 0.7;
}

/* CTA Section */
.blog-footer {
    text-align: center;
    margin-top: max(40px, 4vw);
    position: relative;
    z-index: 2;
}

.btn-explore {
    padding: max(14px, 1.2vw) max(36px, 3vw);
    font-size: max(1rem, 1.1vw);
    font-weight: 500;
    color: var(--text-dark);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-explore:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);*/
    color: var(--text-dark);
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .team-section {
        padding-top: max(3.5rem, 6vw);
    }

    .about-section {
        padding-bottom: max(3.5rem, 6vw);
    }

    .team-header h2,
    .about-title {
        font-size: max(32px, 5vw);
    }

    .team-header p,
    .about-description {
        font-size: max(17px, 2vw);
        padding-top: max(1.5rem, 3vw);
    }

    .team-section::after {
        height: max(700px, 55vw);
    }

    .news {
        margin-top: max(-350px, calc(-550px + 6rem));
    }

    .news-card {
        width: max(400px, 35vw);
    }

    .card-content {
        padding: max(0.75rem, 1.2vw);
    }

    .news-card h3 {
        font-size: max(14px, 1.3vw);
    }

    .news-card p {
        font-size: max(12px, 1.1vw);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .team-section {
        padding-top: 3rem;
    }

    .about-section {
        padding-bottom: 3rem;
    }

    .team-header h2,
    .about-title {
        font-size: 32px;
    }

    .team-header p,
    .about-description {
        font-size: 16px;
        padding-top: 1.5rem;
    }

    .team-section::after {
        height: 600px;
    }

    .news {
        margin-top: -300px;
        padding-bottom: 3rem;
    }

    .blog-section {
        padding: 40px 0 60px;
    }

    .blog-section h2 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .blog-header {
        margin-bottom: 30px;
    }

    .blog-scroll-container {
        padding: 15px 0 30px 0;
    }

    .cards-wrapper {
        gap: 16px;
        padding: 0 15px;
    }

    .news-card {
        width: 280px;
        flex-direction: column;
        height: auto;
    }

    .card-content {
        width: 100%;
        padding: 1rem;
        gap: 8px;
        border-radius: 0;
    }

    .card-img {
        width: 100%;
        height: 100%;
        margin-left: 0;
    }

    .card-img img {
        border-radius: 8px 8px 0 0;
    }

    .news-card span {
        font-size: 0.7rem;
    }

    .news-card h3 {
        font-size: 15px;
    }

    .news-card p {
        font-size: 13px;
    }

    .card-footer-meta {
        font-size: 0.75rem;
        padding-top: 8px;
    }

    .author svg {
        width: 14px;
        height: 14px;
    }

    .blog-footer {
        margin-top: 30px;
    }

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

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {

    .team-header h2,
    .about-title {
        font-size: 28px;
    }

    .team-header p,
    .about-description {
        font-size: 15px;
    }

    .news-card {
        width: 260px;
    }

    .card-img {
        height: 100%;
    }

    .news-card h3 {
        font-size: 14px;
    }

    .news-card p {
        font-size: 12px;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .team-section {
        padding-top: max(8rem, 6vw);
    }

    .about-section {
        padding-bottom: max(8rem, 6vw);
    }

    .team-header h2,
    .about-title {
        font-size: max(70px, 4vw);
    }

    .team-header p,
    .about-description {
        font-size: max(22px, 1.3vw);
        padding-top: max(4rem, 3vw);
    }

    .team-section::after {
        height: max(1300px, 55vw);
    }

    .news-card {
        width: max(500px, 28vw);
    }

    .card-content {
        padding: max(1rem, 1vw);
        border-radius: max(16px, 1vw);
    }

    .news-card h3 {
        font-size: max(16px, 1vw);
    }

    .news-card p {
        font-size: max(14px, 0.9vw);
    }

    .card-footer-meta {
        font-size: max(0.8rem, 0.8vw);
    }

    .author svg {
        width: max(16px, 0.9vw);
        height: max(16px, 0.9vw);
    }

    .btn-explore {
        padding: max(16px, 1.2vw) max(40px, 3vw);
        font-size: max(1.1rem, 1vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {

    .team-header h2,
    .about-title {
        font-size: max(80px, 3.8vw);
    }

    .team-header p,
    .about-description {
        font-size: max(24px, 1.2vw);
    }

    .news-card {
        width: max(550px, 26vw);
    }

    .news-card h3 {
        font-size: max(17px, 0.9vw);
    }

    .news-card p {
        font-size: max(15px, 0.85vw);
    }
}

/* ====================================
   Protection contre le zoom
   ==================================== */
@media (min-resolution: 1.5dppx) {

    .team-header h2,
    .about-title {
        font-size: max(34px, 3.7vw);
    }

    .news-card {
        width: max(380px, 31vw);
    }
}


/** end team + blog responsive**/




















/*** presta correct responsive ***/

.services-section .card-presta-1 h2 {
    font-size: clamp(18px, 2.2vh, 2.2rem);
    color: #DBCFC3;
    font-weight: 400;
    margin-bottom: 6vh;
}

.services-section .card-presta-2 h2 {
    font-size: clamp(18px, 2.2vh, 2.2rem);
    color: #211E1E;
    font-weight: 400;
    margin-bottom: 6vh;

}

.container {
    padding-left: 6vw;
    padding-right: 6vw;
    width: 100%;
    max-width: 100%;
}

.nav-pills .nav-link {
    font-size: max(24px, 3vmin);
    line-height: 100%;
    padding: 0 0 10px 0;

}

@media screen and (min-width:1600px) {
    .nav-pills .nav-link {
        font-size: max(44px, 4vmin) !important;
    }

    .tab-content {
        font-size: max(26px, 2.7vmin) !important;
    }
}


@media screen and (max-width:1199px) {
    .nav-pills .nav-link {
        font-size: max(20px, 3vmin);
    }
}

.tab-content {
    padding: 0;
    /* color: #fff; */
    font-size: max(16px, 2.7vmin);
    line-height: 120%;
}

.nav-pills small {
    font-size: 2.6vmin;
}


@media (max-height:900px) {
    .nav-pills .nav-link {
        font-size: max(18px, 3vmin);
    }

    .services-section .card-presta-1 h2 {
        font-size: clamp(18px, 2vh, 24px);
        color: #DBCFC3;
        font-weight: 400;
        margin-bottom: 6vh;
    }

    .services-section .card-presta-2 h2 {
        font-size: clamp(18px, 2vh, 24px);
        color: #211E1E;
        font-weight: 400;
        margin-bottom: 6vh;

    }


    .card-presta-1 .nav-pills .nav-link:hover,
    .card-presta-1 .nav-pills .nav-link.active {
        color: #fff;
        background-color: transparent !important;
        text-shadow:
            0.5px 0 0 currentColor,
            -0.5px 0 0 currentColor;


    }


    .card-presta-2 .nav-pills .nav-link:hover,
    .card-presta-2 .nav-pills .nav-link.active {
        color: #211E1E;
        background-color: transparent !important;
        transition: transform 0.4s ease;
        text-shadow:
            0.5px 0 0 currentColor,
            -0.5px 0 0 currentColor;


    }

    .tab-content {
        font-size: clamp(14px, 2vh);
    }



}








[data-process-figure-container] {
    container-type: size;
    height: max(10rem, 100%)
}

[data-process-card] {
    padding-top: 0;
    padding-bottom: 3vmax
}

@media (max-aspect-ratio: 2.2) and (min-height: 700px) and (min-width:400px) {
    [data-process-card] {
        --card-height: 70vh;
        --top: calc(var(--header-height) + 5vmax);
        position: sticky;
        top: var(--top);
        padding-top: var(--padding-top);
        padding-bottom: calc(100vh - (var(--card-height) + var(--padding-top) + var(--top)))
    }

    [data-card-diagram-root-container] {
        height: auto
    }

    [data-process-card-content] {
        height: var(--card-height)
    }

    [data-process-figure-container] {
        height: 100%
    }
}

@media screen and (max-aspect-ratio: 2.2) and (min-height: 400px) and (max-width: 768px) {
    [data-process-card] {
        --card-height: 90vh
    }
}

@media screen and (min-width: 768px) and (max-aspect-ratio: 1) {
    [data-process-card] {
        position: static !important;
        top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 3vmax !important
    }

    [data-process-card-content] {
        height: auto !important
    }
}



/*** mini card ***/




/* Mini Cards Section */
.mini-projects {
    padding-bottom: max(8rem, 15vh);
    margin-top: max(-4rem, -8vh);
}

.mini-card.mini-card-cta {
    background-color: #d14a18;
    color: #ffffff !important;
    flex-direction: row !important;
    padding: max(0.75rem, 0.8vw) max(0.75rem, 0.8vw) max(0.5rem, 0.5vw);
    border: none;
}

.mini-card.mini-card-cta::before {
    display: none;
}



/* ====================================
   DESKTOP (≥ 1200px) - Grille 5 colonnes
   ==================================== */
@media (min-width: 1200px) {

    /* Grid avec 5 colonnes et décalage */
    .mini-cards-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: max(0.75rem, 1vw);
        margin: 0 auto;
        width: 90%;
        transform: translateX(4.3vw);
    }

    /* Décalage de la première ligne vers la gauche */
    .mini-card:nth-child(-n+5) {
        transform: translateX(-50%);
    }

    /* Effet hover sur les cartes décalées */
    /* .mini-card:nth-child(-n+5):hover {
        transform: translateX(-50%) translateY(-4px) translateZ(0);
    }*/
}

/* Carte de base (tous écrans) */
.mini-card {
    position: relative;
    background: #fff;
    border-radius: max(12px, 1vw);
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
    cursor: pointer;
    transform: translateZ(0);
    height: max(90px, 6vw);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/*.mini-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}*/

/* Image en arrière-plan */
.mini-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.mini-card:hover img {
    transform: scale(1.1);
}

/* Overlay gradient horizontal de gauche à droite */
.mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left,
            #60483e00 0%,
            #60483E 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.mini-card:hover::before {
    opacity: 0.95;
}

/* Titre par-dessus l'image */
.mini-card-title {
    position: relative;
    z-index: 3;
    padding: max(0.5rem, 0.8vw) max(0.5rem, 0.8vw) max(0.3rem, 0.5vw);
    font-size: max(14px, 1.1vw);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mini-card:hover .mini-card-title {
    color: #ffffff;
    /*transform: translateY(-2px);*/
}



/* ====================================
   TABLETTE/MOBILE (< 1200px) - Scroll horizontal sur 2 LIGNES
   ==================================== */
@media (max-width: 1199px) {
    .mini-projects {
        padding-bottom: max(4rem, 8vh);
    }

    /* Container avec scroll horizontal */
    .mini-cards-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE et Edge */
        padding: 20px 0 40px 0;
        cursor: grab;
        position: relative;
        z-index: 2;

    }

    .mini-cards-container:active {
        cursor: grabbing;
    }

    /* Masquer la scrollbar pour Chrome, Safari et Opera */
    .mini-cards-container::-webkit-scrollbar {
        display: none;
    }

    /* Grid devient grille 2 lignes en scroll horizontal */
    .mini-cards-grid {
        display: grid;
        grid-template-columns: repeat(5, 280px);
        /* 5 colonnes de 280px */
        grid-template-rows: repeat(2, auto);
        /* 2 lignes */
        gap: 15px 20px;
        /* gap vertical / gap horizontal */
        padding: 0 20px;
        width: max-content;
        grid-auto-flow: column;
        /* Remplit par colonne */
        transform: translateX(140px);

    }

    /* Cartes de base */
    .mini-card {
        width: 280px;
        height: 90px;
        transform: translateX(0);
    }

    /* GARDER le décalage sur la première ligne (cartes impaires = ligne 1) */
    .mini-card:nth-child(odd) {
        transform: translateX(-50%);
    }

    /* Hover sans décalage pour la ligne 2 */
    .mini-card:nth-child(even):hover {
        transform: translateY(-4px) translateZ(0);
    }

    /* Hover avec décalage pour la ligne 1 */
    /* .mini-card:nth-child(odd):hover {
        transform: translateX(-50%) translateY(-4px) translateZ(0);
    }*/

    /* Empêcher la sélection pendant le drag */
    .mini-cards-container * {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    .mini-card-title {
        font-size: max(14px, 1.5vw);
    }


}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .mini-projects {
        padding-bottom: 3rem;
        margin-top: 2rem;
    }

    .mini-cards-container {
        padding: 20px 0 30px 0;
    }

    .mini-cards-grid {
        grid-template-columns: repeat(5, 240px);
        /* 5 colonnes de 240px */
        gap: 12px 15px;
        padding: 0 1rem;
    }

    .mini-card {
        width: 240px;
        height: 90px;
        border-radius: 12px;
    }

    .mini-card-title {
        font-size: 14px;
        padding: 0.6rem 0.6rem 0.4rem;
    }


}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {
    .mini-cards-grid {
        grid-template-columns: repeat(5, 220px);
        /* 5 colonnes de 220px */
        gap: 10px 12px;
    }

    .mini-card {
        width: 220px;
        height: 90px;
    }

    .mini-card-title {
        font-size: 13px;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .mini-card {
        height: max(120px, 5vw);
    }

    .mini-card-title {
        font-size: max(16px, 1.1vw);
        padding: max(0.75rem, 0.8vw) max(0.75rem, 0.8vw) max(0.5rem, 0.5vw);
    }

}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .mini-card {
        height: max(120px, 5vw);
    }

    .mini-card-title {
        font-size: max(18px, 1vw);
    }

}

/* Désactiver le hover sur mobile/tablette */
@media (max-width: 1199px) {
    .mini-card:hover img {
        transform: scale(1);
    }

    .mini-card:hover::before {
        opacity: 1;
    }

    .mini-card:hover .mini-card-title {
        transform: translateY(0);
    }


}





/**** team gallery ***/


/* ====================================
   TEAM GALLERY
   ==================================== */

.team-gallery {
    padding: max(4rem, 6vw) 0;
    overflow: visible;
    /* Permet le débordement */
    position: relative;
    background-color: #DBCFC3;
}

.team-gallery .container {
    display: flex;
    gap: max(1.5rem, 2vw);
    align-items: center;
    flex-wrap: nowrap;
    /* Commence hors écran à gauche */
    transform: translateX(-300%);
    max-width: none;
    width: auto;
    padding-left: 0;
}






/* Wrapper des images */
.team-picture-size-1,
.team-picture-size-2 {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wrapper-img {
    border-radius: max(16px, 1.2vw);
    overflow: hidden;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;*/

    /* Optimisations GPU */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.wrapper-img:hover img {
    transform: translateY(-8px);
    /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);*/
}

.wrapper-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.wrapper-img:hover img {
    transform: scale(1.05);
}

/* Size 1 - Format large */
.team-picture-size-1 {
    width: max(600px, 40vw);
}

.team-picture-size-1 .wrapper-img {
    aspect-ratio: 798 / 583;
}

/* Size 2 - Formats variés */
.team-picture-size-2 {
    width: max(350px, 25vw);
}

.team-picture-size-2:nth-of-type(2) .wrapper-img {
    aspect-ratio: 600 / 375;
    /* Format paysage */
}

.team-picture-size-2:nth-of-type(3) .wrapper-img {
    aspect-ratio: 565 / 600;
    /* Format portrait */
}

.team-picture-size-2:nth-of-type(4) .wrapper-img {
    aspect-ratio: 280 / 350;
    /* Format portrait étroit */
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .team-gallery .container {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
        /* transform: none; /* Pas de débordement sur tablette */
        max-width: 1320px;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .team-picture-size-1 {
        width: max(500px, 60vw);
    }

    .team-picture-size-2 {
        width: max(300px, 35vw);
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .team-gallery {
        padding: 3rem 0;
        overflow: hidden;
    }

    .team-gallery .container {
        flex-direction: row;
        gap: 1.5rem;
        transform: none;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .team-picture-size-1,
    .team-picture-size-2 {
        width: 100%;
        max-width: 500px;
    }

    .wrapper-img {
        border-radius: 16px;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .team-gallery .container {
        transform: translateX(-300%);
    }

    .team-picture-size-1 {
        width: max(798px, 38vw);
    }

    .team-picture-size-2 {
        width: max(450px, 23vw);
    }

    .wrapper-img {
        border-radius: max(20px, 1.1vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .team-gallery .container {
        transform: translateX(-300%);
    }

    .team-picture-size-1 {
        width: max(900px, 36vw);
    }

    .team-picture-size-2 {
        width: max(500px, 21vw);
    }
}

/* Optimisations Safari */
@supports (-webkit-touch-callout: none) {
    .wrapper-img {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* ====================================
   TEAM GALLERY
   ==================================== */

.team-gallery {
    padding: max(4rem, 6vw) 0;
    overflow: hidden;
    position: relative;
}

.team-gallery .container {
    display: flex;
    gap: max(1.5rem, 2vw);
    align-items: center;
    flex-wrap: nowrap;
    /* IMPORTANT : jamais de wrap */
    max-width: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Desktop : Parallax */
@media (min-width: 1200px) {
    .team-gallery .container {
        will-change: transform;
        transition: none;
    }
}

/* Mobile/Tablette : Drag scroll */
@media (max-width: 1199px) {
    .team-gallery {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        padding: max(3rem, 5vw) 0;
    }

    .team-gallery::-webkit-scrollbar {
        display: none;
    }

    .team-gallery:active {
        cursor: grabbing;
    }

    .team-gallery .container {
        padding: 0 max(1rem, 3vw);
        gap: 1.5rem;
        transform: none !important;
        cursor: inherit;
        flex-wrap: nowrap !important;
        /* Force le horizontal */
        width: max-content;
        /* Force la largeur au contenu */
    }
}

/* Wrapper des images */
.team-picture-size-1,
.team-picture-size-2 {
    flex-shrink: 0;
    /* IMPORTANT : empêche le rétrécissement */
    transition: transform 0.3s ease;
}

.wrapper-img {
    border-radius: max(16px, 1.2vw);
    overflow: hidden;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.wrapper-img:hover img {
    transform: translateY(-8px);
    /*box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);*/
}

.wrapper-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none;
    /* Empêche les événements sur l'image */
}

.wrapper-img:hover img {
    transform: scale(1.05);
}

/* Size 1 - Format large */
.team-picture-size-1 {
    width: max(600px, 40vw);
    min-width: max(600px, 40vw);
    /* Force la largeur minimale */
}

.team-picture-size-1 .wrapper-img {
    aspect-ratio: 798 / 583;
}

/* Size 2 - Formats variés */
.team-picture-size-2 {
    width: max(350px, 25vw);
    min-width: max(350px, 25vw);
    /* Force la largeur minimale */
}

.team-picture-size-2:nth-of-type(2) .wrapper-img {
    aspect-ratio: 600 / 375;
}

.team-picture-size-2:nth-of-type(3) .wrapper-img {
    aspect-ratio: 565 / 600;
}

.team-picture-size-2:nth-of-type(4) .wrapper-img {
    aspect-ratio: 280 / 350;
}

/* ====================================
   TABLETTE (768px - 1199px)
   ==================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    .team-picture-size-1 {
        width: 55vw;
        min-width: 55vw;
        max-width: 600px;
    }

    .team-picture-size-2 {
        width: 40vw;
        min-width: 40vw;
        max-width: 450px;
    }

    .wrapper-img {
        border-radius: 16px;
    }
}

/* ====================================
   MOBILE (< 768px)
   ==================================== */
@media (max-width: 767px) {
    .team-gallery {
        padding: 3rem 0;
    }

    .team-gallery .container {
        gap: 1rem;
        padding: 0 1rem;
    }

    .team-picture-size-1 {
        width: 80vw;
        min-width: 80vw;
        max-width: none;
    }

    .team-picture-size-2 {
        width: 65vw;
        min-width: 65vw;
        max-width: none;
    }

    .wrapper-img {
        border-radius: 12px;
    }
}

/* ====================================
   TRÈS PETIT MOBILE (< 480px)
   ==================================== */
@media (max-width: 479px) {
    .team-picture-size-1 {
        width: 85vw;
        min-width: 85vw;
    }

    .team-picture-size-2 {
        width: 70vw;
        min-width: 70vw;
    }
}

/* ====================================
   TRÈS GRAND ÉCRAN (> 1920px)
   ==================================== */
@media (min-width: 1920px) {
    .team-picture-size-1 {
        width: max(798px, 38vw);
        min-width: max(798px, 38vw);
    }

    .team-picture-size-2 {
        width: max(450px, 23vw);
        min-width: max(450px, 23vw);
    }

    .wrapper-img {
        border-radius: max(20px, 1.1vw);
    }
}

/* ====================================
   ULTRA GRAND ÉCRAN (> 2560px)
   ==================================== */
@media (min-width: 2560px) {
    .team-picture-size-1 {
        width: max(900px, 36vw);
        min-width: max(900px, 36vw);
    }

    .team-picture-size-2 {
        width: max(500px, 21vw);
        min-width: max(500px, 21vw);
    }
}

/* Optimisations Safari */
@supports (-webkit-touch-callout: none) {
    .wrapper-img {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Désactiver le hover sur mobile/tablette */
@media (max-width: 1199px) {
    .wrapper-img:hover img {
        transform: none;
        /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
    }

    .wrapper-img:hover img {
        transform: none;
    }
}

/* Empêcher la sélection de texte pendant le drag */
@media (max-width: 1199px) {
    .team-gallery * {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
}




/* ====================================
   CONTACT MENU SLIDE-IN
   ==================================== */

/* Container principal - invisible par défaut */
.contact-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    overflow: hidden;
}

.contact-menu-wrapper::-webkit-scrollbar {
    display: none;
}

/* État ouvert */
.contact-menu-wrapper.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Overlay semi-transparent */
.contact-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    touch-action: none;
    overscroll-behavior: contain;

}

.contact-menu-wrapper.is-open .contact-menu-overlay {
    opacity: 1;
}

/* Menu slide-in depuis la droite */
.contact-menu {
    position: absolute;
    height: 100%;
    min-height: 100%;
        min-height: 100dvh;

    width: 40vw;
    z-index: 10;
    right: 0;
    top: 0;
    background: #f4efea;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}


.contact-menu-content {
    padding-bottom: max(3rem, env(safe-area-inset-bottom, 2rem) + 2rem);
}
.contact-menu-wrapper.is-open .contact-menu {
    transform: translateX(0);
}

/* Responsive - 100% sur mobile */
@media (max-width: 1199px) {
    .contact-menu {
        width: 75vw;
    }
}

@media (max-width: 767px) {
    .contact-menu {
        width: 100vw;
    }
}

/* Contenu du menu */
.contact-menu-content {
    width: 100%;
    height: 100%;
    padding: max(2rem, 4vw);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-menu-content::-webkit-scrollbar {
    display: none;
}

/* Header du menu */
.contact-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: max(2rem, 3vw);*/
    padding-bottom: max(1rem, 2vw);
    gap: 20px;
}

.contact-menu-title {
    font-size: max(1.4rem, 2vw);
    font-weight: 400;
    margin-bottom: 0;
    max-width: 80%;
}


.contact-menu-title .bullet {
    display: inline-block;
    transform: scale(1.25);
    margin-right: 0.5rem;
}
.contact-menu-content .phone-contact{
        font-size: clamp(1.2rem, 3vw, 2rem);
        font-weight: 600;

}

.contact-menu-content .mail-contact{
        font-size: clamp(1.2rem, 3vw, 2rem);
        font-weight: 600;
        margin-bottom: max(2rem, 3vw);

}




/* Bouton de fermeture */
.contact-menu-close {
    position: relative;
    width: max(2rem, 3vw);
    height: max(2rem, 3vw);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.contact-menu-close:hover {
    transform: rotate(90deg);
}

.contact-menu-close svg {
    width: 100%;
    height: 100%;
}

/* Introduction */
.contact-intro {
    margin-bottom: max(2rem, 3vw);
    padding-bottom: max(1.5rem, 2vw);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.contact-intro h2 {
    font-size: max(2rem, 3vw);
    line-height: 1.1;
    margin: 0;
    font-weight: 400;
}

/* Formulaire Contact Form 7 */
.cf7-kuroko-form input[type="text"],
.cf7-kuroko-form input[type="email"],
.cf7-kuroko-form textarea {
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.cf7-kuroko-form input::placeholder,
.cf7-kuroko-form textarea::placeholder {
    color: #1a1a1a;
    opacity: 0.7;
}

.cf7-kuroko-form input:focus,
.cf7-kuroko-form textarea:focus {
    box-shadow: 0 0 0 2px #E1551E;
}

.cf7-kuroko-form textarea {
    border-radius: 1.5rem;
    min-height: 180px;
    resize: vertical;
}

/* 2 colonnes Nom / Email */
.form-row-2cols {
    display: flex;
    gap: 1rem;
}

.form-row-2cols .form-col {
    flex: 1;
}

.form-row {
    margin-top: 1rem;
}

/* Checkbox consent */
.form-consent {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #555;
}

.form-consent .wpcf7-list-item {
    margin: 0;
}

.form-consent input[type="checkbox"] {
    accent-color: #E1551E;
    margin-right: 0.5rem;
}

/* Liens légaux */
.form-links {
    font-size: 0.85rem;
    margin-top: 1rem;
}

.form-links a {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Bouton submit */
.form-submit {
    text-align: right;
    margin-top: 2rem;
}

.cf7-kuroko-form input[type="submit"] {
    background-color: #E1551E;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cf7-kuroko-form input[type="submit"]:hover {
    background-color: #c44a18;
}

/* Responsive */
@media (max-width: 576px) {
    .form-row-2cols {
        flex-direction: column;
    }
}


/* Bouton d'ouverture du menu (à placer où tu veux dans ton site) */
.contact-menu-trigger {
    position: relative;
    /*padding: max(1rem, 1.15vw) max(1.5rem, 2vw);*/
    padding: 16px 24px;
    background: #E1551E;
    color: #fff;
    border: none;
    border-radius: 999px;
    /*font-size: max(0.9rem, 1.2vw);*/
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-menu-trigger:hover {
    background: #c74516;
    /*transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 85, 30, 0.4);*/
}

/* Animation du spinner de chargement CF7 */
.contact-menu-form .wpcf7-spinner {
    margin-left: 1rem;
}

/* États disabled pendant l'envoi */
.contact-menu-form .wpcf7-form.submitting input[type="submit"] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive mobile */
@media (max-width: 479px) {
    .contact-menu-content {
        padding: max(1.5rem, 4vw);
    }

    .contact-intro h2 {
        font-size: 1.5rem;
    }

    .contact-menu-form input[type="text"],
    .contact-menu-form input[type="email"],
    .contact-menu-form textarea {
        font-size: 1rem;
    }

    .contact-menu-form input[type="submit"] {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* Forcer l'état croix sur le bouton close */
.k-burger--close {
    display: block;
}

.k-burger--close span:nth-child(1) {
    transform: translateX(-50%) translateY(7px) rotate(45deg);
}

.k-burger--close span:nth-child(2) {
    opacity: 0;
}

.k-burger--close span:nth-child(3) {
    transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}





/*** footer **/
/* =========================
   FOOTER – BASE DESKTOP
   ========================= */
.main-footer {
    background-color: #070300;
    color: #fff;
    padding-top: calc(clamp(3rem, 6vh, 4rem) + max(1rem, 1.5vw) + 78px);
    padding-bottom: clamp(3rem, 6vh, 4rem);
    position: relative;
    border-top-right-radius: max(12px, 1vw);
    border-top-left-radius: max(12px, 1vw);
    margin-top: max(-24px, -2vw);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Décor */
.main-footer::after {
    content: '';
    position: absolute;
    inset: auto 0 0 auto;
    width: clamp(300px, 60%, 100vh);
    height: 100%;
    background-image: url(assets/img/circle_kuroko.png);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    pointer-events: none;
}

.logo-footer {
    max-width: clamp(240px, 30vw, 450px);
}

/* =========================
   TYPOGRAPHIE FLUIDE
   ========================= */
.main-footer address,
.main-footer .mail-footer {
    padding-top: clamp(2rem, 5vh, 3rem);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-style: normal;
    line-height: 1.2;
}

.phone-footer {
    font-size: clamp(2rem, 6vw, 5rem);
    padding-bottom: clamp(1.2rem, 3vh, 2rem);
    font-weight: 600;
}

.main-footer p {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.social-cta-footer span {
    font-size: clamp(0.9rem, 1.2vw, 1.25rem);
}

/* =========================
   CTA & BOUTONS test
   ========================= */
.list-cta {
    display: flex;
    gap: 1rem;
    padding: clamp(1.5rem, 3vh, 3.5rem) 0;
}

.social-cta-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    /*background: rgba(255, 255, 255, 0.5);*/
    /*box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
    backdrop-filter: blur(10.2px);
    -webkit-backdrop-filter: blur(10.2px);
    border: 1px solid rgba(255, 255, 255, 0.39);
    border-radius: 999px;
    /*padding: clamp(0.75rem, 1.2vw, 1rem)
           clamp(1.5rem, 3vw, 1.25rem);*/
}

.social-cta-footer {
    padding: var(--space-sm);
    /* flex: 1;*/
    gap: var(--space-xs);
    text-decoration: none;
    color: inherit;
    border-radius: 999px;
    transition: background-color 0.2s;
}

@media (max-width: 1700px) and (min-width:1400px) {
    .card-contact-resume .social-cta-footer {
        padding: 15px 10px;
    }
     .card-contact-resume .social-cta-footer svg {
        height: 20px;
        width: 20px;
    }

    
}

.cta-newsletter {
    background-color: #e6531d;
    border: none;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    transition: background-color 0.3s ease,
        transform 0.3s ease;
    margin: clamp(4rem, 4vh, 6rem) 0;
}

.cta-newsletter:hover {
    background-color: #d14a18;
}

/* =========================
   TABLETTE ≤ 991px
   ========================= */
@media (max-width: 991px) {

    .main-footer {
        text-align: center;
        padding-inline: 1.5rem;
    }

    .list-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    /*.social-cta-footer {
    margin-inline: auto;
  }*/

    .main-footer::after {
        width: 60%;
    }
}

/* =========================
   MOBILE ≤ 767px
   ========================= */
@media (max-width: 767px) {

    .main-footer {
        padding: 3rem 1rem;
        padding-top: 4rem;
    }

    .phone-footer {
        font-size: 2rem;
    }

    .main-footer address{
        font-size: 1.4rem;
        padding-top: 3rem;
    }
    .main-footer .mail-footer {
        font-size: 1.4rem;
        padding-top: 0;
    }


    .social-cta-footer {
        padding: 0.75rem 1.25rem;
    }

    .main-footer::after {
        display: none;
    }
}

/* =========================
   ZOOM / ACCESSIBILITÉ
   ========================= */
@media (min-resolution: 1.5dppx) and (min-width: 1200px) {

    /*.main-footer {
    padding: 4rem 2rem;
  }*/

    .phone-footer {
        font-size: 3rem;
    }

    .main-footer::after {
        width: 60%;
    }
}

/* =========================
   RÉDUCTION DES ANIMATIONS
   ========================= */
@media (prefers-reduced-motion: reduce) {
    .cta-newsletter {
        transition: none;
    }
}




/*** adjustment ***/


.like-project {
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
    z-index: 10;
    position: absolute;
    right: max(0.75rem, 1vw);
    display: flex;
    align-items: center;
}

.like-project:hover {
    transform: scale(1.1);
}

.like-project.liked svg path {
    fill: #E1551E;
}

.like-project:active {
    transform: scale(0.95);
}

.like-project .number {
    margin-left: 0.5rem;
    font-weight: 600;
    color: #E1551E;
}

/* Animation fade pour les tooltips */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Optimisation des performances pour les animations */
.like-project {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

.like-project:active {
    transform: scale(0.95);
}

/* Effet de survol léger */
.like-project:hover {
    transform: scale(1.05);
}

.single-projet .hero-section .like-project {
    position: relative;
    right: 0;
    min-width: auto;

}


/** adjustement contact ***/

.contact-menu-header .k-burger {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.contact-menu-header .k-burger span {
  position: absolute;
  left: 50%;
  width: clamp(1.5rem, 2vw, 55px);
  height: 2px;
  background: #000;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.contact-menu-header .k-burger span:nth-child(1) { top: 14px; }
.contact-menu-header .k-burger span:nth-child(2) { top: 21px; }
.contact-menu-header .k-burger span:nth-child(3) { top: 28px; }