<template>
  <div id="formations">
    <LayoutContainer>
      <div class="container-green mt-12">
 
        <v-container>
          <v-row>
          <LayoutUISubTitle
            :iconSize="6"
            :iconClasses="iconClasses"
            :titleText="'Nos accompagnements sur-mesure'"
            title-color="#fff"
          />
        </v-row>
          <v-row class="mb-6">
          <v-col
            cols="12"
            md="6"
            v-for="(formation, index) in formations"
            :key="index"
          >
            <v-card class="mb-6">
              <div class="image-wrapper">
                <v-img :src="formation.image" class="reunion-img1" />
                <div :class="formation.overlayClass"></div>
              </div>
              <v-card-text>
                <div class="col-details">
                  <h4 class="session-title">
                    {{ formation.sessions }} sessions disponibles
                  </h4>
                  <h3 class="formation-title">{{ formation.title }}</h3>
                  <p class="formation-details">{{ formation.description }}</p>
                </div>
              </v-card-text>
              <v-card-actions>
                <v-btn class="formation-btn">{{ formation.buttonText }}</v-btn>
              </v-card-actions>
            </v-card>
          </v-col>
        </v-row>
        </v-container>
 
      </div>

      <v-row>
        <v-col cols="4">
          <v-row>
            <LayoutUISubTitle
              :iconSize="6"
              :iconClasses="iconClasses"
              :titleText="'QUELQUES CHIFFRES'"
            />
          </v-row>
        </v-col>
      </v-row>

      <v-row class="card-container mb-12">
        <v-col
          cols="3"
          class="d-flex justify-center align-center small-padding"
        >
          <LayoutCardStat
            :chiffre="301500"
            text="élèves"
            backgroundColor="#c3e5e7"
          />
        </v-col>
        <v-col cols="3" class="d-flex justify-center align-center">
          <LayoutCardStat
            :chiffre="234"
            text="Clients"
            backgroundColor="#c3e5e7"
          />
        </v-col>
        <v-col cols="3" class="d-flex justify-center align-center">
          <LayoutCardStat
            :chiffre="20304"
            text="Utilisateurs"
            backgroundColor="#c3e5e7"
          />
        </v-col>
        <v-col cols="3" class="d-flex justify-center align-center">
          <LayoutCardStat
            :chiffre="13"
            text="années d'expérience"
            backgroundColor="#c3e5e7"
          />
        </v-col>
      </v-row>

      <v-row>
        <LogicielsSchoolCaroussel />
      </v-row>

      <v-row />
    </LayoutContainer>
  </div>
</template>

<script setup>
const formations = ref([
  {
    id: 1,
    image: "/images/logiciels/school/reunion.jpg",
    overlayClass: "image-overlay1",
    sessions: "2",
    title: "Formation prise en main du logiciel - En ligne",
    description:
      "Parce qu’on sait qu’appréhender un nouvel outil peut-être fastidieux et que vous n’avez pas de temps à perdre,...",
    buttonText: "S’incrire à une formation",
  },
  {
    id: 2,
    image: "/images/logiciels/school/reunion.jpg",
    overlayClass: "image-overlay2",
    sessions: "10",
    title: "Webinaire - Apprendre à piloter son activité",
    description:
      "Des explications précises sur certains modules du logiciel Opentalent School, c'est possible pour aller encore plus loin...",
    buttonText: "S'inscrire au webinaire",
  },
]);
</script>

<style scoped>

:deep().subtitle {
  margin-left: 0rem;
}
.v-card {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}
.col-details {
  display: flex;
  justify-content: center;
  flex-direction: column;

}
.image-wrapper {
  position: relative;
}
.formation-btn {
  width: 30rem;
  height: 4rem;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 18px;
  background: transparent;
  color: #eff9fb;
  border: 1px solid #eff9fb;
  border-radius: 0.5rem;
  text-transform: none;
}
.formation-details {
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.5rem;
  color: #eff9fb;
}
.formation-title {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 26px;
  color: #ffffff;
  margin-bottom: 3rem;
}

.session-title {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 26px;
  color: #ffffff;
  margin-bottom: 3rem;
}
.reunion-img1 {
  width: 80%;
  height: 100%;
}
.container-green {
  background-color: #0e2d32;
  padding: 20px;
  margin-bottom: 20px;
  color: white;
}

.card-container {
  margin-bottom: 20px;
  margin-left: 10rem;
  margin-right: 0rem;
}
</style>
