/* ============================================
   Vivre a Moutier - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-sage: #7BA284;
    --color-teal: #2B5E6A;
    --color-sage-light: #A5C9AD;
    --color-teal-light: #3D7A8A;
    --color-teal-dark: #1D4450;
    --color-bg: #f5f7f6;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-muted: #888;
    --color-border: #e5e7eb;
    --color-border-light: #f0f0f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 10px 40px rgba(0,0,0,0.1);
    --gradient-brand: linear-gradient(135deg, var(--color-sage) 0%, var(--color-teal) 100%);
    --transition-base: 0.3s ease;
    --container-max: 1200px;
    --nav-height: 70px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Base --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Accessibility --- */
/* Skip to content link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-teal);
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-sage);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utility Classes --- */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.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;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-vivre {
    font-size: 14px;
    color: var(--color-sage);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-moutier {
    font-size: 24px;
    color: var(--color-teal);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-base);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-teal);
}

/* Ensure .btn-primary keeps white text inside nav */
.nav-links a.btn-primary {
    color: white;
}

.nav-links a.btn-primary:hover {
    color: white;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-sage);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-teal);
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--gradient-brand);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(43, 94, 106, 0.3);
}

.btn-white {
    background: white;
    color: var(--color-teal);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: background var(--transition-base), transform var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-reset {
    width: 100%;
    padding: 12px;
    background: #f3f4f6;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: background var(--transition-base);
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

.btn-reset:hover {
    background: var(--color-border);
}

.btn-action {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-action-primary {
    background: var(--gradient-brand);
    color: white;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(43, 94, 106, 0.3);
}

.btn-action-secondary {
    background: white;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
}

.btn-action-secondary:hover {
    background: var(--color-teal);
    color: white;
}

/* ============================================
   Hero Section (Homepage)
   ============================================ */
.hero {
    background: var(--gradient-brand);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--color-teal);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-light);
}

.events-section {
    padding: 60px 0;
}

/* ============================================
   Page Header (sub-pages)
   ============================================ */
.page-header {
    background: var(--gradient-brand);
    color: white;
    padding: 60px 20px 40px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.95;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   Event Cards
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.event-image {
    position: relative;
    height: 200px;
    background: var(--gradient-brand);
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder icon when no image */
.event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.4);
    font-size: 48px;
}

.event-date-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.event-date-day {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-teal);
    line-height: 1;
}

.event-date-day--range {
    font-size: 14px;
    line-height: 1.2;
}

.event-date-month {
    font-size: 12px;
    color: var(--color-sage);
    font-weight: 600;
    margin-top: 2px;
}

.event-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: white;
    /* Solid fallback + blur enhancement */
    background-color: var(--badge-color, var(--color-sage));
}

@supports (backdrop-filter: blur(10px)) {
    .event-category-badge {
        backdrop-filter: blur(10px);
    }
}

.event-content {
    padding: 22px;
}

.event-organizer {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-organizer i {
    color: var(--color-sage);
}

.event-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.event-meta-item i {
    color: var(--color-sage);
    width: 16px;
    text-align: center;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 15px;
    border-top: 1px solid var(--color-border-light);
    gap: 12px;
}

.event-price {
    font-weight: 700;
    color: var(--color-teal);
    font-size: 14px;
    flex: 1;
    min-width: 0;
    /* Truncate long price text to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.event-link {
    color: var(--color-sage);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-view-all {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   Events Listing Page - Layout
   ============================================ */
.content-wrapper {
    padding: 40px 0;
}

.layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Hidden by default on desktop - shown only on mobile */
.sidebar-toggle {
    display: none;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    height: fit-content;
}

.filter-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color var(--transition-base);
    font-family: inherit;
}

.search-box:focus {
    outline: none;
    border-color: var(--color-sage);
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form .search-box {
    flex: 1;
}

.btn-search {
    background: var(--color-sage);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-base);
    font-size: 14px;
}

.btn-search:hover {
    background: var(--color-teal);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-base);
    font-size: 15px;
}

.category-link:hover,
.category-link.active {
    background: #f3f4f6;
}

