body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bloc-recherche {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form.loginform {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 300px;
    text-align: left;
    margin-top: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select {
    width: 100%;
    padding: 8px;
    border: 2px solid #8d2522;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
}

input[type="submit"],
button {
    background-color: #8d2522;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-weight: bold;
}

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

h2 {
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}


/********** TOP BAR *************/
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #8d2522;
    color: white;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.top-bar-left h1 {
    margin: 0;
    font-size: 1.4em;
    color: white;
}

.top-bar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-bar-right span {
    font-weight: bold;
}

.logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    text-decoration: none;
}

.logout svg {
    stroke: white;
    width: 22px;
    height: 22px;
    transition: transform 0.2s;
}

.logout:hover svg {
    transform: scale(1.2);
}


.menu {
    position: fixed;
    top: 50px; /* juste en dessous de la top-bar */
    left: 0;
    right: 0;
    background-color: #eee;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #ccc;
    z-index: 999;
}

.menu a {
    text-decoration: none;
    color: #8d2522;
    font-weight: bold;
}

.content {
    margin: 120px 20px 20px; /* espace en haut pour ne pas être masqué par les barres fixes */
    flex-grow: 1;
	overflow-y: auto;
	padding: 20px;
}



#resultat {
    margin-top: 10px;
}

/********* INFRACTION **********/
.pastille {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.pastille.avertissement {
    background-color: orange;
}
.pastille.infraction {
    background-color: red;
}
.pastille.autorisation {
    background-color: green;
}
tr.avertissement td{
	background-color: #ffeedd;
}
tr.infraction td{
	background-color: #ffdddd;
}

#reponse ul{
	list-style: none;
	padding: 0 0 0 20px;
}
#reponse li{
	margin: 0 0 10px;
}
#reponse li a{
	text-decoration: none;
}
#reponse li span.plaque{
	display: inline-block;
	min-width: 80px;
}
#reponse li span.stationnement_autorise{
	background: green;
	padding: 2px 5px;
	color: #fff;
}
#reponse li span.stationnement_interdit{
	background: red;
	padding: 2px 5px;
	color: #fff;
}
.bandeau-autorisation{
	background-color: green;
	color: #fff;
	text-align: center;
	padding: 5px 20px;
}


/****** AUTORISATIONS ******/
table.autorisations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

table.autorisations-table th,
table.autorisations-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

table.autorisations-table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
    text-align: center;
}

table.autorisations-table tr:hover {
    background-color: #f4f4f4;
}

form#add_autorisation{
	background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 300px;
    text-align: left;
    margin-top: 20px;
}
button {
    background-color: #8d2522;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #a12d29;
}

button[type="button"] {
    background-color: #999;
}

button[type="button"]:hover {
    background-color: #8d2522;
}




/********** IMMEUBLES ***********/
.table-container {
    overflow-x: auto;
    width: 100%;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

.table-std {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* pour forcer un scroll horizontal si trop petit */
}

.table-std th, .table-std td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap; /* évite le retour à la ligne */
}


.immeuble-even {
    background-color: #fff9ee;
}

.immeuble-odd {
    background-color: #ffffff;
}



/******** AFFICHAGE MOBILE **********/
@media screen and (max-width: 600px) {
	.top-bar {
        flex-direction: column;
        text-align: center;
        height: 80px;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    .top-bar-left h1 {
        font-size: 1.2em;
    }
    
    .menu{
    	top: 80px;
    }
    .content{
    	
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}