/*
Theme Name: Pas à Pas
Theme URI: https://www.pasapas35.org/
Author: Kilian
Author URI: https://www.pasapas35.org/
Description: Thème WordPress sur mesure pour l'association Pas à Pas – Service d'Accompagnement et de Soins Palliatifs de la Tauvrais, CHU Rennes. Design responsive, chaleureux et accessible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pasapas
Tags: one-column, custom-menu, custom-logo, featured-images, theme-options, translation-ready, accessibility-ready
*/

/* ========================================================
   TABLE OF CONTENTS
   1. Variables & Reset
   2. Typography
   3. Layout
   4. Header & Navigation
   5. Mobile Navigation
   6. Hero
   7. Sections Common
   8. Mission
   9. Projects
   10. Testimonials
   11. CTA
   12. Footer
   13. WordPress Core Styles
   14. Page & Single Templates
   15. Widgets
   16. Animations
   17. Responsive
   ======================================================== */

/* ======== 1. VARIABLES & RESET ======== */
:root {
    --color-deep: #1a2332;
    --color-warm: #8B5E3C;
    --color-warm-light: #C49A6C;
    --color-sage: #7A9E7E;
    --color-sage-light: #A8C5AB;
    --color-cream: #FBF7F0;
    --color-cream-dark: #F0E8DB;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --color-accent: #D4856A;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --shadow-soft: 0 4px 24px rgba(26, 35, 50, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 35, 50, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    transition: all 0.2s ease;
}

/* ======== 2. TYPOGRAPHY ======== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-deep);
    line-height: 1.2;
}

/* ======== 3. LAYOUT ======== */
.site-container {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ======== 4. HEADER & NAVIGATION ======== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 247, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 94, 60, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-soft);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-deep);
}

.site-logo .custom-logo {
    max-height: 44px;
    width: auto;
    border-radius: 50%;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-sage), var(--color-sage-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.logo-text span {
    color: var(--color-sage);
}

/* Desktop Nav */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    display: block;
    white-space: nowrap;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    background: rgba(122, 158, 126, 0.1);
    color: var(--color-sage);
}

/* Sub-menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
    padding: 0.5rem;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li a {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    border-radius: 8px;
}

/* CTA Button in nav — uses CSS class "nav-cta" assigned via WP menu */
.main-navigation .nav-cta > a,
.main-navigation .menu-item-cta > a {
    background: var(--color-sage) !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.2rem !important;
    border-radius: 8px;
    margin-left: 0.5rem;
}

.main-navigation .nav-cta > a:hover,
.main-navigation .menu-item-cta > a:hover {
    background: #6B8E6F !important;
}

/* ======== 5. MOBILE NAVIGATION ======== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-deep);
}

.mobile-toggle svg {
    width: 26px;
    height: 26px;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: rgba(26, 35, 50, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(85vw, 360px);
    height: 100%;
    background: var(--color-cream);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

.mobile-nav-overlay.open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-deep);
    padding: 8px;
}

.mobile-nav-panel .mobile-menu {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0;
}

.mobile-nav-panel .mobile-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav-panel .mobile-menu li a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
}

.mobile-nav-panel .mobile-menu li a:hover {
    color: var(--color-sage);
}

.mobile-nav-panel .mobile-menu .nav-cta > a,
.mobile-nav-panel .mobile-menu .menu-item-cta > a {
    background: var(--color-sage);
    color: white !important;
    text-align: center;
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    margin-top: 1rem;
    font-weight: 600;
}

/* Sub-menus in mobile */
.mobile-nav-panel .mobile-menu ul {
    list-style: none;
    padding: 0 0 0 1rem;
    margin: 0;
}

.mobile-nav-panel .mobile-menu ul li a {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    color: var(--color-text-light);
}

/* ======== 6. HERO (front-page) ======== */
.hero-section {
    padding: 10rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 60vw; height: 60vw;
    max-width: 700px; max-height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 158, 126, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%; left: -5%;
    width: 40vw; height: 40vw;
    max-width: 500px; max-height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 133, 106, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(122, 158, 126, 0.12);
    color: var(--color-sage);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-sage);
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.15;
    color: var(--color-deep);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-section h1 em {
    color: var(--color-sage);
    font-style: italic;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
	margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--color-sage);
    color: white;
    box-shadow: 0 4px 16px rgba(122, 158, 126, 0.3);
}

