/*
 Theme Name:   GCC
 Theme URI:    https://www.gcc-groupe.com
 Description:  GCC is the company theme
 Author:       Partikuls
 Author URI:   https://www.partikuls.com
 Template:     generatepress
 Version:      0.1
*/

/* GeneratePress Site CSS */ /* Box shadow */
* {
  box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 8rem;
}

.box-shadow {
  box-shadow: 0px 0px 35px -13px rgba(0, 36, 72, 0.4);
}

/* Sidebars*/
@media (max-width: 768px) {
  .widget-area.is-right-sidebar {
    margin-top: 80px;
  }
} /* End GeneratePress Site CSS */

.site-header {
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.header-wrap {
  position: fixed;
}

.submenu-megamenu {
  display: none;
  position: absolute;
  top: 163px;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff02 !important;
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  box-shadow: 0 10px 30px -15px var(--global-color-7);
  opacity: 0;
}

.submenu-megamenu .submenu-megamenu-inner {
  background-color: #eceeef70 !important;
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  box-shadow: 0 10px 30px -15px var(--global-color-7);
}

.active {
  display: block !important;
}

.close-submenu {
  cursor: pointer;
}

.wp-block-social-links
  .wp-block-social-link.wp-social-link
  .wp-block-social-link-anchor {
  font-size: 1.3rem;
}

.wp-block-social-links
  .wp-block-social-link.wp-social-link
  .wp-block-social-link-anchor:hover {
  color: var(--accent);
}

.submenu-job {
  display: none;
  position: absolute;
  top: -45px;
  right: 0;
  z-index: 2001;
  transition: all 0.5s ease;
}

.submenu-job a {
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
  position: relative;
}

.submenu-job a:hover {
  position: relative;
}

/* Élément pseudo qui n'affecte pas la mise en page quand non visible */
.submenu-job a::before {
  content: "";
  width: 0;
  height: 20px;
  margin-right: 0;
  opacity: 0;
  position: absolute;
  left: -20px;
  transition: opacity 0.15s ease-out, width 0.15s ease-out, left 0.15s ease-out;
}

.submenu-job a:hover::before {
  content: "";
  width: 15px;
  height: 15px;
  background-image: url("./assets/img/arrow-right-solid.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 10px;
  opacity: 1;
  position: relative;
  left: 0;
  display: inline-block;
  transition: opacity 0.15s ease-in, width 0.15s ease-in, left 0.15s ease-in;
  animation: arrowAppear 0.15s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes arrowAppear {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn-submenu-job:hover {
  background-color: var(--accent);
}

.btn-submenu-job:hover .gb-icon {
  color: var(--global-color-7) !important;
}

.btn-submenu-job:hover .gb-headline-text a {
  color: var(--global-color-7) !important;
}

.is-style-logos-only {
  margin: 0;
}
/* GeneratePress Site CSS */ /* Box shadow */
.box-shadow {
  box-shadow: 0px 0px 35px -13px rgba(0, 36, 72, 0.4);
}

/* Sidebars*/
@media (max-width: 768px) {
  .widget-area.is-right-sidebar {
    margin-top: 80px;
  }
} /* End GeneratePress Site CSS */

.site-header {
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  box-shadow: 0 10px 30px -15px var(--global-color-7);
}

.header-wrap .site-header {
  background-color: #eceeef60 !important;
}

/* 
.global-menu {
	position: fixed;
  width: 100%;
	z-index: 1000;
}
.inside-header {
	margin-top: 32px;
}
*/

.header-wrap {
  position: fixed;
  transition: transform 0.3s ease-in-out;
}

.global-menu {
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
}

.header-wrap.menu-hidden {
  transform: translateY(-45px);
}

.sub-mega-menu {
  display: none;
  position: fixed;
  top: 200px;
  width: 100%;
  z-index: 10;
}

.sidebar .widget {
  background-color: transparent;
}

.single-post .container {
  padding-top: 130px;
}

/* Pole Archive*/
.pole-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.pole-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.pole-card:hover {
  transform: translateY(-5px);
}

.pole-card .post-thumbnail {
  width: 100%;
}

.pole-card .post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.pole-card-content {
  padding: 1.5rem;
}

.pole-card .entry-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.pole-card .entry-title a {
  color: #333;
  text-decoration: none;
}

.pole-card .entry-summary {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 20px 0;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #555;
}

.back-button .arrow {
  font-size: 20px;
}

/* Realisations */
.realisation-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.realisation-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.realisation-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: background-color 0.5s ease;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 30%,
    var(--global-color-7) 100%
  );
}

.realisation-item:hover::before {
  background-color: rgba(0, 0, 0, 0.2);
}

.realisation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.realisation-item:hover .realisation-image {
  transform: scale(1.05);
}

.realisation-title {
  z-index: 1;
  position: relative;
  padding: 0 20px 20px;
  font-size: 24px;
  line-height: 1.6rem;
  margin-top: 0px;
  margin-bottom: 10px;
  color: #fffbfb;
}

@media (max-width: 992px) {
  .realisation-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .realisation-gallery {
    grid-template-columns: 1fr;
  }
}

/* Implantations */
.implantations-content {
  margin-top: 100px;
}

/* Realisations */
.realisations-filters-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

/* FX */
.drop-shadow {
  filter: drop-shadow(0px 0px 6px rgb(0 0 0 / 0.4));
}
