/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

.bg-annonce{
	position: absolute;
  background-color: transparent;
  background-color: transparent;
  left: 15px;
  top: 15px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  border-radius: 3px;
  padding: 6px 8px 4px 8px;
  line-height: 1;
  font-size: 11px;
  font-size: 0.6875rem;
}

.active{
	color: #8F1C01 !important;
	font-weight: bold;
}

.mg-b{
	margin-top: 20px !important;
}

.yellow{

	color: #d8c91e !important;
}

.btn-danger{
	background-color: #C8480A;
}

.icon-height i{
	font-size: 100px;
	color: #C92807 !important;
}

.custom_select2{

    border: 1px #D2D8DD solid;
    border-radius: 5px;
    width: 100%;
}
.bg-module{
    background-color: #8F1C01 !important;
    font-weight: bold;
    color: #fff !important;
    font-weight: bold !important;
}

/* ========================================== */
/* DIRECTORY GRID CARDS & LAYOUT IMPROVEMENTS */
/* ========================================== */

/* Main Card Container */
.directory-grid-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.directory-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(189, 12, 22, 0.25);
}

/* Link Wrap */
.directory-grid-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
}

/* Image Wrap & Aspect Ratio */
.directory-grid-card .card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.directory-grid-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.directory-grid-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

/* Badge overlays */
.directory-grid-card .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #BD0C16;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(189, 12, 22, 0.3);
    z-index: 2;
}

.directory-grid-card .prive-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #589442;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Body Content */
.directory-grid-card .card-body-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.directory-grid-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.directory-grid-card .card-meta .domain {
    color: #BD0C16;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.directory-grid-card .stars-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.directory-grid-card .stars-list li {
    margin-right: 2px;
}

.directory-grid-card .stars-list li.yellow i {
    color: #f1c40f;
    font-size: 12px;
}

.directory-grid-card .card-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 46px; /* 2 lines max height alignment */
    transition: color 0.3s ease;
}

.directory-grid-card:hover .card-title {
    color: #BD0C16;
}

.directory-grid-card .card-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px; /* 2 lines max height snippet alignment */
}

/* Footer elements */
.directory-grid-card .card-details-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.directory-grid-card .card-details-footer .location {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}

.directory-grid-card .card-details-footer .location i {
    color: #BD0C16;
    font-size: 13px;
}

.directory-grid-card .card-details-footer .phone {
    color: #589442;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.directory-grid-card .card-details-footer .phone i {
    font-size: 12px;
}

/* Sidebar and general layouts updates */
#sidebar_fixed .filter_col {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

#sidebar_fixed .filter_type h4 a {
    font-weight: 600;
    color: #222222;
    font-size: 14.5px;
    letter-spacing: 0.2px;
}

#sidebar_fixed .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    font-size: 13.5px;
    height: auto;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#sidebar_fixed .form-control:focus {
    border-color: #BD0C16;
    box-shadow: 0 0 0 3px rgba(189, 12, 22, 0.08);
}

#sidebar_fixed select.form-control {
    height: 42px;
}

#sidebar_fixed .btn_1.full-width {
    background-color: #BD0C16;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(189, 12, 22, 0.2);
}

#sidebar_fixed .btn_1.full-width:hover {
    background-color: #9e0a12;
    box-shadow: 0 6px 14px rgba(189, 12, 22, 0.3);
    transform: translateY(-1px);
}

/* Horizontal Search Box Styling */
.horizontal-search-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.07);
    margin-bottom: 40px;
}

.horizontal-search-box .input-group {
    display: flex;
    width: 100%;
}