.btn-primary:hover {
    background: #6B8E6F;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(122, 158, 126, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid rgba(44, 44, 44, 0.15);
}

.btn-outline:hover {
    border-color: var(--color-sage);
    color: var(--color-sage);
    background: rgba(122, 158, 126, 0.05);
}

.btn-white {
    background: white;
    color: var(--color-sage);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--color-cream);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero visual card */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-sage), var(--color-sage-light), var(--color-accent));
}

.hero-card-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(122, 158, 126, 0.15), rgba(168, 197, 171, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.hero-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.hero-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-sage);
}

.hero-stat span {
    font-size: 0.78rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ======== 7. SECTIONS COMMON ======== */
.site-section {
    padding: 5rem 1.5rem;
}

.section-label,
.section-label > h1{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-sage);
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--color-sage);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 600px;
    line-height: 1.75;
}

/* ======== 8. MISSION ======== */
.mission-section {
    background: var(--color-white);
}

.mission-image {
    margin: 2rem 0 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    max-height: 400px;
    object-fit: cover;
}

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

.mission-card {
    background: var(--color-cream);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mission-card:hover {
    border-color: rgba(122, 158, 126, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.mission-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.mission-card:nth-child(1) .mission-card-icon { background: rgba(122, 158, 126, 0.15); }
.mission-card:nth-child(2) .mission-card-icon { background: rgba(212, 133, 106, 0.15); }
.mission-card:nth-child(3) .mission-card-icon { background: rgba(139, 94, 60, 0.12); }

.mission-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.mission-card p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ======== 9. PROJECTS CAROUSEL ======== */

/* Header avec titre + flèches */
.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.projects-header .section-title {
    margin-bottom: 0.5rem;
}

.projects-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.projects-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(44, 44, 44, 0.12);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.projects-arrow:hover:not(:disabled) {
    border-color: var(--color-sage);
    color: var(--color-sage);
    background: rgba(122, 158, 126, 0.06);
    box-shadow: 0 4px 16px rgba(122, 158, 126, 0.15);
    transform: scale(1.05);
}

.projects-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.projects-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carrousel viewport */
.projects-carousel {
    overflow: hidden;
    margin: 0 -0.75rem;
}

.projects-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-slide {
    flex: 0 0 50%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.project-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    opacity: 0.4;
}

.project-img-1 {
    background: linear-gradient(135deg, #A8C5AB 0%, #7A9E7E 50%, #5C8060 100%);
}

.project-img-2 {
    background: linear-gradient(135deg, #D4856A 0%, #C49A6C 50%, #8B5E3C 100%);
}

.project-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    display: inline-block;
    background: rgba(122, 158, 126, 0.1);
    color: var(--color-sage);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.project-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.project-body p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    color: var(--color-sage);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 0.7rem;
}

/* Dots de pagination */
.projects-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.projects-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(122, 158, 126, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.projects-dot:hover {
    background: rgba(122, 158, 126, 0.4);
}

.projects-dot.active {
    background: var(--color-sage);
    width: 28px;
    border-radius: 5px;
}

/* ======== 10. TESTIMONIALS ======== */
.testimonials-section {
    background: var(--color-deep);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 50vw; height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 158, 126, 0.08) 0%, transparent 70%);
}

.testimonials-section .section-label { color: var(--color-sage-light); }
.testimonials-section .section-label::before { background: var(--color-sage-light); }
.testimonials-section .section-title { color: white; }
.testimonials-section .section-desc { color: rgba(255,255,255,0.6); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(122, 158, 126, 0.3);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--color-sage-light);
    line-height: 1;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.testimonial-card .testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--color-sage-light);
    font-weight: 600;
}

/* ======== 11. CTA ======== */
.cta-section {
    background: var(--color-white);
}

.cta-box {
    background: linear-gradient(135deg, var(--color-sage), #5C8060);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -5%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    position: relative; z-index: 1;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative; z-index: 1;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative; z-index: 1;
}

/* ======== 12. FOOTER ======== */
.site-footer {
    background: var(--color-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 1.5rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.site-footer h4 {
    color: white;
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.site-footer .footer-menu,
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-menu li,
.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-menu a,
.site-footer ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer .footer-menu a:hover,
.site-footer ul a:hover {
    color: var(--color-sage-light);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

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

/* ======== 13. WORDPRESS CORE STYLES ======== */
.alignnone { margin: 0.5rem 1.25rem 1.25rem 0; }
.aligncenter { display: block; margin: 0.5rem auto; }
.alignright { float: right; margin: 0.5rem 0 1.25rem 1.25rem; }
.alignleft { float: left; margin: 0.5rem 1.25rem 1.25rem 0; }

.wp-caption {
    background: var(--color-cream-dark);
    border-radius: var(--radius);
    max-width: 100%;
    padding: 0.5rem;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 0.5rem;
}

.gallery-caption { display: block; }

.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 !important;
    width: 1px; word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-cream);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important; clip-path: none;
    color: var(--color-deep);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px; top: 5px;
    padding: 0.95rem 1.45rem;
    text-decoration: none;
    width: auto;
    z-index: 100000;
}

/* ======== 14. PAGE & SINGLE TEMPLATES ======== */
.page-header {
    padding: 9rem 1.5rem 3rem;
    text-align: center;
    background: var(--color-white);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-header .page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-content,
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.entry-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content a {
    color: var(--color-sage);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: #5C8060;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content img {
    border-radius: var(--radius);
}

.entry-content blockquote {
    border-left: 4px solid var(--color-sage);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--color-white);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* ======== 15. WIDGETS ======== */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-deep);
}

/* ======== 15b. NEWS / ACTUALITÉS ======== */

/* Filtres par catégorie */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.news-filter-btn {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text-light);
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.news-filter-btn:hover {
    border-color: var(--color-sage);
    color: var(--color-sage);
    background: rgba(122, 158, 126, 0.05);
}

.news-filter-btn.active {
    background: var(--color-sage);
    color: white;
    border-color: var(--color-sage);
}

/* Grille d'articles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Premier article = featured, toute la largeur */
.news-card--featured {
    grid-column: 1 / -1;
}

.news-card--featured .news-card-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.news-card--featured .news-card-img {
    height: 100%;
    min-height: 320px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.news-card--featured .news-card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card--featured .news-card-title {
    font-size: 1.6rem;
}

/* Card par défaut */
.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

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

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-img--placeholder {
    background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-img--placeholder span {
    font-size: 3rem;
    font-family: var(--font-display);
    color: white;
    opacity: 0.6;
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
}

.news-card-cat {
    background: rgba(122, 158, 126, 0.1);
    color: var(--color-sage);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-card-date {
    color: var(--color-text-light);
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-deep);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.news-card-excerpt {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    flex: 1;
}

.news-card-readmore {
    color: var(--color-sage);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: gap 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-card:hover .news-card-readmore {
    gap: 0.6rem;
}

/* État vide */
.news-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.news-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.news-empty h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-deep);
    margin-bottom: 0.5rem;
}

.news-empty p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.news-pagination .page-numbers:hover {
    border-color: var(--color-sage);
    color: var(--color-sage);
}

.news-pagination .page-numbers.current {
    background: var(--color-sage);
    color: white;
    border-color: var(--color-sage);
}

.news-pagination .page-numbers.dots {
    border: none;
    background: none;
}

.news-pagination .prev,
.news-pagination .next {
    font-weight: 600;
}

/* Section dernières actus sur la home */
.news-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.news-home-more {
    text-align: center;
    margin-top: 2.5rem;
}

/* ======== 16. ANIMATIONS ======== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== 17. RESPONSIVE ======== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-section {
        min-height: auto;
        padding: 8rem 1.5rem 3rem;
    }
    .hero-visual { max-width: 500px; }
    .mission-grid { grid-template-columns: 1fr; gap: 1rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card--featured .news-card-link { grid-template-columns: 1fr; }
    .news-card--featured .news-card-img { min-height: 220px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .news-home-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .main-navigation { display: none; }
    .mobile-toggle { display: block; }
    .mobile-nav-overlay { display: block; }

    .site-section { padding: 3.5rem 1.25rem; }
    .hero-section { padding: 7rem 1.25rem 2.5rem; }
    .hero-section h1 { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }
    .hero-stats { gap: 0.5rem; }
    .hero-stat strong { font-size: 1.3rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card--featured .news-card-link { grid-template-columns: 1fr; }
    .news-card--featured .news-card-img { min-height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .news-card--featured .news-card-title { font-size: 1.3rem; }
    .news-home-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .page-header { padding: 7rem 1.25rem 2rem; }
    .page-content, .entry-content { padding: 2rem 1.25rem 3rem; }

    /* Projects carousel mobile */
    .project-slide { flex: 0 0 100%; }
    .projects-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .projects-arrow { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .header-inner { padding: 0.7rem 1rem; }
    .hero-card { padding: 1.75rem; }
    .project-body { padding: 1.25rem; }
}

/* ======== 18. BREADCRUMBS ======== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-sage);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #5C8060;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--color-text-light);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

/* ======== 19. IMPROVED DEFAULT PAGE TEMPLATE ======== */
.page-content-wrapper {
    background: var(--color-cream);
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0 5rem;
}

/* With sidebar */
.page-layout:has(.page-sidebar) {
    grid-template-columns: 1fr 300px;
}

.page-sidebar {
    padding-top: 0.5rem;
}

.page-sidebar .widget {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.entry-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.entry-featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.page-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.page-links-label {
    font-weight: 600;
    color: var(--color-text);
    margin-right: 0.25rem;
}

.page-link-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link-number:hover {
    border-color: var(--color-sage);
    color: var(--color-sage);
}

/* ======== 20. SPONSORS / MÉCÈNES CAROUSEL ======== */
.sponsors-section {
    background: var(--color-white);
    padding-bottom: 4rem;
    overflow: hidden;
}

.sponsors-section .container {
    text-align: center;
}

.sponsors-section .section-label {
    justify-content: center;
}

.sponsors-section .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.sponsors-carousel-wrapper {
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

/* Dégradés latéraux pour l'effet de fondu */
.sponsors-carousel-wrapper::before,
.sponsors-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.sponsors-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-white) 0%, transparent 100%);
}

.sponsors-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-white) 0%, transparent 100%);
}

.sponsors-carousel {
    overflow: hidden;
    width: 100%;
}

.sponsors-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: sponsorsScroll 30s linear infinite;
    width: max-content;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

@keyframes sponsorsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsor-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: grayscale(40%) opacity(0.7);
}

