.search-container {
  position: relative;
  width: 90%;
  display: inline-block;
}

.search-input {
  width: calc(100% - 40px);
  /* Soustraire la largeur du bouton */
  padding: 8px 15px;
  border-radius: 20px 0 0 20px;
  /* Arrondi seulement à gauche */
  border: 1px solid #e6e6e6;
  border-right: none;
  /* Supprimer la bordure droite */
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
}
.text-container {
  position: relative;
  max-width: 800px;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
  user-select: none;
}
.scatter-text {
  display: inline-block;
  position: relative;
  transition: transform 0.2s ease;
}

.search-input:focus {
  border-color: #F7A21A;
  box-shadow: 0 0 5px rgba(247, 162, 26, 0.4);
}

.search-input::placeholder {
  color: #888;
  font-family: Arial, sans-serif;
}

.search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  background-color: #F7A21A;
  border: none;
  border-radius: 0 20px 20px 0;
  /* Arrondi seulement à droite */
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.search-btn i {
  color: #fff;
  font-size: 16px;
}

.search-btn:hover {
  background-color: #E5910B;
}

/* Pour l'intégration dans la navigation existante */
@media (max-width: 992px) {
  .search-container {
    max-width: 220px;
    margin-left: 10px;
  }
}

/* Pour les appareils mobiles */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin: 10px 0;
    display: block;
  }
}


.card-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  position: relative;
}

.card {
  flex: 0 0 32%;
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
}

.card:hover {
  transform: scale(1.02);
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.5);
}

.card-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.card-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.1;
}

.card-black {
  background-image: url('../images/card1.jpg');
  color: #fff;
}

.card-green {
  background-image: url('../images/card2t.jpg');
  color: #fff;
}

.card-blue {
  background-image: url('../images/card5.jpg');
  color: #fff;
}

@media (max-width: 768px) {
  .card-slider {
    display: block;
    /* Permet aux cartes de s'afficher en colonne */
    overflow-x: visible;
    /* Empêche le défilement horizontal */
    text-align: center;
    /* Centre les cartes */
  }

  .card {
    display: block;
    /* Permet d'afficher chaque carte en bloc */
    width: 90%;
    /* Réduit la largeur pour laisser de l'espace */
    max-width: 400px;
    /* Évite que ça devienne trop grand sur les tablettes */
    margin: 0 auto 20px;
    /* Centre et ajoute un espace en bas */
  }
}




.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup {
  background-color: white;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-content {
  padding: 40px;
}

.popup-header {
  margin-bottom: 30px;
}

.popup-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #515154;
}

.popup-title {
  font-size: 30px;
  font-weight: bold;
}

.popup-description {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.popup-text {
  text-align: justify;
  font-size: 17px;
  color: #515154;
  font-weight: 400;
  line-height: 1.5;
}

.popup-text strong {
  font-weight: 600;
  color: #1d1d1f;
  width: 100%;
}

.popup-images {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.popup-image {
  width: 48%;
  border-radius: 12px;
  overflow: hidden;
}

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

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: #e5e5e5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.close-button:hover {
  background-color: #d5d5d5;
}

.close-button:before,
.close-button:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: #1d1d1f;
}

.close-button:before {
  transform: rotate(45deg);
}

.close-button:after {
  transform: rotate(-45deg);
}

.app-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.app-icon {
  width: 60px;
  height: 60px;
  background-color: #f0f0f0;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 60%;
  object-fit: cover;
  z-index: 0;
}

.security-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
}

.security-icon img {
  max-height: 100px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d1d6;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #1d1d1f;
}

.card-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.card-button:after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: #fff;
}