/********************* Initialisation css ****************/
/* http://meyerweb.com/eric/tools/css/reset/
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	/* vertical-align: baseline; */
}

li {
    list-style: none;
}
a {
    text-decoration: none;
}
/*********************************************************/

/*********************** General ************************/
:root {
    --nav-bg-color: #004562; /* bleu pétrole moyen */
    --headfoot-bg-color: #132637; /* bleu pétrole foncé */
    --title-color: #0073A4;
    --writing-color: #69BEDD; /* bleu ciel */
    --title-bg: #f0f0f0; /* gris clair */
}
.active {
    display: flex !important;
}
html {
    display: flex;
    justify-content: center;
    font-family: "Roboto Condensed", sans-serif;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 1440px;
}
/*********************************************************/


/*********************** Header Footer******************/
header {
    display: flex;
    flex-direction: column;
}
footer {
    display: flex;
    justify-content: center;
    color: white;
    background-color: var(--headfoot-bg-color);
    padding: 10px 0;;
}




/*********************** Nav **************************/

/*********************************************************/



/*********************** Main **************************/

main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1440px;
    box-sizing: border-box;
}
.inline {
    display: flex;
    flex-direction: row;
    background-color: var(--title-bg);
}
.incol {
    display: flex;
    flex-direction: column;
    background-color: var(--title-bg);
}
.inline i, .incol i, .inline h1 img, .addButton i, #createButton i {
    margin-right: 20px;
}

/*********************************************************/



/**********************tableaux planning********************/
.tableContainer {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-around;
}
.tableContainer:last-child {
    padding-bottom: 60px;
}

.tablePlanning {
    /* display: flex;
    flex-wrap: wrap; */
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
    margin-top: 40px;
    border-collapse: collapse;
    /* width: 40%; */
}
.tablePlanning th,td {
    border-left: thin dotted black;
    padding: 5px 0 5px 0;
    /* word-break: break-all; */
}
.tablePlanning th:first-child, tbody>td:first-child {
    border-left: none;   
}
.tablePlanning th {
    width: 55px;
}
/* .tablePlanning tr td:first-child { */
.tablePlanning tr td {
    /* white-space: nowrap; */
    min-width: 70px;
}
.tablePlanning tr td:first-child {
    /* padding: 5px; */
    white-space: nowrap;
}


.tablePlanning thead {
    border: 2px solid #494949;
    border-bottom: none;
}
.tablePlanning tbody {
    border: 2px solid #494949;
    border-top: none;
}
.tablePlanning tbody > tr:nth-child(2n+1){
  /* Cible en Css les cellules de tableau des lignes de position impaire */
  background-color : #dcddda;
}
.tablePlanning tfoot >tr{
    min-height: 12px;
}
.tablePlanning tfoot >tr>td {
    border-left: none;
}
.rdv {
    background-color: #a4d687;
    color: var(--headfoot-bg-color);
}
.permanenceAM {
    background-color: var(--writing-color);
    color: var(--headfoot-bg-color);
}
.permanencePM {
    background-color: var(--title-color);
    color: white;
}
.permanence {
    background-color: var(--nav-bg-color);
	color: white;
}
.weekend {
	background-color : #555454;
    color: white;
}
.fermeture {
    background-color: black;
	color:red;
}
.semaine{
    background-color: var(--headfoot-bg-color);
    color: var(--writing-color);
    font-weight: bold;
}
.legend {
    width:fit-content;
    align-self: center;
}
.legend td {
    padding: 5px 20px;
}
/****************************************************/


/**********************formulaire********************/
form {
    row-gap: 20px;
    column-gap: 30px;
    padding-top: 20px;
}
#formH1 {
    padding: 30px 0;
    font-family: 'Syne';
	font-weight: 700;
	font-size: 25px;
	color: var(--title-color);
}
input[type="text"],input[type="submit"],input[type="password"], select, .cancelButton {
	height: 40px;
    width: minmax(100%,auto);
	font-size: 16px;
    border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
	background-color: transparent;
    align-self: center;
    justify-self: start;
}
label {
    font-size: 16px;
    align-self: center;
    justify-self: end;
	/* margin: 2em 0 1em 0; */
}
input[type="submit"]:hover, .cancelButton:hover {
    color: var(--nav-bg-color);
    background-color: var(--writing-color);
	cursor: pointer;
}
textarea {
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}
input[type="submit"], .cancelButton {
	font-family: 'Syne';
	font-weight: 700;
	color: var(--writing-color);
	background-color: var(--nav-bg-color);
	margin : 2em auto ;
	width: 180px;
	text-align: center;
	border-radius: 60px ;
}
#loginForm {
    display: grid;
    grid-template-columns: 3fr 4fr;
    /* grid-template-rows: 1fr 1fr 1fr; */
    
}
#loginForm input[type="submit"] {
    grid-column : 1/2;
}
#loginForm #error {
    grid-column : 1/3;
}
.cancelButton {
    vertical-align:middle;
    line-height: 40px;
}
/****************************************************/

@media (max-width: 768px) {
    .tablePlanning {
        width:100%;
    }
    .tablePlanning tr td {
        min-width: auto;
    }
}

@media (max-width: 500px) {
    .tablePlanning {
        font-size: 12px;
    }
    .tablePlanning tr td {
        min-width: auto;
    }
}