* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

aside {
    display: flex;
    flex-direction: column;
    border-right: 2px solid #007bb6;   
    width: 300px; 
    height: 100%;
}

aside img {
    width: 100%;
    border-bottom: 2px solid #007bb6;
}

aside nav {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

aside nav .buttons {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 20px;
}

aside .buttons a {
    display: block;
    text-align: center;
    padding: 10px 0px;
    margin: 20px 0px;
    background: #007bb6;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 1s;
}

aside .buttons a:hover {
    background: #18487a;
}

aside nav .separator {
    flex-grow: 1;
}

article {
    flex-grow: 1;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;

    background: #f5f5f5;
}

/* --- Définitions générales --- */

h1 {
    text-align: center;
    margin-top: 50px;
    font-size: 24pt;
    text-decoration: underline;
    color: #18487a;
    margin: 16px;
}

/* --- Ecran de connexion --- */

.loginForm {
    width: 300px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.loginForm label {
    display: block;
    margin-bottom: 5px;
}

.loginForm input[type="text"],
.loginForm input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.loginForm button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.loginForm button:hover {
    background: #0056b3;
}

.errorMessage {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* --- PDF viewers --- */
article embed {
    width: 100%;
    flex-grow: 1;
}


/* --- Signature feuille de présence --- */

.signingHistory {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
}

.signingPair {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 10px;
}

.signingSlot {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.signingSlot img {
    width: 100px;
    height: 40px;
    border: 1px solid #000;
    margin-bottom: 2px;
}

.signingSlot.ok img {
    border: 1px solid #0056b3;
}


.signingSlot span {
    text-align: center;
}

.signingBlock {
    display: flex;
    width: 540px;
    margin: auto;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.signingBlock canvas {
    width: 500px; 
    height: 200px;
    border: 1px solid #000;
    background-color: #fff;
    margin-bottom: 2px;
}

.signingBlock .downBar {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    -align-items: center;
    width: 100%;
}

.signingBlock img {
    cursor: pointer;
    border: 1px solid #000;
    background-color: #fff;
    width: 75px;
    height: 30px;
}

.signingBlock label {
    cursor: pointer;
    font-size: 14px;
    line-height: 32px;
    color: #555;
    margin-left: 10px;
}

.signingBlock .spacingBlock {
    flex-grow: 1;
}

.signingBlock .buttons {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Aligner à droite */
}

.signingBlock button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.3s ease;
}

.signingBlock button:hover {
    background-color: #0056b3;
}

.signingBlock button#clearButton {
    background-color: #dc3545;
}

.signingBlock button#clearButton:hover {
    background-color: #c82333;
}

/* --- Formulaire satisfaction --- */

.satisfactionForm {
    width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: auto;
    margin-bottom: 30px;
}

.satisfactionTable {
    border-collapse: collapse;
    width: 100%;
    margin: auto;
}

.satisfactionTable thead tr {
    text-align: center;
}

.satisfactionTable tr {
    height: 25px;
    text-align: left;
}

.satisfactionTable th, .satisfactionTable td {
    margin: 0px;
    border: 1px solid black
}

.satisfactionTable th {
    background: #e0e0e0;
}

.satisfactionTable th img {
    width: 30px;
}

.satisfactionTable .cliquableCell {
    cursor: pointer;
    text-align: center;
    color: green;
}

.satisfactionTable .cliquableCell:hover {
    background: #f0f0f0;
}

.satisfactionTable u {
    font-style: italic;
    color: #606060;
    margin-left: 10px;
    margin-bottom: 6px;
}

.satisfactionTable div[contentEditable] {
    height: 64px;
    outline: none;
    overflow-y: auto;
}

.satisfactionForm button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.satisfactionForm button:hover {
    background: #0056b3;
}

/* --- Message light box --- */
.lightbox {
    display: none; /* Masquée par défaut */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
}
.lightbox-content {
    background-color: #fff;
    margin: 20% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    font-size: 20pt;
}
/* Bouton de fermeture */
.close {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
.close:hover {
    color: #000;
}

/* Styles spécifiques selon le type */
.lightbox.info .lightbox-content {
    border-left: 5px solid green;
}
.lightbox.error .lightbox-content {
    border-left: 5px solid red;
}