/********** Template CSS **********/
:root {
    --primary: #62A845 !important;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
    --agrobox-green: #4BAF4F;
    --agrobox-light-green: #8AD404;
    --agrobox-dark: #034226;
    --agrobox-gray-icon: #D9D9D9;
}

.text-success { color: var(--agrobox-green) !important; }
.text-success-light { color: var(--agrobox-light-green) !important; }
.text-dark { color: #212529 !important; } /* Couleur par défaut de Bootstrap pour le dark */
.text-secondary { color: #6c757d !important; } /* Couleur par défaut de Bootstrap pour le secondary */


/*** mes styles ***/

body {
  font-family: "Poppins", Arial, sans-serif !important;
}

.poppins-text {
  font-family: "Poppins", sans-serif !important;
}

.outfit-text {
  font-family: "Outfit", sans-serif !important;
 
}

.bg-agrogreen {
    background-color: #62A845 !important;
}

.bg-agrowhite {
    background-color: #fff !important;
}

.bg-footer-green {
    background-color: #123827 !important;
}

.bg-footer-dk {
    background-color: #0F281D !important;
}

.bg-footer-darker {
    background-color: #0c0c0c !important;
}

.color-agrogreen {
    color: #62A845 !important;
}

.color-agrogreener {
    color: #8AD404 !important;
}

.color-agrotextgreener {
    color: #4BAF4F !important;
}


.color-agrodark {
    color: #0c0c0c !important;
}

.border-agrogreen {
    border: 1px solid #62A845 !important;
}

.rounded-agro15 {
    border-radius: 8px !important;
}

.agrofw-normal {
    font-weight: 400 !important;
}

/* --- Styles de base du carrousel --- */



.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  background: rgba(9, 30, 62, 0.7); /* Fond semi-transparent */
  z-index: 1;
  display: flex;
  align-items: center; /* Centre verticalement le contenu */
}

/* Styles pour le bloc de texte sur desktop */
.caption-left {
  max-width: 900px;
  margin-left: 8%;
  text-align: left;
}

/* --- Responsive pour les tablettes (768px et moins) --- */
@media (max-width: 991.98px) {
    .caption-left {
        margin-left: 5%; /* Légèrement moins de marge sur les tablettes */
    }
}

/* --- Responsive pour les mobiles (767px et moins) --- */
@media (max-width: 767.98px) {

    .carrousel-pd{
        padding-top: 10% !important;
        padding-bottom: 6% !important;
    }

    .carousel-caption {
        padding: 0 1rem; /* Ajoute un peu de padding horizontal autour du carrousel */
    }
    
    .caption-left {
        max-width: 100%; /* S'assure que le bloc de texte peut prendre toute la largeur */
        margin: 0 auto; /* Centre le bloc de texte horizontalement */
        text-align: center !important; /* Centre le texte à l'intérieur du bloc */
        padding: 0 1rem; /* Ajoute un padding interne pour l'espace */
    }

    .caption-left h1 {
        font-size: 2.5rem; /* Réduit la taille du titre H1 */
    }

    .caption-left h2 {
        font-size: 1.5rem; /* Réduit la taille du sous-titre H2 */
    }

    .caption-left h5 {
        font-size: 0.8rem; /* Réduit la taille du paragraphe H5 */
    }
}

.underline-tordue {
  position: relative;
  display: inline-block;
}

.underline-tordue::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;       /* distance sous le texte */
  width: 100%;
  height: 12px;
  display: block;
  pointer-events: none;

  background-image: url("../img/creux1.svg"); /* votre image */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}


/* Card de base */
.card-custom {
    background-color: white;
    border-radius: 15px;
    transition: 0.3s;
}

.card-custom .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #D9D9D9;
    transition: 0.3s;
}

.card-custom .small-circle {
    width: 15px;
    height: 15px;
    background-color: #4BAF4F;
    border-radius: 50%;
    bottom: 10px;
    right: 10px;
    transition: 0.3s;
}

/* Hover */
.card-custom:hover {
    background-color: #4BAF4F;
    cursor: pointer;
}

.card-custom:hover .icon-circle {
    background-color: white;
}

.card-custom:hover .card-text {
    color: white;
}

.card-custom:hover .small-circle {
    background-color: white;
}


