/* Global Styles */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Rendre le carrousel responsive */
#homeCarousel img {
    width: 100%;
    height: auto;
}

/* Centrer le texte du carrousel et ajuster la taille pour les petits écrans */
.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    text-align: left;
    padding: 20px;
}

.carousel-text h2 {
    font-size: 2rem;
    font-weight: bold;
}

.carousel-button .btn-read-more {
    font-size: 1.2rem;
}

/* Adapter le texte du carrousel sur les petits écrans */
@media (max-width: 768px) {
    .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
    }

    .carousel-text h2 {
        font-size: 1.5rem;
    }

    .carousel-button .btn-read-more {
        font-size: 1rem;
    }
}

/* Pour les grands écrans (PC) */
@media (min-width: 768px) {
    .carousel-caption {
        bottom: 25%;
        left: 15%;
        right: 15%;
    }

    .carousel-text h2 {
        font-size: 2.5rem;
    }

    .carousel-button .btn-read-more {
        font-size: 1.5rem;
    }
}

/* Style pour les boutons sous le carrousel */
.container {
    padding: 0 15px;
}

.button-ujarak {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    background-color: transparent;
    color: #7aa228;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0;
    transition: background-color 0.3s;
    border: 2px solid #7aa228;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

/* Bouton de hover */
.button-ujarak:hover {
    background-color: #7aa228;
    color: #ffffff;
    border: 1px solid rgb(255, 255, 255);
}

/* Pour les écrans moyens et plus grands */
@media (min-width: 768px) {
    .button-ujarak {
        width: auto;
    }
}

/* Contrôles du carousel : rendre les boutons de navigation plus visibles sur mobile */
.carousel-control-prev, .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1);
}


/* Contact Section */
.contact {
    padding: 40px 20px;
    background: lightgray;
    text-align: center;
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact form button {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
}
.contact-info-card .card {
    border-radius: 10px; /* Coins arrondis */
}

.contact-info-card .card-body {
    padding: 20px; /* Espacement interne */
    text-align: center; /* Centrer le contenu */
}

.contact-info-card .card i {
    color: #ffffff; /* Icônes blanches */
}

.contact-info-card .card p {
    color: #ffffff; /* Texte blanc */
}

@media (max-width: 767px) {
    .contact-info-card .card-body {
        padding: 15px; /* Réduire le padding sur petits écrans */
    }
}

/* Cartes d'informations de contact */
.contact-info-card .card {
    border-radius: 10px; /* Coins arrondis */
    background-color: #000000; /* Fond noir pour les cartes */
    border: none; /* Pas de bordure */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
}

.contact-info-card .card-body {
    padding: 20px;
    text-align: center;
}

.contact-info-card .card i {
    color: #7aa228; /* Icônes colorées en vert */
    margin-bottom: 15px;
}

.contact-info-card .card p {
    color: #ffffff; /* Texte des cartes en blanc */
}

/* Animation au survol */
.contact-info-card .card:hover {
    transform: scale(1.05); /* Agrandissement de la carte */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Ombre portée */
}



/* Cartes d'informations de contact */
.contact-info-card .card {
    border-radius: 10px; /* Coins arrondis */
    background-color: #000000; /* Fond noir pour les cartes */
    border: none; /* Pas de bordure */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
}

.contact-info-card .card-body {
    padding: 20px;
    text-align: center;
}

.contact-info-card .card i {
    color: #7aa228; /* Icônes colorées en vert */
    margin-bottom: 15px;
}

.contact-info-card .card p {
    color: #ffffff; /* Texte des cartes en blanc */
}

/* Animation au survol */
.contact-info-card .card:hover {
    transform: scale(1.05); /* Agrandissement de la carte */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Ombre portée */
}

.counter-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .counter-box i {
    color: #7aa228;
    margin-bottom: 10px;
  }
  
  .counter-box h3, .counter-box p {
    color: #7aa228;
    margin: 0;
  }
  
  /* Effet de survol */
  .counter-box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  }
  
.service-cards {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #7aa228;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .service-cards:hover {
    
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .icon-box i {
    color: #7aa228;
  }
  
  h5.fw-bold {
    color: #7aa228;
  }

.carousel-title {
    font-size: 30px;
    font-weight: bold;
    color: #7aa228;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.carousel-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    background-color: #7aa228;
    margin: 8px auto 0;
    border-radius: 2px;
}

.carousel-control-prev, 
.carousel-control-next {
    background-color: #7aa228; /* Couleur de fond */
    border-radius: 50%; /* Boutons arrondis */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -50px; /* Positionne en bas du carousel */
    top: auto;
}

.carousel-control-prev {
    left: 40%;
}

.carousel-control-next {
    right: 40%;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
    filter: invert(1); /* Icône blanche */
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    background-color: #7aa228; /* Effet de survol */
}

.news-ticker {
    width: 100%;
    height: 90px; /* Augmenté pour une meilleure visibilité */
    overflow: hidden;
    background: #7aa228; /* Couleur verte conforme à ton site */
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

.news-content {
    display: inline-block;
    font-size: 30px; /* Texte plus grand */
    font-weight: bold;
    color: white;
    animation: scrollText 15s linear infinite; /* Réduit la durée de l'animation */
    padding-left: 100%; /* Commence hors de l'écran */
}

@keyframes scrollText {
    0% {
        transform: translateX(100%); /* Début de l'animation (hors de l'écran à droite) */
    }
    100% {
        transform: translateX(-100%); /* Fin de l'animation (hors de l'écran à gauche) */
    }
}


/* Appliquer l'object-fit sur les images du carousel pour un bon rendu sur toutes tailles d'écran */
.hero .carousel-item img {
    object-fit: cover;
    height: 100vh; /* hauteur de l'écran */
}

/* Centrer le texte du carousel */
.hero .carousel-caption {
    bottom: 30%;
    left: 10%;
    right: 10%;
    text-align: left;
}
