
body {
    margin: 0;
    padding: 0;
    background: #bebebe;
}
  
.texte {
    font-family: Gotham, Tahoma, sans-serif;
    text-align: center;
    font-size: 25px;
}
  
.logo-text {
  font-size: 3.8rem;
  font-weight: 900;
  text-align: center;
  margin: 2.5rem 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2e2e2e;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;

  text-shadow:
    1px 1px 0 #ccc,
    2px 2px 0 #bbb,
    3px 3px 0 #aaa,
    4px 4px 0 #999,
    5px 5px 10px rgba(0, 0, 0, 0.2);
}

.home-img {
  position: fixed; /* ou absolute selon le cas */
  top: 2%;
  left: 2%;
  width: 10vw;
  max-width: 100px; /* limite pour eviter qu'elle devienne trop grande */
  height: auto;
  z-index: 1000; /* pour qu elle reste au-dessus si besoin */
  cursor: pointer;
}

img{
	width: 100px;
	height: 100px;
    }





/* ------------------------- CSV ------------------------------- */




.exporter-btn {
			float: left;
			background-color:rgb(119, 119, 119);
			color: white; /* Texte en blanc */
			border-radius: 12px; /* Coins arrondis */
			cursor: pointer;
			font-size: 14px;
		}

.exporter-btn:hover {
  background-color:rgb(90, 90, 90);



}


/* ------------------------- Images accueil ------------------------------- */


.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4 colonnes égales */
  gap: 10%; /* espace entre les images */
  max-width: 100%;
  margin: 0 15%;
}

.container img {
  width: 100%;
  background-color: transparent;
  object-fit: cover;
  height: auto;
  display: block;
  object-fit: cover; /* optionnel, pour uniformiser */
}


/* ------------------------- LOGIN ------------------------------- */


.login-page {
  display: flex;
  height: 200px;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  height: 120%;
  margin: 0;
}

.login-box {
  margin-top: 20vmin;
  margin-bottom: 10vmin;
  width: 75vmin;
  aspect-ratio: 1 / 1;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.login-page .logo-login-text {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #28284f;
  margin-bottom: 25px;
}

.login-page .textbox {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #28284f;
  margin-bottom: 20px;
  padding: 5px 0;
  min-height: 7vmin;
  transform: scale(1.1);
}

.login-page .textbox i {
  font-size: 18px;
  color: #28284f;
  margin-right: 10px;
}

.login-page .textbox input {
  border: none;
  outline: none;
  background: none;
  flex: 1;
  color: #333;
  padding: 5px 0;
  font-size: 1.35rem;
}

.login-page .password-box {
  position: relative;
}

.login-page .show-password {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-10%, -50%);
  padding: 5px;
  margin: 0;
  width: 7.5vmin;
  height: 7.5vmin;
  display: flex;
  align-items: center;
  justify-content: center;
}


.login-page .show-password img {
  width: 7vmin;
  height: 7vmin;
  user-select: none;
  pointer-events: none;
}

.login-page .button_login {
  width: 100%;
  padding: 10px;
  background: #28284f;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
}

.login-page .button_login:hover {
  background: #090948;
}





/* ------------------------- fieldset ------------------------------- */


fieldset {
  border: 2px solid #ccc;
  border-radius: 12px;
  background: linear-gradient(135deg, #a7aaad, #a9afb5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fieldset-contour {
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  width: 100%;
  box-sizing: border-box;
}

.fieldset-affichage {
  margin: 0 3%;
  overflow-x: auto;
  white-space: nowrap;
}

.fieldset-affichage-glob {
  text-align: center;
  margin: 0 5%;
  box-sizing: border-box;
  min-width: 0;
}
.fieldset-affichagesql {
  text-align: center;
  margin: 0 3%;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: visible;
}





/* ------------------------- Tableau ------------------------------- */

table {
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
    font-size: 1.5rem !important;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background-color: #777887;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #abacc0 !important;
}
tr:nth-child(odd) {
    background-color: #bebebe !important;
}

#tablesql {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
#tablesql table {
  border-collapse: collapse;
  table-layout: auto;
  width: max-content;
  min-width: 0;
  margin: 0 auto;
}
#tablesql th, #tablesql td {
  padding: 10px;
  border: 1px solid #ddd;
  white-space: nowrap;
}


