@keyframes animateLeftOpen {
  from {
    left: -450px;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}

/** Header **/
header .container {
  position: relative;
  z-index: 1;
}

.angled-banner {
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.ugp-header-logo {
  max-width: 150px;
}

.ugp-header-logo img {
  background-color: white;
}

@media (min-width: 1024px) {
  .upg-hover-item-menu {
    min-width:130px;
  }

  .ugp-header-logo {
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .ugp-header-phone span {
    display:none;
  }
}

@media (max-width: 1024px) {
  #main-menu-mobile.ugp-lateral {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    max-width: 400px;
    z-index:999;
    animation-name: animateLeftOpen;
    animation-duration: 0.4s;
  }
  #main-menu-mobile .ugp-fa-cross {
    font-size: 30px;
    margin: 10px 15px;
    display: block;
    text-align: right;
    cursor: pointer;
  }

  #ugp-global-layer {
    width: 100%;
    height: 100%;
    z-index:990;
  }
}

/** Contents **/
.layout-content {
  margin-top: 30px;
}

.gbl-container {
  max-width: 1440px;
  padding:0 24px;
  margin-left:auto;
  margin-right:auto;
}


/** Footer **/
.footer-clip {
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}


/** A voir => page.html.twig **/
.aspect-square {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
}
.aspect-square > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.05);
}

/* Tabs => a voir/ id #block-upg-local-tasks auto ? */
#block-upg-local-tasks li {
  display: inline-block;
}
#block-upg-local-tasks li a {
  display: block;
  padding: 0.4em 1em;
  text-decoration: none;
  background: #f3f4f6;
  color: #374151;
  font-weight: 500;
  transition: background 0.2s;

  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%
  );
}

#block-upg-local-tasks li a:hover {
  background: #e5e7eb;
}

#block-upg-local-tasks li a.is-active {
  background: #BCD047;
  color: #fff;
  font-weight: bold;
}


