/* Template Name: Edwin - Personal Portfolio Template
   Author: Themeslelo
   Email: themeslelo@gmail.com
   Version: 1.0.0
   Created: September 2019
   File Description: Main Css file of the template
*/

@font-face {
  font-family: 'josefin_sansbold';
  src: url('../fonts/josefinsans-bold-webfont.eot');
  src: url('../fonts/josefinsans-bold-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/josefinsans-bold-webfont.woff') format('woff'),
    url('../fonts/josefinsans-bold-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'josefin_sansregular';
  src: url('../fonts/josefinsans-regular-webfont.eot');
  src: url('../fonts/josefinsans-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/josefinsans-regular-webfont.woff') format('woff'),
    url('../fonts/josefinsans-regular-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;

}

.fa-solid {
  margin: 0.5em;
}

.about-list strong {
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'josefin_sansbold';
}

@media (max-width: 576px) {
  .about-list strong {
    font-size: 1rem;
  }
}

.gallery-page {
  padding: 40px 20px;
}

/* FILTRES */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  border: 1px solid #ddd;
  background: white;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.1em;
}

.filter-btn.active,
.filter-btn:hover {
  background: #99597b;
  color: white;
  border-color: #99597b;
}

/* GALERIE GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* CARRE PARFAIT */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  background: #000;
  transition: transform 0.6s ease, opacity 0.6s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}

/* IMAGE COVER (IMPORTANT) */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* ZOOM HOVER CLEAN */
.gallery-item:hover img {
  transform: scale(1.06);
}

/* CAPTION OVERLAY */
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  font-size: 14px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  transition: 0.3s;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

.gallery-item.is-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE OPTIMISÉ */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Pour cacher les éléments visibles uniquement en accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pour remonter en haut de page doucement */
html {
  scroll-behavior: smooth;
}


@media(min-width: 600px) {
  .gallery-span {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  }

  .w-1 {
    grid-column: span 1;
  }

  .w-2 {
    grid-column: span 2;
  }

  .w-3 {
    grid-column: span 3;
  }

  .w-4 {
    grid-column: span 4;
  }

  .w-5 {
    grid-column: span 5;
  }

  .w-6 {
    grid-column: span 6;
  }

  .h-1 {
    grid-row: span 1;
  }

  .h-2 {
    grid-row: span 2;
  }

  .h-3 {
    grid-row: span 3;
  }

  .h-4 {
    grid-row: span 4;
  }

  .h-5 {
    grid-row: span 5;
  }

  .h-6 {
    grid-row: span 6;
  }

}

/* ==========bouton retour en haut de page============ */
.k2t-btt {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: #99597b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-decoration: none;
  font-size: 20px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}

.k2t-btt:hover {
  transform: translateY(-5px);
  background: #7f4564;
  color: #fff;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-item figcaption {
  margin-top: 12px;
  margin-bottom: 12px;
}



/* ===== GALERIE ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* ===== CARTE ===== */

