/* Container principal */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* prend toute la hauteur de l'écran */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Titre principal */
h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* Titre des sections */
h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-top: 40px;
    text-transform: capitalize;
}

/* Contenu principal flexible */
.image-container {
    flex: 1; /* prend tout l'espace disponible */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

/* Assurez-vous que ces styles sont adaptés à vos besoins */
#ex_pose_image_{{ image.fullname }}, #ex_image_{{ image.fullname }} {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s ease-in-out;
}

/* Conteneur d'un personnage */
.image-item {
    background-color: #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    width: 200px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Effet au survol */
.image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Style des images */
.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s ease-in-out;
}

/* Texte + infos */
.image-info {
    min-width: 95%;
    min-height: 95%;
    position: relative;
    z-index: 1;
    padding: 10px;
    background-color: rgba(40, 40, 40, 0.5);
    border-radius: 5px;
}

.image-info p {
    margin-top: 10px;
    font-size: 1em;
    color: white;
}

.no-picture {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.status.green {
    color: greenyellow;
    font-weight: bold;
}

.status.orange {
    color: coral;
    font-weight: bold;
}

.ex-button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 1em;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ex-button:hover {
    background-color: #27ae60;
}

#ex_image_{{ image.fullname }} {
    display: none;
}

#normal_image_{{ image.fullname }}, #ex_image_{{ image.fullname }} {
    opacity: 1;
}

.icon-container {
    margin-top: 8px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.chara-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    text-align: center;
}

/* Recherche + Pagination */
#searchBar {
    width: 300px;
    padding: 10px;
    margin: 20px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Pagination en bas */
#pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px; /* espace entre les boutons */
}

/* Boutons pagination */
#pagination button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#pagination button.active {
    background-color: #2980b9;
    font-weight: bold;
}

#pagination button:hover {
    background-color: #1f6391;
    transform: scale(1.05);
}