@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
/*UTILES*/
.text-center{
	text-align: center !important;
}

.bold{
	font-weight: bold;
}

.inside-form{
	padding-left: 15px;
}

.produit-form{
	border-bottom: 1px solid black;
	padding: 5px;
}

.produit-buttons{
	float: right;
}


/*SIDEBAR*/
:root{
	--header-height: 3rem;
	--nav-width: 68px;
	--first-color: #4723D9;
	--first-color-light: #AFA5D9;
	--white-color: #F7F6FB;
	--body-font: 'Nunito', sans-serif;
	--normal-font-size: 1rem;
	--z-fixed: 100;
}

*,::before,::after{
	box-sizing: border-box;
}

body{
	position: relative;
	margin: var(--header-height) 0 0 0;
	padding: 0 1rem;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: .5s;
}

a{
	text-decoration: none;
}

.header{
	width: 100%;
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	background-color: var(--white-color);
	z-index: var(--z-fixed);
	transition: .5s;
}

.header_toggle{
	color: var(--first-color);
	font-size: 1.5rem;
	cursor: pointer;
}

.header_img{
	width: 35px;
	height: 35px;
	display: flex;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
}

.header_img img{
	width: 40px;
}

.l-navbar{
	position: fixed;
	top: 0;
	left: -30%;
	width: var(--nav-width);
	height: 100vh;
	background-color: var(--first-color);
	padding: .5rem 1rem 0 0;
	transition: .5s;
	z-index: var(--z-fixed);
}

.nav{
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.nav_logo, .nav-link{
	display: grid;
	grid-template-columns: max-content max-content;
	align-items: center;
	column-gap: 1rem;
	padding: .5rem 0 .5rem 1.5rem;
}

.nav_logo{
	margin-bottom: 2rem;
}

.nav_logo-icon{
	font-size: 1.25rem;
	color: var(--white-color);
}

.nav_logo-name{
	color: var(--white-color);
	font-weight: 700;
}

.nav-link{
	position: relative;
	color: var(--white-color);
	margin-bottom: 1.5rem;
	transition: .3s;
}

.nav-link:hover{
	color: var(--white-color);
}

.nav_icon{
	font-size: 1.25rem;
}

.show{
	left: 0;
}

.body-pd{
	padding-left: calc(var(--nav-width) + 1rem);
}

.active{
	color: var(--white-color);
}

.active::before{
	content: '';
	position: absolute;
	left: 0;
	width: 2px;
	height: 32px;
	background-color: var(--white-color);
}

.height-100{
	height:100vh;
}

/*on big screen*/
@media screen and (min-width: 768px){
	body{
		margin: calc(var(--header-height) + 1rem) 0 0 0;
		padding-left: calc(var(--nav-width) + 2rem);
	}

	.header{
		height: calc(var(--header-height) + 1rem);
		padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
	}

	.header_img{
		width: 40px;
		height: 40px;
	}

	.header_img img{
		width: 45px;
	}

	.l-navbar{
		left: 0;
		padding: 1rem 1rem 0 0;
	}

	.show{
		width: calc(var(--nav-width) + 156px);
	}

	.body-pd{
		padding-left: calc(var(--nav-width) + 188px);
	}

}



/* CONNEXION */
.connexion{
	margin: 15% auto;
	display: block;
}

.connexion input{
	margin: 10px 0;
	width: 33%;
}

.connexion button{
	background-color: var(--first-color-light);
	color: var(--white-color);
	border-color: var(--first-color-light);
}

.connexion button:hover{
	background-color: var(--first-color);
	color: var(--white-color);
	border-color: var(--first-color);
}


/* Formulaire génération documents */
/* Conteneur principal du formulaire */
.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

/* Style du formulaire */
#service-form {
	border: 1px solid #ccc;
	padding: 20px;
	background-color: #fdfdfd;
}

/* En-tête : séparation en deux colonnes */
.top-section {
	display: flex;
	justify-content: space-between;
	margin-bottom: 30px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 20px;
}

.date-section,
.client-section {
	width: 48%;
}

/* Style pour chaque bloc d'information (date, client) */
.info-form, .inside-form {
	margin-bottom: 15px;
}

.info-form h2,
.inside-form h3 {
	margin: 0 0 10px 0;
}

/* Section Produits */
.bottom-section h2 {
	margin-top: 0;
}

/* Chaque produit affiché sur une seule ligne */
.produit-form {
	border: 1px solid #ddd;
	padding: 10px;
	margin-bottom: 10px;
}

.produit-details {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

/* Chaque bloc d'information dans un produit */
.produit-select,
.produit-nb,
.produit-prix,
.produit-total {
	flex: 1;
	min-width: 150px;
	margin-right: 15px;
}

.produit-select h4,
.produit-nb h4,
.produit-prix h4,
.produit-total h4 {
	font-size: 0.9em;
	margin-bottom: 5px;
}

/* Boutons d'ajout/suppression de produit */
.produit-buttons {
	text-align: center;
	margin-top: 15px;
}

.produit-buttons a {
	cursor: pointer;
	font-size: 1.5em;
	margin: 0 10px;
	color: #007bff;
}

.produit-buttons a:hover {
	color: #0056b3;
}

/* Inputs et selects */
input[type="date"],
input[type="number"],
select {
	width: 100%;
	padding: 5px;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 3px;
}


/*DOCUMENT*/
.subpage{
	height: 98%;
	margin: 0px 5px;
	font-size: 13px;
}

.subpage table{
	width: 100%;
	padding-bottom: 15px;
	border-collapse: collapse;
	table-layout: fixed;
}

.emplacement-logo{
	width: 15%;
	font-size: 5px;
}