.sponsor-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.sponsor-item img {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ======== 21. PAGE ASSOCIATION (Notre Association) ======== */

/* Header spécial association */
.page-header--asso {
    padding-bottom: 2rem;
}

.page-header--asso .section-label {
    justify-content: center;
}

/* Barre de navigation ancres */
.asso-nav-bar {
    background: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 65px;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.asso-nav-bar.stuck {
    box-shadow: var(--shadow-soft);
}

.asso-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.asso-nav::-webkit-scrollbar {
    display: none;
}

.asso-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text-light);
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.asso-nav-link:hover {
    background: rgba(122, 158, 126, 0.05);
    color: var(--color-sage);
}

.asso-nav-link.active {
    background: rgba(122, 158, 126, 0.1);
    color: var(--color-sage);
    font-weight: 600;
    border-color: rgba(122, 158, 126, 0.2);
}

/* Sections */
.asso-section {
    padding: 4rem 1.5rem;
}

.asso-section--alt {
    background: var(--color-white);
}

.asso-content-block {
    max-width: 860px;
    margin: 0 auto;
}

.asso-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(122, 158, 126, 0.15);
}

.asso-section-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(122, 158, 126, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.asso-section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

.asso-section-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.asso-section-body p {
    margin-bottom: 1.25rem;
}

.asso-section-body a {
    color: var(--color-sage);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.asso-section-body a:hover {
    color: #5C8060;
}

.asso-section-body ul,
.asso-section-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.asso-section-body li {
    margin-bottom: 0.5rem;
}

.asso-section-body img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}

/* Objectifs de l'association */
.asso-objectives {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.asso-objectives li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.asso-objectives li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-sage);
    opacity: 0.6;
}

