    /* NAVIGATION */
    nav {
      background-color: #1a1a1a;
    }

    nav a, nav strong {
      color: white;
    }

	/* MENU BURGER POUR LE MOBILE */
    #burger {
      display: none;
      font-size: 1.5rem;
      background: none;
      border: none;
      color: white;
    }

    #mobile-menu {
      display: none;
      flex-direction: column;
      gap: 0.5rem;
      background-color: #2a2a2a;
      padding: 1rem;
      border-radius: 0.5rem;
    }

    #mobile-menu a {
      color: white;
    }

    @media (max-width: 768px) {
      nav .desktop-menu {
        display: none;
      }

      #burger {
        display: block;
      }
    }

    /* LAYOUT CONTENU + ASIDE */
    main.container {
      display: grid;
      grid-template-columns: 1fr 250px;
      gap: 2rem;
    }

	/* ASIDE pour le menu de droite */
	aside {
	  padding: 1rem;
	  border-radius: 0.5rem;
	  transition: background-color 0.3s, color 0.3s;
   	}
   	
	aside ul {
	  padding-left: 1rem; /* ou 0.5rem, ou 0 pour aucun retrait */
	  margin-left: 0;     /* annule la marge par défaut */
	  list-style-position: inside; /* (facultatif) place les puces à gauche du texte */
	  margin-bottom: 0; /* ou 0.25rem si tu veux un petit espace */
	}	
	aside li {
	  margin: -0.1rem 0;       /* réduit l’espace vertical entre les items */
	  line-height: 1.2;        /* facultatif : rend le texte un peu plus compact */
	}
	
	/* Thème clair par défaut */
	:root[data-theme="light"] aside,
	:root:not([data-theme]) aside {
	  background-color: #f0f0f0;
	  color: #222;
	}

	/* Thème sombre */
	:root[data-theme="dark"] aside {
	  background-color: #3a3a3a;
	  color: white;
	}

	:root[data-theme="dark"] aside a {
	  color: white;
	  text-decoration: none;
	}

	:root[data-theme="light"] aside a {
	  text-decoration: none;
	}


	:root[data-theme="dark"] aside a:hover {
	  color: #ffd700;
	}

    @media (max-width: 768px) {
      main.container {
        display: block; /* empile contenu + aside */
      }

      aside {
        margin-top: 2rem;
      }
    }

	/* Reset defaut pour compatibilite PC et Smartphone */
	html {
		font-size: 100%;
	} 
	body {
		font-size: 1rem;
	}



	/* Switch de theme sombre / clair */
    .theme-toggle {
      font-size: 1.25rem;
      background: none;
      border: none;
      cursor: pointer;
    }
    
    /* Gestion des sous Menu déroulants */
    .has-submenu {
  position: relative;
}

.has-submenu > .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--pico-background-color);
  border: 1px solid var(--pico-border-color, #ccc);
  border-radius: 0.25rem;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 1000;
}

.has-submenu:hover > .submenu {
  display: block;
}


/* Dropdown */
    .dropdown {
      position: relative;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #2a2a2a;
      min-width: 220px;
      z-index: 1;
      border-radius: 0.25rem;
      padding: 0.5rem 0;
      top: 100%;
      left: 0;
    }

    .dropdown:hover > .dropdown-content {
      display: block;
    }

    .dropdown-content a {
      display: block;
      padding: 0.5rem 1rem;
      color: #fff;
      text-decoration: none;
    }

    .dropdown-content a:hover {
      background-color: #3a3a3a;
    }

    /* Sous-menu (dropdown dans dropdown) */
    .dropdown-sub {
      position: relative;
 }

    .dropdown-sub .dropdown-content {
      top: 0;
      left: 100%;
    }

    .dropdown-sub:hover > .dropdown-content {
      display: block;
    }

/* Suppression de l'espacement des menu déroulants */
.dropdown-content a,
.dropdown-sub .dropdown-content a {
  padding: 0.1rem;           /* Supprime tout le padding */
  margin: 0.1rem;            /* Supprime toute marge */
  line-height: 1.2;       /* Ligne la plus serrée possible */
}
.dropdown-content li {
  padding: 0.1rem;
  margin: 0.1rem;
  line-height: 1.2;
}


/* Pour les panneaux d'info */
/* Panel compact général */
.compact-panel {
  border: 1px solid;
  border-radius: 0.5rem;
  margin: 1rem auto;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  line-height: 1.2;
}

/* Contenu interne */
.compact-panel .panel-heading {
  padding: 0.5rem 0.75rem;
  font-weight: bold;
  border-bottom: 1px solid;
  font-size: 1rem;
}

.compact-panel .panel-body {
  padding: 0.5rem 0.75rem;
}

/* 🌙 Thème sombre */
:root[data-theme="dark"] .compact-panel {
  background-color: #1f1f1f;
  color: white;
  border-color: #444;
}

:root[data-theme="dark"] .compact-panel .panel-heading {
  background-color: #2a2a2a;
  border-color: #444;
}

