/* Règles globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fafafa;
  color: #2f2f2f;
  padding: 3rem 1.5rem;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* SECTION SUPÉRIEURE (Top) */
.top-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1em;
  margin: 1rem;
}

/* Bloc gauche (left) */
.left {
  max-width: 35%;
}

.left h1 {
  color: #3d0a4e;
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.left p {
  color: #6f6f6f;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 35ch;
}

/* Bloc droit */
.right {
  flex: 0 0 65%;
  max-width: 65%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem;
}

/* Éléments étoiles */
.stars {
  background-color: #f5f1f7;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  transition: background-color 0.3s;
}

/* Effet escalier inversé (dégressif) */
.stars:nth-child(1) {
  margin-left: 4rem;
}
.stars:nth-child(2) {
  margin-left: 2rem;
}

.stars:hover {
  background-color: #ece6ef;
}

.stars i {
  color: orange;
}

.stars p {
  font-weight: bold;
  color: #3d0a4e;
  font-size: 0.95rem;
}

/* SECTION BASSE (Témoignages) */
.bottom-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bottom_1,
.bottom_2 {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bottom_2 {
  justify-content: center;
}

.card {
  background-color: #4b0a63;
  color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1;
  min-width: 300px;
  transition:0.3s;
}

.card:hover {
  background-color: #8f33ad;
}

/* Profil utilisateur */
.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.person img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8b8f0;
}

/* Nom et statut */
.name h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
}

.name p {
  font-size: 0.95rem;
  color: #d8b8f0;
}

/* Texte témoignage */
.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* RESPONSIVITE */

/* La responsivité Tablettes et petits écrans (≤768px) */
@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Bloc gauche */
  .left {
    max-width: 100%;
  }

  .left h1 {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .left p {
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: 1.5;
    margin: 0 auto 1.5rem auto;
  }

  /* Bloc droit */
  .right {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .stars {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 98vw; 
    border-radius: 0;
    margin-left: 0 !important;
    padding: 1rem;
    gap: 0;
    border-radius: 10px;
  }

  .stars div {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .stars p {
    text-align: center;
  }

  /* Cartes du bas */
  .bottom_1,
  .bottom_2 {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 400px;
  }
}

/* Pour les très petits écrans (≤375px)  */
@media (max-width: 375px) {
  body {
    padding: 1.5rem 1rem;
  }

  .left h1 {
    font-size: 1.5rem;
  }

  .left p {
    font-size: 0.8rem;
  }
  .stars {
    padding: 0.8rem;
    gap: 0;
    border-radius: 10px;
  }

  .card {
    width: 100%;
    padding: 1.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}
