/* ========================================== */
/* RESET ET FONTS */
/* ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Parkinsans';
    src: url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@400;700&display=swap');
    font-display: swap;
}

/* ========================================== */
/* STRUCTURE GLOBALE */
/* ========================================== */
body {
    font-family: 'Nunito Sans', sans-serif;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 180px;
    padding-top: 180px;
    background-color: #f5f5f5;
}

body.shrink-header {
    padding-top: 130px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

/* ========================================== */
/* HEADER */
/* ========================================== */
.header-banner {
    background-color: white;
    width: 100%;
    padding: 50px 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 130px;
}

.header-banner.shrink {
    padding: 25px 40px;
    height: 100px;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.header-banner.shrink .logo {
    height: 70px;
}

/* ========================================== */
/* BOUTONS HEADER */
/* ========================================== */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button-separator {
    color: rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    padding: 0 5px;
}

/* Style de base pour tous les boutons */
.accueil-btn,
.boutique-btn,
.event-btn,
.accueil-self-btn,
.event-self-btn {
    color: black;
    background-color: transparent;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    position: relative;
    z-index: 1001;
}

.accueil-btn:hover,
.boutique-btn:hover,
.event-btn:hover {
    color: #A40000;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    transform: translateY(-2px);
}

/* Boutons actifs */
.accueil-self-btn,
.event-self-btn {
    color: #A40000;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Particularités */
.boutique-btn {
    margin-left: 0;
}

/* ========================================== */
/* HERO SECTION */
/* ========================================== */
.hero-image {
    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.bg-overlay {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* ========================================== */
/* TYPOGRAPHIE */
/* ========================================== */
h1 {
    font-family: 'Parkinsans', cursive;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
    color: white;
}

.separator {
    height: 1px;
    width: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1.5rem auto;
}

p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.livre-btn {
    color: #fff;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
}

/* ========================================== */
/* BOUTONS GENERIQUES */
/* ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #A40000;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Nunito Sans', sans-serif;
}

.btn:hover {
    background-color: #DC0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(2px);
}

/* ========================================== */
/* BANDEAU D'ANNONCE */
/* ========================================== */
.announcement-banner {
    background-color: #A40000;
    color: white;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 130px;
    left: 0;
    right: 0;
    z-index: 999;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5;
}

.header-banner.shrink + .announcement-banner {
    top: 100px;
}

.announcement-content {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    margin-right: 20px;
}

.announcement-content a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: bold;
}

.close-announcement {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
    
}

.close-announcement:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-announcement svg {
    width: 16px;
    height: 16px;
}

/* ========================================== */
/* FOOTER */
/* ========================================== */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 0;
}

.footer-content {
    padding: 1.5rem;
}

.footer-separator {
    height: 1px;
    width: 80%;
    margin: 1.5rem auto;
    background-color: rgba(255, 255, 255, 0.2);
}

footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    margin: 0 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.social-link {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ========================================== */
/* MENU HAMBURGER MOBILE */
/* ========================================== */

/* Bouton Hamburger */
.hamburger-btn {
    display: none; /* Caché par défaut */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: black;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Menu Mobile */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 15px 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-item {
    padding: 12px 20px;
    color: black;
    text-decoration: none;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    color: #A40000;
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (max-width: 768px) {
    /* Header Mobile */
    .header-banner {
        padding: 15px 20px;
        height: 80px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-banner.shrink {
        height: 80px;
        padding: 10px 20px;
    }

    /* Logo */
    .logo {
        height: 60px;
        margin-bottom: 0;
        transition: none;
    }

    .header-banner.shrink .logo {
        height: 60px;
    }

    /* Boutons */
    .header-buttons {
        display: none; /* Cache les boutons desktop */
    }

    .hamburger-btn {
        display: flex; /* Affiche le bouton hamburger */
    }
    
    /* Menu Mobile */
    .mobile-menu {
        top: 80px; /* Ajusté à la nouvelle hauteur */
    }

    /* Ajustement du body */
    body {
        padding-top: 80px;
    }

    body.shrink-header {
        padding-top: 80px;
    }

    /* Bandeau d'annonce */
    .announcement-banner {
        top: 80px;
    }

    .header-banner.shrink + .announcement-banner {
        top: 80px;
    }
}

@media (max-width: 480px) {
    .header-banner {
        height: 70px;
        padding: 10px 15px;
    }

    .header-banner.shrink {
        height: 70px;
        padding: 10px 15px;
    }

    .logo {
        height: 50px;
        transition: none;
    }

    .header-banner.shrink .logo {
        height: 50px;
    }

    /* Menu mobile */
    .mobile-menu {
        top: 70px;
    }

    /* Ajustements du body */
    body {
        padding-top: 70px;
    }

    body.shrink-header {
        padding-top: 70px;
    }

    /* Bandeau d'annonce */
    .announcement-banner {
        top: 70px;
    }

    .header-banner.shrink + .announcement-banner {
        top: 70px;
    }
}
