@charset "UTF-8";

html {
    height: -webkit-fill-available;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: Poppins, Helvetica, Arial, sans-serif;
	overflow-y: auto;
}

html::-webkit-scrollbar-track {
  background-color: #fff;
}

html::-webkit-scrollbar {
  width: 15px;
  background-color: #fff;
}

html::-webkit-scrollbar-thumb {
  background-color: var(--scroller) !important;
}

/* Avoid Chrome to see Safari hack */
@supports (-webkit-touch-callout: none) {
    body {
        /* The hack for Safari */
        min-height: -webkit-fill-available;
    }
}

/* Définitions remplacement Bootstrap 5 == */
/* Reproduit fixed-top */
.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* comme Bootstrap */
}
/* Reproduit d-flex */
.d-flex {
    display: flex;
}
/* Reproduit align-items-center */
.align-items-center {
    align-items: center;
}
/* Reproduit justify-content-between */
.justify-content-between {
    justify-content: space-between;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile-first (100%) */
[class^="col-"] {
    width: 100%;
}
.text-center {
	text-align: center;
}

.justify-content-center {
    justify-content: center;
}

/* ≥768px */
@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
    .col-md-10 { width: 83.333%; }
    .col-md-12 { width: 100%; }
}
/* ≥992px */
@media (min-width: 992px) {
    .col-lg { flex: 1; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-7 { width: 58.333%;}
}
/* Reproduit container (version responsive simple) */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
.container-fluid {
    width: 100%;
    padding: 0 15px;
}
.mt-4 { margin-top: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-lg-0 { }
.me-4 { margin-right: 1.5rem; }

@media (min-width: 992px) {
    .mb-lg-0 { margin-bottom: 0; }
}
.pt-4 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.pr-5 { padding-right: 3rem; }

/* Optionnel : rendre le header plus lisible */
.header-theme {
    background-color: #fff;
    height: 70px;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.btn-p {
    padding: 8px 18px;
    border: 1px solid #333;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}
.btn-p.active {
    background: #333;
    color: #fff;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
	position: relative;
}

.form-select {
  display: inline-block;
  width: auto;
  min-width: 250px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none; /* enlève le style natif */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select {
  width: auto;
  min-width: 250px;   /* optionnel */
  display: inline-block;
}

.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.col {
  flex: 1 0 0%;
  padding: 0 0.75rem;
}


a {
			text-decoration: none;
			color: inherit;
	}
	a:hover {
			text-decoration: none;
			color: inherit;
	}
	
/* To Top button   ========================================================================== */
#myBtn {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--scroller);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
}

#myBtn:hover {
    background-color: var(--homeBtn);
}

/* ===== PAGE CONTAINER ===== */
.page {
    position: relative;
    overflow: hidden;
    background-color: var(--page) !important;
}

/* ===== PRELOADER ===== */
.no-js .sb-preloader, .no-js .sb-load {
    display: none;
}

.sb-preloader {
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
}

.sb-preloader .sb-preloader-bg {
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    position: absolute;
    background-color: var(--scroller) !important;
    height: 1000px;
    width: 1000px;
    top: 20%;
    transform: scale(2);
    transition: 0.6s ease-in-out;
}

.sb-preloader .sb-preloader-body {
    position: absolute;
    bottom: 0;
    z-index: 999;
    width: 100%;
    text-align: center;
    transition: 0.4s ease-in-out;
}

.sb-preloader .sb-preloader-body .sb-loading {
    opacity: 0;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 30px;
	color: var(--theme);
}

.sb-preloader .sb-preloader-body .sb-loading-bar {
    margin-bottom: 15px;
    width: 1px;
    height: 80vh;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    background-color: var(--theme);
}

.sb-preloader .sb-preloader-body .sb-loading-bar .sb-bar {
    width: 100%;
    height: 0;
    background-color: var(--scroller) !important;
}

.sb-preloader.sb-hidden {
    pointer-events: none;
    transition-delay: 0.2s;
}

.sb-preloader.sb-hidden .sb-preloader-bg {
    transform: scale(0);
    transition-delay: 0.2s;
}

.sb-preloader.sb-hidden .sb-preloader-body {
    transform: translateY(30%);
    opacity: 0;
    transition-delay: 0s;
}

/* ===== PAGE TRANSITION ===== */

.sb-load {
    border-radius: 50%;
    background-color: var(--page) !important;
    width: 80vw;
    height: 80vw;
    left: 50%;
    bottom: 0;
    margin-bottom: -40vw;
    pointer-events: none;
    position: fixed;
    margin-left: -40vw;
    transform: scale(0);
    z-index: 9;
    opacity: 0.9;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
    transition: 0.6s ease-in-out;
}

.sb-transition-fade {
    transition: 0.6s ease-in-out;
    opacity: 1;
}

/* ===== BANNER TOP ===== */
.banner-top {
    background: var(--theme);
    padding: 48px 0 48px 0;
    margin: 0px 0 48px 0;
}

.banner-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: calc(1.475rem + 2.7vw);
    color: #fff;
}

.banner-image {
    -webkit-box-shadow: 0 12px 58px 0 rgba(0, 31, 52, 0.35);
    box-shadow: 0 12px 58px 0 rgba(0, 31, 52, 0.35);
    height: 480px;
    background: var(--Banner-top);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
}

.banner-image img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: 100%;
}

@media (max-width: 1199.98px) {
    .banner-image {
        height: 430px;
    }
}

@media (max-width: 991.98px) {
    .banner-image {
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    .banner-image {
        height: 300px;
    }	
    .banner-image img {
        height: auto;
        width: 100%;
    }

    #myBtn {
        bottom: 2em;
    }
}

/* ===== GRID PDF ===== */
#portfolioContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.caption2 {
    display: flex;
    background-color: var(--theme) !important;
    border: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
	min-height: 3em;
}

