
/* ========================================
   RESPONSIVE DESIGN SYSTEM
   Mobile First Approach
   ======================================== */

/* Variables CSS pour les breakpoints */
:root {
    --xs: 320px;  /* Petits mobiles */
    --sm: 576px;  /* Mobiles */
    --md: 768px;  /* Tablettes */
    --lg: 992px;  /* Petits écrans */
    --xl: 1200px; /* Desktop */
    --xxl: 1400px; /* Grands écrans */
    --xxxl: 1920px; /* Très grands écrans */
}

/* ========================================
   NAVIGATION RESPONSIVE
   ======================================== */

/* Navigation mobile par défaut */
#pgl-navbar-main,
#pgl_navbar_main_menu {
    height: 60px;
    position: fixed;
	padding: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#navbar_desktop_menu_container,
#navbar_desktop_menu_scroll_container {
    display: none !important;
}

#navbar_mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.navbar-mobile-img img,
.navbar-mobile-img-menu img {
    height: 55px;
    width: auto;
}

.navbar-toggle {
    display: block;
    background: transparent;
    border: none;
    padding: 8px;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Overlay menu mobile */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0, 0.95);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.overlay-content {
    position: relative;
    top: 15%;
    width: 100%;
    text-align: center;
    padding: 20px;
}

.overlay a {
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: all 0.3s ease;
}

.overlay .closebtn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
}

/* ========================================
   CAROUSEL RESPONSIVE
   ======================================== */

.carousel-content {
    padding: 20px;
    width: 100%;
}

.carousel-main-title {
    font-size: 1.8rem;
    text-align: center;
}

.carousel-search-tabs {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.carousel-search-tab {
    padding: 8px 20px;
    font-size: 12px;
}

.carousel-search-container {
    padding: 15px;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 100%;
}

.carousel-search-form {
    flex-direction: column;
    gap: 10px;
}

.carousel-search-field {
    width: 100%;
}

.carousel-search-select,
.carousel-search-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

.carousel-property-categories {
    gap: 15px;
    margin-top: 20px;
}

.carousel-category-item {
    flex: 0 0 calc(33.333% - 10px);
}

.carousel-category-icon {
    width: 45px;
    height: 45px;
}

.carousel-category-icon i {
    font-size: 18px;
}

.carousel-category-label {
    font-size: 10px;
}

/* ========================================
   SECTION ACCUEIL RESPONSIVE
   ======================================== */

/* Section agence */
.section-property-overview-home-agency {
    padding: 30px 0;
}

.main-title-agency h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.subtitle-agency {
    font-size: 12px;
}

.feature-block-home-agency {
    margin-bottom: 30px;
}

.feature-image-home-agency {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    display: block;
	border-radius: 50%;
}
.feature-title-home-agency {
    font-size: 1.3rem;
    text-align: center;
}

.feature-text-home-agency {
    font-size: 14px;
    text-align: center;
}

.feature-icons-home-agency {
    justify-content: center;
    margin-top: 15px;
}

/* Section nos valeurs */
.nos-valeurs-container {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 15px;
}

.nos-valeurs-box {
    padding: 15px;
}

.nos-valeurs-box h3 {
    display: flex;
    font-size: 1.1rem;
    gap: 10px;
}

.nos-valeurs-box h3 img {
    width: 20px;
    height: 20px;
}

/* Section coup de coeur */
.block-cc-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
}

.block-cc {
    width: 100%;
    padding: 0;
}

.img-coup-de-coeur > a > .img-cc-main {
    height: 250px;
}

.container-cc {
    padding: 15px;
}

.label-cc {
    font-size: 11px;
    padding: 5px 15px;
}

.price-cc {
    font-size: 18px;
}

.title-cc {
    font-size: 16px;
    padding: 10px;
}

.amenities-cc-container {
    flex-wrap: wrap;
    gap: 10px;
}

.amenities-cc {
    flex: 1 1 30%;
    font-size: 14px;
}

.amenities-cc-bar {
    display: none;
}

/* Section gestion */
#section_gestion {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.h4-subtitle {
    font-size: 1rem;
}

#section_gestion p {
    font-size: 14px;
}

