@import url('https://fonts.googleapis.com/css2?family=Bellefair&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
	--accent: #dcc48e;
}

* {
	box-sizing:border-box;
}

body {
	background: linear-gradient(180deg,#f6f8fb 0%, #eef3ff 100%);
	font-family: "Poppins", sans-serif;
	margin: 0;
}

header {
	display: flex;
	justify-content: center;
	height: 110px;
	padding: 16px;
	background-color: #8b8860;
}

header .logo {
	height: 100%;
	margin: 0;
}

header .logo img {
	height: 100%;
	max-width: 100%;
}
	
.card {
	padding: 48px 16px 0;
}

.card h1 {
	margin: 0;
	font-size: 38px;
	font-weight: 400;
	font-family: "Bellefair", serif;
	text-align: center;
}

.flex_contenu {
	margin: 30px 0;
}

.flex_contenu figure {
	margin: 0 0 25px;
}

.flex_contenu figure img {
	max-width: 100%;
	border-radius: 4px;
}

.flex_contenu .flex_contenu_texte h2 {
    font-weight: 500;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 16px;
}

.flex_contenu .flex_contenu_texte p {
 	margin-bottom: 0;   
}

.flex_contenu .flex_contenu_texte .formulaire {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.formulaire .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.formulaire .field.adresse {
	flex: 1;
}

#numero {
    border-radius: 3px;
    height: 36px;
    padding: 8px;
    width: 120px;
    border:1px solid #b8b8b8;
    font-size:15px;
}

.flex_contenu_texte .controls {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 32px;
}

.controls button.primary {
	background: #dcc48e;
    border-color: #dcc48e;
    color: #222;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    padding: 16px 32px;
    border: 0;
   	cursor: pointer;
   	box-shadow: 0 6px 18px rgba(15,98,254,.18);
}

.controls button.primary:disabled {
	color: #777;
	cursor:not-allowed;
	box-shadow:none
}

#status {
	color: red;
}

.montrouge {
    background-color: white;
    padding: 16px;
}

.montrouge h2 {
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 48px;
    text-align: center;
}

.montrouge h2 br {
	display: none;
}	

.montrouge h2 span {
    font-weight: 700;
    color: #8b8860;
}

.boutons {
    display: flex;
    justify-content: center;
    margin: 0 0 60px 0;
}

.boutons a.btn {
    background-color: #8b8860;
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 16px 32px;
    box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.2);
}

.montrouge .jestimo {
	margin-top: 32px;
}

#result {
	background-color: #f9f6e6;
	padding: 0 16px;
}

#resultat {
	display: flex;
	flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 32px;
}

#resultat .school {
    display: flex;
    gap: 16px;
    min-width: 350px;
    font-size: 26px;
    flex-direction: column;
    align-items: center;
}

.school .type {
    font-weight: 300;
}

.school .name {
    background-color: #8b8860;
    color: white;
    font-weight: 600;
    padding: 16px 32px;
}

.vendus {
    display: flex;
    flex-direction: column;
    gap: 33px;
    margin-bottom: 48px;
}

.vendu {
    position: relative;
}

.vendu figure {
    margin: 0;
    font-size: 0;
}

.vendu img {
    max-width: 100%;
    aspect-ratio: 465 / 310;
    object-fit: cover;
}

.vendu_details {
    background-color: #f9f6e6;
    padding: 24px;
}

.vendu_details h3 {
    text-align: center;
    font-family: "Bellefair", serif;
    font-weight: 400;
    font-size: 20px;
    margin: 0;
}

.vendu a.cover {
    position: absolute;
    inset: 0px;
}

footer {
	background-color: #DCC48E;
	padding: 8px 0;
	text-align: center;
	font-size: 11px;
}

footer a {
	color: #2b2b29;
	text-decoration: none;
}

@media (min-width: 992px){
 	header {
 		height: 150px;
 	}

 	.card {
		padding: 48px 32px 0;
	}

 	.card h1 {
		font-size: 50px;
	}

 	.flex_contenu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 48px 0;
    }
    
    /* SI LE CONTENU EST PLUS HAUT QUE L'IMAGE, PERMET D'AGRANDIR LE VISUEL SUR LA MÊME HAUTEUR */
    .flex_contenu.big {
        align-items: stretch;
    }

    .flex_contenu.big figure img {
	    height: 100%;
	    object-fit: cover;
	}
    
    .flex_contenu_texte {
        flex-basis: 55%;
    }

    .flex_contenu .flex_contenu_texte h2 {
    	font-size: 26px;
    }

    .flex_contenu .flex_contenu_texte .formulaire {
    	flex-wrap: wrap;
    	flex-direction: row;
    }
    
    .flex_contenu figure {
    	flex-basis: 40%;
        margin-bottom: 0;
    }
    
    /* PERMET DE GERER L'ALTERNANCE GAUCHE / DROITE SI PLUSIEURS BLOCS SUCCESSIFS */
    .flex_contenu.reverse figure {
        order: 1;
    }

    .montrouge {
	    padding: 32px;
	}

	.montrouge h2 {
		font-size: 36px;
	}

	.montrouge h2 br {
		display: block;
	}

	#result {
		padding: 0 32px;
	}

	#resultat {
	    padding: 48px;
	    gap: 64px;
	}

	#resultat .school {
    	font-size: 42px;
	}

	.vendus {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.vendu {
	    flex-basis: calc(33.333333% - 22px);
	}

	.vendu img {
    	max-width: 100%;
    }

	.vendu_details h3 {
		font-size: 24px;
	}
}