.category-link.active {
    font-weight: 600;
    color: var(--color-teal);
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.price-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-sage);
    cursor: pointer;
}

/* Main content area */
.main-content {
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-count {
    font-size: 18px;
    color: var(--color-text-light);
}

.results-count strong {
    color: var(--color-teal);
    font-weight: 700;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.no-results i {
    font-size: 64px;
    color: var(--color-sage-light);
    margin-bottom: 20px;
    display: block;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-teal);
}

/* ============================================
   Event Detail Page (v2 — two-column layout)
   ============================================ */
.ed-breadcrumb-bar {
    background: var(--gradient-brand);
    color: white;
    padding: 25px 20px 20px;
}

.ed-wrapper {
    padding: 40px 0 60px;
}

.ed-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 35px;
    align-items: start;
}

/* Hero image */
.ed-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    background: #e9ecef;
}

.ed-hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.ed-hero-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    color: rgba(255,255,255,0.25);
    font-size: 72px;
}

.ed-date-float {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    line-height: 1;
}

.ed-date-float-day {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-teal);
}

.ed-date-float-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-sage);
    margin-top: 3px;
}

.ed-category-float {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: white;
}

/* Title block */
.ed-title-block {
    margin-top: 28px;
    margin-bottom: 28px;
}

.ed-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-teal-dark);
    line-height: 1.25;
    margin-bottom: 12px;
}

.ed-organizer {
    font-size: 15px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ed-organizer i {
    color: var(--color-sage);
}

/* Section titles */
.ed-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ed-section-title i {
    color: var(--color-sage);
    font-size: 16px;
}

/* Description */
.ed-description {
    margin-bottom: 30px;
}

.ed-description-text {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
}

/* Tags */
.ed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(123, 162, 132, 0.12);
    color: var(--color-teal-dark);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

/* Contact block */
.ed-contact {
    background: #f8faf9;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-top: 10px;
}

.ed-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ed-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-teal);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.ed-contact-item:hover {
    background: var(--color-teal);
    color: white;
    border-color: var(--color-teal);
}

.ed-contact-item:hover i { color: white; }

.ed-contact-item i {
    color: var(--color-sage);
    width: 18px;
    text-align: center;
    transition: color var(--transition-base);
}

/* Sidebar info card */
.ed-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.ed-info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.ed-info-row {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.ed-info-row:first-child {
    padding-top: 0;
}

.ed-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ed-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(123, 162, 132, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-sage);
    font-size: 16px;
}

.ed-info-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.ed-info-value {
    font-size: 15px;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
}

.ed-info-value small {
    font-weight: 500;
    opacity: 0.7;
}

.missing-info {
    color: #999;
    font-style: italic;
    font-weight: 400;
}

/* Action buttons */
.ed-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ed-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
}

.ed-action-btn--primary {
    background: var(--gradient-brand);
    color: white;
}

.ed-action-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 94, 106, 0.3);
}

.ed-action-btn--booking {
    background: var(--color-sage);
    color: white;
}

.ed-action-btn--booking:hover {
    background: var(--color-sage-light);
    transform: translateY(-2px);
}

.ed-action-btn--outline {
    background: white;
    color: var(--color-teal);
    border-color: var(--color-teal);
}

.ed-action-btn--outline:hover {
    background: var(--color-teal);
    color: white;
}

.ed-action-btn--ghost {
    background: transparent;
    color: var(--color-text-light);
    border-color: var(--color-border);
}

.ed-action-btn--ghost:hover {
    border-color: var(--color-sage);
    color: var(--color-teal);
    background: rgba(123, 162, 132, 0.05);
}

.ed-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-base);
}

.ed-back-link:hover {
    color: var(--color-teal);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-teal-dark);
    color: white;
    margin-top: 0;
}

.footer-inner {
    padding: 50px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-tagline {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    transition: color var(--transition-base);
}

.footer-social a:hover {
    color: var(--color-sage-light);
}

.footer-heading {
    margin-bottom: 20px;
    color: var(--color-sage-light);
    font-size: 16px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-sage-light);
}