/* ☀️ Thème clair */
:root[data-theme="light"] .compact-panel,
:root:not([data-theme]) .compact-panel {
  background-color: #f7f7f7;
  color: #222;
  border-color: #ccc;
}

:root[data-theme="light"] .compact-panel .panel-heading,
:root:not([data-theme]) .compact-panel .panel-heading {
  background-color: #e0e0e0;
  border-color: #ccc;
}

/* Pour le tableau des couleurs des formulaires des generateurs */
  .color-option {
    border: 2px solid transparent;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    cursor: pointer;
    font-size: 0.8em;
    display: inline-block;
    margin: 0.2em;
    min-width: 100px;
    text-align: center;
    transition: border 0.2s ease;
  }

  .color-option.selected {
    border: 2px solid black;
  }
  
  
/* Pour les rapports paginés */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        .pagination button {
            margin: 0 0.25rem;
        }
        .page {
            display: none;
        }
        .page.active {
            display: block;
        }
		.pagination button {
			font-size: 0.75rem !important;
			padding: 0.25rem 0.5rem !important;
			line-height: 1 !important;
		}

/* Ce style permet d'afficher une colonne de 150 pixels pour le div de gauche. */
/* Le second div contiendra le reste de la largeur de la page */
.TableImgLeft-Div {
  display: grid;
  grid-template-columns: 100px 1fr;
  /*margin-left: 2rem; /* décalage comme un élément de liste */
  align-items: center;
  gap: 1rem;
}

/* Ce style permet d'afficher plusieurs colonnes dont le nombre s'adapte en fonction de la */
/* taille de l'écran */
.grid-autocolumn {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-autocolumn > div {
  text-align: center;
  border-radius: 0.5rem;
  padding: 1rem;
}

.grid-autocolumn img {
  max-width: 100%;
  height: auto;
}
/* Limite à 4 colonnes en largeur maximum */
@media (min-width: 900px) {
  .grid-autocolumn {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pour les tableaux de couleurs des generateurs */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
label {
  margin-top: 20px;     /* espace au-dessus */
  margin-bottom: 0;     /* pas d’espace en dessous */
  display: block;   /* Important si label est en ligne (inline) */
  font-weight: bold;       /* Gras */
  font-style: italic;      /* Italique */
  text-decoration: underline;  /* Souligné */
}

.color-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
}
.color-swatch {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border 0.2s ease;
}
.color-swatch.selected {
  border: 2px solid #000;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}


/* Etapes pour les generateurs */
  :root {
    --stepper-primary-color: #007BFF;
    --stepper-bg-active: var(--stepper-primary-color);
    --stepper-circle-border: var(--stepper-primary-color);
    --stepper-circle-color: var(--stepper-primary-color);
  }

  .stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    flex-wrap: wrap;
  }

  .stepper {
    display: flex;
    flex-wrap: wrap; /* retour à la ligne si nécessaire */
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 600px;
  }

  .stepper li {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    text-align: center;
    min-width: 60px;
  }

  .stepper li .stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--stepper-circle-border);
    color: var(--stepper-circle-color);
    font-weight: bold;
    line-height: 32px;
    font-size: 16px;
    margin-bottom: 8px;
    user-select: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  }

  .stepper li.active .stepper-circle {
    background-color: var(--stepper-bg-active);
    color: white;
    border-color: var(--stepper-bg-active);
  }

  .stepper li span {
    font-size: 14px;
    color: var(--stepper-text-color);
  }

  /* Suppression des traits entre étapes */
  /* Pas de ::after */

  .stepper-image-container img {
    max-width: 150px;
    height: auto;
    display: block;
  }

  /* Responsive */
  @media (max-width: 600px) {
    .stepper-container {
      flex-direction: column;
      gap: 20px;
    }
    .stepper {
      max-width: 100%;
      justify-content: center;
      gap: 20px;
    }
    .stepper li {
      min-width: 50px;
    }
  }


/* Pour afficher les articles avec une image à gauche et le texte à droite */

.article_img {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article_img img {
  max-width: 30vw;
  height: auto;
}



/* Modif des infobar pour avoir un contour et une couleur de fond */
.infobar {
  padding: 0.1rem 1rem; /* réduit la marge interne verticale */
  margin: 0.5rem auto;  /* réduit la marge externe haut/bas */
  border-radius: 0.5rem;
  max-width: 768px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.infobar.info {
  background-color: #3C71F7; /* bleu info */
}

.infobar.success {
  background-color: #00895A; /* vert succès */
}

.infobar.warning {
  background-color: #D24317; /* orange alerte */
}

.infobar.danger {
  background-color: #D93526; /* rouge erreur */
}

.infobar button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
}

.infobar a {
  color: #ffffff;
  text-decoration: underline;
}

.infobar a:hover {
  color: #e0e0e0;
}



/* Securite pour Hashover sur les commentaires larges */

#hashover-wrapper {
  max-width: 59vw;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  display: block;
  padding: 1rem;
  position: relative;
}

#hashover-wrapper * {
  max-width: 100% !important;
  width: auto !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
}
