/* Reset and base styles */
:root {
    --primary: #0C64B2;
    --primary-dark: #0a4881;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --header-height: 80px;
    --top-bar-height: 40px;
    --footer-bg: #1e293b;
    --footer-text: #e2e8f0;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --dark: #f8fafc;
    --light: #0f172a;
    --gray: #94a3b8;
    --gray-light: #1e293b;
    --footer-bg: #0f172a;
    --footer-text: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: 'Montserrat', sans-serif;*/
    font-family: "Abel", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    /*font-family: 'Playfair Display', serif;*/
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

p {
    margin-bottom: 1rem;
}

.section-title-container {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    margin-bottom: 0.5rem;

}

#services-title {
    text-align: end;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title.light {
    color: white;
}

.section-title.light::after {
    background-color: white;
}

.section-title2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    margin-bottom: 0.5rem;

}

.section-title2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title2.light {
    color: white;
}

.section-title2.light::after {
    background-color: white;
}

.box1 {
    order: 1;
}

.box2 {
    order: 2;
}





.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.8);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

#section-header-projets {
    margin-bottom: 0;
}

.section-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-header.centered .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header.centered .section-title2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: white;
    color: var(--primary);
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 0;
}

.btn-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

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

.btn-link:hover i {
    transform: translateX(5px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    padding: 0;
    background: none;
    border: none;
}

.btn-index {
    border-radius: 5px;
    padding: 10px;
    background-color: white;
    color: var(--primary);
    border-color: var(--primary);
    border-width: 2px;
}

.btn-index:hover {
    transform: scale(1.05);
    color: var(--primary);
}

.btn-text i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--dark);
    transition: var(--transition);
}

.btn-action i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.btn-action:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.btn-action:hover i {
    color: var(--primary-dark);
}

/* Theme switch */
.theme-switch-wrapper {
    position: fixed;
    top: 16.5%;
    right: 20px;
    z-index: 1000;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
    z-index: 2;
}

.slider .fa-sun {
    color: #f59e0b;
    font-size: 14px;
    margin-left: auto;
}

.slider .fa-moon {
    color: #3b82f6;
    font-size: 14px;
}

input:checked+.slider {
    background-color: #2563eb;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/*Header styles*/
.main-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    z-index: 100;
    transition: background-color 0.3s ease;
    top: 0;
}

[data-theme="dark"] .main-header {
    background-color: var(--light);
}

.logo-container {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.logo-wrapper {
    width: 80px;
    height: 80px;
    /* border-radius: 50%; */
    overflow: hidden;
    margin-right: 1rem;
    /* box-shadow: var(--shadow); */
}

.logo {
    margin: auto;
    height: 100%;
    object-fit: cover;
}

.title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary);
}

.title p {
    color: var(--gray);
    margin-bottom: 0;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    display: flex;
    width: 300px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--primary-dark);
}


.quick-actions {
    display: flex;
    gap: 1rem;
}

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

/* Mega Menu styles */
.mega-menu {
    background-color: white;
    position: sticky;
    top: calc(var(--top-bar-height) + var(--header-height));
    z-index: 99;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .mega-menu {
    background-color: var(--light);
}

.menu {
    display: flex;
    justify-content: space-between;
}

.menu-item {
    /* position: initial;*/
    position: static;
    flex: 1;
}

.menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.5rem;
    color: var(--dark);
    transition: var(--transition);
    width: max-content;
}

.menu-icon {
    font-size: 1.5rem;
    /* margin-bottom: 0.5rem; */
    color: var(--primary);
    transition: var(--transition);
}

.menu-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.menu-item:hover .menu-link {
    color: var(--primary);
}

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


.dropdown {
    position: fixed;
    /* fixé par rapport à l’écran, pas au menu-item */
    top: 6rem;
    /* ajuste en fonction de la hauteur de ta nav */
    left: 0;
    width: 100vw;
    background-color: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    z-index: 98;
    /* overflow: hidden; */
    pointer-events: none;
    /* empêche le menu de rester ouvert quand tu sors */
}


[data-theme="dark"] .dropdown {
    background-color: var(--light);
}

.dropdown-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    filter: blur(5px);
}

.dropdown-wrapper {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.5rem;
    left: 0;
}

.menu-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /*transform: translateY(10px);*/
    /* transform: translateX(-61.8%) translateY(0);*/
}

/* .dropdown-header {
    margin-bottom: 2rem;
} */

.dropdown-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.dropdown-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* .dropdown-content {
    display: flex;
    gap: 2rem;
} */
.dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-height: 70vh;
    /* limite la hauteur Ã  60% de lâ€™Ã©cran */
    overflow-y: auto;
    /* scroll vertical */
    pointer-events: auto;
    /* autorise le clic */

    /* Firefox scroll bar */
    scrollbar-width: thin;
    /* taille fine */
    scrollbar-color: #bbb transparent;
    /* couleur du curseur + fond */
    padding-right: 8px;
    /* espace entre contenu et scroll bar */
}