.horizontal-search-box .input-group-text {
    background-color: #ffffff;
    border-right: none;
    color: #BD0C16;
    font-size: 14px;
    padding-left: 15px;
    padding-right: 10px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.horizontal-search-box .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0 !important;
    border: 1px solid #e0e0e0;
    padding: 10px 15px 10px 5px;
    font-size: 14px;
    height: 46px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.horizontal-search-box select.form-control {
    border-left: none;
    border-radius: 0 8px 8px 0 !important;
    padding: 10px 15px 10px 5px;
    height: 46px;
    appearance: auto;
}

.horizontal-search-box .input-group:focus-within .input-group-text,
.horizontal-search-box .input-group:focus-within .form-control {
    border-color: #BD0C16;
}

.horizontal-search-box .btn_1.full-width {
    background-color: #BD0C16;
    border: none;
    border-radius: 8px;
    height: 46px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(189, 12, 22, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.horizontal-search-box .btn_1.full-width:hover {
    background-color: #9e0a12;
    box-shadow: 0 6px 15px rgba(189, 12, 22, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .horizontal-search-box {
        padding: 15px;
        margin-bottom: 25px;
    }
    .horizontal-search-box .form-control,
    .horizontal-search-box select.form-control,
    .horizontal-search-box .btn_1.full-width {
        height: 42px;
    }
}

/* Select2 overrides to match premium design */
.horizontal-search-box .input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important; /* Stretch to fill bootstrap input group */
}

.horizontal-search-box .select2-container--default .select2-selection--single {
    border: 1px solid #e0e0e0;
    border-left: none; /* since it has prepend icon */
    border-radius: 0 8px 8px 0 !important;
    height: 46px;
    display: flex;
    align-items: center;
    padding-left: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.horizontal-search-box .input-group:focus-within .select2-container--default .select2-selection--single {
    border-color: #BD0C16;
}

.horizontal-search-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    font-size: 14px;
    padding-left: 0;
}

.horizontal-search-box .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888;
}

.horizontal-search-box .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal-search-box .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #BD0C16 transparent transparent transparent;
    border-width: 6px 5px 0 5px;
}

.horizontal-search-box .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #BD0C16 transparent;
    border-width: 0 5px 6px 5px;
}

/* Dropdown menu styling */
.select2-dropdown {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    z-index: 9999;
}

.select2-results__option {
    padding: 10px 15px !important;
    font-size: 13.5px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #BD0C16 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f7f7f7 !important;
    color: #222 !important;
}

.select2-search--dropdown {
    padding: 8px 10px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    outline: none !important;
    font-size: 13px !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #BD0C16 !important;
}

/* Custom premium pagination styling */
.pagination {
    margin-top: 25px;
    gap: 5px;
}

.pagination .page-item .page-link {
    color: #444;
    border: 1px solid #e0e0e0;
    border-radius: 8px !important;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background-color: #BD0C16 !important;
    border-color: #BD0C16 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(189, 12, 22, 0.25) !important;
}

.pagination .page-item .page-link:hover {
    background-color: #f7f7f7;
    color: #BD0C16;
    border-color: #BD0C16;
}

.pagination .page-item.disabled .page-link {
    color: #999;
    background-color: #fafafa;
    border-color: #e8e8e8;
}

/* ========================================== */
/* COMPACT AND GLOBAL STICKY HEADER & LOGO   */
/* ========================================== */

/* Make the subpages header sticky */
header.header_in {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #ededed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Compact header padding top/bottom */
header,
header.header_in {
    padding: 8px 0 !important;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

/* Scale logo images down */
#logo img {
    height: 52px !important;
    width: auto !important;
    transition: height 0.3s ease;
}

/* Align navigation menu links vertically on desktop */
@media only screen and (min-width: 992px) {
    .main-menu > ul,
    #top_menu {
        margin-top: 11px !important;
    }
}

/* Mobile responsive adjustments for header elements */
@media (max-width: 991px) {
    header,
    header.header_in {
        padding: 6px 15px !important;
    }
    #logo img {
        height: 48px !important;
    }
    header a.open_close {
        top: 16px !important;
    }
    ul#top_menu {
        top: 10px !important;
        margin: 0 !important;
    }
}

/* ========================================== */
/* ACTIVE NAVIGATION LINK SURBRILLANCE PREM  */
/* ========================================== */

/* Active link color surbrillance (red) */
header.sticky .main-menu > ul > li > a.active,
header.header_in .main-menu > ul > li > a.active,
header.header .main-menu > ul > li > a.active {
    color: #BD0C16 !important;
    font-weight: 600 !important;
}

/* Visual active indicator under link on desktop */
@media only screen and (min-width: 992px) {
    .main-menu > ul > li > a {
        position: relative;
    }
    .main-menu > ul > li > a.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 8px;
        right: 8px;
        height: 2.5px;
        background-color: #BD0C16;
        border-radius: 2px;
    }
    
    /* Transparent header mode on homepage */
    header.header:not(.sticky) .main-menu > ul > li > a.active {
        color: #ffffff !important;
    }
    header.header:not(.sticky) .main-menu > ul > li > a.active::after {
        background-color: #ffffff !important;
    }
}

/* ========================================== */
/* PREMIUM ANNOUNCEMENTS (EVENT) CARDS       */
/* ========================================== */

.event-premium-card {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    background-color: #ededed;
}

.event-premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.event-card-link {
    text-decoration: none !important;
    display: block;
    width: 100%;
}