/* ------------------------- Bouton ------------------------------- */

.bouton_cote{
    display: flex;
    justify-content: center;
    gap: 100px;
}


.bouton_recherche {
  padding: 1.5rem 3rem;
  font-size: 1.2rem;
  font-weight: 500;
  background-color: #555;
  color: #eee;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(32, 32, 32, 0.15);
  transition: background-color 0.3s, transform 0.1s;
  cursor: pointer;
}

.bouton_recherche:hover {
  background-color: #777;
  transform: translateY(-2px);
}




.btn-ovale {
  padding: 0.8rem 1.6rem;
  font-size: 200%;
  background-color: #d3d3d3;
  border: 2px solid #555;
  opacity: 0.85;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 2% 5%;
}
.btn-ovale:hover {
  background-color: #bfbfbf;
  transform: scale(1.04);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-ovale-droite {
  position: fixed;
  z-index: 9999;
  top: 2%;
  right: 2%;
}

.btn-ovale-gauche-toadmin {
  position: fixed;
  z-index: 9999;
  top: 2%;
  left: 2%;
    border: 2px solid #ad1010;
    background-color: #d5cccc;
}
.btn-ovale-gauche-touser {
  position: fixed;
  z-index: 9999;
  top: 2%;
  left: 2%;
    border: 2px solid #2a10ad;
    background-color: #cbc9d3;
}


.abutton {
    text-decoration: none;
}


button[type="submit"] {
  margin-top: 2rem;
  padding: 1.8rem 3.6rem;
  font-size: 1.4rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #555;
}


/*  ----------------------- BOX ----------------------  */


input[type="checkbox"] {
  appearance: none;       /* supprime le style du navigateur */
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 3.5rem;            /* taille fixe */
  height: 3.5rem;
  border: 2px solid #444;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

/* État coché */
input[type="checkbox"]:checked {
  background-color: #444;
}


.toggle-btn {
  cursor: pointer;
  margin: 10px 4px;
  border: 1px solid #444;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 6%;
  aspect-ratio: 1 / 1; 
  min-width: 20px;
  min-height: 20px;
  font-size: 1.5rem;
  background-color: #f2f2f2;
  color: #444;
  transition: background-color 0.2s, color 0.2s;
}


/*  ---------------------------------------------------------  */

form {
  font-family: sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

form select:required:invalid {
  color: #888;
}


.section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.section h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #444;
}

legend h3 {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


/*  ---------------------------------------------------------  */


/* Espacement entre recherche et length menu */
.dataTables_filter {
    float: left !important;
    text-align: left !important;
    margin-right: 80px;  /* ici on joue sur l'espace */
}

.dataTables_length {
    float: left !important;
    margin-left: 80px;  /* ajoute de l’espace entre les deux blocs */
}
/* Champ de recherche visible et cliquable */
.dataTables_filter input,
#choixdesaison,
#choix_saison,
#choix_saison2,
#choix_dep,
#choix_dep1,
#choix_dep2 { 
    background-color: #c0c0c0 !important; 
    color: #1c3150 !important;
    border-radius: 8px;
    padding: 6px 10px;
    border: 1.2px solid #283a65 !important;
    box-shadow: 0 1.2px 4px rgba(0,0,0,0.2);
    cursor: text;
    transition: all 0.2s ease-in-out;
}
.dataTables_filter input:focus {
    outline: none;
    border-color: #a3caf4;
    box-shadow: 0 0 5px rgba(46, 89, 135, 0.5);
}

/* Style du select "Afficher X entrées" */
.dataTables_length select {
    background-color: #c0c0c0 !important;
    color: #1c3150 !important;
    border-radius: 8px;
    padding: 6px 10px;
    border: 1.2px solid #283a65 !important;
    box-shadow: 0 1.2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Effet focus comme la recherche */
.dataTables_length select:focus {
    outline: none;
    border-color: #a3caf4;
    box-shadow: 0 0 5px rgba(46, 89, 135, 0.5);
}

.dataTables_paginate {
    text-align: left !important;
}
.dataTables_info {
    display: none;
}
.dataTables_wrapper .dataTables_paginate {
  float: none !important;
}