/* 
 * Styles pour le nouveau système de recherche spatiale - Black Orion Theme
 * Design futuriste avec thème spatial (espace, planètes, étoiles)
 */

 .space-search-container {
    background: linear-gradient(to bottom, #000000 0%, #1a1a1a 50%, #000000 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 10;
}

/* Conteneur principal de recherche */
.search-main {
    position: relative;
    z-index: 10;
}

/* Barre de recherche principale */
/* Barre de recherche principale */
.search-bar-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-bar-container:hover, 
.search-bar-container:focus-within {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Encart de recherche */
.search-input-space {
    flex: 1;
    background: transparent !important; /* Forcer la transparence */
    border: none !important; /* Pas de bordure */
    color: #fff !important; /* Texte blanc */
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    outline: none !important; /* Pas de contour de focus */
    box-shadow: none !important; /* Pas d'ombre */
    display: flex; /* Ajouter flex pour centrage */
    align-items: center; /* Centrer verticalement */
    line-height: 1; /* Ajuster la hauteur de ligne pour éviter un décalage */
    min-width: 0;
}

.search-input-space::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-space:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.search-button {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.search-button:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.search-button i {
    font-size: 1.2rem;
}

/* Bouton de filtres avancés */
.filter-toggle {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.filter-toggle:hover {
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 215, 0, 0.1);
}

.filter-toggle i.fa-filter {
    transition: color 0.3s;
}

.filter-toggle.active i.fa-filter {
    color: #ffd700;
}

/* Panneau de filtres avancés */
.filters-panel {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    position: relative;
    z-index: 20;
}

.filters-panel.active {
    display: block;
}

/* Sections de filtres */
.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.filter-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0));
}

.filter-section h3 i {
    color: rgba(255, 215, 0, 0.8);
}

/* Grille de filtres */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

/* Éléments de filtre */
.filter-item {
    position: relative;
}

.filter-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-label:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.filter-checkbox:checked + .filter-label {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.filter-label::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-checkbox:checked + .filter-label::before {
    background: rgba(255, 215, 0, 0.8);
    border-color: rgba(255, 215, 0, 1);
}

.filter-checkbox:checked + .filter-label::after {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 9px;
    font-size: 12px;
    color: #fff;
}

/* Sélecteurs et champs texte */
.filter-select-container, 
.filter-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.filter-select, 
.filter-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-select:focus, 
.filter-input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.filter-select option {
    background-color: #000000;
    color: #fff;
}

/* Boutons d'action */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.filter-reset {
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.filter-apply {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-apply:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

/* Badges de filtres actifs */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-badge {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.filter-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.filter-badge-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.filter-badge-remove:hover {
    color: #fff;
}

/* Styles spécifiques pour chaque type de filtre */
.filter-genre {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(182, 162, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.4);
}

.filter-type {
    background: linear-gradient(45deg, rgba(255, 94, 98, 0.2), rgba(255, 153, 102, 0.2));
    border-color: rgba(255, 94, 98, 0.4);
}

.filter-status {
    background: linear-gradient(45deg, rgba(106, 90, 205, 0.2), rgba(72, 61, 139, 0.2));
    border-color: rgba(106, 90, 205, 0.4);
}

.filter-team {
    background: linear-gradient(45deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    border-color: rgba(46, 204, 113, 0.4);
}

.filter-author {
    background: linear-gradient(45deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.2));
    border-color: rgba(241, 196, 15, 0.4);
}

/* Effet de survol sur les éléments de la grille de mangas */
.manga-item {
    position: relative;
    overflow: hidden;
}

.manga-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.manga-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Particules pour les boutons */
.button-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    bottom: 0;
    animation: particle-rise 1s ease-out forwards;
}

@keyframes particle-rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) translateX(calc(10px - 20px * var(--random, 0.5)));
        opacity: 0;
    }
}

/* Message d'erreur */
.search-error-message {
    background-color: rgba(255, 87, 87, 0.2);
    border: 1px solid rgba(255, 87, 87, 0.4);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    animation: fade-in 0.3s ease;
}

