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

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    color: #e0e0e0;
    position: relative;
    margin: 0;
    padding: 0;
}

header {
    background-color: #242424;
    padding: 0.6rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    flex-shrink: 0;
    height: 60px;
}

.delete-links {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
}

.delete-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.delete-link:hover {
    color: #ff4444;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

#searchInput {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 16px;
    background-color: #333;
    color: #e0e0e0;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #404040;
}

#searchInput::placeholder {
    color: #888;
}

#searchButton {
    padding: 8px 20px;
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #404040;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchButton:hover {
    background-color: #404040;
    border-color: #505050;
}

iframe {
    flex: 1;
    width: 100%;
    border: none;
    background-color: #121212;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 60px); /* Hauteur par défaut (header uniquement) */
}

.support-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ajout de la règle pour le mode desktop */
@media screen and (min-width: 769px) {
    .modal-content {
        width: 800px; /* Largeur fixe pour le mode desktop */
    }
}

#supportFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.close-button {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-button:hover {
    color: #ccc;
}

.lime-text {
    font-size: 0.8em;
    color: #1fbd4c;
    font-weight:400;
}

.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@media screen and (max-width: 900px) {
    .search-container {
        max-width: 400px;
    }
}

/* Footer mobile - caché par défaut */
.mobile-footer {
    display: none;
}

@media screen and (max-width: 768px) {
    body {
        padding-bottom: 40px; /* Espace pour le footer */
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem;
        height: 60px;
    }

    .header-logo {
    vertical-align: sub;
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .search-container {
        flex: 1;
        margin: 0 10px;
        max-width: none;
    }

    .support-link {
        display: none; /* Cache le lien dans le header */
    }

    /* Styles pour le footer mobile */
    .mobile-footer {
        height: 40px;
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #242424;
        padding: 10px;
        text-align: center;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .mobile-footer .support-link {
        display: inline-block;
        position: static;
        transform: none;
        white-space: nowrap;
        font-size: 0.7em;
    }

    iframe {
        height: calc(100vh - 100px); /* 60px header + 40px footer */
    }
} 