.footer-contact {
    list-style: none;
    color: rgba(255,255,255,0.8);
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-brand);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43, 94, 106, 0.4);
    opacity: 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
    z-index: 999;
    font-size: 16px;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   About Section (index.php)
   ============================================ */

.about-section {
    padding: 80px 0;
    position: relative;
    background-color: var(--color-teal-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 68, 80, 0.82);
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-title-small {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-sage-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.about-lead {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-sage-light);
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--color-sage-light);
}

.about-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.about-actions {
    margin-top: 30px;
}

.about-image-comite {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-comite img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-brand);
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ============================================
   Public Submission Form (proposer.php)
   ============================================ */

/* Fieldset reset (used in submission form) */
/* Section title h3 (replaces fieldset/legend) */

/* Success state */
.submit-success {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.submit-success-icon {
    font-size: 64px;
    color: var(--color-sage);
    margin-bottom: 20px;
}

.submit-success h2 {
    font-size: 28px;
    color: var(--color-teal);
    margin-bottom: 15px;
}

.submit-success p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.submit-success-info {
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: italic;
}

.submit-success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Notices */
.submit-notice {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #EDF7ED;
    border: 1px solid var(--color-sage-light);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}

.submit-notice i {
    color: var(--color-sage);
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.submit-notice .required {
    color: #e74c3c;
    font-weight: 700;
}

.submit-error {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #FFF5F5;
    border: 1px solid #FCA5A5;
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
    color: #991B1B;
}

.submit-error i {
    color: #EF4444;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form */
.submit-form {
    max-width: 800px;
    margin: 0 auto;
}

.submit-section {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
}

.submit-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-section-title i {
    color: var(--color-sage);
}

.submit-field {
    margin-bottom: 20px;
}

.submit-field:last-child {
    margin-bottom: 0;
}

.submit-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.submit-field label .required {
    color: #e74c3c;
}

.submit-field input[type="text"],
.submit-field input[type="email"],
.submit-field input[type="tel"],
.submit-field input[type="url"],
.submit-field input[type="number"],
.submit-field input[type="date"],
.submit-field input[type="time"],
.submit-field textarea,
.submit-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: white;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.submit-field input:focus,
.submit-field textarea:focus,
.submit-field select:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(123, 162, 132, 0.15);
}

.submit-field textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
}

.submit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.submit-row:last-child {
    margin-bottom: 0;
}

.submit-row .submit-field {
    margin-bottom: 0;
}

.submit-char-count {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: right;
    margin-top: 5px;
}

.submit-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.submit-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-sage);
    cursor: pointer;
    flex-shrink: 0;
}

.submit-checkbox label {
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

/* File upload area */
.submit-file-upload {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-base), background var(--transition-base);
    overflow: hidden;
}

.submit-file-upload:hover {
    border-color: var(--color-sage);
    background: rgba(123, 162, 132, 0.03);
}

.submit-file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.submit-file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 15px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.submit-file-info i {
    font-size: 20px;
    color: var(--color-sage);
}

/* Image preview */
.submit-image-preview img {
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    border: 1px solid var(--color-border);
}

/* Honeypot field - invisible to humans */
.submit-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Hidden toggle class */
.hidden {
    display: none !important;
}

/* Submit actions */
.submit-actions {
    text-align: center;
    padding: 30px 0;
}

.submit-btn {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-disclaimer {
    margin-top: 15px;
    font-size: 13px;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ============================================
   Events Page Archive Section (evenements.php)
   ============================================ */

/* Archive toggle tabs */
.archive-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.archive-tab {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    bottom: -1px;
}

.archive-tab:hover {
    color: var(--color-text);
}

.archive-tab--active {
    color: var(--color-sage);
    border-bottom-color: var(--color-sage);
}

/* Past event card styling */
.event-card--past {
    opacity: 0.75;
    transition: opacity var(--transition-base);
}

.event-card--past:hover {
    opacity: 0.95;
}

/* Past event badge */
.event-past-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(51, 51, 51, 0.85);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* ============================================
   Membership Page (membre.php)
   ============================================ */
.membre-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 35px;
}

.membre-type-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.membre-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.membre-type-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.membre-type-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 10px;
}

