/**
 * Styles pour la page d'accueil du Paris West Chapter
 */

/* Surcharge des styles WordPress */
.wp-block-group.has-global-padding.is-layout-constrained {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

.wp-block-group.has-global-padding.is-layout-constrained > .wp-block-group__inner-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force la largeur complète pour le conteneur principal */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Structure principale */
.pwc-category-display {
    padding: 10px 20px;
}

/* Conteneur principal avec grille */
.pwc-category-content {
    margin: 10px 30px 10px 30px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

/* Zone principale */
.pwc-category-main {
    width: 100%;
}

/* Section sticky */
.pwc-sticky-section {
    margin-bottom: 20px;
}

/* Article épinglé */
.entry.sticky {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    padding: 0;
    position: relative;
}

/* Style des cartes d'articles */
.entry {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.entry:hover, article.post:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.entry a, article.post a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Conteneur d'image avec ratio 16:9 */
.entry-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.entry-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image de l'article épinglé */
.entry.sticky .entry-thumbnail {
    height: 100%;
    padding-top: 0;
    position: relative;
    border-radius: 12px 0 0 12px;
}

.entry.sticky .entry-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu de droite pour l'article épinglé */
.entry.sticky .entry-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    position: relative;
}

/* Barre de couleur sur le côté */
.entry.sticky .entry-content-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e96e07;
}

/* Ajuster la couleur de la barre en fonction de la catégorie */
.entry.sticky.category-sorties .entry-content-wrapper::before {
    background-color: #e96e07;
}

.entry.sticky.category-reunions .entry-content-wrapper::before {
    background-color: #e62117;
}

/* Catégorie et métadonnées */
.entry-meta {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

.entry-category {
    display: inline-block;
    background: #e62117;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
}

/* Contenu de l'article - MODIFIÉ */
.entry-content {
    padding: 0 12px;
    flex-grow: 1;
    margin-bottom: 5px;
}

/* Ajustement du contenu de l'article épinglé */
.entry.sticky .entry-content {
    padding: 0;
    margin: 10px 0;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    display: box;
    box-orient: vertical;
}

.entry-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    color: #333;
    padding: 10px 12px 5px;
}

/* Titre de l'article épinglé */
.entry.sticky .entry-title {
    font-size: 1.3rem;
    padding: 0 0 8px 0;
    margin: 0;
}

.entry-footer {
    padding: 5px 12px;
    color: #666;
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px solid #f5f5f5;
}

/* Footer de l'article épinglé */
.entry.sticky .entry-footer {
    padding: 6px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

/* Sidebar */
.pwc-category-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Bouton d'inscription */
.pwc-register-button {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #e62117;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pwc-register-button:hover {
    background: #d41d1d;
}

/* Style de la barre de recherche */
.pwc-search-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.pwc-search-input {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 16px;
    outline: none;
    width: 100%;
    background: transparent;
}

.pwc-search-button {
    background: #e96e07;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwc-search-button:hover {
    background: #d65c00;
}

.pwc-search-button i {
    font-size: 18px;
}

/* Style du titre des résultats de recherche */
.search-title {
    color: #e96e07;
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid #e96e07;
    padding-bottom: 10px;
}

/* Style du message de chargement */
.pwc-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    display: none;
}

/* Style du message d'erreur */
.search-error {
    background: #fff3f3;
    color: #d63031;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* Style des résultats de recherche */
.search-results .pwc-category-posts-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.search-results .entry {
    margin-bottom: 0;
}

.search-no-results {
    text-align: center;
    padding: 40px 0;
}

.search-no-results p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Style du conteneur de résultats */
.pwc-search-results-container {
    margin-top: 10px;
}

/* Sections d'événements */
.open-events-section,
.upcoming-events-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.open-events-section h3,
.upcoming-events-section h3 {
    color: #e96e07;
    border-bottom: 1px solid #e96e07;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 15px;
}

.pwc-event-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.pwc-event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pwc-event-item a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.pwc-event-item .event-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pwc-event-item .event-title {
    font-weight: 500;
}

.pwc-event-item .pwc-event-date {
    color: #666;
    font-size: 0.9em;
}

/* Message pas d'événements */
.no-events {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

/* Pagination */
.pwc-pagination {
    margin-top: 40px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers.current {
    background: #e62117;
    color: #fff;
    border-color: #e62117;
}

.page-numbers:hover:not(.current) {
    background: #f5f5f5;
}

/* Grille d'articles */
.pwc-category-posts-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Media Queries */
@media (min-width: 1600px) {
    .pwc-category-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .pwc-category-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .pwc-category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .pwc-category-content {
        grid-template-columns: 1fr;
    }
    
    .entry.sticky {
        grid-template-columns: 1fr;
    }
    
    .entry.sticky .entry-thumbnail {
        height: 300px;
        border-radius: 12px 12px 0 0;
    }
    
    .pwc-category-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .pwc-category-display {
        padding: 20px 15px;
    }
}

/* Masquer le titre de la page */
.wp-block-post-title {
    display: none !important;
}

/* Style pour aucun résultat */
.pwc-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.pwc-no-results .search-title {
    color: #666;
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: none;
}

.pwc-no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pwc-no-results-content i {
    font-size: 48px;
    color: #e96e07;
    margin-bottom: 10px;
}

.pwc-no-results-content p {
    color: #666;
    font-size: 18px;
    margin: 0;
    max-width: 600px;
}

.pwc-clear-search {
    background: #e96e07;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
}

.pwc-clear-search:hover {
    background: #d65c00;
}

/* Animation pour l'icône */
@keyframes searchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pwc-no-results-content i {
    animation: searchPulse 2s infinite ease-in-out;
}

/* Styles spécifiques pour la section Inscriptions ouvertes */
.open-events-section .pwc-event-item a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.open-events-section .event-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.open-events-section .event-title {
    font-weight: 500;
}

.open-events-section .pwc-event-date {
    color: #666;
    font-size: 0.9em;
}

/* Garder les styles originaux pour la section Événements à venir */
.upcoming-events-section .pwc-event-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upcoming-events-section .event-title {
    flex: 1;
    margin-right: 15px;
}

.upcoming-events-section .pwc-event-date {
    white-space: nowrap;
}

