
/* Style général */
body {
    font-family: 'Montserrat', sans-serif;
}

/* Barre de navigation */
.navbar {
    background-color: #004d99;
    position: sticky;
    top: 0;
    z-index: 10;
}
.navbar .nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: capitalize;
    margin-left: 10px;
}
.navbar .nav-link:hover {
    color: #be3636 !important;
}
.navbar-toggler {
    border-color: white;
}
/* active link*/
.navbar .nav-link.active {
    position: relative;
    color: red !important;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background-color: red;
}

@media (max-width: 768px) {
    .navbar .nav-link.active::after {
        display: none;
    }
}
/* Logo */
.navbar-brand {
    font-weight: bold;
    color: #ebe4e5 !important;
    font-size: 1.5rem;
}

/* Slider principal */
.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
}
.carousel-item:first-child {
    background-image: url('images/0413.png'); /* Remplacez par votre image */
}

.carousel-item:nth-child(2) {
    background-image: url('slider2.jpg'); /* Remplacez par votre image */
}
.carousel-item:nth-child(3) {
    background-image: url('slider3.jpg'); /* Remplacez par votre image */
}
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: r;
    color: white;
    padding: 20px;
    flex-direction: column; /* Aligne les éléments verticalement */
}
.carousel-overlay h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.carousel-overlay p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.carousel-overlay .btn {
    margin: 0 10px;
    padding: 10px 20px;
}
/* Barre supérieure */
.top-bar {
background-color: #e2edf7;
color: rgb(5, 5, 5);
font-size: 0.9rem;
padding: 5px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar .social-icons a {
    color: rgb(15, 15, 15);
    margin-left: 10px;
    text-decoration: none;
}
/*animation services*/ 
.service-card {
opacity: 0;
transform: translateY(50px);
transition: all 0.5s ease-in-out;
}

.service-card.visible {
opacity: 1;
transform: translateY(0);
}


/* Section Statistiques */
.stats-section {
background: url('0413.png') no-repeat center center/cover;
background-image: url('https://source.unsplash.com/random/1920x1080');
padding: 50px 20px;
color: #295f2c;
text-align: center;
position: relative;
}

.stats-overlay {
background: rgba(0, 0, 0, 0); /* Overlay sombre */
padding: 30px;
border-radius: 10px;
}

.stats-title {
font-size: 2rem;
font-weight: bold;
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}

.stats-container {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}

.stat-item {
background: #ffffff10;
padding: 20px;
border-radius: 10px;
width: 200px;
transition: transform 0.3s ease;
}

.stat-item:hover {
transform: scale(1.1);
}

.stat-value {
font-size: 2.5rem;
font-weight: bold;
color: #c93e3e;
}

.stat-label {
font-size: 1rem;
margin-top: 10px;
display: block;
color: #1a1919;
}

/* Section Texte */
.info-section {
background: #3c6991;
padding: 40px 20px;
text-align: center;
}

.info-text {
color: #fff;
font-size: 1.2rem;
line-height: 1.5;
max-width: 800px;
margin: 0 auto;
font-weight: bold;
}

/* Section de contact */
.contact-section {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #222;
color: white;
padding: 40px 20px;
}

.contact-content {
max-width: 40%;
}

.contact-content h2 {
font-size: 2.5rem;
margin-bottom: 20px;
}

.contact-content p {
line-height: 1.6;
font-size: 1rem;
}

/* Formulaire */
.contact-form {
display: flex;
flex-wrap: wrap;
gap: 20px;
max-width: 50%;
}

.form-group {
width: 48%; /* 50% moins le gap */
}

.form-group textarea {
width: 100%;
resize: none;
}

form input, form select, form textarea {
width: 100%;
padding: 10px;
font-size: 1rem;
border: none;
background-color: #ddd;
}

form button {
width: 50%;
padding: 15px;
background-color: #50a8e6;
border: none;
color: white;
font-size: 1.2rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s;
}

form button:hover {
background-color: #edf3f7;
color: #50a8e6;
}

/* Responsive styles */
@media (max-width: 768px) {
.navbar .nav-link {
    font-size: 0.9rem;
}
.carousel-overlay h1 {
    font-size: 2rem;
}
.carousel-overlay p {
    font-size: 1rem;
}
.stats-title {
    font-size: 1.5rem;
}
.stat-item {
    width: 100%;
    margin-bottom: 20px;
}
.info-text {
    font-size: 1rem;
}
.contact-content {
    max-width: 100%;
    margin-bottom: 20px;
}
.contact-content h2 {
    font-size: 2rem;
}
.contact-form {
    max-width: 100%;
}
.contact-form .form-group {
    width: 100%;
}
.contact-form button {
    width: 100%;
}
form button:hover {
    background-color: #edf3f7;
    color: #50a8e6;
}
.navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #004d99;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}
.dark-mode .navbar-collapse {
    background-color: #333;
}
.navbar-collapse.show {
    transform: translateX(0);
}
.navbar-nav {
    flex-direction: column;
    gap: 15px;
}
.nav-link {
    color: white !important;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.nav-link:hover {
    color: #004d99 !important;
}
.navbar-collapse .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

}

/* Footer */



.btn-primary:hover {
background-color: #34a14e !important; /* Couleur de fond verte au survol */
border-color: #318d47 !important; /* Bordure verte au survol */
}

 /* Style du footer */
 footer {
    background-color: #2C3E50; /* Couleur sombre */
    color: white;
    padding: 50px 0;
}

/* Style des liens */
footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Icônes des réseaux sociaux */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff1a;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease-in-out;
}



/* Bouton de retour en haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid red;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
    font-size: 20px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: red;
    color: white;
}