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 */
}



h2 {
    text-align: left;
    margin-bottom: 20px;
}

h3 {
    text-align: left;
	margin-left: 5%;
    margin-bottom: 14px;
}

p {
    text-align: justify;
    margin-bottom: 14px;
	margin-left: 5%;
	margin-right: 5%;
}

.ListMurs {
	box-sizing: border-box;  /* Inclut padding et border dans la largeur */
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: white;
	column-width: auto;
}

.ListFaçades {
	box-sizing: border-box;  /* Inclut padding et border dans la largeur */
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: white;
}

.suite {
    padding: 10px 15px;
    margin-top: 10px;
    margin-right: 10px;
    background-color: #a9cce3;
	font-size: 14px;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	box-sizing: border-box;
	text-decoration: none;
}

.suite:hover {
	background-color: #5499c7;
}

.btn-back {
	display: inline-block;
    padding: 10px 15px;
	background-color: #a9cce3;
	color: black;
	border: none;
	cursor: pointer;
	font-size: 14px;
	border-radius: 4px;
	text-decoration: none;
	text-align: center;
	float: right;
}

.btn-back:hover {
	background-color: #5499c7;
}

.card-container {
    display: flex;
	flex-direction:row; /* aligné en ligne sur les grands écrans */
    justify-content: space-between;
	margin: 0 auto;
	gap: 4%
}

.container .label {
    font-weight: bold;
}

.card-container2 {
    width: 60%;
	display: flex;
	flex-direction:row; /* aligné en ligne sur les grands écrans */
    justify-content: space-between;
	margin: 0 auto;
	gap: 20%
}

.card {
	flex: 1 1 calc(33.333% - 10px); /* 3 divs par ligne avec un peu d'espace entre eux */
	box-sizing: border-box;  /* Inclut padding et border dans la largeur */
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    background-color: white;
}

.card:nth-child(4),
.card:nth-child(5) {
    flex: 1 1 calc(50% - 10px); /* 2 divs par ligne avec un peu d'espace entre eux */
}

.card img {
    max-width: 100%;
    height: auto;
	max-height: 300px:
   	object-fit: cover;
}

.card h3 {
	background-color: #f2f2f2;
    margin: 0;
    padding: 10px;
}

.card p {
    padding: 10px;
}

.card-containerDoc {
    width: 90%;
	display: flex;
	flex-direction:row; /* aligné en ligne sur les grands écrans */
    justify-content: space-between;
	margin: 0 auto;
	gap: 4%
}

.cardDoc {
	flex: 1 1 calc(22% - 4%) !important;
	box-sizing: border-box;  /* Inclut padding et border dans la largeur */
    border: 0px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    background-color: white;
}

.cardDoc img {
    width: 100%;
    height: auto;
}


.panels {
	width:100%;
}

.panels td {
	width: 15%;
	padding: 20px;
}

.panels img {
    max-width: 100%;
    height: auto;
	max-height: 200px:
   	object-fit: cover;
}
/* ======== GESTION DES LISTES DE BLASON */

table {
    table-layout: fixed;
    width: auto;
    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 */
}

.imageBlaz {
    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 */
}

.imageBlaz2 {
    width: 48%; /* 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: inline;
    margin: 0 auto; /* Centre l'image dans la cellule */
}

/* ====== GESTION RESPONSIVE PETITS ECRANS */

@media (max-width: 768px) {
	.container {
    	min-width: 500px;
	}
	.card-container {
        flex-direction: column; /* Affiche les cartes en colonne pour les petits écrans */
		gap: 0;
    }
    .card {
        flex: 1 1 100%; /* Les cartes prennent toute la largeur */
		margin: 20px;  /* Espace en bas de chaque card */
    }
	.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 POP-UP 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;
}