@font-face {
    font-family: 'Paris2024';
    src: url('./fonts/Paris2024-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* Réinitialisation globale */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", Arial, sans-serif;
    background-color: #e0ebf5;
    color: #1c1c1e;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* En-tête */
header {
    background-color: #5e82c4;
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header img#logo {
    width: 60px;
    height: auto;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

header h1 {
    font-family: 'Paris2024', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* Contenu principal */
main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Barre de recherche */
input[type="text"] {
    width: calc(100% - 20px); /* Réduit légèrement la largeur pour éviter les débordements */
    box-sizing: border-box;
    padding: 12px;
    margin: 0 auto 20px;
    font-size: 16px;
    border: 1px solid #aacbe1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1c1c1e;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

input[type="text"]:focus {
    border-color: #5e82c4;
}

/* Conteneur des données */
#dataContainer {
    margin-top: 20px;
}

.medical-data-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease-in-out;
}

.medical-data-item:hover {
    background-color: #f2f7fb;
}

.medical-data-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #5e82c4;
}

.medical-data-item p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px 10px;
    background-color: #5e82c4;
    color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
    line-height: 1.6;
}

footer p {
    margin: 5px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

footer #ccam-link {
    font-family: inherit;
    font-size: 0.9em;
    font-weight: normal;
    color: #ffffff;
    text-decoration: underline;
    margin-top: 5px;
    display: block;
}

footer #ccam-link:hover {
    color: #aacbe1;
}

footer a:last-of-type {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #1c1c1e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.2s ease-in-out;
}

footer a:last-of-type:hover {
    background-color: #555555;
}

/* Responsive Design */
@media (max-width: 768px) {
    header img#logo {
        width: 50px;
    }

    header h1 {
        font-size: 1.5em;
    }

    input[type="text"] {
        font-size: 14px;
        padding: 10px;
    }

    .medical-data-item {
        padding: 10px;
        margin-bottom: 10px;
    }

    .medical-data-item h3 {
        font-size: 16px;
        margin: 0 0 5px;
        line-height: 1.2;
    }

    .medical-data-item p {
        font-size: 14px;
        margin: 3px 0;
    }
}