/**
* Main CSS
*/


html {
	height: 100%;
	min-height: 100vh;
	font-size: var(--fontsize);
	line-height: 1.58;
	color: var(--text);
	margin: 0;
}


body {
	margin: 0px;
	min-height: 100vh;
	position: relative;
    display: flex;
    flex-direction: column;
    background-color: #f1f4fd;
}

a {
    text-decoration: none;
    color: var(--text);
}

div {
    box-sizing: border-box;
}


main {
    width : 100%;
    box-sizing: border-box;
    margin: 20px 0px;
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
}


footer {
	display: flex;
	text-align: center;
	align-items: center;
	justify-content: center;
	z-index: 10;
    font-size: 10px;
}





header {
	background: var(--background);
	padding: 10px 0px;
	z-index: 10;
}

header img {
	display: block;
	margin: 0 auto;
}


@media only screen and (min-width: 480px) {
	header div.container {
		display: flex;
		justify-content: space-between;
		align-items: center;
        padding: 0px 20px;
	}
}

@media only screen and (max-width: 480px) {
	header div.container {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	header div.text {
		display: none;
	}
}





/* Content -- Pour la page INDEX
========================================================================== */

main#index {
	margin: auto;
    display: flex;
    flex-direction: column;
}

main#index form#cvanalysis,
main#index a#previously_use {
    height:fit-content;
    margin: 10px auto;
    max-width: 800px;
    background-color: var(--background_opacity);
    border: 2px dashed var(--text);
    color: var(--text);
    text-align: center;
    padding:10px;
}

main#index form#cvanalysis label.custom-file-upload { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing:inherit;
    padding : 50px 20px;
    cursor: pointer;
}


#cvFile,
input[type= "submit"] {
    display: none;
}


main#index span.consent{
    font-size: 10px;
}



/* Page Results */

main#results {
	flex-direction: column;
}


main#results div#section1 div.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

@media screen and (max-width: 768px) {
    main#results div#sectionA {
        display: flex;
        flex-direction : column;
    }

    main#results div#section1 {
        margin: auto;
        width: 95%;
        height: 100%;
        display: none;
    }
    
    main#results div#section2 {
        margin: auto;
        width: 95%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    
}

@media screen and (min-width: 768px) {
    main#results div#sectionA {
        display: flex;
        flex-direction : row;
    }

    main#results div#section1 {
        width: 30%;
        height: 100%;
        margin : 5px;
    }
    
    main#results div#section2 {
        width: 70%;
        height: 100%;
        margin : 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}





main#results div#sectionB {
	display: flex;
    flex-direction : row;
    justify-content: center;
    align-items: center;
}





main#results div.card div.title{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

main#results div.card div.title img{
    height : 18px;
    margin-right: 10px;
}

main#results div.card div.item,
main#results select#rayonSelect {
    width : 100%;
    border : 1px solid #D3D3D3;
    padding : 10px;
    margin-bottom: 10px;
    background-color: #eee;
    font-family: 'Recursive', sans-serif ;
	font-size: 14px;
}


main#results div.card div.item:hover,
main#results select#rayonSelect:hover {
    background-color: #e4e4e4;
}









/* Icons */
img.scoring {
	height:12px;
} 












/* Les annonces */

div.card {
    padding: 10px;
    border: var(--text);
    background-color: var(--background);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.10);
    margin: 0px 0px 10px 0px;
}

div#annonce{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}

div.card#annonce:hover {
	box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);
    background-color: rgb(250, 250, 250);
}

div#annonce div.img {
    width:20%;
}

div#annonce div.img img {
    max-width: 100%;
    height: auto;
}

div#annonce div.infos {
    width: 60%;
}

div#annonce div.link {
    width: 20%;
}

@media screen and (max-width: 768px) {
    div.jobtitle,
    div.subtitle,
    div.link button {
        font-size: 80%;
    }

}

@media screen and (min-width: 768px) {

}



div.jobtitle,
div.subtitle {
    text-align: left;
}



div.link button{
	width : 100%;
    padding: 10px;
	border: 1px solid var(--main);
	font-family: 'Recursive', sans-serif ;
	background-color: var(--background);
	color: var(--main);
	margin: 2px;
    border-radius: 10px;
}

div.link button:hover{
	border: 1px solid var(--background);
	background-color: var(--main);
	color:var(--background);
}




div.jobtitle{
	font-weight: bold;
}


.loader-bg {
    position: fixed;
    z-index: 100;
    width:100%;
    background-color: #00000099;
    height:100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    color:#ffffff;
    align-items: center;
    font-size: 25px;
}

.loader-img {
    width: 60px;
    height: 60px;
    border: 5px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    z-index: 101;
    margin : 20px;
}




/* Votre animation reste inchangée */
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



span.item {
    margin : 2px;
    padding : 1px 10px;
    background-color: #ffffff99;
    color:#404040;
    border-radius: 2px;
}


div#header {
	position: relative;
	background: url('../_custom/ressources/background.jpg') no-repeat center center;
	height: 200px;
	display: flex;
	flex-direction: column;
	font-size: 20px;
	justify-content: center;
	align-items: center;
	color: var(--background);
	background-size: cover;
  }
  
  div#header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.50);
	z-index: 1;
  }
  
  div#header > * {
	/* Tous les éléments enfants de div#header (le texte) auront un z-index plus élevé */
	position: relative;
	z-index: 2;
  }




.flex {
    display: flex;
}

.row {
    flex-direction: row;
}

.column {
    flex-direction: column;
}

div#nav_buttons{
    margin: 20px;
    gap:20px;
}

div.circle-button{
    border:2px solid var(--text);
    border-radius: 50%;
    width:40px;
    aspect-ratio: 1/1;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}