/* GENERAL
*****************************************************************/
body {
	font-family: "halyard-text", sans-serif;
	margin: 20px;
	}

#header {

	width: 90vw;
	display: flex;
	justify-content: space-between;
	margin: 0 auto 2em ;

	}

#header #logo {
    width: 3vw;
    height: 3vw;
    background: url(../img/smsa-insigne.svg) no-repeat;
    background-size: cover;
}

#header #btn-logout {
    font-size: 120%;
    color:  #861A22;
    border: 1px solid 	  #861A22;;
    padding: 0 .5em;
    border-radius: 8px;
    align-self: center;
}
#wrapper {
    width: 90vw;
    margin: 0 auto;
}


/* LANG
*****************************************************************/
#lang-select {
	text-align: right;
	padding: .5em;
    margin-right: 5vw;
	}

#lang-select a {
	color:#333
	}

#lang-select a.active {
	color:  #861A22;
	font-weight: 900;
	}

/* FILTRE
*****************************************************************/
#frmFilter {
	display: flex;
	justify-content: space-between;
  background:  #861A22;
	padding: .5em 1em;
	border-radius: 10px;
	}

#frmFilter select {
	font-family: "halyard-micro", sans-serif;
	font-size: 125%;
	margin-right: 10px;
	}

/* LOGIN
*****************************************************************/
#login-wrapper {
	width: 100vw;
	height: 90vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	}

#login-wrapper a:not(.form-button) {
	color:  #861A22;
	}

#frmConnect {
	margin:  0 auto;
	width: 50vw;
	background:  #861A22;
	color:white;
	padding: 2em;
	border-radius: 10px;
	}

label {
	font-weight: bold;
	display: block;
	font-family: "halyard-micro", sans-serif;
	}


input.field {
	border: 1px solid silver;
	width: 100%;
	}

.error {
	  background: #861A22;
	color:white;
	padding: .5em;
	text-align: center;
	margin-bottom: 1em;
	}

.form-button {
	color:white;
	background: rgba(255,255,255,.2);
	color: rgba(255,255,255,.8);
	padding: .2em 1em;
	font-weight: 100;
	border-radius: 100px;
	cursor: pointer;
	font-family: "halyard-micro", sans-serif;
	}

.form-button:hover {
	color:white;
	text-decoration: none;
	background: rgba(255,255,255,.4);
	}

input[type=submit], #btn-display-price-list {
	background-color:#009AD9;
	color:white;
	padding: .2em 1em;
	font-weight: bold;
	border:0;
	border-radius: 100px;
	cursor: pointer;
	float:right;
	font-family: "halyard-micro", sans-serif;
	}

.contact {
	text-align: center;
	padding: .5em;
	}

#insigne {
	width:15vw;
	margin: 2vw auto;
	}
/* affichage du tableau
*****************************************************************/
table {
	border-collapse: collapse;
	width: 100%;
	margin: 20px auto;
	background-color: #f8f8f8;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
	border: 1px solid #ddd;
	padding: 12px 16px;
	text-align: left;
}

th {
	background-color: #861A22;
	color: white;
	font-weight: bold;
}

tr:nth-child(even) {
	background-color: #f2f2f2;
}

tr:hover {
	background-color: #ddd;
}

/* css des boutons d'exports
*****************************************************************/
/* Styles pour les boutons d'exportation */
#export-buttons {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.export-button {
	padding: 10px 20px;
	font-size: 14px;
	background-color: #009AD9;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	margin: 0 10px;
}

.export-button:hover {
	background-color: #0074a9;
}
body {
	font-family: "halyard-text", sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f2f2f2;
}

.center {
	display: flex;
	flex-direction: column; /* Pour aligner les éléments verticalement */
	justify-content: center;
	align-items: center;
	height: 100vh;
}

.btn {
	display: inline-block;
	padding: 15px 32px;
	font-size: 18px;
	border: none;
	border-radius: 4px;
	background-color: #861A22;
	color: white;
	cursor: pointer;
	transition: background-color 0.3s;
	text-decoration: none;
	margin-top: 10px; /* Ajoute un espace entre le bouton et le champ de date */
}

.btn:hover {
	background-color: #a3001a;
}

.btn.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.success-message {
	color: green;
	margin-top: 10px;
}
.error-message {
	color: red;
	margin-top: 10px;
}

/* NAVIGATION
*****************************************************************************************/
#tab-bar {
    width: 90vw;
    margin: 0 auto;
    border-bottom: 3px solid #861A22;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

#tab-bar .tab {
    padding: .5em 2em;
    margin: 1px 1px 0;
    border-top:1px solid grey;
    border-right:1px solid grey;
    border-left:1px solid grey;
    color:grey;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: .5s ease background-color;
    font-family: "halyard-micro", sans-serif;
    font-weight: 500;
    font-size: 90%;
}

#tab-bar .tab:hover {
    text-decoration: none;
    background-color: silver;
    color:#555
}

#tab-bar .tab.active {
    background-color: #861A22;
    color: white;
    border-top:1px solid #861A22;
    border-right:1px solid #861A22;
    border-left:1px solid #861A22;
    font-weight: 600;
}

/* DOSSIERS
*****************************************************************************************/
.no-results {
    width: 100%;
    color:grey;
    padding: 20vh;
    text-align: center;
}

.file {
    background: rgba(255, 255, 255, 0.56);
    padding: .5em 1em;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    /*border-bottom: 1px dotted grey;*/
}

.file-icon, .folder-icon {
    font-size: 200%;
    flex: 0 0 5%
}

.file-description{
    flex: 0 0 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-description h3 {
    font-size: 125%;
    font-family: "halyard-micro", sans-serif;
    font-weight: 700;
}

.file-description h5 {
    color:#666;
    font-size: 90%;
}

.file-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-actions a {
    display: block;
    padding: .5em 3em;
    font-size: 14px;
    background-color: #009AD9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
}

.file-actions span {
    color:grey;
    font-size: 70%;
    text-align: center;
    padding-top: 1em;
}


/* BROCHURES
 */

.list-line {
    display: flex;
    width: 100%;
    border-bottom:1px dotted grey;
    padding: 5px;
}

 h3.titre {
    margin-top: 1em;
     font-weight: 600;
}

.list-line > div {
    flex: 0 0 25%;

}

.list-line  .col {
    text-align: center;
}

.list-line  .col .file-actions a {
    align-self: center;
}

/* DOSSIERS
*****************************************************************************************/
.toggle-folder {
	cursor: pointer;
}

h3.toggle-folder {
	flex: 0 0 100%
}

.folder-content {
	flex: 0 0 100%
}
.folder-description {

	flex: 0 0 100%
}

.folder-description .file {
	width: 100%;

}

.folder-content {
	background: rgba(0,0,0,0.2);
width: 96%;
	border-radius: 15px;
}

.hidden {
	display: none;
}

.validity-date {
	color:white;
	justify-self: flex-end;
}