* {
    margin: 0;
    padding: 0;
}

header {
    background-color: black;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 1.3%;
    justify-content: space-between;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

.logo img {
    width: 150px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px 12px;
    transition: 0.3s;
}

.nav-links a:hover {
    background-color: white;
    color: black;
    border-radius: 5px;
}

.bouton-nav {
    display: flex;
    align-items: center;
}

.demande_devis, .tel {
    font-size: 1rem;
    padding: 6px 12px;
    transition: 0.5s;
    text-align: center;
    border-radius: 8px;
}

.demande_devis {
    background-color: #ffb103;
    color: black;
    border: none;
    width: 150px;
    font-weight: bold;
}

.tel {
    background-color: black;
    color: #ffb103;
    border: solid 3px #ffb103;
    width: 160px;
    font-size: 1.1rem;
    font-weight: bold;
}

.tel:hover {
    background-color: #ffb103;
    color: black;
}

.nav-button a:hover {
    background-color: black;
}

/* MÉGA MENU */
.dropdown {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background-color: black;
    width: 1000px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    flex-wrap: wrap;
    flex-direction: row;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.mega-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu.hide {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease-out;
}

.mega-menu-column {
    width: 18%;
    margin-right: 2%;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mega-menu.active .mega-menu-column {
    transform: translateY(0);
    opacity: 1;
}

.mega-menu.active .mega-menu-column:nth-child(1) { transition-delay: 0.1s; }
.mega-menu.active .mega-menu-column:nth-child(2) { transition-delay: 0.15s; }
.mega-menu.active .mega-menu-column:nth-child(3) { transition-delay: 0.2s; }
.mega-menu.active .mega-menu-column:nth-child(4) { transition-delay: 0.25s; }
.mega-menu.active .mega-menu-column:nth-child(5) { transition-delay: 0.3s; }

.mega-menu.hide .mega-menu-column {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.2s ease-in;
}

.mega-menu-column:last-child {
    margin-right: 0;
}

.mega-menu-column h3 {
    color: #ffb103;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
}

.mega-menu-column li {
    margin-bottom: 8px;
}

.mega-menu-column a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
    display: block;
    transition: 0.3s;
}

.mega-menu-column a:hover {
    background-color: white;
    color: black;
    border-radius: 5px;
}

.menu-burger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.menu-burger.active {
    transform: rotate(90deg);
}

.navbar.hidden {
    transform: translateY(-100%);
}

#produits-link::after {
    content: ' ▼';
    font-size: 0.8em;
}

/* Animations spécifiques pour le menu mobile */
.nav-links.burger-hide {
    right: -100% !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.6, 1);
}

.nav-links.burger-hide li {
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.2s ease-in;
}

/* Media Queries pour Responsive */
@media screen and (min-width: 2560px) {
    .nav-links a {
        font-size: 2.1rem;
    }
    .nav-links {
        gap: 30px;
    }
    .logo img {
        width: 300px;
    }
    .demande_devis {
        width: 293px;
    }
    .demande_devis, .tel {
        font-size: 2rem;
    }
    .tel {
        width: 240px;
    }
    .mega-menu-column h3 {
        font-size: 2.5rem;
    }
    .mega-menu {
        top: 46px;
        width: 2000px;
    }
}

@media screen and (max-width: 1024px) {
    .nav-button {
        display: block;
        text-align: center;
    }
    .demande_devis {
        padding: 2%;
        margin-top: 1%;
    }
    .tel {
        padding: 1.8%;
        margin-top: 1%;
    }
    .nav-links {
        max-width: 80%;
    }
}

@media screen and (min-width: 1009px) {
    .dropdown:hover .mega-menu {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    .dropdown:hover .mega-menu .mega-menu-column {
        transform: translateY(0);
        opacity: 1;
    }
    .dropdown:hover .mega-menu .mega-menu-column:nth-child(1) { transition-delay: 0.1s; }
    .dropdown:hover .mega-menu .mega-menu-column:nth-child(2) { transition-delay: 0.15s; }
    .dropdown:hover .mega-menu .mega-menu-column:nth-child(3) { transition-delay: 0.2s; }
    .dropdown:hover .mega-menu .mega-menu-column:nth-child(4) { transition-delay: 0.25s; }
    .dropdown:hover .mega-menu .mega-menu-column:nth-child(5) { transition-delay: 0.3s; }
    .dropdown:not(:hover) .mega-menu {
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s ease-out;
    }
    .dropdown:not(:hover) .mega-menu .mega-menu-column {
        transform: translateY(10px);
        opacity: 0;
        transition: all 0.2s ease-in;
    }
}

@media screen and (max-width: 1008px) {
    .menu-burger {
        display: block;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 134px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: black;
        text-align: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        max-height: 200vh;
        max-width: 200%;
    }
    .nav-links.active {
        right: 0;
        flex-wrap: nowrap;
    }
    .nav-links li {
        transform: translateX(30px);
        opacity: 0;
        transition: all 0.3s ease-out;
    }
    .nav-links.active li {
        transform: translateX(0);
        opacity: 1;
        transition: all 0.4s ease-out;
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
    .mega-menu {
        display: none;
        position: relative;
        width: 100%;
        background-color: #1c1c1c;
        padding: 10px;
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mega-menu.active {
        display: flex;
    }
    .navbar {
        gap: 20px;
    }
    .nav-links li {
        display: block;
        padding: 14px 0;
    }
    .tel,
    .demande_devis {
        padding: 8%;
        width: 90%;
        max-width: 300px;
    }
    .bouton-nav {
        justify-content: center;
    }
    .mega-menu-column {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .mega-menu-column:last-child {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 680px) {
    .tel, .demande_devis {
        padding: 10px;
        width: 85%;
    }
}

@media screen and (max-width: 480px) {
    .tel, .demande_devis {
        width: 80%;
        font-size: 1rem;
        padding: 10px;
    }
    .nav-links {
        padding: 14px 0;
    }
}

@media screen and (max-width: 426px) {
    .tel, .demande_devis {
        width: 75%;
    }
}