/* Préchargeur (preloader) */
/* Styles du préchargeur */
/* Modèle par défaut : header normal en fond opaque et position fixe */
header {
  background-color: #FCF9F4;
  position: fixed;
  width: 100%;
  z-index: 1030;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 10px 0 5px 0;
}

/* Styles pour le modèle classique (sans header-transparent) */
/*header,
.offcanvas-header {
  height: 130px; /* ou autre hauteur selon ton design */

/*}*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FCF9F4;
  z-index: 1030;
}

/* Lorsque le body a la classe header-transparent */
body.header-transparent header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(252, 249, 244, 0.8); /* Couleur semi-transparente */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1030;
}

/* Le slider se place normalement en position relative */
body.header-transparent #slider-widget {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Ajoute un padding-top pour éviter que le slider ne soit caché derrière le header
     Ajustez cette valeur selon la hauteur de votre header, ici par exemple 80px */
  padding-top: 0;
  z-index: 1;
}

/* Le contenu principal suit normalement */
body.header-transparent main {
  position: relative;
  z-index: 2;
  font-size: 14px;
}
section{
  margin-bottom: 80px;
}

h1{
  font-size: 2rem;
  font-weight: 100;
  margin-bottom: 15px;
}
h2{
  font-weight: 100;
  margin-bottom: 30px;
}
.text-column h2, .text-column h3, .text-column h4{
  font-weight: 100;
  margin-bottom: 30px;
}
p {
  line-height: 1.8; /* 1.6 fois la taille de la police */
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F5F1EB;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#preloader img {
  max-width: 150px;
  height: auto;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F5F1EB;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#preloader img {
  max-width: 150px;
  height: auto;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F5F1EB;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#preloader img {
  max-width: 150px;
  height: auto;
}

/* Ligne de points animés */
.loader-line {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  font-size: 2rem;
  color: #999;
}

.loader-line span {
  opacity: 0.2;
  animation: blink 1.5s infinite;
  animation-timing-function: ease-in-out;
}

/* Délai progressif pour effet fluide */
.loader-line span:nth-child(1)  { animation-delay: 0s;   }
.loader-line span:nth-child(2)  { animation-delay: 0.1s; }
.loader-line span:nth-child(3)  { animation-delay: 0.2s; }
.loader-line span:nth-child(4)  { animation-delay: 0.3s; }
.loader-line span:nth-child(5)  { animation-delay: 0.4s; }
.loader-line span:nth-child(6)  { animation-delay: 0.5s; }
.loader-line span:nth-child(7)  { animation-delay: 0.6s; }
.loader-line span:nth-child(8)  { animation-delay: 0.7s; }
.loader-line span:nth-child(9)  { animation-delay: 0.8s; }
.loader-line span:nth-child(10) { animation-delay: 0.9s; }

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}





/* Bouton scroll-to-top */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #444444;
  color: #fff;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 10000;
  transition: opacity 0.3s;
}
.scroll-to-top:hover {
  opacity: 0.8;
}
/* Styles généraux */
body {
  background-color: #f6f1eb;
  color: #444444;
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
}
a {
  color: #444444;
  text-decoration: none;
}
a:hover {
  color: #7e7d7d;
}

/* Header, Footer et Sidebar avec fond #FCF9F4 */
header,
footer,
.offcanvas {
  background-color: #FCF9F4;
}
/* Largeur de la sidebar : 25% sur grand écran, 100% sur mobile */
#sidebar {
  width: 30%;
}

