*/*
    Projet : Site web Les Voies des Gastlosen
    Fichier : style-voies.css
    Auteur : Antoine Schneider
    Date de création : 16 janvier 2026
    Dernière modification : 16 janvier 2026
    Description : Feuille de style pour la page voies.
                  Gère l'affichage en grille des cartes,
                  la barre de recherche et les animations.
    Compatibilité : Chrome, Firefox, Edge, Safari
*/

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

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(
        135deg,
        #f5f5f5,
        #e0e0e0
    );
    min-height: 100vh;
}

/* ============================================
   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 VOIES
   ============================================ */

#page-voies {
    padding-top: 100px;
    min-height: 100vh;
}

/* ============================================
   BARRE DE RECHERCHE
   ============================================ */

.search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.search-container h1 {
    color: #2d2d2d;
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 15px;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ff6b35;
    border-radius: 30px;
    background: white;
    box-shadow: 0 4px 15px 
                rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 6px 25px 
                rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.search-info {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* ============================================
   GRILLE DES VOIES
   ============================================ */

.voies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 
        repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ============================================
   CARTES DE VOIES
   ============================================ */

.voie-card {
    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 0.95),
        rgba(60, 60, 60, 0.95)
    );
    border: 2px solid #ff6b35;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.voie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 
                rgba(255, 107, 53, 0.4);
}

/* Miniature de la voie */
.voie-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(
        135deg,
        #555,
        #666
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

/* Informations de la voie */
.voie-info {
    padding: 20px;
    color: #e0e0e0;
}

.voie-info h3 {
    color: #ff6b35;
    font-size: 22px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.voie-info p {
    margin: 8px 0;
    line-height: 1.6;
    font-size: 14px;
}

.voie-info strong {
    color: #ff6b35;
}

.voie-info a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.voie-info a:hover {
    color: #f7931e;
    text-decoration: underline;
}

/* Badge de niveau */
.niveau-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid #ff6b35;
    font-weight: 700;
    font-size: 15px;
}

.description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid 
                rgba(255, 107, 53, 0.3);
    font-style: italic;
    color: #b0b0b0;
}

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

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.footer-content p {
    line-height: 1.8;
    color: #b0b0b0;
}

.footer-content a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-content a:hover {
    color: #f7931e;
    text-decoration: underline;
}

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

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

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

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

    nav a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .search-container h1 {
        font-size: 28px;
    }

    #searchInput {
        font-size: 14px;
        padding: 12px 18px;
    }

    .voie-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .search-container h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .voie-info h3 {
        font-size: 18px;
    }

    .voie-thumbnail {
        height: 150px;
    }
}