/* Import de la police Outfit - Assurez-vous d'avoir le lien dans votre HTML <head> */
body {
    font-family: 'Outfit', sans-serif;
}


/* Section principale */
.agrobox-mission-section {
    background-color: #034226; /* Couleur de fond de la section */
}

.agrobox-mission-section h5 {
    color: #4BAF4F !important; /* Couleur verte pour "NOUS SOUHAITONS" */
    font-size: 1rem; /* Ajustez si h5 est trop petit */
    letter-spacing: 0.1em; /* Un peu d'espacement pour le style */
}

.agrobox-mission-section h2 {
    color: white !important; /* Couleur blanche pour le titre principal */
    font-size: 2.5rem; /* Display-5 par défaut est 3rem en Bootstrap 5 */
}

/* Customisation de la grille pour 5 éléments sur les grands écrans */
/* Cette classe donne 20% de largeur à chaque colonne, ce qui permet 5 colonnes par ligne */
@media (min-width: 992px) { /* Breakpoint 'lg' de Bootstrap */
    .col-lg-2-4-custom {
        flex: 0 0 auto;
        width: 20%; /* 100% / 5 = 20% */
    }
}

/* --- RESPONSIVITÉ POUR LE TITRE H2 --- */

/* Pour les écrans de taille moyenne (md) et plus petits (sm, xs) */
@media (max-width: 991.98px) { /* Jusqu'au breakpoint 'md' de Bootstrap */
    .agrobox-mission-section h2 {
        font-size: 2.1rem; /* Légèrement plus petit sur les écrans moyens */
    }
}

/* Pour les écrans très petits (sm) et mobiles (xs) */
@media (max-width: 767.98px) { /* Jusqu'au breakpoint 'sm' de Bootstrap */
    .agrobox-mission-section h2 {
        font-size: 2rem; /* Encore plus petit sur mobile */
        line-height: 1.2; /* Ajuster la hauteur de ligne pour éviter l'écrasement */
    }
}

/* Vous pourriez même aller plus loin pour les très petits mobiles */
@media (max-width: 575.98px) { /* Jusqu'au breakpoint 'xs' de Bootstrap */
    .agrobox-mission-section h2 {
        font-size: 1.75rem; /* Très petit sur les plus petits mobiles */
    }
}


/* Style de la carte */
.mission-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px 20px; /* Ajustez le padding interne si nécessaire */
    min-height: 220px; /* Hauteur minimale pour que toutes les cartes soient de taille similaire */
    position: relative; /* Pour positionner le petit cercle */
    overflow: hidden; /* Pour que le petit cercle soit bien dans le coin */
    transition: all 0.3s ease; /* Transition douce pour l'effet hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Petite ombre pour la profondeur */
}

/* Cercle de l'icône */
.icon-circle {
    width: 80px; /* Taille du cercle */
    height: 80px;
    background-color: #D9D9D9; /* Couleur de fond du cercle */
    border-radius: 50%; /* Pour le rendre circulaire */
    display: flex; /* Pour centrer l'icône */
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Espace entre l'icône et le texte */
    transition: background-color 0.3s ease; /* Transition pour le hover */
}

.icon-circle img {
    max-width: 60%; /* Ajustez la taille de l'icône à l'intérieur du cercle */
    height: auto;
    display: block; /* Supprime l'espace sous l'image */
}

/* Texte de la carte */
.mission-card .card-text {
    color: #333; /* Couleur du texte par défaut */
    font-family: 'Outfit', sans-serif;
    font-weight: 700; /* Gras comme sur la maquette */
    font-size: 1.15rem; /* Taille du texte */
    text-align: center;
    margin-bottom: 0; /* Pas de marge en bas du texte */
    transition: color 0.3s ease; /* Transition pour le hover */
}

/* Petit cercle en coin bas à droite */
.corner-circle {
    width: 40px; /* Taille du petit cercle */
    height: 40px;
    background-color: #4BAF4F; /* Couleur verte par défaut */
    border-radius: 50%;
    position: absolute;
    right: -10px; /* Déborde un peu sur le côté */
    bottom: -10px; /* Déborde un peu en bas */
    transition: background-color 0.3s ease; /* Transition pour le hover */
}


