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;
}

.content {
    display: flex;
    justify-content: space-between;
	flex-wrap: wrap;
}

.left, .right {
    width: 48%;
	box-sizing: border-box; /* Assure que le padding est inclus dans la largeur totale */
    padding: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
}

textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    margin-top: 5px;
	margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
	box-sizing: border-box;
}

select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
	box-sizing: border-box;
}

button {
    padding: 10px 15px;
    margin-top: 10px;
    margin-right: 10px;
    background-color: #a9cce3;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	box-sizing: border-box;
}

button:hover {
    background-color: #5499c7;
}

.info-icon {
    height: 15px;
    width: 15px;
    margin-left: 5px;
    cursor: pointer;
}

#image-area {
    width: 100%;
    text-align: center;
}

#image-blason {
    border-radius: 0px;
    border: none;
	max-height:350px;
}

#output div {
    margin-top: 10px;
}


/* Media Query pour les écrans plus petits */
@media (max-width: 768px) {
    .content {
        flex-direction: column !important; /* Empile les sections en colonne */
    }

    .left, .right {
        width: 100%; /* Les éléments prennent toute la largeur */
        margin-bottom: 20px; /* Ajoute un espace entre les sections */
    }
}


/* ========= POPUP */

.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;
}
