/* Variables CSS */
:root {
    --primary-color: rgba(245, 30, 159, 0.804);
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #fafafa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --spacing: 1.5rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Nexa';
    src: url('static/fonts/NexaBlack.otf') format('opentype');
    font-weight: 400;
}
@font-face {
    font-family: 'Nexa';
    src: url('static/fonts/NexaHeavy.otf') format('opentype');
    font-weight: 700;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;

}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    width: 100%;
}

.texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Background image and color blend */
    background: 
        /* linear-gradient(90deg,rgba(245, 30, 159, 1) 0%, rgba(255, 255, 255, 0) 91%); */
        /* url('static/images/texture.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    /* Make color overlay blend with image */
    background-blend-mode: lighten;
    opacity: 0.5;
}
/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

header .subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main content */
main {
    flex: 1;
    padding-bottom: 3rem;
}

body {
    color: var(--primary-color);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.newsletter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter date */
.newsletter-date {
    text-align: center;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.newsletter-date svg {
    width: 100px;
    height: 100px;
    margin-right: 1rem;
}

/* Sections */
.section {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-color);
}

/* Agenda */
.newsletter-agenda {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;

}

.agenda-item {
    background: var(--bg-section);
    border-top: 1px solid var(--primary-color); 
}

.agenda-item-date {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-color);
    color: white;
    padding: 0.1rem 0.7rem;
    width: fit-content;
    margin-bottom: 1rem;
}

.event-link {
    text-decoration: none;
    color: var(--primary-color);
}

.event-title-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 600;
    max-width: 80%;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: 'Nexa', sans-serif;
    margin-left: 30px;

}

.event-link-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}
.event-link-container svg{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0.3rem;
    color: var(--primary-color);
    background: var(--primary-color);
}

.event-description-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: 30px;
}

.event-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    width:80%;
}

.picto {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 0.5rem;
}

.line {
    width: 30px;
    height: 3px;
    rotate: 160deg;
    border-radius: 5px;
    background: var(--primary-color);
}

.line:nth-child(2) {
    margin-left:-35px;
    margin-top: -12px;
    rotate: -20deg;
    transform-origin: top calc(50% - 10px);
}

.line:nth-child(3) {
    margin-left:-30px;
    margin-top: 8px;
    rotate: -50deg;
    transform-origin: top calc(50% - 10px);
}

.line:nth-child(4) {
    margin-left:-30px;
    margin-top: 22px;
    rotate: -58deg;
    transform-origin: top calc(50% - 10px);
}

.event-location {
    font-size: 0.9rem;
    border:1px solid var(--primary-color);
    width: fit-content;
    padding: 0.1rem 1rem;
    border-radius: 30px;
    line-height: 1.6;
    position: relative;
    top:-3px;
}


.agenda-item-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.agenda-item-location {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-item-link {
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.agenda-item-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Members */

.newsletter-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.newsletter-members-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 3rem;
    gap: 0.5rem;
}

.fanion {
    width: fit-content;
    height: 35px;
}

.members {
    display: flex;
    gap: 2rem;
}

.member {

    padding: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.member:nth-child(odd) {
    border-right: 1px solid var(--primary-color);
}

.member-card {
    background: var(--bg-section);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.member-name {
    font-size: 1.5rem;
    rotate: -5deg;
    font-weight: 700;
    color: white;
    width: fit-content;
    margin-bottom: 1rem;
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.member-contributions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.contribution-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border-left: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.contribution-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contribution-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.contribution-type.album {
    background: var(--secondary-color);
    color: white;
}

.contribution-type.event {
    background: var(--success-color);
    color: white;
}

.contribution-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--primary-color);
    line-height: 1.2;
}

.contribution-description {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    margin-left: 1rem;
    margin-bottom: 0.75rem;
}

.contribution-location {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contribution-link {
    color: var(--secondary-color);
    text-decoration: none;
    float: right;
}

.contribution-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-section);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gallery-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item-video {
    width: 100%;
    height: 250px;
    border: none;
}

.gallery-item-description {
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.gallery-item-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    background: var(--accent-color);
    color: white;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 1.5rem;
    }

    .newsletter-members {
        grid-template-columns: 1fr;
    }

    .member-contributions {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .agenda-item-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

