/* Multi-select dropdown styles */
.multi-select-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dropdown-header:hover {
    border-color: #80bdff;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 8px;
    margin-left: 0;
}

.dropdown-item span {
    user-select: none;
}

/* Custom file upload button styles */
input[type="file"].form-control {
    position: relative;
    padding: 10px 12px;
    border: 2px dashed #ced4da;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="file"].form-control:hover {
    border-color: #2a93c9;
    background-color: #e3f2fd;
    color: #2a93c9;
}

input[type="file"].form-control:focus {
    border-color: #2a93c9;
    box-shadow: 0 0 0 0.2rem rgba(42, 147, 201, 0.25);
    background-color: #ffffff;
}

/* Style for when file is selected */
input[type="file"].form-control::before {
    content: "📁 Choisir un fichier";
    white-space: nowrap;
}

input[type="file"].form-control::-webkit-file-upload-button {
    visibility: hidden;
}

input[type="file"].form-control::-ms-value {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    input[type="file"].form-control {
        font-size: 13px;
        padding: 8px 10px;
    }

    input[type="file"].form-control::before {
        font-size: 12px;
    }
}

/* Form container with fixed height and scroll */
.form-scroll-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar for webkit browsers - Mobile only */
@media (max-width: 768px) {
    .form-scroll-container::-webkit-scrollbar {
        width: 8px;
    }

    .form-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .form-scroll-container::-webkit-scrollbar-thumb {
        background: #2a93c9;
        border-radius: 4px;
    }

    .form-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #0d2e4f;
    }
}

/* Disable custom scrollbars for previous editions on desktop */
.previous-editions::-webkit-scrollbar {
    display: none !important;
}