.membre-type-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}

.membre-type-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-sage);
    padding-top: 12px;
    border-top: 2px solid var(--color-border-light);
}

.membre-radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.membre-radio-card:hover {
    border-color: var(--color-sage-light);
    background: rgba(123,162,132,0.03);
}

.membre-radio-card--active {
    border-color: var(--color-teal);
    background: rgba(43,94,106,0.04);
}

.membre-radio-card input {
    accent-color: var(--color-teal);
    margin-bottom: 6px;
}

.membre-radio-card strong {
    font-size: 15px;
    color: var(--color-teal);
}

.membre-radio-card small {
    font-size: 13px;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .membre-types { grid-template-columns: 1fr; }
}

/* ============================================
   About Page (apropos.php)
   ============================================ */

/* Scroll animation base */
[data-anim] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: calc(var(--i, 0) * 0.12s);
}
[data-anim="fade-up"] { transform: translateY(40px); }
[data-anim="fade-right"] { transform: translateX(-40px); }
[data-anim="fade-left"] { transform: translateX(40px); }
[data-anim].ap-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hero */
.ap-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-teal-dark);
}

.ap-hero-bg {
    position: absolute;
    inset: -20%;
    background: url('../../images/moutier-vieille-ville.png') center/cover no-repeat;
    opacity: 0.45;
    z-index: 0;
}

.ap-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29,68,80,0.3) 0%, rgba(29,68,80,0.75) 100%);
    z-index: 1;
}

.ap-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.ap-hero-badge {
    display: inline-block;
    padding: 8px 22px;
    border: 2px solid rgba(165,201,173,0.4);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-sage-light);
    margin-bottom: 30px;
    animation: apFadeDown 0.8s ease 0.2s both;
}

.ap-hero-title {
    margin-bottom: 25px;
    animation: apFadeDown 0.8s ease 0.4s both;
}

.ap-hero-vivre {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-sage-light);
    letter-spacing: 3px;
}

.ap-hero-moutier {
    display: block;
    font-size: clamp(52px, 10vw, 90px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-top: 8px;
}

.ap-hero-tagline {
    font-size: 20px;
    font-style: italic;
    color: var(--color-sage-light);
    opacity: 0.9;
    animation: apFadeDown 0.8s ease 0.6s both;
}

.ap-hero-scroll {
    margin-top: 50px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: apFadeDown 0.8s ease 0.8s both;
}

.ap-hero-scroll i {
    animation: apBounce 2s ease infinite;
}

@keyframes apFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes apBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Section label */
.ap-section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.ap-center { text-align: center; }

/* Mission */
.ap-mission {
    padding: 100px 0;
}

.ap-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ap-mission-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-teal-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.ap-mission-lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-teal);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ap-mission-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.ap-mission-visual {
    position: relative;
}

.ap-mission-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.ap-mission-quote {
    position: absolute;
    bottom: -30px;
    left: -20px;
    right: 40px;
    background: white;
    padding: 25px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-sage);
}

.ap-mission-quote blockquote {
    font-size: 16px;
    font-style: italic;
    color: var(--color-teal);
    font-weight: 600;
    margin-bottom: 8px;
}

.ap-mission-quote cite {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: normal;
}

/* Stats counter */
.ap-stats {
    padding: 80px 0;
    background: var(--gradient-brand);
}

.ap-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.ap-stat {
    color: white;
}

.ap-stat-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
}

.ap-stat-number {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.ap-stat-label {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
}

/* Action cards */
.ap-actions {
    padding: 100px 0;
}

.ap-actions-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-teal-dark);
    margin-bottom: 50px;
}

.ap-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ap-action-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.ap-action-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ap-action-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.ap-action-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 14px;
}

.ap-action-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Values */
.ap-values {
    padding: 80px 0;
    background: #f8faf9;
}

.ap-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.ap-value {
    text-align: center;
    padding: 30px 20px;
}

.ap-value-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
}

.ap-value h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-bottom: 10px;
}

.ap-value p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Press */
.ap-press {
    padding: 100px 0;
}

