<template>
  <footer ref="footerElement">
    <LayoutContainer>
      <div class="footer">
        <div class="content-footer">
          <v-row>
            <v-col
              :cols="smAndDown ? 12 : 4"
              :class="smAndDown ? 'logo-opentalent-sm' : 'flex-container'"
            >
              <v-img class="logo" src="/images/logo/footer-logo.png" />
              <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>
                <small class="small-link ml-12">Annuaire</small>
              </v-row>
              <v-row>
                <small class="small-link ml-12">Actualités</small>
              </v-row>
              <v-row>
                <small class="small-link ml-12">Annonces</small>
              </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>
                <small class="small-link ml-12">Opentalent Artist</small>
              </v-row>
              <v-row>
                <small class="small-link ml-12">Opentalent School</small>
              </v-row>
              <v-row>
                <small class="small-link ml-12">Opentalent Manager</small>
              </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>
                <small class="small-link ml-12">Foire Aux Questions</small>
              </v-row>
              <v-row>
                <small class="small-link ml-12">Support en ligne</small>
              </v-row>
              <v-row>
                <small class="small-link ml-12">Nous contacter</small>
              </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">Conditions & politiques</h5>
              </v-row>
              <v-row>
                <small class="small-link ml-12">Mentions légales</small>
              </v-row>
              <v-row>
                <small class="small-link ml-12"
                  >Conditions Générales d'Utilisation</small
                >
              </v-row>
              <v-row>
                <small class="small-link ml-12"
                  >Conditions Générales de Ventes</small
                >
              </v-row>
              <v-row>
                <small class="small-link ml-12"
                  >Politique de confidentialite & protection des données
                  personnelles</small
                >
              </v-row>
              <v-row>
                <small class="small-link ml-12"
                  >Politique d'utilisation des cookies</small
                >
              </v-row>
            </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">Suivez-nous</h5>
              </v-row>

              <v-row class="ml-5">
                <v-col :cols="smAndDown ? 4 : 2">
                  <v-icon class="fab fa-facebook" />
                </v-col>

                <v-col :cols="smAndDown ? 4 : 2">
                  <v-icon class="fab fa-linkedin" />
                </v-col>

                <v-col :cols="smAndDown ? 4 : 2">
                  <v-icon class="fab fa-youtube" />
                </v-col>

                <v-col :cols="smAndDown ? 4 : 2">
                  <v-icon class="fa-brands fa-square-twitter" />
                </v-col>
              </v-row>
            </v-col>
          </v-row>
          <hr class="mb-6 mt-4" />
          <v-row class="mt-2" justify="center">
            <p>
              Mentions légales - Politiques de cookies - Conditions Générales de
              Ventes
            </p>
          </v-row>
          <v-row class="mt-2" justify="center">
            <p>2024 &copy; Tous droits réservés par Opentalent</p>
          </v-row>
        </div>
      </div>
    </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>
.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;
}
.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;
  margin-bottom: 3rem;
}

.logo {
}

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