:root {
    --burgundy: #631926;
    --light-burgundy: #7d2635;
    --cream: #f9f7f5;
    --white: #F5EEEA;
    --text-dark: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow-y: scroll;
}

/* --- HEADER & NAV --- */
header {
    background-color: var(--burgundy);
    color: white;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 50px;
    margin-left: 100px;
}

.search-container {
    flex-grow: 1;
    display: flex;
    max-width: 600px;
    background-color: var(--light-burgundy);
    border-radius: 5px;
    overflow: hidden;
}

.search-container select {
    background: transparent;
    color: white;
    border: none;
    padding: 10px;
    border-right: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.search-container input {
    background: transparent;
    border: none;
    padding: 10px;
    color: white;
    flex-grow: 1;
}

.search-container input::placeholder {
    color: rgba(255,255,255,0.6);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    margin-right: 100px;
}

.btn-sell {
    background-color: #ffffff;
    color: var(--burgundy);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.secondary-nav {
    background-color: #F5EEEA;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 18px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 90px;
    z-index: 999;
}

/* --- MENU CATEGORIES --- */
.nav-item-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.categories-grid-overlay {
    position: fixed;
    top: 148px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #f4efeb;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 1001;
    display: flex;
    justify-content: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.categories-grid-overlay.active {
    max-height: 500px;
    padding: 30px 0;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(5, 180px);
    gap: 15px;
    max-width: 1000px;
}

.category-card {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.category-card:hover {
    transform: translateY(-2px);
    color: var(--burgundy);
}

.category-card i {
    font-size: 10px;
    color: #888;
}

/* --- SOUS-MENU BD --- */
.bd-universe-overlay {
    position: fixed;
    top: 148px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1002;
    flex-direction: column;
    align-items: center;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.bd-universe-overlay.active {
    display: flex;
    max-height: 600px;
    padding-bottom: 40px;
}

.bd-banner {
    width: 100%;
    height: 200px;
    background-image: url('img/BD_Banniere.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    color: white;
    margin-bottom: 30px;
}

.bd-banner h2 {
    font-size: 20px;
    font-weight: 300;
    margin: 0;
}

.bd-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.bd-grid {
    display: grid;
    grid-template-columns: repeat(5, 180px);
    gap: 15px;
    max-width: 1000px;
}

.bd-card {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    min-height: 50px;
}

.bd-card:hover {
    transform: scale(1.03);
}

.btn-replier {
    grid-column: 3;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}

.btn-replier i {
    font-size: 16px;
}

/* --- FOOTER --- */
footer {
    background-color: #F5EEEA;
    color: #333;
    padding: 60px 80px 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.footer-brand img {
    width: 80px;
    height: auto;
    margin-top: 25px;
}

.brand-text {
    margin-top: 20px;
}

.brand-text p {
    margin: 0;
    color: #444;
    line-height: 1.4;
    max-width: 250px;
}

.brand-text strong {
    display: block;
    margin-top: 25px;
    color: var(--burgundy);
    font-weight: 600;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #000;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
}

.footer-section ul li a:hover {
    color: var(--burgundy);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #d0d0d0;
    font-size: 12px;
    color: #666;
}

.bottom-links {
    display: flex;
    gap: 20px;
}

.bottom-links a {
    color: #666;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    background-color: var(--burgundy);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

/* --- CONTENT PAGES --- */
.cookie-content, .privacy-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

.cookie-content h1, .privacy-content h1 {
    font-size: 36px;
    color: var(--burgundy);
    margin-bottom: 30px;
}

.cookie-content h2, .privacy-content h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 15px;
}

.cookie-content p, .privacy-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}
