/* ============================================
   BLOCS DE CONTENU — RENDU PUBLIC
   Styles partagés pour le rendu des blocs eb-*
   Utilisé par les pages CMS et les événements
   ============================================ */

/* Typographie de base pour le contenu à blocs */
.event-content.prose {
    color: var(--gray-300);
    line-height: 1.8;
}

.event-content.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-100);
    margin: 32px 0 16px;
}

.event-content.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-200);
    margin: 24px 0 12px;
}

.event-content.prose p {
    margin: 0 0 16px;
}

.event-content.prose ul,
.event-content.prose ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.event-content.prose li {
    margin-bottom: 8px;
}

.event-content.prose a {
    color: var(--primary-light);
}

.event-content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* ============================================
   BLOC: HERO
   ============================================ */

.eb-hero {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
    min-height: 400px;
}

.eb-hero--small { max-width: 25%; margin-left: auto; margin-right: auto; min-height: 200px; }
.eb-hero--medium { max-width: 50%; margin-left: auto; margin-right: auto; min-height: 280px; }
.eb-hero--large { max-width: 75%; margin-left: auto; margin-right: auto; min-height: 340px; }
.eb-hero--full { max-width: 100%; }

.eb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
}

.eb-hero--dark::before { background: rgba(0, 0, 0, 0.5); }
.eb-hero--light::before { background: rgba(255, 255, 255, 0.5); }
.eb-hero--none::before { background: none; }

.eb-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 700px;
}

.eb-hero-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.eb-hero--light .eb-hero-title {
    color: #111;
    text-shadow: none;
}

.eb-hero-subtitle {
    margin: 0.5rem 0 0;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
}

.eb-hero--light .eb-hero-subtitle {
    color: #333;
}

@media (max-width: 768px) {
    .eb-hero { border-radius: 8px; }
    .eb-hero-title { font-size: 1.5rem; }
    .eb-hero-subtitle { font-size: 1rem; }
    .eb-hero-content { padding: 1.5rem 1rem; }
}

/* ============================================
   BLOC: TITRE
   ============================================ */

.eb-heading {
    margin: 0 0 16px;
    font-weight: 700;
    color: inherit;
}

/* ============================================
   BLOC: TEXTE
   ============================================ */

.eb-text {
    margin-bottom: 16px;
}

/* ============================================
   BLOC: IMAGE
   ============================================ */

.eb-image {
    margin: 24px 0;
    text-align: center;
}

.event-content .eb-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.event-content .eb-image--small img { max-width: 25%; }
.event-content .eb-image--medium img { max-width: 50%; }
.event-content .eb-image--large img { max-width: 75%; }
.event-content .eb-image--full img { max-width: 100%; }

/* ============================================
   BLOC: BOUTON
   ============================================ */

.eb-button {
    margin: 24px 0;
    text-align: center;
}

.eb-button--left { text-align: left; }
.eb-button--center { text-align: center; }
.eb-button--right { text-align: right; }

/* ============================================
   BLOC: ESPACEMENT
   ============================================ */

.eb-spacer {
    display: flex;
    align-items: center;
}

.eb-divider hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0;
}

/* ============================================
   BLOC: GALERIE
   ============================================ */

.eb-gallery {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.eb-gallery--2cols { grid-template-columns: repeat(2, 1fr); }
.eb-gallery--3cols { grid-template-columns: repeat(3, 1fr); }
.eb-gallery--4cols { grid-template-columns: repeat(4, 1fr); }

.eb-gallery-item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
}

.eb-gallery--portrait .eb-gallery-item {
    aspect-ratio: auto;
}

.event-content .eb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    max-width: none;
    border-radius: 0;
}

@media (max-width: 600px) {
    .eb-gallery--3cols,
    .eb-gallery--4cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   BLOC: VIDÉO
   ============================================ */

.eb-video {
    margin: 24px 0;
}

.eb-video video {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.eb-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.eb-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.eb-video-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 8px;
}

/* ============================================
   BLOC: FICHIER
   ============================================ */

.eb-file {
    margin: 24px 0;
}

.eb-file-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(125, 71, 222, 0.06);
    border: 1px solid rgba(125, 71, 222, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.eb-file-link:hover {
    background: rgba(125, 71, 222, 0.12);
    border-color: rgba(125, 71, 222, 0.4);
    transform: translateY(-1px);
}

.eb-file-link > i:first-child {
    font-size: 2rem;
    color: var(--primary-light);
}

.eb-file-link > i:last-child {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-left: auto;
}

.eb-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.eb-file-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-200);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eb-file-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================
   BLOC: ENCADRÉ / ALERTE
   ============================================ */

.event-content .eb-alert {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid;
    margin: 24px 0;
    align-items: center;
    line-height: 1.6;
}

.event-content .eb-alert > i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.event-content .eb-alert > div {
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.event-content .eb-alert--info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}

.event-content .eb-alert--info > i { color: #60a5fa; }

.event-content .eb-alert--warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fef3c7;
}

.event-content .eb-alert--warning > i { color: #fbbf24; }

.event-content .eb-alert--danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fecaca;
}

.event-content .eb-alert--danger > i { color: #f87171; }

/* ============================================
   BLOC: CITATION
   ============================================ */

.event-content .eb-quote {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(125, 71, 222, 0.04);
    border-left: 4px solid rgba(125, 71, 222, 0.5);
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.event-content .eb-quote > i {
    font-size: 1.75rem;
    color: rgba(125, 71, 222, 0.4);
    flex-shrink: 0;
}

.event-content .eb-quote p {
    margin: 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gray-200);
    line-height: 1.7;
    flex: 1;
    min-width: 0;
}

.event-content .eb-quote cite {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding-left: 44px;
    font-size: 0.9rem;
    color: var(--gray-400);
    font-style: normal;
}

/* ============================================
   BLOC: COLONNES
   ============================================ */

.event-content .eb-columns {
    display: grid;
    gap: 1.5rem;
    margin: 24px 0;
}

.event-content .eb-columns--2cols { grid-template-columns: repeat(2, 1fr); }
.event-content .eb-columns--3cols { grid-template-columns: repeat(3, 1fr); }
.event-content .eb-columns--4cols { grid-template-columns: repeat(4, 1fr); }

.event-content .eb-column > *:first-child { margin-top: 0; }
.event-content .eb-column > *:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .event-content .eb-columns--2cols,
    .event-content .eb-columns--3cols,
    .event-content .eb-columns--4cols {
        grid-template-columns: 1fr;
    }
}
