/* Styles pour la section hero du blog - Organisation horizontale des éléments de recherche */

/* Styles propres pour la section hero - espacement réduit */
body.blog-page .simple-hero {
    padding: 0px 20px !important; /* Supprime complètement le padding vertical */
    min-height: 120px !important; /* Réduit de 20px supplémentaires : 140px → 120px */
    height: 120px !important; /* Réduit de 20px supplémentaires : 140px → 120px */
    max-height: 120px !important; /* Force la hauteur maximale */
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.blog-page .simple-hero h1 {
    font-size: 2.2rem !important; /* Réduit la taille pour gagner de l'espace */
    font-weight: 700;
    margin: 0 0 2px 0 !important; /* Réduit encore l'espacement : 6px → 2px */
    color: white;
    line-height: 0.95 !important; /* Line-height très serré */
}

body.blog-page .simple-hero p {
    font-size: 1.0rem !important; /* Réduit la taille pour gagner de l'espace */
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 3px auto !important; /* Réduit encore l'espacement : 8px → 3px */
    max-width: 600px;
    line-height: 1.1 !important; /* Line-height très serré */
}

/* Container principal de recherche - espacement réduit */
.search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 5px auto 0px auto; /* Réduit extrêmement : margin-top 10px → 5px et margin-bottom 2px → 0px */
    flex-wrap: wrap;
}

/* Boîte de recherche */
.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 16px;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Bouton de recherche */
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-btn i {
    font-size: 14px;
}

/* Filtres de recherche */
.search-filters {
    flex-shrink: 0;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.filter-select:focus {
    outline: none;
    background: white;
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.filter-select:hover {
    background: white;
    border-color: #667eea;
}

/* Responsive design */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .search-box {
        min-width: 100%;
        max-width: 100%;
    }
    
    .filter-select {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .search-input,
    .filter-select {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .search-input {
        padding-right: 45px;
    }
    
    .filter-select {
        padding-right: 35px;
    }
    
    .search-btn {
        width: 30px;
        height: 30px;
        right: 3px;
    }
    
    .search-btn i {
        font-size: 12px;
    }
}
/* Force l'organisation verticale du contenu hero avec sélecteurs très spécifiques */
body.blog-page .simple-hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.blog-page .simple-hero h1 {
    order: 1 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

body.blog-page .simple-hero p {
    order: 2 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

body.blog-page .search-container {
    order: 3 !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
