body,
html {
    background-color: #FFFEF8 !important;
    margin: 0px;
    padding: 0px;
    width: 100%;
    overflow-x: hidden;
}

/* a {
    text-decoration: underline 3px;
    text-underline-offset: 7px;
    color: #002432;
}*/

a {
    text-decoration: none;
    color: #002432;
}

.underline {
    position: relative;
    color: #002432;
    text-decoration: none;
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* équivalent à text-underline-offset */
  width: 100%;
  height: 3px; /* épaisseur garantie */
  background-color: currentColor;
}

/* === Bob simple (monte + léger rebond) === */
@keyframes bob-rise {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
        /* montée */
    }

    60% {
        transform: translateY(-6px);
        /* montée */
    }

    100% {
        transform: translateY(-6px);
        /* montée */
    }
}

/* === Animation sur hover === */
.bob-on-hover {
    display: inline-block;
    transition: transform 0.3s ease;
}

.bob-on-hover:hover {
    animation: bob-rise 0.35s ease-out forwards;
}

/* === Quand on sort du hover → descente smooth === */
.bob-on-hover:not(:hover) {
    transition: transform 0.25s ease;
    transform: translateY(0);
}

.navProjets {
    text-decoration: underline 3px !important;
    text-underline-offset: 4px;
}

.logo {
  width: 105px; 
  height: auto;
  display: block;
}

.menu li {
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    padding-bottom: 3px;
    cursor: pointer;
}

.menu li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: currentColor;
    transform-origin: left;
    transition: width 0.5s ease;
}

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

/* Préloader */
#lottie-container {
    width: 40vw;
    /* 30% de la largeur de la fenêtre */
    max-width: 250px;
    height: auto;
}

body.preloading {
    overflow: hidden;
    height: 100dvh;
    /* <- au lieu de 100vh */
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* <- au lieu de 100% pour être sûr */
    height: 100dvh;
    /* <- au lieu de 100% */
    background-color: #FFFEF8;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease;
}

#preloader.hidden {
    transform: translateY(-100%);
    /* suppression de opacity: 0; */
    pointer-events: none;
}

/* Header */
header {
    padding-right: 10%;
    padding-left: 10%;
    background-color: #FFFEF8;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-bottom: 75px;
}

.picto-mobile {
    display: none !important;
}

#burger {
    display: none;
    /* caché en desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 19px;
    cursor: pointer;
}

#burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #002432;
    border-radius: 3px;
    transition: 0.3s ease;
}

#burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#burger.open span:nth-child(2) {
    opacity: 0;
}

#burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navBarre,
.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 25px;
    color: #002432;
}

.navBarre {
    list-style-type: none;
    padding-top: 20px;
}

#picto {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 25px;
    height: auto;
    gap: 15px
}

/* Container1 */
.container1 {
    background-color: #FFFEF8;
    padding-left: 10%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 125px;
    padding-bottom: 250px;
}

.mobile {
    display: none;
}

.presentation {
    margin-top: -125px;
    margin-bottom: 0px;
}

.p1 {
    font-family: coolvetica, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 22px;
    color: #002432;
    text-wrap: balance;
    margin-top: 3px;
    margin-bottom: 50px;
}

h1 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 100px;
    color: #002432;
    margin-left: -3px;
    margin-top: 0px;
    margin-bottom: 0px;
}

h2 {
    line-height: 1.1em;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 75px;
    margin: 0px;
}

h4 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 30px;
    color: #002432;
    margin: 0px;
    text-transform: uppercase;
    margin-bottom: -12px;
    margin-left: 2px;
}

.mail {
    background-color: #002432;
    border-radius: 100px;
    border: solid 3px #002432;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 8px;
    padding-bottom: 8px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    color: #FFFEF8;
    margin-right: 1em;
    cursor: pointer;
}

.tel {
    background-color: #FFFEF8;
    border-radius: 100px;
    border: solid 3px #002432;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 8px;
    padding-bottom: 8px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    color: #002432;
    margin-right: 1em;
    cursor: pointer;
}

/* Container2 */
.container2 {
    background-color: #FFFEF8;
}

