<template>
  <LayoutContainer>
    <LayoutUITitlePage title="Formation" subtitle="Prise en main ou piqûre de rappel,on est toujours à vos côtés. " />
    
    <v-row>
      <v-col cols="12" style="position: relative">
        <img
          src="/images/formation/banner.jpg"
          alt="line"
          class="cover-image"
        />
        <div class="image-text mt-12">
          Et si vous passiez rapidement à la vitesse supérieure...
        </div>
      </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>

</script>

<style scoped>
.image-text {
  position: absolute;
  top: 40px;
  left: 20px;
  font-family: "Barlow";
  color: white;
  font-size: 3rem;
  width: 30rem;
  font-style: italic;
  font-weight: 300;
  line-height: 40px;
}

:deep().subtitle {
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: .1rem;
  margin-bottom: 1rem;
}

.formation {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 90px;
  line-height: 85px;
  text-align: center;
  color: #000000;
  margin-bottom: 1rem;
}

.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;
}

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

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