/* General styles */

html {
    scroll-behavior: smooth;
    height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  height: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Transition pour le header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ff3366;
  color: white;
  padding: 1.5rem 0; /* Hauteur initiale plus réduite */
  text-align: center;
  transition: all 0.3s ease-in-out; /* Ajoute une transition fluide */
}

.header.scrolled {
  padding: 0.3rem 0; /* Hauteur très réduite lors du scroll */
  font-size: 0.9rem; /* Réduit la taille de la police pour le header */
}

/* Titre IntimApp transition */
.header h1 {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Ajoute une animation fluide */
}

.header.scrolled h1 {
  opacity: 0; /* Cache le titre lors du scroll */
  visibility: hidden; /* Supprime l'espace occupé par le titre */

}

/* Language selector transition */
.language-selector {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Ajoute une animation fluide */
}

.header.scrolled .language-selector {
  opacity: 0; /* Cache les options de langue */
  visibility: hidden; /* Supprime l'espace occupé par les options */

}

/* Les liens de navigation restent visibles */
.nav-links {
  list-style: none;
  margin: 0; /* Réduit les marges */
  display: flex;
  justify-content: center;
  gap: 2rem;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
  text-decoration: underline;
}



/* Language Selector */
.language-selector {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.language-selector button {
  background: white;
  color: #ff3366;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.language-selector button:hover {
  background: #ffe6eb;
}

/* Hero section */
/* Hero section avec overlay */
.hero {
  position: relative;
  background: url('../images/Banner3-IntimApp.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Superposition semi-transparente noire */
  z-index: 1; /* Place l'overlay en dessous du texte */
}

.hero h2,
.hero p {
  position: relative;
  z-index: 2; /* Place le texte au-dessus de l'overlay */
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Ajout d'une ombre pour une meilleure visibilité */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* Ajout d'une ombre légère */
}


.hero .btn {
  position: relative;
  z-index: 2; /* Place le bouton au-dessus de l'overlay */
  margin-top: 1rem; /* Espacement par rapport au texte */
  display: inline-block;
  background: #ff3366;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hero .btn:hover {
  background: #cc2852;
  transform: translateY(-3px);
}


/* Sections */
section {
  padding: 2rem 0;
  text-align: center;
}

.about, .policy {
  background: #f9f9f9;
}

.features .feature-cards {
  display: flex;
  justify-content: space-between; /* Espacement égal entre les cartes */
  flex-wrap: nowrap; /* Empêche les cartes de se déplacer sur une autre ligne */
  gap: 1rem; /* Espacement entre les cartes */
  margin-top: 1.5rem;
}

.feature-cards {
  margin-top: 2rem;
}

.features .card {
  flex: 1 1 22%; /* Permet aux cartes d'avoir une largeur égale sur une seule ligne */
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.features .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.features .card h3 {
  color: #ff3366;
  margin-bottom: 1rem;
}

.features .card p {
  color: #666;
  line-height: 1.5;
}

/* Policy */
#policy-link{
  list-style: none;
}

/* Carousel Section */
.carousel-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-container {
  position: relative;
  max-width: 80%; /* Réduit la largeur totale à 80% de la page */
  margin: 0 auto; /* Centrer le carrousel */
  overflow: hidden;
  border-radius: 10px; /* Ajoute des coins arrondis pour un effet plus esthétique */
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  flex: 0 0 100%;
  text-align: center;
  background: #ffe6eb;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Ajoute un effet d'ombre */
}

.carousel-item h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.carousel-item h3 {
  font-size: 1.5rem;
  color: #ff3366;
  margin-bottom: 1rem;
}

.carousel-item p {
  font-size: 1rem;
  color: #666;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff3366;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-button:hover {
  background: #cc2852;
}

.about-features {
  background: #f9f9f9;
  padding: 2rem 0;
  text-align: center;
}

.about-features .feature-title {
  margin-top: 2rem;
  font-size: 2rem;
  color: #333;
}

.about-features .feature-cards {
  display: flex;
  flex-wrap: wrap; /* Permet une disposition responsive */
  gap: 2rem; /* Espacement uniforme entre les cartes */
  justify-content: space-evenly; /* Distribue les cartes uniformément sur une ligne */
}

.about-features .card {
  flex: 1 1 calc(25% - 2rem); /* Chaque carte occupe environ 25% de la largeur avec une marge */
  max-width: 280px; /* Largeur maximale pour garder une taille homogène */
  text-align: center;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-features .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.about-features .card h3 {
  color: #ff3366;
  margin-bottom: 1rem;
}

.about-features .card p {
  color: #666;
  line-height: 1.5;
}

#about-features{
  margin-top: 5vh;
  margin-bottom: 5vh;
}

#contact{
  margin-top: 3vh;
  margin-bottom: 3vh;
}


/* Footer */
.footer {
  color: #ffe6eb;
  background-color: #ff3366;
  text-align: center;
  padding: 1rem 0;
}

.footer p {
  margin: 0;
}


.languageLink{
  text-decoration: none;
  color: #ff3366;
}

.link-intimApp{
  color: #ff3366;
  text-decoration: none;
}

.link-intimApp:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .about-features .card {
    flex: 1 1 calc(33.33% - 2rem); /* Passe à 3 cartes par ligne sur les écrans moyens */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-features .card {
    flex: 1 1 calc(50% - 2rem); /* Passe à 2 cartes par ligne sur tablettes */
  }

  .language-selector {
    flex-direction: column;
    gap: 0.5rem;
  }
}


@media (max-width: 480px) {
  .about-features .card {
    flex: 1 1 100%; /* Les cartes occupent toute la largeur sur les petits écrans */
  }
}