/* --- Styles pour la Page Hangar --- */

.hangar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hangar-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hangar-header h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--primary-color);
}
.hangar-header p {
    font-size: 1.1rem;
    color: #ccc;
}

/* --- Grille des Drones --- */
.hangar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- Carte de Drone --- */
.drone-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 420px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid #2a2a2a;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    transform-style: preserve-3d;
}

/* Effet 3D au survol */
.drone-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
    transition: filter 0.4s ease;
}
.drone-card:hover .card-image {
    filter: brightness(1.1);
}

.card-content {
    padding: 1.5rem;
    height: 40%;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: white;
    margin: 0;
}
.card-pilot {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.card-type-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-tech, monospace);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Style pour les cartes filtrées (cachées) */
.drone-card.is-hidden {
    transform: scale(0.5);
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    gap: 0;
}

/* ================================================= */
/* == STYLES AMÉLIORÉS POUR LES FILTRES DU HANGAR == */
/* ================================================= */

/* Conteneur des boutons de filtre */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur petit écran */
    gap: 1rem;
    margin: 3rem auto 4rem; /* Augmente la marge pour plus d'aération */
}

/* Style de base pour chaque bouton */
.filter-btn {
    /* On retire l'apparence par défaut du navigateur */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* On applique la police "tech" du site */
    font-family: var(--font-tech, monospace);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase; /* Met le texte en majuscules pour un style plus "UI" */
    
    /* Couleurs et bordure */
    background-color: transparent;
    border: 1px solid #444; /* Bordure discrète */
    color: var(--text-color);
    
    /* Forme et espacement */
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* On crée la forme de "gélule" */

    cursor: pointer;
    transition: all 0.3s ease-in-out; /* Animation fluide */
}

/* Effet au survol de la souris */
.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px); /* Léger mouvement vers le haut */
}

/* Style du bouton ACTIF (le filtre sélectionné) */
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg); /* Texte foncé pour un contraste maximum */
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4); /* Effet de lueur */
    transform: translateY(-3px) scale(1.05); /* Le met légèrement en avant */
}