@import url('https://fonts.cdnfonts.com/css/avenir-lt-pro');
@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');

:root{
	--orange:#FFA500;
	--gris:  #A9A9A9;
	--vert:  #048B9A;
	--rouge: #EA4258;
	--titre  : 'Oswald';
	--contenu: 'Avenir LT Pro';
}

body {
	font-family: var(--contenu);
    color: var(--gris);
    margin: 0;
    line-height: 1;
	align-items: center;
	display : flex;
	flex-direction: column;
}

/* Titre */
h1 {
	font-family: var(--titre);
	font-size : 2.2em;
}

h2 {
	font-family: var(--titre);
	text-align: center;
}

/* page */
main {
	width: 100%;
	max-width: 1200px;
    margin: 20px;
}

header {
    display: flex;
	flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
	margin: 20px;
	width: 100%;
}

footer {
	display: flex;
    align-items: center;
	flex-direction: column;
}

.column {
    flex-direction: column;
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.row {
	display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
	gap: 50px; 
	max-width: 1200px;
	width: 100%;
}

.description {
	max-width:70%;
	font-weight: bolder;
	text-align: justify;
}

.message {
	max-width:70%;
	font-weight: bolder;
	text-align: center;
}

.text-info {
    color:var(--vert);
}

.text-danger {
    color:var(--rouge);
}

#banniere {
	background-color: var(--vert);
	font-family: var(--titre);
	font-size: 1.3em;
	font-weight: bolder;
	height: 50px;
	display: flex;
    justify-content: center;
    align-items: center;
	width: 100%;
	margin: 0;
	margin-bottom: 20px;
}

.pointage {
	display: flex;
	flex-direction: column;
	margin: 0;
	justify-content: center;
    align-items: center;
	text-align: center;
}

/* Page Accueil */
#listePointages {
    margin-left: 5%;
}

/* Images */
#attention {
    width: 4%;
}

.image {
	text-align: center;
}

.illustration {
	height: 160px;
}

.icon {
    height: 80px;
}

.picto {
    height: 30px;
}

#SJP_Logo {
	max-width: 20%;
}

/* --- MENU --- */   
/* navbar */
nav {
    display: flex;
	height: 50px;
    justify-content: center;
    background: var(--vert);
	flex-direction: row;
	position: relative;
	width: 100%;
}

/* liens */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: var(--orange);
    text-decoration: none;
	font-family: var(--titre);
    padding: 3px 10px;
	font-size: 1.3em;    
    font-weight: bolder;
	border-radius: 5px;
}

.nav-links li a:hover {
	background-color: var(--orange);
    color: var(--vert);
}

/* sous menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--vert);
    list-style: none;
    padding: 10px 0;
    top: 30px;
    min-width: 150px; 
	font-size: 0.9em;    
}

.dropdown-menu li a {
    display: block;
    padding: 5px 10px;
	font-style: italic;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* bouton burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
	justify-content: center;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--orange);
    margin: 4px;
}

/* --- FORMULAIRES --- */
form{
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input{
    width: 100%;
    padding: 15px 0px;
    margin-top: 20px;
	border: 1px solid var(--gris);
	border-radius: 3px;
}
input:focus{
	outline: 3px solid var(--rouge); 
}
input::placeholder{
    opacity: 0;
}
form span{
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(35px);
    font-size: 0.825em;
    transition-duration: 300ms;
}
button{
	width: 100%; 
    padding: 10px; 
    margin-top: 20px;
    cursor: pointer;
    border-radius: 3px;
	font-family: var(--titre);
	font-size: 1em;	
}

#btn-connexion {
	background: var(--rouge);
    color: #FFFFFF;
    border: 1px solid var(--rouge);
}

#btn-arrivee {
	background: var(--vert);
    color: #FFFFFF;
    border: 1px solid var(--vert);
	width: 200px;
}

#btn-depart {
	background: var(--orange);
    color: #FFFFFF;
    border: 1px solid var(--orange);
	width: 200px;
}

/* label dynamique */
label{
	width: 100%; 
    margin-bottom: 5px;
    position: relative;
	font-family: var(--titre);
}

label:focus-within > span,
input:not(:placeholder-shown) + span{
    color: var(--rouge);
    transform: translateY(0px);
}

/* --- TABLEAU --- */
#synthese {
	max-width: 100%;
	overflow-x: auto;
}

table {
	font-weight: bolder;
	border-collapse: collapse;
}

thead {
	background-color: var(--vert);
	color: var(--orange);
	font-family: var(--titre);
}

th {
	padding: 10px;
	text-align: left;
}

td {
	padding: 5px;
	text-align: center;
	font-family: var(--contenu);
	color: var(--gris);
}

td a {
	text-decoration: none;
}

td a:hover {
	text-decoration: none;
	color: var(--orange);
}

/* --- RESPONSIVE --- */
@media (max-width:768px) {

	header {
		flex-direction: row;
		align-items: end;
	}

	.column, .row {
		flex-direction: column;
		display: flex;
		align-items: center;
		justify-content: space-evenly;
	}
		
	#SJP_Logo {
		max-width: 50%;
	}
	
	/* menu */
	nav {
		justify-content: left;
	}

    .burger {
        display: flex;
		flex-wrap: wrap;
		margin-left: 10px;
    }

    .nav-links {
        position: absolute;
        top: 45px;
        left: 0;
        background: var(--vert);
        flex-direction: column;
        width: 200px;
        display: none;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
		flex-wrap: wrap;
		top: 30px;
    }

    .dropdown-menu {
        position: static;
        background: var(--vert);
        width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        display: none; 
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }
	
	#SJP_Logo {
		width: 50%;
		margin: 0;
	}
	
	/* Formulaire */
	input {
        height: 3em;
        padding: 0.5em 0.75em;
        box-sizing: border-box;
    }

	/* Tableau version cartes */
	table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid var(--vert);
        padding: 10px;
        border-radius: 8px;
    }

    td {
        display: flex;
        justify-content: center;
        padding: 8px 5px;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--vert);
    }
}