body {
    margin: 0;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0px; /*coins arrondis*/
    margin: 0 auto;
	margin-top: 20px;
    flex-grow: 1; /* This allows the container to grow and take up space between header and footer */
}

.form-cont {
    display: flex;
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    padding: 10px;
}

label {
    font-weight: bold;
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 15px;
    margin-top: 10px;
    margin-right: 10px;
    background-color: #a9cce3;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #5499c7;
}

table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: Center;
	background-color: #f2f2f2;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
	vertical-align: top;
}

.ecu-column {
 	width: 20%;
	text-align: Center;
	box-sizing: border-box;
}

.tit-column {
	width: 20%;
	box-sizing: border-box;
}

.blz-column {
	width: 60%;
	box-sizing: border-box;
}

.imageBlason {
    width: 100%; /* L'image prendra 100% de la largeur de la cellule */
    max-width: 100%; /* Limite la largeur maximale de l'image */
    height: auto; /* Conserve les proportions de l'image */
    display: block;
    margin: 0 auto; /* Centre l'image dans la cellule */
}

/* Media Query pour les petits écrans */
@media (max-width: 768px) {
	.container {
    	min-width: 500px;
	}
	.form-cont {
		flex-direction: column;
	}
    .ecu-column, .tit-column,  {
		width: 30%;
    }
	.blz-column  {
		width: 40%;
    }
	.disabled-link {
        pointer-events: none; /* Désactive les interactions avec le lien */
        color: grey; /* Change la couleur pour indiquer que le lien est désactivé */
        text-decoration: none; /* Enlève le soulignement pour indiquer que ce n'est pas un lien actif */
    }
}

/* ============ GESTION DU POPUP IMAGE */

.popup-overlay {
    position: fixed;
	top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
    justify-content: center;
	padding: 20px;
}

.popup-content {
    display: flex;
    flex-direction: column;
	max-width: 100%;
    max-height: 100%;
	width: 100%;
	border-radius: 10px;
    position: relative;
	padding: 20px;
}

.popup-img-container {
    flex-grow: 1;
	display: flex;
    justify-content: center;
    overflow: auto;
}

.popup-img-container img {
    max-width: auto;
	max-height: 100%;
    object-fit: contain; /* Assure que l'image conserve son aspect sans être coupée */
}

.popup-caption {
     text-align: center;
     background-color: white;
     color: #000;
     padding: 10px;
     font-size: 20px;
     position: relative;
}

.popup-close {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
	cursor:pointer;
	z-index: 1000;
}

.popup-close:hover,
.popup-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --------------- pop up de modification */


.editpopup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }

.editpopup-content {
        background-color: white;
        padding: 20px;
        border-radius: 5px;
        width: 90%; /* Limite la largeur du popup */
        max-width: 600px; /* Largeur maximale */
        max-height: 80vh; /* Hauteur maximale */
        overflow-y: auto; /* Ajoute un ascenseur vertical si nécessaire */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: absolute; /* Utilisez position: absolute pour centrer */
    	top: 50%;
    	left: 50%;
    	transform: translate(-50%, -50%); /* Centre le popup */
    }

.edipopup-buttons {
        display: flex;
        justify-content: space-between;
		align-items: center;
        margin-top: 20px;
    }

.editpopup-buttons .cancel {
        margin-left: auto; /* Pousse le bouton "Annuler" à droite */
    }

.editpopup-buttons button {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

.editpopup-buttons button.cancel {
        background-color: #ccc;
    }

.editpopup-buttons button.save {
        background-color: #28a745;
        color: white;
    }


</style>
