:root {
	--primary-color: #0a6297; /*#2563eb;*/
	--secondary-color: #0c4b70; /*1d4ed8*/
	--theme-color: #0a6297;
	--text-color: #1e293b;
	--light-color: #f8fafc;
	--dark-color: #575b5e;
	--border-color: #e2e8f0;
	--error-color: #ef233c;
	--success-color: #008000;
	--role-color: #ff7c00;
	--red-color: #d32210;
	--dark-red-color: #a31b0d;
	--green-color: #81bb27;
	--dark-green-color: #619412;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Raleway', Arial, sans-serif;
	background-color: var(--light-color);
	color: var(--text-color);
	line-height: 1.6;
	padding: 0;
	margin: 0;
	display: flex;
	position: relative;
    flex-direction: column;
	min-height: 100vh;
	padding-bottom: 20em;
}

.auth-container {
	width: 100%;
	max-width: 400px;
	margin: 10vh auto;
	padding: 2rem;
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	text-align: center;
	margin-bottom: 1.5rem;
	color: var(--theme-color);
}
.auth-switch {
	text-align: center;
	margin-bottom: 1.5rem;
}

.auth-switch a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
}

.error {
	color: var(--error-color);
	text-align: center;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}
.success {
	color: var(--success-color);
	text-align: center;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
form #name{
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
form #name div {
	margin-right: 30px;
	width: 20%;
	min-width: 240px;
}
form #name div:last-child {
	margin-right: 0;
}
form #name input, form #name select {
	width: 100%;
}

input, select, textarea {
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: inherit;
	font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

input[type="submit"] {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

input[type="submit"]:hover {
	background-color: var(--secondary-color);
}
.password-container {
	position: relative;
}

.password-container input {
	width: 100%;
	padding: 10px 40px 10px 10px;
	font-size: 16px;
}

.toggle-password {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #333;
	font-size: 18px;
}

.toggle-password:focus {
	outline: none;
}



header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 10px 20px;
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 2rem;
}
.nav-links {
	display: none;
}
header .menu-toggle {
	display: none;
}
header .logo {
	display: flex;
	flex-wrap: wrap;
	justify-content: left;
	align-items: center;
}
header .logo img {
	height: 50px;
	margin-right: 10px;
	padding-left: 10px;
	transform: translateY(8px);
	border-left: 1px solid var(--border-color);
}
header #logo-fatse {
	display: flex;
	justify-content: center;
	align-items: center;
}

header #logo-fatse img {
	transform: translateY(0px);
	height: 25px;
	padding-left: 0;
	border-left: none;
}
header #logo-fatse #round-logo {
	height: 40px;
	margin-right: 10px;
}

.btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s;
}

.btn-primary {
	background-color: var(--primary-color);
	color: white;
}

.btn-primary:hover {
	background-color: var(--secondary-color);
}

.hero {
	text-align: center;
	padding: 4rem 1rem;
}

.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.hero p {
	font-size: 1.125rem;
	max-width: 42rem;
	margin: 0 auto 2rem;
}

.btn-group {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.dashboard {
	background: white;
	padding: 2rem;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-card, .user-card a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
/*	margin-bottom: 1.5rem;*/
}
.avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}

main {
	margin: auto 5vw;
}
main .logo-asso {
	text-align: center;
}
main .logo-asso img {
	max-height: 190px;
}








footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
    margin-top: auto;
    text-align: center;
    background-color: #EEEEEE;
    padding-bottom: 2vh;
}
footer div{
	margin-top: 20px;
	text-align: center;
}
footer a{
	text-decoration: none;
	color: var(--text-color);
}
footer a:hover{
	background-color : #DDDDDD;
}
footer #links {
	width: 60%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
footer #dossier-presse a, footer #links a {
    padding: 0.3em;
    margin: auto;
    width: 150px;
    float: left;
}
footer #adresse p{
	font-family: 'Arial';
	font-size: 13px;
	line-height: 13px;
}

@media screen and (max-width: 1000px) {
    .user-name {
        display: none;
    }
    .avatar {
    	transform: translateY(2px);
    }
}


@media screen and (max-width: 768px) {
	footer #links {
		flex-direction: column;
	}
	header.active {
		position: fixed;
		flex-direction: column;
		background-color: var(--light-color);
		z-index: 9999999;
		width: 100%;
		height: 100%;
	}
	header .menu-toggle {
	    display: block !important;
	    font-size: 28px;
	    background: none;
	    border: none;
	    cursor: pointer;
	    position: absolute;
	    top: 10px;
	    left: 15px;
	    z-index: 1001;
	}
	header .logo-asso {
		display: none;
	}
	header .logo {
		margin-left: 32px;
	}
	header.active .nav-links {
	    display: flex;
	    flex-direction: column;
	}
	header .nav-links img {
		height: 60px;
		transform: translateY(8px);
		border-bottom: 1px solid var(--border-color);
	}
	header .nav-links a:last-child img {
		border-bottom: none;
	}

	header .menu-toggle {
	    display: block;
	}
	header.active .user-name {
        display: initial;
    }
    header.active .avatar {
    	transform: none;
    }
}