/* Chrome, Edge, Safari */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
    /* largeur */
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
    /* pas de fond */
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: #bbb;
    /* couleur du curseur */
    border-radius: 4px;
    /* arrondi */
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: #999;
    /* un peu plus foncÃ© au survol */
}

.dropdown-featured {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
}

.featured-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dropdown-featured:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.dropdown-grid {
    height: fit-content;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.dropdown-category h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.dropdown-category h3 i {
    margin-right: 0.75rem;
}

.dropdown-category ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.dropdown-category ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary);
}

.dropdown-category ul li a {
    color: var(--dark);
    transition: all 0.3s ease;
}

.dropdown-category ul li a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}

/* Mobile menu toggle */
.links {
    height: 0;
    overflow: hidden;
    transition: var(--transition);
    position: absolute;
    background-color: white;
}

.show-links {
    height: auto;
}


/* Conteneur principal du menu responsive*/
ul.menu-res {
    padding: 0;
    list-style: none;
    width: 100vw;
    margin: 20px auto;
    font-family: 'Montserrat', sans-serif;
    clear: both;
    display: table;

    .list {
        font-size: 14px;
        border-bottom: 1px solid #324252;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        height: 50px;
        vertical-align: sub;
        background: #c5c6c8;
        clear: both;

        &:after {
            content: "\f107";
            font-family: FontAwesome;
            position: absolute;
            right: 17px;
            top: 17px;
            padding: 0px 5px;
            color: black;
        }

        &:before {


            position: absolute;
            left: 17px;
            top: 17px;
            padding: 0px 5px;
            color: black;
        }

        a {
            text-decoration: none;
            color: black;
            padding: 17px 0px 17px 20px;
            display: block;
            height: 100%;
            box-sizing: border-box;

            &:hover {
                background-color: #1d4ed8;
                transition: 300ms all;
                color: #fff;
            }
        }

        .items {
            height: 0px;
            overflow: hidden;

            a {
                padding: 17px;

                &:hover {
                    background-color: #1d4ed8;
                    color: #fff;
                    transition: 300ms all;

                }
            }
        }

        &:last-child {
            border-bottom: none;
        }
    }

    .active {
        &:after {
            content: "\f106";
            font-family: FontAwesome;
            position: absolute;
            right: 17px;
            top: 17px;
            padding: 0px 5px;
            color: #fff;
        }

        &:before {
            position: absolute;
            left: 17px;
            top: 17px;
            padding: 0px 5px;
            color: #fff;
        }

        >.items {
            display: block;
            background: #fff;
            padding: 0px;
            height: auto;
            color: #fff;
            transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
            transition: all 200ms;
            clear: both;
            float: left;
            width: 100%;

            li {
                padding: 0px;
                border-bottom: 1px solid black;
                list-style: none;
            }

            li:last-child {
                border-color: transparent;
                padding-bottom: 0px;
            }

            .active {
                >.items {
                    background-color: #c5c6c8;
                }
            }
        }

        >a {
            color: var(--primary);
            text-transform: uppercase;
            font-weight: bold;

        }

        .list {
            background: #fff;

            a {
                padding: 17px 0px 17px 20px;

            }
        }
    }
}



.mobile-menu-toggle {
    display: none;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background-color: var(--primary); */
    /* box-shadow: var(--shadow-md); */
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Hero section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}


.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s forwards;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.3s;
}

.reveal-text:nth-child(3) {
    animation-delay: 0.6s;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -5px;
    animation: scrollArrows 2s infinite;
}

