:root{
	--main-color:#ccccff;
	--text-color:white;
}

* {
/*	background-color: var(--main-color);*/
	color: var(--text-color);
	cursor: url('../import/baguette-magique.png'), auto;
}

.image-hover:hover .overlay {
  opacity: 1;
  box-shadow: 0 0 20px 8px rgba(150, 0, 71, 0.8); /* lueur */
}

.etincelle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background-color: rgba(250, 250, 250, 0.9);
  box-shadow: 0 0 6px 2px rgba(250, 250, 250, 0.8);
  animation: tomber 0.7s ease-out forwards;
}

@keyframes tomber {
  0%   { transform: translateY(0)  scale(1);  opacity: 1; }
  100% { transform: translateY(30px) scale(0); opacity: 0; }
}

a{
	text-decoration: none;
	color: var(--text-color);
}

h2 {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}

#body-accueil a:hover {
	color: #960047;
}

#body-reveiller-melusine-memoire a:hover {
	color: #960047;
}

#body-travaux-feeriques a:hover {
	color: #960047;
}

#body-contes a:hover {
	color: #960047;
}

#body-club-lecture a:hover {
	color: #960047;
}

#body-club-ecriture a:hover {
	color: #960047;
}

#body-references a:hover {
	color: #960047;
}



.centre {
    text-align: center;
}




/*accueil*/

#body-accueil {
	color: white;
	background-color: #ccccff;
}

#menu {
	position: fixed;
	top: 0;
	left: 0;
	margin: 0;
	width: 100vw;
	height: 5vh;
	z-index: 100;
	border-bottom: 1px solid black;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5vw;
}

#menu a:hover{
	color: #960047;
}

.menu-item {
	position: relative;
	height: 5vh;
	display: flex;
	align-items: center;
}

.menu-item a {
	white-space: nowrap;
}

.sous-menu {
	background-color: #ccccff;
	position: absolute;
	top: 5vh;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5vh;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, padding 0.35s ease;
	padding: 0 1vw;
	border-left: 1px solid black;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	white-space: nowrap;
	min-width: fit-content;
}

.menu-item:hover .sous-menu {
	max-height: 100vh;
	padding: 0.8vh 1vw;
}

.sous-menu a {
	font-size: 0.8em;
}

#texte-bienvenue a:hover {
	color: #960047
}

#memoire-texte a:hover {
	color: #960047
}

#bienvenue {
	background-color: #ccccff;
    margin-top: 0;
    min-height: 95vh;
	width: 50vw;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
	border: 1px solid black;
}

#explications {
	background-color: #8dff47;
    margin-left: 75;
    height: 95vh;
	width: 50vw;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
	border: 1px solid black;
}

#accueil {
	display: flex;
	position: fixed;
	top: 5vh;
}

html, body {
    margin: 0;
    padding: 0;
}

i, em {
    font-style: italic;
}

img {
    width: 100%;
    display: block;
	border: 1px solid black;
}

#texte-alcine {
    padding: 20px;
}

#lisette-texte {
    padding: 20px;
}

#texte-ffd5 {
    padding: 20px;
}

#memoire-texte {
    padding: 20px;
}

#memoire-bibliographie-1 {
	padding: 200px;
}

#memoire-bibliographie-2 {
	padding: 200px;
}

#texte-livre {
    padding: 20px;
}

#image-livre {
	padding: 200px;
}

#springfire-texte {
	padding: 20px;
}

#springfire-texte a:hover {
	color: #960047
}


.galerie {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1em;
}

.image-hover {
  position: relative;
  overflow: hidden;
}

.image-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  background-color: rgba(140, 0, 71, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
  text-align: center;
}

.image-hover:hover .overlay {
  opacity: 1;
}


#body-index{
	background-color: #ccccff;
}

#date-exposant {
	font-size: 70%;
	vertical-align: super;
}

/* Texte */
.content {
  color:rgb(103, 109, 179);
  padding: 4vh;
  /*margin-left: 350px;*/
 /* margin-right: 500px;*/
  min-width:25vw ;
  max-width:40vw;
  position:absolute;
  left:30vw;
}


/* Paratexte */
.decale {
  margin-left: 50px;
}

.paratexte{
	color: #960047;
	font-size: 70%;
	position:fixed;
	left:75vw;
	right: 5vw;
	font-family: paratexte;
	visibility:hidden;
	text-shadow:
   	0 0 3px white,
	0 0 3px white,
	0 0 3px white,
    0 0 10px white,
    0 0 10px white,
    0 0 10px white;
}


.commentaire a{
  font-family:'Amita-Regular';
	color:rgb(103, 109, 179);
	text-decoration:none;
}

.commentaire a:hover{
  font-family:'Amita-Regular';
	color:#b4b0ef;
	text-decoration:none;
}


#reveiller-melusine-mémoire	 {
	background-color: #8dff47;
    margin-top: 0;
    min-height: 95vh;
	width: 50vw;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
	border: 1px solid black;
}

#reveiller-melusine-image {
	background-color: #8dff47;
    margin-top: 0;
    min-height: 95vh;
	width: 50vw;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
	border: 1px solid black;
}



/*#body-accueil a {
	color: #960047;
}*/

#accueil-image {
	width: fit-content;
	position: fixed;
	top: 32vh;
	left: 55vw;
}

/* Lien ancre au hover sur les items du menu */
#menu a {
	position: relative;
}

#menu a .anchor-link {
	opacity: 0;
	font-size: 0.85em;
	margin-left: 4px;
	color: #960047;
	transition: opacity 0.2s ease;
	vertical-align: middle;
}

#menu a:hover .anchor-link {
	opacity: 1;
}