/* ==========================================================================
   Single Agenda Page — Elegant Design
   ========================================================================== */

#single-agenda {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FAFBFC;
    color: #10233F;
    line-height: 1.7;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.agenda-hero {
    position: relative;
    width: 100%;
}

.agenda-hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    max-height: 700px;
    overflow: visible;
}

.agenda-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.agenda-hero.is-loaded .agenda-hero__image {
    transform: scale(1.02);
}

.agenda-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e5f8e 0%, #164c7a 100%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 8rem;
}

.agenda-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(16, 35, 63, 0.2) 0%,
        rgba(16, 35, 63, 0.5) 50%,
        rgba(16, 35, 63, 0.85) 100%
    );
    z-index: 1;
}

.agenda-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 0 72px;
    color: #FFFFFF;
    z-index: 2;
}

.agenda-hero__inner {
    max-width: 800px;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.agenda-hero__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.3s both;
}

.agenda-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.agenda-hero__meta-item i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.agenda-hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeIn 0.7s ease 0.4s both;
}

.agenda-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.55s both;
}

.agenda-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.agenda-like-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.agenda-like-btn.is-liked {
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
}

.agenda-like-btn.just-liked {
    animation: agendaHeartPulse 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agenda-like-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.agenda-like-btn:hover i {
    transform: scale(1.15);
}

/* Lien « Ajouter à mon agenda » : même habillage que le bouton J'aime. */
.agenda-calendrier-btn,
.agenda-calendrier-btn:hover,
.agenda-calendrier-btn:focus {
    line-height: normal; /* un lien hérite de la hauteur de ligne du texte, plus grande que celle d'un bouton */
    color: #FFFFFF;
    text-decoration: none;
}

@media (max-width: 576px) {
    .agenda-hero__actions { flex-wrap: wrap; }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.agenda-breadcrumb {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.2s both;
}

.agenda-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.agenda-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.agenda-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    transition: all 0.25s ease;
}

.agenda-breadcrumb-link:hover {
    color: #FFFFFF;
    transform: none;
}

.agenda-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
}

.agenda-breadcrumb-item.active span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    padding: 0;
    border-radius: 0;
}

/* ==========================================================================
   Content Section
   ========================================================================== */
.agenda-content {
    padding: 80px 0 96px;
    background: linear-gradient(180deg, #FAFBFC 0%, #F5F7FA 100%);
}

.agenda-content__card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid rgba(16, 35, 63, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    padding: 48px;
    margin-bottom: 40px;
    animation: contentReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.agenda-summary {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.7;
    padding: 24px 28px;
    background: #F8FAFC;
    border-radius: 16px;
    border-left: 4px solid #1e5f8e;
    margin-bottom: 32px;
}

.agenda-summary p {
    margin: 0;
    font-style: italic;
}

.agenda-body {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.8;
    color: #374151;
    letter-spacing: -0.003em;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: justify;
}

.agenda-body p {
    margin-bottom: 20px;
    color: #374151;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: justify;
}

.agenda-body a {
    color: #1e5f8e;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(30, 95, 142, 0.2);
    text-decoration-thickness: 1px;
    transition: all 0.2s ease;
    word-break: break-all;
    overflow-wrap: break-word;
}

.agenda-body a:hover {
    text-decoration-color: #1e5f8e;
    color: #164c7a;
}

.agenda-body iframe,
.agenda-body video,
.agenda-body embed,
.agenda-body object {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px 0;
    display: block;
}

.agenda-body h1,
.agenda-body h2,
.agenda-body h3,
.agenda-body h4,
.agenda-body h5,
.agenda-body h6 {
    color: #10233F;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.agenda-body h2 {
    font-size: 1.75rem;
}

.agenda-body h3 {
    font-size: 1.5rem;
}

.agenda-body ul,
.agenda-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.agenda-body li {
    margin-bottom: 8px;
}

.agenda-body blockquote {
    border-left: 4px solid #1e5f8e;
    padding: 16px 24px;
    margin: 24px 0;
    background: #F8FAFC;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4B5563;
}

.agenda-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* ==========================================================================
   Related Events
   ========================================================================== */
.agenda-related {
    animation: contentReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.agenda-related__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #10233F;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.agenda-related-card {
    display: block;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(16, 35, 63, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.agenda-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: rgba(30, 95, 142, 0.15);
}

.agenda-related-card__image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #f0f0f0;
}

.agenda-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agenda-related-card:hover .agenda-related-card__image img {
    transform: scale(1.08);
}

.agenda-related-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e5f8e 0%, #164c7a 100%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.agenda-related-card__content {
    padding: 20px;
}

.agenda-related-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #10233F;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agenda-related-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.agenda-related-card__date i {
    color: #1e5f8e;
    font-size: 0.75rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .agenda-hero__image-wrapper {
        height: 50vh;
        min-height: 380px;
    }

    .agenda-hero__title {
        font-size: 2rem;
    }

    .agenda-hero__content {
        padding: 48px 0 60px;
    }

    .agenda-content {
        padding: 60px 0 80px;
    }

    .agenda-content__card {
        padding: 32px;
    }
}

@media (max-width: 767px) {
    .agenda-hero__image-wrapper {
        height: 45vh;
        min-height: 320px;
    }

    .agenda-hero__title {
        font-size: 1.65rem;
    }

    .agenda-hero__meta {
        gap: 12px;
    }

    .agenda-hero__meta-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .agenda-hero__content {
        padding: 36px 0 48px;
    }

    .agenda-content {
        padding: 40px 0 56px;
    }

    .agenda-content__card {
        padding: 24px;
        border-radius: 20px;
    }

    .agenda-summary {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .agenda-body {
        font-size: 1rem;
    }

    .agenda-related__title {
        font-size: 1.5rem;
    }

    .agenda-related-card__image {
        height: 160px;
    }
}

@keyframes agendaHeartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.25); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .agenda-hero__image,
    .agenda-related-card,
    .agenda-related-card__image img {
        transition: none !important;
        animation: none !important;
    }
}