/* Effet de HOVER pour la carte */
.mission-card:hover,
.mission-card.active { /* Applique les mêmes styles que le hover à la carte 'active' */
    background-color: #4BAF4F; /* Fond vert au survol */
    cursor: pointer; /* Indique que la carte est interactive */
}

.mission-card:hover .icon-circle,
.mission-card.active .icon-circle {
    background-color: white; /* Cercle de l'icône devient blanc */
}

.mission-card:hover .card-text,
.mission-card.active .card-text {
    color: white; /* Texte devient blanc */
}

.mission-card:hover .corner-circle,
.mission-card.active .corner-circle {
    background-color: white; /* Petit cercle devient blanc */
}




/* --- SECTION QUI SOMMES-NOUS --- */

/* Style pour l'empilement d'images */
.image-stack {
    padding-left: 20%; /* Pour décaler l'image avant vers la droite et révéler l'arrière */
    padding-top: 10%; /* Ajuste le positionnement vertical des images superposées */
    height: 100%; /* S'assure que le conteneur prend la hauteur disponible pour l'alignement */
    display: flex; /* Utilise flexbox pour le positionnement */
    align-items: center; /* Centre verticalement les images si besoin */
}

.stacked-image-back {
    width: 70%; /* Image arrière plus petite */
    z-index: 1; /* S'assure qu'elle est en arrière */
    top: 0;
    left: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Ombre légère pour la profondeur */
}

.stacked-image-back .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Ombre transparente */
    border-radius: 15px; /* Applique le border-radius de l'image */
}

.stacked-image-front {
    width: 85%; /* Image avant plus grande */
    position: relative;
    z-index: 2; /* S'assure qu'elle est au-dessus */
    left: 15%; /* Décalage pour laisser voir l'image arrière */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée */
}

/* Les images elles-mêmes */
.image-stack img {
    border-radius: 15px; /* Border-radius de 15px pour les images */
    object-fit: cover; /* S'assure que l'image couvre l'espace sans déformation */
    width: 100%; /* Pour prendre toute la largeur de leur conteneur */
    height: 100%; /* Pour prendre toute la hauteur de leur conteneur */
}

/* Responsivité pour la pile d'images sur les petits écrans */
@media (max-width: 991.98px) { /* Tablette et mobile */
    .image-stack {
        padding-left: 0; /* Pas de décalage sur mobile */
        padding-top: 0;
        justify-content: center; /* Centre l'image unique sur mobile */
        margin-bottom: 2rem; /* Espace entre l'image et le texte sur mobile */
        height: auto; /* Hauteur auto sur mobile */
    }
    .stacked-image-back {
        display: none; /* Cache l'image arrière sur mobile */
    }
    .stacked-image-front {
        width: 90%; /* L'image avant prend plus de place sur mobile */
        left: 0; /* Pas de décalage sur mobile */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre plus légère sur mobile */
    }
}

/* --- TITRE PRINCIPAL (H2) RESPONSIVE --- */
.agrobox-main-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 3rem; /* Taille par défaut pour les grands écrans (lg et plus) */
    line-height: 1.2; /* Hauteur de ligne ajustée */
}

/* Pour les écrans de taille moyenne (md) et plus petits (sm, xs) */
@media (max-width: 991.98px) {
    .agrobox-main-title {
        font-size: 2.5rem;
    }
}

/* Pour les écrans très petits (sm) et mobiles (xs) */
@media (max-width: 767.98px) {
    .agrobox-main-title {
        font-size: 2rem;
        line-height: 1.25; /* Légèrement plus d'espace sur mobile */
    }
}

/* Pour les très petits mobiles */
@media (max-width: 575.98px) {
    .agrobox-main-title {
        font-size: 1.75rem;
    }
}


/* --- PARTIE COUNT ET LISTE --- */

.counter-number {
    font-size: 3.5rem; /* Taille du nombre 25+ */
    line-height: 1; /* Assurez-vous qu'il ne prend pas trop de place */
}

.list-unstyled li {
    font-family: 'Outfit', sans-serif;
    font-weight: 400; /* Texte normal */
    color: #333;
}

.icon-bullet {
    color: var(--agrobox-green); /* Couleur verte pour l'icône de puce */
    font-weight: 700; /* Le "✔" peut être en gras */
    font-size: 1.2em; /* Taille de l'icône */
    display: inline-block; /* Pour l'alignement */
    width: 20px; /* Largeur fixe pour l'icône */
    text-align: center;
}