.caption2 p {
    color: #fff;
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.2em;	
    margin: 5%;
}

/* ===== VIGNETTES ===== */
.column {
  transition:.35s ease;
}

.column.hide {
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
  position: absolute;
}

/* ===== ITEM ===== */
.portfolio-item {
  -webkit-box-shadow: 0 5px 10px 0 rgba(87, 87, 87, 0.35);
  box-shadow: 0 5px 10px 0 rgba(87, 87, 87, 0.35);
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  border: none;
}

.portfolio-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== MINIATURE PDF ===== */
.portfolio-item figure {
  margin       : 0;
  position     : relative;
  float        : left;
  overflow     : hidden;
  width        : 100%;
  text-align   : left;
  opacity: 0.8;
}

.portfolio-item .divers {
  opacity: 1;
}

/* ===== IMAGE ===== */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.3s ease-in-out;
  transform: scale(1.001);
  transform-origin: 10% 10%;
}

.portfolio-item:hover img {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

@media (min-width: 1318px) {
.portfolio-item img {
display: inline-block;
    overflow: hidden; 
}
}

/* ===== GRID RESPONSIVE ===== */

@media(max-width:900px) {

  #portfolioContainer {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media(max-width:600px) {

  #portfolioContainer {
    grid-template-columns: 1fr;
  }

}

/* ===== Filters pdf category  ===== */
.category-filters {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 8px;
}

.btn-filter {
    padding: 8px 15px;
    background: var(--theme);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    flex: 0 0 auto;
    font-size: 16px;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--homeBtn);
}

@media screen and (max-width: 400px) {
    .btn-filter {
        padding: 6px 10px;
        font-size: 14px;
    }

    .category-filters {
        gap: 6px 6px;
    }
}

@media screen and (max-width: 320px) {
    .category-filters {
        flex-direction: column;
        align-items: center;
        gap: 5px 0;
    }

    .btn-filter {
        width: 100%;
        max-width: 180px;
        text-align: center;
    }
}

/* Pdf pagination  ========================================================================== */
.pagination {
    display: flex;
    /* flex normal */
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 60px auto 0 auto;
    text-align: center;
    color: #000;
	gap: 15px;
}

.pagination a,
.pagination span {
    text-decoration: none;
}

.pagination .btn-pagination {
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    background-color: var(--theme);
    border: none;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    text-align: center;

}

.pagination .btn-pagination:hover {
    color: var(--theme);
    background-color: #fff;
}

/* Footer  ========================================================================== */
#footer-content {
    width: 100%;
}

.footer-dark {
    background-color: var(--theme) !important;
    color: #fff;
    width: 100%;
}

.footer-dark .container.pb-4 {
    padding-bottom: 16px !important;
}

.footer-dark p {
    color: #fff;
}

.footer-dark.pt-4 {
    padding-top: 25px !important;
}

.footer-bottom-shape {
    margin-top: auto;
    height: 100px;
}

.footer-bottom-shape svg {
    fill: var(--theme);
    height: 100px;
    display: block;
}

.footer-bottom-shape .footer-wave-big {
    height: 100px;
    background-color: var(--page);
}

/* Go to index button */
.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--page);
    color: #000;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.home-button:hover {
    background-color: var(--homeBtn);
}

.navfooter {
	color: #fff;
    display: inline-block;
    width: 5em;
    line-height: 2;
    margin-left: 5px;
    text-decoration: none;
    padding: 2px 1px 0;
	gap: 25px;
	position: relative;
}
.navfooter.active::after{
content:'';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 3px;
background: var(--navfooter);
}
.navfooter:visited {
    color: var(--navfooter);
}

.navfooter:hover {
    background: var(--scroller);
    border-radius: 5px;
    color: #fff;
}

@media (max-width: 991.98px) {
    .footer-bottom-shape {
        height: 100px;
    }

    .footer-bottom-shape .footer-wave-big {
        height: 100px;
    }
}