/* Header sticky avec transition */
header {
  transition: box-shadow 0.3s ease-in-out;
  z-index: 1030;
}
.header-scrolled {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Footer */
footer { padding: 40px 0 10px 0 ; }
footer, footer a, footer small { color: #1F1646; }
.vertical-bar {
  height: 30px;
  width: 1px;
  background-color: #000;
  margin: 0 auto;
}
footer .copyright{
  margin-top: 15px;
  font-size: 12px;
}
#sidebar{
  /*padding: 1rem;*/
}
/* Bouton MENU dans le header : aucun fond ni bordure, texte en uppercase.
    Alignement vertical vers le bas */
  .navbar {
    padding: 20px 40px 10px 40px;
  
  }
.navbar .btn-menu {
  border: none;
  background: none;
  text-transform: uppercase;
  color: #444444;
  font-size: 0.8rem;
  font-weight: 300;
  align-self: flex-end;
  margin-bottom: -5px;
}
.navbar .btn-menu:hover {
  color: #7e7d7d;
}
/*.navbar .btn-menu .fa-bars{
  font-weight: 100;
}*/
/* Titres de la sidebar */
/* Titre header de la sidebar « MENU » en h2, fin et uppercase */

.offcanvas-header h2 {
  font-size: 1.5rem;
  font-weight: 100;
  text-transform: uppercase;
  color: #444444;
  margin: 0;
}

.btn-close {
  /* On retire les éventuelles bordures et box-shadow par défaut */
  border: none;
  box-shadow: none;
  
  /* On impose la taille désirée */
  font-size: 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  
  /* Utilisation d'une image SVG en background avec stroke très fin (0.5) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 8 8'%3E%3Cpath stroke='%23444444' stroke-linecap='round' stroke-width='0.5' d='M1 1l6 6M7 1L1 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* Optionnel : retirer le focus pour un rendu plus épuré */
.btn-close:focus {
  box-shadow: none;
}

/* Titre « BACHMANN ASSOCIÉS » en h3, plus petit, en gras et souligné (trait fin) */
.menu-title { padding: 0 1rem; margin: 10px 0 20px 0; }
.menu-title h3 {
  font-size: 1.3rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #444444;
  margin: 0;
  border-bottom: 1px solid #444444;
  padding-bottom: 5px;
  width: 
  100%;
  display: block;
  clear: ;
}
#sidebar  {
  padding: 1rem 1rem 0 1rem;
}
/* Liens du menu en uppercase et en couleur #444444 */
#sidebar .offcanvas-body ul.list-unstyled a.text-decoration-none {
  text-transform: uppercase;
  color: #444444;
}
#sidebar .offcanvas-body ul.list-unstyled a:hover {
  color: #7e7d7d;
}



/* Curseur pointeur sur chaque item qui a un sous-menu */


/* Le “+” (toggle icon) */


/* Quand le sous-menu est ouvert, tourne le plus */

/* Aération du menu : espacement entre les items */
#sidebar .offcanvas-body ul.menu > li { margin-bottom: 1.2rem; }
/*#sidebar .offcanvas-body ul.submenu > li {  margin-bottom: 0.6rem; }*/
/* Lien actif dans le menu */
#sidebar .offcanvas-body a.text-decoration-none.active {
  font-weight: 400;
  color: #444444 !important;
}
/* Menu multi-niveau */


/* Bas de la sidebar : deux blocs distincts */
.sidebar-bottom { padding: 1rem 1rem 0 1rem; }
.sidebar-bottom .studio-link a {
  display: block;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 1.8rem;
  text-decoration: none;
  font-weight:300 ;
}
/* Div enveloppant le ul du bas de la sidebar */
.sidebar-bottom .contact-info {
  background-color: #F4EDE7;
  padding: 1.2rem 1.2rem;
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -1rem;
  margin-bottom: 0;
}
.sidebar-bottom .contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-bottom .contact-info ul li {
  padding: 0.3rem 0.2rem 0.3rem 0.6rem;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.sidebar-bottom .contact-info ul li a {
  color: inherit;
  text-decoration: none;
  
}

header .logo {
  max-height: 70px;
  width: auto;
}

footer .logo {
  max-height: 70px;
  width:  auto;
}


/* Effets rollover pour boutons et liens */
.studio-link a i.fa-angle-double-right {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpolyline points='6,4 16,16 6,28' fill='none' stroke='%23444444' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolyline points='16,4 26,16 16,28' fill='none' stroke='%23444444' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  text-indent: -9999px;
}

.studio-link a:hover i.fa-angle-double-right {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpolyline points='6,4 16,16 6,28' fill='none' stroke='%23444444' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolyline points='16,4 26,16 16,28' fill='none' stroke='%23444444' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon {
  display: inline-block;
  width: 20px;       /* taille en pixels, modifiable */
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
}
/*.icon.icon-address {

  height: 30px;

}*/

.icon-address {
  background-image: url("../img/icons/adresse.svg");
}
.icon-contact {
  background-image: url("../img/icons/contact.svg");
}
.icon-mentions {
  background-image: url("../img/icons/mentions.svg");
}
.icon-email {
  background-image: url("../img/icons/email.svg");
}
/****
  Styles pour les widgets
  (ex. : slider, portfolio, etc.)
  Ces styles sont spécifiques aux widgets et peuvent être modifiés
  selon les besoins de chaque widget. 
****/
.text-column.text-right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  padding-left: 50px;
  padding-top: 30px;
}

#slider-widget{
  margin-bottom: 80px;
}
#slider-widget #header-carousel  .carousel-item {
  height: 100vh;

  display: block; /* Garder les slides dans le flux */
  visibility: hidden; /* Masquer les slides non actives */
  opacity: 0; /* Rendre les slides invisibles */
  transition: none; /* Désactiver les transitions Bootstrap */
  z-index: 1; /* Mettre les slides en arrière-plan par défaut */
}



