/* Design Philosophy: Biophilic Modernism
 * - Palette inspired by agricultural seasons
 * - Typography: Playfair Display (titles) + Inter (body) + Caveat (accents)
 * - Organic shapes and natural textures
 */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #3a3a3a;
    background-color: #faf9f7;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation - Matching main BioFermeil site */
.biofermeil-nav {
    background-color: #2d5016;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(250,249,247,0.6), rgba(250,249,247,0.4), rgba(250,249,247,1));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d5016;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-family: 'Caveat', cursive;
    margin-bottom: 1rem;
    color: #3a3a3a;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1rem;
    color: #5a5a5a;
}

/* Level Filter Section */
.level-filter-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2d5016;
}

.section-description {
    text-align: center;
    color: #6a6a6a;
    margin-bottom: 2rem;
}

.level-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.level-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #d4c5b0;
    background: white;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-btn:hover {
    background: #f5f0e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.level-btn.active {
    background: #8b9d6f;
    color: white;
    border-color: #8b9d6f;
}

.level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.level-dot.blue { background: #3b82f6; }
.level-dot.green { background: #22c55e; }
.level-dot.yellow { background: #eab308; }
.level-dot.orange { background: #f97316; }
.level-dot.red { background: #ef4444; }

.level-desc {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Seasonal Section */
.seasonal-section {
    padding: 3rem 0;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1.5rem;
    border: none;
    background: #f5f0e8;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #e8dfc8;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #d4c5b0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Season Header */
.season-header {
    position: relative;
    height: 16rem;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center;
}

.season-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(250,249,247,1), rgba(250,249,247,0.5), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.season-header h2 {
    font-size: 2.5rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.workshop-count {
    font-size: 1.125rem;
    color: #5a5a5a;
}

/* Workshops Grid */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.workshop-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.5s;
    animation: fadeInUp 0.6s ease-out;
}

.workshop-card.offset {
    transform: translateY(2rem);
}

.workshop-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.workshop-card.spring {
    background: rgba(139, 195, 74, 0.08);
    border-color: rgba(139, 195, 74, 0.2);
}

.workshop-card.summer {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.2);
}

.workshop-card.autumn {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.2);
}

.workshop-card.winter {
    background: rgba(96, 125, 139, 0.08);
    border-color: rgba(96, 125, 139, 0.2);
}

.workshop-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2d5016;
}

.workshop-card p {
    margin-bottom: 1rem;
    color: #5a5a5a;
}

.workshop-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 157, 111, 0.15);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5a3a;
}

/* ============================================
   NAVIGATION ARTICLE (Précédent/Suivant)
   ============================================ */
.article-content {
    max-width: 1000px;
    margin: 0 auto;
}

.article-body {
    background: var(--sable-doux);
    padding: 60px 20px;
}

   .article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vert-fonce);
    font-weight: 600;
}

.article-navigation a:hover {
    color: var(--orange-accent);
}

/* ============================================
   SECTION CONTACT
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--terre) 100%);
    color: var(--blanc);
}

.contact .section-title {
    color: var(--blanc);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--vert-clair);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item-icon {
    font-size: 1.5em;
}

.contact-item a {
    color: var(--blanc);
}


/* Footer */
.footer {
    background: rgba(45, 80, 22, 0.05);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d5016;
}

.footer p {
    font-size: 0.875rem;
    color: #6a6a6a;
}

.footer-bottom {
    border-top: 1px solid #d4c5b0;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6a6a6a;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .tabs-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workshops-grid {
        grid-template-columns: 1fr;
    }
    
    .workshop-card.offset {
        transform: translateY(0);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}

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