#section_gestion img {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Section transaction */
#section_syndic {
    padding: 30px 0;
}

.syndic-background {
    height: 200px;
}

.syndic-img img {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
}

.transaction-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.transaction-icon-container {
    width: 45px;
    height: 45px;
}

.transaction-service-title {
    font-size: 16px;
}

.transaction-service-description {
    font-size: 13px;
}

/* Section estimation */
#section_estimation {
    padding: 30px 15px;
    text-align: center;
}

.estimation-bloc-main-img img {
    width: 150px;
}

/* Section contact */
#section_formulaire_contact {
    margin-top: 3rem;
    padding: 0 15px;
}

#contact-form .form-control,
#contact-form .form-control-agency {
    height: 40px;
    font-size: 14px;
}

#contact-form .textarea-control-agency {
    font-size: 14px;
}

/* Footer */
.footer-bar-container {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.footer-bar-block {
    text-align: center;
}

.footer-bar-block-title {
    font-size: 1.1rem;
}

#home_footer {
    padding: 30px 15px;
}

.footer-logo img {
    width: 180px;
}

@media (max-width: 1800px) {
	.carousel-scroll-indicator {
		display: none;
	}
}

@media (min-width: 1200px) and (max-width: 1600px) {
	.carousel-content {
		position: absolute;
		top: 80px;
	}
	#carousel_search_container {
		margin-top: 0 !important;
	}
}

@media (min-width: 1200px) and (max-width: 1400px) {
	#pgl-navbar-main, #pgl_navbar_main_menu {
		padding: 0 5px !important;
	}
	#navbar_desktop_menu_logo img {
        width: 80px !important;
    }
	.btn-extranet {
        padding: 20px 15px;
        font-size: 15px;
    }
	#navbar_desktop_menu_links a {
        font-size: 1rem !important;
    }
	#navbar_desktop_menu_links {
        gap: 30px !important;
    }
	.carousel-content {
		padding: 60px !important;
	}
	.carousel-main-title {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
	#navbar_desktop_menu_logo img {
        width: 60px !important;
    }
	.carousel-main-title {
        font-size: 2.45rem !important;
    }
	#carousel_search_container {
		margin-top: 0 !important;
	}
	#pgl-navbar-main, #pgl_navbar_main_menu {
		padding: 0 !important;
	}
	.btn-extranet {
        padding: 15px 10px !important;
        font-size: 12.5px !important;
    }
	.carousel-search-container {
        padding: 15px 20px !important;
    }
	.block-cc-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
	#section_syndic {
        height: 750px !important;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
	.feature-block-home-agency {
		padding: 0;
	}
	#navbar_mobile {
		height: 90px;
	}
	.carousel-property-categories {
		display: none;
	}
	.transaction-services-grid {
		padding: 1rem;
	}
}


/* ========================================
   TABLETTES (768px et plus)
   ======================================== */

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }


    /* Navigation tablette */
    #pgl-navbar-main,
    #pgl_navbar_main_menu {
        height: 75px;
        padding: 0;
    }

    .navbar-mobile-img img,
    .navbar-mobile-img-menu img {
        height: 60px;
    }

    /* Carousel tablette */
    .carousel-main-title {
        font-size: 2.5rem;
    }

    .carousel-search-tabs {
        flex-wrap: nowrap;
    }

    .carousel-search-tab {
        padding: 10px 25px;
        font-size: 13px;
    }

    .carousel-search-container {
        padding: 20px 30px;
        max-width: 600px;
    }

    .carousel-search-form {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .carousel-search-field {
        flex: 1 1 45%;
        min-width: 200px;
    }

    .carousel-property-categories {
        flex-wrap: nowrap;
        gap: 30px;
    }

    .carousel-category-item {
        flex: 0 0 auto;
    }

    .carousel-category-icon {
        width: 55px;
        height: 55px;
    }

    .carousel-category-icon i {
        font-size: 22px;
    }

    .carousel-category-label {
        font-size: 12px;
    }

    /* Sections tablette */
    .main-title-agency h2 {
        font-size: 2rem;
    }

    .feature-block-home-agency {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .feature-image-home-agency {
		height: 300px;
		width: 300px;
    }

    .feature-title-home-agency {
        font-size: 1.6rem;
        text-align: left;
    }

    .feature-text-home-agency {
        text-align: left;
    }

    .feature-icons-home-agency {
        justify-content: flex-start;
    }

    /* Nos valeurs tablette */
    .nos-valeurs-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
    }

    /* Coup de coeur tablette */
    .block-cc-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .img-coup-de-coeur > a > .img-cc-main {
        height: 280px;
    }

    /* Transaction tablette */
    .transaction-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Footer tablette */
    .footer-bar-container {
        flex-direction: row;
        justify-content: space-around;
        padding: 30px;
    }

    .footer-bar-block {
        text-align: left;
    }
}

