* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}



body {

    justify-content: center;

    align-items: center;

    background: white;

    background-size: cover;

    background-position: center;

    margin: 0;

}



header {

    margin-top: -15px;

    height: 100px;

    position: fixed;

    background: 

#162938;

    top: 0;

    left: 0;

    width: 100%;

    padding: 10px 5px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    z-index: 99;

}



.logo {

    display: flex;

    align-items: center;

    margin-right: auto; 

    margin-left: 20px;

    font-weight: 700;

}



.logo img {

    height: 200px;

    width: auto;

    max-width: 200px;

    object-fit: contain;

}



.logo-text {

    font-size: 2em;

    color: #fff;

    user-select: none;

    font-weight: 700;

}



.tagline {

    font-size: 0.9em;

    color: 

#bdc3c7;

    margin-left: 20px;

    font-weight: 300;

}



.navigation {

    display: flex;

    align-items: center;

}



.navigation a {

    position: relative;

    font-size: 1.1em;

    color: #fff;

    text-decoration: none;

    font-weight: 500;

    margin-left: 30px;

    margin-right: 20px;

    padding: 10px 0;

    transition: color 0.3s ease;

}



.navigation a::after {

    content: '';

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 100%;

    height: 3px;

    background: 

#3498db;

    border-radius: 5px;

    transform-origin: right;

    transform: scaleX(0);

    transition: transform .5s;

}



.navigation a:hover::after {

    transform-origin: left;

    transform: scaleX(1);

}



.navigation a:hover {

    color: 

#3498db;

}



/* Menu déroulant pour Espace Clients */

.dropdown {

    position: relative;

}



.dropdown-content {

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    background: 

#2c3e50;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);

    z-index: 1000;

    border-top: 2px solid 

#3498db;

    border-radius: 0 0 8px 8px;

    min-width: 180px;

}



.dropdown:hover .dropdown-content {

    display: block;

    animation: slideDown 0.3s ease-out;

}



@keyframes slideDown {

    from {

        opacity: 0;

        transform: translateY(-10px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.dropdown-content a {

    display: block;

    padding: 12px 20px;

    color: 

#bdc3c7;

    text-decoration: none;

    font-size: 0.95rem;

    font-weight: 400;

    border-bottom: 1px solid 

#34495e;

    transition: all 0.3s ease;

    margin: 0;

}



.dropdown-content a:last-child {

    border-bottom: none;

}



.dropdown-content a:hover {

    background: 

#3498db;

    color: white;

    padding-left: 25px;

}



.dropdown-content a::after {

    display: none;

}



.dropdown-arrow {

    display: inline-block;

    margin-left: 5px;

    font-size: 0.8rem;

    transition: transform 0.3s ease;

}



.dropdown:hover .dropdown-arrow {

    transform: rotate(180deg);

}



/* Menu mobile */

.menu-toggle {

    display: none;

    cursor: pointer;

    position: relative;

    margin-right: 20px;

}



.menu-toggle span {

    display: block;

    width: 25px;

    height: 3px;

    background: #fff;

    margin: 5px 0;

    transition: 0.3s;

    border-radius: 2px;

}



.mobile-menu {

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    background-color: 

#162938;

    border-top: 1px solid 

#3498db;

}



.mobile-menu a {

    display: block;

    padding: 15px 20px;

    text-align: center;

    color: #fff;

    text-decoration: none;

    border-bottom: 1px solid 

#2c3e50;

    transition: background-color 0.3s ease;

}



.mobile-menu a:hover {

    background-color: 

#3498db;

}



@media screen and (max-width: 768px) {

    .navigation {

        display: none;

    }



    .menu-toggle {

        display: block;

    }



/*    .logo img {

        height: 50px;

        max-width: 150px;

    }

*/

    .logo {

        margin-left: 15px;

    }



    .tagline {

        display: none;

    }



    header {

        padding: 10px 0;

    }

}



.mobile-menu.active {

    display: block;

    animation: slideDown 0.3s ease-out;

}



/* Animation pour le menu burger */

.menu-toggle.active span:nth-child(1) {

    transform: rotate(-45deg) translate(-5px, 6px);

}



.menu-toggle.active span:nth-child(2) {

    opacity: 0;

}



.menu-toggle.active span:nth-child(3) {

    transform: rotate(45deg) translate(-5px, -6px);

}


/* --- Langue (desktop) --- */
.lang-current .code {
    color: white;
}
.lang-current .arrow {
    color: white;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
    user-select: none;
}

.lang-current .arrow {
    font-size: 0.7rem;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 0.4rem 0;
    min-width: 80px;
    z-index: 999;
}

.lang-menu.show {
    display: block;
}

.lang-menu form {
    margin: 0;
}

.lang-menu button {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.4rem 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
}

.lang-menu button:hover {
    background: #f3f3f3;
}

/* --- Mobile --- */
.lang-dropdown-mobile {
    margin-top: 1rem;
    text-align: center;
}

.lang-dropdown-mobile form {
    display: inline-block;
    margin: 0 0.3rem;
}

.lang-dropdown-mobile button {
    background: none;
    border: 1px solid #bdc3c7;;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    color: white;
}

.lang-dropdown-mobile button.active {
    background: #f3f3f3;
    border-color: #aaa;
    color: black;
}

.flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    vertical-align: middle;
}

.lang-current .flag {
    margin-right: 4px;
}

.lang-menu button img {
    margin-right: 6px;
}

.lang-dropdown-mobile button img {
    margin-right: 6px;
}