.event-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.event-card-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.event-premium-card:hover .event-card-img {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Category Badge (Top Right) */
.event-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: #BD0C16;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(189, 12, 22, 0.3);
    pointer-events: none;
}

/* Bottom Text Overlay with smooth dark gradient for readability */
.event-card-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 80px 20px 20px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.event-card-ville {
    font-weight: 600;
}

.event-card-separator {
    color: rgba(255, 255, 255, 0.5);
}

.event-card-date {
    opacity: 0.9;
}

/* ========================================== */
/* PREMIUM TABLE AND SEARCH (PERDU TROUVÉ)   */
/* ========================================== */

.premium-table-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 10px;
}

.premium-table {
    margin-bottom: 0 !important;
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    background-color: #f8f9fa !important;
    color: #333333 !important;
    font-weight: 600 !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 20px !important;
    border-bottom: 2px solid #ededed !important;
    border-top: none !important;
}

.premium-table td {
    padding: 16px 20px !important;
    font-size: 14.5px;
    color: #444444;
    vertical-align: middle !important;
    border-bottom: 1px solid #f2f2f2 !important;
}

.premium-table tbody tr:last-child td {
    border-bottom: none !important;
}

.premium-table tbody tr {
    transition: background-color 0.2s ease;
}

.premium-table tbody tr:hover {
    background-color: #fafafa;
}

/* Badge for piece type */
.piece-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f0f2f5;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.piece-badge.cni {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border-color: #bee3f8;
}

.piece-badge.passeport {
    background-color: #fefcbf;
    color: #744210;
    border-color: #fef08a;
}

.piece-badge.permis {
    background-color: #e6fffa;
    color: #234e52;
    border-color: #b2f5ea;
}

.piece-badge.diplome {
    background-color: #fce8ff;
    color: #802392;
    border-color: #f7bafb;
}

.piece-badge.carte {
    background-color: #f2f5f8;
    color: #495057;
    border-color: #ced4da;
}

/* ========================================== */
/* COMPACT HERO BANNER OVERRIDES FOR SUBPAGES */
/* ========================================== */

.hero_single.inner_pages {
    height: 260px !important; /* Reduced from 480px */
    min-height: 260px !important;
}

.hero_single.inner_pages .opacity-mask h1 {
    padding-top: 0 !important; /* Vertically centers h1 using flexbox */
    font-size: 32px !important; /* Slightly more compact font size */
    font-weight: 700 !important;
}

.hero_single.inner_pages .opacity-mask p {
    font-size: 16px !important; /* Modern subtitle font size */
    margin-bottom: 15px !important;
}

@media (max-width: 767px) {
    .hero_single.inner_pages {
        height: 220px !important;
        min-height: 220px !important;
    }
    .hero_single.inner_pages .opacity-mask h1 {
        font-size: 26px !important;
    }
    .hero_single.inner_pages .opacity-mask p {
        font-size: 14px !important;
    }
}

/* ========================================== */
/* PREMIUM BLOG CARDS & GRID OVERRIDES       */
/* ========================================== */

.blog-premium-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(189, 12, 22, 0.25);
}

.blog-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-premium-card:hover .blog-card-img {
    transform: scale(1.08);
}

.blog-card-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.blog-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px; /* Align titles */
    transition: color 0.3s ease;
}

.blog-premium-card:hover .blog-card-title {
    color: #BD0C16;
}

.blog-card-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 58px; /* Align descriptions */
}

.blog-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    align-items: center;
}

.blog-card-btn {
    font-size: 13px;
    font-weight: 600;
    color: #BD0C16;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.blog-premium-card:hover .blog-card-btn {
    color: #9e0a12;
    gap: 10px;
}

/* ========================================== */
/* ARTICLE DETAIL PAGE PREMIUM OVERRIDES      */
/* ========================================== */

.singlepost.premium-singlepost {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    background: #ffffff;
    overflow: hidden;
}

.singlepost.premium-singlepost figure {
    margin: -30px -30px 25px -30px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    height: 380px;
}

.singlepost.premium-singlepost figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .singlepost.premium-singlepost figure {
        height: 240px;
    }
    .singlepost.premium-singlepost {
        padding: 15px;
    }
    .singlepost.premium-singlepost figure {
        margin: -15px -15px 20px -15px;
    }
}

.singlepost.premium-singlepost h1 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 15px;
}

