body {
  justify-content: center;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
  background-color: #f0f8ff; /* Couleur de fond de base pas trop stimulant pour les personnes neuroatypiques */
  background-size: cover; /* Couvre tout le fond */
  background-attachment: fixed; /* Reste fixe lors du défilement */
  /* Suppression de la ligne : animation: gradient 25s ease infinite; */
}

h1 {
  color: #000;;
  text-align: center;
  font-size: 25px;
  letter-spacing: 5px;
}
h2 {
  color: #000;
  text-align: center;
  font-size: 20px;
  letter-spacing: 3px;
}

/* Header*/
header {
  height: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between; 
  margin-top: 3px;
  background-color: #e0c9d6; /* Couleur de fond douce pour le header */
  border: solid black;
  border-radius: 10px;
  align-items: center;
  box-shadow: #000 5px 3px 3px;
  padding: 0 15px; 
}
/* Conteneur des contrôles (menus + A propos) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px; /* Espace entre le menu et le bouton mode nuit */
}

/* Nav Menu Desktop (Masqué sur mobile par défaut dans responsivite.css) */
.menuSansBurger {
  justify-content: center;
  display: flex;
}

/* Conteneur des boutons du menu desktop */
.ppo {
  justify-content: center;
  display: flex;
  gap: 15px;
}

.menuSansBurger ul li {
  margin: 0 20px;
  display: flex;
  font-size: 18px;
}

.menuSansBurger ul li a {
  text-decoration: none;
}

/* Menu Burger (Affiché sur mobile par défaut dans responsivite.css) */
.menu {
    display: none; /* Masqué sur desktop, affiché sur mobile via responsivite.css */
}


/* Sidenav menu (Menu Burger)*/
.sidenav {
    height: 80%;
    width: 210px;
    border-radius: 20px;
    position: fixed;
    z-index: 1;
    top: 0;
    right: -100%;
    background-color: #e0c9d6;
    padding-top: 60px;
    transition: right 0.5s ease;
    box-shadow: #000 5px 3px 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sidenav button{
   margin-bottom: 15px;
}


/* Close btn */
.sidenav .close {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}

.burger-icon span {
    display: block;
    width: 35px;
    height: 5px;
    background-color: rgb(251, 251, 251);
    margin: 6px 0;
}

#openBtn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}


/* Switch Mode Nuit */
.switch {
  display: inline-block;
  position: relative;
  width: 70px;
  height: 40px;
  cursor: pointer;
  overflow: hidden;
}

.switch input {
  position: absolute;
  top: -30px; /* Cache le checkbox natif */
}

.switch span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f1c40f; /* Jour (Jaune) */
  border-radius: 40px;
  transition: background-color 0.3s;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Ombre interne */
}

.switch span:before {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 30px;
  height: 30px;
  background-color: #fff; /* Rond (soleil/lune) */
  border-radius: 50%;
  transition: transform 0.3s;
}

.switch input:checked + span {
  background-color: #3b3b5b; /* Nuit (Violet) */
}

.switch input:checked + span:before {
  transform: translateX(30px);
  background-color: #fff9e0; /* Couleur Lune */
}

.mode_nuit {
  background-color: transparent;
  border: none;
  padding: 0;
}

/* Titres */
.titre {
  justify-content: center;
  align-items: center;
  display: flex;
}

.titre1 {
  color: #000;
  text-align: center;
  font-size: 25px;
  letter-spacing: 5px;
}

/* MAIN */
main, .apropos{
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 10px 20px;
  padding: 20px;
  background-color: #e0c9d6;
  border-radius: 10px;
  border: solid black;
  box-shadow: #000 5px 3px 3px;
}


/* Styles pour les boutons de la grille - Réutiliser Acc1b car il est simple et jaune/bleu */
.main-actions-grid button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px; 
    height: 120px; /* Augmenter la taille pour le confort */
    width: 100%; /* S'assurer qu'ils remplissent leur colonne */
}

.main-actions-grid img {
    margin-bottom: 5px; /* Petit espace entre l'icône et le texte */
}

.lignes {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace entre les boutons */
}
/* FIN NOUVEAU STYLE DE GRILLE */


/* Boutons Bleus/Jaunes Accueil */
.Acc1b {
  background-color:#f0f8ff; /* Bleu très clair */
  color: #000000;
  border-color: black;
  border-style: solid;
  border-width: 3px;
  border-radius: 10px;
  box-shadow: #000 5px 3px 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  height: 10vh;
  font-size: x-large;
}
.Acc1b:hover {
  transform: scale(1.05);
  background-color: #e0c9d6; /* Changement de couleur au hover pour plus de feedback visuel */
}

/* Boutons Vert Accueil (Initialement) - On réutilise Acc1b pour la grille, mais on garde la classe */
.Acc2b {
  background-color: rgb(133, 255, 133);
  color: #000;
  border-color: black;
  border-style: solid;
  border-width: 3px;
  border-radius: 30px;
  height: 100px;
  width: 100px;
  text-align: center;
  box-shadow: #000 5px 3px 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Boutons Jaunes Accueil (Petits, utilisés dans le header)*/
.Acc1c {
   background-color: rgb(251, 251, 124);
  color: #000000;
  border-color: black;
  border-style: solid;
  border-width: 3px;
  border-radius: 20px;
  height: 80px;
  width: 80px;
  box-shadow: #000 5px 3px 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

/* Boutons Oranges Accueil (Petits, utilisés dans le menu burger)*/
.Acc1d {
   background-color: rgb(255, 214, 131);
  color: #000000;
  border-color: black;
  border-style: solid;
  border-width: 3px;
  border-radius: 20px;
  height: 80px;
  width: 80px;
  box-shadow: #000 5px 3px 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

/* Footer*/
footer {
  justify-content: center;
  align-items: center;
  display: flex;
  margin-top: 20px;
  background-color: #e0c9d6;
  border: solid black;
  border-radius: 10px;
  box-shadow: #000 5px 3px 3px;
  padding: 10px;
}

.pied {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
}

.medicament {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espace entre les éléments du formulaire */
  margin-top: 20px;
}

.result {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f8ff; /* Bleu très clair pour les résultats */
  border: solid black;
  border-radius: 10px;
  box-shadow: #000 5px 3px 3px;
  white-space: pre-line; /* Permet les retours à la ligne dans le texte */
}

.pub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  border: solid black;
  border-radius: 10px;
}