.bg-black {
    background-color: #151515;
}

.titre {
    /* font-family: 'Courgette', cursive; */
    font-family: 'Belanosima', sans-serif;
}

.text_strategy {
    margin-left: 25%;
    margin-right: 25%;
}

.capishop {
    background-color: white;
    background-image: url('images/outils.jpg');
    background-size: cover; /* Ajuste l'image pour couvrir tout l'écran */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    background-position: center center; /* Centre l'image */
}

.capishop-2 {
    background-color: rgba(0, 0, 0, 0.5);
}


.category {
    height: 300px;
}

.category .div1 {
    padding-top: 20px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    font-size: x-large;
    transition-property: font-size, background-color;
    transition-duration: 1s;
}

.category .div1:hover {
    font-size: xx-large;
    background-color: #151515b2;
}

.category-industry {
    background-image: url('images/category_01.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.category-automotive {
    background-image: url('images/formations.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.category-in-construction {
    background-image: url('images/category-03.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

hr.separateur {
    border-top: 5px solid white;
    width: 50%;
    border-radius: 50%;
}

.category a:hover {
    text-decoration: none;
}

/* @media only screen and (min-width: 480px) { */
.market-strategy {
    height: 600px;
    /* background-image: url('./images/market_startegy3.png'); */
    background-image: url('./images/market-01.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.market-strategy p {
    background-color: rgba(240, 248, 255, 0.75);
    color: #151515;
    font-size: medium;
}

/* } */

#html-send,
#body-send {
    margin: 0;
    padding: 0;
    height: 100%;
}

#main-send {
    height: 100%;
    position: relative;
    padding-bottom: 40px;
    /* Hauteur du pied de page */
}

#footer-send {
    position: absolute;
    bottom: 0;
    /* on le colle en bas */
    width: 100%;
    height: 40px;
    /* Hauteur du pied de page */
}

/* Conserver ton bloc comme cube */
.category a {
  display: block; 
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.div1 {
  width: 100%;
  height: 200px; /* ajuste la taille pour garder ton cube */
  background: #333; /* exemple de fond */
  /* border-radius: 12px; */
  color: #fff;
  text-align: center;
}

/* Popup */
.popup {
  display: none; 
  position: fixed; 
  z-index: 999; 
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.6);
}
.popup-content {
  background: #fff;
  color: #151515;
  margin: 10% auto;
  padding: 20px;
  /* border-radius: 12px; */
  width: 60%;
  text-align: center;
  position: relative;
}
.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}
.popup .btns {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.popup .btn {
  padding: 10px 15px;
  border-radius: 8px;
  background: #007BFF;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.popup .btn:hover {
  background: #0056b3;
}

.category-usinage {
    background-image: url('images/usinage.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.category-remateck {
    background-image: url('images/remateck.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.overlay-container {
  position: relative;
  display: block;
  overflow: hidden;
  height: 300px; /* 🔹 Hauteur fixe pour toutes les images */
}

.overlay-container img {
  display: block;
  width: 100%;
  height: 100%;       /* L’image occupe toute la hauteur */
  object-fit: cover;  /* Recadrage pour garder de belles proportions */
  transition: transform 0.4s ease;
}

.overlay-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease;
  pointer-events: none;
}

.overlay-container:hover::after {
  background: rgba(0, 0, 0, 0.5);
}

.overlay-container:hover img {
  transform: scale(1.05);
}
