/* Styles généraux */
body {
  font-family: 'popin', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

.masy4_page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.masy4_section-container {
  padding: 20px;
  /* background-color: #e9f0ec; */
}

.masy4_section-title {
  font-size: 2em;
  color: #1a2a4b;
  margin-bottom: 20px;
}

/* Section 1 : En-tête de l'école */
.masy4_ecole-header {
  /* background-color: #e9f0ec; */
  padding-bottom: 30px;
  margin: 0;
}

.masy4_cover-image-container {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden; /* Pour que l'image ne dépasse pas */
}

.masy4_cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pour que l'image couvre bien le conteneur */
}

.masy4_logo-container {
  width: 150px;
  height: 150px;
  background-color: #fff;
  border-radius: 50%;
  border: 5px solid #e9f0ec;
  position: relative;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.masy4_logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.masy4_header-info-container {
  text-align: center;
  position: relative;
  top: -50px;
}

.masy4_school-name {
  font-size: 2em;
  color: #1a2a4b;
  margin-bottom: 10px;
}

.masy4_school-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #5a6987;
  margin-bottom: 20px;
}

.masy4_detail {
  display: flex;
  align-items: center;
  gap: 5px;
}

.masy4_detail i {
  color: #c1753d;
}

.masy4_cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.masy4_btn {
  padding: 12px 25px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.masy4_btn-contact,
.masy4_btn-offers,
.masy4_btn-submit {
  background-color: #c1753d;
  color: #fff;
}

.masy4_btn-contact:hover,
.masy4_btn-offers:hover,
.masy4_btn-submit:hover {
  background-color: #2c2646;
}

.masy4_btn-follow {
  background-color: #1a2a4b;
  color: #fff;
}

.masy4_btn-follow:hover {
  background-color: #121f37;
}

/* Section 2 : Présentation de l'école */
.masy4_presentation-section {
  /* background-color: #e9f0ec; */
  padding: 40px 20px;
  margin: 0;
}

.masy4_presentation-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.masy4_presentation-text {
  flex: 1;
}

.masy4_presentation-description {
  color: black;
  line-height: 1.6;
}

.masy4_video-placeholder {
  flex-shrink: 0;
  width: 300px;
  height: 180px;
  background-color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.5em;
  border-radius: 10px;
}

/* Section 3 : Témoignages */
.masy4_testimonials-section {
  /* background-color: #e9f0ec; */
  padding: 40px 20px;
  margin: 0;
}

.masy4_testimonials-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.masy4_testimonials-left {
  flex: 2;
}

.masy4_testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  /* Retiré 'position: relative' ici car ce n'est plus nécessaire */
}

/* Modifié : L'icône n'est plus en position absolue */
.masy4_quote-icon {
  font-size: 3em;
  color: #c1753d;
  opacity: 0.8; /* Augmente l'opacité pour qu'elle soit plus visible */
  margin-bottom: 10px; /* Ajoute un espace sous l'icône */
}

/* Modifié : Le texte du témoignage */
.masy4_testimonial-text {
  font-size: 1.1em;
  color: #5a6987;
  line-height: 1.6;
  margin-bottom: 20px;
  /* Retiré les propriétés de positionnement */
}

.masy4_testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.masy4_author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.masy4_author-info {
  display: flex;
  flex-direction: column;
}

.masy4_author-name {
  font-weight: bold;
  color: #c1753d;
}

.masy4_author-title {
  font-size: 0.9em;
  color: #5a6987;
}

.masy4_testimonials-right {
  flex: 1;
  text-align: center;
}

.masy4_rating-title {
  color: #1a2a4b;
  margin-bottom: 10px;
}

.masy4_stars {
  font-size: 2em;
  color: #c1753d;
}
/* Section 4 : Vie étudiante & Services */
.masy4_services-section {
  /* background-color: #e9f0ec; */
  padding: 40px 20px;
  text-align: center;
  margin: 0;
}

.masy4_services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Conteneur de chaque service (bouton + contenu) */
.masy4_service-item {
  display: flex;
  flex-direction: column;
}

