/* ===================================================
   1. CONFIGURATION GLOBALE - STYLE SHINIGAMI
   =================================================== */
body {
    margin: 0;
    padding: 10px;
    font-family: 'Georgia', serif;
    background-image: url('../images/galerie/bleach-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 15px;
    color: #f0f0f0;
}

/* ===================================================
   2. HEADER & NAVIGATION
   =================================================== */
header {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(8px);
    border-bottom: 3px solid #f39c12;
    border-radius: 8px 8px 0 0;
}
/* Conteneur principal de la galerie */
.galerie-container {
    display: flex;       /* Aligne les éléments horizontalement */
    flex-wrap: wrap;     /* Permet de passer à la ligne automatiquement */
    gap: 15px;           /* Espace entre les photos */
    justify-content: center; /* Centre les photos sur la page */
    padding: 20px 0;
}

/* Chaque bloc contenant une photo */
.photo-item {
    margin: 5px;
}

/* Style des images pour une taille "moyenne" */
.photo-item img {
    width: 280px;        /* Largeur moyenne choisie */
    height: 200px;       /* Hauteur fixe pour l'uniformité */
    object-fit: cover;   /* Recadre l'image sans la déformer/l'écraser */
    border-radius: 8px;  /* Arrondi les angles pour un look plus moderne */
    border: 2px solid #444; /* Petit contour discret */
    transition: 0.3s ease-in-out; /* Animation fluide au survol */
    cursor: pointer;
}

/* Petit effet au survol de la souris */
.photo-item img:hover {
    transform: scale(1.05); /* Zoom très léger */
    border-color: orange;   /* Le bord devient orange (couleur Bleach) */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Ajoute une ombre */
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

/* Boutons Musique */
.controls button {
    padding: 5px 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

#btn-on { background-color: #2980b9; color: white; }
#btn-off { background-color: #c0392b; color: white; }
.controls button:hover { transform: scale(1.1); }

/* Menu de navigation */
nav ul { list-style: none; display: flex; gap: 25px; padding: 0; }
nav ul li a { text-decoration: none; color: #ffffff; font-weight: bold; text-transform: uppercase; transition: 0.3s; }
nav ul li a:hover { color: #f39c12; }

nav ul li a.active {
    color: #f39c12 !important;
    border-bottom: 2px solid #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.8);
}

/* ===================================================
   3. CONTENU PRINCIPAL & TABLEAUX
   =================================================== */
main {
    background-color: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(5px);
    flex-grow: 1;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #ffffff;
}

#montableau {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.4);
    color: #f0f0f0;
}

#montableau thead {
    background-color: rgba(243, 156, 18, 0.8);
    color: black;
}

#montableau td, #montableau th {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================================
   4. STYLE DES SECTIONS (ACCUEIL & PARTENAIRES)
   =================================================== */
.bleach-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.bleach-intro h1 {
    font-size: 2.8em;
    color: #f39c12;
    text-shadow: 3px 3px 5px #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Blocs d'articles (Ichigo, Sidonie, Léa) */
.hero-section, .ost-section {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    border-left: 5px solid #f39c12;
    transition: transform 0.3s ease;
}

.hero-section:hover, .ost-section:hover {
    transform: translateX(10px);
}

.ost-section {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 5px solid #f39c12;
}

/* Images des membres et héros */
.image-box img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

/* Textes et Descriptions */
.text-content h2 {
    color: #f39c12;
    font-size:1.15em;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-top: 1px solid rgba(243, 156, 18, 0.5);
    border-bottom: 1px solid rgba(243, 156, 18, 0.5);
}

strong { color: #f39c12; }
em { color: #ffcc66; font-style: italic; }

/* ===================================================
   6. FOOTER & MOBILE
   =================================================== */
footer {
    background-color: rgba(0, 0, 0, 0.3) !important;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #333;
}

@media (max-width: 768px) {
    .hero-section, .ost-section { flex-direction: column; text-align: center; }
    /* --- GRILLE D'EVOLUTION ICHIGO --- */
.evolution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur PC */
    gap: 20px;
    margin-top: 30px;
}

.evolution-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f39c12;
    transition: 0.3s;
    text-align: center;
}

.evolution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px #f39c12;
}

.evolution-card img {
    width: 100%;
    height: 150px;
    object-fit: cover; /* Garde une belle image même si elles n'ont pas la même taille */
    border-radius: 5px;
    margin-bottom: 10px;
}

.evolution-card p {
    font-weight: bold;
    color: #f39c12;
    margin: 0;
    font-size: 0.9em;
    text-transform: uppercase;
}

/* Adaptation Mobile : 2 colonnes seulement */
@media (max-width: 600px) {
    .evolution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- GRILLE D'EVOLUTION ICHIGO (Version mini) --- */

.evolution-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Espacement réduit entre les cartes */
    padding: 10px;
}

.evolution-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #f39c12;
    border-radius: 8px;
    padding: 10px;
    /* On force 3 colonnes en comptant les gaps */
    width: calc(30% - 10px); 
    max-width: 180px; /* Limite la largeur maximale */
    text-align: center;
    transition: 0.3s;
}

.evolution-card:hover {
    border-color: #ffffff;
    transform: scale(1.02);
}

.evolution-card img {
    width: 100%;       
    height: 120px;     /* TAILLE RÉDUITE ICI */
    object-fit: cover; 
    border-radius: 4px;
    filter: grayscale(30%); /* Petit effet stylé qui s'enlève au survol */
    transition: 0.3s;
}

.evolution-card:hover img {
    filter: grayscale(0%);
}

.evolution-card p {
    color: #f39c12;
    font-size: 0.75em; /* Texte plus petit pour aller avec l'image */
    margin-top: 8px;
    font-weight: bold;
    text-transform: uppercase;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Images de 200px minimum */
    gap: 15px; /* Espacement */
    padding: 20px;
}

.container img {
    width: 100%;       /* Prend toute la largeur de la colonne de la grille */
    height: auto;      /* Garde les proportions d'origine */
    border-radius: 5px;
}
