@import url("styles/connection.css");
@import url("styles/header.css");
@import url("styles/bouton.css");
@import url("styles/wrapper.css");
@import url("styles/mobile.css");

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h2 {
    text-align: center;
}

.titreInterne {
    margin-left: 50px;
    color:#382200;
    text-align: center;
}

section {
    text-align: center;
}

svg {
    width: 100%;
    height: auto;
    max-height: 800px;
    max-width: 1000px;
}

/*********/
/* Liens */
/*********/

a {
    text-decoration: none;
}

a.lien {
    display: inline-block;
    width: 100%;
    background-color: #e8f07c;
    border: none;
    padding: 5px 0;
    color: rgb(143, 70, 2);
    font-size: 24px;
    text-decoration: none;
    text-align: center;
    border: none;
    -webkit-box-shadow: 0 10px 10px 0 rgba(230, 238, 126, 0.4);
    box-shadow: 0 10px 10px 0 rgba(85, 81, 31, 0.4);
    -webkit-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
    margin: 0.2em 0.5em 0.7em 0.5em;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

a.lien:hover {
    background-color: #fdffdc;
}

a.petitLien {
    margin-bottom: 0;
}


a.remplir {
    text-decoration: underline; /* Souligne le texte */
    font-size: 0.8em; /* Réduit la taille du texte */
    color: black; /* Texte en noir */
}



label {
    text-align: right; /* Alignement du texte à droite */
}

input, select {
    width: auto; /* La case prendra tout l'espace disponible */
    height: fit-content;
}   

input:hover,
select:hover {
    background-color: #f5f5f5;
}

select:focus {
    border-width: 2px;
    border-color: black grey grey black;
}

input[type="color"] {
    width: 25px;
    height: 25px;
}


.enRouge {
    border: thick ridge red;
}


.lien {
    font-weight: bold;
    fill: #754c24;
}

.groupeTitre {
    font-weight: bold;
    font-size: large;
    fill: #754c24;
}

.hidden {
    display: None;
}


.loading {
    top: 150PX;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgb(105, 104, 104);
    animation: pl2 1.5s infinite linear;
    position: relative;
}

.celluleTitre {
    width: 100%;
}


/*-------------------*/
/* ---- Wrapper ---- */
/*-------------------*/

.load {
    display: flex;
    justify-content: center;
    align-items: center;
}



.transfert select, .transfert input {
    /* styling */
    border: thin solid black;
    border-radius: 4px;
    margin: 5px;
    padding: 0.2em 0.2em 0.2em 0.2em;
}

.fleche {
    height: 70px;
    width: 100px;
}

table {
    /* width: fit-content; */
    border-collapse: collapse;
    overflow: auto;
    margin: 1px;
    max-width: 100%;
    max-height: 100%;
}

.table {
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    overflow: auto;
}

.petitTable {
    height: 500px;
    overflow-y: auto; /* Barre de défilement si le contenu dépasse */
    /* border: 1px solid black; Bordure pour visibilité */
    position: relative;
    border-collapse: collapse;
}

th {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
    width: auto;
}
.fixe2 {
    position: sticky;
    top: 36px; /* Toujours en haut du conteneur */
    z-index: 1;
    background-color: #f2f2f279;
    border-top: 10px ;
}
.fixe1 {
    position: sticky;
    top: 0; /* Toujours en haut du conteneur */
    z-index: 2;
    background-color: #f2f2f279;
}
.grandTable {
    /* max-height: 800px; */
    overflow: auto;
    width: 100%;
}

.grandTable th, .grandTable td {
    white-space: nowrap;
}

td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
    position: relative;
}
td.label {
    color : red;
}
td.center {
    text-align: center;
}
td.right {
    text-align: right;
}
td.total {
    text-align: center;
    background-color: #64000044;
}

.noBorder {
    border: 0px;
}
.fatBorder {
    border-top: 3px solid black; /* Bordure plus épaisse */
}
.boldCell {
    font-style: italic;
    color: #3f3f3f;
}
td.checkbox {
    padding: 0;
    border: 0px;
}
.add-form input[type="text"] {
    width: 80%;
    padding: 5px;
}

.header2 {
    display: flex;
    /* height: 70px; */
    padding-bottom: 20px;
    background: linear-gradient(#F8E000c0, #F8E00070);
    /* min-width: 1050px; */
}
.header2 a{
    margin-right: 0;
}
.header2 h1 {
    margin: 0 auto;
}

/* .table input{
    max-width: 60px;
} */

.tableInput{
    width: 100px;
    border-radius: 7px;
    text-align: center;
}



a.cellule:hover rect {
    filter: brightness(120%);
}
a.cellule:hover text {
    fill: white;
}

a.bigbag:hover svg {
    filter: brightness(200%);
}

a.cellule:hover svg #contour{
    stroke: white;
}

/* a.cellule:hover svg text {
    fill: white;
} */

input.center {
    text-align: center;
}

.rapport {
    /* styling */
    font-size: 18px;
    text-align: center;
    border: thin solid black;
    border-radius: 8px;
    margin: 5px;
    padding: 0.2em 0.2em 0.2em 0.2em;
}

.infoBtn {
    cursor: pointer;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border: thin solid grey;
    border-radius: 50%;
    background-color: white;
    font-size: 16px;
}
  
.infoBubble {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 16px;
}
.infoBubble2 {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
  
.info {
    background-color: #f9f9f9;
    max-width: 20%;
    height: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 14px;
}

.sugg2 {
    margin-top: 40px;
}

.suggestions {
    position: absolute;
    z-index: 10000000;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
}
.suggestions li {
    /* padding: 10px; */
    cursor: pointer;
}
.suggestions li:hover {
    background-color: #f0f0f0;
}



.form-table {
    display: flex;
}

.form-left {
    margin-right: 20px;
}

.form-right {
    flex-grow: 1;
}

.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}


 /* Slider toggle styles */
 .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #4460dd;
}

/* Slider rounded */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input.form {
    border-radius: 5px;
    padding: 2px 5px 2px 5px;
    box-sizing: content-box;
    outline: none;
    width: auto;
}

input.form:focus {
    box-shadow: 0 0 5px rgba(0, 91, 255, 0.5); /* Ajouter une ombre légère */
}

input.addr {
    width: 400px;
}

.coord {
    width: 50px;
    text-align: center;
}

/* Barre de progression*/
#progress-bar-container {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    transition: width 5s linear; /* La durée doit correspondre à l'intervalle */
}

#map { 
    height: 500px; 
    width: 500px;
    padding: 50px;
}

/* #info { padding: 10px; background: white; position: absolute; top: 10px; left: 10px; z-index: 1000; border-radius: 5px; box-shadow: 0px 0px 10px #aaa; } */


.stockage {
    border: 1px solid #3f3f3f;
    padding: 10px 5px;
    background-color: #c4c4c49a;
}