.singlepost.premium-singlepost .postmeta {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.singlepost.premium-singlepost .postmeta ul li {
    font-size: 13px;
    font-weight: 500;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.singlepost.premium-singlepost .postmeta ul li i {
    color: #BD0C16;
    font-size: 14px;
}

.singlepost.premium-singlepost .post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.singlepost.premium-singlepost .post-content p {
    margin-bottom: 20px;
}

/* Red Dropcap style matching brand color */
.singlepost.premium-singlepost .dropcaps p:first-child::first-letter {
    background-color: #BD0C16 !important;
    border-radius: 6px;
    padding: 8px 12px !important;
    font-weight: 700;
}

/* Sidebar Widget Premium Override */
.premium-sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.premium-sidebar .widget-title {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.premium-sidebar .widget-title h4 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-sidebar .comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-sidebar .comments-list li {
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.premium-sidebar .comments-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.premium-sidebar .comments-list .alignleft {
    float: none;
    margin: 0;
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.premium-sidebar .comments-list .alignleft img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-sidebar .comments-list h3 {
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-sidebar .comments-list h3 a {
    color: #333;
    transition: color 0.2s ease;
}

.premium-sidebar .comments-list h3 a:hover {
    color: #BD0C16 !important;
}

.premium-sidebar .comments-list small {
    font-size: 11.5px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================ */
/* BUSINESS PROFILE PAGE - PROFIL METIER PREMIUM                */
/* ============================================================ */

/* Cover Banner */
.profile-cover-banner {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #BD0C16 100%);
    overflow: hidden;
    border-radius: 0;
}

.profile-cover-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}

/* Profile Header Identity Card */
.profile-identity-card {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 0 30px 25px;
    position: relative;
    margin-bottom: 28px;
    border: 1px solid rgba(0,0,0,0.06);
    border-top: none;
}

.profile-avatar-wrap {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    margin-top: -50px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
    background: #f5f5f5;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity-meta {
    padding-bottom: 8px;
    flex: 1;
}

.profile-identity-meta h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.profile-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(189,12,22,0.08);
    color: #BD0C16;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(189,12,22,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profile-location-tag {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

.profile-location-tag i {
    color: #BD0C16;
}

/* Divider */
.profile-identity-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 15px 0;
}

/* Action Buttons Row */
.profile-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-profile-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #BD0C16;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(189,12,22,0.25);
}
.btn-profile-call:hover {
    background-color: #9e0a12;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(189,12,22,0.35);
}

.btn-profile-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(37,211,102,0.25);
}
.btn-profile-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

.btn-profile-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f2f5;
    color: #444 !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    border: 1px solid #e0e0e0;
}
.btn-profile-website:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
}

/* Share Buttons */
.btn-profile-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-profile-share:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-profile-share.fb { background-color: #1877F2; color: #fff !important; }
.btn-profile-share.wa { background-color: #25D366; color: #fff !important; }

/* Info Sections Cards */
.profile-section-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    padding: 24px 28px;
    margin-bottom: 24px;
}

.profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-section-title i {
    color: #BD0C16;
    font-size: 16px;
}

/* Info Items */
.profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
}
.profile-info-item:last-child { border-bottom: none; }

.profile-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background-color: rgba(189,12,22,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-info-icon i {
    color: #BD0C16;
    font-size: 15px;
}

.profile-info-content {
    flex: 1;
}
.profile-info-content .info-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.profile-info-content .info-value {
    font-size: 14.5px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}
.profile-info-content .info-value a {
    color: #BD0C16;
    text-decoration: none;
    font-weight: 600;
}
.profile-info-content .info-value a:hover {
    text-decoration: underline;
}

/* Horaires Table */
.horaires-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}
.horaires-table tr:not(:last-child) td {
    border-bottom: 1px solid #f5f5f5;
}
.horaires-table td {
    padding: 10px 0;
    font-size: 14px;
    color: #444;
}
.horaires-table td:first-child {
    font-weight: 600;
    color: #222;
    width: 45%;
}
.horaires-table td:last-child {
    color: #BD0C16;
    font-weight: 500;
}

/* Social Icons Row */
.profile-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}
.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-social:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.btn-social.facebook { background-color: #1877F2; color: #fff !important; }
.btn-social.instagram { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); color: #fff !important; }
.btn-social.email { background-color: #f0f2f5; color: #444 !important; border: 1px solid #e0e0e0; }

/* Photo Gallery Grid */
.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 5px;
}
.profile-gallery-grid figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f5f5f5;
}
.profile-gallery-grid figure a {
    display: block;
    width: 100%;
    height: 100%;
}
.profile-gallery-grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.profile-gallery-grid figure:hover img { transform: scale(1.06); }

