/*--------------------------------------------------------------
  Template Name: Simply Construction HTML Template.
  Template URI: #
  Description: Simply Construction is a unique website template designed in HTML with a simple & beautiful look. There is an excellent solution for creating clean, wonderful and trending material design corporate, corporate any other purposes websites.
  Author: DevItems
  Version: 1.0
---------------------------------------------------------------*/

/* ----------------------------------------------------
	You can put your custom css code here: 
-------------------------------------------------------*/

/* Styles pour le navbar fixe */
.sticky__header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Style pour le menu principal */
.main__menu__nav {
    height: 80px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Style pour la liste du menu */
.main__menu {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Style pour les éléments du menu */
.main__menu > li {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin: 0;
}

.main__menu > li > a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

/* Effet de soulignement au survol */
.main__menu > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff5e14;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.main__menu > li > a:hover::after {
    width: 100%;
}

/* Style actif */
.main__menu > li.active > a {
    color: #ff5e14;
}

.main__menu > li.active > a::after {
    width: 100%;
}

/* Espacement entre les éléments */
.main__menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* Style pour le logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

/* Ajustement pour le logo en mode sticky */
.is-sticky .logo img {
    max-height: 50px;
}

/* Style pour la barre de recherche */
.htc__header__search {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.htc__header__search input {
    height: 40px;
    margin: auto 0;
}

.htc__header__search a {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation lors du scroll */
.is-sticky .sticky__header {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.95);
}

/* Style pour le menu mobile */
.mobile-menu {
    background: white;
    padding: 15px;
}

/* Ajustements responsive */
@media only screen and (max-width: 767px) {
    .sticky__header {
        padding: 10px 0;
    }
    
    .logo {
        padding: 5px 0;
    }
    
    .htc__header__search {
        display: none;
    }
    
    .bradcaump-title {
        font-size: 30px !important;
    }
}

/* Responsive */
@media only screen and (max-width: 991px) {
    .main__menu > li {
        margin: 0 5px;
    }
    
    .main__menu > li > a {
        font-size: 14px;
        padding: 8px 3px;
    }
}

/* Ajustement du conteneur principal */
.mainmenu__wrap {
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Ajustement de la rangée */
.mainmenu__wrap .row {
    width: 100%;
    display: flex;
    align-items: center;
}

/* Ajustement des colonnes */
.mainmenu__wrap .col-md-2,
.mainmenu__wrap .col-md-8 {
    height: 80px;
    display: flex;
    align-items: center;
}

/* Modern Design Enhancements */

/* Header Styles */
.htc-header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.mainmenu__wrap {
    transition: all 0.3s ease;
}

.main__menu > li > a {
    transition: all 0.3s ease;
    position: relative;
}

.main__menu > li > a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main__menu > li > a:hover:after {
    width: 100%;
}

/* Hero Section Enhancement with Centered Content */
.ht__bradcaump__area {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    text-align: center;
}

.ht__bradcaump__wrap {
    animation: fadeInUp 1s ease;
    width: 100%;
    padding: 60px 20px;
    padding-bottom: 120px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bradcaump__inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bradcaump-title,
.page__title,
.section__title h2 {
    font-size: 5em;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.bradcaump-inner {
    font-size: 1.4em;
    color: #fff;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.breadcrumb-item {
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.breadcrumb-item:hover {
    color: #fcc236;
    transform: scale(1.05);
}

.brd-separetor {
    color: #fff;
    margin: 0 15px;
    font-size: 1.2em;
    display: inline-block;
}

/* Responsive Design with Better Centering */
@media only screen and (max-width: 1400px) {
    .ht__bradcaump__area {
        min-height: 600px;
    }
    
    .bradcaump-title {
        font-size: 4.5em;
    }
}

@media only screen and (max-width: 1200px) {
    .ht__bradcaump__area {
        min-height: 550px;
    }
    
    .bradcaump-title {
        font-size: 4em;
        padding: 0 20px;
    }
    
    .bradcaump-inner {
        font-size: 1.3em;
    }
}

@media only screen and (max-width: 992px) {
    .ht__bradcaump__area {
        min-height: 500px;
}

.bradcaump-title {
    font-size: 3.5em;
        padding: 0 15px;
    }
    
    .bradcaump-inner {
        font-size: 1.2em;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media only screen and (max-width: 768px) {
    .ht__bradcaump__area {
        min-height: 400px;
    }
    
    .bradcaump-title {
        font-size: 3em;
    margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .bradcaump-inner {
        font-size: 1.1em;
        padding: 0 10px;
    }
    
    .ht__bradcaump__wrap {
        padding: 40px 15px 80px;
    }
}

@media only screen and (max-width: 480px) {
    .ht__bradcaump__area {
        min-height: 350px;
    }
    
    .bradcaump-title {
        font-size: 2.5em;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .bradcaump-inner {
        font-size: 1em;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .breadcrumb-item {
        font-size: 1em;
    }
    
    .brd-separetor {
        margin: 0 8px;
    }
    
    .ht__bradcaump__wrap {
        padding: 30px 10px 60px;
    }
}

/* Enhanced background overlay with gradient */
[data--black__overlay]:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.6)
    ) !important;
    z-index: 1;
}

/* Service Section Modernization */
.service__details {
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service__details:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service__feature li {
    padding: 12px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.service__feature li i {
    margin-right: 10px;
    color: var(--theme-color);
    font-size: 1.2em;
}

.service__feature li:hover {
    transform: translateX(10px);
    color: var(--theme-color);
}

/* Process Section Enhancement */
.process {
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.process:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.process:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(45deg, rgba(var(--theme-color-rgb), 0.1), transparent);
    transition: all 0.4s ease;
}

.process:hover:before {
    height: 100%;
}

.process__icon {
    margin-bottom: 20px;
    transform: scale(1);
    transition: all 0.3s ease;
}

.process:hover .process__icon {
    transform: scale(1.1);
}

/* Contact Form Modernization */
.contact-form-wrap {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-box input,
.contact-box textarea {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-box input:focus,
.contact-box textarea:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb), 0.1);
}

.htc__btn {
    border-radius: 30px;
    padding: 12px 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.htc__btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.htc__btn:hover:before {
    width: 100%;
}

/* Footer Enhancement */
.footer {
    position: relative;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer:hover {
    transform: translateY(-5px);
}

.ft__menu li a {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.ft__menu li a:before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.ft__menu li a:hover {
    padding-left: 20px;
}

.ft__menu li a:hover:before {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Image Handling */
.service__thumb img {
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.service__thumb img:hover {
    transform: scale(1.02);
}

/* Custom Color Variables */
:root {
    --theme-color: #f1c40f;
    --theme-color-rgb: 241, 196, 15;
}

/* Additional Modern Elements */
.section__title {
    position: relative;
    margin-bottom: 50px;
}

.section__title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--theme-color);
    border-radius: 3px;
}

.title__line {
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.text--theme {
    color: var(--theme-color);
    font-weight: bold;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Card Styles */
.service__feature {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .bradcaump-title {
        font-size: 2.5em;
    }
    
    .service__details,
    .process {
        margin-bottom: 30px;
    }
}

/* Service Gallery Styles */
.service__gallery {
    padding: 80px 0;
    background: #f8f9fa;
    margin: 40px 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery__item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
    margin: 10px;
}

.gallery__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* Responsive Gallery */
@media only screen and (max-width: 1400px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
}

@media only screen and (max-width: 1200px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media only screen and (max-width: 992px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .gallery__item {
        aspect-ratio: 4/3;
    }
}

@media only screen and (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .gallery__item {
        aspect-ratio: 16/9;
    }
}

@media only screen and (max-width: 480px) {
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .gallery__item {
        aspect-ratio: 4/3;
    }
}

/* Additional Styles */
.submit.htc__btn {
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.slider__btn {
    text-align: center;
}

.about__btn {
    text-align: center;
}

.clint__submit__btn {
    text-align: center;
}

.contact-btn {
    text-align: center;
}

/* For ensuring that icons in buttons are also centered */
.htc__btn i {
    vertical-align: middle;
    margin-left: 5px;
}

/* Global Page Headers Enhancement */
.ht__bradcaump__area,
.page__header,
.section__header {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    text-align: center;
}

.ht__bradcaump__wrap,
.page__header__wrap,
.section__header__wrap {
    animation: fadeInUp 1s ease;
    width: 100%;
    padding: 60px 20px 120px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bradcaump__inner,
.page__header__inner,
.section__header__inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bradcaump-title,
.page__title,
.section__title h2 {
    font-size: 5em;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.bradcaump-inner,
.page__header__content,
.section__header__content {
    font-size: 1.4em;
    color: #fff;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.breadcrumb-item,
.header__link {
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.breadcrumb-item:hover,
.header__link:hover {
    color: #fcc236;
    transform: scale(1.05);
}

.brd-separetor,
.header__separator {
    color: #fff;
    margin: 0 15px;
    font-size: 1.2em;
    display: inline-block;
}

/* Enhanced background overlay with gradient for all headers */
[data--black__overlay]:before,
.page__header:before,
.section__header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.6)
    ) !important;
    z-index: 1;
}

/* Global Responsive Design */
@media only screen and (max-width: 1400px) {
    .ht__bradcaump__area,
    .page__header,
    .section__header {
        min-height: 600px;
    }
    
    .bradcaump-title,
    .page__title,
    .section__title h2 {
        font-size: 4.5em;
    }
}

@media only screen and (max-width: 1200px) {
    .ht__bradcaump__area,
    .page__header,
    .section__header {
        min-height: 550px;
    }
    
    .bradcaump-title,
    .page__title,
    .section__title h2 {
        font-size: 4em;
        padding: 0 20px;
    }
    
    .bradcaump-inner,
    .page__header__content,
    .section__header__content {
        font-size: 1.3em;
    }
}

@media only screen and (max-width: 992px) {
    .ht__bradcaump__area,
    .page__header,
    .section__header {
        min-height: 500px;
    }
    
    .bradcaump-title,
    .page__title,
    .section__title h2 {
        font-size: 3.5em;
        padding: 0 15px;
    }
    
    .bradcaump-inner,
    .page__header__content,
    .section__header__content {
    font-size: 1.2em;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media only screen and (max-width: 768px) {
    .ht__bradcaump__area,
    .page__header,
    .section__header {
        min-height: 400px;
    }
    
    .bradcaump-title,
    .page__title,
    .section__title h2 {
        font-size: 3em;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .bradcaump-inner,
    .page__header__content,
    .section__header__content {
        font-size: 1.1em;
        padding: 0 10px;
    }
    
    .ht__bradcaump__wrap,
    .page__header__wrap,
    .section__header__wrap {
        padding: 40px 15px 80px;
    }
}

@media only screen and (max-width: 480px) {
    .ht__bradcaump__area,
    .page__header,
    .section__header {
        min-height: 350px;
    }
    
    .bradcaump-title,
    .page__title,
    .section__title h2 {
        font-size: 2.5em;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .bradcaump-inner,
    .page__header__content,
    .section__header__content {
        font-size: 1em;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .breadcrumb-item,
    .header__link {
        font-size: 1em;
    }
    
    .brd-separetor,
    .header__separator {
        margin: 0 8px;
    }
    
    .ht__bradcaump__wrap,
    .page__header__wrap,
    .section__header__wrap {
        padding: 30px 10px 60px;
    }
}

/* Animation for all headers */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific styles for contact page header */
.contact-header .bradcaump-title,
.contact-header .page__title {
    font-size: 4em;
}

@media only screen and (max-width: 1200px) {
    .contact-header .bradcaump-title,
    .contact-header .page__title {
        font-size: 3.5em;
    }
}

@media only screen and (max-width: 992px) {
    .contact-header .bradcaump-title,
    .contact-header .page__title {
        font-size: 3em;
    }
}

@media only screen and (max-width: 768px) {
    .contact-header .bradcaump-title,
    .contact-header .page__title {
        font-size: 2.5em;
    }
}

@media only screen and (max-width: 480px) {
    .contact-header .bradcaump-title,
    .contact-header .page__title {
        font-size: 2em;
    margin-bottom: 10px;
}

    .contact-header .bradcaump-inner,
    .contact-header .page__header__content {
    font-size: 0.9em;
    }
    
    .contact-header .breadcrumb-item,
    .contact-header .header__link {
        font-size: 0.9em;
    }
}

/* Contact Information Container Styles */
.contact__information {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.contact__info__wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.single__contact__info {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.single__contact__info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact__icon {
    font-size: 2.5em;
    color: var(--theme-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.single__contact__info:hover .contact__icon {
    transform: scale(1.1);
}

.contact__title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.contact__info {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Contact Information */
@media only screen and (max-width: 1200px) {
    .contact-form-wrap,
    .contact__information {
        max-width: 900px;
    }
}

@media only screen and (max-width: 992px) {
    .contact-form-wrap,
    .contact__information {
        max-width: 700px;
    }
    
    .contact__info__wrap {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .single__contact__info {
        padding: 25px;
    }
    
    .contact__title {
        font-size: 1.3em;
    }
    
    .contact__info {
        font-size: 1em;
    }
}

@media only screen and (max-width: 768px) {
    .contact-form-wrap,
    .contact__information {
        max-width: 100%;
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .contact__info__wrap {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .single__contact__info {
        padding: 20px;
    }
    
    .contact__icon {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .contact__title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .contact__info {
        font-size: 0.95em;
    }
}

@media only screen and (max-width: 480px) {
    .contact__info__wrap {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .single__contact__info {
        padding: 15px;
    }
    
    .contact__icon {
        font-size: 1.8em;
        margin-bottom: 12px;
    }
    
    .contact__title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .contact__info {
        font-size: 0.9em;
    }
    
    .contact-form-wrap,
    .contact__information {
        margin: 20px auto;
        padding: 0 10px;
    }
}

/* Team Section Styles */
.htc__team__area {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.team__intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    color: #666;
    line-height: 1.6;
}

.organigramme {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.niveau {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.poste {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.carte {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.carte:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.carte .photo-container {
    width: 100%;
    padding-top: 120%; /* Ratio plus haut pour mieux voir les visages */
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
}

.carte .photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Ajusté pour mieux cadrer les visages */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carte:hover .photo {
    transform: translate(-50%, -50%) scale(1.08);
}

.carte .content {
    padding: 25px 20px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.carte .content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--theme-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carte:hover .content::before {
    opacity: 1;
}

.carte h3 {
    margin: 0 0 8px;
    font-size: 1.4em;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.carte:hover h3 {
    color: var(--theme-color);
}

.carte p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Responsive Design Improvements */
@media only screen and (max-width: 1200px) {
    .carte .photo-container {
        padding-top: 115%;
    }
    
    .carte h3 {
        font-size: 1.3em;
    }
}

@media only screen and (max-width: 992px) {
    .carte .photo-container {
        padding-top: 110%;
    }
    
    .carte .content {
        padding: 20px 15px;
    }
    
    .carte h3 {
        font-size: 1.2em;
    }
}

@media only screen and (max-width: 768px) {
    .poste {
        min-width: 45%;
        max-width: 45%;
    }
    
    .carte .photo-container {
        padding-top: 120%;
    }
    
    .carte .content {
        padding: 18px 12px;
    }
}

@media only screen and (max-width: 480px) {
    .poste {
        min-width: 100%;
        max-width: 100%;
    }
    
    .carte .photo-container {
        padding-top: 130%; /* Plus haut sur mobile pour mieux voir les visages */
    }
    
    .carte .photo {
        object-position: center 15%; /* Ajusté pour mobile */
    }
    
    .carte h3 {
        font-size: 1.15em;
    }
    
    .carte p {
        font-size: 0.9em;
    }
}

/* Amélioration de la section des ouvriers */
.ouvriers-section {
    background: linear-gradient(135deg, var(--theme-color), #f1c40f);
    border-radius: 20px;
    padding: 35px;
    margin-top: 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.2);
    transition: all 0.4s ease;
}

.ouvriers-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.25);
}

.mention-ouvriers h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 700;
}

.mention-ouvriers p {
    font-size: 1.15em;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.mention-ouvriers span {
    margin: 0 12px;
    font-weight: bold;
    opacity: 0.9;
}

.text__shape {
    position: absolute;
    right: -100px;
    bottom: 0;
    font-size: 150px;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    z-index: -1;
}

/* Responsive Design for Team Section */
@media only screen and (max-width: 1200px) {
    .niveau {
        gap: 20px;
    }
    
    .poste {
        min-width: 220px;
    }
    
    .carte .photo-container {
        padding-top: 100%;
    }
}

@media only screen and (max-width: 992px) {
    .htc__team__area {
        padding: 60px 0;
    }
    
    .niveau {
        gap: 15px;
    }
    
    .poste {
        min-width: 200px;
    }
    
    .carte .photo-container {
        padding-top: 100%;
    }
    
    .carte h3 {
        font-size: 1.2em;
    }
    
    .mention-ouvriers h2 {
        font-size: 1.8em;
    }
}

@media only screen and (max-width: 768px) {
    .niveau {
        gap: 20px;
    }
    
    .poste {
        min-width: 45%;
        max-width: 45%;
    }
    
    .carte .photo-container {
        padding-top: 100%;
    }
    
    .carte h3 {
        font-size: 1.2em;
    }
    
    .mention-ouvriers h2 {
        font-size: 1.6em;
    }
    
    .mention-ouvriers p {
        font-size: 1em;
    }
    
    .text__shape {
        font-size: 100px;
        right: -50px;
    }
}

@media only screen and (max-width: 480px) {
    .htc__team__area {
        padding: 40px 0;
    }
    
    .poste {
        min-width: 100%;
        max-width: 100%;
    }
    
    .carte .photo-container {
        padding-top: 100%;
    }
    
    .carte h3 {
        font-size: 1.1em;
    }
    
    .ouvriers-section {
        padding: 20px;
    }
    
    .mention-ouvriers h2 {
        font-size: 1.4em;
    }
    
    .mention-ouvriers p {
        font-size: 0.9em;
    }
    
    .text__shape {
        display: none;
    }
}

/* Villa Images Section - Enhanced */
.villa-images-section {
    padding: 0 0 40px;
    width: 100%;
}

.villa-images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0;
}

.villa-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    aspect-ratio: 16/10;
}

.villa-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.villa-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.villa-image-wrapper:hover .villa-image {
    transform: scale(1.08);
}

/* Responsive Enhancements */
@media only screen and (min-width: 1400px) {
    .villa-images-container {
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .villa-image-wrapper {
        aspect-ratio: 16/9;
    }
}

@media only screen and (max-width: 1200px) {
    .villa-images-container {
        gap: 20px;
        padding: 0 20px;
    }
}

@media only screen and (max-width: 992px) {
    .villa-images-section {
        padding: 0 0 30px;
    }
    
    .villa-images-container {
        gap: 15px;
    }
    
    .villa-image-wrapper {
        aspect-ratio: 4/3;
    }
}

@media only screen and (max-width: 768px) {
    .villa-images-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
        gap: 20px;
        padding: 0 15px;
    }
    
    .villa-image-wrapper {
        aspect-ratio: 16/10;
    }
}

@media only screen and (max-width: 480px) {
    .villa-images-section {
        padding: 0 0 20px;
    }
    
    .villa-images-container {
        gap: 15px;
        padding: 0 10px;
    }
    
    .villa-image-wrapper {
        aspect-ratio: 4/3;
        border-radius: 8px;
    }
    
    .villa-image-wrapper:hover {
        transform: translateY(-3px);
    }
}

/* Project Details Enhancement */
.project__details__content {
    margin-top: 40px;
}

@media only screen and (max-width: 768px) {
    .project__details__content {
        margin-top: 30px;
    }
}

@media only screen and (max-width: 480px) {
    .project__details__content {
        margin-top: 20px;
    }
}

/* Project Details Thumb Enhancement */
.project__details__thumb {
    margin-bottom: 30px;
}

.project__details__thumb__wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project__details__thumb__wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project__details__thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project__details__thumb__wrap:hover img {
    transform: scale(1.05);
}

/* Villa Images Section - Enhanced */
.villa-images-section {
    padding: 0 0 40px;
    width: 100%;
}

.villa-images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0;
}

/* Responsive Adjustments */
@media only screen and (max-width: 992px) {
    .project__details__thumb {
        margin-bottom: 25px;
    }
}

@media only screen and (max-width: 768px) {
    .project__details__thumb {
        margin-bottom: 20px;
    }
    
    .project__details__thumb__wrap {
        border-radius: 10px;
    }
}

@media only screen and (max-width: 480px) {
    .project__details__thumb {
        margin-bottom: 15px;
    }
    
    .project__details__thumb__wrap {
        border-radius: 8px;
    }
    
    .project__details__thumb__wrap:hover {
        transform: translateY(-3px);
    }
}

/* Styles spécifiques pour la page Villa Altésia en version mobile */
@media (max-width: 768px) {
    .project__details__thumb__wrap img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .villa-images-section {
        margin: 20px 0;
    }

    .villa-images-container {
        flex-direction: column;
        gap: 15px;
    }

    .villa-image-wrapper {
        width: 100%;
        height: 250px;
    }

    .villa-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project__details__content {
        padding: 0 15px;
    }

    .project__details__content h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .pro__details__description {
        margin-top: 30px;
    }

    .pro__details__list {
        margin-bottom: 20px;
    }

    .pro__details__list li {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

    .project__information {
        margin-top: 30px;
        padding: 20px;
    }

    .project__information__list li {
        font-size: 0.95em;
        padding: 10px 0;
    }

    .project__price__details {
        margin-top: 20px;
        padding: 20px;
    }

    .project__price__inner .price {
        font-size: 1.2em;
    }

    .project__btn .htc__btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .project__thumb {
        margin-bottom: 15px;
    }

    .project__thumb img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .project__details__content h2 {
        font-size: 1.5em;
    }

    .villa-image-wrapper {
        height: 200px;
    }

    .project__thumb img {
        height: 180px;
    }

    .project__price__inner .price {
        font-size: 1.1em;
    }
}

/* Styles pour le slider avant/après */
.slider {
    position: relative;
    height: 0;
    padding-bottom: 66.666666667%;
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: calc(100% - 20px);
    float: none;
    margin-bottom: 30px;
}

.slider:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.slider__after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-size: cover;
    pointer-events: none;
}

.slider__before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 50%;
    height: 100%;
    background-size: cover;
    pointer-events: none;
    overflow: hidden;
}

.slider__before:before {
    content: 'Avant';
    position: absolute;
    left: 8px;
    top: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}

.slider__after:before {
    content: 'Après';
    position: absolute;
    right: 8px;
    top: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}

.slider__separator {
    position: absolute;
    left: 50%;
    width: 2px;
    top: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 5px 10px 0px rgba(0,0,0,0.5);
    cursor: ew-resize;
    z-index: 3;
    transform: translateX(-50%);
}

.slider__range {
    position: absolute;
    width: 100%;
    bottom: 0;
    z-index: 3;
    appearance: none;
    background: rgba(255,255,255,0.3);
    outline: none;
    margin: 0;
}

.slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 16px;
    background: white;
}

.slider__range::-moz-slider-thumb {
    -moz-appearance: none;
    width: 12px;
    height: 16px;
    background: white;
}

.slider--tokyo .slider__separator:before {
    content: 'Glisser';
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: solid 2px white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

.slider--tokyo .slider__range {
    display: none;
}

.slider--tokyo .slider__before:before,
.slider--tokyo .slider__after:before {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: 8px;
    margin-right: 8px;
}

/* Responsive Design pour le slider */
@media only screen and (max-width: 992px) {
    .slider {
        width: calc(100% - 20px);
        margin-bottom: 25px;
    }

    .slider__before:before,
    .slider__after:before {
        font-size: 0.9em;
        padding: 6px 14px;
        top: 15px;
    }

    .slider__separator:before {
        width: 70px;
        height: 70px;
        font-size: 0.8em;
    }
}

@media only screen and (max-width: 768px) {
    .slider {
        width: calc(100% - 20px);
        margin-bottom: 20px;
    }

    .slider__before:before {
        left: 15px;
    }

    .slider__after:before {
        right: 15px;
    }

    .slider__separator:before {
        width: 60px;
        height: 60px;
    }
}

@media only screen and (max-width: 480px) {
    .slider {
        width: 100%;
        margin: 0 0 15px 0;
    }

    .slider__before:before,
    .slider__after:before {
        font-size: 0.8em;
        padding: 5px 12px;
        top: 10px;
    }

    .slider__before:before {
        left: 10px;
    }

    .slider__after:before {
        right: 10px;
    }

    .slider__separator:before {
        width: 50px;
        height: 50px;
        font-size: 0.7em;
    }
}
