<template>
  <LayoutContainer>
    <v-col col="12" class="col-gestion">
      <div class="d-flex justify-center align-center flex-column">
        <v-icon size="8" class="fa-solid fa-circle icon-title"></v-icon>
        <h5 class="subtitle">GESTION ET PROMOTION</h5>
      </div>
      <v-row>
        <p :class="smAndDown ? 'text-gestion-sm' : 'text-gestion'">
          <span class="span-color">Simplifiez</span> vous la vie avec un outil
          <span class="d-inline-flex">
            <v-img
              src="/images/promotion/piano.jpg"
              :class="smAndDown ? 'rectangle-img-sm' : 'rectangle-img'"
            >
            </v-img>
          </span>
          tout en un pour la gestion et la promotion
          <span class="d-inline-flex">
            <v-img
              src="/images/promotion/danse.jpg"
              :class="smAndDown ? 'rectangle-img-sm' : 'rectangle-img'"
            >
            </v-img>
          </span>
          , de votre structure culturelle.
          <span class="d-inline-flex">
            <v-img
              src="/images/promotion/cirque.jpg"
              :class="smAndDown ? 'rectangle-img-sm' : 'rectangle-img'"
            >
            </v-img>
          </span>
        </p>
      </v-row>
    </v-col>
    <v-row>
      <v-col cols="12">
        <v-img
          src="/images/home/écran.JPG"
          :class="[
            smAndDown ? 'screen-sm' : 'screen',
            !smAndDown && isZoomed ? 'zoom' : '',
          ]"
          @mouseover="zoomIn"
          @mouseleave="zoomOut"
        ></v-img>
      </v-col>
    </v-row>

    <div class="outil">
      <h3 class="text-center text-outil">
        Un outil complet et intuitif <br />
        pour chaque structure
      </h3>

      <div v-if="smAndDown">
        <v-row>
          <div class="horizontal-line"></div>
          <div class="picto-group">
            
            <v-img src="/images/pictoHome/picto1.svg" class="picto-sm"></v-img>
            <p class="text-outil-sm"> Logiciel de Gestion et communication en ligne</p>
          </div>
        </v-row>
        <v-row>
          <div class="horizontal-line"></div>
          <div class="picto-group">
            <v-img src="/images/pictoHome/picto2.svg" class="picto-sm"></v-img>
            <p class="text-outil-sm"> Site Web intégré et simple d’usage</p>
          </div>
        </v-row>
        <v-row>
          <div class="horizontal-line"></div>
          <div class="picto-group">
            <v-img src="/images/pictoHome/picto3.svg" class="picto-sm"></v-img>
            <p class="text-outil-sm"> Boostez votre visibilité et votre communication avec l’agenda
              culturel</p>
          </div>
        </v-row>
        <v-row>
          <div class="horizontal-line"></div>
          <div class="picto-group mb-12">
            <v-img src="/images/pictoHome/picto4.svg" class="picto-sm"></v-img>
            <p class="text-outil-sm"> Communiquez en réseau</p>
          </div>
         
        </v-row>
      </div>

      <div v-if="!smAndDown">
        <v-row>
        <v-col cols="6">
          <v-row class="row-outil">
            <p class="text-outil-details with-border-top mt-3">
              Logiciel de Gestion et communication en ligne
            </p>
          </v-row>

          <v-row class="row-outil">
            <p class="text-outil-details with-border">
              Site Web intégré et simple d’usage
            </p>
          </v-row>
        </v-col>

        <v-col cols="6">
          <v-row class="row-outil">
            <p class="text-outil-details with-border-top">
              Boostez votre visibilité et votre communication avec l’agenda
              culturel
            </p>
          </v-row>

          <v-row class="row-outil">
            <p class="text-outil-details with-border">Communiquez en réseau</p>
          </v-row>
        </v-col>
      </v-row>
      </div>

    </div>
  </LayoutContainer>
</template>

<script setup>
import { useDisplay } from "vuetify";
const { mdAndDown, smAndDown } = useDisplay();
const isZoomed = ref(false);

const zoomIn = () => {
  isZoomed.value = true;
};

const zoomOut = () => {
  isZoomed.value = false;
};
</script>

<style scoped>
.horizontal-line {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  height: 1px;
  background-color: #d1cdc7;
  margin-bottom: 1rem;
}
.text-outil-sm{
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 26px;
  width: 19rem;
  color: #0e2d32;
}
.picto-group {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.picto-sm {
  margin-left: 4rem;
  width: 50px;
  height: 50px;
  margin-right: 2rem;
}
.screen-sm {
  width: 70%;
  object-fit: cover;
  margin: 2rem auto;
  border-radius: 20px;
  bottom: 15rem;
  margin-bottom: 8rem;
}
.screen {
  width: 900px;
  object-fit: cover;
  margin: 2rem auto;
  text-align: center;
  border-radius: 20px;
  transition: transform 0.2s;
  bottom: 25rem;
}

.screen:hover {
  transform: scale(1.1);
}

.subtitle {
  font-size: 1.5rem;
  line-height: 1rem;
  margin-top: 1rem;
  color: #c1eff0;
  text-align: center;
  font-family: "Barlow";
  letter-spacing: 2.16px;
  text-transform: uppercase;
}

.icon-title {
  margin-top: 1rem;
  color: #ffffff;
  margin-right: 1rem;
}

.with-border,
.with-border-top {
  border-bottom: 1px solid #d1cdc7;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.with-border-top {
  border-top: 1px solid #d1cdc7;
}

.row-outil {
  margin-left: 4rem;
}

.text-outil-details {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 26px;
  width: 19rem;
  color: #0e2d32;
  margin-left: 10rem;
  margin-bottom: 1rem;
}

.text-outil {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-size: 2rem;
  color: #0e2d32;
  margin-top: -20rem;
  margin-bottom: 3rem;
}

.col-gestion {
  margin-bottom: 4rem;
  background: #0e2d32;
}

.text-gestion-sm {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 3.5rem;
  text-align: center;
  color: white;
  height: 20rem;
  margin-top: 3rem;
  width: 40rem;
  margin: 3rem 2rem 10rem;
}

.text-gestion {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 4rem;
  line-height: 5.5rem;
  text-align: center;
  color: white;
  height: 20rem;
  margin-top: 3rem;
  width: 55rem;
  margin: 3rem auto 30rem;
}

.span-color {
  color: #caf5f4;
}

.rectangle-img-sm {
  margin-top: -3rem;
  top: 2rem;
  width: 6rem;
  height: 5rem;
  border-radius: 5rem;
}
.rectangle-img {
  margin-top: -2rem;
  top: 2rem;
  width: 8rem;
  height: 5rem;
  border-radius: 5rem;
}
</style>
