/* ----------- FOND D'ÉCRAN ----------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('chalutier.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

/* ----------- HEADER ----------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* occupe toute la largeur de l’écran */
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.header-container .logo {
    height: 40px;
    width: auto;
}

.header-container h1 {
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* ----------- MENU FIXE À GAUCHE ----------- */
nav {
    position: fixed;
    top: 60px; /* laisse la place au header */
    left: 0;
    width: 220px;
    height: calc(100% - 70px);
    background: rgba(51, 51, 51, 0.6);
    border-right: 2px solid rgba(34, 34, 34, 0.6);
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    z-index: 1050; /* au-dessus du contenu */
}

/* ----------- ÉLÉMENTS DU MENU ----------- */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    padding: 15px 20px;
    cursor: pointer;
    color: #f0f0f0;
    font-weight: 500;
    border-bottom: 1px solid rgba(68, 68, 68, 0.5);
    transition: background 0.3s ease, color 0.3s ease;
}

nav ul li:hover {
    background: rgba(85, 85, 85, 0.7);
    color: #fff;
}

nav ul li.active {
    background: rgba(0, 123, 255, 0.8);
    color: #fff;
    font-weight: bold;
}

/* ----------- CONTENU PRINCIPAL ----------- */
main {
    margin-left: 220px;
    padding: 100px 20px 20px 20px;
    color: #fff;
    min-height: 100vh;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 992px) {
    .header-container h1 {
        font-size: 1.2em;
    }
    .header-container .logo {
        height: 40px;
    }
}

@media (max-width: 768px) {
    /* Menu masqué par défaut sur mobile */
    nav {
        transform: translateX(-100%);
        width: 200px;
    }

    /* Menu affiché quand actif */
    nav.active {
        transform: translateX(0);
    }

    /* Le contenu prend toute la largeur */
    main {
        margin-left: 0;
        padding-top: 120px;
    }

    /* Bouton burger */
    .menu-toggle {
        display: block; /* visible sur mobile */
        position: fixed;
        top: 15px;
        left: 15px;
        font-size: 2em;
        color: white;
        background: rgba(0, 0, 0, 0.6);
        padding: 5px 12px;
        border-radius: 8px;
        cursor: pointer;
        z-index: 1200; /* au-dessus de tout */
    }
}

/* Par défaut : bouton burger caché sur PC */
.menu-toggle {
    display: yes;
}
