<template>
  <footer ref="footerElement">
    <LayoutContainer>
      <div>
        <div class="content-footer">
          <v-row>
            <v-col
              :cols="smAndDown ? 12 : 3"
              :class="smAndDown ? 'logo-opentalent-sm' : 'flex-container'"
            >
              <nuxt-link to="/">
                <v-img class="logo" src="/images/logo/footer-logo.png" />
              </nuxt-link>
              <!-- <small class="ml-12 right-reserved"
                >© 2022 Opentalent, Tous droits réservés</small
              > -->
            </v-col>

            <v-col
              :cols="smAndDown ? 6 : 2"
              :class="smAndDown ? 'link-sm' : ''"
            >
              <v-row :class="smAndDown ? 'title-link-sm' : 'title-link'">
                <h5 class="ml-12 mt-10 h5-title">Agenda culturel</h5>
              </v-row>
              <v-row>
                <router-link to="/annuaire" class="small-link ml-12"
                  >Annuaire</router-link
                >
              </v-row>
              <v-row>
                <router-link to="/actualites" class="small-link ml-12"
                  >Actualités</router-link
                >
              </v-row>
              <v-row>
                <router-link to="/annonces" class="small-link ml-12"
                  >Annonces</router-link
                >
              </v-row>
            </v-col>

            <v-col
              :cols="smAndDown ? 6 : 2"
              :class="smAndDown ? 'link-sm' : 'details-footer'"
            >
              <v-row :class="smAndDown ? 'title-link-sm' : 'title-link'">
                <h5 class="ml-12 mt-10 h5-title">Logiciels culturels</h5>
              </v-row>
              <v-row>
                <router-link to="/opentalent_artist" class="small-link ml-12"
                  >Opentalent Artist</router-link
                >
              </v-row>
              <v-row>
                <router-link to="/opentalent_school" class="small-link ml-12"
                  >Opentalent School</router-link
                >
              </v-row>
              <v-row>
                <router-link to="/opentalent_manager" class="small-link ml-12"
                  >Opentalent Manager</router-link
                >
              </v-row>
            </v-col>

            <v-col
              :cols="smAndDown ? 6 : 2"
              :class="smAndDown ? 'link-sm' : 'details-footer'"
            >
              <v-row :class="smAndDown ? 'title-link-sm' : 'title-link'">
                <h5 class="ml-12 mt-8 h5-title">Espace client</h5>
              </v-row>
              <v-row>
                <NuxtLink
                  to="https://ressources.opentalent.fr/display/FAQ/Accueil"
                  class="small-link ml-12"
                  >Foire Aux Questions</NuxtLink
                >
              </v-row>
              <v-row>
                <NuxtLink
                  to="https://ressources.opentalent.fr/"
                  class="small-link ml-12"
                  target="_blank"
                  >Support en ligne</NuxtLink
                >
              </v-row>
              <v-row>
                <NuxtLink
                  to="/nous-contacter"
                  class="small-link ml-12"
                  target="_blank"
                  >Nous contacter</NuxtLink
                >
              </v-row>
            </v-col>

            <v-col
              :cols="smAndDown ? 6 : 3"
              :class="smAndDown ? 'link-sm' : ''"
            >
              <v-row :class="smAndDown ? 'title-link-sm' : 'title-link'">
                <h5 class="ml-12 mt-10 h5-title">Suivez-nous</h5>
              </v-row>

              <v-row class="ml-5" no-gutters>
                <v-col :cols="smAndDown ? 4 : 2">
                  <a
                    href="https://www.facebook.com/opentalent"
                    target="_blank"
                    class="fab fa-facebook brand"
                  />
                </v-col>
                <v-col :cols="smAndDown ? 4 : 2">
                  <a
                    href="https://twitter.com/Opentalent_FRA"
                    target="_blank"
                    class="fa-brands fa-square-twitter brand"
                  />
                </v-col>
                <v-col :cols="smAndDown ? 4 : 2">
                  <a
                    href="https://www.linkedin.com/company/2iopenservice"
                    target="_blank"
                    class="fab fa-linkedin brand"
                  />
                </v-col>

                <v-col :cols="smAndDown ? 4 : 2">
                  <a
                    href="https://www.youtube.com/@Opentalent74300"
                    target="_blank"
                    class="fab fa-youtube brand"
                  />
                </v-col>
              </v-row>
            </v-col>
          </v-row>
        </div>
      </div>
      <v-row class="footer" justify="center">
        <p class="mt-6">
          <a class="mention" href="/mentions-legales" target="_blank"
            >Mentions légales</a
          >
          -
          <a class="mention" href="/politiques-de-cookies" target="_blank"
            >Politiques de cookies</a
          >
          -
          <a class="mention" href="/CGV" target="_blank"
            >Conditions Générales de Ventes</a
          >
        </p>
      </v-row>

      <v-row justify="center" class="mb-6">
        <p class="mention">2024 &copy; Tous droits réservés par Opentalent</p>
      </v-row>
    </LayoutContainer>
  </footer>
