:root {
    --primary: #eee545;
    --primary-light: #fff9a3;
    --primary-dark: #d4cc3b;
    --secondary: #1a1a1a;
    --accent: #eee545;
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

/* Section Common Styling */
section {
    margin-bottom: 120px;
    opacity: 0;

    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Presentation */
.presentation {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.presentation h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.presentation p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.objective-item {
    background: var(--bg-alt);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.objective-item:hover {
    box-shadow: var(--card-shadow);
    background: var(--bg-main);
}

.objective-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.objective-item span {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

/* Combined History & Events Table */
.events-table-container {
    background: var(--bg-alt);
    border-radius: 24px;
    padding: 40px;
    overflow-x: auto;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.events-table th {
    text-align: left;
    padding: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.events-table td {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.row-year {
    font-weight: 700;
    color: var(--secondary);
    width: 120px;
}

.row-event {
    font-weight: 600;
    color: var(--text-main);
    width: 250px;
}

.row-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Members Grid */
.members-separator {
    width: 100%;
    margin: 60px 0 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #444;
}

.member-ancien {
    opacity: 0.85;
    filter: grayscale(0.3);
}

.member-ancien:hover {
    opacity: 1;
    filter: none;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.member-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.member-img-box {
    width: 100%;
    height: 320px;
    background: #f0f2f5;
    position: relative;
    overflow: hidden;
}

.member-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.member-card:hover .member-img-box img {
    transform: scale(1.05);
}

.member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 5rem;
}

.member-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-top {
    margin-bottom: 20px;
}

.member-role {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: block;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary);
}

.member-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-class {
    background: #eef2ff;
    color: #4f46e5;
}

.badge-alt {
    background: #fef3c7;
    color: #92400e;
}

.badge-ancien {
    background: #fee2e2;
    color: #991b1b;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.6;
}

.member-linkedin {
    color: #0077b5;
    font-size: 1.25rem;
    transition: var(--transition);
}

.member-linkedin:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.history-trigger {
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-trigger i {
    transition: transform 0.3s ease;
}

.history-content {
    display: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #fbfbfb;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
}

/* Contact / Social */
.social-section {
    background: var(--bg-alt);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #fff;
    border-radius: 100px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.social-pill:hover {
    background: var(--primary);
    box-shadow: 0 10px 25px rgba(238, 229, 69, 0.3);
}

.social-pill i,
.social-pill img {
    font-size: 1.4rem;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .presentation h1 {
        font-size: 2.5rem;
    }

    .container {
        padding-top: 100px;
    }

    .social-pill {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Partners Banner */
.partners-section {
    margin-bottom: 120px;
    text-align: center;
}

.partners-container {
    overflow: hidden;
    padding: 40px 0;
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
}

.partners-slider {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.partners-slider img {
    height: 55px;
    /* Hauteur fixe pour l'alignement */
    width: auto;
    object-fit: contain;
    margin: 0 35px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partners-slider img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Press Review (On parle de nous) */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.press-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.press-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.press-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.press-date {
    background: var(--bg-alt);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
}

.press-media {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-dark);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.press-card h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
}

.press-card h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
    background-image: linear-gradient(120deg, var(--primary-light) 0%, var(--primary-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
}

.press-card:hover h3 a {
    background-size: 100% 0.4em;
}

.press-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.press-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.press-author {
    font-weight: 600;
    color: var(--text-main);
}

.press-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.press-link:hover {
    color: var(--primary-dark);
}

.press-link::after {
    content: '\f061';
    /* FontAwesome Arrow Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.press-link:hover::after {
    transform: translateX(5px);
}