body {
  font-family: Arial, sans-serif; 
}

a {
  text-decoration: none;         /* Enlève le soulignement */
  color: inherit;                
}

header {
  background-color: #3498db;      
  padding: 1rem;   
  width: 100%;                
}

nav ul {
  list-style-type: none;         /* Enlève les puces */
  margin: 0;                      
  padding: 0;                     
  display: flex;                 /* Affiche en ligne */
  justify-content: space-around; /* Espacement égal */
}

nav ul li a {
  color: white;                   
  padding: 10px 15px;            
  border-radius: 5px;            
  transition: background-color 0.3s ease;  
}

nav ul li a:hover {
  background-color: #1f618d;      
}

main {
  padding: 20px;                 
  min-height: 80vh;               
  max-width: 900px;               
  margin: 0 auto;                 
}

#intro {
  text-align: center;             
}

h1 {
  font-size: 30px;               
}

#sub-title {
  font-size: 12px;          
  color: #ccd1d1;            
  text-align: center;           
}

img {
  max-width: 100%;              
  height: auto;                 
  object-fit: cover;            
}

#poem {
text-align: center;
}

#story {
text-align: center;
}

#the_poem,
#the_story {
  background-color: #f4f4f4;    
  padding: 20px;                 
  border-radius: 8px;            
  text-align: center;            
}

#story_1 {
  text-align: center;            
}


p {
  text-align: justify;
  line-height: 1.7;
  margin-bottom: 20px;
}


#theme {
  /* fixer le bouton */
  position: fixed;             
  bottom: 20px;                  
  right: 20px;
                   
  z-index: 1000;                  
  background-color: #3498db;     
  color: white;                  
  border: none;                  
  padding: 12px 18px;             
  border-radius: 50px;          
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);  
  cursor: pointer;               
  transition: 0.3s;              
}

#theme:hover {
  background-color: #2980b9;      
  transform: scale(1.05);         
}

#valider {
  background-color: #f4f4f4;      
  padding: 12px 18px;             
  border-radius: 50px;           
  transition: background-color 0.3s ease;  
}

#valider:hover {
  background-color: #C0C0C0;      
}

footer {
  background-color: #3498db;      
  color: white;                 
  text-align: center;             
  padding: 1rem;                  
  display: flex;                 
  flex-direction: column;        
  align-items: center;          
  justify-content: center;      
  width: 100%;                  
}

#resultat-quiz {
  margin-top: 20px;            
  font-weight: bold;             
  color: #d35400;               
  font-size: 1.3em;           
}

@keyframes bounce {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  25% {
    transform: scale(0.95);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  75% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.resultat-anime {
  animation: bounce 0.5s ease-out;  
}

/* Mode sombre */

body.dark {
  background-color: #121212;     
  color: white;                  
}

body.dark header,
body.dark footer {
  background-color: #1b4f72;   
}

body.dark #the_poem,
body.dark #the_story {
  background-color: #424949;     
}


body.dark section {
  background-color: #1e1e1e;     
  border-radius: 8px;            
  padding: 20px;                 
}

body.dark h2 {
  border-color: #555;            
}

body.dark p {
  color: #e0e0e0;               
}

