/*
Theme Name: EM Style
Version: 1.0.0
Description: Styles pour les pages de détails (associations et manifestations) - Style WP Event Manager
*/

/* Variables CSS - Style WP Event Manager */
:root {
    --wpem-primary-color: #0096ff;
    --wpem-dark-color: #111111;
    --wpem-gray-color: #555555;
    --wpem-white-color: #ffffff;
    --wpem-gray-border-color: #e4e4e4;
    --wpem-gray-bg-color: #f5f5f5;
    --wpem-light-bg: #fafafa;
    
    --meta-bg: var(--wpem-gray-bg-color);
    --meta-color: var(--wpem-gray-color);
    --default-color: var(--wpem-dark-color);
    --default-border: var(--wpem-gray-border-color);
}

/* Container principal */
.am-detail-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.am-detail-container {
    width: 100%;
}

/* Fil d'Ariane */
.am-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--wpem-gray-color);
}

.am-breadcrumb a {
    color: var(--wpem-primary-color);
    text-decoration: none;
}

.am-breadcrumb a:hover {
    text-decoration: underline;
}

.am-breadcrumb span {
    color: var(--wpem-dark-color);
    font-weight: 500;
}

/* ============================================
   ASSOCIATIONS - Page de détail
   ============================================ */

/* Bannière avec grande image */
.am-association-banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: var(--am-image-bg-color, #ffffff);
    background-repeat: no-repeat;
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.am-association-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
}

/* Article principal */
.am-association-detail {
    background: var(--wpem-white-color);
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Header avec thumbnail et titre */
.am-association-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid var(--wpem-gray-border-color);
    background-color: var(--wpem-white-color);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Thumbnail - Petite image */
.am-association-thumbnail-wrapper {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border: 1px solid var(--wpem-gray-border-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--am-image-bg-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-association-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: var(--am-image-bg-color, #ffffff);
}

/* Titre */
.am-association-title {
    flex: 1;
    padding-top: 20px;
}

.am-association-title h1 {
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--wpem-dark-color);
    margin: 0 0 20px 0;
}

/* Contenu principal */
.am-association-content {
    padding: 40px;
}

/* Blocs d'information avec bordures */
.am-association-info-block {
    margin-bottom: 30px;
    border: 1px solid var(--wpem-gray-border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--wpem-white-color);
}

.am-association-info-block h2 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--wpem-dark-color);
    margin: 0;
    padding: 20px 25px;
    background: var(--wpem-light-bg);
    border-bottom: 1px solid var(--wpem-gray-border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-association-info-content {
    padding: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--wpem-gray-color);
}

/* Items de contact */
.am-contact-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wpem-gray-border-color);
}

.am-contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.am-contact-item strong {
    font-weight: 600;
    color: var(--wpem-dark-color);
    margin-right: 10px;
    display: inline-block;
    min-width: 100px;
}

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

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

/* Liste des manifestations */
.am-manifestations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.am-manifestation-item {
    border: 1px solid var(--wpem-gray-border-color);
    border-radius: 4px;
    padding: 15px;
    transition: box-shadow 0.2s ease;
}

.am-manifestation-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.am-manifestation-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.am-manifestation-link h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpem-dark-color);
    margin: 0 0 10px 0;
}

.am-manifestation-link:hover h3 {
    color: var(--wpem-primary-color);
}

.am-manifestation-date,
.am-manifestation-lieu {
    margin: 5px 0;
    font-size: 14px;
    color: var(--wpem-gray-color);
}

/* ============================================
   MANIFESTATIONS - Page de détail
   ============================================ */

/* Bannière - Style WP Event Manager */
.am-manifestation-banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: var(--am-image-bg-color, #ffffff);
    background-repeat: no-repeat;
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.am-manifestation-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
}

/* Article principal - Style WP Event Manager */
.am-manifestation-detail {
    background: var(--wpem-white-color);
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Header de l'article - Style WP Event Manager */
.am-manifestation-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid var(--wpem-gray-border-color);
    background-color: var(--wpem-white-color);
}

.am-manifestation-header h1 {
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--wpem-dark-color);
    margin: 0 0 20px 0;
}

.am-manifestation-meta {
    margin-top: 15px;
}

.am-association-info {
    font-size: 16px;
    line-height: 1.5;
    color: var(--wpem-gray-color);
    margin: 0;
}

.am-association-link {
    color: var(--wpem-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.am-association-link:hover {
    text-decoration: underline;
}

/* Contenu principal - Style WP Event Manager */
.am-manifestation-content {
    padding: 40px;
}

/* Sections d'informations - Style WP Event Manager */
.am-event-info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.am-event-info-section {
    background: var(--wpem-light-bg);
    border: 1px solid var(--wpem-gray-border-color);
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s ease;
}

.am-event-info-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.am-event-info-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpem-dark-color);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-event-icon {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--wpem-white-color);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.am-event-info-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--wpem-gray-color);
}

.am-event-info-line {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.am-event-info-line:last-child {
    margin-bottom: 0;
}

.am-event-info-line strong {
    font-weight: 600;
    color: var(--wpem-dark-color);
    min-width: 60px;
}

.am-event-info-line span {
    color: var(--wpem-gray-color);
}

/* Sections de contenu */
.am-manifestation-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--wpem-gray-border-color);
}

.am-manifestation-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.am-manifestation-section h2 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--wpem-dark-color);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-manifestation-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--wpem-gray-color);
    margin: 0 0 15px 0;
}

/* Informations de contact */
.am-contact-info {
    font-size: 16px;
    line-height: 1.8;
    color: var(--wpem-gray-color);
}

.am-contact-info p {
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.am-contact-info strong {
    font-weight: 600;
    color: var(--wpem-dark-color);
    min-width: 100px;
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .am-event-info-sections {
        grid-template-columns: 1fr;
    }
    
    .am-association-banner,
    .am-manifestation-banner {
        height: 300px;
    }
    
    .am-association-detail,
    .am-manifestation-detail {
        margin-top: -60px;
    }
    
    .am-association-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .am-association-thumbnail-wrapper {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .am-detail-wrapper {
        padding: 15px;
    }
    
    .am-association-banner,
    .am-manifestation-banner {
        height: 250px;
    }
    
    .am-association-detail,
    .am-manifestation-detail {
        margin-top: -40px;
    }
    
    .am-association-header {
        padding: 30px 20px 20px;
        flex-direction: column;
    }
    
    .am-association-thumbnail-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .am-association-title h1,
    .am-manifestation-header h1 {
        font-size: 28px;
    }
    
    .am-association-content,
    .am-manifestation-content {
        padding: 30px 20px;
    }
    
    .am-association-info-block h2 {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    .am-association-info-content {
        padding: 20px;
    }
    
    .am-event-info-section {
        padding: 20px;
    }
    
    .am-event-info-title {
        font-size: 16px;
    }
    
    .am-event-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