/*********
posts
*********/
#post{
  margin: 0;
}
#post .post-content {
  padding: 50px 0;
}

.post .post-detail .post-detail-img {
  position: relative;
  overflow:
hidden;
  height: auto;
}

/**** buttons ****/
.btn-cta {
  position: relative;
  overflow: hidden;
  font-weight: 300;
  text-transform: none;
  background-color:transparent;
  color: #444;
  height: 40px;
  margin-right: 0;
  margin-left: 0;
  letter-spacing: 2px;
  line-height: 40px;
  padding: 2px 0 0;
  margin-bottom: 0;  
  /*background-color: #444444;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;*/
  transition: color 0.3s ease;
  text-decoration: none ;
}

.btn-cta:hover {

  color: #7e7d7d;
  border-bottom: 1px solid #7e7d7d;
  background-color: transparent;


}
.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*
  background-color: #f42f3f; /* Couleur de remplacement */
  /*transform: translateX(-100%);
  transition: transform 0.5s ease;*/
  z-index: 0;
  pointer-events: none;
}

.btn-cta:hover::before {
  transform: translateX(0);
}

.btn-cta span {
  position: relative;
  z-index: 2; /* Assure que le texte reste au-dessus */
}
/****
Portfolio
*****/
.widget-work-item .widget-work-descr {
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  background-color: rgba(0, 0, 0, 0.5); /* Ajout de la transparence */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  z-index: 9;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}

.widget-work-descr  h4 a{
  color: #fff;

}

  .widget-work-descr h4{
  font-weight: 100;
}
.widget-work-item .widget-work-descr .widget-work-more {
  background-color: #f42f3f;
  width: 35px;
  min-width: 35px;
  height: 35px;
  border-radius:
50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack:
center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align:
center;
  -ms-flex-align: center;
  align-items: center;
  color: #FFF;
}

/**** contact ****/
  /* Chaque bloc */
 /* contact-block.css */
/* placez ça dans votre fichier CSS, chargé APRÈS Bootstrap */
.contact-block {
  display: grid !important;                 /* on force le grid */
  grid-template-columns: auto 1fr;          /* icône + contenu */
  column-gap: 1rem;                         /* espace horizontal */
  align-items: start;                       /* top-align */
  padding: 0;
  margin-bottom: 0.2rem;
}

.contact-block .icon {
  /* pas besoin de flex ici */
  font-size: 1.75rem;
  color: #A2948F;
  line-height: 1;
}

.contact-block .content h4 {
  margin: 0 0 .5rem;
  font-size: 18px;
  font-weight: 200;
  color: #A2948F;
  text-transform: uppercase;
}

.contact-block .content address,
.contact-block .content p {
  margin: 0;
  line-height: 1.4;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  background: #fff;
}

.contact .info i {
  font-size: 20px;
  color: #ED1C98;
  float: left;
  width: 44px;
  height: 44px;
  background: #e3f0fa;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #124265;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #217bbc;
}

