:root {
    --primary-color: #191C1D;
    --secondary-color: #FFFFFF;
    --dark-color: #0F0F0F;
    --text-color: #ACACAC;
    --line-color: #464646;
    --btn-bg-color: white;
    --btn-txt-color: #191C1D;
    --star-color: #FFC109;
}

.theme-color-2 {
    --primary-color: #5a684e;
    --secondary-color: #F7EEE0;
    --dark-color: #3f4738;
    --text-color: #c8c6b4;
    --line-color: #7e8875;
    --btn-bg-color: white;
    --btn-txt-color: #191C1D;
    --star-color: #FFC109;
}
.theme-color-3 {
    --primary-color: #C16C60;
    --secondary-color: #FFF5EF;
    --dark-color: #8f4a40;
    --text-color: #FFF5EF;
    --line-color: #d29790;
    --btn-bg-color: white;
    --btn-txt-color: #191C1D;
    --star-color: #FFC109;
}
.theme-color-4 {
    --primary-color: #14296C;
    --secondary-color: #FFFFFF;
    --dark-color: #091846;
    --text-color: #d9dbe5;
    --line-color: #4c5a8d;
    --btn-bg-color: white;
    --btn-txt-color: #191C1D;
    --star-color: #FFC109;
}
.theme-color-5 {
    --primary-color: #FCCD09;
    --secondary-color: black;
    --dark-color: #E5BA09;
    --text-color: #3f3102;
    --line-color: #d2aa05;
    --btn-bg-color: #000000;
    --btn-txt-color: #ffffff;
    --star-color: #9d7f04;
}
.select-color-theme button.active {
    border: solid 2px black;
}
.select-color-theme button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: solid 1px #d3d3d3;
    transform: rotate(45deg);
    cursor: pointer;
}
.select-color-theme .color1 {
    background: linear-gradient(to right, #191C1D 50%, #FFFFFF 50%);
}
.select-color-theme .color2 {
    background: linear-gradient(to right, #5a684e 50%, #F7EEE0 50%);
}
.select-color-theme .color3 {
    background: linear-gradient(to right, #C16C60 50%, #FFF5EF 50%);
}
.select-color-theme .color4 {
    background: linear-gradient(to right, #14296C 50%, #d9dbe5 50%);
}
.select-color-theme .color5 {
    background: linear-gradient(to right, #FCCD09 50%, black 50%);
}






/* NEW CSS */
.portfolio-masonry {
    column-count: 3;
    column-gap: 15px;
    padding: 20px;
}

.portfolio-masonry img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    display: block;
    break-inside: avoid;
    transition: .3s;
    cursor: pointer;
    
}
.portfolio-masonry img:hover {
    transform: scale(1.03); /* petit zoom au hover */
}
@media (max-width: 768px) {
  .portfolio-masonry { column-count: 2; }
}
@media (max-width: 480px) {
  .portfolio-masonry { column-count: 1; }
}




/* ✅ Lightbox en overlay */
.lightbox {
    display: none; /* caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

/* ✅ Image affichée */
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  margin: auto;
  display: block;
  border-radius: 8px;
}

/* ✅ Bouton fermer */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 22px;
    color: #2c2c2c;
    cursor: pointer;
    opacity: 1;
    background: #d5d1c8;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ Navigation gauche/droite */
.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #000000;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    background: #d5d1c8;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox .prev {left: 20px;}
.lightbox .next {right: 20px;}



.tb-portfolio-img h1 {
    text-align: center;
}
.tb-portfolio-img .desc-portfolio {
    text-align: center;
    max-width: 1000px;
    margin: auto;
}
.nav-portfolio p {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}
.nav-portfolio a {
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    transition: .3s;
    padding: 6px 20px;
    border-radius: 6px;
}
.nav-portfolio a:last-child {
    margin-left: auto;
}
.nav-portfolio a:hover {
    background: var(--dark-color);
}
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle i {
    color: var(--secondary-color);
}
.tb-menu-name a {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none !important;
}
.menu-tb1 .tb-container {
    display: flex;
    gap: 40px;
}
.tb-content-menu {
    margin-left: auto;
}
.tb-breadcrumbs {
    margin-bottom: 0;
    text-align: center;
    opacity: .6;
    display: table;
    margin: auto;
    border: solid 1px var(--line-color);
    padding: 5px 15px;
    border-radius: 5px;
}
.tb-breadcrumbs a {
    color: var(--secondary-color)
}
.tb-breadcrumbs .fa-chevron-right {
    margin: 0 5px;
    font-size: 12px;
}
/* NEW CSS */



::selection {background: var(--text-color); color: #191C1D;}
header, footer {display: none;}
body {
    background: var(--primary-color);
}
.menu-tb1 {
    padding: 20px;
    background: var(--dark-color);
    position: fixed;
    width: 100%;
    z-index: 9999;
}

.menu-tb1 ul {
    display: flex;
    gap: 25px;
    justify-content: center;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

.menu-tb1 ul li a {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

.tb-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 25px;
}
.content-tb1 {
    padding-top: 80px;
}
.tb-contact, .tb-avis, .tb-portfolio, .tb-portfolio-img {
  	padding-top: 60px;
}
.s1-tb1 {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}
.s1-tb1 .img-profil img {
    max-width: 100%;
    border-radius: 20px;
    display: block;
    overflow: hidden;
}
h1 {
    color: var(--secondary-color);
    padding-bottom: 20px;
}
h2 {
    color: var(--secondary-color);
}
h3, h4, p, li, span a {
    color: var(--text-color);
}
.line-metier {
    width: 60px;
    height: 1px;
    background: var(--text-color);
    display: block;
    margin-right: 15px;
}

.tb1-about {
    position: relative;
}

.tb-metier {
    display: flex;
    align-items: center;
}

.tb-desc-about {
    margin-bottom: 20px;
}


.home-img-portfolio img {
    max-height: 100%;
    border-radius: 10px;
    cursor: inherit;
}
.s3-tb1 {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.s3-tb1 .s3-tb1-col1 {
    width: 33.33%;
    position: sticky;
    top: 60px;
}
.s3-tb1 .s3-tb1-col1 .tb-btn{
    margin-top: 30px;
}
.s3-tb1 .home-img-portfolio {
    width: 66.66%;
    padding: 30px 0;
    column-count: 2;
}
.tb-home-contact {
    display: flex;
    gap: 40px;
    padding: 30px 0;
}
.tb-home-contact > div {
    padding: 20px 40px;
    border: 1px solid var(--line-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
}
.s4-tb1 {
    padding: 100px 0;
}
.tb-home-contact .tb-contact-title {
    color: var(--secondary-color);
    font-weight: 600;
}
.tb-home-contact a {
    color: var(--text-color);
}



.tb-btn a {
    color: var(--text-color);
    border: solid 2px var(--text-color);
    font-size: 16px;
    font-weight: bold;
    padding: 10px 25px;
    display: inline-block;
    border-radius: 5px;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 40px 0 0 0;
    position: absolute;
}

.marquee-content {
    display: flex; /* Place les deux blocs de texte côte à côte */
    align-items: center;
    color: var(--secondary-color);
    font-size: 80px; /* Taille du texte */
    font-weight: bold;
    text-transform: capitalize;
    min-width: 200%; /* Empêche les coupures */
    animation: marquee 50s linear infinite;
    opacity: .1;
}
.marquee-content span {
    padding-right: 20px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Fait défiler jusqu’à la moitié pour une transition continue */
    }
}


.banniere-rs {
    padding: 40px 15px;
    background: var(--dark-color);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
}

.banniere-rs ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 10px;
    height: 100vh;
    align-items: center;
}

.banniere-rs ul svg {
    max-width: 100%;
    width: 20px;
    fill: var(--text-color);
    display: block;
    height: auto;
}

.banniere-rs ul a {
    padding: 5px;
    display: inline-block;
    border-radius: 5px;
}
.banniere-rs ul a:hover {
    background: var(--text-color);
}
.banniere-rs ul a:hover svg {
    fill: var(--dark-color);
}

.s2-tb1 {
    padding-bottom: 100px;
}

.s2-tb1 ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.s2-tb1 li {
    padding: 20px 40px;
    border: 1px solid var(--line-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(25% - 23px);
    text-align: center;
}

.s2-tb1 li span {
    font-weight: bold;
    color: var(--secondary-color);
    padding-bottom: 5px;
    font-size: 16px;
}

.tb-portfolio {
    padding-bottom: 100px;
}

.tb-portfolio h1, .tb-contact h1, .tb-avis h1 {
    text-align: center;
    padding: 0 0 40px 0;
}

.tb-portfolio .tb-list-portfolio {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tb-portfolio .tb-list-portfolio .tb-bloc-portfolio {
    width: calc(33.33% - 20px);
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    height: 500px;
}

.tb-portfolio .tb-list-portfolio .tb-bloc-portfolio:after {
    content:"";
    background: linear-gradient(360deg, #191c1dcc 0%, transparent);
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.tb-portfolio .tb-list-portfolio .tb-bloc-portfolio img {
    height: 500px;
    object-fit: cover;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    position: absolute;
}

.tb-infos-minia-portfolio {
    position: relative;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    z-index: 1;
}

.tb-infos-minia-portfolio .tb-title-portfolio {
    color: white;
    font-size: 24px;
    font-weight: bold;
    line-height: 30px;
    margin-bottom : 3px;
}

.tb-infos-minia-portfolio .tb-number-portfolio {
    margin-bottom : 0px;
    color: #ACACAC;
}

.tb-sect-contact {
    display: flex;
    gap: 40px;
}
.tb-infos-contact {
    width: 33.33%;
}
.tb-form-contact {
    width: 66.66%;
}
.tb-form-contact form input[type="text"], .tb-form-contact form input[type="email"] {
    background: transparent;
    border: solid 1px var(--line-color);
    height: 50px;
    border-radius: 5px;
    color: var(--text-color);
}

.tb-form-contact form textarea {
    background: transparent;
    border: solid 1px var(--line-color);
    border-radius: 5px;
    color: var(--text-color);
}

.tb-form-contact form .gfield_label {
    color: var(--text-color);
    font-weight: initial !important;
    font-family: 'Montserrat';
}
.tb-form-contact input[type="submit"] {
    background: var(--btn-bg-color) !important;
    border: none !important;
    color: var(--btn-txt-color);
}
.tb-form-contact input[type="submit"]:hover {
    background: var(--btn-bg-color) !important;
    border: none !important;
    color: var(--btn-txt-color);
}
.tb-infos-contact .tb-contact-title {
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
    padding-top: 30px;
}

.tb-infos-contact .tb-contact-adresse .tb-contact-title {
    padding-top: 0;
}

.tb-infos-contact .tb-contact-txt a {
    color: var(--text-color) !important;
}

.tb-sect-avis {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 60px;
}

.tb-sect-avis .tb-bloc-avis {
    background: var(--dark-color);
    padding: 25px;
    border-radius: 10px;
    width: calc(33.33% - 27px);
}
.tb-star-avis {
    display: flex;
    gap: 4px;
    padding: 10px 0 6px 0;
}
.tb-star-avis i {
    color: var(--star-color);
}
.tb-name-avis {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
}



@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
      z-index: 99;
    }
    .menu-tb1{
        height: 60px;    
    }
    .menu-tb1 .tb-content-menu {
        display: none;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        background: var(--dark-color);
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        padding: 10px;
    }
    .menu-tb1 .tb-content-menu.open {
        display: flex;
        width: 100%;
        height: 100vh;
        top: 0;
        padding: 40px;
    }
    .banniere-rs {
        position: relative;
        padding: 0;
    }
    .banniere-rs ul {
        flex-direction: row !important;
        height: auto;
        justify-content: flex-start;
        margin-top: 25px;
    }
    .s1-tb1 {
        flex-direction: column-reverse;
    }
    .s1-tb1 > div {
        width: 100%;
    }
    .s2-tb1 li {
        width: 100% !important;
    }
    .s1-tb1 {
        padding: 40px 0;
    }
    .marquee-content {
        animation: marquee 20s linear infinite;
    }
    body.menu-open {
        overflow: hidden;
    }
    .menu-tb1 ul {
        flex-direction: column;
        gap: 15px;
    }
    .menu-tb1 ul li a {
        font-size: 20px;
        line-height: 30px;
        text-transform: initial;
    }
    .tb-portfolio .tb-list-portfolio, .tb-sect-avis, .tb-sect-contact {
        flex-direction: column;
    }
    .tb-portfolio .tb-list-portfolio .tb-bloc-portfolio, .tb-sect-avis .tb-bloc-avis, .tb-infos-contact, .tb-form-contact {
        width: 100%;
    }
    .tb-portfolio .tb-list-portfolio .tb-bloc-portfolio {
        height: 400px;
    }
    .tb-contact, .tb-avis, .tb-portfolio, .tb-portfolio-img {
        padding-top: 40px;
    }
    .tb-home-contact, .s3-tb1 {
        flex-direction: column;
    }
    .s3-tb1 .s3-tb1-col1, .s3-tb1 .home-img-portfolio {
        width: 100%;
    }
    .s3-tb1 .s3-tb1-col1 {
        position: relative;
        top: auto;
    }
    .s3-tb1 .home-img-portfolio {
        padding-top: 0;
    }
    .s4-tb1 {
        padding-top: 40px;
    }
    .s2-tb1 {
        padding-bottom: 40px;
    }
    .s4-tb1 .tb-btn {
        text-align: center;
    }
    .tb-home-contact {
        gap: 15px;
    }
    
    
    .bar-settings-theme {flex-direction: column; height: auto; align-items: flex-start; width: 100%; bottom: 0; left: 0; border-radius: 10px 10px 0 0;}
    .bar-settings-theme > div {border-right: none !important; margin-right: 0 !important; padding-right: 0 !important; width: 100%;}
    .bar-settings-theme > div .listing-setting-theme {flex: 1; justify-content: flex-start;}
    .bar-settings-theme > div .listing-setting-theme select {width: 100%; color: black !important;}
    .bar-settings-theme > .button-settings-theme {justify-content: flex-end;}
    .bar-settings-theme.open > .button-settings-theme i::before {content: "\f00d";}
    .bar-settings-theme.close {height: 50px; width: 50px; left: auto; bottom: 10px; right: 10px; align-items: center; justify-content: center; border-radius: 10px; text-align: center; padding: 0;}
    .bar-settings-theme.close .select-color-theme, .bar-settings-theme.close .select-text-font, .bar-settings-theme.close .select-title-font  {display: none;}
    .bar-settings-theme.close .button-settings-theme {justify-content: center; padding: 0;}
    .bar-settings-theme.close .button-settings-theme i {font-size: 22px;}
    .bar-settings-theme > .button-settings-theme:hover .fa-gear-complex {transform: none;}
    
}