/*==================================================
                    GENERAL
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    overflow-x:hidden;
}

body{
    font-family:"Satoshi", sans-serif;
    background:#FFFFFF;
}


/*==================================================
                    HEADER
==================================================*/

.header{

    position:sticky;

    top:0;

    z-index:1000;

    width:100%;

    height:85px;

    padding:0 2%;

    background:#FFFFFF;

    display:flex;

    align-items:center;

    justify-content:space-between;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

}


/*==================================================
                    LOGO
==================================================*/

.logo{

    display:flex;

    align-items:center;

    flex-shrink:0;

    text-decoration:none;

}


.logo img{

    height:60px;

    width:auto;

    display:block;

}


/*==================================================
                    NAVBAR
==================================================*/

.navbar{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:40px;

}


/*==================================================
                    LIENS
==================================================*/

.navbar a{

    position:relative;

    text-decoration:none;

    color:#114051;

    font-size:17px;

    font-weight:600;

    transition:.3s;

    white-space:nowrap;

}


.navbar a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:3px;

    background:#5BBC82;

    transition:.35s;

}


.navbar a:hover::after{

    width:100%;

}


.navbar a:hover{

    color:#5BBC82;

}


/*==================================================
                BOUTON CONTACT
==================================================*/

.navbar .btn-contact{

    height:45px;

    padding:0 28px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    background:#5BBC82;

    color:#FFFFFF;

    border-radius:50px;

    transition:.3s ease;

}


.navbar .btn-contact::after{

    display:none;

}


.navbar .btn-contact:hover{

    background:#114051;

    color:#FFFFFF;

    transform:translateY(-2px);

}


/*==================================================
                HAMBURGER
==================================================*/

.menu-toggle{

    display:none;

    width:45px;

    height:45px;

    border:none;

    background:transparent;

    cursor:pointer;

    padding:7px;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:6px;

}


.menu-toggle span{

    display:block;

    width:28px;

    height:2px;

    background:#114051;

    border-radius:50px;

    transition:
        transform .3s ease,
        opacity .3s ease;

}


/*==================================================
            HAMBURGER ACTIF
==================================================*/

.menu-toggle.active span:nth-child(1){

    transform:
        translateY(8px)
        rotate(45deg);

}


.menu-toggle.active span:nth-child(2){

    opacity:0;

}


.menu-toggle.active span:nth-child(3){

    transform:
        translateY(-8px)
        rotate(-45deg);

}




/*==================================================
                    DROPDOWN SERVICES
==================================================*/

.dropdown{

    position:relative;

}


/* Bouton Services */

.drop-btn{

    display:flex;

    align-items:center;

    gap:8px;

}


/* Petite flèche */

.drop-btn i{

    font-size:11px;

    transition:transform .3s ease;

}


/* Rotation flèche desktop */

.dropdown:hover .drop-btn i{

    transform:rotate(180deg);

}


/*==================================================
                MENU DROPDOWN
==================================================*/

