/* Base styles */
body {
  font-family: "Varela Round", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
  background: #000;
  margin: 0;
  padding: 0;
}

/* Layout */
#fh5co-page {
  position: relative;
  overflow-x: hidden;
}

#fh5co-main {
  width: 100%;
  padding: 10px;
  padding-bottom: 0;
  box-sizing: border-box;
  background: #000;
}

.fh5co-gallery {
  width: 100%;
  float: left;
  margin-bottom: 7em;
}

.grid {
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in;
  visibility: hidden;
}

.grid.images-loaded {
  opacity: 1;
  visibility: visible;
}

.grid-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  background: #000;
  transform: translateZ(0);
  will-change: transform;
}

.grid-item .img-wrap {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-out;
  transform: translateZ(0);
  will-change: transform;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.text-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

.grid-item:hover .text-wrap {
  opacity: 1;
}

.text-wrap h2 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 1.2em;
}

.text-wrap p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.8);
}

.text-wrap a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  pointer-events: auto;
}

.text-wrap a:hover {
  text-decoration: underline;
}

/* Logo */
.site-logo {
  font-size: 48px;
  color: #fff;
  margin: 30px 0;
  padding: 0 30px;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 2px;
}

/* Aside */
#fh5co-aside {
  width: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1001;
  background: #f8f8f8;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Menu */
#fh5co-main-menu {
  padding: 0 30px;
  margin: 0 0 30px 0;
}

#fh5co-main-menu ul {
  padding: 0;
  margin: 0;
}

#fh5co-main-menu ul li {
  list-style: none;
  margin-bottom: 15px;
}

#fh5co-main-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  display: block;
  transition: color 0.3s ease;
}

#fh5co-main-menu ul li a:hover,
#fh5co-main-menu ul li.active a {
  color: rgba(255, 255, 255, 0.7);
}

/* About Section */
.about-section {
  padding: 0 30px;
  margin-top: 10px;
  color: #fff;
}

.about-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.about-section p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-info {
  margin-top: 20px;
}

.contact-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

.contact-info p {
  margin-bottom: 5px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.fh5co-footer {
  position: absolute;
  bottom: 40px;
  width: 100%;
  padding: 0 30px;
}

.footer-icons {
  display: flex;
  gap: 15px;
}

.footer-icons a {
  color: #fff;
  font-size: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-icons a:hover {
  opacity: 1;
}

/* Magnific Popup */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
  opacity: 0;
  -webkit-backface-visibility: hidden;
  transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
  opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
  opacity: 0;
}

.mfp-helper {
  display: none;
}

/* Sidebar */
#fh5co-logo img {
  max-width: 100px;
  height: auto;
}

.fh5co-nav-toggle {
  display: none;
}

.fh5co-social a {
  font-size: 26px;
  margin-right: 20px;
  margin-bottom: 10px;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  position: relative;
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
}

.fh5co-social a:hover {
  text-decoration: none;
  color: #fff;
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
}

.js .animate-box {
  opacity: 0;
}

/* ICI CONTACT */
.aside-toggle, .back-to-home {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.aside-toggle a, .back-to-home a {
  background: #fff;
  font-size: 13px;
  width: 100px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  z-index: 10;
  color: #333;
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.aside-toggle a:hover, .aside-toggle a:active, .aside-toggle a:focus, .back-to-home a:hover, .back-to-home a:active, .back-to-home a:focus {
  text-decoration: none;
  outline: none;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
}

.aside-toggle a span, .back-to-home a span {
  width: 100px;
  height: 100px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  z-index: 8;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
  background: rgba(0, 0, 0, 0.67); /* Début du gradient - Noir avec opacité */
  background: -moz-linear-gradient(left, rgba(0, 0, 0, 0.77) 0%, rgba(50, 50, 50, 0.77) 100%); /* Pour Firefox */
  background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0, 0, 0, 0.77)), color-stop(100%, rgba(50, 50, 50, 0.77))); /* Pour Chrome et Safari anciens */
  background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.77) 0%, rgba(50, 50, 50, 0.77) 100%); /* Pour Chrome et Safari récents */
  background: -o-linear-gradient(left, rgba(0, 0, 0, 0.77) 0%, rgba(50, 50, 50, 0.77) 100%); /* Pour Opera */
  background: -ms-linear-gradient(left, rgba(0, 0, 0, 0.77) 0%, rgba(50, 50, 50, 0.77) 100%); /* Pour IE */
  background: linear-gradient(to right, rgba(0, 0, 0, 0.77) 0%, rgba(50, 50, 50, 0.77) 100%); /* Standard moderne */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d3387b', endColorstr='#8628cd', GradientType=1 );
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.aside-toggle a em, .back-to-home a em {
  width: 100px;
  height: 100px;
  line-height: 100px;
  position: relative;
  z-index: 10;
  font-style: normal;
  color: #333;
  -webkit-transition-delay: .2s;
  /* Safari */
  -moz-transition-delay: .2s;
  transition-delay: .2s;
  opacity: 1;
  visibility: visible;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.aside-toggle a:hover, .back-to-home a:hover {
  -webkit-transition-delay: .2s;
  /* Safari */
  -moz-transition-delay: .2s;
  transition-delay: .2s;
  background: transparent;
}

.aside-toggle a:hover em, .back-to-home a:hover em {
  color: #333;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
}

.aside-toggle a:hover span, .back-to-home a:hover span {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  margin-left: 0px;
}

@media screen and (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  #fh5co-main {
    padding: 2em 0;
  }
}

@media screen and (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .aside-toggle a, .back-to-home a {
    width: 80px;
    height: 80px;
    line-height: 80px;
  }
  .aside-toggle a span, .aside-toggle a em, .back-to-home a span, .back-to-home a em {
    width: 80px;
    height: 80px;
    line-height: 80px;
  }
}

.back-to-home {
  left: inherit !important;
  right: 20px;
}
