/* ============================================================================
   styles_liste_site.css — v2.1.0
   ----------------------------------------------------------------------------
   ⚠️ SECTION 1 : STYLE ORIGINAL — restauré à L'IDENTIQUE (v1.0.0)
      Aucune valeur ci-dessous n'a été modifiée par rapport à l'original.
   ============================================================================ */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* Animation particles.js */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    z-index: -1;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2a5298;
    z-index: -1;
}

#toggleAnimation {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
    z-index: 100;
}

#toggleAnimation:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Style des panneaux */
.content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

h1 {
    text-align: center;
    color: #64ffda;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.panel-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.panel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.panel h2 {
    margin: 0;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.panel h2 a {
    color: #64ffda;
    text-decoration: none;
}

.panel a:hover {
    text-decoration: underline;
}

.panel p {
    line-height: 1.6;
    transition: all 0.3s ease;
}

.panel p:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.panel .full-description {
    display: none;
    margin-top: 15px;
}

.panel.expanded .full-description {
    display: block;
}

.panel.expanded .short-description,
.panel.expanded .show-more {
    display: none;
}

.show-more {
    color: #64ffda;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.panel .btn-3d {
    display: inline-block;
    background-color: #64ffda;
    color: #0a192f;
    padding: 10px 20px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px #1c3b57;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.panel .btn-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px #1c3b57;
    color: #0a192f;
}

.warning {
    color: #ff6b6b;
    font-weight: bold;
}

.success {
    color: #51cf66;
    font-weight: bold;
}

.private {
    color: #ffa94d;
    font-weight: bold;
}

/* Panneau de navigation en bas */
.panneau-background-discret-emile {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
    backdrop-filter: blur(5px);
}

.boutons-emile-gauche, .boutons-emile-droite {
    display: inline-block;
    width: 45%;
    text-align: center;
}

.bouton-emile {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.bouton-emile:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Responsive (original) */
@media only screen and (max-width: 600px) {
    .boutons-emile-gauche, .boutons-emile-droite {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .content {
        margin: 20px auto;
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    .panel {
        padding: 15px;
    }

    .panel h2 {
        font-size: 18px;
    }
}

@media only screen and (max-width: 400px) {
    .content {
        padding: 10px;
    }

    #toggleAnimation {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media only screen and (min-width: 1200px) {
    .content {
        max-width: 1000px;
    }
}

/* ============================================================================
   ⭐ SECTION 2 : NOUVEAUTÉS v2.1.0 — Ajouts additifs uniquement
      (aucune règle de la Section 1 n'est modifiée ici)
   ============================================================================ */

/* --- Sélecteur d'animation de fond (nouveau, en haut à droite) --- */
#animationSelector {
    position: fixed;
    top: 10px;
    right: 195px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    z-index: 100;
    transition: background 0.3s ease, transform 0.2s ease;
}

#animationSelector:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

#animationSelector option {
    color: #0a192f;
}

@media only screen and (max-width: 700px) {
    #animationSelector {
        top: 45px;
        right: 10px;
        font-size: 10px;
    }
}

/* --- Barre d'outils : recherche, filtres, modes d'affichage --- */
.toolbar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#searchInput {
    flex: 1;
    min-width: 220px;
    padding: 10px 15px;
    border: 1px solid rgba(100, 255, 218, 0.4);
    border-radius: 6px;
    background: rgba(10, 25, 47, 0.5);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchInput:focus {
    border-color: #64ffda;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.5);
}

.results-count {
    color: #64ffda;
    font-size: 14px;
    white-space: nowrap;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.7);
}

.filter-group select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid rgba(100, 255, 218, 0.4);
    background: rgba(10, 25, 47, 0.6);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:hover {
    border-color: #64ffda;
}

.filter-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
}

.filter-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    cursor: pointer;
}

.reset-btn {
    align-self: flex-end;
    background: transparent;
    border: 1px solid #64ffda;
    color: #64ffda;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.reset-btn:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-2px);
}

.display-modes-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.display-modes-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
}

.mode-btn:hover {
    background: rgba(100, 255, 218, 0.25);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #64ffda;
    color: #0a192f;
    font-weight: bold;
    border-color: #64ffda;
}

.no-results {
    text-align: center;
    color: #ff6b6b;
    font-size: 16px;
    margin: 30px 0;
}

.badge-new {
    display: inline-block;
    background: #feca57;
    color: #0a192f;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(254, 202, 87, 0.6); }
    50% { box-shadow: 0 0 10px rgba(254, 202, 87, 0.9); }
}

.private-note {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

/* --- Modes d'affichage sur #panelContainer --- */
#panelContainer.mode-liste {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#panelContainer.mode-tuiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

#panelContainer.mode-geant {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    align-items: start;
}

#panelContainer.mode-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#panelContainer.mode-compact .panel {
    padding: 10px 15px;
}

#panelContainer.mode-compact .panel h2 {
    font-size: 15px;
}

#panelContainer.mode-compact .full-description {
    font-size: 0.9em;
}

/* ============================================================================
   ⭐ SECTION 3 : HOVER OPTIMISÉS AU MAXIMUM (nouvelles classes uniquement)
      Ces classes s'ajoutent en surcouche via JS, sans toucher .panel / .btn-3d
      d'origine — le style de base reste identique, seul l'effet de survol
      devient plus riche.
   ============================================================================ */

.panel.hover-enhanced:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.25);
    transform: translateY(-4px) scale(1.01);
}

.panel.hover-enhanced h2 a {
    transition: text-shadow 0.3s ease, letter-spacing 0.3s ease;
}

.panel.hover-enhanced:hover h2 a {
    text-shadow: 0 0 14px rgba(100, 255, 218, 0.8);
    letter-spacing: 0.5px;
}

.panel .btn-3d {
    position: relative;
    overflow: hidden;
}

.panel .btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.panel .btn-3d:hover::before {
    left: 125%;
}

.bouton-emile {
    position: relative;
}

.bouton-emile:hover {
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
}

/* Petits écrans : la barre d'outils repasse en colonne unique */
@media only screen and (max-width: 600px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-checkbox {
        margin-top: 0;
    }

    .reset-btn {
        align-self: stretch;
    }

    #panelContainer.mode-tuiles,
    #panelContainer.mode-geant {
        grid-template-columns: 1fr;
    }
}
