/* =========================================
   1. BASE ET MISE EN PAGE GÉNÉRALE
   ========================================= */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Playfair Display', serif; /* Une police élégante */
    background-color: #0b0b0b; /* Noir profond */
    color: white;
    overflow-x: hidden;
}

/* Image de fond avec voile sombre */
.fond-image {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../img/fond.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh; /* Utilisation de min-height pour s'adapter au contenu */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Le cadre transparent (Glassmorphism) */
.cadre-luxe {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 4rem;
    margin: 0;
    letter-spacing: 8px;
    color: #d4af37; /* Couleur Or */
}

.description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 30px 0;
    text-align: justify;
}

/* =========================================
   2. BOUTONS ET NAVIGATION
   ========================================= */
.bouton-entrer {
    padding: 15px 40px;
    background: #d4af37;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.4s;
    display: inline-block;
}

.bouton-entrer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    background: white;
}

/* Style pour les onglets de navigation (Menu bibliothèque) */
.nav-item {
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.6;
    text-transform: uppercase;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
    color: #d4af37;
}

/* =========================================
   3. CARTES DE LA BIBLIOTHÈQUE (NOUVEAU)
   ========================================= */
.carte-contenu {
    cursor: pointer;
    transition: transform 0.4s ease; /* Mouvement doux */
    position: relative;
}

.carte-contenu:hover {
    transform: scale(1.05); /* La carte s'agrandit légèrement au survol */
}

.image-box {
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a; /* Fond de secours si l'image ne charge pas */
}