* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --turquoise: #5DD9C1;
    --turquoise-light: #7FE5D0;
    --pink: #FF2E7E;
    --yellow: #FFD500;
    --blue: #008AAD;
    --white: #FFFFFF;
    --text-dark: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-light) 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bubbles {
    display: flex;
    gap: 10px;
}

.chat-bubble {
    width: 40px;
    height: 35px;
    background-color: var(--pink);
    border-radius: 8px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.chat-bubble:nth-child(1) {
    animation-delay: 0s;
}

.chat-bubble:nth-child(2) {
    animation-delay: 0.5s;
    width: 45px;
    height: 40px;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--pink);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo-image img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--pink);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-light) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero .tagline {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--pink);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

h2 {
    color: var(--blue);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    color: var(--pink);
    font-size: 1.8em;
    margin-bottom: 20px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member-photo {
    position: relative;
    overflow: hidden;
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.video-overlay-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    border-top-left-radius: 10px;
}

.video-overlay-btn:hover {
    background: rgba(0, 138, 173, 0.9);
}

.video-overlay-btn i {
    font-size: 1.2em;
}

.team-member-info {
    padding: 20px;
}

.team-member-info h4 {
    color: var(--blue);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.team-member-info p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Events Section */
.events-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: var(--white);
    border-left: 5px solid var(--pink);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.event-card h3 {
    color: var(--blue);
    margin-bottom: 15px;
}

.event-date {
    color: var(--pink);
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.event-location {
    color: var(--turquoise);
    margin-bottom: 15px;
}

/* Past events styling */
.event-card.event-past {
    opacity: 0.6;
    filter: grayscale(50%);
    position: relative;
}

.event-card.event-past h3,
.event-card.event-past .event-date,
.event-card.event-past .event-location,
.event-card.event-past p,
.event-card.event-past li {
    color: #888;
}

.event-past-badge {
    display: inline-block;
    background: #888;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 15px;
    font-weight: bold;
}

.questionnaire-section {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-light) 100%);
    padding: 40px;
    border-radius: 15px;
    color: var(--white);
    text-align: center;
    margin-top: 40px;
}

.qr-code {
    margin-top: 20px;
}

.qr-code img {
    width: 200px;
    height: 200px;
    background: var(--white);
    padding: 10px;
    border-radius: 10px;
}

/* Vote Section */
.vote-section {
    background: linear-gradient(135deg, var(--yellow) 0%, #FFE44D 100%);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.vote-section h2 {
    color: var(--blue);
    margin-bottom: 30px;
}

.vote-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.vote-section .important {
    font-weight: bold;
    color: var(--pink);
    font-size: 1.3em;
}

.btn {
    display: inline-block;
    background-color: var(--pink);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 46, 126, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 46, 126, 0.5);
}

/* Contact Form */
.contact-intro {
    text-align: center;
    font-size: 1.3em;
    color: var(--blue);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--blue);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--turquoise);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pink);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group button {
    background-color: var(--pink);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 46, 126, 0.3);
}

.form-group button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 46, 126, 0.5);
}

/* Honeypot field - invisible pour les humains */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Messages de notification */
.notification-banner {
    padding: 30px 20px;
    margin: 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.notification-success {
    background: linear-gradient(135deg, #FFD500 0%, #FFE44D 100%);
    color: #008AAD;
}

.notification-error {
    background: linear-gradient(135deg, #FF2E7E 0%, #FF5896 100%);
    color: white;
}

.notification-banner .icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    display: block;
}

.notification-banner h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 600;
    color: inherit;
}

.notification-banner p {
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

/* Carrousel d'actualités */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-content {
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.carousel-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-info {
    padding: 30px;
    background: white;
}

.carousel-date {
    display: inline-block;
    color: var(--pink);
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.carousel-date i {
    margin-right: 5px;
}

.carousel-info h3 {
    color: var(--blue);
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.carousel-info p {
    color: var(--text-dark);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.carousel-btn {
    display: inline-block;
    background: var(--pink);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #FF5896;
    transform: translateX(5px);
}

.carousel-btn i {
    margin-left: 8px;
}

/* Boutons de navigation */
.carousel-btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn-nav:hover {
    background: var(--pink);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--pink);
    width: 30px;
    border-radius: 6px;
}

/* Footer */
footer {
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer .social-links {
    margin-top: 20px;
}

/* Encarts grid */
.encarts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .encarts-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .notification-banner .icon {
        font-size: 2.5em;
    }
    
    .notification-banner h3 {
        font-size: 1.4em;
    }
    
    .notification-banner p {
        font-size: 1em;
    }

    /* Responsive carrousel */
    .carousel-content {
        min-height: auto;
    }

    .carousel-image {
        height: 400px;
    }

    .carousel-info {
        padding: 20px;
    }

    .carousel-info h3 {
        font-size: 1.4em;
    }

    .carousel-info p {
        font-size: 1em;
    }

    .carousel-btn-nav {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicator.active {
        width: 25px;
    }
}

/* Modal Vidéo */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.video-modal-close:hover {
    color: #FF2E7E;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }

    .video-overlay-btn {
        font-size: 0.8em;
        padding: 10px 15px;
    }

    .video-modal-close {
        font-size: 30px;
        top: -35px;
    }
}