.ap-press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.ap-press-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.ap-press-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-sage-light);
}

.ap-press-source {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ap-press-logo {
    background: var(--color-teal);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.ap-press-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.ap-press-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.ap-press-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
    flex: 1;
    margin-bottom: 16px;
}

.ap-press-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-sage);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-base);
}

.ap-press-card:hover .ap-press-link {
    gap: 14px;
    color: var(--color-teal);
}

/* Committee */
.ap-committee {
    padding: 80px 0;
    background: #f8faf9;
}

.ap-committee-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 10px;
}

.ap-member {
    text-align: center;
}

.ap-member-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-md);
}

.ap-member h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-bottom: 4px;
}

.ap-member span {
    font-size: 14px;
    color: var(--color-sage);
    font-weight: 600;
}

/* Join CTA */
.ap-join {
    padding: 80px 0;
}

.ap-join-card {
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.ap-join-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.ap-join-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
}

.ap-join-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.ap-join-card p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.ap-join-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ap-join-btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
}

.ap-join-btn--white {
    background: white;
    color: var(--color-teal);
}

.ap-join-btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ap-join-btn--outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.6);
}

.ap-join-btn--outline:hover {
    background: white;
    color: var(--color-teal);
    border-color: white;
}

/* ============================================
   Associations Directory (associations.php)
   ============================================ */

/* Stats pills */
.asso-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.asso-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.asso-stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.asso-stat-pill--sport {
    border-color: var(--color-teal-light);
}

.asso-stat-pill--societe {
    border-color: var(--color-sage-light);
}

.asso-stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-teal);
}

.asso-stat-pill--sport .asso-stat-number {
    color: var(--color-teal);
}

.asso-stat-pill--societe .asso-stat-number {
    color: var(--color-sage);
}

.asso-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
}

/* Controls: search + filters */
.asso-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.asso-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.asso-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 14px;
}

.asso-search {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text);
    background: white;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.asso-search:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 4px rgba(123, 162, 132, 0.12);
}

.asso-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.asso-filter {
    padding: 10px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    background: white;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.asso-filter:hover {
    border-color: var(--color-sage);
    color: var(--color-teal);
    background: rgba(123, 162, 132, 0.05);
}

.asso-filter.active {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
}

/* Results count */
.asso-results {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.asso-results #assoCount {
    font-weight: 700;
    color: var(--color-teal);
}

/* Card grid */
.asso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Individual card */
.asso-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
    animation: assoFadeIn 0.4s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes assoFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.asso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border);
    transition: background var(--transition-base);
}

.asso-card--sport::before {
    background: var(--gradient-brand);
}

.asso-card--societe::before {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-light) 100%);
}

.asso-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.asso-card--sport:hover {
    border-color: var(--color-teal-light);
}

.asso-card--societe:hover {
    border-color: var(--color-sage-light);
}

/* Card header */
.asso-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.asso-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.asso-type-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asso-type-badge--sport {
    background: rgba(43, 94, 106, 0.08);
    color: var(--color-teal);
}

.asso-type-badge--societe {
    background: rgba(123, 162, 132, 0.12);
    color: var(--color-sage);
}

/* Card name */
.asso-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-teal-dark);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card location */
.asso-card-location {
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.asso-card-location i {
    color: var(--color-sage);
    font-size: 12px;
}

/* Card actions */
.asso-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
    flex-wrap: wrap;
}

.asso-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.asso-action-btn--email {
    background: rgba(43, 94, 106, 0.06);
    color: var(--color-teal);
}

.asso-action-btn--email:hover {
    background: var(--color-teal);
    color: white;
}

.asso-action-btn--site {
    background: rgba(123, 162, 132, 0.08);
    color: var(--color-sage);
}

.asso-action-btn--site:hover {
    background: var(--color-sage);
    color: white;
}