/* ========================================
   DESKTOP PETIT (992px et plus)
   ======================================== */

@media (min-width: 992px) {
    html {
        font-size: 15px;
    }

    /* Navigation desktop */
    #navbar_mobile {
        display: none !important;
    }

    #navbar_desktop_menu_container {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    #pgl-navbar-main,
    #pgl_navbar_main_menu {
        height: 90px;
        padding: 0 40px;
    }

    #navbar_desktop_menu_logo img {
        width: 160px;
    }

    #navbar_desktop_menu_links {
        gap: 25px;
    }

    #navbar_desktop_menu_links a {
        font-size: 0.95rem;
    }

    .btn-extranet {
        padding: 15px 25px;
        font-size: 13px;
    }

    /* Carousel desktop */
    .carousel-main-title {
        font-size: 3.5rem;
    }

    .carousel-search-container {
        max-width: 800px;
        padding: 20px 40px;
    }

    .carousel-search-form {
        flex-wrap: nowrap;
        align-items: center;
    }

    .carousel-search-field {
        flex: 1;
        min-width: 140px;
    }

    .carousel-category-icon {
        width: 60px;
        height: 60px;
    }

    .carousel-category-icon i {
        font-size: 24px;
    }

    .carousel-category-label {
        font-size: 14px;
    }

    /* Sections desktop */
    .section-property-overview-home-agency {
        padding: 60px 0;
    }

    .main-title-agency h2 {
        font-size: 2.3rem;
    }

    .feature-image-home-agency {
        max-width: 400px;
        border-radius: 50%;
    }

    .feature-title-home-agency {
        font-size: 2rem;
    }

    .feature-text-home-agency {
        font-size: 15px;
    }

    /* Nos valeurs desktop */
    .nos-valeurs-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Coup de coeur desktop */
    .block-cc-container {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Section gestion */
    #section_gestion {
        margin-top: 5rem;
        margin-bottom: 0;
    }

    /* Transaction desktop */
    #section_syndic {
        display: flex;
        height: 600px;
    }

    .syndic-background {
        height: 550px;
    }

    .syndic-img img {
        position: absolute;
        top: -50px;
        right: 0;
        width: auto;
    }

    .transaction-icon-container {
        width: 60px;
        height: 60px;
    }

    .transaction-service-title {
        font-size: 18px;
    }

    .transaction-service-description {
        font-size: 14px;
    }

    /* Estimation desktop */
    .estimation-bloc-main-img img {
        width: 200px;
    }
}

/* ========================================
   DESKTOP STANDARD (1200px et plus)
   ======================================== */

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }

    #pgl-navbar-main,
    #pgl_navbar_main_menu {
        height: 120px;
        padding: 0 50px;
    }

    #navbar_desktop_menu_logo img {
        width: 180px;
    }

    #navbar_desktop_menu_links {
        gap: 40px;
    }

    #navbar_desktop_menu_links a {
        font-size: 1.1rem;
    }

    .btn-extranet {
        padding: 20px 30px;
        font-size: 14px;
    }

    /* Carousel grand écran */
    .carousel-main-title {
        font-size: 3rem;
    }

    .carousel-search-container {
        max-width: 900px;
    }

    .carousel-search-tab {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Sections grand écran */
    .main-title-agency h2 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .subtitle-agency {
        font-size: 14px;
    }

    .feature-title-home-agency {
        font-size: 2.2rem;
    }

    .feature-text-home-agency {
        font-size: 16px;
    }

    /* Coup de coeur grand écran */
    .block-cc-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .img-coup-de-coeur > a > .img-cc-main {
        height: 280px;
    }

    /* Footer grand écran */
    .footer-logo img {
        width: 250px;
    }
}

