* {
  box-sizing: border-box;
}

/* Enlève les marges par défaut */
body {
  margin: 0;
  background-color: #D9D9D9;
  font-family: "Lato", sans-serif;
}

/* === Section hero === */
.hero {
  position: relative;
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: auto;

  /*  HERO + GRAND */
  height: 92vh;          
  min-height: 720px;     
  max-height: 920px;     
}

/* === Image de fond === */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Filtre sombre sur l'image */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* === Logo === */
.logo {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 220px;
  height: auto;
  z-index: 2;
}

/* === Contenu texte === */
.hero-content {
  position: absolute;
  top: 240px; 
  left: 80px;
  z-index: 2;
  max-width: 900px;
}

.hero-content h1 {
  font-family: "Fredoka One", cursive;
  font-size: 65px;
  line-height: 1.1;
  color: white;
  margin: 0 0 20px 0;
}

.hero-content p {
  font-family: "Lato", sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: white;
  line-height: 1.4;
  margin: 0;
}

/* Boutons */
.hero-buttons {
  display: flex;
  gap: 130px;
}

/* S'inscrire (bordeaux -> jaune) */
.btn-inscrire {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 298px;
  height: 76px;
  background-color: #8C144E;
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #FFFFFF;
  text-decoration: none;
  transition: 0.3s ease;
  margin-top: 35px; 
}
.btn-inscrire:hover {
  background-color: #FBBD40;
  color: #8C144E;
}

/* Se connecter (jaune -> bordeaux) */
.btn-connecter {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 298px;
  height: 76px;
  background-color: #FBBD40;
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #8C144E;
  text-decoration: none;
  transition: 0.3s ease;
  margin-top: 35px; 
}
.btn-connecter:hover {
  background-color: #8C144E;
  color: #FFFFFF;
}

/* ====== Steps ====== */
.steps-wrapper {
  margin-top: 130px;  
  margin-bottom: 80px;
}

.steps-card {
  width: 100%;
  max-width: 1231px;
  height: 579px;
  border-radius: 79px;
  background-color: #FFFFFF;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0);
  background-size: 4px 4px;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.35),
    inset 0 15px 30px rgba(0, 0, 0, 0.25),
    inset 0 0px 10px rgba(0,  0, 0, 0.25);
  position: relative;
  margin: 0 auto;
}

.steps-grid {
  display: flex;
  gap: 24px;
  padding: 40px 50px;
  align-items: center;
}