.scroll-arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollArrows {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Quick access section */
.quick-access {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 3rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.quick-access-card {
    background-color: #48894b;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark);
}

[data-theme="dark"] .quick-access-card {
    background-color: var(--light);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.quick-access-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.quick-access-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.quick-access-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.quick-access-card:hover .quick-access-icon {
    background-color: var(--primary);
}

.quick-access-card:hover .quick-access-icon i {
    color: white;
    transform: scale(1.1);
}

.quick-access-card h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}


/* Events section */
.events-section {
    padding: 3rem 0 5rem 0;
    background-color: #f8fafc;
}

[data-theme="dark"] .events-section {
    background-color: #0f172a;
}

.events-slider {
    position: relative;
    overflow: hidden;
    /* Important pour masquer les éléments hors de la vue */
}

.events-wrapper {
    display: flex;
    /* Remplacer grid par flex */
    transition: transform 0.5s ease;
    /* Ajouter une transition pour le défilement fluide */
}

.event-card {
    flex: 0 0 calc(33.333% - 1rem);
    /* Largeur fixe pour chaque carte (3 par vue) */
    margin-right: 1.5rem;
    /* Espace entre les cartes */
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

[data-theme="dark"] .event-card {
    background-color: var(--light);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    text-align: center;
    min-width: 60px;
    z-index: 2;
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.event-image {
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 11rem;
    right: 0;
    background-color: white;
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.event-badge:empty {
    display: none;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.event-card:hover .event-content h3 {
    color: var(--primary);
}

.event-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.event-details i {
    margin-right: 0.25rem;
    color: var(--primary);
}

.event-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 2rem;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--primary);
    color: white;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background-color: var(--primary);
}


/* Services section */
.services-section {
    padding: 3rem 0;
    background-color: #EDEDED;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--light);
}

[data-theme="dark"] .service-card {
    background-color: var(--light);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(237, 239, 244, 0.932);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: var(--dark);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-dark);
}

.service-card:hover .service-icon i {
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    color: var(--light);
}


.service-card:hover h3 {
    color: var(--light);
}

.service-card p {
    color: #000;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--light);
    font-weight: 600;
}

.service-link:hover {
    color: var(--light);
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}


/* Projets accueil Page Styles */
.rooms {
    padding: 80px 0;
}

.room-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    align-items: center;
}

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

.room-item.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.room-item.reverse .room-details {
    direction: ltr;
}

.room-image {
    position: relative;
}

.room-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.room-price-tag {
    position: absolute;
    bottom: 20px;
    right: 0;
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 5px 0 0 5px;
}

.room-price-tag:empty {
    display: none;
}

.room-details h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.room-capacity {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-style: italic;
}

.room-details p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.room-details h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.room-amenities {
    margin-bottom: 25px;
}

.room-amenities li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: var(--gray-color);
}

.room-amenities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.room-info {
    padding: 80px 0;
    background-color: var(--light-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(107, 142, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon svg {
    color: var(--primary-color);
    width: 30px;
    height: 30px;
}

.info-card h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.info-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: var(--gray-color);
}

.info-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.booking-info {
    padding: 80px 0;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.booking-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.booking-content p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

.booking-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.booking-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: var(--gray-color);
}

.booking-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.booking-cta {
    display: flex;
    justify-content: center;
}

.cta-box {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 400px;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-box p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.cta-box .btn-secondary {
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-box .btn {
    width: 100%;
}






/* Footer styles */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
}

.footer-top {
    padding: 5rem 0 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(5, 0.3fr);
    gap: 2rem;
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo .logo {
    /* width: 60px; */
    height: 60px;
    margin-right: 1rem;
}

.footer-title h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: white;
}

.footer-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links li a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--primary);
}

.footer-links li a:hover {
    color: white;
    padding-left: 0.5rem;
}

.opening-hours .day-hours {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.opening-hours .day {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.opening-hours .hours {
    color: rgba(255, 255, 255, 0.7);
}

.carte {
    height: 40vh;
    width: 100%;
    z-index: 90;
    border-radius: 20px;
    margin-bottom: 5%;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-legal li a:hover {
    color: white;
}

.back-to-top {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.back-to-top a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive styles */


@media (max-width: 1200px) {
    .theme-switch-wrapper {
        position: static;
        margin-left: 1rem;
    }

    .mega-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-right {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

@media (max-width: 992px) {

    .title h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--primary);
    }

    /* .main-header .container {
        justify-content: center;
    } */
    .event-card {
        flex: 0 0 calc(50% - 0.75rem);
        /* 2 cartes par vue sur tablette */
    }

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

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

    .dropdown-content {
        flex-direction: column;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-container {
        flex-direction: column;
    }

    .mayor-content {
        flex-direction: column;
        text-align: center;
    }

    .mayor-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* .section-header {
        flex-direction: column;
    } */

    .section-controls {
        width: 100%;
        justify-content: space-between;
    }

    .box1 {
        order: 2;
    }

    .box2 {
        order: 1;
    }

    .room-item,
    .room-item.reverse,
    .booking-grid,
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .room-item.reverse {
        direction: ltr;
    }

    .room-item,
    .room-item.reverse {
        margin-top: 4rem;
    }

    .section-title-container {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--primary);
    }

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

    .news-masonry {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .events-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .title h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--primary);
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .news-filter {
        flex-wrap: wrap;
    }

    .map-card {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .section-title2 {
        font-size: 1.3rem;
    }

    .event-card {
        flex: 0 0 100%;
        /* 1 carte par vue sur mobile */
    }
}

.search-box button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.carousel-container {
    padding: 3rem 0 5rem;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}