.search-error-message i {
    color: #ff5757;
    margin-right: 0.5rem;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.manga-rating {
    margin-top: 5px; /* ou 8px selon ce que tu préfères */
}

/* Styles de template-projets.php (placés à la fin pour prendre la priorité) */
.space-search-container {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.search-bar-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-space {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(65, 105, 225, 0.5);
    border-radius: 5px;
    background: rgba(9, 10, 15, 0.9);
    color: #fff;
    font-size: 16px;
}

.search-button {
    background: #ffd700;
}

.search-button:hover {
    background: #00d8ff;
}

.filter-toggle i.fa-filter {
    transition: color 0.3s;
}

.filter-toggle.active i.fa-filter {
    color: #ffd700;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filters-panel {
    display: none;
    padding-top: 15px;
    margin-top: 40px;
}

.filters-panel.active {
    display: block;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    color: #fff;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
}

.filter-tag input[type="checkbox"] {
    display: none;
}

.filter-tag label {
    padding: 5px 10px;
    background: rgba(225, 215, 65, 0.2);
    border: 1px solid rgba(225, 185, 65, 0.5);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag input[type="checkbox"]:checked + label {
    background: #ffd700ab;
    border-color: #ffe300;
}

.filter-tag label:hover {
    background: rgba(225, 188, 65, 0.4);
}

.search-reset {
    display: block;
    margin: 0 auto;
    background: #e74c3c;
}

.search-reset:hover {
    background: #ff6666;
}

.manga-archive-page {
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.black-orion-search-container {
    position: relative;
    z-index: 2;
}

.manga-page-wrapper {
    padding: 40px 0;
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

.c-search-header__wrapper {
    background-color: rgba(22, 33, 62, 0.5);
    padding: 30px 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.search-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.manga-search-form {
    flex: 1;
    position: relative;
}

.manga-search-field {
    width: 100%;
    padding: 12px 15px;
    padding-right: 50px;
    border: 1px solid rgba(65, 105, 225, 0.3);
    border-radius: 5px;
    background-color: rgba(9, 10, 15, 0.7);
    color: var(--color-white);
    font-size: var(--font-size-normal);
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    border: none;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.btn-search-adv {
    padding: 12px 20px;
    background-color: rgba(15, 52, 96, 0.7);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.icon-search-adv {
    display: inline-block;
    width: 12px;
    height: 12px;
    position: relative;
}

.icon-search-adv:before,
.icon-search-adv:after {
    content: '';
    position: absolute;
    background-color: var(--color-white);
    transition: transform 0.3s ease;
}

.icon-search-adv:before {
    width: 12px;
    height: 2px;
    top: 5px;
    left: 0;
}

.icon-search-adv:after {
    width: 2px;
    height: 12px;
    top: 0;
    left: 5px;
}

.btn-search-adv.collapsed .icon-search-adv:after {
    transform: rotate(90deg);
}

.search-advanced-form {
    padding: 20px;
    background-color: rgba(9, 10, 15, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(65, 105, 225, 0.2);
}

.search-advanced-form .form-group {
    margin-bottom: 20px;
}

.search-advanced-form .label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-white);
    font-size: 1rem;
}

.search-advanced-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(65, 105, 225, 0.3);
    border-radius: 5px;
    background-color: rgba(9, 10, 15, 0.7);
    color: var(--color-white);
}

.search-advanced-form .checkbox {
    margin-bottom: 10px;
}

.search-advanced-form .checkbox input[type="checkbox"] {
    margin-right: 5px;
}

.search-advanced-form .checkbox label {
    color: var(--color-white);
}

.search-advanced-form .group-btn {
    display: flex;
    gap: 15px;
}

.c-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.c-btn_style-1 {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.c-btn_style-2 {
    background-color: rgba(231, 76, 60, 0.7);
    color: var(--color-white);
}

.c-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.manga-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: var(--font-secondary);
    font-size: var(--font-size-xxlarge);
    color: var(--color-white);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-description {
    color: #cccccc;
    font-size: var(--font-size-medium);
    max-width: 800px;
    margin: 0 auto;
}

.manga-results-section {
    margin-top: 40px;
}

.manga-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(225, 223, 65, 0.2);
}

.results-title {
    font-family: var(--font-secondary);
    font-size: var(--font-size-large);
    color: var(--color-white);
    margin: 0;
}

.results-title i {
    color: var(--color-accent);
    margin-right: 10px;
}

.manga-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manga-sort select {
    padding: 8px 15px;
    border: 1px solid rgba(225, 223, 65, 0.2);
    border-radius: 5px;
    background-color: rgba(9, 10, 15, 0.7);
    color: var(--color-white);
    cursor: pointer;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.manga-item {
    transition: all 0.3s ease;
	display: flex;
    flex-direction: column;
    height: 100%;
}

.manga-item:hover {
    transform: translateY(-5px);
}

.manga-item-inner {
    background-color: rgba(26, 26, 26, 0.4);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(225, 223, 65, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.manga-cover-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.manga-cover {
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.manga-item:hover .manga-cover {
    transform: scale(1.05);
}

.manga-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: rgba(9, 10, 15, 0.7);
    color: var(--color-white);
}

.manga-status.on-going {
    background-color: rgba(46, 204, 113, 0.8);
}

.manga-status.end {
    background-color: rgba(52, 152, 219, 0.8);
}

.manga-status.canceled {
    background-color: rgba(231, 76, 60, 0.8);
}

.manga-status.on-hold {
    background-color: rgba(243, 156, 18, 0.8);
}

.manga-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background-color: rgba(9, 10, 15, 0.8);
    color: var(--color-white);
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-footer {
    margin-top: auto;
    align-items: center;
    padding-top: 10px;
}

.manga-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.manga-title {
    font-size: var(--font-size-normal);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.manga-title a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.manga-title a:hover {
    color: var(--color-accent);
}

.manga-genres {
    font-size: 0.8rem;
    color: #cccccc;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.8rem;
    order: 2;
}

.manga-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.manga-chapters {
    color: #cccccc;
    margin-bottom: 5px;
}

.manga-chapters i {
    color: var(--color-accent);
    margin-right: 3px;
}

.rating-stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0;
}

.no-results i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    color: var(--color-white);
}

.no-results p {
    color: #cccccc;
}

.manga-pagination {
    margin-top: 40px;
    text-align: center;
}

.manga-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: rgba(26, 26, 26, 0.4);
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(225, 223, 65, 0.2);
}

.manga-pagination .page-numbers.current {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.manga-pagination .page-numbers:hover {
    background-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 1200px) {
    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .manga-cover {
        height: 240px;
    }
    .search-content {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-search-adv {
        text-align: center;
        justify-content: center;
    }
    .manga-chapters {
        font-size: 0.9rem; /* Réduire la taille des compteurs de chapitres */
    }
}

@media (max-width: 768px) {
    .manga-page-header {
        margin-bottom: 30px;
    }
    .page-title {
        font-size: var(--font-size-xlarge);
    }
    .page-description {
        font-size: var(--font-size-normal);
    }
    .manga-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .manga-cover {
        height: 220px;
    }
    .manga-details {
        padding: 10px;
    }
    .manga-title {
        font-size: 0.9rem;
    }
    .search-bar-container {
        flex-direction: column;
        padding: 0.8rem;
    }
    .search-input-space {
        width: 100%;
    }
    .search-button {
        width: 100%;
        justify-content: center;
    }
    .filter-toggle {
        margin-left: 0;
        margin-top: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    .filter-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .filter-actions {
        flex-direction: column;
    }
    .filter-reset, .filter-apply {
        width: 100%;
    }
    .planet {
        width: 100px;
        height: 100px;
    }
    .planet-rings {
        width: 150px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .manga-page-wrapper {
        padding: 20px 0;
    }
    .page-title {
        font-size: var(--font-size-large);
    }
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Garder un espacement cohérent */    }
    .manga-cover {
        height: 220px;
    }
    .manga-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .filter-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .planet, .planet-rings {
        display: none;
    }
    /* Rendre la barre de recherche plus pratique */
    .search-bar-container {
        flex-direction: row;
        padding: 0.3rem;
        gap: 5px;
        align-items: center;
    }
    .search-input-space {
        flex: 1;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        line-height: 1; /* Garder la hauteur de ligne cohérente */
        display: flex;
        align-items: center;
    }
    .search-input-space::placeholder {
        font-size: 0.9rem; /* Réduire aussi la taille du placeholder */
    }
    .filter-toggle {
        padding: 5px 15px;
        font-size: 13px;
        min-height: 36px; /* Hauteur ajustée pour rester compact */
        margin-top: 0; /* Supprimer la marge du haut */
        width: auto; /* Ne pas prendre toute la largeur */
    }
    
    /* Pagination plus petite et sur une seule ligne */
    .manga-pagination {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        gap: 3px;
        -webkit-overflow-scrolling: touch; /* Améliore le défilement sur iOS */
    }
    .manga-pagination .page-numbers {
        padding: 4px 8px;
        font-size: 10px;
        margin: 0 2px;
        min-width: 24px;
        text-align: center;
    }
    .manga-pagination .page-numbers i {
        font-size: 10px;
    }
    /* Réactiver la planète et les anneaux */
    .planet, .planet-rings {
        display: block; /* Réafficher les éléments */
    }

    /* Réduire la taille de la planète */
    .planet {
        width: 80px; /* Réduire de 150px à 80px */
        height: 80px;
        top: -20px;
        right: -20px;
    }

    .planet::after {
        width: 90px;
        height: 20px;
        top: 30px;
        left: -5px;
    }

    /* Réduire la taille des anneaux */
    .planet-rings {
        width: 110px; /* Réduire de 220px à 110px */
        height: 20px;
        border: 4px solid rgba(255, 215, 0, 0.2); /* Réduire l'épaisseur de la bordure */
        top: 15px;
        right: -25px;
    }

    /* Réduire la taille de la fusée */
    .rocket {
        width: 40px; /* Réduire de 60px à 40px */
        height: 40px;
        bottom: 10px;
        left: 5%;
    }

    .rocket-body {
        width: 16px; /* Réduire proportionnellement */
        height: 30px;
        left: 12px;
    }

    .rocket-window {
        width: 6px;
        height: 6px;
        top: 6px;
        left: 5px;
    }

    .rocket-fin {
        width: 10px;
        height: 5px;
    }

    .fin-left {
        left: 3px;
        bottom: 5px;
    }

    .fin-right {
        right: 3px;
        bottom: 5px;
    }

    .rocket-bottom {
        width: 16px;
        height: 5px;
        left: 12px;
    }

    .rocket-flame {
        width: 14px;
        height: 20px;
        bottom: -15px;
        left: 13px;
    }
    @keyframes flame-improved {
        0% {
            height: 15px;
            opacity: 0.7;
        }
        50% {
            height: 25px;
            opacity: 1;
        }
        100% {
            height: 15px;
            opacity: 0.7;
        }
    }

    @keyframes rocket-fly-improved {
        0% {
            transform: translateX(0) translateY(0) rotate(45deg);
        }
        15% {
            transform: translateX(10px) translateY(-10px) rotate(40deg);
        }
        30% {
            transform: translateX(20px) translateY(-3px) rotate(45deg);
        }
        45% {
            transform: translateX(30px) translateY(-15px) rotate(50deg);
        }
        60% {
            transform: translateX(40px) translateY(-5px) rotate(45deg);
        }
        75% {
            transform: translateX(20px) translateY(3px) rotate(40deg);
        }
        90% {
            transform: translateX(10px) translateY(5px) rotate(45deg);
        }
        100% {
            transform: translateX(0) translateY(0) rotate(45deg);
        }
    }
}

@media (max-width: 375px) {
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .manga-cover {
        height: 220px;
    }
}
@media (max-width: 480px) {

    .filter-tag label {
        padding: 2px 10px;
        font-size: 14px !important;
    }
}    
/* Styles spécifiques pour PC (993px et plus) */
@media (min-width: 993px) {
    .manga-title {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        order: 0;
    }
    .manga-details {
        position: relative;
        padding-bottom: 40px; /* Réserve de l'espace pour .manga-meta */
    }
    .manga-meta {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        margin-top: 0;
    }
    .manga-chapters {
        margin-bottom: 0;
    }
}