/* style pour être identique aux autres pages*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background: #1c1c1c url('image/fond.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    overflow: auto;
}

.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-title {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 5px;
}

.main-title img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(230, 36, 41, 1))
            drop-shadow(0 0 30px rgba(230, 36, 41, 0.7));
    animation: neonGlow 2s infinite alternate;
}

.character-details-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 20px;
    flex-grow: 1;
}
/* design des cartes de détails*/
.character-card {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    background: rgba(14, 1, 77, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(230, 36, 41, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(230, 36, 41, 0.3);
    margin: 0;
}

.character-image-container {
    height: 350px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.character-info {
    padding: 25px;
}

.character-info h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e62429;
    padding-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 15px;
}

.character-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #f0e7e7;
    font-weight: 300;
}

.character-meta {
    margin-top: 20px;
}

.character-meta h3 {
    color: #e62429;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.character-meta p {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 300;
}
/*design du bouton retour*/
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e62429;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    background-color: #c11a1f;
}

.error-message {
    text-align: center;
    color: #e62429;
    font-size: 1.2rem;
    margin-top: 50px;
    font-weight: 500;
}

@keyframes neonGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(230, 36, 41, 1))
                drop-shadow(0 0 20px rgba(230, 36, 41, 0.7));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(230, 36, 41, 1))
                drop-shadow(0 0 30px rgba(230, 36, 41, 0.7));
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .character-image-container {
        height: 300px;
    }
    
    .character-info {
        padding: 20px;
    }
}