/* ==========================================
   PAGES LÉGALES & RECHERCHE
   ========================================== */

/* Page Recherche */
.search-page-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 70vh;
}

.search-page-section h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.search-page-form {
    max-width: 800px;
    margin: 0 auto 60px;
}

.search-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-main-input {
    flex: 1;
    padding: 15px 25px;
    font-size: 1.1rem;
    border: 2px solid rgba(0, 56, 147, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.search-main-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 56, 147, 0.1);
}

.search-input-group .btn {
    padding: 15px 35px;
    border-radius: 50px;
    white-space: nowrap;
}

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.search-filter {
    padding: 12px 20px;
    border: 2px solid rgba(0, 56, 147, 0.2);
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filter:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-results {
    max-width: 900px;
    margin: 0 auto;
}

.search-results h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.results-info {
    color: var(--text-gray);
    font-size: 1.05rem;
    padding: 30px;
    background: white;
    border-left: 4px solid var(--accent-red);
    border-radius: 10px;
}

/* Pages Légales */
.legal-content-section {
    padding: 80px 0;
    background: #ffffff;
    min-height: 70vh;
}

.legal-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content-wrapper h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-red);
}

.legal-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-text h2 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ==========================================
   SMOOTH SCROLL
   ========================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================
   BOUTON RETOUR EN HAUT
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-red), #c81446);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */

/* Focus visible pour keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================
   LAZY LOADING
   ========================================== */

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group .btn {
        width: 100%;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .legal-content-wrapper h1 {
        font-size: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
