/* --- En-tête de page (Bannière) --- */
.page-header {
    height: 40vh; /* Moins haut que l'index */
    min-height: 350px;
    background-image: linear-gradient(rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 1)), url('../images_site/image_3.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Compense la navbar fixe */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.small-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.page-content {
    min-height: 60vh;
}

/* --- Design des Cartes --- */
.story-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 222, 128, 0.2); /* Léger bord vert au survol */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Image de la carte */
.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Contenu textuel de la carte */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meta-info {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.text-orange {
    color: #e85d04; /* Couleur orange/rouille */
}

.card-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.card-text {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pousse le lien vers le bas */
}

/* Lien d'action */
.read-more-link {
    color: #4ade80; /* Vert */
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
    align-self: flex-start;
}

.read-more-link:hover {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

/* --- Cartes (Cadenas) --- */
.locked-card {
    background-color: rgba(20, 22, 27, 0.4); /* Fond encore plus transparent pour se fondre au décor */
    border-color: rgba(255, 255, 255, 0.02); /* Bordure quasi invisible */
}

.locked-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

/* On désature l'image des cartes verrouillées */
.locked-card .card-img-wrapper img {
    filter: grayscale(80%) brightness(0.6);
}

.locked-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 13, 12, 0.6); /* Un fond sombre au lieu du noir pur */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem; /* Un poil plus gros */
    color: rgba(255, 255, 255, 0.4); /* Cadenas visible mais discret */
}

/* --- Ajustement du texte pour les cartes verrouillées --- */
/* On s'assure que le texte reste lisible (couleur plus sombre que le texte actif, mais pas invisible) */

.locked-card .card-title {
    color: #6b7280; /* Un gris clair/moyen */
}

.locked-card .card-text {
    color: #4b5563; /* Un gris un peu plus foncé pour la description */
}

.locked-card .category {
    color: #4b5563 !important; /* Force la couleur grise par dessus le text-muted de Bootstrap */
}

.locked-card .read-more-link {
    color: #4b5563 !important;
}

/* =========================================
   STYLE DE LA PAGE LECTURE (chapitre_histoire.php)
   ========================================= */
.chapter-container {
    margin-top: 2rem;
}

.chapter-title {
    font-family: 'Kanit', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.chapter-image-wrapper {
    max-width: 1100px; /* Limite la largeur pour que les images 1414x2000 ne prennent pas TOUT l'écran PC */
    width: 100%;
    background: rgba(15, 17, 21, 0.8);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.chapter-img {
    width: 100%;
    height: auto; /* Maintient le ratio 1414x2000 intact */
    display: block;
    transition: transform 0.2s;
    cursor: zoom-in; /* Indique au joueur qu'il peut cliquer */
}