.dropdown-menu{

    position:absolute;

    top:45px;

    right:0;

    width:560px;

    padding:15px;

    background:#FFFFFF;

    border:1px solid #E6EEF0;

    border-radius:18px;

    box-shadow:0 15px 40px rgba(17,64,81,.15);

    display:grid;

    grid-template-columns:repeat(2, minmax(0,1fr));

    gap:5px;

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transform:translateY(15px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;

    z-index:2000;

}


/* Affichage */

.dropdown:hover .dropdown-menu{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

    transform:translateY(0);

}


/*==================================================
                LIENS DROPDOWN
==================================================*/

.dropdown-menu a{

    width:100%;

    padding:13px 15px;

    display:flex;

    align-items:center;

    border-radius:10px;

    color:#114051;

    font-size:14px;

    font-weight:500;

    white-space:normal;

    line-height:1.4;

}


/* Enlever la barre verte classique */

.dropdown-menu a::after{

    display:none;

}


.dropdown-menu a:hover{

    background:#F1FAF5;

    color:#5BBC82;

}


/*==================================================
                LAPTOP
==================================================*/

@media(max-width:1200px){

    .header{

        padding:0 3%;

    }


    .navbar{

        gap:28px;

    }


    .navbar a{

        font-size:16px;

    }


    .navbar .btn-contact{

        padding:0 24px;

    }

}


/*==================================================
                TABLETTE
==================================================*/

@media(max-width:992px){

    .header{

        padding:0 4%;

    }


    .logo img{

        height:55px;

    }


    .navbar{

        gap:20px;

    }


    .navbar a{

        font-size:15px;

    }


    .navbar .btn-contact{

        padding:0 20px;

    }

}


/*==================================================
             MOBILE / TABLETTE PETITE
==================================================*/

@media(max-width:768px){

    /*
    HEADER
    Logo gauche
    Hamburger droite
    */

    .header{

        height:75px;

        padding:0 20px;

        display:flex;

        flex-direction:row;

        align-items:center;

        justify-content:space-between;

    }


    /* LOGO */

    .logo{

        order:1;

    }


    .logo img{

        height:50px;

    }


    /* HAMBURGER */

    .menu-toggle{

        display:flex;

        order:3;

        flex-shrink:0;

    }


    /* NAVBAR */

    .navbar{

        position:absolute;

        top:75px;

        left:0;

        width:100%;

        padding:15px 20px 20px;

        background:#FFFFFF;

        display:flex;

        flex-direction:column;

        align-items:stretch;

        gap:5px;

        border-top:1px solid #EDF2F3;

        box-shadow:0 15px 25px rgba(17,64,81,.12);

        opacity:0;

        visibility:hidden;

        pointer-events:none;

        transform:translateY(-15px);

        transition:
            opacity .3s ease,
            transform .3s ease,
            visibility .3s ease;

    }


    /* Navbar ouverte */

    .navbar.active{

        opacity:1;

        visibility:visible;

        pointer-events:auto;

        transform:translateY(0);

    }


    /* LIENS */

    .navbar a{

        width:100%;

        padding:14px 15px;

        border-radius:8px;

        font-size:15px;

        text-align:left;

        white-space:normal;

    }


    .navbar a::after{

        display:none;

    }


    .navbar a:hover{

        background:#F1FAF5;

        color:#5BBC82;

    }


    /* CONTACT */

    .navbar .btn-contact{

        width:100%;

        height:48px;

        margin-top:8px;

        padding:0 20px;

        border-radius:10px;

        color:#FFFFFF;

        background:#5BBC82;

    }


    .navbar .btn-contact:hover{

        background:#114051;

        color:#FFFFFF;

        transform:none;

    }

    .dropdown{

        width:100%;

    }


    /*
    Le bouton Services prend toute la largeur
    comme Accueil / À propos
    */

    .drop-btn{

        width:100%;

        padding:14px 15px;

        display:flex;

        justify-content:space-between;

        align-items:center;

        border-radius:8px;

        font-size:15px;

    }


    .drop-btn:hover{

        background:#F1FAF5;

    }


    /*
    Menu déroulant mobile
    */

    .dropdown-menu{

        position:static;

        width:100%;

        margin-top:5px;

        padding:8px;

        grid-template-columns:1fr;

        gap:3px;

        background:#F7FAF8;

        border:none;

        border-radius:10px;

        box-shadow:none;

        opacity:1;

        visibility:visible;

        pointer-events:auto;

        transform:none;

        display:none;

    }


    /*
    Au survol / toucher du bloc Services
    */

    .dropdown:hover .dropdown-menu{

        display:grid;

        transform:none;

    }


    .dropdown-menu a{

        padding:12px 14px;

        font-size:14px;

        text-align:left;

    }


    /*
    Flèche
    */

    .drop-btn i{

        margin-left:auto;

        font-size:11px;

    }

}


/*==================================================
                    MOBILE
==================================================*/

@media(max-width:576px){

    .header{

        height:70px;

        padding:0 15px;

    }


    .logo img{

        height:45px;

    }


    .menu-toggle{

        width:42px;

        height:42px;

    }


    .menu-toggle span{

        width:25px;

    }


    .navbar{

        top:70px;

        padding:12px 15px 18px;

    }


    .navbar a{

        font-size:14px;

        padding:13px 12px;

    }


    .navbar .btn-contact{

        height:45px;

    }

    .drop-btn{

        padding:13px 12px;

        font-size:14px;

    }


    .dropdown-menu a{

        padding:11px 12px;

        font-size:13px;

    }

}


/*==================================================
                PETIT MOBILE
==================================================*/

@media(max-width:380px){

    .header{

        height:65px;

        padding:0 12px;

    }


    .logo img{

        height:40px;

    }


    .menu-toggle{

        width:40px;

        height:40px;

    }


    .menu-toggle span{

        width:23px;

    }


    .navbar{

        top:65px;

        padding:10px 12px 15px;

    }


    .navbar a{

        font-size:13px;

        padding:12px 10px;

    }


    .navbar .btn-contact{

        height:43px;

        font-size:13px;

    }

}