/* --- SECTION SERVICES --- */

/* Fond bicolore de la section */
.agrobox-services-section {
  background: linear-gradient(to bottom, #F0E9E9 0%, #F0E9E9 50%, white 50%, white 100%);
}

/* Titre principal responsif */
.agrobox-services-section h3 {
  font-size: 2.5rem;
}


@media (max-width: 767.98px) {
  .agrobox-services-section h3 {
    font-size: 2rem;
  }
  .agrobox-services-section {
    background: #F0E9E9;
  }
}

/* Style de base des cartes */
.card {
  border-radius: 10px;
  background-color: transparent !important;
}

.card-img-top {
  width: 100%;
  height: 180px; /* Hauteur fixe pour que toutes les images soient de la même taille */
  object-fit: cover; /* Assure que l'image remplit la zone sans déformation */
  border-radius: 10px;
}

.card-body {
  text-align: center;
}

.card-title {
  color: #212529;
}

.card-text {
  color: #6c757d;
  font-weight: 400;
}

.card-body a {
  color: #8B6EE2 !important;
  font-weight: 700;
}


/* --- SECTION BANQUE AGRICOLE --- */

.agrobox-bank-section {
  background-color: white; /* Fond de section blanc */
}

/* Responsivité du titre principal */
.agrobox-bank-section h2 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .agrobox-bank-section h2 {
    font-size: 2rem;
  }
  .agrobox-bank-section .text-start {
    text-align: center !important; /* Force le centrage sur les petits écrans */
  }
  .agrobox-bank-section .order-lg-1 {
    order: 2 !important;
  }
  .agrobox-bank-section .order-lg-2 {
    order: 1 !important;
  }
}

@media (max-width: 767.98px) {
  .agrobox-bank-section h2 {
    font-size: 1.3rem;
  }
}

/* Style des 3 boîtes */
.feature-box {
  color: white;
  text-align: center;
  padding: 1rem; /* Padding réduit pour un meilleur ajustement */
  border-radius: 10px;
  /* Nouvelles règles pour forcer la taille et l'alignement */
  height: 150px; /* Définir une hauteur fixe */
  display: flex; /* Utiliser Flexbox pour le centrage */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.feature-box img {
  width: 60px; /* Largeur fixe pour l'icône */
  height: auto; /* Hauteur automatique pour maintenir les proportions */
  margin-bottom: 0.5rem; /* Un peu d'espace sous l'icône */
}

.feature-box p {
  margin-bottom: 0;
  font-weight: bold;
}

/* Image et conteneur pour l'alignement */
.image-wrapper {
  height: 100%; /* Permet à l'image de prendre la hauteur du conteneur de texte */
}

.image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* --- SECTION BANQUE ALIMENTAIRE --- */

.agrobox-foodbank-section {
  background-color: #F0E9E9;
}

/* Conteneur d'images superposées */

.agrobox-foodbank-section .image-stack {
  height: 550px;
}

.agrobox-foodbank-section .image-stack img:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 15px; /* S'assurer que le border-radius est bien appliqué */
}

.agrobox-foodbank-section .image-stack img:last-child {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  height: 65%;
  object-fit: cover;
  border-radius: 15px; /* S'assurer que le border-radius est bien appliqué */
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
  border: 10px solid white; /* Bordure blanche pour faire ressortir l'image */
}

/* Styles pour les caractéristiques */
.icon-circle-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle-large img {
  width: 40px;
  height: 40px;
}

.feature-icon-circle-group h3, .feature-icon-circle-group p {
  line-height: 1.2;
}

/* --- Responsivité pour les images sur mobile --- */
@media (max-width: 767.98px) {
  .agrobox-foodbank-section .image-stack {
    height: auto; /* La hauteur s'adapte au contenu sur mobile */
    flex-direction: column; /* Empile les images verticalement */
  }

  /* Les deux images sont affichées comme des blocs standards sur mobile */
  .agrobox-foodbank-section .image-stack img:first-child,
  .agrobox-foodbank-section .image-stack img:last-child {
    position: static; /* Retire le positionnement absolu */
    width: 100%;
    height: auto;
    margin-bottom: 1rem; /* Ajoute un espace entre les images empilées */
    box-shadow: none; /* Retire l'ombre sur mobile pour une meilleure lisibilité */
  }
}


