/* =========================
   BASE – MOBILE FIRST
========================= */

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

.event-main {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* =========================
   HEADER EVENT
========================= */

.event-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.event-meta .event-date img,
.event-meta .event-location img,
.event-meta .event-time img {
    width: 16px;
    height: 16px;
}

/* =========================
   IMAGE EVENT
========================= */

.event-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* =========================
   STATUS EVENT
========================= */

.event-status {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-a-venir {
    background: #e6f4ff;
    color: #0077cc;
}

.status-termine {
    background: #f1f1f1;
    color: #666;
}

.status-annule {
    background: #ffe6e6;
    color: #cc0000;
}

/* =========================
   DESCRIPTION
========================= */

/* =========================
   CONTENT
========================= */

.event-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #2b2b2b;
}

.event-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.event-content .event-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}

/* =========================
   INFOS PRATIQUES
========================= */

.sources-container {
    background: #fafafa;
    border-radius: 12px;
    padding: 1rem;
}

.sources-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.source-section p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* =========================
   SOCIAL & FOOTER
========================= */

.event-author {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
}

.author-name {
    font-weight: 600;
    color: #222;
}

.publish-date {
    font-size: 0.85rem;
    color: #777;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f2f2f2;
    transition: background 0.2s ease;
}

.social-button:hover {
    background: #e0e0e0;
}

.social-button img {
    width: 18px;
    height: 18px;
}

/* =========================
   SPACERS
========================= */

.spacer-sm { height: 0.75rem; }
.spacer-md { height: 1.25rem; }
.spacer-lg { height: 2rem; }

/* =========================
   TABLET ≥ 768px
========================= */

@media (min-width: 768px) {

    .event-grid {
        padding: 2rem;
    }

    .event-header h1 {
        font-size: 2rem;
    }

    .event-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .event-main {
        padding: 2rem;
    }
}

/* =========================
   DESKTOP ≥ 1024px
========================= */

@media (min-width: 1024px) {

    .event-grid {
        max-width: 1100px;
        margin: auto;
    }

    .event-header h1 {
        font-size: 2.4rem;
    }

    .event-content {
        font-size: 1.05rem;
    }

    .event-author {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
