/* Modern CSS with elegant design */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #ffffff;
    --accent-color: #e67e22;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --dark-bg: #2c3e50;
    --gold: #e67e22;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Header Styles */
nav {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 126, 34, 0.1);
    height: 80px;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-bg);
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.logo h1 {
    font-size: 2.2rem;
    color: var(--dark-bg);
    font-weight: 300;
    letter-spacing: 1px;
}

.main-nav {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
    background-color: rgba(230, 126, 34, 0.1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/header/mauritius.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 2rem 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(230, 126, 34, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.hero-content .cta-button {
    margin: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 4vw, 3rem);
}

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

/* Menu hamburger pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-bg);
    transition: all 0.3s ease;
}

/* Destination Section */
.destination {
    padding: 5rem 2rem;
    background-color: var(--secondary-color);
}

.destination-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.destination-text h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.destination-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.destination-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Itinerary Section */
.itinerary {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

.itinerary h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.itinerary-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.day-number {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 1rem;
}

.activities {
    list-style: none;
    margin-top: 1rem;
}

.activities li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.8s ease forwards;
}

.activities li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Highlights Section */
.highlights {
    padding: 5rem 2rem;
    background-color: var(--secondary-color);
}

.highlights h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.highlight-card {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.highlight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.highlight-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    flex-grow: 1;
    margin-bottom: 1rem;
}

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

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--secondary-color);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background-color: var(--gold);
    color: var(--secondary-color);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.cta-button:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        padding: 0.5rem;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
    }

    .logo {
        padding: 0.5rem;
        width: auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        position: relative;
    }

    .main-nav {
        margin: 0;
        padding: 0;
        flex-direction: column;
        text-align: center;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background-color: rgba(255, 255, 255, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        max-height: 80vh;
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        border-radius: 0;
        background-color: transparent;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(230, 126, 34, 0.1);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: rgba(230, 126, 34, 0.1);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        min-height: 80vh;
        margin-top: 60px;
        padding: 1rem;
    }

    .team-hero {
        min-height: 30vh;
        margin-top: 60px;
        padding: 1rem;
    }

    .destination {
        padding-top: 4rem;
    }

    .itinerary {
        padding-top: 4rem;
    }

    .highlights {
        padding-top: 4rem;
    }

    .countdown-section {
        padding-top: 4rem;
    }

    .destination-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .destination-details {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .highlight-card {
        padding: 1rem;
        margin-bottom: 0;
        height: auto;
    }

    .highlight-card img {
        height: 180px;
        margin-bottom: 0.8rem;
    }

    .highlight-card h3 {
        font-size: 1.4rem;
        margin: 0.5rem 0;
    }

    .highlight-card p {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .highlight-card i {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    nav {
        min-height: 50px;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
        right: 0.5rem;
        top: 0.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .hero {
        margin-top: 50px;
    }

    .team-hero {
        margin-top: 50px;
    }

    .destination {
        padding-top: 3rem;
    }

    .itinerary {
        padding-top: 3rem;
    }

    .highlights {
        padding-top: 3rem;
    }

    .countdown-section {
        padding-top: 3rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .highlight-card {
        padding: 0.8rem;
    }

    .highlight-card img {
        height: 160px;
    }

    .highlight-card h3 {
        font-size: 1.3rem;
        margin: 0.4rem 0;
    }

    .highlight-card p {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .highlight-card i {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
}

/* Styles pour les écrans en mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        margin-top: 60px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .hero-content p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .main-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        padding: 0.5rem 1rem;
    }
}

h2 {
    text-align: center;
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/header/mauritius.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(230, 126, 34, 0.4));
    z-index: 1;
}

.countdown-section h2 {
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 120px;
    backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-item span:last-child {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .countdown-section {
        padding: 3rem 1rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 100px;
        padding: 1rem;
    }

    .countdown-item span:first-child {
        font-size: 2.5rem;
    }

    .countdown-item span:last-child {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .countdown-section {
        padding: 2rem 0.5rem;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 0.8rem;
    }

    .countdown-item span:first-child {
        font-size: 2rem;
    }

    .countdown-item span:last-child {
        font-size: 0.8rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .countdown-section {
        padding: 2rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 90px;
        padding: 1rem;
    }
}

/* Team Hero Section */
.team-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/header/mauritius.jpg');
    background-size: cover;
    background-position: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    margin-top: 80px;
    padding: 2rem 1rem;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(230, 126, 34, 0.4));
    z-index: 1;
}

.team-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 1rem;
    animation: fadeInUp 1s ease-out;
}

.team-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.team-hero p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Team Section */
.team-section {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.team-card {
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.team-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
    transform: scale(1.2);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h3 {
    color: var(--dark-bg);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-info .role {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-info .description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.team-card.leader {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.team-card.leader .team-image {
    padding-top: 0;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.team-card.leader .team-image img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.team-card.leader .team-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .team-section {
        padding: 3rem 1rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .team-card.leader {
        grid-template-columns: 1fr;
    }

    .team-card.leader .team-image {
        padding-top: 100%;
    }

    .team-card.leader .team-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
    }

    .team-card.leader .team-info {
        text-align: center;
        padding-top: 1.5rem;
    }

    .team-info {
        padding: 1.5rem;
    }

    .team-info h3 {
        font-size: 1.3rem;
    }

    .team-info .role {
        font-size: 1rem;
    }

    .team-info .description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .team-hero {
        min-height: 30vh;
        margin-top: 60px;
    }

    .team-hero h1 {
        font-size: 2rem;
    }

    .team-hero p {
        font-size: 1rem;
    }

    .team-section {
        padding: 2rem 0.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-info {
        padding: 1rem;
    }
}

/* Styles du carrousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.team-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

/* Ajustement des cartes pour le carrousel */
.team-card {
    min-width: calc(33.333% - 40px);
    transform: scale(0.8);
    filter: blur(0px);
    transition: all 0.5s ease-in-out;
    opacity: 1;
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-card.active {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
}

/* Boutons de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--dark-bg);
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--gold);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .team-card {
        min-width: calc(100% - 40px);
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 30px;
    }
    
    .carousel-nav {
        width: 25px;
        height: 25px;
    }
}

document.addEventListener('DOMContentLoaded', function() {
    const carousel = document.querySelector('.team-carousel');
    const cards = document.querySelectorAll('.team-card');
    const prevButton = document.querySelector('.prev-button');
    const nextButton = document.querySelector('.next-button');
    
    let currentIndex = 0;
    const cardWidth = cards[0].offsetWidth + 20; // Largeur de la carte + gap
    
    // Fonction pour mettre à jour la position du carrousel
    function updateCarousel() {
        carousel.style.transform = `translateX(-${currentIndex * cardWidth}px)`;
    }
    
    // Fonction pour passer à la carte suivante
    function nextCard() {
        currentIndex++;
        if (currentIndex >= cards.length) {
            currentIndex = 0;
        }
        updateCarousel();
    }
    
    // Fonction pour passer à la carte précédente
    function prevCard() {
        currentIndex--;
        if (currentIndex < 0) {
            currentIndex = cards.length - 1;
        }
        updateCarousel();
    }
    
    // Événements des boutons
    nextButton.addEventListener('click', nextCard);
    prevButton.addEventListener('click', prevCard);
    
    // Optionnel : Navigation au clavier
    document.addEventListener('keydown', function(e) {
        if (e.key === 'ArrowRight') {
            nextCard();
        } else if (e.key === 'ArrowLeft') {
            prevCard();
        }
    });
}); 
