.hero-carousel {
    width: 100%;
    margin-top: 0;
    position: relative;
    padding: 15px 0;
}

.hero-carousel .carousel-container {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    padding: 0;
}

.hero-carousel .carousel-caption h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-caption p {
    font-size: 20px;
    color: #fff;
    max-width: 80%;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 10%;
}

.hero-carousel .carousel-indicators {
    bottom: 20px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.hero-carousel .carousel-indicators button.active {
    background-color: #fff;
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 60vh;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 28px;
    }
    .hero-carousel .carousel-caption p {
        font-size: 16px;
    }
}

.highlight-yellow {
    color: #f7cb2d;
    font-weight: bold;
}

.highlight-blue {
    color: #1e88e5;
    font-weight: bold;
}

.highlight-orange {
    color: #35ab4a ;
    font-weight: bold;
}

.description {
    color: #444; /* couleur texte de base */
    font-size: 16px;
    line-height: 1.7;
}

/* Styles pour la section Environnements */

section .environnements {
    padding: 80px 0;
    background-color: #f8f9fa;
}

section .environnements .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.envh2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #35ab4a !important;
    margin-bottom: 15px !important;
}

.envp {
    font-size: 16px;
    color: #627680;
}

section .environnements-slider {
    margin-bottom: 60px;
}

.environnement-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin: 15px;
    height: 400px;
}

.environnement-img {
    height: 250px;
    overflow: hidden;
}

.environnement-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.environnement-item:hover .environnement-img img {
    transform: scale(1.1);
}

.environnement-info {
    padding: 20px;
    background-color: #fff;
}

.environnement-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #364146;
    margin-bottom: 5px;
}

.environnement-info h4 {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 10px;
}

.environnement-info p {
    color: #627680;
    font-size: 14px;
    margin: 0;
}

/* Style pour les cartes des 3 environnements */

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Titres des environnements plus petits */
.card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
     font-weight: 700 !important;
    color: #364146 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges d'âge plus grands et plus visibles */
.age-badge {
    margin-bottom: 20px !important;
}

.age-badge .btn-getstarted {
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #35ab4a, #28a745) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(53, 171, 74, 0.3) !important;
    transition: all 0.3s ease !important;
}

.age-badge .btn-getstarted:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(53, 171, 74, 0.4) !important;
}

.card-text {
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 14px;
}
/* Styles pour la section Team */
.team {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.team-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-img:hover {
    transform: translateY(-5px);
}

.team-img img {
    width: 100%;
    height: auto;
    display: block;
}

.team .content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.team .content-wrapper {
    padding: 20px;
}

.team .content h2 {
    font-size: 36px;
    font-weight: 700;
    color:  #31B44C;
    margin-bottom: 30px;
    position: relative;
}

.team .content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4CAF50;
}

.team .text-content {
    text-align: justify;
    max-width: 90%;
    margin: 0 auto;
}

.team .subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.team .description {
    color: #627680;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team {
        padding: 60px 0;
    }
    
    .team .content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .team .text-content {
        text-align: left;
    }
    
    .team .description {
        text-align: left;
    }
}

/* Support RTL pour l'arabe */
body.rtl .team .content h2::after {
    left: 50%;
    transform: translateX(-50%);
}

body.rtl .team .text-content {
    text-align: justify;
}

body.rtl .team .subtitle {
    text-align: center;
}

body.rtl .team .description {
    text-align: justify;
}

.btn-rejoindre {
    display: inline-block;
    padding: 12px 30px;
    background-color: #31B44C;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-rejoindre:hover {
    background-color: #00b383;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 153, 112, 0.3);
}


/* Responsive pour les sections */

@media (max-width: 991px) {
    .team .content {
        padding: 30px 0;
        margin-top: 30px;
    }
    .environnement-item {
        height: auto;
    }
}


/* Swiper pagination customization */

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(0, 153, 112, 0.4);
}

.swiper-pagination-bullet-active {
    background-color: #31B44C;
}


/* Styles pour la section formulaire de contact */
   /* Contact Section Styling */
    .contact {
        padding: 80px 0;
        background: linear-gradient(rgba(var(--light-rgb), 0.8), rgba(var(--light-rgb), 0.9)), 
                    url('/api/placeholder/1920/1080') center/cover no-repeat fixed;
    }
    
    .contact .section-header h2 {
        position: relative;
        display: inline-block;
        margin-bottom: 20px;
        font-weight: 700;
    }
    
    .contact .section-header h2:after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -10px;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background-color: var(--accent-color);
    }
    
    /* Card styling with shadow and no border */
    .contact .contact-card {
        border: none;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
    }
    
    .contact .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* Image container styling */
    .contact-image-container {
        position: relative;
        overflow: hidden;
        min-height: 100%;
    }
    
    .contact-image {
        position: relative;
        height: 100%;
    }
    
    .contact-image img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .contact-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.8));
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        color: white;
        text-align: center;
    }
    
    .contact-image-text h3 {
        font-weight: 700;
        margin-bottom: 1rem;
        font-size: 1.75rem;
    }
    
    .contact-image-text p {
        font-size: 1.1rem;
        opacity: 0.9;
    }
    
    /* Form styling */
    .contact .form-title {
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 10px;
    }
    
    .contact .form-title:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background-color: var(--accent-color);
    }
    
    .contact .form-label {
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--dark-color);
        font-size: 0.95rem;
    }
    
    .contact .form-control,
    .contact .form-select {
        padding: 12px 18px;
        border-radius: 10px;
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
        background-color: #f8f9fa;
        font-size: 1rem;
    }
    
    .contact .form-control:focus,
    .contact .form-select:focus {
        box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.15);
        border-color: var(--accent-color);
        background-color: #fff;
    }
    
    .contact .date-input {
        cursor: pointer;
    }
    
    .contact textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Button styling */
    .contact .btn-primary {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        font-weight: 600;
        letter-spacing: 0.5px;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .contact .btn-primary:hover {
        background-color: var(--accent-color-dark, var(--accent-color));
        border-color: var(--accent-color-dark, var(--accent-color));
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    }
    
    .contact .btn-primary:active {
        transform: translateY(-1px);
    }
    
    /* Form validation styling */
    .contact .was-validated .form-control:invalid,
    .contact .form-control.is-invalid {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }
    
    .contact .invalid-feedback {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    
    /* Alert styling */
    .contact .alert {
        border-radius: 10px;
        padding: 1rem 1.25rem;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .contact .alert-success {
        background-color: rgba(25, 135, 84, 0.1);
        color: #198754;
    }
    
    /* Responsive styles */
    @media (max-width: 992px) {
        .contact .card-body {
            padding: 2rem;
        }
    }
    
    @media (max-width: 768px) {
        .contact .card-body {
            padding: 1.5rem;
        }
        
        .contact .form-label {
            font-size: 0.9rem;
        }
        
        .contact .btn-primary {
            font-size: 1rem;
            padding: 0.5rem 1rem;
        }
    }
    
    @media (max-width: 576px) {
        .contact {
            padding: 50px 0;
        }
        
        .contact .section-header h2 {
            font-size: 1.75rem;
        }
    }