/* === COMMUNIQUES DE PRESSE STYLES === */

/* Container principal pour header + filtres côte à côte */
.presse-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.presse-header {
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.presse-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.presse-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

.presse-search-container {
    display: flex;
    align-items: stretch;
}

.search-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    height: fit-content;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark, #0056b3);
}

.search-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.filters-section {
    display: flex;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #666;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.presse-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-count {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-sort label {
    font-weight: 500;
    color: #666;
}

.results-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.communiques-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.communique-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.communique-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.communique-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.communique-date {
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.communique-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0 20px 0 0;
    line-height: 1.3;
}

.communique-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.communique-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.communique-action {
    padding: 10px 20px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.communique-action:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.communique-action.primary {
    background: var(--primary);
    color: white;
}

.communique-action.primary:hover {
    background: var(--primary-dark, #0056b3);
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results img {
    width: 120px;
    height: 120px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-results p {
    color: #888;
}

.contact-info {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.contact-info h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-details {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    text-align: center;
}

.contact-item {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    /* Sur mobile, empiler header et filtres verticalement */
    .presse-top-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .presse-header {
        min-height: auto;
        padding: 30px 20px;
        text-align: center;
    }
    
    .presse-header h1 {
        font-size: 2rem;
    }
    
    .presse-subtitle {
        font-size: 1rem;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .communique-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .communique-title {
        margin: 0;
        order: -1;
    }
    
    .communique-date {
        align-self: flex-start;
    }
    
    .communique-actions {
        flex-direction: column;
    }
    
    .filters-section {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .presse-top-section {
        padding: 0 15px;
    }
    
    .presse-header {
        padding: 20px 15px;
    }
    
    .presse-results,
    .contact-info {
        padding: 0 15px;
    }
    
    .communique-card {
        padding: 20px;
    }
    
    .communique-title {
        font-size: 1.2rem;
    }
}