.asso-no-contact {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* No results */
.asso-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.asso-no-results i {
    font-size: 48px;
    color: var(--color-sage-light);
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.asso-no-results h3 {
    font-size: 22px;
    color: var(--color-teal);
    margin-bottom: 8px;
}

/* ============================================
   Newsletter Section (Footer)
   ============================================ */

.newsletter-section {
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
    padding: 40px 0;
    margin-top: 40px;
}

.newsletter-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 18px;
}

.newsletter-text p {
    color: var(--color-sage-light);
    font-size: 14px;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex: 1;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    background: white;
    color: var(--color-text);
    transition: box-shadow var(--transition-base);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    padding: 12px 28px;
    background: var(--color-sage);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background var(--transition-base);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--color-sage-light);
}

.newsletter-alert {
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.newsletter-alert i {
    flex-shrink: 0;
    font-size: 20px;
    margin-top: 0;
}

.newsletter-alert-success {
    background: #D1FAE5;
    color: #047857;
    border-left-color: #10B981;
}

.newsletter-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left-color: #EF4444;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-comite {
        order: -1;
    }

    .ed-layout {
        grid-template-columns: 1fr;
    }

    .ed-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-moutier {
        font-size: 20px;
    }

    /* Hero */
    .hero h1 {
        font-size: 32px;
    }

    /* Stats grid: single column on mobile */
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    /* Page header */
    .page-title {
        font-size: 32px;
    }

    /* Grids */
    .events-grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar: collapsible on mobile */
    .sidebar {
        order: 1;
    }

    .sidebar .filter-section {
        display: none;
    }

    .sidebar .filter-section:first-child {
        display: block;
    }

    .sidebar .btn-reset {
        display: block;
    }

    .sidebar.sidebar--open .filter-section {
        display: block;
    }

    .sidebar-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: white;
        border: 2px solid var(--color-border);
        border-radius: var(--radius-sm);
        font-weight: 600;
        color: var(--color-teal);
        cursor: pointer;
        font-size: 14px;
        margin-bottom: 15px;
        text-align: center;
    }

    .main-content {
        order: 0;
    }

    /* Event detail - two column to single column */
    .ed-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ed-hero-img {
        height: 220px;
    }

    .ed-title {
        font-size: 24px;
    }

    .ed-sidebar {
        position: static;
    }

    /* About section */
    .about-title {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .about-section,
    .cta-section {
        padding: 50px 0;
    }

    /* Submission form */
    .submit-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-row .submit-field {
        margin-bottom: 20px;
    }

    .submit-section {
        padding: 20px;
    }

    .submit-success-actions {
        flex-direction: column;
        align-items: center;
    }

    /* About page responsive */
    .ap-hero { min-height: 70vh; }
    .ap-hero-moutier { letter-spacing: -1px; }
    .ap-mission { padding: 60px 0; }
    .ap-mission-grid { grid-template-columns: 1fr; gap: 40px; }
    .ap-mission-title { font-size: 28px; }
    .ap-mission-quote { position: relative; bottom: 0; left: 0; right: 0; margin-top: -20px; }
    .ap-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ap-stat-number { font-size: 36px; }
    .ap-actions { padding: 60px 0; }
    .ap-actions-title { font-size: 24px; margin-bottom: 30px; }
    .ap-actions-grid { grid-template-columns: 1fr; }
    .ap-values-grid { grid-template-columns: repeat(2, 1fr); }
    .ap-press-grid { grid-template-columns: 1fr; }
    .ap-committee-grid { flex-direction: column; align-items: center; gap: 30px; }
    .ap-join-card { padding: 40px 25px; }
    .ap-join-card h2 { font-size: 24px; }

    /* Associations page responsive */
    .asso-stats {
        gap: 10px;
    }

    .asso-stat-pill {
        padding: 10px 16px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .asso-stat-number {
        font-size: 20px;
    }

    .asso-stat-label {
        font-size: 12px;
    }

    .asso-controls {
        flex-direction: column;
        gap: 12px;
    }

    .asso-search-wrapper {
        min-width: 100%;
    }

    .asso-filters {
        width: 100%;
        justify-content: stretch;
    }

    .asso-filter {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .asso-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Newsletter responsive */
    .newsletter-content {
        flex-direction: column;
        gap: 20px;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        min-width: unset;
    }

    .newsletter-form button {
        width: 100%;
    }
}