.previous-editions {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Variables */
:root {
    --primary-color: #0d2e4f;
    /* Bleu sombre BMCE Capital */
    --primary-light: #1a4673;
    --primary-dark: #081d33;
    --secondary-color: #2a93c9;
    /* Bleu clair BMCE Capital */
    --accent-color: #3cb6d4;
    /* Bleu turquoise à la place de l'orange */
    --text-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #051a30;
    --gray-color: #f1f1f1;
    --border-color: #e6e6e6;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none !important;
    color: var(--primary-color);
    transition: .3s;
}

ul {
    list-style: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Common */
section {
    padding: 72px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-item {
    margin-left: 25px;
}

.navbar-link {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.navbar-link:hover {
    color: var(--accent-color);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-button {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar-button i {
    font-size: 14px;
    margin-right: 2px;
}

.navbar-button span {
    font-size: 14px;
}

.navbar-button:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section - MODIFIÉ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1920/1080') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
    color: white;
    max-width: 600px;
    margin-top: 0px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: darkturquoise;
    font-weight: 700;
}

.hero-cta {
    display: inline-flex;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hero-cta i {
    font-size: 16px;
}

.hero-cta span {
    font-size: 1.1rem;
}



.hero-cta:hover {
    background-color: white;
    color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}



@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

/* Counter Section */
.counter-section {
    margin-top: -80px;
    position: relative;
    z-index: 20;
}

.counter-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-width: 150px;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.plus {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.counter-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* About Section - MODIFIÉ */
.about-section {
    background-color: #f8f9fa;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    border-left: 5px solid var(--accent-color);
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    /* MODIFIÉ: Suppression du fond bleu */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--accent-color);
    /* Couleur des icônes */
}

.feature-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

/* President Section */
.president-section {
    position: relative;
    background-color: white;
    padding: 100px 0;
}

.president-shape-top,
.president-shape-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
}

.president-shape-top {
    top: 0;
    background-color: var(--light-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.president-shape-bottom {
    bottom: 0;
    background-color: var(--gray-color);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.president-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.president-image-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.president-image {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 5;
}

.president-image-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 30px solid var(--accent-color);
    opacity: 0.2;
    z-index: 1;
}

.president-text {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.quote-mark {
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: -10px;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.president-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

.president-info {
    display: flex;
    flex-direction: column;
}

.president-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.president-title {
    font-size: 1rem;
    color: var(--accent-color);
}

/* Objectives Section */
.objectives-section {
    background-color: var(--gray-color);
    position: relative;
}

.objectives-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.objective-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 370px;
    transition: var(--transition);
}

.objective-card:hover {
    transform: translateY(-10px);
}

.objective-icon {
    background-color: var(--primary-color);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 1.5rem;
}

.objective-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.objective-text {
    color: #666;
    text-align: justify;
}

/* Themes Section */
.themes-section {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.themes-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background-color: var(--accent-color);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(250px, -250px);
}

.themes-tabs {
    margin-top: 50px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;

}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    outline: none;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 80%;
}

.tabs-content {
    position: relative;
    min-height: 400px;
}

.tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tab-panel.active {
    opacity: 1;
    visibility: visible;
}

.tab-content-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tab-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    text-align: center;
}

.tab-image img {
    width: 45%;
    height: 120px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 5;
    background-color: #07032b;
    object-fit: cover;
}

.tab-image-shape {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    opacity: 0.1;
    z-index: 1;
}

.tab-text {
    flex: 1;
    min-width: 300px;
}

.tab-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tab-description {
    margin-bottom: 25px;
}

.tab-list {
    margin-bottom: 30px;
}

.tab-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tab-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.tab-link i {
    margin-left: 10px;
    transition: var(--transition);
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link:hover i {
    transform: translateX(5px);
}

/* Program Section */
.program-section {
    background-color: var(--gray-color);
    position: relative;
}

.program-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.program-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    z-index: 10;
}

.timeline-content {
    position: relative;
    width: 45%;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-icon {
    position: absolute;
    top: -25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-icon {
    left: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    right: -25px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-text {
    margin-bottom: 15px;
}

.timeline-date {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Previous Section - MODIFIÉ pour afficher côte à côte */
.previous-section {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.previous-bg-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(-250px, 250px);
}

.previous-editions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.edition-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.edition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.edition-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.edition-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
    object-position: center;
}

.edition-card:hover .edition-image img {
    transform: scale(1.05);
}

.edition-year {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.edition-content {
    padding: 25px;
}

.edition-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.edition-description {
    color: #666;
    margin-bottom: 20px;
}

/* Style corrigé pour un défilement continu sans interruption */
.partners-section {
    background-color: var(--gray-color);
    padding: 80px 0;
    overflow: hidden;
}

.logos-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    margin-top: 40px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

/* Créer deux instances du slider pour une animation continue parfaite */
.logos-track {
    display: flex;
    width: calc(180px * 12 * 2);
    /* 12 logos * 2 (doublés) * largeur du logo */
    animation: scroll 30s linear infinite;
}

.logos-slider {
    display: flex;
    align-items: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Seulement la moitié puisque les logos sont répétés */
    }
}

.logo-item {
    flex: 0 0 auto;
    width: 180px;
    height: 80px;
    margin: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.logo-item img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    object-fit: contain;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: url('/api/placeholder/1920/1080') center/cover;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0.9;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button i {
    margin-left: 10px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Inscription Section */
.inscription-section {
    background-color: white;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.registration-form {
    background-color: #07032b;
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-group {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 25px;
    min-width: 250px;
}

.form-group.full-width {
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.required {
    color: var(--accent-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(42, 147, 201, 0.1);
    outline: none;
}

.file-upload-container {
    margin-top: 10px;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.file-label i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.file-label:hover {
    background-color: var(--accent-color);
}

.file-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.form-submit-container {
    text-align: center;
    margin-top: 20px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.form-submit i {
    font-size: 16px;
    margin-left: 0;
}

.form-submit span {
    font-size: 1.1rem;
}

.form-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    position: relative;
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 30px;
}

.footer-logo {
    margin-bottom: 25px;
    max-width: 150px;
}

.footer-description {
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(5px);
}

.contact-info {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item p {
    opacity: 0.7;
    line-height: 1.6;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .president-image,
    .president-image-shape {
        width: 250px;
        height: 250px;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-dot,
    .program-timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-icon {
        left: -15px !important;
        right: auto !important;
    }

    .edition-card {
        min-width: 280px;
    }
}

/* Image and video optimization for mobile */
@media (max-width: 768px) {
    .carousel {
        height: calc(100vh - 70px);
        min-height: 500px;
    }

    .video-fluid {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .floating-image {
        max-width: 80%;
        height: auto;
        margin: 0 auto;
    }

    .feature-img img,
    .feature-img2 img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .tab-image img {
        width: 60%;
        height: auto;
        margin: 0 auto 20px;
    }

    .edition-image img {
        height: 150px;
        object-fit: cover;
    }

    .logo-item img {
        max-height: 40px;
        width: auto;
    }

    /* Navigation mobile */
    .navbar-menu {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        background-color: white !important;
        flex-direction: column !important;
        padding: 20px !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
        transition: var(--transition) !important;
        z-index: 100 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        display: flex !important;
        align-items: flex-start !important;
    }

    .navbar-menu.active {
        left: 0 !important;
        display: flex !important;
    }

    .navbar-item {
        margin: 10px 0;
        width: 100%;
    }

    .navbar-toggle {
        display: flex !important;
        flex-direction: column !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        position: relative !important;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px) !important;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px) !important;
    }

    /* Hero section mobile */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-text {
        margin-bottom: 30px;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Section containers */
    .section-container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Cards mobile */
    .objective-card,
    .tab-content-inner,
    .footer-col {
        min-width: 100%;
    }

    .objective-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .tab-image {
        margin-bottom: 30px;
    }

    .footer-col {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .edition-card {
        min-width: 100%;
        margin-bottom: 20px;
        width: 100%;
        flex: 1;
    }

    /* Form mobile */
    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
        padding: 0;
    }

    /* Counter mobile */
    .counter-container {
        flex-direction: column;
        gap: 20px;
    }

    .counter-item {
        width: 100%;
        padding: 20px;
    }

    /* Timeline mobile */
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }

    .timeline-dot,
    .program-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-icon {
        left: -10px !important;
        right: auto !important;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Partners slider mobile */
    .logo-item {
        width: 120px;
        height: 60px;
        margin: 0 10px;
    }

    /* Previous editions mobile - Vertical layout */
    .previous-editions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 20px;
        padding: 20px 10px;
    }

    .edition-card {
        flex: 1 !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        width: 100% !important;
    }

    /* Fix for logo Cap'Tech mobile */
    .edition-image img[alt="Programme 2019"] {
        padding-top: 5px !important;
        max-height: 220px;
        object-fit: contain;
    }

    /* Feature section mobile */
    .feature-img {
        text-align: center;
        margin-bottom: 20px;
    }

    .feature-img img,
    .feature-img2 img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .img-president {
        width: 200px;
        height: 200px;
        border: 3px solid #f8f9fa;
    }

    /* Strategic axes mobile */
    .strategic-axes-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .strategic-axis-card {
        max-width: 100%;
        min-width: auto;
        padding: 20px 20px 20px 50px;
    }

    .axis-icon {
        left: -20px;
        top: 20px;
        width: 40px;
        height: 40px;
    }

    .axis-icon i {
        font-size: 18px;
    }

    .axis-title {
        font-size: 15px;
    }

    .axis-description {
        font-size: 13px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 576px) {
    .carousel {
        height: calc(100vh - 60px);
        min-height: 400px;
    }

    .floating-image {
        max-width: 90%;
        height: auto;
    }

    .tab-image img {
        width: 70%;
        height: auto;
    }

    .edition-image img {
        height: 120px;
    }

    .logo-item img {
        max-height: 35px;
    }

    /* Typography mobile */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Layout mobile */
    .counter-container,
    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }

    .counter-item {
        width: 100%;
        margin-bottom: 15px;
        padding: 15px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .tab-btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    /* Forms mobile */
    .registration-form {
        padding: 20px 15px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-submit {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Partners mobile */
    .logo-item {
        width: 100px;
        height: 50px;
        margin: 0 8px;
    }

    .logo-item img {
        max-height: 40px;
    }

    /* Section spacing mobile */
    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* About section mobile */
    .about-text {
        padding: 25px 20px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Objectives mobile */
    .objective-card {
        padding: 25px 20px;
    }

    .objective-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .objective-title {
        font-size: 1.1rem;
    }

    .objective-text {
        font-size: 0.9rem;
    }

    /* Footer mobile */
    .footer-top {
        padding: 50px 0 30px;
    }

    .footer-col {
        margin-bottom: 25px;
    }

    /* Back to top mobile */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* File upload mobile */
    .file-upload-area {
        padding: 15px;
        margin-bottom: 15px;
    }

    .file-upload-title {
        font-size: 13px;
    }

    .file-upload-subtitle {
        font-size: 11px;
    }

    .file-upload-icon i {
        font-size: 24px;
    }

    .file-upload-info {
        padding: 10px;
        margin-top: 10px;
    }

    .file-upload-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .file-upload-name {
        width: 100%;
    }

    .file-upload-remove {
        align-self: flex-end;
        padding: 5px;
        font-size: 16px;
    }

    /* Form validation messages mobile */
    .help-block {
        font-size: 12px;
        margin-top: 5px;
    }

    .invalid-feedback {
        font-size: 12px;
        margin-top: 5px;
    }

    /* Multi-select dropdown mobile */
    .dropdown-content {
        max-height: 150px;
    }

    .dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 35px);
    min-height: 400px;
    /*background: rgb(74, 47, 75)!important;*/
    background: rgb(10, 11, 43) !important;
    margin-bottom: 45px;

}

.video-fluid {
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.carousel .container-fluid {
    padding: 0;
}

.carousel .carousel-item {
    position: relative;
    width: 100%;
    height: calc(100vh - 35px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.carousel .carousel-img {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: right;
    overflow: hidden;
}

.carousel .carousel-img::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /*todo*/
    /*  background: rgba(9, 42, 73, .7);*/
    /* background: rgba(0, 189, 187, .6);*/
    z-index: 1;
}

.carousel .carousel-img img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

.carousel .carousel-text {
    position: absolute;
}

.carousel .carousel-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}



.carousel .carousel-text .btn {
    padding: 15px 30px;
    font-size: 16px;
    letter-spacing: 1px;
    color: #ffffff;
    background: none;
    border: 2px solid #ffffff;
    border-radius: 0;
    transition: .3s;
}

.carousel .carousel-text .btn i {
    margin-right: 5px;
}

.carousel .carousel-text .btn:hover {
    color: #0796fe;
    background: #ffffff;
}

.carousel .carousel-btn .btn:first-child {
    margin-right: 5px !important;
}

.carousel-btn {
    text-align: center;
}

.paragraph {
    font-size: 0.9em !important;
    background-color: rgba(109, 109, 109, 0.116);
    padding: 20px !important;
    border-radius: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.carousel .owl-nav {
    display: none !important;
    position: absolute;
    width: 100%;
    height: 100px;
    justify-content: space-between;
    bottom: 2px;
    display: flex;
    z-index: 9;
    top: 40%;
}

.carousel .owl-nav .owl-prev,
.carousel .owl-nav .owl-next {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #00bdbb;
    font-size: 22px;
    transition: .3s;
}

.carousel .owl-nav .owl-prev:hover,
.carousel .owl-nav .owl-next:hover {
    /* color: #ffffff;*/
    /* background: #00bdbb;*/
    opacity: 1;
}

.carousel .owl-nav .owl-prev {
    margin-right: 2px;
}

.carousel .animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
}

#videoModal .modal-dialog,
#videoModal2 .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body,
#videoModal2 .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close,
#videoModal2 .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}

@media (max-width: 991.98px) {

    .carousel,
    .carousel .carousel-item,
    .carousel .carousel-text {
        height: calc(100vh - 105px);
    }

    .carousel .carousel-text h1 {
        font-size: 35px;
    }

    .carousel .carousel-text p {
        font-size: 16px;
    }

    .carousel .carousel-text .btn {
        padding: 12px 30px;
        font-size: 15px;
        letter-spacing: 0;
    }
}

@media (max-width: 767.98px) {

    .carousel,
    .carousel .carousel-item,
    .carousel .carousel-text {
        height: calc(100vh - 70px);
    }

    .carousel .carousel-text h1 {
        font-size: 30px;
    }

    .carousel .carousel-text .btn {
        padding: 10px 25px;
        font-size: 15px;
        letter-spacing: 0;
    }
}

@media (max-width: 575.98px) {
    .carousel .carousel-text h1 {
        font-size: 25px;
    }

    .carousel .carousel-text .btn {
        padding: 8px 20px;
        font-size: 14px;
        letter-spacing: 0;
    }
}

.testimonial .testimonials-carousel {
    position: relative;
    width: calc(100% + 30px);
    margin: 0 -15px;
}

.blog .blog-carousel {
    position: relative;
    width: calc(100% + 30px);
    left: -15px;
    right: -15px;
}

.accordion-section .panel-default>.panel-heading {
    border: 0;
    background: rgba(0, 0, 0, .03);
    padding: 0;
}

.accordion-section .panel-default .panel-title a {
    display: block;
    font-size: 1rem;
}

.accordion-section .panel-default .panel-title a:after {
    font-family: 'FontAwesome';
    font-style: normal;
    font-size: 3rem;

    color: #1f7de2;
    float: right;
    margin-top: -12px;
}

.faq-arrow-click {
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-size: 1.2rem;
    transform: translateY(-50%);
}

.panel-heading {
    position: relative !important;
}

.faq-arrow-click:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.accordion-section .panel-default .panel-body {
    font-size: 1rem;
}

.custom-date-input {
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-date-input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#typeOrganisationLibelle {
    display: none;
}

.containerUser {
    background-color: white;
}

/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Styles pour les appareils mobiles */
@media (min-width: 500px) {
    .floating-image {
        margin-left: 150px;
        max-width: 90%;
        height: auto;
        animation: float 3s infinite ease-in-out;
        margin-top: 0px;
    }

    .feature-img2 {
        align-self: flex-start;
        margin-top: 0;
        padding-top: 0 !important;
    }

    .row.align-items-end .feature-img2 {
        align-self: flex-start !important;
    }

    .img-president{
        height: 410px;
        object-fit: cover;
        object-position: top;
        vertical-align: top;
        margin-top: 0;
        display: block;
    }

    .tab-image img {
        margin-bottom: 30px;
    }
}

@media (max-width: 500px) {
    .carousel .carousel-text h1 {
        margin-top: 200px;
        font-size: 25px;
    }
    .floating-image {
        max-width: 90%;
        height: auto;
        animation: float 3s infinite ease-in-out;
        margin-top: -70px;
    }

    .feature-img2 {
        align-self: flex-start;
        margin-top: 0;
        padding-top: 0 !important;
    }

    .row.align-items-end .feature-img2 {
        align-self: flex-start !important;
    }

    .img-president{
        height: 340px;
        object-fit: cover;
        object-position: top;
        vertical-align: top;
        margin-top: 0;
        display: block;
    }

    .tab-image img {
        margin-top: 30px;
    }

    .hero-cta {
        position: relative;
        bottom: -200px;
    }


    .control-group {
        width: 100%;
        padding: 10px;
    }

    .form-control {
        width: 100%;
        padding: 10px;
    }

    .help-block {
        font-size: 14px;
    }
}

/* Style pour l'image du président en cercle */
.img-president {
    border-radius: 50%;
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 2px solid #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: -30px;
    position: relative;
    top: -50px;
}