/* --- SECTION PROJETS --- */

.agrobox-projects-section {
  background-color: #F8F8F8;
}

.project-card {
  height: 400px; /* Hauteur fixe pour toutes les cartes */
  cursor: pointer;
}

/* Superposition sombre sur l'image */
.project-overlay {
  background-color: rgba(0, 0, 0, 0.4); /* Opacité sombre */
  transition: background-color 0.3s ease;
}

/* Effet de survol sur la superposition */
.project-card:hover .project-overlay {
  background-color: rgba(0, 0, 0, 0.6); /* Plus sombre au survol */
}

/* Styles pour le texte initial */
.project-text-initial {
  text-align: center;
  /* Transition pour le texte */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Styles pour le texte au survol */
.project-text-hover {
  text-align: center;
  /* Masqué par défaut */
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Au survol, on cache le texte initial et on affiche le nouveau */
.project-card:hover .project-text-initial {
  opacity: 0;
  transform: translateY(-100%);
}

.project-card:hover .project-text-hover {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivité */
@media (max-width: 767.98px) {
  .agrobox-projects-section h3 {
    font-size: 2rem;
  }
}


/* --- SECTION VIDÉO D'ACCUEIL --- */

.agrobox-video-section {
  position: relative;
  overflow: hidden;
  color: white; /* Pour le texte */
}

/* Styles pour la vidéo en arrière-plan */
.bg-video {
  right: 0;
  bottom: 0;
  min-width: 100%; 
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  object-fit: cover;
}

/* Overlay sombre pour la lisibilité du texte */
.video-overlay {
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* Style de l'icône de lecture */
.play-btn-circle {
  width: 100px;
  height: 100px;
  border: 2px solid white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.play-btn-circle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Responsivité du texte et des éléments */
@media (max-width: 991.98px) {
  .agrobox-video-section h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .agrobox-video-section h2 {
    font-size: 2rem;
  }
}

/* --- SECTION PRODUITS --- */

.agrobox-products-section {
  background-color: #F4F1F1;
}

/* Style de base de chaque carte produit */
.product-card {
  border: 1px solid #8AD404;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border-radius: 15px !important;
  background: linear-gradient(-24deg, #FFFFFF, #999999);
}

.product-visual {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* L'image s'adapte sans être coupée */
  transition: all 0.5s ease;
}

/* Superposition sombre */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

/* Styles pour les textes */
.product-text-initial {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: all 0.3s ease;
}

.product-text-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  opacity: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Effets au survol */
.product-card:hover .product-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* Opacité sombre au survol */
}

.product-card:hover .product-text-initial {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.product-card:hover .product-text-hover {
  opacity: 1;
}

/* Responsivité du titre */
@media (max-width: 767.98px) {
  .agrobox-products-section h3 {
    font-size: 2rem;
  }
}


/* --- SECTION PAGE PRODUCTION --- */

.agrobox-production-section {
  background-color: white;
}

.agrobox-box {
  max-width: 1140px;
  margin: auto;
  border: 1px solid #62A845;
  background-color: #CFECF0;
}

.production-image-container {
  /* Empêche l'image de s'étirer */
  flex-shrink: 0;
  max-width: 450px;
}

.production-image-container img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Style du séparateur vertical */
.separator {
  width: 30px; /* Augmente la largeur du séparateur */
  background-color: #62A845;
  align-self: stretch; /* Permet au séparateur de prendre toute la hauteur */
  margin: 0 20px; /* Ajoute de la marge pour l'espace */
}

/* Responsivité de l'ensemble de la section */
@media (max-width: 991.98px) {
  .agrobox-box {
    flex-direction: column; /* Empile les éléments verticalement */
  }
  
  /* Laisse le texte aligné à gauche sur mobile */
  .production-text-container {
    text-align: left !important;
  }
  
  .separator {
    display: none; /* Cache le séparateur sur mobile */
  }
}

/* --- SECTION PROCESSUS DE PRODUCTION --- */

.agrobox-process-section {
  background-color: white;
}

.process-number {
  font-size: 3rem; /* Ajuste la taille du chiffre */
  font-weight: bold;
}

.process-card {
  padding: 1rem;
}

/* Responsivité des textes et de l'alignement */
@media (max-width: 767.98px) {
  .agrobox-process-section h2 {
    font-size: 1.3rem;
  }
}


/* --- SECTION SANTÉ ET BIEN-ÊTRE --- */

.agrobox-wellness-section {
    background-color: white; /* Pour une meilleure clarté */
}

.wellness-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wellness-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.wellness-card h5 {
    color: #1B5E20; /* Vert foncé pour le titre de la carte */
}

/* Vous aurez besoin de la bibliothèque Font Awesome pour les icônes */
.icon-placeholder {
    /* La classe .icon-placeholder est un conteneur pour l'icône */
    color: #4CAF50;
}

/* Responsivité des textes */
@media (max-width: 767.98px) {
    .agrobox-wellness-section h2 {
        font-size: 1.5rem;
    }
}


/* --- SECTION PRODUITS DE LA PAGE DE PRODUCTION --- */

.agrobox-production-products-section {
    background-color: #F1F8E9;
}

.production-product-card {
    background-color: #FFFFFF;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.production-product-card .image-wrapper {
    width: 100%;
    /* C'est la ligne clé. Nous allons définir une hauteur fixe. */
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.production-product-card .image-wrapper img {
    /* Ces propriétés permettent de remplir le conteneur */
    width: 100%;
    height: 100%;
    
    /* C'est la solution ! */
    object-fit: cover;
    
    /* object-position est optionnel mais utile pour un meilleur cadrage */
    object-position: center;
    
    border-radius: 8px;
}

.btn-outline-success {
    color: #4CAF50;
    border-color: #4CAF50;
}

.btn-outline-success:hover {
    background-color: #4CAF50;
    color: white;
}


/* --- SECTION STATISTIQUES --- */

.agrobox-stats-section {
    background-color: #F8F9FA;
}

.stats-card {
    background-color: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.counter-value {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stats-card p {
    font-size: 1rem;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .counter-value {
        font-size: 2.5rem;
    }
}


/* Le CSS est le même que précédemment, gérant le centrage du bouton et le style de la section */
.agrobox-transformation-section {
  background-color: white;
}

.agrobox-box {
  max-width: 1140px;
  margin: auto;
  border: 1px solid #62A845;
  background-color: #CFECF0;
}

/* Nouveau nom de classe pour le conteneur */
.transformation-video-container {
  /* Empêche le conteneur de s'étirer */
  flex-shrink: 0;
  max-width: 450px;
  
  /* --- AJOUT/MODIFICATION CLÉ POUR LA HAUTEUR --- */
  /* Définit la hauteur fixe du conteneur */
  height: 300px; 
  
  position: relative; 
  cursor: pointer;
  /* Assure que rien ne déborde si la vidéo est plus grande */
  overflow: hidden; 
}

/* Modification de la vidéo elle-même */
.transformation-video-container video {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* S'assure que la vidéo remplit la hauteur et la largeur du conteneur */
  width: 100%; 
  height: 100%;
  
  /* Crucial pour éviter la déformation.
     La vidéo couvrira l'espace de 300px en coupant les bords si nécessaire. */
  object-fit: cover; 
  
  display: block;
}

/* Style et positionnement du bouton de lecture */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre parfaitement le bouton */
  font-size: 1.5rem;
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.85); /* Fond blanc semi-transparent */
  color: #62A845; /* Couleur de votre marque */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.play-button:hover {
  background-color: #62A845;
  color: white;
  transform: translate(-50%, -50%) scale(1.1); /* Petit effet de zoom au survol */
}

/* Style du séparateur vertical */
.separator {
  width: 3px; 
  background-color: #62A845;
  align-self: stretch; 
  margin: 0 20px; 
}

/* ... (Autres styles responsifs) */


/* --- SECTION ENGAGEMENT QUALITÉ --- */

.agrobox-quality-section {
    background-color: #F8FDF5; /* Un fond très clair, presque blanc, pour contraster */
}

.quality-card {
    background-color: #FFFFFF;
    border: 1px solid #E6F0E0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.quality-card:hover {
    transform: translateY(-5px); /* Petit effet de survol pour le dynamisme */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}

.quality-card i {
    color: #4CAF50 !important; /* Couleur d'accentuation */
}


/* --- SECTION FAQ --- */

.agrobox-faq-section {
    background-color: #FFFFFF;
}

.accordion-item {
    border: 1px solid #E0F2F1; /* Bordure légère */
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: #F8FDF5; /* Fond très léger pour le bouton */
    color: #1B5E20; /* Texte vert foncé pour le contraste */
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background-color: #4CAF50; /* Couleur d'accentuation quand il est ouvert */
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #4CAF50;
}

.accordion-body {
    background-color: #FFFFFF;
    border-top: 1px solid #E0F2F1;
    padding: 1rem 1.25rem;
    color: #6c757d;
}



/* --- SECTION PRODUITS DYNAMIQUES (ROCAMBOLESQUE) --- */

.agrobox-dynamic-products-section {
    background-color: white; /* Fond de section blanc */
}

.dynamic-card {
    background: linear-gradient(to right, #F0F0F0, #8A8A8A); /* Dégradé de fond de la carte */
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 400px; /* Hauteur fixe pour les cartes, ajustable si nécessaire */
    transition: transform 0.3s ease;
}

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

.card-text-content {
    flex: 1; /* Prend la moitié de l'espace sur desktop */
    padding: 2.5rem;
}

.card-product-title {
    font-size: 1.1rem; /* H5 */
}

.card-product-subtitle {
    font-size: 1.8rem; /* H3 */
    color: #343a40; /* Couleur sombre pour le contraste */
}

.card-product-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-agrobox-discover {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-agrobox-discover:hover {
    background-color: #388E3C; /* Vert un peu plus foncé au survol */
    transform: translateY(-2px);
    color: #fff; /* Pour assurer que le texte reste blanc */
}

.card-image-content {
    flex: 1; /* Prend l'autre moitié de l'espace sur desktop */
    position: relative;
    overflow: hidden; /* Important pour le comparateur d'images */
}

/* Styles pour le comparateur d'images (base) */
.agrobox-image-comparer {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: ew-resize; /* Curseur est-ouest pour indiquer le glissement */
}

.comparer-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que les images couvrent la zone sans déformation */
    user-select: none; /* Empêche la sélection de texte sur les images */
}

.comparer-image-left {
    width: 50%; /* Image de gauche visible à 50% par défaut */
    left: 0;
    top: 0;
}

.comparer-image-right {
    width: 100%; /* L'image de droite est toujours à 100% mais masquée par la gauche */
    left: 0;
    top: 0;
    /* Important : nous ajusterons son clip-path ou sa position avec JS */
}

.comparer-handle {
    position: absolute;
    left: 50%; /* Le curseur démarre au milieu */
    top: 0;
    bottom: 0;
    width: 4px; /* Épaisseur du trait */
    background-color: #fff; /* Couleur du trait */
    border-radius: 2px;
    cursor: ew-resize;
    z-index: 10; /* Au-dessus des images */
}

.comparer-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; /* Zone de clic plus large pour le curseur */
    height: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0d9 \f0da"; /* Icônes de flèches gauche/droite */
    color: #4CAF50;
    font-size: 0.8rem;
}


/* Responsivité */
@media (max-width: 991.98px) { /* Pour les tablettes et mobiles */
    .dynamic-card {
        flex-direction: column; /* Empile le texte et l'image */
        height: auto; /* Hauteur auto pour s'adapter */
    }
    .card-text-content {
        padding: 1.5rem;
    }
    .card-image-content {
        height: 250px; /* Hauteur fixe pour l'image sur mobile */
    }
}



/* --- SECTION APPEL À L'ACTION FINAL MODIFIÉE --- */

.agrobox-cta-final {
    /* 1. Surcouche sombre (Overlay) de 70% */
    /* 2. URL de votre image de fond (à remplacer) */
        background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/agrocarousel1.jpg) center center no-repeat;
    /* Paramètres pour que l'image couvre toute la section */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optionnel : pour un effet Parallax très dynamique */
}

/* Le reste du CSS des boutons reste le même pour maintenir la cohérence */
.btn-cta-principal {
    background-color: #4CAF50; 
    color: white;
    font-weight: bold;
    border: 2px solid #4CAF50;
    transition: all 0.3s ease;
}

.btn-cta-principal:hover {
    background-color: #388E3C; 
    border-color: #388E3C;
    transform: translateY(-1px);
    color: white;
}

.btn-cta-secondaire {
    background-color: transparent;
    color: white;
    font-weight: bold;
    border: 2px solid white; 
    transition: all 0.3s ease;
}

.btn-cta-secondaire:hover {
    background-color: white;
    color: #4CAF50; 
    border-color: white;
    transform: translateY(-1px);
}


/* ========================================================================= */
/* --- 1. SECTION HERO VIDÉO (Centrage Parfait SANS VAGUE) --- */
/* ========================================================================= */

.agrobox-hero-video-section-final {
    position: relative;
    height: auto; /* Hauteur de la section */
    min-height: 400px; 
    overflow: hidden;

    /* Le Padding est important si la hauteur min_height est dépassée par le contenu */
    padding-top: 3rem; 
    padding-bottom: 3rem;
}

/* Style de la vidéo en arrière-plan */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%); 
    object-fit: cover;
}

/* Overlay sombre pour lisibilité du texte */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2;
}

/* Conteneur du contenu (Texte) - CLÉ DU CENTRAGE */
.hero-content-container {
    position: relative; /* Doit être relative au lieu d'absolute pour contenir le texte */
    height: 100%; /* Important pour que Flexbox fonctionne sur toute la hauteur */
    z-index: 3;
    
    /* --- CENTRAGE PARFAIT --- */
    display: flex;
    align-items: center; /* Centrage Vertical */
    justify-content: center; /* Centrage Horizontal */
}

/* Le Tracé/Rectangle de Bordure Blanc */
.text-content-box {
    border: 2px solid white; 
    padding: 3rem 4rem; /* Padding interne pour donner de l'air */
    max-width: 750px; 
    width: 90%; 
    backdrop-filter: blur(2px); 
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* Style du bouton "Découvrir" */
.btn-agrobox-scroll {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-agrobox-scroll:hover {
    background-color: #388E3C;
    color: white;
}

/* --- RESPONSIVITÉ DU PADDING POUR MOBILE --- */
@media (max-width: 768px) {
    .text-content-box {
        padding: 2rem 1.5rem; /* Réduit le padding interne sur mobile */
    }

    .agrobox-hero-video-section-final p{
        font-size: 1rem; /* Texte un peu plus petit sur mobile */
    }
}


/* --- SECTION QUI SOMMES-NOUS (Page À Propos) --- */

.agrobox-mission-story-section {
    background-color: #ffffff; /* Fond blanc propre pour toute la section */
}

/* Titre principal de la section */
.text-agrobox-dark {
    color: #343a40; 
}

/* Couleur de votre charte pour les éléments clés */
.text-agrobox-green, .social-impact-box i {
    color: #4CAF50; 
}

/* Style de l'image */
.mission-img-shadow {
    /* Conserve l'ombre et l'arrondi pour la finesse */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    transition: transform 0.3s ease;
    /* Assurez-vous qu'il n'y ait pas de background ici */
    background: none; 
}

.mission-img-shadow:hover {
    transform: scale(1.01);
}

/* Mise en évidence de l'impact social (le bloc Banque) */
.social-impact-box {
    background-color: #E8F5E9; /* Vert très clair pour le contraste */
    border-left: 5px solid #4CAF50; /* Bordure verte marquante */
    border-radius: 5px;
}

/* Style de la phrase de mission finale */
.text-agrobox-mission-statement {
    font-size: 1.25rem;
    color: #1B5E20; /* Vert foncé pour l'impact */
}

/* Responsivité pour l'espacement sur mobile */
@media (max-width: 991.98px) {
    /* Sur mobile, l'image sera affichée en premier (order par défaut de Bootstrap) */
    .mission-text-content {
        padding-left: 15px;
        padding-right: 15px;
        /* Ajout de marge en haut pour séparer du bas de l'image sur mobile */
        margin-top: 2rem; 
    }
}


/*** mes styles ***/

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-header-production {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/productionbg.jpg) center center no-repeat;
    background-size: cover;
}

.bg-header-transformation {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/transformationbg.jpg) center center no-repeat;
    background-size: cover;
}


.bg-header-about {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/aboutbg.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}