@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap");

:root {
    --bg: #363fff;
    --bg2: #3138c6;
    --title: #293245;
    --secondary-light: rgb(34, 124, 112, 0.2);
    --secondary-light-2: rgb(127, 183, 126, 0.1);
    --white: #fff;
    --black: #393e46;
    --green: #00FF96;
    --blue: #00A2FF;

    --shadow: 0px 2px 8px 0px var(--secondary-light);
}

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- NAVBAR DESKTOP (ne pas toucher) ---------- */
nav.computer {
    width: 100%;
    margin: auto;
    position: absolute;
}

nav.computer .placement{
    display: flex;
}

nav.computer img.menu-burger {
    display: none;
}

nav.computer .menu {
    height: 170px;
    width: 85%;
    margin: 30px auto;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

nav.computer .menu li {
    display: flex;
    margin: 0 20px;
    /* float: left; */
    align-content: center;
    /* width: 250px; */
}

nav.computer .menu li.cart{
    width: 50px;
}

nav.computer .menu li a.btn {
    color: white;
    padding: 6px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    display: inline-block;
    width: max-content;
    height: 50px;
}

nav.computer .menu li a.btn::after {
    content: '';
    position: absolute;
    height: 3px;
    left: 50%;
    bottom: 0;
    width: 0;
    background: var(--title);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

nav.computer .menu li a.btn:hover:after {
    width: 100%;
    left: 0;
}

nav.computer .menu .sousmenu {
    list-style-type: none;
    display: none;
    padding: 0;
    margin: 0;
    position: absolute;
}

nav.computer .menu .sousmenu li {
    float: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
}

nav.computer .menu .sousmenu li.placementDescente{
    margin: 40px 0 0 0;
}

nav.computer .menu li:hover .sousmenu {
    display: block;
}

nav.computer img {
    width: 150px;
}

/* ---------- NAVBAR MOBILE ---------- */
nav.mobile {
    display: none;
    position: relative;
    z-index: 3000;
}

/* Bouton burger */
nav.mobile .menu-burger {
    width: 100px;
    cursor: pointer;
    padding: 1rem;
    z-index: 3001;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: transform 0.3s ease;
}

nav.mobile .menu-burger.active {
    transform: rotate(90deg);
}

/* Menu mobile hidden by default */
nav.mobile .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #001f3f;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: 2500;
    padding-top: 100px;
    gap: 1rem;

    /* animation */
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

nav.mobile .menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

nav.mobile .menu li {
    list-style: none;
}

nav.mobile .menu li a.btn {
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    padding: 0.8rem 1.2rem;
    display: inline-block;
}

/* Logo */
nav.mobile .logo img.logo {
    width: 120px;
    margin-bottom: 1rem;
    display: block;
}

/* ---------- Responsive tweaks ---------- */
@media screen and (max-width: 710px) {
    nav.computer {
        display: none;
    }

    nav.mobile {
        display: block;
    }
}

@media screen and (max-width: 530px) {
    .presse img {
        width: 300px;
    }
}

@media screen and (max-width: 400px) {
    .presse img {
        width: 200px;
    }
}

/* ---------- PRESSE POPUP (inchangé) ---------- */
.presse {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    padding: 50px;
    border-radius: 40px;
    background-color: white;
    border: 2px solid var(--blue);
    z-index: 4000;
}

.presse img {
    width: 500px;
    transition: all 0.5s;
}

.presse img:hover {
    transform: scale(3);
    transition: all 0.5s;
}

.close-presse {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-presse:hover {
    color: red;
}

/* message alerte */
#alert {
    z-index: 125;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    top: 80px;
    width: 300px;
    min-height: 70px;
    padding: 15px 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);

    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    pointer-events: none;
}

/* Apparition */
#alert.anim {
    opacity: 1;
    transform: translateX(0);
}

/* Disparition */
#alert.hide {
    opacity: 0;
    transform: translateX(100%);
}