/* ==========================================================================
   BASICS & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    color: #000;
}

.invalid-feedback, .alert-danger {
    display: none !important;
}

.toast-container {
    bottom: 100px !important;
}

.page-title {
    font-weight: 400;
    font-size: clamp(32px, 8vw, 48px); /* Taille adaptative selon l'écran */
    text-align: center;
    margin-bottom: 50px;
    color: #000;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   DÉCORATION (HEXAGONES)
   ========================================================================== */
.fixed-details-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    pointer-events: none;
    z-index: 0; 
    overflow: hidden;
}

.detail-hexa {
    position: absolute;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(0, 234, 255, 0.15));
}

.h-top-left { top: 150px; left: -40px; width: 200px; transform: rotate(15deg); }
.h-mid-right { top: 30%; right: -30px; width: 150px; transform: rotate(-12deg); }

/* Désactivation des hexagones encombrants sur mobile */
@media (max-width: 768px) {
    .detail-hexa { display: none; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    z-index: 1050; 
    position: sticky; 
    top: 0; 
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-navbar {
    background-color: #4a4a4a;
    min-height: 10vh;
    padding: 0 30px;
}

.nav-logo-img { height: 7vh; }

/* Adaptation des liens pour Bootstrap Navbar */
.nav-links {
    list-style: none;
    display: flex;
    gap: 5vw; /* Utilisation de vw pour plus de flexibilité */
}

.nav-links .nav-link {
    color: white !important;
    text-decoration: none;
    font-family: "mostra-nuova", sans-serif;
    font-weight: 600;
    font-size: 14px; 
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links .nav-link:hover {
    color: #00eaff !important;
}

.nav-auth { display: flex; gap: 10px; }

.btn-login, .btn-register {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.btn-login { background: white; color: black; font-weight: 600;}
.btn-register { background: #00eaff; color: black; font-weight: 600;}

.contact-bar {
    background-color: #7a7a7a;
    color: white;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 400;
}

.contact-bar a { color: white; text-decoration: none; }
.contact-bar a:hover { color: #00eaff; }

/* Menu Burger Custom Style */
.custom-toggler {
    border: none !important;
}
.custom-toggler:focus {
    box-shadow: none !important;
}
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

.nav-cart-link {
    margin-top: 5px;
    font-size: 1.6rem;
    color: #ffffff;
    position: relative;
    transition: transform 0.2s;
}
.nav-cart-link:hover {
    transform: scale(1.1);
    color: #00eaff;
}
.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.65rem;
    padding: 0.35em 0.6em;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.content-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    z-index: 1; 
}

/* ==========================================================================
   FOOTER & PARTNERS
   ========================================================================== */
.main-footer {
    background-color: transparent; 
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.footer-partners {
    background-color: #ffffff;
    color: #000;
    padding: 60px 30px;
    text-align: center;
}

.footer-partners h2 {
    font-family: "mostra-nuova", sans-serif;
    font-size: 36px;
    margin-bottom: 40px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.partner-card img { height: 60px; margin-bottom: 20px; object-fit: contain; }

.footer-bottom-bar {
    background-color: #000;
    min-height: 8vh;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.footer-left, .footer-center, .footer-right { flex: 1; display: flex; font-size: 14px; }
.footer-center { justify-content: center; }
.footer-center a { color: white; text-decoration: none; margin: 0 15px; font-weight: 600; transition: color 0.3s; }
.footer-center a:hover { color: #00eaff; }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* Tablettes et Mobile (Menu Burger) */
@media (max-width: 991px) {
    .main-navbar {
        height: auto;
        padding: 15px 20px;
    }

    .navbar-collapse {
        background-color: #4a4a4a;
        margin: 10px -20px -15px -20px; /* Aligné avec les bords */
        padding: 30px;
        border-top: 1px solid #5a5a5a;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
    }

    .nav-auth {
        flex-direction: row;
        width: 100%;
    }

    .btn-login, .btn-register {
        width: 100%;
        text-align: center;
    }
}

/* Mobile uniquement */
@media (max-width: 768px) {
    .contact-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .partners-grid {
        flex-direction: column;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-center {
        flex-direction: column;
        gap: 15px;
    }

    .footer-left, .footer-right {
        justify-content: center;
    }
}
