:root {
    /* Color Palette */
    --primary-color: rgb(0, 74, 117); /* Polytech Dark Blue */
    --secondary-color: rgb(0, 156, 221); /* Polytech Cyan */
    
    /* Accent Colors */
    --accent-pink: rgb(230, 0, 126);
    --accent-green: rgb(199, 211, 1);
    --accent-orange: rgb(243, 146, 0);
    --accent-purple: rgb(168, 77, 152);
    --accent-red: rgb(220, 11, 35);
    --accent-grey: rgb(138, 155, 167);

    --text-color: #333333;
    --bg-color: #ffffff;
    --light-gray: #f5f7fa;
    --white: #ffffff;
    --dark: #1a1a1a;
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Spacing */
    --header-height: 70px;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--dark);
}

.text-white {
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: background var(--transition-speed);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 30px; /* Espace entre les logos */
}

/* On supprime les styles spécifiques au lien */
.logo a {
    display: block; /* ou inline-block */
    /* font-styles can stay but mostly affect text inside a */
}

/* Logo Responsiveness */
@media (max-width: 768px) {
    .logo {
        gap: 10px; /* Plus petit espace sur mobile */
    }
    
    .logo img {
        height: 35px !important; /* Override inline styles for mobile fit */
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 5px; /* Encore plus petit sur très petits écrans */
    }

    .logo img {
        height: 30px !important;
    }
}

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

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

/* Dropdown Content (Hidden by Default) */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05); /* Softer, deeper shadow */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Slight bounce for organic feel */
    border-radius: 15px;
    padding: 10px;
    display: flex; /* Ensure control over layout */
    flex-direction: column; /* Stack items vertically */
    gap: 5px; /* Spacing between items */
    border: 1px solid rgba(0,0,0,0.04);
}

.dropdown-menu li {
    display: block;
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ready for arrows if needed */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 10px;
    margin-bottom: 2px;
}

.dropdown-menu a:last-child {
    margin-bottom: 0;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(5px);
    font-weight: 600;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px); /* 10px gap from header */
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.6)), url('../images/rezo/sorbonne.png') no-repeat center bottom/auto calc(100% - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-section {
        /* On mobile, limit the logo width so it doesn't overflow or look huge */
        /* Center content and image */
        background-size: auto, 80% auto; 
        background-position: center center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Clubs & Associations */
.clubs-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.club-card {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

.club-card:nth-child(even) {
    flex-direction: row-reverse;
}

.club-card:hover {
    transform: translateY(-5px);
}

.club-image {
    flex: 1;
    min-width: 300px;
}

.club-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    background-color: var(--light-gray);
}

.club-info {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.club-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.club-info p {
    margin-bottom: 20px;
    color: #666;
}

.social-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.social-link:hover {
    color: var(--secondary-color);
}

/* Le BDE - Updated Structure */
.bde-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.bde-subsection {
    margin-bottom: 60px;
    text-align: center;
}

.bde-subsection h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Board Layout */
.board-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.vp-row, .duo-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Bureau Grid */
.bureau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.bureau-col h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-transform: none;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Generalized Member Card */
.member-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    width: 200px; /* Fixed width */
    text-align: center;
    flex: 0 0 auto;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.member-card img {
    border-radius: 50%; /* Rounded Photo */
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.primary-leader .member-card {
    /* Scale up the President */
    width: 220px;
    padding: 25px;
}
.primary-leader .member-card img {
    width: 130px;
    height: 130px;
    border-color: var(--primary-color);
}

.member-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.member-card .role {
    color: #777;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}

/* Poles Grid */
.poles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.pole-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary-color);
    transition: transform var(--transition-speed);
}

.pole-card:hover {
    transform: translateY(-5px);
}

.pole-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
}

.pole-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Mini Card for Pole Members */
.mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px; /* Compact */
    text-align: center;
}

.mini-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
    object-fit: cover;
    background-color: #eee;
}

.mini-card span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-color);
}

/* Style for Respo inside Poles */
.mini-card.respo img {
    border: 2px solid var(--secondary-color);
    width: 60px;
    height: 60px;
}

.mini-card.respo span {
    color: var(--primary-color);
    font-weight: 700;
}

.role-tiny {
    display: block;
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

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

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

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 25px;
}

.contact-map img {
    border-radius: 10px;
    margin-top: 20px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
}

/* Mentions Legales */
#legal p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes (Applied via JS) */
.scroll-reveal, .reveal-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible, .reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .club-card {
        flex-direction: column !important;
    }
    
    .club-image {
        min-height: 250px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform var(--transition-speed);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%; /* Ensure UL takes width to allow centering */
    }

    .nav-menu li {
        text-align: center; /* Center text within list items (especially dropdown parent) */
        width: 100%; /* Allow li to take full width of container if needed, maintaining center alignment via text-align */
    }

    /* Reset and override all dropdown styles for mobile */
    .nav-menu .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 10px;
        display: none; /* Hidden by default, even on hover */
        width: 100%;
        background: transparent;
        text-align: center;
        align-items: center;
        flex-direction: column;
    }

    /* Only show when explicitly active (clicked) */
    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .nav-menu .dropdown-menu a {
        justify-content: center;
        width: 100%; /* Ensure link takes full width for easy clicking */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
}
/* Pole Section styling in style.css */
.pole-section {
    margin-bottom: 50px;
}

.pole-section > h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

/* Spacer for subpages (pages without hero) */
body.subpage {
    padding-top: var(--header-height);
}
/* Filter Bar */
.filter-wrapper {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 10px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 5px;
}

/* Scrollable on mobile if needed, but wrap is better for visibility on desktop/tablet */
@media (max-width: 768px) {
    .filter-bar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px; /* Space for scrollbar */
        /* Hide scrollbar aesthetics */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Filtering Transitions */
.bde-subsection, .pole-section {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hidden-section {
    display: none !important;
}

/* Presidents Grid (Clubs Page) */
.presidents-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.presidents-grid .member-card {
    background: var(--white);
    /* Ensure consistency with BDE cards */
    width: 220px;
}


/* PDF Viewer Styling */
.pdf-wrapper {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 85vh; /* Taller */
}

.pdf-header {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e1e4e8;
}

.pdf-dots {
    display: flex;
    gap: 6px;
}

.pdf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pdf-dot.red { background: #ff5f56; }
.pdf-dot.yellow { background: #ffbd2e; }
.pdf-dot.green { background: #27c93f; }

.pdf-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid #d1d5da;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s;
    text-decoration: none;
}

.pdf-download-btn:hover {
    background: var(--light-gray);
    border-color: #b1b5ba;
    color: var(--primary-color);
}

.pdf-container {
    flex: 1;
    width: 100%;
    background: #525659; /* Standard PDF background color */
    position: relative;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