.gallery-item {
  background: #f8f9fa;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding-bottom: 25px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ===== IMAGE ===== */

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

/* ===== TEXTE ===== */

.gallery-item figcaption {
  margin-top: 20px;
  margin-bottom: 18px;
  display: none;
  padding: 0 15px;

  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== BOUTON ===== */

.gallery-btn {
  display: inline-block;
  margin-top: auto;
  padding: 12px 28px;
  margin-top: 1em;
  background: #99597b !important;
  color: #ffffff !important;
  border-radius: 40px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* ===== HOVER ===== */

.gallery-btn:hover {
  background: #7f4564 !important;
  color: #ffffff !important;

  transform: translateY(-3px);

  box-shadow: 0 6px 18px rgba(153, 89, 123, 0.35);
}

/* ===== MOBILE ===== */

@media(max-width:768px) {

  .gallery-grid {
    gap: 22px;
  }

  .gallery-item figcaption {
    font-size: 16px;
  }

  .gallery-btn {
    width: 80%;
    padding: 11px 20px;
  }

}



body {
  font-family: "josefin_sansregular", sans-serif;
  overflow-x: hidden !important;
  font-size: 14px;
  font-weight: 800;
  color: #1d1e3a;
}


h1 {
  font-family: "josefin_sansregular", sans-serif;
  line-height: 1.5;
  font-weight: 600;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  /* adapte la hauteur automatiquement */
  background-image: url("../images/hero-briancon-creation-site-web.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

/* Overlay sombre pour lisibilité */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.35); */
}

/* Contenu au-dessus de l’overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* TITRE RESPONSIVE PROPRE */
.hero-title {
  font-weight: 700;
  color: #99597b;
  font-size: clamp(28px, 6vw, 65px);
  line-height: 1.1;
  margin: 0;
  padding: 0 15px;
  word-break: break-word;
}

#fenetre {
  width: 70%;
  height: 200px;
  display: none;

}


h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "josefin_sansregular", sans-serif;
  line-height: 1.4;
  font-weight: 800;
}

::-moz-selection {
  background: #6c757d;
  color: #ffffff;
}

::selection {
  background: #6c757d;
  color: #ffffff;
}

a {
  text-decoration: none !important;
  color: #efefef;
}

p {
  font-family: "josefin_sansregular", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.section-two {
  padding: 60px 0;
  position: relative;
}

.bg-over-image {
  background-color: rgba(35, 37, 47, 0.5) !important;
  background-image: url("../images/overlay.png");
  background-repeat: repeat;
}

.text-custom {
  color: #99597b;
}

.bg-custom {
  background-color: #99597b;
}

.title-heading .subtitle {
  font-size: 18px;
  letter-spacing: 1px;
}

.title-heading .title {
  font-weight: 600;
  font-size: 48px;
  letter-spacing: 1px;
}

.title-heading .para-desc {
  font-size: 17px;
}


.section-title .title {
  letter-spacing: 1px;
  font-size: 30px;
  z-index: 2;
}

.section-title .title.title-line:before {
  content: "";
  position: absolute;
  height: 2px;
  width: 80px;
  left: 50%;
  top: 60px;
  text-align: center;
  background: #99597b;
  margin-left: -42px;
}

.section-title .title.title-line:after {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: 50%;
  top: 56px;
  z-index: 1;
  text-align: center;
  background: #e9cfdf;
  border-radius: 50%;
  margin-left: -7px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.para-desc {
  max-width: 850px;
}

.social-icon li a {
  color: #99597b;
  border: 1px solid #99597b;
  display: inline-block;
  height: 32px;
  text-align: center;
  font-size: 15px;
  width: 32px;
  line-height: 30px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  border-radius: 4px;
}

.social-icon li a:hover {
  background-color: #e9cfdf;
  border-color: #99597b !important;
  color: #ffffff !important;
}

.social-icon.social li a {
  color: #99597b;
  border-color: #99597b;
}


@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }

  .title-heading .heading {
    font-size: 40px !important;
  }

  .section-title .title {
    font-size: 24px;
  }
}

.btn {
  padding: 12px 24px;
  outline: none;
  border-radius: 0;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.8px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-transform: uppercase;
  font-weight: 500;
}

.btn:focus {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.btn.btn-sm {
  padding: 7px 16px;
  font-size: 10px;
}

.btn.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.btn.btn-custom {
  color: #ffffff;
  background: #99597b;
  font-size: 1.2em;
  margin: 0.5em;
}

.btn.btn-custom:hover,
.btn.btn-custom:focus,
.btn.btn-custom:active,
.btn.btn-custom.active,
.btn.btn-custom.focus {
  background-color: #e9cfdf !important;
  color: #ffffff !important;
  -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
}

.btn.btn-custom-outline {
  border: 1px solid #99597b;
  color: #99597b;
  background-color: transparent;
}

.btn.btn-custom-outline:hover,
.btn.btn-custom-outline:focus,
.btn.btn-custom-outline:active,
.btn.btn-custom-outline.active,
.btn.btn-custom-outline.focus {
  background-color: #99597b !important;
  border-color: #99597b !important;
  color: #ffffff !important;
  -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
}

.btn.btn-outline-white {
  border: 1px solid #ffffff !important;
  color: #ffffff;
  background-color: transparent;
}

.btn.btn-outline-white:hover,
.btn.btn-outline-white:focus,
.btn.btn-outline-white:active,
.btn.btn-outline-white.active,
.btn.btn-outline-white.focus {
  background-color: #99597b !important;
  border: 1px solid #99597b !important;
  color: #ffffff !important;
  -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
}


.nav-pills .nav-link {
  color: #6c757d !important;
  background: #eff1f4;
  border-radius: 0 !important;
}

.nav-pills .nav-link:hover {
  background: #dee2e6;
}

.nav-pills .nav-link.active {
  background: #99597b;
  color: #ffffff !important;
}

.sidenav .logo-border {
  border-bottom-color: #99597b !important;
}

.sidenav .logo {
  color: #6c757d !important;
  font-weight: 600;
  font-size: 24px;
}

.sidenav .navbar-custom {
  margin-top: 0px;
  color: #6c757d !important;
}

.sidenav .navbar-custom .navbar-nav {
  display: block;
}

.sidenav .navbar-custom .navbar-nav .nav-link {
  padding-right: 0px;
  padding-left: 0px;
}

.sidenav .navbar-custom .navbar-nav li a {
  line-height: 25px;
  color: #6c757d;
  /* font-size         : 15px; */
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  font-weight: 700;
  background-color: transparent !important;
  padding: 5px 0;
  margin: 4px 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: "josefin_sansregular", sans-serif;
}

.sidenav .navbar-custom .navbar-nav li.active a,
.sidenav .navbar-custom .navbar-nav li a:hover,
.sidenav .navbar-custom .navbar-nav li a:active {
  color: #99597b !important;
}

.navbar-toggler {
  font-size: 24px;
  margin-top: 5px;
  padding-right: 15px;
  margin-bottom: 0px;
  color: #6c757d;
}

.navbar-toggle {
  font-size: 24px;
  margin-top: 5px;
  margin-bottom: 0px;
  color: #ffffff;
}

.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover {
  background-color: transparent;
  border-color: #99597b;
}

.navbar-custom .navbar-toggles {
  padding: .25rem .75rem;
  font-size: 18px;
  background: 0 0;
  border: 1px solid transparent;
  color: #1d1e3a;
  outline: 0;
}

.navbar-custom .navbar-toggles-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
}

.menu-toggle {
  padding: 4.5px 10px !important;
}

.menu-toggle span {
  line-height: 27px;
}

/*---NAVBAR STICKY---*/
.nav-sticky.navbar-custom .navbar-nav li a {
  color: #1d1e3a;
}

.nav-sticky.navbar-custom .navbar-nav li.active,
.nav-sticky.navbar-custom .navbar-nav li a:hover,
.nav-sticky.navbar-custom .navbar-nav li a:active {
  color: #99597b !important;
}

.nav-sticky.navbar-custom.sticky-light {
  background-color: #e9cfdf;
}

.nav-sticky.navbar-custom .navbar-toggles {
  padding: .25rem .75rem;
  border: 1px solid transparent;
  outline: 0;
}

.nav-sticky .navbar-nav {
  margin-top: 0px;
}

.nav-sticky .logo {
  color: #1d1e3a !important;
}

.bottom-social {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 10px;
  z-index: 2;
}

@media (min-width: 992px) {
  .sidenav {
    position: fixed;
    height: 100%;
    width: 260px;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
  }

  /* .navbar-expand-lg .navbar-collapse {
    display: block !important;
  } */

  .main {
    margin-left: 280px;
  }
}

@media (max-width: 991px) {
  .navbar-custom {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 99;
    margin-top: 0px;
    padding: 10px 0px !important;
    -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .navbar-expand-lg .navbar-collapse {
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .sidenav .navbar-custom .navbar-nav li a {
    padding: 0;
  }

  .navbar-toggler i {
    font-size: 24px;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #ffffff;
  }

  .nav-sticky .logo {
    color: #ffffff !important;
    margin-left: 15px;
  }

  .navbar-custom {
    margin-left: 0;
  }

  .main {
    margin-left: 0px;
    padding: 0px;
  }

  .navbar-custom .navbar-nav li a {
    line-height: 10px;
  }
}

@media (max-height: 650px) {
  .bottom-social {
    margin-top: 30px;
    position: relative;
    padding-left: 40px;
  }
}

@media (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 18px;
  }
}

@media (max-width: 450px) {
  .mobile-re {
    padding-left: 15px;
  }
}

.home-center {
  display: table;
  width: 100%;
  height: 100%;
}

.home-desc-center {
  display: table-cell;
  vertical-align: middle;
}

.bg-home {
  height: 100vh;
  background-size: cover;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  position: relative;
  background-position: center center;
}

/* Pour les boutons de la zone hero */
@media (max-width: 576px) {
  .home-icon .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  .home-icon .btn:last-child {
    margin-bottom: 0;
  }
}

.bg-half {
  height: 75vh;
  background-size: cover;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  position: relative;
  background-position: center center;
}

.clip-home {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 83%, 30% 100%, 0 83%);
  clip-path: polygon(0 0, 100% 0, 100% 83%, 30% 100%, 0 83%);
}

@media (min-width: 200px) and (max-width: 767px) {

  .bg-home,
  .bg-half {
    padding: 150px 0;
    height: auto;
  }
}

.about-list {
  line-height: 32px;
}

.about-list .listing {
  max-width: 110px;
  width: 100%;
  display: inline-block;
  font-weight: 600;
}

.services {
  border: 1px solid #ebedef;
}

.services .icon i {
  height: 75px;
  width: 75px;
  line-height: 75px;
  display: inline-block;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.services .title {
  font-size: 1.6em;
}

.services:hover .icon i {
  -webkit-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  color: #99597b;
}

.resume-desc .content .company-university {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .resume-desc .resume-year {
    float: none !important;
  }
}

.blog .title,
.blog .read-more {
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.blog .title:hover,
.blog .read-more:hover {
  color: #99597b !important;
}

.form-group {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.form-group .form-control {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 0;
  width: 100%;
  height: 40px;
  font-size: 14px;
  color: #161c2d;
  background: #ffffff;
  border-radius: 3px;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.form-group textarea {
  height: 180px !important;
}

.contact-detail i {
  height: 50px;
  width: 50px;
  line-height: 50px;
  font-size: 30px;
}

.map iframe {
  width: 100%;
  height: 470px;
}

.error {
  margin: 8px 0px;
  display: none;
  color: #dc3545;
}

#ajaxsuccess {
  font-size: 16px;
  width: 100%;
  display: none;
  clear: both;
  margin: 8px 0px;
}

.error_message {
  padding-bottom: 10px;
  color: #dc3545;
  font-size: 14px;
}

.contact-loader {
  display: none;
}

#success_page {
  text-align: center;
  margin-bottom: 50px;
}

#success_page h3 {
  color: #28a745;
  font-size: 22px;
}

.footer {
  padding: 30px 0;
  color: #adb5bd;
}