/* ========================================
   MAIN STYLES - SSGM WATER MANAGEMENT
   Styles principaux pour l'interface de gestion sanitaire
   Responsive design avec support mobile complet
   ======================================== */

/* ----------- BACKGROUND ----------- */
/* Image de fond fixe avec effet de parallaxe */
body {
    margin: 0; /* Suppression des marges par défaut */
    font-family: Arial, sans-serif; /* Police claire et lisible */
    background: url('../../assets/images/chalutier.jpg') no-repeat center center fixed; /* Image fixe centrée */
    background-size: cover; /* Couvre tout l'écran */
    background-color: #000; /* Couleur de fond par défaut */
    overflow-x: hidden; /* Empêche le scroll horizontal */
    overflow: hidden; /* Empêche le scroll vertical */
    /* Cacher les scrollbars */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

/* Cacher les scrollbars Chrome, Safari, Opera */
body::-webkit-scrollbar {
    display: none;
}

/* ----------- HEADER ----------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    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);
}

/* ----------- FIXED LEFT NAVIGATION MENU ----------- */
nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 220px;
    height: calc(100% - 60px);
    background: rgba(0, 0, 0, 0.3);
    border-right: 2px solid rgba(34, 34, 34, 0.3);
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1050;
}

/* ----------- MENU ITEMS ----------- */
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.2);
    transition: background 0.3s ease, color 0.3s ease;
}

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

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

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

/* ----------- MENU TOGGLE BUTTON (BURGER) ----------- */
.menu-toggle {
    display: none;
}

/* ----------- RESPONSIVE DESIGN ----------- */

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

/* Mobile screens */
@media (max-width: 768px) {
    /* Header responsive */
    header {
        padding: 8px 10px;
    }
    
    .header-container {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .header-container .logo {
        height: 30px;
        min-width: 30px;
        flex-shrink: 0;
    }
    
    .header-container h1 {
        font-size: 0.85em;
        line-height: 1.2;
    }
    
    /* Hide menu by default on mobile */
    nav {
        transform: translateX(-100%);
        width: 200px;
    }

    /* Show menu when active */
    nav.active {
        transform: translateX(0);
    }

    /* Content takes full width */
    main {
        margin-left: 0;
        padding-top: 70px;
    }

    /* Show burger button */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        font-size: 1.8em;
        color: white;
        background: rgba(0, 0, 0, 0.6);
        padding: 5px 12px;
        border-radius: 8px;
        cursor: pointer;
        z-index: 1200;
    }
}

@media (max-width: 480px) {
    .header-container .logo {
        height: 25px;
        min-width: 25px;
    }
    
    .header-container h1 {
        font-size: 0.7em;
    }
    
    header {
        padding: 5px 8px;
    }
    
    main {
        padding-top: 60px;
    }
}
