body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #e4e4e4;
}
/* Page de login */
.log-container {
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
}
.login {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 10px;
  margin-bottom: 10px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
  align-content: center;
}
.login h1{
  font-size: 20px;
  text-align: center;
}
.login input{
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 5px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}
.login button{
  display: inline-block;
  margin-top: 12px;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
}
.login button:hover {
  background-color: #666;
}
/* Page outils */
.outils-container {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.outils {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 10px;
  margin-bottom: 10px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
  align-content: center;
}
.outils h1{
  font-size: 20px;
  text-align: center;
}
/* Barre de navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: white;
  padding: 10px 20px;
  height: 15px;
}
.nav-left, .nav-right {
  flex: 1;
}
.nav-center {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: normal;
}
.nav-button {
  background-color: #222;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
}
.nav-button:hover {
  background-color: #444;
}
.nav-left {
  text-align: left;
}
.nav-right {
  text-align: right;
}
.navmenu {
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: white;
  padding: 10px 20px;
  height: 15px;
  margin-bottom: 10px;
}
/* Cadre des articles */
.articles-container {
  padding: 20px;
  max-width: 90%;
  margin: 0 auto;
}
.article {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}
.article-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1px;
}
.article-title {
  margin-top: 0;
  font-size: 18px;
  color: #222;
}
.article-date {
  font-size: 12px;
  color: #777;
}
.article-category {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.access-button {
  display: inline-block;
  margin-top: 12px;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
  align-self: center;
}
.access-button:hover {
  background-color: #666;
}
.presenttab {
  border-collapse: collapse;
  width: 100%;
}
.presenttab td {
  margin: 5px;
  border: none;          
  padding: 0;            
  text-align: center;    
  vertical-align: middle;
  min-height: 300px;
}
.article-img {
  height: 300px;
  aspect-ratio: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.article-img:hover {
  transform: scale(1.05);
}
/* Images de présentation */
.gallerytab {
  margin-top: 10px;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}
.gallerytab img {
  height: 300px;
  aspect-ratio: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.gallerytab img:hover {
  transform: scale(1.05);
}
/* Couleurs spécifiques par catégorie */
.cat-a {
  background-color: #e0f0ff;
  color: #0066cc;
}
.cat-a:hover {
  background-color: #c6e2ff;
}
.cat-b {
  background-color: #e5ffe5;
  color: #2e8b57;
}
.cat-b:hover {
  background-color: #ccf2cc;
}
.cat-c {
  background-color: #ffe6eb;
  color: #cc0033;
}
.cat-c:hover {
  background-color: #ffd1dc;
}
.cat-d {
  background-color: #fff0e6;
  color: #cc5200;
}
.cat-d:hover {
  background-color: #ffd9b3;
}
.cat-e {
  background-color: #f0e6ff;
  color: #6a0dad;
}
.cat-e:hover {
  background-color: #e0ccff;
}

.cat-g {
  background-color: #fefcc8;
  color: #cfc81f;
}
.cat-g:hover {
  background-color: #d5d280;
}
.cat-0 {
  background-color: #ffe6eb;
  color: #ff0000;
}
.cat-0:hover {
  background-color: #ffe6eb;
}
/* Cadre des sélecteurs du générateur */
.selectab {
  max-width: 600px;
  border-collapse: collapse;
}
.selectab td {
  border: none;          
  padding: 0;            
  text-align: center;    
  vertical-align: middle;
  height: 20px;
}
.selectab2 {
  width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #333;
  border-radius: 6px;
}
.selectab2 tr,td {
  border: none;          
  padding: 0;
  margin: 2px;            
  text-align: center;    
  vertical-align: middle;
  height: 22px;
}
.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 0px;
  font-size: 14px;
}
select {
  padding: 2px 2px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 220px;
}
/* Theme du jour */
.themetab {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px;
}
.theme-button {
  display: inline-block;
  margin-top: 12px;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
  align-self: center;
}
.theme-button:hover {
  background-color: #666;
}
.theme-button2 {
  display: inline-block;
  background-color: #666;
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  transition: background-color 0.2s ease;
  align-self: center;
}
.theme-button:hover2 {
  background-color: #ccc;
}
.theme-img {
  height: 200px;
  aspect-ratio: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.theme-img:hover {
  transform: scale(1.05);
}
/* Page clothes */
.Clt-button {
  display: inline-block;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
  align-self: center;
  margin-bottom: 5px;
}
.Clt-button:hover {
  background-color: #666;
}
.CltCopyBtn {
  display: inline-block;
  background-color: #0077cc;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
  align-self: center;
  margin-bottom: 5px;
}
.CltCopyBtn:hover {
  background-color: #33aaff;
}
.Cltbuttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.CltresetBtn {
  display: inline-block;
  background-color: #662222;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
  align-self: center;
  margin-bottom: 5px;
  }
.CltresetBtn:hover {
  background-color: #ff3333;
    }
#Clt_tempo {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  color: green;
  min-height: 20px;
  text-align: center;
    }
#Clt_sav {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #0077cc;
  min-height: 20px;
  text-align: center;
  }
#clt_nudrange td{
  width: 50%;
  align-content: center;
}
.cltsport_tempo {
  margin: 5px;
  font-size: 12px;
  font-weight: 500;
  color: darkcyan;
  min-height: 20px;
  text-align: center;
}
.girl_tempo {
  margin: 5px;
  font-size: 12px;
  font-weight: 500;
  color: darkmagenta;
  min-height: 20px;
  text-align: center;
}
.full_phrasediv {
  margin: 10px;
  font-size: 14px;
  font-weight: 500;
  color: lightseagreen;
  min-height: 20px;
  text-align: center;
}
/* Barre visible (track) */
input[type="range"]::-webkit-slider-runnable-track {
  background: white;
  border: 1px solid #ccc; /* bordure grise fine */
  height: 12px;
  border-radius: 5px;
}
input[type="range"]::-webkit-slider-thumb {
  width: 4px;
  height: 16px;
  background-color: #0078D7;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  margin-top: -3px; /* pour centrer verticalement */
  appearance: none; /* ← important pour désactiver le style natif */
}
Supprime le focus par défaut si tu veux un look plus net */
input[type="range"]:focus {
  outline: none;
}
checkbox {
  align-items: center;
}
#descrip {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #777;
  min-height: 20px;
  text-align: center;
}
#result {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #0077cc;
  min-height: 20px;
  text-align: center;
}
#copyMsg {
  margin-top: 10px;
  font-size: 14px;
  color: green;
  display: none;
  text-align: center;
}
button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
}
.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.gen-button {
  display: inline-block;
  min-width: 200px;
  margin-top: 0px;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
  align-self: center;
}
.gen-button:hover {
  background-color: #666;
}
/* Dashboard */
.dash-album {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}
.dash-album-button-image {
  position: relative;
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.dash-album-button-image img {
  display: block;
  width: auto;
  height: 160px;
  border-radius: 6px;
}
.dash-button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.2); /* fond semi-transparent */
  padding: 8px 12px;
  border-radius: 5px;
  pointer-events: none;
}
.dash-gallery {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.dash-gallery img {
  height: 520px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
}
.dash-delbutton {
  min-width: 300px;
  background-color: #662222;
  color: white;
  border: none;
  padding: 10px;
  margin: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}
.dash-delbutton:hover {
  background-color: #ff3333;
}
li {
  margin-bottom: 10px;
}
.dash-button {
  min-width: 300px;
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 10px;
  margin: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}
.dash-button:hover {
  background-color: #22aacc;
}
/* Journal */
.gallery2 {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.gallery2 img {
  height: 220px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.gallery2 img:hover {
  transform: scale(1.05);
}
/* Album */
.gallery {
  margin-top: 20px;
  margin-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
}
.gallery img {
  height: 180px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}
.gallery-button {
  display: inline-block;
  margin-top: 12px;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
  align-self: center;
}
.gallery-button:hover {
  background-color: #666;
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  max-width: 98%;
  max-height: 98%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
/*modale*/
.modalbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: #fefefe;
  margin: 2% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 900px;
  border-radius: 8px;
}
.modal-tab {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid#888;
  border-radius: 8px;
}
.modal-tab tr,td {
  border: none;          
  padding: 0;
  margin: 2px;            
  text-align: center;    
  vertical-align: middle;
  height: 22px;
}
.modal-title {
  margin-top: 0;
  font-size: 18px;
  color: #444;
}
.modal-image {
  height: 250px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
}