.portfolio-slider {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    width: 439px;
    /* largeur fixe des images */
    height: 447px;
    /* hauteur fixe des images */
    margin-right: 10px !important;
    cursor: grab;
    border-radius: 20px;
    overflow: hidden;
    background-color: #002432;
    /* couleur de fond si image plus petite */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buttonVoirPlus {
    margin-top: 25px;
}

.voirPlus {
    margin-left: 10%;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 25px;
    color: #002432;
}

/* container3*/
.container3 {
    background-color: #FFFEF8;
    padding-right: 10%;
    padding-left: 10%;
    padding-top: 250px;
    padding-bottom: 250px;
    inline-size: 1010px;

}

.services {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 75px;
    color: #002432;
    margin: 0px;

}

.p2 {
    font-family: coolvetica, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 22px;
    color: #002432;
    margin-top: 15px;
    margin-bottom: 33px;
}

.voirPlusServices {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 25px;
    color: #002432;
}

/*container 4 */
.container4 {
    padding-left: 10%;
    padding-right: 10%;
}

.bgBleu {
    background-color: #002432;
    border-radius: 20px;
    color: #FFFEF8;
    padding-right: 100px;
    padding-left: 100px;
    padding-top: 75px;
    padding-bottom: 75px;
    text-align: center;
}

.coffee {
    display: flex;
    justify-content: end;
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: -5px;
}

.sunCoffee {
    padding-right: 50px;
}

.projet {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 75px;
    color: #FFFEF8;
    margin: 0px;
}

.p3 {
    font-family: coolvetica, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 22px;
    color: #FFFEF8;
    text-wrap: balance;
    margin-top: 15px;
    margin-bottom: 33px;
    display: flex;
    justify-content: center;
}

.onEnParle {
    background-color: #FFFEF8;
    border-radius: 100px;
    border: solid 3px #002432;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 8px;
    padding-bottom: 8px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    color: #002432;
    margin-right: 1em;
    cursor: pointer;
}

footer {
    display: flex;
    justify-content: space-between;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 30px;
    margin-bottom: 25px;
}

.mention,
.copyright {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 25px;
    color: #002432;
}

/* === Animations de base === */
.animate-on-scroll,
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible,
.animate-on-load.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-up {
    transform: scale(0.9);
    opacity: 0;
}

.scale-up.visible {
    transform: scale(1);
    opacity: 1;
}

/* Délais pour effet cascade */
.fade-up-delay:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-up-delay:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-up-delay:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-up-delay:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-up-delay:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-up-delay:nth-child(6) {
    transition-delay: 0.6s;
}


@media (max-width: 900px) {

    /* Header */
    #burger {
        display: flex;
        /* On affiche le burger */
    }

    .menu {
        display: flex !important;
        justify-content: space-between !important;
        width: 100%;
        margin: 0px;
        padding: 0px;
    }

    header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo {
        width: 70px;
    }

    /* La navbar passe hors écran au début */
    .navBarre {
        position: absolute;
        top: 125px;
        /* ajuste selon la hauteur de ton logo/burger */
        left: 0;
        width: 100%;
        background: #FFFEF8;
        flex-direction: column;
        gap: 25px;
        padding: 20px 0;
        transform: translateY(-20px);
        /* juste légèrement décalé pour l'effet d'apparition */
        opacity: 0;
        /* invisible au départ */
        transition: transform 0.35s ease, opacity 0.35s ease;
        border-bottom: 3px solid #002432;
        z-index: 50;
        pointer-events: none;
    }

    /* Quand le menu est ouvert */
    .navBarre.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* On cache les pictos desktop */
    #picto {
        display: none;
    }

    .picto-mobile {
        display: block !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding-top: 15px !important;
        height: auto !important;
        gap: 15px !important;
    }

    .picto-mobile.show {}

    /*container1*/
    .container1 {
        flex-direction: column-reverse;
        padding: 0px;
        gap: 0px;
    }

    .container1 img {
        width: 100%;
        margin-bottom: 0px;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: block !important;
    }

    .presentation {
        margin-top: 50px;
        margin-left: 20px !important;
        padding: 0px;

    }

    h1 {
        font-size: 50px;
        margin-right: 20px;
    }

    h2 {
        font-size: 35px !important;
    }

    h4 {
        font-size: 20px;
        padding-bottom: 5px;
        margin-left: 0px;
        margin-right: 20px;
    }

    .p1 {
        margin-right: 20px;
        font-size: 15px;
        margin-top: 0px;
        margin-bottom: 40px;
        width: auto;
        text-wrap: normal !important;
    }

    .mail {
        width: 100%;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .tel {
        width: 100%;
        font-size: 18px;
        margin: 0px;
    }

    .contact {
        margin-right: 20px;
        gap: 10px
    }

    /* container2*/
    .container2 {
        margin-top: 100px;
    }

    .swiper-slide {
        width: 280px;
        /* largeur fixe des images */
        height: 285px;
        /* hauteur fixe des images */
        margin-right: 10px !important;
        cursor: grab;
        border-radius: 20px;
        overflow: hidden;
        background-color: #00202d;
        /* couleur de fond si image plus petite */
    }

    .voirPlus {
        font-size: 16px;
        margin-left: 20px;
    }

    .buttonVoirPlus {
        margin-top: 15px;
    }

    /* container3 */
    .container3 {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 100px;
        inline-size: auto;
    }

    .p2 {
        font-size: 15px;
        margin-top: 5px;
        margin-bottom: 15px;
    }

    .voirPlusServices {
        font-size: 16px;
    }

    .sunCoffee {
        width: 95px;
        padding-right: 15px;
    }

    .container4 {
        padding-left: 0px;
        padding-right: 0px;
    }

    .bgBleu {
        padding: 50px;
        border-radius: 0px;
        margin-bottom: 20px;
    }

    .onEnParle {
        margin: 0px;
        width: 80%;
        font-size: 18px;
    }

    .p3 {
        margin-top: 10px;
        font-size: 15px;
        text-wrap: auto;
    }

    footer {
        margin-top: 10px;
        margin-bottom: 20px;
        margin-left: 20px;
        margin-right: 20px;
        justify-content: center;
        display: flex;
        justify-content: space-between;

    }

    .mention,
    .copyright {
        font-size: 15px;
    }
}