</template>

<script setup>
import { useDisplay } from "vuetify";
import { ref, provide } from "vue";

const footerElement = ref(null);

provide("footerElement", footerElement);
const { smAndDown, lgAndUp } = useDisplay();
</script>

<style scoped>
.mention {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.8rem;
}

.brand {
  color: #ecfbfc;
  font-size: 1.9rem;
  text-decoration: none !important;
}
.flex-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vertical-bar {
  height: 4rem;
  border: 0.1rem solid #ecfbfc;
  margin-left: 10px;
  margin-top: 3rem;
}

.right-reserved {
  color: rgba(255, 255, 255, 0.6);
  font-family: Space Grotesk;
  font-size: 0.6rem;
  letter-spacing: 1px;
}
.h5-title {
  font-size: 1.1rem;
  font-style: normal;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.link-sm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-opentalent-sm {
  display: flex;
  justify-content: center;
  align-items: center;
}
.icon:nth-child(2) {
  margin-left: 10px;
}
.title-link,
.title-link-sm {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-size: 1rem;
  line-height: 20px;
  margin-bottom: 1rem;
}

.title-link-sm {
  margin-bottom: 0.1rem;
}

.small-link {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 20px;
  color: #ffffff;
  text-decoration: none !important;
  margin-bottom: 0.5rem;
}
.container {
  background: #091d20;
  color: aliceblue;
}

.activities {
  height: 12rem;
  background: #091d20;
  border-bottom: 0.4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0px 3px 24px rgba(0, 0, 0, 0.07);
}

.footer {
  margin-top: 2rem;
  border-top: 0.4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0px 3px 24px rgba(0, 0, 0, 0.07);
}

.logo {
  margin-bottom: 3rem;
  width: 25rem;
}

.logo-jaune {
  margin-left: 307.74px;
}

.logo-rouge {
  margin-left: 117px;
}

.logo-bleu {
  margin-left: 91.74px;
}

.text-logo-jaune {
  margin-left: 10rem;
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  display: flex;
  align-items: center;

  color: #ecfbfc;

  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 4px rgba(0, 0, 0, 0.25),
    0px 4px 4px rgba(0, 0, 0, 0.25);
}

.text-logo-rouge {
  margin-left: 37.74px;
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  display: flex;
  align-items: center;

  color: #ecfbfc;

  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 4px rgba(0, 0, 0, 0.25),
    0px 4px 4px rgba(0, 0, 0, 0.25);
}

.text-logo-bleu {
  height: 24px;
  left: 897px;
  top: 7858px;
  margin-left: 25.74px;
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  display: flex;
  align-items: center;
  color: #ecfbfc;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 4px rgba(0, 0, 0, 0.25),
    0px 4px 4px rgba(0, 0, 0, 0.25);
}
</style>