/* ========================================
   GRAND ÉCRAN (1400px et plus)
   ======================================== */

@media (min-width: 1400px) {

    #navbar_desktop_menu_links {
        gap: 45px;
    }

    #navbar_desktop_menu_links a {
        font-size: 1.12rem;
    }

    #navbar_desktop_menu_logo img {
        width: 75px;
    }

    .feature-block-home-agency {
        gap: 50px;
    }

    .feature-image-home-agency {
        width: 400px;
        height: 400px;
    }

    .feature-title-home-agency {
        font-size: 2.5rem;
    }
}

/* ========================================
   TRÈS GRAND ÉCRAN (1920px et plus)
   ======================================== */

@media (min-width: 1920px) {
    .main-title-agency h2 {
        font-size: 3rem;
    }

    .feature-title-home-agency {
        font-size: 1.8rem;
    }

    .feature-text-home-agency {
        font-size: 16px;
    }

    .block-cc-container {
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* ========================================
   UTILITAIRES RESPONSIVE
   ======================================== */

/* Classes d'affichage conditionnel */
@media (max-width: 767px) {
    .hidden-xs { display: none !important; }
    .visible-xs { display: block !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm { display: none !important; }
    .visible-sm { display: block !important; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hidden-md { display: none !important; }
    .visible-md { display: block !important; }
}

@media (min-width: 1200px) {
    .hidden-lg { display: none !important; }
    .visible-lg { display: block !important; }
}

/* Padding/Margin responsive */
@media (max-width: 767px) {
    .mt-xs-0 { margin-top: 0 !important; }
    .mt-xs-1 { margin-top: 0.5rem !important; }
    .mt-xs-2 { margin-top: 1rem !important; }
    .mt-xs-3 { margin-top: 1.5rem !important; }
    .mb-xs-0 { margin-bottom: 0 !important; }
    .mb-xs-1 { margin-bottom: 0.5rem !important; }
    .mb-xs-2 { margin-bottom: 1rem !important; }
    .mb-xs-3 { margin-bottom: 1.5rem !important; }
    .p-xs-0 { padding: 0 !important; }
    .p-xs-1 { padding: 0.5rem !important; }
    .p-xs-2 { padding: 1rem !important; }
    .p-xs-3 { padding: 1.5rem !important; }
}

@media (min-width: 768px) {
    .mt-sm-0 { margin-top: 0 !important; }
    .mt-sm-1 { margin-top: 0.5rem !important; }
    .mt-sm-2 { margin-top: 1rem !important; }
    .mt-sm-3 { margin-top: 2rem !important; }
    .mb-sm-0 { margin-bottom: 0 !important; }
    .mb-sm-1 { margin-bottom: 0.5rem !important; }
    .mb-sm-2 { margin-bottom: 1rem !important; }
    .mb-sm-3 { margin-bottom: 2rem !important; }
}

@media (min-width: 992px) {
    .mt-md-0 { margin-top: 0 !important; }
    .mt-md-1 { margin-top: 0.5rem !important; }
    .mt-md-2 { margin-top: 1rem !important; }
    .mt-md-3 { margin-top: 3rem !important; }
    .mb-md-0 { margin-bottom: 0 !important; }
    .mb-md-1 { margin-bottom: 0.5rem !important; }
    .mb-md-2 { margin-bottom: 1rem !important; }
    .mb-md-3 { margin-bottom: 3rem !important; }
}

/* Texte responsive */
@media (max-width: 767px) {
    .text-xs-left { text-align: left !important; }
    .text-xs-center { text-align: center !important; }
    .text-xs-right { text-align: right !important; }
}

@media (min-width: 768px) {
    .text-sm-left { text-align: left !important; }
    .text-sm-center { text-align: center !important; }
    .text-sm-right { text-align: right !important; }
}

/* Flexbox responsive */
@media (max-width: 767px) {
    .flex-xs-column { flex-direction: column !important; }
    .flex-xs-row { flex-direction: row !important; }
}

@media (min-width: 768px) {
    .flex-sm-column { flex-direction: column !important; }
    .flex-sm-row { flex-direction: row !important; }
}

/* ========================================
   OPTIMISATIONS PERFORMANCES
   ======================================== */

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimisation des animations mobile */
@media (max-width: 767px) {
    .animate__animated {
        animation-duration: 0.5s !important;
    }
    
    /* Désactiver certaines animations sur mobile pour les performances */
    .wow {
        animation: none !important;
    }
}

/* Smooth scroll sur tous les devices */
html {
    scroll-behavior: smooth;
}

/* Touch-friendly sur mobile */
@media (max-width: 991px) {
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Gestion de l'overflow sur mobile */
@media (max-width: 767px) {
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Print styles */
@media print {
    .hidden-print { display: none !important; }
}

/* Responsive pour l'overlay carousel */
@media (max-width: 992px) {
    .carousel-main-title {
        font-size: 2.8rem;
    }
    
    .carousel-search-container {
        padding: 15px 20px;
    }
    
    .carousel-property-categories {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .carousel-main-title {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .carousel-search-tabs {
        margin-bottom: 15px;
    }

    .carousel-search-tab {
        padding: 10px 25px;
        font-size: 13px;
        margin: 0 5px;
    }

    .carousel-search-container {
        padding: 15px 20px;
        border-radius: 25px;
    }

    .carousel-search-form {
        flex-direction: column;
    }

    .carousel-search-field {
        width: 100%;
    }

    .carousel-property-categories {
        gap: 20px;
        margin-bottom: 2rem;
    }

    .carousel-category-icon {
        width: 50px;
        height: 50px;
    }

    .carousel-category-icon i {
        font-size: 20px;
    }

    .carousel-scroll-indicator {
        bottom: 20px;
    }
	.carousel-main-title {
		margin-top: 8rem;
	}
}

@media (max-width: 480px) {
    .carousel-main-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .carousel-search-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .carousel-search-tab {
        padding: 8px 20px;
        font-size: 12px;
    }

    .carousel-property-categories {
        gap: 15px;
    }

    .carousel-category-item {
        padding: 10px;
    }

    .carousel-category-icon {
        width: 45px;
        height: 45px;
    }

    .carousel-category-icon i {
        font-size: 18px;
    }

    .carousel-category-label {
        font-size: 12px;
    }
	
	.feature-image-home-agency {
		width: 200px;
		height: 200px;
	}
}

@media (min-width: 992px) {
    .feature-title-home-agency { font-size: 27px; }
}
@media (max-width: 991px) {
    .section-property-overview-home-agency { 
		padding-bottom: 50px;
	}
    .feature-block-home-agency { 
		flex-direction: column;
	}
    .corner-mark-home-agency:after { display: none; }
}

@media (max-width: 768px) {
	.transaction-services-grid {
		grid-template-columns: 1fr;
		gap: 5px;
		padding: 10px;
	}

	.transaction-service-item {
		gap: 16px;
	}
	
	.transaction-icon-container {
		width: 50px;
		height: 50px;
	}
	
	.transaction-icon {
		width: 24px;
		height: 24px;
	}

	.transaction-horizontal-divider {
		margin: 15px 0;
	}

	.main-title-agency {
		margin-bottom: 0rem;
	}

	.nos-valeurs-box h3 {
        font-size: 1.7rem;
	}

	#section_transition {
		height: 300px;
	}
	
	#section_estimation {
		padding: 0;
	}
	
	.main-title-agency--transaction h2 {
		margin: 0;
	}

	.h4-subtitle {
		font-size: 1.6rem;
	}

	.btn-gold {
		padding: 10px 15px;
	}
	
	.carousel-content {
		top: 0;
		justify-content: center;
	}
	
	#owl-main-slide .owl-wrapper-outer .owl-wrapper .owl-item .item {
        height: 700px !important;
        content: url(../images/slides/slider1_mobile.jpg) !important;
    }
}
