/**
 * Styles pour la page single du module Agenda
 *
 * @package Astra_Child_RGAA
 */

/* Import des variables CSS centralisées */
@import "agenda-variables.css";

/* ===================================
   ACCESSIBILITÉ
   =================================== */

/* Screen reader text - Masqué visuellement mais accessible aux lecteurs d'écran */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #000;
    color: #fff;
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 8px 16px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    border-radius: 4px;
}

/* Classe sr-only RGAA */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   SINGLE ÉVÉNEMENT - Layout 70/30
   =================================== */

.agenda-single {
    margin-top: 1.5rem;
}

.agenda-container {
    display: grid;
    grid-template-columns: 67% 30%;
    gap: 3%;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
    padding: 0 15px;
}

/* COLONNE PRINCIPALE */
.agenda-main {
    min-width: 0;
}

.agenda-header {
    padding: 0 20px;
}

.agenda-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.agenda-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* MÉTADONNÉES */
.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: #f9f9f9;
    border-radius: 3px;
}

.agenda-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #374151;
}

.agenda-icon {
    flex-shrink: 0;
    width: 20px;
}

/* CONTENU */
.agenda-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #1f2937;
}

.agenda-content p {
    margin-bottom: 1.5rem;
}

.agenda-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.agenda-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

/* SIDEBAR */
.agenda-sidebar {
    position: sticky;
    top: 80px;
    min-width: 0;
    align-self: start;
    height: fit-content;
}

.agenda-summary {
    background: transparent;
    padding: 0;
}

.agenda-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

.agenda-summary-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.5;
}

.agenda-summary-item .agenda-icon {
    margin-top: 2px;
}

.agenda-summary-description {
    margin: 0 0 20px 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
}

.agenda-summary-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
    color: #4b5563;
}

.agenda-summary-date .agenda-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* LIENS D'ACTION - Icône + Texte */
.agenda-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.agenda-link:last-child {
    border-bottom: none;
}

.agenda-link .agenda-icon {
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/*.agenda-link:hover,
.agenda-link:focus {
    color: #1d4ed8;
    text-decoration: underline;
}*/

.agenda-link:hover .agenda-icon,
.agenda-link:focus .agenda-icon {
    transform: translateX(4px);
}

.agenda-link:focus-visible {
    outline: var(--agenda-focus-outline);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Lien principal (Réservation) */
/*.agenda-link-primary {
    color: #dc2626;
    font-weight: 600;
    background: #fef2f2;
    padding: 14px 16px;
    border-radius: 6px;
    border: 2px solid #fca5a5;
    margin: 8px 0;
}

.agenda-link-primary:hover,
.agenda-link-primary:focus {
    color: #991b1b;
    background: #fee2e2;
    border-color: #f87171;
}*/

/* Adresse complète dans la sidebar */
.agenda-summary-address {
    align-items: flex-start;
}

.agenda-summary-address strong {
    color: #111827;
    font-weight: 600;
}

/* CARTE OPENSTREETMAP */
.agenda-map-container {
    margin-top: 32px;
}

.agenda-map-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #111827;
}

.agenda-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #e5e7eb;
}

/* Message de chargement */
.agenda-map::before {
    content: "Chargement de la carte...";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    font-size: 0.875rem;
}

.agenda-map.loaded::before {
    display: none;
}

/* ===================================
   MEDIA QUERIES - RESPONSIVE
   =================================== */

/* Tablet landscape - max-width: 1024px */
@media (max-width: 1024px) {
    .agenda-container {
        gap: 30px;
    }

    .agenda-title {
        font-size: 2rem;
    }
}

/* Tablet portrait - max-width: 768px */
@media (max-width: 768px) {
    .agenda-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }

    .agenda-sidebar {
        position: static;
    }

    .agenda-title {
        font-size: 1.75rem;
    }

    .agenda-meta {
        flex-direction: column;
        gap: 16px;
    }

    .agenda-content {
        font-size: 1rem;
    }

    .agenda-map {
        height: 250px;
    }

    .agenda-map-container {
        margin-top: 20px;
    }
}

/* Mobile - max-width: 480px */
@media (max-width: 480px) {
    .agenda-title {
        font-size: 1.5rem;
    }

    .agenda-content {
        font-size: 0.9375rem;
    }

    .agenda-link {
        font-size: 0.9375rem;
    }
}

/* Accessibilité - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .agenda-link,
    .agenda-link .agenda-icon {
        transition: none;
    }

    .agenda-link:hover .agenda-icon,
    .agenda-link:focus .agenda-icon {
        transform: none;
    }
}