/* Boutons de service */
.masy4_service-card {
  background-color: #c1753d;
  color: #fff;
  padding: 25px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.masy4_service-card:hover {
  background-color: #a06233;
}

/* Icône pour l'ouverture/fermeture */
.masy4_toggle-icon {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
}

/* Contenu du service (caché par défaut) */
.masy4_service-content {
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  padding: 0 25px;
  max-height: 0; /* Important pour cacher le contenu */
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  text-align: left;
}

.masy4_service-content p {
  margin: 0;
  padding: 20px 0;
  font-size: 0.9em;
  color: #555;
}

/* Styles pour l'état ouvert */
.masy4_service-card.is-open {
  border-radius: 10px 10px 0 0;
}

.masy4_service-card.is-open .masy4_toggle-icon {
  transform: rotate(45deg); /* Transforme le "+" en "x" */
}

.masy4_service-item.is-open .masy4_service-content {
  max-height: 300px; /* Taille suffisante pour afficher le texte */
  padding-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .masy4_services-grid {
    grid-template-columns: 1fr;
  }
}
/* Section 5 : Infos Pratiques & Contact */
.masy4_contact-section {
  /* background-color: #e9f0ec; */
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.masy4_practical-info,
.masy4_contact-form {
  padding: 20px;
}

.masy4_info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.masy4_info-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.masy4_info-label {
  font-weight: bold;
  color: #5a6987;
}

.masy4_info-value {
  color: #1a2a4b;
}

.masy4_info-primary {
  color: #6c46ae;
}

.masy4_info-secondary {
  color: #c1753d;
}

.masy4_info-link {
  color: #6c46ae;
  text-decoration: none !important;
}

.masy4_social-icons {
  display: flex;
  gap: 15px;
}

.masy4_social-icons a {
  color: #c1753d;
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.masy4_social-icons a:hover {
  color: #6c46ae;
}

.masy4_contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.masy4_form-group-flex {
  display: flex;
  gap: 15px;
}

.masy4_form-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.masy4_form-group label {
  font-weight: bold;
  color: #c1753d;
  margin-bottom: 5px;
}

.masy4_form-group input,
.masy4_form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  background-color: #fff;
}

.masy4_btn-submit {
  align-self: flex-start;
}
/* Section 6 : Formations proposées */
.masy4_formations-section {
  /* background-color: #e9f0ec; */
  padding: 40px 20px;
  /* text-align: center; */
  margin: 0;
}

.masy4_section-container {
  /* Augmente la largeur maximale du conteneur */
  max-width: 1400px;
  /* margin: 0 auto; */
}

.masy4_section-title {
  font-size: 2em;
  color: #1a2a4b;
  margin-bottom: 30px;
}

/* Grille des cartes (3 par ligne) */
.masy5_formations-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* Carte individuelle */
.masy5_formation-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
}

.masy5_card-image {
  width: 150px;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
}

/* Contenu de la carte */
.masy5_card-content {
  /* Augmente le padding pour aérer le design */
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.masy5_card-subtitle {
  font-size: 1.1em;
  font-weight: bold;
  color: #1a2a4b;
  margin: 0 0 5px 0;
}

.masy5_card-meta {
  font-size: 0.9em;
  color: #1a2a4b;
  margin-bottom: 10px;
}

/* Conteneur pour le niveau, le lieu et le bouton */
.masy5_card-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

/* Conteneur pour le lieu et le bouton (aligné à droite) */
.masy5_right-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.masy5_card-level {
  font-size: 0.9em;
  color: #6c46ae;
  font-weight: bold;
}

.masy5_card-location {
  font-size: 0.9em;
  color: #1a2a4b;
}

.masy5_btn-primary {
  background-color: #c1753d;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.masy5_btn-primary:hover {
  background-color: #9a5b2c;
}

.masy4_view-more-container {
  text-align: center;
}

.masy4_btn-view-all {
  background-color: #c1753d;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.masy4_btn-view-all:hover {
  background-color: #9a5b2c;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .masy5_formations-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .masy5_formations-grid-2 {
    grid-template-columns: 1fr;
  }

  .masy5_formation-card {
    flex-direction: column;
    width: 100%;
  }

  .masy5_card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 10px 10px 0 0;
  }

  .masy5_card-content {
    align-items: flex-start;
  }

  .masy5_card-details-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .masy5_right-details {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .masy5_btn-primary {
    align-self: stretch;
  }
}
/* Section Bourses & Emplois */
.masy4_bourse-section {
  background-color: #e9f0ec;
  padding: 40px 20px;
  text-align: center;
}

.masy4_bourse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.masy4_bourse-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.masy4_bourse-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.masy4_bourse-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.masy4_bourse-title {
  font-size: 1.2em;
  color: #1a2a4b;
  margin-bottom: 5px;
}

.masy4_bourse-school {
  font-size: 0.9em;
  color: #c1753d;
  margin-bottom: 15px;
}

.masy4_btn-postuler-dark {
  background-color: #1a2a4b;
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.masy4_btn-postuler-dark:hover {
  background-color: #0d1627;
}

.masy4_view-more-container {
  text-align: left;
  margin-top: 20px;
}

.masy4_btn-view-all {
  background-color: #c1753d;
  color: #fff;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.masy4_btn-view-all:hover {
  background-color: #2c2646;
}

/* Ajustement pour les boutons de postuler dans la section formations */
.masy4_btn-postuler {
  background-color: #c1753d;
  color: #fff;
  font-size: 0.9em;
  padding: 8px 15px;
  align-self: flex-end;
  margin-top: auto;
}

/* Media Queries pour le responsive */
@media (max-width: 576px) {
  .masy4_bourse-card {
    flex-direction: column;
    align-items: center;
  }

  .masy4_bourse-content {
    align-items: center;
  }
}

/* Section 7 : Les écoles */
.masy4_schools-section {
  background-color: #e9f0ec;
  padding: 40px 20px;
  text-align: center;
}

.masy4_section-title {
  font-size: 2em;
  color: #1a2a4b;
  margin-bottom: 30px;
}

.masy4_schools-grid {
  display: grid;
  /* Limite à 3 colonnes sur les grands écrans */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

.masy4_school-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Styles pour le logo de l'école */
.masy4_school-image-placeholder {
  background-color: #f0f0f0;
  text-align: center;
  padding: 20px; /* Diminue le padding */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.masy4_school-image-placeholder img {
  max-width: 100%;
  height: auto;
  display: block;
}

.masy4_school-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.masy4_school-logo-text {
  color: #c1753d;
  font-weight: bold;
  margin-bottom: 5px;
}

.masy4_school-name {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #1a2a4b;
}

.masy4_school-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #5a6987;
}

.masy4_detail {
  display: flex;
  align-items: center;
  gap: 5px;
}

.masy4_detail i {
  font-size: 0.8em;
}

.masy4_private {
  background-color: #e9f0ec;
  color: #6c46ae;
  padding: 5px 8px;
  border-radius: 5px;
}

.masy4_offers-count {
  font-size: 0.8em;
  color: #333;
  margin-top: auto;
}

/* Style du lien "Plus" en bouton */
.masy4_school-info a {
  background-color: #c1753d;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
  text-align: center;
}

.masy4_school-info a:hover {
  background-color: #9a5b2c;
}

/* Pagination */
.masy4_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
}

.masy4_pagination-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.masy4_pagination-item:hover {
  background-color: #f0f0f0;
}

.masy4_pagination-item.masy4_active {
  background-color: #c1753d;
  color: #fff;
  border-color: #c1753d;
}

.masy4_pagination-item.masy4_next {
  background-color: #6c46ae;
  color: #fff;
  border-color: #6c46ae;
}

.masy4_pagination-item.masy4_next:hover {
  background-color: #56378d;
}

/* Responsive design */
@media (max-width: 992px) {
  .masy4_schools-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* 2 cartes par ligne sur les tablettes */
  }
}

@media (max-width: 576px) {
  .masy4_schools-grid {
    grid-template-columns: 1fr; /* 1 carte par ligne sur les mobiles */
  }

  .masy4_school-card {
    flex-direction: column;
  }
}
/* Media Queries (Responsive) */
@media (max-width: 992px) {
  .masy4_info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .masy4_cta-buttons,
  .masy4_presentation-container,
  .masy4_testimonials-container,
  .masy4_contact-section,
  .masy4_info-grid {
    flex-direction: column;
  }

  .masy4_header-info-container {
    top: -20px;
  }

  .masy4_video-placeholder {
    width: 100%;
  }

  .masy4_testimonials-container {
    align-items: center;
  }

  .masy4_testimonials-right {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .masy4_form-group-flex {
    flex-direction: column;
  }

  .masy4_formation-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .masy4_formation-image {
    width: 100%;
    height: auto;
  }

  .masy4_formation-content {
    align-items: center;
  }

  .masy4_info-line {
    flex-direction: column;
    gap: 5px;
  }
}
