/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.nanum-gothic-regular {
  font-family: "Nanum Gothic", sans-serif;
  font-style: normal;
}

body {
      display: flex;
  flex-direction: column;
  min-height: 100vh; /* Prend toute la hauteur de la fenêtre */
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

h1, h2, h3 {
  font-weight: normal;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo h1 {
  font-size: 2rem;
  color: #FF5F5F;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  color: #333;
  font-size: 1rem;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #FF5F5F;
}

/* Menu principal */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li {
  position: relative; /* Nécessaire pour que le sous-menu soit positionné correctement */
}

nav ul li a {
  color: #333;
  font-size: 1rem;
  display: block;
}

/* Sous-menu */
.submenu {
  display: none; /* Cacher le sous-menu par défaut */
  position: absolute; /* Placer le sous-menu sous le menu principal */
  top: 100%; /* Le sous-menu se place juste en dessous de l'élément parent */
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  width: 200px; /* Largeur du sous-menu */
  padding: 10px 0;
    z-index: 20;    
}

.submenu li a {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
}

/* Afficher le sous-menu au survol de "Cours" */
.menu-cours:hover .submenu {
  display: block;
}


nav ul li a:hover {
  color: #000000; /* Couleur de survol du menu */
}

#content {
background-color: white;
  max-width: 1200px; /* Limite la largeur à 1200px (ajustable selon ton besoin) */
  width: 100%;
  line-height: 1.8;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 22px;  /* Espacement autour du contenu */
}
#content h1 {
  font-family: "Dongle", serif;
  font-weight: 400;
  font-size: 60px;
    color: skyblue;
}

.title h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  margin-bottom: 25px;
    color: skyblue;
text-decoration: underline 2px double skyblue;
}

#paragraphe {
      font-family: "Gowun Dodum", serif;
}

.titledia {
  font-family: "Nanum Gothic", sans-serif;
  color: skyblue;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.1rem;
}
.phrasedia {
  font-family: "Nanum Gothic", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 10px;
}
.explicationdia {
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  margin-left: 20px;
}

#explication {
      font-family: "Gowun Dodum", serif;
    font-size: 23px;
    font-weight: 300;
    word-spacing: 5px;
    line-height: 1.3;
}

.center {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;  /* Tu peux ajuster cette valeur en fonction de la taille que tu souhaites */
  table-layout: fixed;  /* Empêche les cellules de se développer de manière excessive */
  word-wrap: break-word;  /* Permet de couper les mots trop longs */
  border-spacing: 10px;
  margin-top: 50px;
}

.center td {
  padding: 5px;  /* Espace entre les cellules */
}

.center-container {
  text-align: center;
}

.center-container span {
  display: inline-block;
}


/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  margin-top: auto;         /* Pousse le footer au bas de la page */
}

footer .socials {
  margin-bottom: 10px;
}

footer .socials a {
  margin: 0 10px;
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s;
}

footer .socials a:hover {
  color: #FF5F5F;
}
