.navbar-custom {
    background: #fff;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}


.nav-left a {
    color: grey;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: black !important;
    font-style: italic;
}

/* ===== CATEGORIES DROPDOWN ===== */

.nav-categories {
    position: relative;
}

.cat-btn {
    background: transparent;
    border: none;
    color: grey;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.cat-btn:hover {
    color: black;
}

.nav-categories.open .dropdown-menu {
    display: flex;
}






.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 6px 10px;
    outline: none;
}

.search-box button {
    border: none;
    background: transparent;
    padding: 6px 10px;
}


.icon-btn {
    position: relative;
    color: black;
    font-size: 20px;
}

.icon-btn span {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    padding: 3px 6px;
    border-radius: 50%;
    font-size: 10px;
}


.btn-login {
    background: #5A39C9;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
}


.nav-user {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.user-lettre {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5E2FF;
    color: #5A39C9;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


.user-icon svg{
    color: #666; 
    font-size: 14px;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    width: 160px;
    display: none;
    flex-direction: column;
}

.dropdown-menu a {
    padding: 10px 16px;
    display: block;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #F0E6FF;
}








.footer {
  background: #fff; 
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 220px;
}

.footer-section h3,
.footer-section h4 {
  color: #5A39C9;
  margin-bottom: 1rem;
}

.footer-section p {
  color: black;
  margin-bottom: 0.8rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a {
  text-decoration: none;
  color: black;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: blue;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  font-size: 1.4rem;
  color: black;
  transition: 0.3s;
}

.social-icons a:hover {
  color: blue;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #555;
  margin-top: 2rem;
  padding-top: 1rem;
  color: black;
  font-size: 0.9rem;
}





.hamburger {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}
/* MOBILE */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .navbar-custom {
        padding: 0 20px;
        position: relative;
    }

    /* Cache menu par défaut */
    .nav-left a:not(.logo),
    .nav-categories,
    .nav-right {
        display: none;
    }

    /* Quand menu ouvert */
    .navbar-custom.nav-open {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 20px;
    }

    .navbar-custom.nav-open .nav-left,
    .navbar-custom.nav-open .nav-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
    }

    .navbar-custom.nav-open .nav-left a,
    .navbar-custom.nav-open .nav-categories,
    .navbar-custom.nav-open .nav-right {
        display: flex;
    }

    /* Hamburger devient X quand ouvert */
    .navbar-custom.nav-open .hamburger i::before {
        content: "\f00d"; /* icône X FontAwesome */
    }

    /* Centre le hamburger à droite */
    .hamburger {
        position: absolute;
        right: 20px;
        top: 22px;
    }

    .search-box {
        width: 80%;
    }

    

    .btn-login {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }



    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-section {
        width: 100%;
    }
}



/* =========================
   TABLETTE
========================= */
@media (min-width: 769px) and (max-width: 1024px) {

    .navbar-custom {
        padding: 0 20px;
    }

    .nav-left {
        gap: 18px;
    }

    .search-box {
        max-width: 260px;
    }

    .footer-container {
        gap: 1.5rem;
    }
}



/* =========================
   GRAND ÉCRAN
========================= */
@media (min-width: 1440px) {

    .navbar-custom {
        padding: 0 80px;
    }

    .footer-container {
        max-width: 1400px;
    }
}