/* Conseil d'Administration */
.asso-ca-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.asso-ca-card {
    background: var(--color-cream);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.asso-ca-card:hover {
    border-color: rgba(122, 158, 126, 0.2);
    box-shadow: var(--shadow-soft);
}

.asso-ca-card--president {
    background: rgba(122, 158, 126, 0.08);
    border-color: rgba(122, 158, 126, 0.15);
}

.asso-ca-role {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-sage);
    margin-bottom: 0.5rem;
}

.asso-ca-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-deep);
}

.asso-ca-members {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-cream);
    border-radius: var(--radius);
}

.asso-ca-members h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-deep);
    margin-bottom: 0.5rem;
}

.asso-ca-members p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA adhésion */
.asso-adhesion-cta {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(122, 158, 126, 0.06);
    border-radius: var(--radius);
    text-align: center;
    border: 1px dashed rgba(122, 158, 126, 0.3);
}

.asso-adhesion-cta p {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

/* ======== 22. RESPONSIVE - ADDITIONS ======== */
@media (max-width: 1024px) {
    .page-layout:has(.page-sidebar) {
        grid-template-columns: 1fr;
    }
    .asso-ca-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sponsors-carousel-wrapper::before,
    .sponsors-carousel-wrapper::after {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .asso-nav-bar {
        top: 56px;
    }
    .asso-nav {
        gap: 0.15rem;
        padding: 0.35rem 0;
    }
    .asso-nav-link {
        font-size: 0.82rem;
        padding: 0.5rem 0.75rem;
    }
    .asso-section {
        padding: 3rem 1.25rem;
    }
    .asso-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .asso-ca-grid {
        grid-template-columns: 1fr;
    }
    .sponsor-item {
        min-width: 120px;
        height: 60px;
        padding: 0.5rem 1rem;
    }
    .sponsor-item img {
        max-height: 45px;
        max-width: 140px;
    }
    .sponsors-track {
        gap: 2rem;
    }
    .sponsors-carousel-wrapper::before,
    .sponsors-carousel-wrapper::after {
        width: 40px;
    }
    .page-layout {
        padding: 2rem 0 3rem;
    }
    .breadcrumb {
        font-size: 0.8rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .asso-nav-link {
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
    }
    .sponsor-item {
        min-width: 100px;
        height: 50px;
    }
    .sponsor-item img {
        max-height: 36px;
        max-width: 110px;
    }
}

/* ======== 23. PROJECT STATUS LABELS ======== */
.project-tag--en-cours {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.project-tag--termine {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.project-tag--a-venir {
    background: rgba(234, 179, 8, 0.12);
    color: #b45309;
}

/* Filtres statut dans la page Nos Projets */
.news-filter-btn--en-cours.active {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.3);
}

.news-filter-btn--termine.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

.news-filter-btn--a-venir.active {
    background: rgba(234, 179, 8, 0.12);
    color: #b45309;
    border-color: rgba(234, 179, 8, 0.3);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 0 5px;
    margin-left: 4px;
}

.news-filter-btn.active .filter-count {
    background: rgba(0,0,0,0.08);
}

/* ======== 24. SPONSORS STATIC (few items) ======== */
.sponsors-static {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2rem 2rem 0;
}

.sponsors-static .sponsor-item {
    filter: grayscale(30%) opacity(0.8);
}

.sponsors-static .sponsor-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ======== ARTICLE GALLERY CAROUSEL ======== */
.article-gallery { margin-bottom: 2.5rem; }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #f0f0f0; }
.gallery-main-img { width: 100%; max-height: 500px; object-fit: cover; display: block; border-radius: var(--radius-lg); transition: opacity 0.3s ease; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.9); color: var(--color-text); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.15); transition: all 0.2s ease; z-index: 2; }
.gallery-arrow:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transform: translateY(-50%) scale(1.05); }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-thumb { flex-shrink: 0; width: 72px; height: 52px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; opacity: 0.5; transition: all 0.2s ease; }
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { border-color: var(--color-sage); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
    .gallery-main-img { max-height: 300px; }
    .gallery-arrow { width: 36px; height: 36px; }
    .gallery-arrow--prev { left: 8px; }
    .gallery-arrow--next { right: 8px; }
    .gallery-thumb { width: 56px; height: 42px; }
}

/* ======== GALLERY LIGHTBOX ======== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}
.gallery-lightbox.open { opacity: 1; }
.gallery-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.gallery-lightbox .gallery-arrow { position: absolute; background: rgba(255,255,255,0.15); color: #fff; }
.gallery-lightbox .gallery-arrow:hover { background: rgba(255,255,255,0.3); }
.gallery-lightbox .gallery-arrow--prev { left: 16px; }
.gallery-lightbox .gallery-arrow--next { right: 16px; }
.gallery-main-img { cursor: zoom-in; }