/* --- Réinitialisation & Body --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* CHANGEMENT ICI : Fond noir uni */
    background-color: #000;
    color: #fff;
    font-family: 'Permanent Marker', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, rgba(46, 16, 46, 0.5) 0%, rgba(18, 3, 18, 0.8) 70%);
    background-color: rgba(18, 3, 18, 0.8);
}

/* --- En-tête (Header) --- */
header {
    width: 100%;
    text-align: center;
    padding: 40px 0 20px 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(46, 16, 46, 0.5) 0%, rgba(18, 3, 18, 0.8) 70%);
}

/* --- Conteneur du Logo Image --- */
.logo-container {
    width: 100%; 
    height: auto;
    margin-bottom: 20px;
    text-align: center; 
}

.logo-image {
    width: 500px; 
    max-width: 80%; 
    height: auto;
    display: block; 
    margin: 0 auto; 
    transform: rotate(-2deg); 
    /* J'ai gardé l'effet de lueur, ça ressortira bien sur le noir */
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.7)); 
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* --- Icônes Réseaux Sociaux (Rond Image) --- */
.social-media-icons {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}

.social-icon-round {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #e0b0ff;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Légère ombre blanche */
}

.social-icon-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-icon-round:hover {
    border-color: #ff69b4;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px #ff69b4;
}

/* --- Menu de Navigation --- */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #e0b0ff;
    text-decoration: none;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-family: 'Permanent Marker', cursive;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px #e0b0ff;
}

/* --- Conteneur Principal --- */
main {
    width: 90%;
    max-width: 1200px;
    margin-bottom: 50px;
}

.content-box {
    /* CHANGEMENT ICI : Fond noir pour la boîte de contenu */
    background-color: #000;
    border: 4px solid #333; /* Bordure un peu plus visible */
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2); /* Légère lueur rose */
}

/* --- Titre du Chapitre --- */
.chapter-header {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Uncial Antiqua', cursive;
}

.chapter-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.chapter-header h3 {
    font-size: 3rem;
    color: #fff;
    font-weight: normal;
}

/* --- Grille Galerie --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
}

.page-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 200px;
}

.img-wrapper {
    width: 100%;
    border: 2px solid #333;
    transition: transform 0.2s ease;
    cursor: pointer;
    background-color: #000;
}

.img-wrapper:hover {
    transform: scale(1.05);
    border-color: #ff69b4;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.page-label {
    margin-top: 10px;
    color: #fff;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* --- Barre d'outils Admin --- */
.admin-toolbar {
    width: 100%;
    max-width: 600px;
    margin: 40px 0;
    padding: 20px;
    background-color: #000;
    border: 2px dashed #333;
    border-radius: 10px;
    text-align: center;
}

.admin-toolbar h3 {
    color: #888;
    font-family: 'Bangers', cursive;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-admin {
    padding: 10px 20px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    color: #fff;
    transform: rotate(-2deg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-admin:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 5;
}

.btn-admin:active {
    box-shadow: 2px 2px 0 #fff;
    transform: translate(2px, 2px);
}

.btn-chap {
    background-color: #5dcefa;
    color: #000;
    box-shadow: 4px 4px 0 #fff;
}

.btn-page {
    background-color: #ff69b4;
    color: #000;
    box-shadow: 4px 4px 0 #fff;
}