.contact .info .email,
.contact .info .phone {
  margin-top: 40px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #ED1C98;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 4px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #ED1C98;
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: #ED1C98;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #ED1C98;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
.form-feedback  {
  margin-top: 20px;
  
}
.form-feedback  ul {
  display: table;      /* ou inline-block */
  margin: 0 auto;      /* centre horizontalement */
  text-align: left;    /* aligne le contenu à gauche */
}
.form-feedback ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contactform_message{
  height: 150px;
}

.form-control {
  display: block;
  width: 100%;
  padding:
.375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: transparent;
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  -webkit-appearance:
none;
  -moz-appearance:
none;
  appearance: none;
  border-radius:0%;
  transition:
border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}


/*-----------------------------------
  MENU MULTI-NIVEAU (modifié)
-----------------------------------*/
/* Masquage par défaut des sous-menus */
.menu ul.submenu {
  display: none;
  margin-top: 10px;
  margin-bottom: 30px;
}

/* Item avec sous-menu */
.menu li.has-sub {
  position: relative;
  cursor: pointer;
  padding-right: 2.5rem; /* espace pour le toggle */
  margin-bottom: 1rem;
}

/* Rendre le lien parent plein largeur */
.menu li.has-sub > a {
  display: block;
  width: calc(100% - 2.5rem);
  padding-right: 2.5rem;
}

/* Toggle +/– */
.menu-toggle {
  position: absolute;
  top: 0.25em;          /* aligne verticalement l’icône */
  right: 0;
  border: none;
  background: none;
  font-size: 1rem;
  line-height: 1;
  color: #444444;
  cursor: pointer;
  user-select: none;
  z-index: 10;          /* au-dessus du lien */
}

/* Taille de l’icône */
.menu-toggle i {
  font-size: 1.1rem;
}

/* Cacher tout ancien span.plus */
.menu li.has-sub .plus {
  display: none !important;
}

/* Lorsque le sous-menu est ouvert, remplace le + par – */
.menu li.has-sub.open > .menu-toggle i.fa-plus {
  display: none;
}
  .icon-btn {
    width: 20px;
    height: 20px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .icon-btn:hover {
    color: #7e7d7d;
  }

.menu li.has-sub.open   .fa-plus::before {
  content: "";
}
.menu li.has-sub.open > .menu-toggle i.fa-minus {
  display: inline-block;
}

/* Sous-items indentés */
.menu ul.submenu > li {
  padding-left: 1rem;
  margin-bottom: 0.6rem;
  font-size: 14px;
}



.fancybox-is-open .fancybox-bg {
  opacity: 1 !important;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}
.fancybox-bg {
  background:#F4F1EB !important;
  opacity: 0;
  transition-duration: inherit;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(.47,0,.74,.71);
}
.fancybox-bg, .fancybox-inner, .fancybox-outer, .fancybox-stage {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.fancybox-button {
  background:none !important;
   
}

.text-photo-alt ul li::before, #about-default ul li::before {
  content: "\f00c";
  font-family: FontAwesome;
  color: #444444;
  display: inline-block;
  margin-left: -1.3em;
  width: 1.3em;
}

/*** 
  Portfolio
  ***/
  .widget-filter .widget-work-category {
    position: relative;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    display: block;
    letter-spacing: 1px;
    background-color:transparent;
    color: #444;
    height: 40px;
    margin-right: 20px;
    margin-left: 20px;
    letter-spacing: 2px;
    line-height: 40px;
    padding: 2px 0 0;
    margin-bottom: 0;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out; }

    .widget-filter .widget-work-category:hover {
      background-color: transparent; 
      border-bottom: #444444 1px solid; 
}

    .widget-filter .widget-work-category.widget-filter-icon {
      padding-left: 20px; }
      .widget-filter .widget-work-category.widget-filter-icon i {
        text-align: center;
        line-height: 40px;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #D95A08;
        margin-right: 0;
        height: 100%;
        width: 40px; }
    .widget-filter .widget-work-category.widget-current {
      background-color: transparent; 
      border-bottom: #444444 1px solid; 
      padding-left: 0;
    }
      .widget-filter .widget-work-category.widget-current.widget-filter-icon i {
        color: #28292c; }

      .photo-overlay i.fa-search-plus{
        font-size: 24px;
      }

      @media (max-width: 1080px) {

        #sidebar { width: 80%; 
          padding: 0 30px;}

      }


      ul.press-list{
        margin-right: 20px;
      }