.step {
  position: relative;
  border-radius: 40px;
  background: linear-gradient(180deg, #E75CB4 0%, #FBBD40 100%);
  box-shadow:
    inset 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 15px 50px rgba(0, 0, 0, 0.25),
    inset 0 0px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.35s ease, height 0.35s ease;
  width: 168px;
  height: 384px;
}

/* Bloc 1 GRAND par défaut */
.step-1 {
  width: 552px;
  height: 384px;
}

.step-circle {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 93px;
  height: 93px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Fredoka One", sans-serif;
  font-size: 60px;
  color: #000000;
}

/* Titres */
.step-title,
.step-title-2,
.step-title-3,
.step-title-4 {
  position: absolute;
  top: 135px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Fredoka One", sans-serif;
  font-weight: 400;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
}

.step-title { font-size: 25px; }
.step-title-2, .step-title-3, .step-title-4 {
  font-size: 25px;
  width: 140px;
}

/* Description */
.step-description {
  position: absolute;
  top: 265px;
  left: 50%;
  transform: translate(-50%, 10px);
  width: 80%;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
  line-height: 1.6;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.steps-grid .step:hover .step-description {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Description visible par défaut sur step 1 */
.step-1 .step-description {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Quand on survole la zone : step-1 rétrécit */
.steps-grid:hover .step-1 {
  width: 168px;
  height: 384px;
}

.steps-grid:hover .step-1:not(:hover) .step-description {
  opacity: 0;
}

/* Le bloc survolé devient GRAND */
.steps-grid .step:hover {
  width: 552px;
  height: 384px;
}

/* Dots */
.steps-dots {
  position: absolute;
  left: 80px;
  bottom: 90px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background-color: #E6519D;
  opacity: 0.55;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.25);
}
.dot.active {
  width: 50px;
  height: 20px;
  opacity: 1;
}

/* ====== Profils ====== */
.new-profiles-section {
  text-align: center;
  margin-top: 50px;
}

.section-title {
  font-family: "Fredoka One", sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
  text-align: left;
  width: 100%;
  max-width: 1231px;
  margin: 0 auto 40px auto;
  padding-left: 20px;
}

.profiles-wrapper {
  position: relative;
  width: 100%;
  max-width: 1231px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 70px;
  border: 12px solid #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
  background-size: cover;
  background-position: center;
  padding-left: 70px;
}

.profile-card {
  width: 328px;
  height: 593px;
  background: #FFFFFF;
  border-radius: 100px;
  padding: 22px 26px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.profile-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.22);
}
.profile-card:hover .profile-img{
  transform: scale(1.03);
}

.profile-img {
  width: 100%;
  height: 450px;
  border-radius: 100px;
  object-fit: cover;
  margin-bottom: 3px;
  transition: transform .25s ease;
}

.profile-name {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 25px;
  color: #000000;
  margin: 15px 0 14px 0;
  text-align: left;
  width: 100%;
  padding-left: 10px;
}

.profile-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: -10px;
  justify-content: flex-start;
  width: 100%;
  padding-left: 10px;
}

.badge {
  width: 90px;
  height: 36px;
  background: #F7F7F7;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.20),
    0 6px 10px rgba(0, 0, 0, 0.14),
    0 1px 18px rgba(0, 0, 0, 0.12);
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #000;
  padding: 0 10px;
}

@media (max-width: 768px) {
  /* --- Ajustements Hero --- */
  .hero { min-height: 560px; }
  .logo { width: 160px; top: 20px; left: 20px; }
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    padding: 140px 20px 40px 20px;
    max-width: 100%;
  }
  .hero-content h1 { font-size: 34px; }
  .hero-content p { font-size: 18px; }
  .hero-buttons { flex-direction: column; gap: 16px; margin-top: 40px; align-items: center; }
  .btn-inscrire, .btn-connecter { width: 100%; max-width: 260px; font-size: 20px; height: 60px; margin-top: 0; }

  /* --- Système de Scroll Horizontal (Carrousel) --- */
  .steps-wrapper { margin-top: 60px; }
  
  .steps-card { 
    height: auto; 
    border-radius: 40px; 
    padding-bottom: 30px;
  }

  .steps-grid {
    display: flex;
    flex-direction: row; 
    overflow-x: auto;   
    scroll-snap-type: x mandatory; 
    gap: 20px;
    padding: 30px 20px;
    -webkit-overflow-scrolling: touch;
  }

  /* Cache la barre de scroll */
  .steps-grid::-webkit-scrollbar {
    display: none;
  }

  .step, .step-1 {
    min-width: 280px;  
    width: 280px;
    height: 400px;     
    flex-shrink: 0;    
    scroll-snap-align: center; 
  }

  /* Sur mobile, on affiche la description partout car le hover n'existe pas */
  .step-description {
    opacity: 1;
    transform: translate(-50%, 0);
    font-size: 16px;
  }

  .steps-grid:hover .step-1,
  .steps-grid .step:hover {
    width: 280px;
  }

  .steps-dots { 
    position: static; 
    margin-top: 10px; 
    justify-content: center; 
  }
}
new-profiles-section {
  overflow: hidden; 
}

.profiles-wrapper {
  display: flex;             
  flex-direction: row;      
  overflow-x: auto;          
  scroll-snap-type: x mandatory;
  gap: 20px;            
  padding: 20px 30px;        
  border: none;              
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.profiles-wrapper::-webkit-scrollbar { 
  display: none; 
}

.profile-card {
  min-width: 280px;          
  flex-shrink: 0;           
  scroll-snap-align: center;  
}

/* Éléments tampons pour débloquer le scroll dès le premier et dernier élément */
.profiles-wrapper::before {
  content: '';
  flex: 0 0 1px;
}

.profiles-wrapper::after {
  content: '';
  flex: 0 0 30px;
}

/* Désactive les effets de survol (hover) pour éviter les bugs visuels sur écran tactile */
.profile-card:hover { 
  transform: none; 
}
@media (max-width: 768px) {

  .new-profiles-section {
    overflow: hidden;
  }

  .profiles-wrapper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 30px;
    border: none;
    background: transparent;
    -webkit-overflow-scrolling: touch;
  }
  
  
}
