<template>
  <LayoutContainer>
    <div class="container-title">
      <v-col cols="12">
        <h1 class="formation">Formation</h1>
        <h4 class="subtitle-formation">
          Prise en main ou piqûre de rappel, on est toujours à vos côtés.
        </h4>
      </v-col>
    </div>

    <v-row>
      <v-col cols="12">
        <img
          src="/images/formation/banner.jpg"
          alt="line"
          class="cover-image"
        />
      </v-col>
    </v-row>

    <v-row>
      <v-col cols="12" class="menu-container">
        <div v-for="menu in menus" :key="menu.label">
          <v-chip v-if="state.activeMenu === menu.label" class="active-menu">{{
            menu.label
          }}</v-chip>
          <span v-else>{{ menu.label }}</span>
        </div>
      </v-col>
    </v-row>
  </LayoutContainer>
</template>

<script setup>
const state = ref({
  activeMenu: "Présentation",
});

const menus = [
  { label: "Présentation" },
  { label: "catalogue" },
  { label: "FINANCEMENT" },
  { label: "CERTIFICATION" },
  { label: "INSCRIPTION" },
  { label: "ÉVALUATION" },
];
</script>

<style scoped>
.subtitle-formation {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  line-height: 35px;
  text-align: center;
  color: #000000;
  margin-left: 34rem;
  margin-right: 34rem;
}

.formation {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 90px;
  line-height: 85px;
  text-align: center;
  color: #000000;
  margin-bottom: 1rem;
}
.container-title {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  border-bottom: 0.1rem solid #eaeaea;
}

.menu-container {
  display: flex;
  justify-content: space-around;
  padding: 1rem 10rem;
  background: white;
  color: #bbb8b8;
  font-family: "Barlow";
  font-size: 12px;
  line-height: 16px;
  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 0.1rem solid #eaeaea;
}

.v-chip.active-menu {
  background: black;
  color: white;
}

.cover-image {
  width: 100%;
  height: 35rem;
  object-fit: cover;
  object-position: center 10%;
  margin: 0 auto;
  transform: scaleX(-1);
}
</style>
