﻿html, body { margin: 0; padding: 0; }
/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Styles titres UNIQUEMENT pour le header */
.header-brand-link h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #b48a3c;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0;
    font-family: 'Poppins', Arial, sans-serif;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(180, 138, 60, 0.1);
}

.header-brand-link h1:hover {
    color: #e2b76a;
    text-decoration: underline;
    transform: translateY(-1px);
}

.header-title-link h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #7a5c2c;
    letter-spacing: 1.2px;
    margin: 0;
    text-transform: uppercase;
    font-family: 'Poppins', Arial, sans-serif;
    transition: color 0.3s ease;
}

.header-title-link h2:hover {
    color: #b48a3c;
}

/* Nouveau Header avec couleurs personnalisées */
.header {
    width: 100%;
    background: linear-gradient(135deg, #f6f0e2 0%, #f8f2e6 100%);
    color: #7a5c2c;
    font-family: 'Poppins', Arial, sans-serif;
    box-shadow: 0 6px 25px rgba(245, 215, 177, 0.25);
    border-bottom: 3px solid #f5d7b1;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 12px;
    backdrop-filter: blur(5px);
}

.header-brand {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 5px;
}

.header-brand-link {
    text-decoration: none;
    display: inline-block;
}

.header-title {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.header-title-link {
    text-decoration: none;
    display: inline-block;
}

.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 0;
    width: 100%;
    padding: 0 20px;
}

.nav-link {
    color: #7a5c2c;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(245, 215, 177, 0.3);
    box-shadow: 0 3px 12px rgba(246, 240, 226, 0.15);
    display: inline-block;
    border: 1px solid rgba(245, 215, 177, 0.4);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 215, 177, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: #f5d7b1;
    color: #b48a3c;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 215, 177, 0.4);
    border-color: #f5d7b1;
}

/* Responsive Design */
@media (max-width: 900px) {
    .header-nav {
        gap: 16px;
        padding: 0 15px;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
    .header-brand-link h1 {
        font-size: 2rem;
    }
    .header-title-link h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 12px 2vw 10px 2vw;
    }
    .header-brand-link h1 {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
    .header-title-link h2 {
        font-size: 1.1rem;
        letter-spacing: 0.8px;
    }
    .header-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 8px;
        padding: 0 10px;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 10px 16px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .header-brand-link h1 {
        font-size: 1.4rem;
    }
    .header-title-link h2 {
        font-size: 1rem;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* Toggle styles pour cacher tout le header (brand, title, nav) */
.nav-toggle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle {
    background: linear-gradient(135deg, #f5d7b1 0%, #e2b76a 100%);
    border: 2px solid #b48a3c;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(180, 138, 60, 0.2);
    position: relative;
    z-index: 1002;
}

.nav-toggle i { color: #7a5c2c; font-size: 14px; }

.header-brand, .header-title, .header-nav {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: 1200px;
    overflow: hidden;
}

.header-brand.content-hidden, .header-title.content-hidden, .header-nav.content-hidden {
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
    padding: 0 !important;
    margin: 0 !important;
}

/* Make sure toggle is visible */
.header { position: relative; overflow: visible; }
