/* Dedicated Styles for Fondation Page */
:root {
    --fnd-primary: #0f172a;      /* Deep slate */
    --fnd-secondary: #0ea5e9;    /* Sky blue */
    --fnd-accent: #38bdf8;       /* Lighter blue */
    --fnd-bg: #f8fafc;           /* Very light slate bg */
    --fnd-surface: #ffffff;
    --fnd-text: #334155;
    --fnd-text-light: #64748b;
    --fnd-border: #e2e8f0;
}

body#fondation-minimal {
    background-color: var(--fnd-bg);
    color: var(--fnd-text);
}

.minimal-container {
    max-width: 1400px; /* Much wider container */
    width: 95%;
    margin: 0 auto;
    padding: 3rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

/* Typography & Headers */
.minimal-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 0;
    position: relative;
}

.minimal-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fnd-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.minimal-header p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--fnd-text-light);
    max-width: 800px;
    margin: 0 auto;
}

.minimal-section {
    margin-bottom: 6rem;
    background: var(--fnd-surface);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.minimal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--fnd-primary);
    display: inline-block;
    position: relative;
}

.minimal-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--fnd-secondary);
}

/* Modern Horizontal Timeline */
.minimal-timeline-wrapper {
    width: 100%;
    padding: 2rem 1rem 3rem 1rem;
    margin: 0 -1rem; /* Negate parent padding for full width scrolling */
    overflow: hidden; /* Hide scrollbars, GSAP moves the inner div */
}

.minimal-timeline-wrapper::-webkit-scrollbar {
    height: 8px;
}
.minimal-timeline-wrapper::-webkit-scrollbar-track {
    background: var(--fnd-bg);
    border-radius: 4px;
}
.minimal-timeline-wrapper::-webkit-scrollbar-thumb {
    background: var(--fnd-text-light);
    border-radius: 4px;
}

.minimal-timeline {
    display: flex;
    position: relative;
    min-width: max-content;
    padding-top: 1.5rem; /* Space for the central line */
    padding-left: calc(50vw - 190px); /* Center the first 380px wide card */
    padding-right: 50vw; /* Ensure there's scroll space after the last item */
    gap: 3rem;
}

/* Continuous background line */
.minimal-timeline::before {
    content: '';
    position: absolute;
    top: 72px; /* Center of the dots */
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fnd-border);
    z-index: 1;
    border-radius: 2px;
}

.minimal-timeline-item {
    width: 380px; /* Wider timeline cards */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Alternate vertical alignment */
.minimal-timeline-item:nth-child(even) {
    flex-direction: column-reverse;
}

.minimal-timeline-item:nth-child(odd) .timeline-card {
    margin-top: 130px; /* Push content down */
}

.minimal-timeline-item:nth-child(even) .timeline-card {
    margin-bottom: 130px; /* Push content up */
}

/* The dot on the timeline */
.minimal-timeline-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--fnd-surface);
    border: 4px solid var(--timeline-color, var(--fnd-secondary));
    border-radius: 50%;
    top: 62px; /* Center on the 4px line (72px - 12px half-height + 2px line offset inside flex) wait, let's fix absolute pos */
    left: 40px;
    box-shadow: 0 0 0 6px var(--fnd-surface);
    transition: all 0.3s ease;
    z-index: 3;
}

.minimal-timeline-item:hover .minimal-timeline-marker {
    transform: scale(1.3);
    background: var(--timeline-color, var(--fnd-secondary));
}

/* Connect marker to card */
.minimal-timeline-connection {
    position: absolute;
    width: 2px;
    height: 100px;
    background: dashed 2px var(--fnd-border);
    left: 51px; /* Center of marker */
    z-index: 1;
}

.minimal-timeline-item:nth-child(odd) .minimal-timeline-connection {
    top: 80px;
}
.minimal-timeline-item:nth-child(even) .minimal-timeline-connection {
    bottom: 80px;
}

.timeline-card {
    background: var(--fnd-surface);
    border: 1px solid var(--fnd-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 4px solid var(--timeline-color, var(--fnd-secondary));
}

.minimal-timeline-item:hover .timeline-card {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.timeline-year {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--timeline-color, var(--fnd-secondary));
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    right: 20px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fnd-primary);
    margin-bottom: 1rem;
    padding-right: 40px; /* Space for background year */
}

.timeline-desc {
    color: var(--fnd-text);
    font-size: 1rem;
    margin: 0;
}

/* Timeline Custom Colors (Harmonious Palette) */
.color-1 { --timeline-color: #0ea5e9; } /* Sky Blue */
.color-2 { --timeline-color: #0284c7; } /* Deep Sky */
.color-3 { --timeline-color: #38bdf8; } /* Light Sky */
.color-4 { --timeline-color: #2563eb; } /* Royal Blue */
.color-5 { --timeline-color: #1e40af; } /* Deep Blue */

/* Grid for Missions */
.minimal-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.minimal-mission-card {
    background: var(--fnd-surface);
    border: 1px solid var(--fnd-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.minimal-mission-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    border-color: var(--fnd-secondary);
}

.minimal-mission-icon {
    width: 64px;
    height: 64px;
    background: #f0f9ff;
    color: var(--fnd-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.minimal-mission-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fnd-primary);
    margin-bottom: 1rem;
}

/* Governance Grid */
.minimal-governance-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--fnd-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--fnd-border);
}

.gov-avatar {
    width: 80px;
    height: 80px;
    background: var(--fnd-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

/* CTA Box */
.minimal-cta-box {
    background: linear-gradient(135deg, var(--fnd-primary) 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.minimal-cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 50%);
}

.minimal-cta-box h2 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
}

.minimal-cta-box p {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.minimal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--fnd-secondary);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.minimal-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.tax-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
    .minimal-container {
        padding: 2rem 1rem;
    }

    .minimal-header {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }

    .minimal-header h1 {
        font-size: 2.5rem; /* Smaller font on mobile */
    }

    .minimal-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem; /* Tighter spacing */
        border-radius: 16px;
    }

    .minimal-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Disable Horizontal Timeline Tricks on Mobile */
    .minimal-timeline-wrapper {
        overflow: visible; /* Let it flow naturally */
        padding: 0;
        margin: 0;
    }

    .minimal-timeline {
        flex-direction: column;
        padding: 0;
        gap: 2rem;
        min-width: unset;
    }

    /* Vertical line instead of horizontal */
    .minimal-timeline::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        right: auto;
    }

    .minimal-timeline-item {
        width: 100%;
        padding-left: 60px; /* Space for line and dot */
    }

    .minimal-timeline-item:nth-child(even),
    .minimal-timeline-item:nth-child(odd) {
        flex-direction: column; /* Force everything to flow normally */
    }

    .minimal-timeline-item:nth-child(odd) .timeline-card,
    .minimal-timeline-item:nth-child(even) .timeline-card {
        margin: 0; /* Remove top/bottom alternating margins */
    }

    .minimal-timeline-marker {
        top: 20px; /* Align to the top of the card */
        left: 8px; /* Center on vertical line (20px left + 2px half-line - 12px padding - 2px offset) -> let's say 10px */
        width: 20px;
        height: 20px;
    }

    .minimal-timeline-connection {
        display: none; /* Not needed in vertical mode */
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .timeline-year {
        font-size: 2rem;
        top: 0;
        right: 10px;
    }

    /* Governance Card Mobile */
    .minimal-governance-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* CTA Mobile */
    .minimal-cta-box {
        padding: 3rem 1.5rem;
    }

    .minimal-cta-box h2 {
        font-size: 2rem;
    }

    .minimal-cta-box p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}
