* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 5px 5px 10px;
    background: #fff;
    border-radius: 8px;
    margin: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #6699FF;
    display: flex;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
    z-index: 1000;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px 5px;
    cursor: pointer;
    transition: all .3s;
    color: #666;
    font-weight: normal;
}

.nav-btn.active {
    color: #00588B;
}

.nav-btn.active .nav-label {
    font-weight: bold;
}

.nav-btn:hover {
    background: #e6f0ff;
}

.nav-label {
    font-size: .9rem;
    font-weight: 500;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-about {
    text-align: center;
    padding: 20px;
}

.page-about h1 {
    color: #00588B;
    margin-bottom: 10px;
}

.about-card {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .05);
}

.about-card h2 {
    font-size: 1rem;
    color: #00588B;
    margin-bottom: 6px;
}

.about-card ul {
    list-style-type: disc;
    margin-left: 18px;
    font-size: .9rem;
    line-height: 1.4;
}

.about-card ul li {
    margin-bottom: 4px;
}

.about-card a {
    text-decoration: none;
    color: #00588B;
}

.quote {
    margin-top: 12px;
    font-size: .9rem;
}

.privacy {
    font-size: .8rem;
    color: #555;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #6699FF;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    transition: .2s;
}

.search-input:focus {
    outline: none;
    border-color: #00588B;
    box-shadow: 0 0 5px rgba(0, 88, 139, .4);
}

.maladies-list {
    max-height: 70vh;
    overflow-y: auto;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 5px;
}

.maladie-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    border-radius: 5px;
    transition: all .2s;
}

.maladie-item:hover {
    background: #e6f0ff;
}

.maladie-nom {
    font-weight: 500;
}

#btnRetour {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 12px;
    background: #6699FF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: .2s;
}

#btnRetour:hover {
    background: #00588B;
}

.maladie-iframe {
    width: 100%;
    height: 100vh; /* Au lieu de calc(100vh - 70px) */
    border: none;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    position: fixed; /* Ajouté */
    top: 0; /* Ajouté */
    left: 0; /* Ajouté */
    z-index: 999; /* Ajouté */
}

#historiqueList {
    list-style: none;
    padding: 5px;
    margin-top: 10px;
}

#historiqueList li {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    border-radius: 5px;
    transition: background .2s;
}

#historiqueList li:hover {
    background: #e6f0ff;
}

#clearHistoryBtn {
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: #c00;
    transition: .2s;
}

#clearHistoryBtn:hover {
    color: #900;
}

.surlignage-jaune {
    background: #ffff99 !important;
    padding: 10px !important;
    border-left: 4px solid #ffcc00 !important;
    margin: 15px 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1) !important;
}

.surlignage-vert {
    background: #ccffcc !important;
    padding: 10px !important;
    border-left: 4px solid #00cc66 !important;
    margin: 15px 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1) !important;
}

.btn {
    display: inline-block;
    margin: 5px 5px 0 0;
    padding: 6px 10px;
    background: #6699FF;
    color: #fff;
    border-radius: 5px;
    font-size: .9rem;
    transition: .2s;
}

.btn:hover {
    background: #00588B;
}

@media (max-width:768px) {
    .content-area {
        padding: 5px;
        padding-bottom: 70px
    }

    .nav-label {
        font-size: .9rem
    }
}