.realisations-section {
    background-color: var(--bgaccent);
    color: var(--txtaccent5);
    padding: 60px 20px;
}

.realisations-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    color: var(--txtaccent5);
}

.realisations-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--txtaccent5);
}

/* Tabs Navigation */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-bottom: none;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--txtaccent5);
    background-color: transparent;
    border: 2px solid var(--txtaccent5);
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--bgaccent);
    background-color: var(--haccent);
    border-color: var(--haccent);
}

.nav-tabs .nav-link.active {
    color: var(--bgaccent);
    background-color: var(--haccent);
    border-color: var(--haccent);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Tab Content */
.tab-content {
    margin-top: 30px;
}

.tab-pane {
    animation: fadeIn 0.5s ease;
    padding: 20px 10px;
}

.tab-pane h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--txtaccent5);
}

.tab-pane p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--txtaccent5);
}

/* Carousel Styling */
.carousel {
    position: relative;
    margin-top: 20px;
}

.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 30px;
    height: 30px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--haccent);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab-pane {
        padding: 10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

.realisations-section {
    background-color: var(--bgaccent);
    color: var(--txtaccent5);
    padding: 60px 20px;
}

.realisations-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    color: var(--txtaccent5);
}

.realisations-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--txtaccent5);
}

/* Tabs Navigation */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-bottom: none;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--txtaccent5);
    background-color: transparent;
    border: 2px solid var(--txtaccent5);
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--bgaccent);
    background-color: var(--haccent);
    border-color: var(--haccent);
}

.nav-tabs .nav-link.active {
    color: var(--bgaccent);
    background-color: var(--haccent);
    border-color: var(--haccent);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Tab Content */
.tab-content {
    margin-top: 30px;
}

.tab-pane {
    animation: fadeIn 0.5s ease;
    padding: 20px 10px;
}

.tab-pane h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--txtaccent5);
}

.tab-pane p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--txtaccent5);
}

/* Carousel Styling */
.carousel {
    position: relative;
    margin-top: 20px;
}

.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Limiting the image size for uniformity */
.carousel-inner img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limitation de la hauteur */
    object-fit: cover; /* Ajuste l'image pour remplir l'espace sans déformer */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 30px;
    height: 30px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--haccent);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab-pane {
        padding: 10px;
    }

    .carousel-inner img {
        max-height: 300px; /* Réduction pour les petits écrans */
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Tab Pane Section */
.tab-pane {
    padding: 20px;
    text-align: center;
}

.tab-pane h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--txtaccent5);
}

.tab-pane p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--txtaccent5);
}

/* Carousel Container */
.carousel {
    position: relative;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 400px; /* Hauteur personnalisable */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    border-radius: 10px;
    max-height: 500px; /* Limite de hauteur */
    width: 100%;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7); /* Opacité accrue */
    padding: 10px 20px;
    border-radius: 5px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    font-weight: bold;
    max-width: 80%;
    animation: fadeIn 0.5s ease; /* Animation d'apparition */
}

/* Next and Previous Buttons */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6); /* Opacité accrue pour meilleure visibilité */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--haccent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Ombre ajoutée au survol */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

/* Limitation de la taille des images */
.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ajuste sans déformer */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-inner {
        height: 250px; /* Réduction pour mobile */
    }

    .carousel-caption {
        font-size: 0.9rem;
        padding: 5px 15px;
        max-width: 90%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
}

/* Animation for caption */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
