/* Style général */
@font-face {
    font-family: 'Caligraf';
    src: url('../assets/fonts/Caligraf.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
html, body {
    height: 100%;
    overflow: hidden; /* Évite le scroll général */
}

body {
    margin: 0;
	background-color: #693800;
    font-family: 'Georgia', serif;
    background: url('../assets/images/fond_mediaval.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #F0D9B5; /* Texte général blanc */
}

/* Header */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent brun-noir */
    padding: 10px 20px;
    border-bottom: 2px solid #8a6442;
}

#logo img {
    height: 60px;
}

#menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
     background: transparent; /* fond totalement transparent */
    padding: 15px 0;
    margin: 0;
}

#menu ul li {
    margin: 0 10px;
}

#menu ul li a {
    text-decoration: none;
    font-family: 'Caligraf', cursive;
    font-size: 28px;
    font-weight: normal;
    background: linear-gradient(to bottom, #f7e199 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding: 0 10px; /* <<< ajouté */
    transition: all 0.3s ease;
}


#menu ul li a:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px #ffcc00, 0 0 15px #ffcc00;
}


/* Main layout */
#main {
    display: flex;
    height: calc(100vh - 80px); /* reste correct */
    overflow: hidden; /* important pour empêcher l'excès de hauteur */
}

#main > * {
    min-height: 0;     /* nécessaire pour overflow-y fonctionner avec flexbox */
    overflow-y: auto;  /* permet le scroll interne sans déclencher celui de la page */
}

/* Livres section */
#livres {
    flex: 2;
    background-color: rgba(0, 0, 0, 0.5); /* Fond transparent sombre */
    padding: 20px;
    overflow-y: auto;
}

#livres h2 {
    text-align: center;
    text-decoration: none;
    font-family: 'Caligraf', cursive;
    font-size: 32px;
    font-weight: normal;
    background: linear-gradient(to bottom, #f7e199 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding: 0 10px; /* <<< ajouté */
    transition: all 0.3s ease;
}


#listeLivres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px;
    padding: 20px;
}

/* Carte Livre */
.warning {
    background-color: rgba(0, 0, 0, 0.7); /* Plus sombre pour les cartes */
    padding: 10px;
    border-radius: 10px;
    width: 180px;
    transition: transform 0.3s ease;
    text-align: center;
}

.warning:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.9);
}

.book-image {
    width: 270px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 2px solid; /* #f0d9b5; */
	border-color: #b8860b;
}

.warning p {
    font-size: 16px;
    margin: 0;
    color: #f0e6d2;
    min-height: 60px; /* Ajouté pour forcer la hauteur minimale */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Avatar section */
#avatar {
    width: 400px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#unityContainer {
    width: 100%;
    height: 500px;
    background-color: #000;
    margin-bottom: 10px;
}

#interaction {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#interaction input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
}

#interaction button {
    padding: 8px 12px;
    font-size: 18px;
    background-color: #6b4e2e;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

#interaction button:hover {
    background-color: #8a6442;
}

/* Boutons Amazon et Retour */
.bouton {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    background-color: #6b4e2e;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.bouton:hover {
    background-color: #8a6442;
}

/* Scrollbar pour la liste de livres */
#livres::-webkit-scrollbar {
    width: 8px;
}
#livres::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
}
#livres::-webkit-scrollbar-thumb {
    background-color: #6b4e2e;
    border-radius: 10px;
}

#unity-overlay::-webkit-scrollbar {
    width: 8px; /* largeur de la scrollbar */
}

#unity-overlay::-webkit-scrollbar-track {
    background: #3b2b1b; /* Couleur de fond de la track (brun foncé) */
}

#unity-overlay::-webkit-scrollbar-thumb {
    background-color: #8b5a2b; /* Couleur du bouton (brun plus clair) */
    border-radius: 4px;
}

#unity-overlay::-webkit-scrollbar-thumb:hover {
    background-color: #a97443; /* Couleur au survol */
}

#unity-overlay ul {
    list-style-position: inside; /* ✅ Les puces seront à l'intérieur, alignées avec le texte */
    padding-left: 0; /* ✅ Enlève l'énorme décalage à gauche */
    margin: 0; /* (optionnel) Évite trop d'espace autour */
}

#unity-overlay li {
    margin-bottom: 5px; /* ✅ Petit espace entre chaque item */
}
/* Liens */
a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    color: white;
}
#chat-text {
    opacity: 0;
    transition: opacity 1.5s ease;
}

#chat-text.visible {
    opacity: 1;
}

#top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#logo-center img {
    width: 68px;
    height: 68px; /* Ajoute une hauteur identique à la largeur */
    object-fit: cover; /* Pour que l'image remplisse bien sans être déformée */
    border-radius: 50%; /* Rend l'image ronde */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#logo-center img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #FFD700, 0 0 25px #FFD700;
}
#golden-bar {
    width: 0%;
    height: 2px;
    background-color: #D49D27;
    margin: 0 auto;
    animation: expandBar 2s ease-out forwards;
    margin-top: 10px; /* espace en haut si besoin */
}

@keyframes expandBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%; /* ou 100% si tu veux qu'elle prenne tout */
    }
}

.logo-glow {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.logo-glow img {
    width: auto;
    height: 60px; /* Ajuste selon ta taille */
    display: block;
}

.logo-glow::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    50% {
        left: 125%;
    }
    100% {
        left: 125%;
    }
}

.titre-livre {
    text-align: center;
    font-family: 'Caligraf', 'Georgia', 'Times New Roman', serif;
    color: #F0D9B5;
    font-size: 30px;
    text-decoration: none;
    padding: 10px 15px;
    letter-spacing: 1px;
    margin-top: -25px;
}

h1 {
	text-decoration: none;
    font-family: 'Caligraf', cursive;
    font-size: 2.8em;
    font-weight: normal;
    background: linear-gradient(to bottom, #f7e199 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding: 0 10px; /* <<< ajouté */
    transition: all 0.3s ease;
	margin-bottom: 20px;
	
}
#cookie-banner {
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.85);
}

#cookie-banner button {
padding: 8px 12px;
    font-size: 18px;
    background-color: #6b4e2e;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}


