/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}


/* Responsive navigation link 
.nav-link {
    display: inline-block;
    margin: 10px 0;
    text-decoration: none;
    color: #0066cc;
}

.nav-link:hover {
    text-decoration: underline;
}
*/
/* Forms and buttons */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.note-container {
    flex: 0 0 450px;
    height: 600px;
}

textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 450px;
    height: 100%;
}

.submit-button {
    padding: 10px;
    background-color: #666;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #555;
}

/* Article display */
.articles {
    margin-top: 30px;
}

article {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

article h2 {
    margin-top: 0;
}

article time {
    font-size: 0.9em;
    color: #888;
}

/* Media Queries for Mobile Responsiveness */

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100%;
    }

    form,
    .articles {
        padding: 0;
    }

    /* Form fields on mobile */
    input[type="text"],
    textarea {
        font-size: 1em;
        padding: 8px;
        width: 100%;
    }

    .submit-button {
        width: 100%;
    }

    /* Article styling for smaller screens */
    article {
        padding: 10px;
        font-size: 0.9em;
    }

    .nav-link {
        display: block;
        font-size: 1em;
        text-align: center;
        margin: 10px 0;
    }

    h1, h2 {
        font-size: 1.4em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1, h2 {
        font-size: 1.2em;
    }

    .submit-button {
        padding: 8px;
        font-size: 1em;
    }
}

/* Left navigation bar styling */
.navbar {
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #333; /* Dark background */
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

div#navbar_button {
    position: absolute;
    top: 50%;/* 50px from the top of the containing element */
    color: #ffffff;
}

div#navbar_button.hidden {
    color: #000000;
}
.navbar.hidden {
    transform: translateX(-100%);
}

.navbar a {
    padding: 15px;
    text-decoration: none;
    color: #ffffff; /* Updated color to white for readability */
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold; /* Optional: make text bold for visibility */
}

.navbar a:hover {
    background-color: #555; /* Optional: change background on hover */
    color: #ffcc00; /* Optional: change text color on hover for emphasis */
}

/* Styles pour les paragraphes dans le navbar */
.navbar p {
    font-family: Arial, sans-serif; /* Police de caractères */
    font-size: 12px; /* Taille de la police */
    color: #dcbcbc; /* Couleur du texte */
    margin: 10px 10px; /* Marge autour des paragraphes */
    line-height: 1.5; /* Hauteur de ligne */
    text-align: center; /* Alignement du texte */
}

/* Styles spécifiques pour le premier paragraphe */
.navbar p:first-of-type {
    font-weight: bold; /* Texte en gras */
    color: #bdcdde; /* Couleur du texte */
}

/* Styles spécifiques pour le deuxième paragraphe */
.navbar p:nth-of-type(2) {
    font-style: italic; /* Texte en italique */
    color: #bdcdde; /* Couleur du texte */
}
/* Styles spécifiques pour le deuxième paragraphe */
.navbar p:nth-of-type(3) {
    font-style: italic; /* Texte en italique */
    color: #c5aea8; /* Couleur du texte */
}

.featured-image {
        position: relative;
        top: 0;
        left: 0;
        width: 90%; /* Largeur de l'image à 50% de son conteneur */
        height: auto; /* Maintenir les proportions de l'image */
        display: block; /* Assure que l'image est traitée comme un élément de bloc */
        margin: 0 0; /* Centre l'image horizontalement */
}

.main {
    display: flex;
    flex-direction: row;
    /*width: 500px;
    height: 450px;*/
     /* Ajoute de l'espace entre les éléments */
     /* Centre verticalement les éléments */
}

.main1{
    margin: 5px;
}

.main2-3 { /* Permet aux éléments de prendre une largeur égale */
    margin: 5px; /* Marge autour des éléments */
}

.main1 span{
    position: fixed;
    display: inline;
    top: 0;
    left: 0;
    margin: 10px 10px;
}

.main2-3 span {
    position: relative;
    display: inline;
    margin: 10px 10px;
}



.main2 p {
    font-family: Arial, sans-serif; /* Police de caractères */
    font-size: 20px; /* Taille de la police */
    font-weight: bold;
    color: #0c0808; /* Couleur du texte */
    margin: 10px 10px 10px; /* Marge autour des paragraphes */
    line-height: 2; /* Hauteur de ligne */
    text-align: center;
}

.instructions{
    padding-left: 20px;
    border-left: 20px;
    flex: 0 0 200px;
}

.instructions2{
    padding-left: 20px;
    border-left: 20px;
    flex: 0 0 400px;
}

.main3 div{
    padding-left: 10px;
    border-left: 20px;
    flex-grow: 2;
}

.main3 p{
    font-family: Arial, sans-serif; /* Police de caractères */
    font-size: 13px; /* Taille de la police */
    color: #513636; /* Couleur du texte */
    margin: 10px 10px 10px; /* Marge autour des paragraphes */
    line-height: 2; /* Hauteur de ligne */
    text-align: left;
}

/*.textbox {
    margin: 10px 0;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    margin: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
} */


/*#approcheConsciente {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 20px;
}*/

.fixed-image {
    position: relative;
    top: 0; /* Ajuste selon la position souhaitée */
    left: 0; /* Ajuste selon la position souhaitée */
    width: 50%; /* Largeur de l'image à 50% de son conteneur */
    height: auto; /* Maintenir les proportions de l'image */
    display: inline; /* Assure que l'image est traitée comme un élément de bloc */
    margin: 0 auto; /* Centre l'image horizontalement */  
    /* Assure que l'image est visible au-dessus */
}

.login_form {
    width: 25%;

}



/* input type submit (button) for the 3 principal pages */
.saveDB {
    padding: 15px;
    text-decoration: none;
    color: #ffffff; /* Updated color to white for readability */
    background-color: #333;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold; /* Optional: make text bold for visibility */
    border: none;
}
    
.saveDB:hover {
    background-color: #555; /* Optional: change background on hover */
    color: #ffcc00; /* Optional: change text color on hover for emphasis */
}
