/* Page Réunions et Permanences */

.reunions-wrapper {
    background: var(--color-background);
    width: 100%;
}

/* Section Hero */
.reunions-hero-section {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(54, 94, 138, 0.05) 0%, rgba(244, 236, 108, 0.05) 100%);
    border-bottom: 1px solid var(--color-border);
}

.reunions-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.reunions-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reunions-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Section Contenu */
.reunions-content-section {
    padding: 5rem 0;
}

/* Introduction */
.reunions-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.intro-image {
    flex-shrink: 0;
    width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Bureau administratif */
.reunions-bureau {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-primary);
}

.reunions-bureau h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.5rem;
}

.reunions-bureau p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.bureau-address {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(54, 94, 138, 0.05) 0%, rgba(244, 236, 108, 0.05) 100%);
    border-radius: 8px;
    font-size: 1.125rem;
}

.bureau-address svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.bureau-address strong {
    color: var(--color-primary);
}

/* Flyer */
.reunions-flyer {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.flyer-image {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flyer-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.flyer-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(54, 94, 138, 0.3);
    transition: all 0.3s ease;
}

.flyer-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(54, 94, 138, 0.4);
}

.flyer-download svg {
    flex-shrink: 0;
}

/* Liste des lieux */
.reunions-lieux {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.reunions-lieux h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-primary);
}

.lieux-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lieu-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lieu-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(54, 94, 138, 0.15);
}

.lieu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.lieu-link:hover:not(:disabled) {
    background-color: rgba(54, 94, 138, 0.02);
}

.lieu-link:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.lieu-link svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.lieu-type {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.125rem;
}

.lieu-ville {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.lieu-status {
    margin-left: auto;
    padding: 0.375rem 0.875rem;
    background: rgba(244, 236, 108, 0.2);
    color: #9A7B0A;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.lieu-item.lieu-suspended {
    opacity: 0.7;
}

.lieu-item.lieu-suspended .lieu-link {
    cursor: default;
}

/* Message d'invitation */
.reunions-invitation {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(54, 94, 138, 0.08) 0%, rgba(244, 236, 108, 0.08) 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(54, 94, 138, 0.1);
}

.reunions-invitation p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .reunions-hero-section {
        padding: 4rem 0 3rem;
    }
    
    .reunions-hero-title {
        font-size: 2.5rem;
    }
    
    .reunions-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .reunions-content-section {
        padding: 3rem 0;
    }
    
    .reunions-intro {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .intro-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .reunions-bureau {
        padding: 1.5rem;
    }
    
    .reunions-bureau h2 {
        font-size: 1.5rem;
    }
    
    .bureau-address {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .flyer-image {
        max-width: 250px;
    }
    
    .reunions-lieux h2 {
        font-size: 1.5rem;
    }
    
    .lieu-link {
        flex-wrap: wrap;
        padding: 1.25rem;
    }
    
    .lieu-status {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .reunions-invitation {
        padding: 2rem 1.5rem;
    }
    
    .reunions-invitation p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .reunions-hero-title {
        font-size: 2rem;
    }
    
    .reunions-hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .reunions-bureau h2 {
        font-size: 1.25rem;
    }
    
    .bureau-address {
        font-size: 1rem;
    }
    
    .flyer-download {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .reunions-lieux h2 {
        font-size: 1.25rem;
    }
    
    .lieu-type {
        font-size: 1rem;
    }
    
    .lieu-ville {
        font-size: 0.9375rem;
    }
    
    .reunions-invitation p {
        font-size: 1rem;
    }
}

/* Modals */
.reunion-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reunion-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.reunion-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-close svg {
    color: var(--color-text-main);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--color-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.modal-image-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-image-header > div {
    flex: 1;
}

.modal-image-header p {
    margin: 0;
    font-size: 1.125rem;
}

.modal-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(54, 94, 138, 0.05) 0%, rgba(244, 236, 108, 0.05) 100%);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.modal-address svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

.modal-address span {
    color: var(--color-text-main);
    font-weight: 600;
    line-height: 1.6;
}

.modal-suspended {
    padding: 1.5rem;
    background: rgba(244, 236, 108, 0.15);
    border-left: 3px solid #F4EC6C;
    border-radius: 8px;
    color: #9A7B0A;
    font-weight: 600;
    font-style: italic;
}

.modal-schedule {
    margin: 1.5rem 0;
}

.schedule-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(54, 94, 138, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-item p {
    margin: 0 0 0.5rem;
}

.schedule-item p:last-child {
    margin-bottom: 0;
}

.schedule-animators {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.schedule-animators a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.schedule-animators a:hover {
    text-decoration: underline;
}

.modal-transport {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(244, 236, 108, 0.08);
    border-radius: 8px;
}

.modal-transport h4 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.modal-transport p {
    margin: 0 0 0.75rem;
}

.modal-transport ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.modal-transport li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.modal-transport li:last-child {
    margin-bottom: 0;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-body p {
        font-size: 0.9375rem;
    }
    
    .modal-address {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-images {
        grid-template-columns: 1fr;
    }
    
    .modal-image-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .modal-thumbnail {
        width: 120px;
        height: 120px;
    }
}