/* Map */
.profile-map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 260px;
    margin-top: 5px;
}
.profile-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Sidebar sticky card */
.profile-sidebar-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    padding: 22px;
    margin-bottom: 24px;
}
.profile-sidebar-title {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Ad carousel in sidebar */
.profile-ad-carousel .item {
    border-radius: 10px;
    overflow: hidden;
}
.profile-ad-carousel .item img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* Service description text */
.profile-service-text {
    font-size: 14.5px;
    color: #555;
    line-height: 1.7;
    white-space: pre-line;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .profile-cover-banner { height: 180px; }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-identity-meta h1 { font-size: 18px; }
    .profile-avatar-wrap { gap: 14px; margin-top: -38px; }
    .profile-identity-card { padding: 0 16px 20px; }
    .profile-section-card { padding: 18px; }
    .profile-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-action-row { gap: 8px; }
    .btn-profile-call, .btn-profile-whatsapp, .btn-profile-website { padding: 9px 14px; font-size: 13px; }
    .profile-map-container { height: 200px; }
}

/* ========================================== */
/* PREMIUM REDESIGNED FOOTER SYSTEM */
/* ========================================== */

footer {
    background: linear-gradient(180deg, #10161E 0%, #080B10 100%) !important;
    padding: 70px 0 30px 0 !important;
    border-top: 3px solid #BD0C16;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background glowing effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(189, 12, 22, 0.8), transparent);
    filter: blur(8px);
    pointer-events: none;
}

/* Columns & Headings */
.footer-column {
    margin-bottom: 35px;
}

footer h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
    border: none !important; /* Remove old border-bottom on mobile */
}

/* Red indicator line under titles */
footer h3::after {
    content: '' !important;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 2.5px;
    background-color: #BD0C16;
    border-radius: 2px;
    display: block !important;
    float: none !important; /* Disable old ElegantIcon arrow content on mobile */
}

/* Links styles */
footer .links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .links ul li {
    margin-bottom: 11px;
}

footer .links ul li a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: inline-flex;
    align-items: center;
    position: relative;
    opacity: 1 !important;
    transform: none !important;
}

footer .links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #BD0C16;
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

footer .links ul li a:hover {
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

footer .links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Disable the old theme's arrow:after */
footer .links ul li a:after {
    display: none !important;
}

/* Contacts styles */
footer .contacts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .contacts ul li {
    position: relative;
    padding-left: 32px !important;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13.5px;
    line-height: 1.6;
    opacity: 1 !important;
}

footer .contacts ul li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #BD0C16 !important;
    font-size: 15px !important;
    opacity: 0.9;
}

footer .contacts ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

footer .contacts ul li a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Newsletter Styles */
.newsletter-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
}

.custom-newsletter-form .newsletter-group {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 30px !important;
    padding: 11px 55px 11px 20px !important;
    font-size: 13px !important;
    color: #ffffff !important;
    height: 44px !important;
    transition: all 0.25s ease !important;
    width: 100%;
}

.custom-newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.custom-newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #BD0C16 !important;
    box-shadow: 0 0 0 3px rgba(189, 12, 22, 0.2) !important;
    outline: none;
}

.btn-newsletter {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #BD0C16 0%, #9e0a12 100%) !important;
    border: none !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 8px rgba(189,12,22,0.3);
}

.btn-newsletter i {
    font-size: 12px;
    margin-left: -1px; /* Align plane icon visually */
}

.btn-newsletter:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(189,12,22,0.5);
    filter: brightness(110%);
}

/* Follow Us & Social Icons */
.follow_us h5 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 25px 0 12px 0 !important;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
    font-size: 15px;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
}

.social-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-btn.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Footer Bottom Styles */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin: 30px 0 20px 0 !important;
    opacity: 1 !important;
}

.footer-bottom {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4) !important;
}

.copyright-text, .credits-text {
    margin: 0;
    padding: 0;
}

.brand-text {
    color: #ffffff;
    font-weight: 600;
}

.credits-link {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.credits-link:hover {
    color: #BD0C16 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    footer {
        padding: 50px 0 25px 0 !important;
    }
    .footer-column {
        margin-bottom: 25px;
    }
    .footer-bottom {
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    .credits-wrapper {
        text-align: center !important;
    }
    footer h3 {
        cursor: default !important;
        pointer-events: none !important;
    }
    .collapse.dont-collapse-sm {
        display: block !important;
    }
}