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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.highlight {
    color: #e67e22;
}

/* === LECTEUR MUSIQUE === */
.music-player {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 2px solid #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    font-size: 1rem;
    color: #e67e22;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.music-player:hover {
    background: #fef0e0;
    transform: scale(1.1);
}

.music-player.playing {
    background: #e67e22;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(230, 126, 34, 0); }
}

/* === PAGE D'ACCUEIL === */
.home-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logo-img {
    height: 120px;
    display: block;
    margin: 0 auto 0.3rem;
}

.logo h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 0.3rem;
}

.tagline {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-form-home {
    width: 100%;
    max-width: 640px;
}

.search-box-home {
    display: flex;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.search-box-home:focus-within {
    border-color: #e67e22;
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.15);
}

.search-box-home input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.search-box-home button {
    border: none;
    background: #e67e22;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.search-box-home button:hover {
    background: #d35400;
}

.filters-home {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.filters-home select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.filters-home select:focus {
    border-color: #e67e22;
}

.stats-home {
    margin-top: 2rem;
    color: #999;
    font-size: 0.9rem;
}

/* === HEADER RECHERCHE === */
.search-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.logo-small {
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo-img-small {
    height: 40px;
}

.search-form-top {
    display: flex;
    flex: 1;
    max-width: 600px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
}

.search-form-top:focus-within {
    border-color: #e67e22;
}

.search-form-top input {
    flex: 1;
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    outline: none;
}

.search-form-top button {
    border: none;
    background: #e67e22;
    color: #fff;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

.search-form-top button:hover {
    background: #d35400;
}

.submit-link {
    color: #e67e22;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.submit-link:hover {
    text-decoration: underline;
}

.submit-link-home {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #e67e22;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.submit-link-home:hover {
    text-decoration: underline;
}

/* === RESULTATS === */
.results-container {
    flex: 1;
    max-width: 750px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    width: 100%;
}

.results-info {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.active-filters {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.filter-tag {
    background: #fef0e0;
    color: #e67e22;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
}

.filter-tag:hover {
    background: #fde3c8;
}

.result-item {
    margin-bottom: 1.8rem;
}

.result-url {
    color: #27ae60;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-title {
    margin-bottom: 0.3rem;
}

.result-title a {
    color: #1a0dab;
    text-decoration: none;
    font-size: 1.15rem;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-snippet {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.result-snippet mark {
    background: #fef0e0;
    color: #333;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

.result-meta {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.4rem;
}

.meta-tag {
    background: #f0f0f0;
    color: #777;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-results ul {
    list-style: none;
    margin-top: 1rem;
    color: #999;
}

.no-results li {
    margin: 0.4rem 0;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 600;
}

.pagination a:hover {
    text-decoration: underline;
}

.page-num {
    color: #999;
}

/* === PAGE SOUMETTRE === */
.submit-container {
    flex: 1;
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

.submit-container h2 {
    margin-bottom: 0.5rem;
}

.submit-desc {
    color: #666;
    margin-bottom: 2rem;
}

.submit-form {
    display: flex;
    border: 2px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
}

.submit-form input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.submit-form button {
    border: none;
    background: #e67e22;
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.submit-form button:hover {
    background: #d35400;
}

.submit-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.submit-message.success {
    background: #eafaf1;
    color: #27ae60;
}

.submit-message.error {
    background: #fef0e0;
    color: #e74c3c;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .logo-img {
        height: 160px;
    }

    .home-container {
        padding: 1.5rem 1rem;
    }

    .search-box-home {
        flex-direction: column;
        border-radius: 16px;
    }

    .search-box-home input {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
        text-align: center;
    }

    .search-box-home button {
        padding: 0.9rem;
        border-radius: 0 0 14px 14px;
        font-size: 1rem;
    }

    .filters-home {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-home select {
        width: 100%;
    }

    .search-header {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }

    .search-form-top {
        max-width: 100%;
        width: 100%;
    }

    .search-form-top input {
        min-width: 0;
    }

    .submit-link {
        display: none;
    }

    .submit-link-home {
        top: 0.8rem;
        right: 1rem;
        font-size: 0.8rem;
    }

    .results-container {
        padding: 1rem;
    }

    .result-title a {
        font-size: 1rem;
    }

    .music-player {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .stats-home {
        text-align: center;
    }
}
