/*
    Projet : Site web Les Voies des Gastlosen
    Fichier : style-secteur.css
    Auteur : Antoine Schneider
    Date de création : 16 janvier 2026
    Dernière modification : 16 janvier 2026
    Description : Feuille de style pour la page secteurs.
                  Gère la sidebar navigation, l'affichage
                  dynamique des secteurs et la liste des voies.
    Compatibilité : Chrome, Firefox, Edge, Safari
*/

/* ============================================
   RESET ET BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.95),
        rgba(40, 40, 40, 0.95)
    );
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

nav img {
    width: 80px;
    height: auto;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

nav img:hover {
    transform: scale(1.05);
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #ff6b35,
        #f7931e
    );
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover,
nav a.active {
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
}

nav a:hover::after,
nav a.active::after {
    width: 80%;
}

/* ============================================
   PAGE SECTEUR
   ============================================ */

#page-secteur {
    margin-top: 100px;
    min-height: 100vh;
}

.secteur-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: linear-gradient(
        135deg,
        #f5efef,
        #2d2d2d
    );
    min-height: calc(100vh - 100px);
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.sidebar {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.95),
        rgba(50, 50, 50, 0.95)
    );
    padding: 30px 20px;
    border-right: 2px solid #ff6b35;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.sidebar-title {
    color: #ff6b35;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Liste des zones */
.zone-list {
    list-style: none;
    margin-bottom: 30px;
}

.zone-list > li {
    margin-bottom: 5px;
}

.zone-list > li > :first-child {
    padding: 15px 20px;
    font-size: 16px;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border: 1px solid transparent;
    display: block;
}

.zone-list > li:hover > :first-child {
    background-color: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    transform: translateX(5px);
}

.zone-list > li.active > :first-child {
    background: linear-gradient(
        90deg,
        rgba(255, 107, 53, 0.2),
        rgba(247, 147, 30, 0.2)
    );
    border-color: #ff6b35;
    color: #ff6b35;
    font-weight: 700;
}

/* Menu secteurs (déroulant) */
.zone-list .secteur-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-top: 5px;
}

.zone-list > li.active .secteur-menu {
    max-height: 500px;
    opacity: 1;
}

.secteur-menu li {
    padding: 12px 15px;
    padding-left: 35px;
    font-size: 14px;
    cursor: pointer;
    color: #b0b0b0;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-bottom: 8px;
}

.secteur-menu li:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    transform: translateX(3px);
}

.secteur-menu li.active {
    background-color: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
    font-weight: 600;
}

/* Cercle marqueur */
.marker-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ff6b35;
    background-color: rgba(255, 107, 53, 0.3);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.secteur-menu li:hover .marker-circle {
    background-color: #ff6b35;
    box-shadow: 0 0 10px #ff6b35;
}

/* ============================================
   CONTENU PRINCIPAL
   ============================================ */

.main-content {
    padding: 50px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.main-content.show {
    opacity: 1;
    max-height: 5000px;
}

/* Header du secteur */
.secteur-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.secteur-image-container {
    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 0.9),
        rgba(60, 60, 60, 0.9)
    );
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid #ff6b35;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.secteur-image-container h2 {
    color: #ff6b35;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.secteur-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(
        135deg,
        #555,
        #888
    );
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

/* Info box */
.info-box {
    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 0.9),
        rgba(60, 60, 60, 0.9)
    );
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #ff6b35;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.info-box h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.info-box p {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Détails secteur */
.secteur-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.access-section,
.voies-section {
    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 0.9),
        rgba(60, 60, 60, 0.9)
    );
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #ff6b35;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.access-section h3,
.voies-section h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.access-section p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Liste des voies */
.voies-list {
    list-style: none;
}

.voies-list li {
    padding: 15px 10px;
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    gap: 15px;
    border-bottom: 1px solid 
                   rgba(255, 107, 53, 0.3);
    align-items: center;
    transition: all 0.3s ease;
}

.voies-list li:hover {
    background-color: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

.voies-list li span:first-child {
    color: #ff6b35;
    font-weight: 700;
    font-size: 18px;
}

.voies-list li span:last-child {
    color: #e0e0e0;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ff6b35;
    text-align: center;
    font-size: 14px;
}

.voies-list a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.voies-list a:hover {
    color: #ff6b35;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(
        135deg,
        #0a0a0a,
        #1a1a1a
    );
    color: #e0e0e0;
    padding: 60px 40px 30px;
    border-top: 3px solid #ff6b35;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid 
                rgba(255, 107, 53, 0.3);
    color: #808080;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .secteur-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 2px solid #ff6b35;
        max-height: none;
    }

    .secteur-header,
    .secteur-details {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding: 40px 20px 20px;
    }

    nav {
        flex-wrap: wrap;
        gap: 20px;
        padding: 15px 20px;
    }

    nav a {
        font-size: 14px;
    }
}