/* Style général */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #98ebe3;
    color: #333;
}

/* Conteneur principal */
.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 180px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    align-items: center; /* centrer les boutons */
}

.sidebar button {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    cursor: pointer;
}

.sidebar button img {
    width: 2cm;
    height: 2cm;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.sidebar button img:hover {
    transform: scale(1.1);
}

/* Contenu principal */
.content {
    flex-grow: 1;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    background-color: #98ebe3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Titre principal */
.main-title {
    text-align: center;
    font-size: 2.5em;
    color: red;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 4px solid black;
    padding-bottom: 10px;
    font-family: 'Times New Roman', serif;
    width: 100%;
}

/* Scroll container */
.scroll-container {
    width: 80%;
    max-height: 200px;
    overflow: hidden;
    position: relative;
    border: 2px solid #ccc;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Animation verticale */
.scroll-text ul {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: scrollNotes 60s linear infinite;
}

.scroll-text li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

@keyframes scrollNotes {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Formulaires */
form {
    margin-top: 30px;
    width: 80%;
}

form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    color: #333;
}

form label {
    display: block;
    margin: 8px 0 4px 0;
    font-weight: bold;
}

form input[type="text"],
form input[type="date"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    font-size: 1em;
    border: 1px solid #aaa;
    border-radius: 4px;
}

form textarea {
    resize: vertical;
}

form button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #c0392b;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}

form button:hover {
    background-color: #e74c3c;
}
/* Container pour les 3 blocs */
.blocks-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

/* Style commun pour chaque bloc */
.block-card {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
    max-width: 32%;
    padding: 10px;
    box-sizing: border-box;
}

.block-card h2 {
    text-align: center;
    margin-top: 0;
    font-size: 1.4em;
}

/* Scroll container adapté aux cards */
.block-card .scroll-container {
    width: 100%;
    max-height: 200px;
    margin-bottom: 0;
}
.keyboard {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f0f0f0;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    user-select: none;
    z-index: 1000;
}
.keyboard-row {
    text-align: center;
    margin: 5px 0;
}
.keyboard button {
    padding: 10px 15px;
    margin: 3px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #bbb;
    background: white;
    cursor: pointer;
    min-width: 40px;
}
.keyboard button:hover {
    background: #ddd;
}
.keyboard .wide {
    min-width: 80px;
}
.keyboard .space {
    min-width: 200px;
}
.delai-depasse {
    color: red;
    font-weight: bold;
}
