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

body {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf7f6;
}

/* Header & Navigation */
.header {
    background: #faf7f6;
    color: #032149;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #23a9c6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-title h1 {
    font-size: 2em;
    margin-bottom: 5px;
    color: #032149;
}

.header-title p {
    font-size: 0.95em;
    color: #032149;
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* About Section with Photo */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.profile-photo {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

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

/* Cards */
.info-card {
    background: #faf7f6;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #23a9c6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #032149;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #032149;
    font-weight: bold;
}

.info-card p {
    line-height: 1.7;
}

/* Info card with buttons layout */
.info-card-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.info-card-wrapper .info-card {
    flex: 1;
}

.info-card-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-shrink: 0;
}

.info-card-buttons .round-btn {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: linear-gradient(135deg, #032149, #23a9c6);
    color: #032149;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.info-card-buttons .round-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #23a9c6, #032149);
}

.priority-card {
    background: #faf7f6;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.priority-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.priority-card h3 {
    color: #032149;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.priority-card.large {
    grid-column: span 2;
}

/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 30px;
    border: none;
    border-radius: 0;
    background: transparent;
}

.section-header {
    background: transparent;
    color: #032149;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    border-bottom: 2px solid #23a9c6;
}

.section-header:hover {
    color: #032149;
}

.section-header h2 {
    color: inherit;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 1.8em;
}

.toggle-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    letter-spacing: 0.1em;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

.section-content {
    display: none;
    padding: 0;
}

.section-content.open {
    display: block;
    padding: 20px 0;
}

/* CTA Section */
.cta-section {
    background: #faf7f6;
    color: #032149;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}


/* Footer */
footer {
    background: #faf7f6;
    color: #032149;
    text-align: center;
    padding: 30px 20px;
    border-top: 3px solid #23a9c6;
}

footer a {
    color: #032149;
    text-decoration: underline;
}

footer a:hover {
    color: #032149;
}

/* ============================= */
/* Timeline                       */
/* ============================= */
.timeline {
    position: relative;
    padding-left: 0;
    margin-left: 0;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-dot {
    display: none;
}

.timeline-content {
    background: #faf7f6;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #23a9c6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    color: #032149;
    background: rgba(35, 169, 198, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    color: #032149;
    margin-bottom: 8px;
    font-size: 1.15em;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

.timeline-scroll {
    padding-right: 10px;
}

/* Year collapsible sections */
.year-section {
    margin-bottom: 30px;
    border: none;
    border-radius: 0;
    background: transparent;
}

.year-header {
    background: transparent;
    color: #032149;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    border-bottom: 2px solid #23a9c6;
}

.year-header:hover {
    color: #032149;
}

.year-label {
    font-size: 1.5em;
    font-weight: 600;
}

.year-toggle {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    letter-spacing: 0.1em;
}

.year-toggle.open {
    transform: rotate(180deg);
}

.year-content {
    display: none;
}

.year-content.open {
    display: block;
    max-height: 500px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.timeline-photo {
    width: 50%;
    max-width: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ============================= */
/* Logo Grid (Liens Utiles)       */
/* ============================= */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: #faf7f6;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 15px;
    transition: all 0.3s ease;
}

.logo-block:hover {
    border-color: #032149;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(3, 33, 73, 0.15);
}

.logo-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.logo-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-label {
    font-weight: 600;
    font-size: 0.95em;
    color: #032149;
    text-align: center;
}

/* Team Grid (La Liste) */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    row-gap: 10px;
    column-gap: 25px;
    position: relative;
}

.team-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url('../assets/Logos/logo-1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.team-grid .logo-block {
    position: relative;
    z-index: 1;
}

.team-grid .logo-block {
    background: transparent;
    border: none;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.team-grid .logo-block:hover {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}

.team-grid .logo-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #032149;
    transition: all 0.3s ease;
}

.team-grid .logo-block:hover .logo-image {
    border-color: #23a9c6;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(35, 169, 198, 0.3);
}

.team-grid .logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    font-size: 0.85em;
    color: #777;
    margin-top: 4px;
    text-align: center;
}

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Election Button */
.election-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #23a9c6;
    color: #faf7f6;
    text-decoration: none;
    border: 2px solid #23a9c6;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 42px;
    box-sizing: border-box;
}

.election-btn:hover {
    background: #1a8fa0;
    border-color: #1a8fa0;
}

/* Header Separator */
.header-separator {
    width: 1px;
    height: 28px;
    background: rgba(3, 33, 73, 0.3);
}

/* Hamburger Menu */
.hamburger-container {
    position: relative;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(3, 33, 73, 0.05);
    border: 2px solid #032149;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn:hover {
    background: rgba(3, 33, 73, 0.1);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #032149;
    border-radius: 1px;
}

.nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #faf7f6;
    border: 2px solid #032149;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 240px;
    flex-direction: column;
}

.nav-menu.open {
    display: flex;
}

.nav-link {
    color: #032149;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(3, 33, 73, 0.1);
    display: block;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(3, 33, 73, 0.05);
}

.nav-link-last {
    border-bottom: none;
}

/* Language Switcher (flag dropdown) */
.lang-switcher {
    position: relative;
}

.lang-switcher-toggle {
    font-size: 0.85em;
    background: none;
    border: 2px solid #032149;
    color: #032149;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    height: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher-toggle:hover {
    background: #032149;
    color: #faf7f6;
}

.lang-switcher-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #faf7f6;
    border: 2px solid #032149;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
}

.lang-switcher-menu.open {
    display: flex;
}

.lang-switcher-menu a {
    font-size: 0.9em;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    line-height: 1;
    text-align: center;
    color: #032149;
    width: auto;
    font-weight: 600;
}

.lang-switcher-menu a:hover {
    background: #032149;
    color: #faf7f6;
}


/* ============================= */
/* Links Grid (Liens Utiles)      */
/* ============================= */
.links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.link-block {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #032149;
    background: #faf7f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 8px;
    font-size: 0.82em;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    min-height: 60px;
    transition: all 0.25s ease;
    word-break: break-word;
}

.link-block:hover {
    border-color: #23a9c6;
    background: #032149;
    color: #faf7f6;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(3, 33, 73, 0.2);
}

.link-block.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.link-block.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

/* Responsive Design */
@media (max-width: 992px) {
    .priority-card.large {
        grid-column: span 1;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-title {
        flex: 1 1 100%;
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.4em;
    }

    .header-title p {
        font-size: 0.85em;
    }

    /* All 4 buttons on same line for mobile */
    .header-controls {
        display: flex;
        flex-direction: row;
        gap: 4px;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    /* Hide separators on mobile */
    .header-controls > .header-separator {
        display: none;
    }

    /* Election buttons */
    .election-btn {
        font-size: 0.75em;
        padding: 8px 12px;
        white-space: nowrap;
        flex-shrink: 1;
        height: 44px;
    }

    /* Hamburger container */
    .hamburger-container {
        flex-shrink: 0;
    }

    /* Hamburger button */
    .hamburger-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .hamburger-line {
        width: 18px;
    }

    /* Language switcher */
    .lang-switcher {
        flex-shrink: 0;
    }

    .lang-switcher-toggle {
        font-size: 0.75em;
        padding: 8px 12px;
        height: 44px;
    }

    .nav-menu {
        min-width: 200px;
    }

    /* When scrolled, hide title only */
    .header.scrolled .header-title {
        display: none;
    }


    .info-card-wrapper {
        flex-direction: column;
    }

    .info-card-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .info-card-buttons .round-btn {
        width: 140px;
        height: 140px;
        font-size: 0.95em;
        padding: 15px;
    }

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

    .profile-photo {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .section-header h2 {
        font-size: 1.3em;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-photo {
        width: 100%;
        max-width: 100%;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .logo-image {
        width: 80px;
        height: 80px;
    }

    .team-grid .logo-image {
        width: 100px;
        height: 100px;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .link-block {
        font-size: 0.75em;
        padding: 10px 6px;
        min-height: 55px;
    }

    .year-label {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }

    .header-content {
        padding: 10px;
        gap: 10px;
    }

    .header-title h1 {
        font-size: 1.2em;
    }

    .header-title p {
        font-size: 0.8em;
    }

    .header-controls {
        gap: 5px;
    }

    .election-btn {
        font-size: 0.7em;
        padding: 8px 10px;
        height: 42px;
    }

    .hamburger-btn {
        width: 42px;
        height: 42px;
    }

    .lang-switcher-toggle {
        font-size: 0.7em;
        padding: 8px 10px;
        height: 42px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.9em;
    }

    .section-header {
        padding: 8px 0;
    }

    .section-header h2 {
        font-size: 1.1em;
    }

    .section-content.open {
        padding: 15px 0;
    }

    /* Hide ASFE logo background in vote section on mobile */
    .vote-section {
        background: linear-gradient(to right, #032149 0%, #23a9c6 60%, transparent 100%) !important;
    }

    .info-card-buttons .round-btn {
        width: 120px;
        height: 120px;
        font-size: 0.85em;
        padding: 12px;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .link-block {
        font-size: 0.7em;
        padding: 8px 5px;
        min-height: 50px;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-grid .logo-image {
        width: 90px;
        height: 90px;
    }

    .team-grid .logo-label {
        font-size: 0.9em;
    }

    .team-role {
        font-size: 0.8em;
    }

    .year-label {
        font-size: 1.2em;
    }

    .year-content.open {
        padding: 15px 10px;
    }

    .timeline-content {
        padding: 15px 20px;
    }

    .timeline-date {
        font-size: 0.8em;
    }

    .timeline-content h3 {
        font-size: 1em;
    }

    .profile-photo {
        max-width: 200px;
    }
}

@media (max-width: 360px) {
    .header-title h1 {
        font-size: 1.1em;
    }

    .info-card-buttons .round-btn {
        width: 100px;
        height: 100px;
        font-size: 0.75em;
        padding: 10px;
    }

    .team-grid .logo-image {
        width: 80px;
        height: 80px;
    }
}

/* ============================= */
/* Vote Section                   */
/* ============================= */
.vote-section {
    margin-top: 40px;
    position: relative;
    background: linear-gradient(to right, #032149 0%, #23a9c6 60%, transparent 100%),
                url('../assets/Logos/ASFE - Cover Facebook 2.png');
    background-size: cover, cover;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(3, 33, 73, 0.2);
    overflow: hidden;
}

.vote-section h3 {
    color: #faf7f6;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: none;
    padding-bottom: 12px;
    position: relative;
    z-index: 1;
}

.vote-list {
    list-style: none;
    padding-left: 0;
    position: relative;
    z-index: 1;
}

.vote-list-item {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #faf7f6;
    font-size: 1.05em;
    line-height: 1.6;
}

.vote-list-item:last-child {
    margin-bottom: 0;
}

.vote-list-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #23a9c6;
    font-weight: bold;
    font-size: 1.2em;
}

/* ============================= */
/* Bio Popup                      */
/* ============================= */
.bio-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    justify-content: center;
    align-items: center;
}

.bio-popup-content {
    background: #faf7f6;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    border: 2px solid #23a9c6;
}

.bio-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #032149;
}

.bio-popup-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #032149;
    margin-bottom: 15px;
}

.bio-popup-name {
    color: #032149;
    margin-bottom: 10px;
}

.bio-popup-bio {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bio-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.bio-popup-btn {
    display: none;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9em;
    align-items: center;
    gap: 5px;
}

.bio-popup-btn-elu {
    background: #23a9c6;
    color: #faf7f6;
    gap: 5px;
}

.bio-popup-btn-linkedin {
    background: #0077B5;
    color: #faf7f6;
    gap: 8px;
}

/* ============================= */
/* Lightbox                       */
/* ============================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
