@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

span {
    margin-left: 5px;
}

body {
    min-height: 100vh;
    background: url(3.jpg) center/cover no-repeat fixed;
    margin: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px clamp(20px, 5vw, 60px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.logo {
    display: inline-block;
    cursor: pointer;
    background: linear-gradient(to right, #123458, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.logo h1 {
    font-size: clamp(20px, 4vw, 36px);
}

.logo.visible {
    opacity: 1;
    transform: translateX(0);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu {
    margin-right: clamp(20px, 5vw, 60px);
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
}

.menu.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: clamp(15px, 3vw, 40px);
}

.menu ul li a {
    color: #F2F2F2;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 16px);
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu ul li a:hover {
    color: #27548A;
    transform: scale(1.1);
}

.menu ul li a.active {
    color: #27548A;
    font-weight: 700;
    padding-bottom: 4px;
}

.menu2 li a {
    position: relative;
    display: inline-block;
    color: black;
    transition: color 0.3s ease;
}

.menu2 li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #27548A;
    transition: width 0.3s ease;
}

.menu2 li a:hover {
    color: #27548A;
}

.menu2 li a:hover::after {
    width: 100%;
}

.menu2 li a.active {
    color: #27548A;
    font-weight: 700;
}

.menu2 li a.active::after {
    width: 100%;
}

.contact {
    color: #F2F2F2;
    list-style: none;
    padding: 5px;
    background: linear-gradient(to left, #123458, #00aaff);
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
}

.contact > * {
    background: #000;
    padding: clamp(8px, 1.5vw, 10px);
    border-radius: 5px;
    display: block;
}

.contact2 {
    padding: 10px;
}

.reste {
    background-color: #030303;
    padding-bottom: 20px;
}

.text {
    margin-top: clamp(50px, 15vw, 100px);
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.text1 {
    text-align: center;
    color: #00aaff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.text1.visible {
    opacity: 1;
    transform: translateY(0);
}

.text1 p {
    font-size: clamp(32px, 8vw, 75px);
    color: beige;
    margin: 0;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: break-word;
}

.text1 p div {
    font-size: clamp(40px, 12vw, 150px);
    color: #123458;
    margin-top: 10px;
    line-height: 1.1;
}

.text2 {
    text-align: center;
    color: white;
    font-size: clamp(11px, 2vw, 14px);
    margin-top: clamp(80px, 20vw, 200px);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
    padding: 0 20px;
}

.text3 {
    text-align: center;
    color: white;
    font-size: clamp(16px, 3vw, 28px);
    padding: clamp(40px, 8vw, 60px) 20px 0;
}

.text3 p {
    font-size: clamp(16px, 3vw, 28px);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 900px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text3 p div {
    color: #00aaff;
    display: inline;
}

.info {
    padding: clamp(30px, 5vw, 50px) clamp(15px, 3vw, 20px);
    background-color: #222222;
    margin: clamp(20px, 4vw, 30px) auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.info-content {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
}

.content-text {
    flex: 1;
    padding: 20px;
}

.content-text h2 {
    font-size: clamp(24px, 4vw, 28px);
    color: #00aaff;
    margin-bottom: 25px;
}

.content-text p {
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.6;
}

.content-image {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* FOOTER */
footer {
    background: #030303;
    color: white;
    padding: clamp(30px, 5vw, 50px) 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 20px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin: 20px;
    text-align: left;
}

.footer-logo h2 {
    font-size: clamp(24px, 4vw, 28px);
    background: linear-gradient(to right, #123458, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    margin-top: 10px;
    font-size: clamp(13px, 2vw, 14px);
    color: #ddd;
}

.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px;
    margin: 20px;
    text-align: left;
}

.footer-links h3,
.footer-social h3 {
    font-size: clamp(16px, 2.5vw, 18px);
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 10px 0;
}

.footer-links ul li a {
    color: white;
    font-size: clamp(14px, 2vw, 16px);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #123458;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    color: white;
    font-size: clamp(18px, 3vw, 22px);
    width: clamp(45px, 6vw, 50px);
    height: clamp(45px, 6vw, 50px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(5deg);
    color: #00aaff;
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.footer-bottom {
    margin-top: 40px;
    font-size: clamp(12px, 2vw, 14px);
    color: #ddd;
    letter-spacing: 1px;
}

.categories-dropdown {
    position: relative;
}

#categories-btn,
#produits-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.categories-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(36, 40, 50, 0.98);
    border-radius: 8px;
    min-width: 250px;
    max-width: 90vw;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    z-index: 999;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-menu.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.categories-menu li {
    position: relative;
    padding: 10px 20px 10px 35px;
    list-style: none;
}

.categories-menu li::before {
    content: "•";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 18px;
}

.categories-menu li a {
    color: #ccc;
    font-size: clamp(14px, 2vw, 16px);
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
    white-space: nowrap;
}

.categories-menu li a:hover {
    color: #fff;
}

.fin {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: white;
    font-size: clamp(14px, 2vw, 16px);
    padding: 10px 0;
    transition: color 0.3s ease;
}

.fin:hover {
    color: #00aaff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media screen and (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }

    .navbar {
        padding: 15px 30px;
    }

    .menu ul {
        gap: clamp(10px, 2vw, 25px);
    }

    .info-content {
        flex-direction: column;
    }

    .content-text,
    .content-image {
        width: 100%;
    }

    .categories-menu {
        left: 0;
        transform: none;
        min-width: 220px;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


@media screen and (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(3, 3, 3, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 20px 20px;
        margin: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .menu.mobile-active {
        left: 0;
    }

    .menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .menu ul li {
        width: 100%;
    }

    .menu ul li a {
        display: block;
        padding: 12px 15px;
        color: #F2F2F2;
        font-size: 16px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .menu ul li a:hover,
    .menu ul li a.active {
        background: rgba(39, 84, 138, 0.2);
        color: #00aaff;
        transform: translateX(5px);
    }

    
    .categories-dropdown {
        width: 100%;
    }

    #categories-btn,
    #produits-btn {
        justify-content: space-between;
        width: 100%;
        padding: 12px 15px;
        border-radius: 5px;
    }

    .categories-menu {
        position: static;
        left: 0;
        top: 0;
        transform: none;
        margin: 10px 0 0 20px;
        min-width: calc(100% - 20px);
        max-width: 100%;
        width: calc(100% - 20px);
        background: rgba(0, 0, 0, 0.3);
    }

    .categories-menu li {
        padding: 10px 15px 10px 30px;
    }

    .categories-menu li::before {
        left: 10px;
    }

    .categories-menu li a {
        font-size: 14px;
        white-space: normal;
        word-wrap: break-word;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .contact {
        margin-top: 10px;
    }
}


@media screen and (max-width: 900px) {
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
    }

    .menu-overlay.active {
        display: block;
    }
}


@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .info {
        margin: 20px 15px;
        padding: 30px 15px;
    }

    .info-content {
        flex-direction: column;
    }

    .content-text {
        padding: 0;
        text-align: center;
    }

    .content-image {
        order: 2;
        margin-top: 20px;
    }

    .content-image img {
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        text-align: center;
        width: 100%;
        margin: 15px 0;
    }

    .social-icons {
        justify-content: center;
    }

    .text3 br {
        display: none;
    }
}


@media screen and (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .text {
        padding: 0 15px;
    }

    .menu {
        width: 85%;
        max-width: 300px;
    }

    .info {
        margin: 15px 10px;
        padding: 20px 10px;
        border-radius: 15px;
    }

    .content-text h2 {
        margin-bottom: 15px;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        min-width: 100%;
        margin: 10px 0;
    }
}


@media screen and (max-width: 360px) {
    .info {
        margin: 10px 8px;
        padding: 15px 8px;
    }

    .text {
        padding: 0 10px;
    }

    .social-icons {
        gap: 10px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .menu {
        width: 90%;
        max-width: 280px;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    .text {
        margin-top: 30px;
    }

    .text1 p div {
        margin-top: 5px;
    }

    .text2 {
        margin-top: 50px;
    }

    .menu {
        width: 60%;
        max-width: 400px;
    }

    .categories-menu {
        max-height: 50vh;
        overflow-y: auto;
    }
}


@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .content-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.categories-menu::-webkit-scrollbar,
.menu::-webkit-scrollbar {
    width: 6px;
}

.categories-menu::-webkit-scrollbar-track,
.menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.categories-menu::-webkit-scrollbar-thumb,
.menu::-webkit-scrollbar-thumb {
    background: rgba(0, 170, 255, 0.5);
    border-radius: 10px;
}

.categories-menu::-webkit-scrollbar-thumb:hover,
.menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 170, 255, 0.7);
}