/*
Theme Name: cars
Theme URI: http://www.autotrends.ma/
Description: Custom Wordpress theme for cars
Author: Abdeltif
Author URI: http://autotrends.com
Version: 1.0
*/


/* ========================================
   Auto Trends - Custom Styles
   ======================================== */

/* ========== General Styles ========== */

/* Regular */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStd.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Light */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* Light Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdLightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

/* Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

/* Semi-Medium */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdSemiMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

/* Semi-Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdSemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Extra Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

/* Ultra Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/twcenmtstdultrabold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Extra Bold Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/twcenmtstdextraboldit.woff') format('woff');
    font-weight: 800;
    font-style: italic;
}

/* Ultra Bold Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/twcenmtstdultraboldit.woff') format('woff');
    font-weight: 900;
    font-style: italic;
}

/* Condensed Variants */
@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/Tw Cen MT Std Medium Cond.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/Tw Cen MT Std Bold Cond.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/Tw Cen MT Std Bold Italic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/TwCenMTStdExtraBoldCond.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/TwCenMTStdUltraBoldCond.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #56a5dc;
  --danger-color: #dc3545;
  --dark-color: #1a1a2e;
  --text-color: #1a1a1a;
  --bg-color: #fefcf6;
  --light-bg: #f8f9fa;
  --light-gray: #eeeeee;
  --medium-gray: rgba(175, 175, 175, 0.39);
  --category-red: #bd2208;
  --fuel-table-border-radius: 10px;
  --footer-bg-color: #0f1b26;
  --font-scale: 0.78;
  --wdgt-border-color: #f1ebd8;
  --wdgt-bg-color: #f8f4e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  font-size: calc(1rem * var(--font-scale));
  overflow-x: hidden;
}

body a {
    text-decoration: none;
    color: var(--text-color);
}
body a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

/* Font size adjustments for Poppins font (larger x-height) */
h1, h2, h3, .section-title {
  font-size: calc(var(--original-font-size, 1em) * var(--font-scale));
}

/* Override Bootstrap h4 for Poppins font */
h4, .h4 {
  font-size: calc(1.0rem + .3vw) !important;
}

/* Scale down specific large elements */
.car-types h2,
.category-title,
.podcasts-archive .page-title {
  font-size: calc(3rem * var(--font-scale));
}

.fuel-widget h5,
.slider-header h5 {
  font-size: 26px;
}

.car-type-card h5 {
  font-size: 28px;
}

.menu-link {
  font-size: 20px;
}

.car-model,
.car-version,
.guide-card h5 {
  font-size: 20px;
}

.toggle-btn,
.form-select,
.btn-dark,
.badge-category {
  font-size: 17px;
}

.car-price {
  font-size: 16px;
}

.row.g-6 {
    --bs-gutter-x: 4rem;
    --bs-gutter-y: 4rem;
}

.row.g-7 {
    --bs-gutter-x: 5rem;
    --bs-gutter-y: 5rem;
}

.row.g-8 {
    --bs-gutter-x: 6rem;
    --bs-gutter-y: 6rem;
}

/* ========================================
   HEADER SECTION - 3 ROWS (NON-STICKY)
   ======================================== */

.header-section {
    background: var(--bg-color);
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    margin-bottom: 25px;
}

/* ========== Row 1: Top Bar (Social Icons) ========== */
.top-bar {
    /*background: #f8f9fa !important;*/
}

.social-icon {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
}

/* ========== Row 2: Main Header ========== */
.main-header {
    padding: 0;
}

/* Left Section - Video, Podcast, Menu */
.header-link {
    /*color: #0f1b26;*/
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.header-link:hover {
    color: var(--secondary-color);
}

.header-link i {
    font-size: 0.86rem;
}

.mobile-menu-toggle {
    border: none;
    background: transparent;
}

.header-btn {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    /*max-width: 80px;*/
}

/* Make sure your header or navigation wrapper has position relative */
/*header,*/
/*.header-section,*/
/*.navigation-row {*/
/*    position: relative;*/
/*    width: 100%;*/
/*}*/

/* ========== Mega Menu ========== */
.menu-item.menu-item-has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 1100px;
    max-width: 1400px;
    background: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    border-radius: 0px 0px 16px 16px;
    border: 1px solid #dee2e6;
    border-top: none;
}


.mega-menu .container {
    max-width: 100%;
    padding: 0 1rem;
}

.menu-item-has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

/* Mega Menu Cards */
.mega-menu-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden; /* Add overflow here too */
}

.mega-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden !important; /* Force overflow hidden */
    transition: transform 0.3s ease;
    isolation: isolate; /* Create stacking context */
}

/*.mega-card:hover {*/
/*    transform: translateY(-3px);*/
/*}*/

.mega-card-content {
    display: flex;
    height: 160px;
    background: var(--dark-color);
    position: relative;
    background-image: url('assets/images/icons/logo-icon.svg');
    background-repeat: no-repeat;
    background-position: 70% 50%;
    background-size: 210px 210px;
    overflow: hidden !important; /* Force overflow hidden */
}

.mega-card-left {
    flex: 1;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.mega-card-title {
    color: white;
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    position: relative;
    z-index: 2;
}

.mega-card-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mega-card-img-wrapper {
    width: 100%;
    height: 80%;
    position: relative;
    overflow: hidden;
    border-radius: 16px 0px 0px 16px;
}

.mega-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 0px 0px 16px;
    display: block;
}

/* Light ray effect */
.mega-card-img-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(15deg);
    transition: left 0.6s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.mega-card:hover .mega-card-img-wrapper::before {
    left: 150%;
}

.mega-card:hover .mega-card-right::after {
    left: 200%;
    opacity: 1;
}
.mega-card-content {
    display: flex;
    height: 160px;
    background: var(--dark-color);
    position: relative;
    background-image: url('assets/images/icons/logo-icon.svg');
    background-repeat: no-repeat;
    background-position: 70% 50%;
    background-size: 210px 210px;
}

.mega-card-left {
    flex: 1;
    padding: 1.1rem 0.1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.mega-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 50%;
    bottom: 0;
    overflow: hidden;
}

.bg-logo {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 120px;
    height: 120px;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.mega-card-title {
    color: white;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    position: relative;
    z-index: 2;
    letter-spacing: -1.0px;
}

.mega-card-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 0px 0px 16px;
}

/* Mega Menu Articles */
.mega-menu-articles {
    padding: 1.3rem;
    height: 100%;
    border-left: 1px solid #f0f0f0;
    margin-left: 0.2rem;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    margin-bottom: 1.0rem;
    border-bottom: 1px solid #f0f0f0;
}

.article-list li:last-child {
    border-bottom: 10px solid transparent;
}

.article-list a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
    margin-bottom: 1.0rem;
}

.article-list a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .mega-menu {
        display: none;
    }
}

/* ========== Magazine Mega Menu ========== */
.mega-menu-magazine {
    padding: 0.5rem 0;
}

/* Column 1: Info Boxes */
.magazine-info-section {
    padding: 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.magazine-info-box {
    padding: 1rem;
    position: relative;
    min-height: 170px;
    border-bottom: 1px solid #e0e0e0;
}
.magazine-info-box:last-child {
    border-bottom: 0px solid transparent;
}

.magazine-box-title {
    font-size: 1.33rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    /*letter-spacing: 0.5px;*/
}

.magazine-box-desc {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-bottom: 0;
    padding-right: 36px;
}

.magazine-box-icon {
    position: absolute;
    bottom: 1.2rem;
    right: -0.6rem;
    width: 50px;
    height: 50px;
}

.magazine-box-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Column 2: Categories List */
.magazine-categories {
    padding: 1rem 2rem;
    /* @TODO:not sure if that centred in the design or not*/
    /*align-items: center;*/
    position: relative;
    height: 100%;
    display: flex;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.category-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: 0px solid transparent;
}

.category-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--secondary-color);
}

.cat-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 3px;
}

/* Column 2: Categories List with full-height border */
.magazine-categories {
    padding: 1rem 2rem;
    position: relative;
    height: 100%;
}

/* Add pseudo-elements for full-height borders */
.magazine-categories::before,
.magazine-categories::after {
    content: '';
    position: absolute;
    top: 0rem;
    bottom: 0rem;
    width: 1px;
    background: #e0e0e0;
}

.magazine-categories::before {
    left: 0;
}

.magazine-categories::after {
    right: 0;
}


/* Column 3: Media Types */
.magazine-media {
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.media-item-large {
    flex-direction: row;
}

.media-item-small {
    flex-direction: row;
    align-items: center;
}

.media-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.media-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-content {
    flex: 1;
}

.media-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.5px;
}

.media-item-small .media-title {
    margin: 0;
}
.media-item-small .media-icon {
    width: 20px;
    height: 20px;
}

.media-subtitle {
    font-size: 0.66rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .mega-menu-magazine {
        display: none;
    }
}



/* Center Section - Logo */
.logo-link {
    text-decoration: none;
}

.logo {
    font-size: 1.09rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.logo:hover {
    color: #333;
}

/* Right Section - Buttons */
.btn-outline-dark {
    border: 2px solid #333;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #333;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ========== Row 3: Navigation Menu (Sticky) ========== */
.navigation-menu {
    background: var(--bg-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid #e7e0c9;
    transition: box-shadow 0.3s ease;
}

.navigation-menu.is-sticky {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--light-gray);
}

/* WordPress Compatible Menu Structure */
.nav-menu {
    list-style: none;
    margin: 0;
    /*margin-top: 25px;*/
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;  /* Changed from space-between to center */
    flex-wrap: wrap;
    margin-bottom: 5px;
    position: relative;
}

.menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.menu-link {
display: block;
padding: .3rem 1.2rem;
color: #333;
text-decoration: none;
font-weight: 600;
font-size: 20px;
transition: all 0.3s ease;
white-space: nowrap;
line-height: 1.0;
}

.menu-link:hover {
    color: inherit;
      /*background: #f8f9fa;*/
}

/* Current/Active Menu Item */
.current-menu-item .menu-link,
.menu-item.active .menu-link {
    color: inherit;
    border-bottom: 3px solid transparent;
}

/* Menu Item with Children (Dropdown) */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > .menu-link i {
    font-size: 0.59rem;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > .menu-link i {
    transform: rotate(180deg);
}

/* Submenu (Dropdown) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu .menu-item:last-child {
    border-bottom: none;
}

.sub-menu .menu-item a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sub-menu .menu-item a:hover {
      /*background: #f8f9fa;*/
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Search Menu Item */
.menu-item-search {
    margin-left: auto;
    display: none;
}

.menu-item-search .menu-link {
    padding: 1rem;
}

.search-toggle {
    cursor: pointer;
}

/* Search Bar */
.search-bar-wrapper {
      /*background: #f8f9fa;*/
    /*border-bottom: 1px solid #dee2e6;*/
}

.search-bar-wrapper .form-control {
    border: 2px solid #dee2e6;
}

.search-bar-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* ========== Mobile Menu Offcanvas ========== */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    /*border-bottom: 1px solid #f0f0f0;*/
}

.mobile-menu-item a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-item a:hover {
      /*background: #f8f9fa;*/
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-menu-item .has-submenu {
    position: relative;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
      /*background: #f8f9fa;*/
    display: none;
}

.mobile-submenu li {
    /*border-bottom: 1px solid #e0e0e0;*/
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    padding: 0.75rem 1rem 0.75rem 2rem;
    font-size: 0.9rem;
}

.mobile-menu-item .has-submenu.active + .mobile-submenu {
    display: block;
}

/* ========== Trending Search Section  ========== */
.trending-search-section .search-wrapper {
    position: relative;
    display: inline-block;
    width: 250px; /* Adjust as needed */
    /*margin-left: 100px;*/
    flex: 0 0 auto;
    transition: width 0.25s ease;
}

.trending-search-section .search-input {
    width: 100%;
    padding: 8px 50px 6px 20px; /* Right padding for button space */
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    font-size: 15px;
    outline: none;

}

.trending-search-section .search-input:focus {
    border-color: #333;
}

.trending-search-section .search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #1a1a2e; /* Dark background */
    border: none;
    border-radius: 50%; /* Makes it circular */
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.trending-search-section .search-button:hover {
    background-color: #333;
}

.trending-search-section .search-button i {
    font-size: 16px;
}

.trending-search-section .search-input::placeholder {
    color: #d6d6d6;
}

.trending-search-inline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trending-tags-slider-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 42px;
    --trends-mask-bg: #fefbf3;
}

.trending-tags-slider-wrap::before,
.trending-tags-slider-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.trending-tags-slider-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--trends-mask-bg) 45%, rgba(255, 255, 255, 0));
}

.trending-tags-slider-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--trends-mask-bg) 45%, rgba(255, 255, 255, 0));
}

.trendsSwiper {
    width: 100%;
}

.trendsSwiper .swiper-slide {
    width: auto;
}

.trending-tags-slider-wrap .badge {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--light-gray);
    /*min-height: 38px;*/
    line-height: 20px;
}

.trending-tags-slider-wrap .badge:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
}

.trends-swiper-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--light-gray);
    background: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: all 0.2s ease;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.trends-swiper-prev {
    left: 0;
}

.trends-swiper-next {
    right: 0;
}

.trends-swiper-nav:hover {
    color: #222;
    border-color: #c8c8c8;
}

/* Responsive */
@media (max-width: 768px) {
    .trending-search-section .search-wrapper {
        width: 44px;
        margin-left: 0;
        min-width: 44px;
    }

    .trending-search-section .search-wrapper.is-open {
        width: min(70vw, 290px);
        min-width: 180px;
    }

    .trending-search-section .search-wrapper.is-collapsed-mobile .search-input {
        width: 0;
        opacity: 0;
        padding-left: 0;
        padding-right: 0;
        border-color: transparent;
        pointer-events: none;
    }

    .trending-search-section .search-wrapper.is-open .search-input {
        width: 100%;
        opacity: 1;
        padding: 8px 50px 6px 20px;
        border-color: var(--light-gray);
        pointer-events: auto;
    }

    .trending-search-inline {
        gap: 8px;
    }

    .trending-tags-slider-wrap {
        padding: 0 34px 0 0;
    }

    .trending-tags-slider-wrap::before {
        display: none;
    }

    .trending-tags-slider-wrap::after {
        width: 48px;
    }

    .trends-swiper-prev {
        display: none;
    }

    .trends-swiper-next {
        right: 0;
    }

    .trends-swiper-nav {
        width: 30px;
        height: 30px;
    }
}

.card {
    background: transparent!important;
}
/* ========== Promo Section with Swiper ========== */

.promo-section {
    /*background: #f8f9fa;*/
    margin-top: 0;
}

.h2-title-small {
    background: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 3px 6px 3px 6px;
    height: 20px;
    line-height: 18px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.promoSwiper {
    padding: 5px 0 10px 0;
}

.promo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 184px;
    width: 131px;
}

.promo-card:hover {
    transform: translateY(-3px);
}

.promo-card img {
    width: 100%;
    height: 184px;
    object-fit: cover;
    display: block;
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0.6), rgba(0,0,0.89), transparent);
    color: white;
    padding: 20px;
    text-align: center;
}

.promo-overlay h5 {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.promo-overlay .badge {
    font-size: 1rem;
    padding: 5px 15px;
}

.promo-overlay img {
    width: 42px;
    height: 42px;
    background: var(--dark-color);
    border-radius: 50%;
    padding: 3px;
    border: 1px solid white;
    margin: 0 auto 10px auto;
}

    /* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ========== Main Content Area ========== */
.search-widget {
    border: 1px solid #eeeeee;
    background: var(--wdgt-bg-color);
    border-radius: 16px;
}

.search-widget .form-select:disabled {
    background-color: #fefcf6;
}

.search-widget h4 {
    font-weight: bold;
    color: var(--dark-color);
    margin-top: 8px;
}

.toggle-container {
    position: relative;
    display: inline-flex;
    background-color: #1a1d2e;
    border-radius: 50px;
    padding: 0px 5px;
    gap: 0;
    min-width: 100%;
    margin-bottom: 30px;
}

.toggle-slider {
    position: absolute;
    background-color: var(--bg-color);
    border-radius: 50px;
    height: calc(100% - 10px);
    top: 5px;
    left: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.toggle-btn {
    position: relative;
    z-index: 2;
    padding: 12px 32px 10px 32px;
    border: none;
    background: transparent;
    color: white;
    font-weight: bold;
    font-size: 22px;
    line-height: 22px;
    /*height: 28px;*/
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50px;
    min-width: 50%;
}

.toggle-btn.active {
    color: #1a1d2e;
}

.search-form {
    padding: 2px 25px 40px 25px;
}


.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Add your custom caret image */
    background-image: url('assets/images/icons/down.svg');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;

    /* Styling */
    padding: 4px 40px 4px 15px;
    border: 1px solid #f3f3f3;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
    color: var(--medium-gray); /* Gray color for placeholder */
    background-color: var(--bg-color);
    cursor: pointer;

    margin-bottom: 36px;
}

/* Change text color when an option is selected */
.form-select:not(:invalid) {
    color: #333;
}

/* Style for options */
.form-select option {
    color: #333; /* Black text for options */
}

.form-select option:first-child {
    color: #999; /* Gray for placeholder option */
}



.btn-dark {
    background: var(--dark-color);
    border: none;
    padding: 0.6rem;
    font-weight: 600;
    transition: background 0.3s ease;
    border-radius: 6px;
    font-size: 22px;
    line-height: 22px;
    text-transform: uppercase;
}

.btn-dark:hover {
    background: #2c3e50;
}

.featured-content img {
    width: 100%;
    height: auto;
}

.video-wrapper {
    position: relative;
    width: 100%; /* Takes full width of parent */
    max-width: 600px; /* Optional: set maximum size */
    aspect-ratio: 1 / 1; /* Maintains square shape */
    overflow: hidden;
    border-radius: 18px;
    margin: 0 auto;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78%; /* 100 / (9/16) to fill square */
    height: 100%;
}

.custom-play-btn {
    position: absolute;
    top: 5%;
    left: 95%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0);
    border: 0px solid transparent;
    /*border-radius: 50%;*/
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.custom-play-btn:hover {
    background-color: rgba(255, 0, 0, 0);
    /*transform: translate(-50%, -50%) scale(1.1);*/
}

.custom-play-btn.playing {
    opacity: 0;
    pointer-events: none;
}


.widget {
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
}

.widget img {
    margin-top: 10px;
}


.search-widget,
.featured-content,
.widget-container {
    height: 100%;
}

.sidebar-section .widget {
    padding: 0;
}

.sidebar-section .widget {
    padding: 0;
}

.sidebar-section  .fuel-icon {
    right: -13px;
}
.sidebar-section  .fuel-widget {
    padding-top: 2em!important;
    padding-left: 2em!important;
}
.sidebar-section  .sidebar-title {
    margin-top: 1.2em;
    padding: 0.3em 1.5em 0.2em 1.5em;
}
.sidebar-section  .slider-header {
    margin-top: 1em;
    margin-left: 2em;
}
.sidebar-section  .car-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Dossier Page - Minimal additions to style.css */

/* Featured Article */
.dossier-featured .row {
    min-height: 600px;
}

.main-thump {
    padding: 0em 1em 1em 0em;
}

.content-texts {
    padding: 0.8em 1.5em 1.5em 1.5em;
}

.date-meta {
    font-size: 0.94em;
    font-weight: 600;
    color: #717171;
    padding-top: 2em;
}

/* Dossier Section Title - Line in front (left side) */
/* Dossier Section Title - Line after text extending to right */
.dossier-section-title {

    font-weight: 600;
    font-size: 1.72rem;
    letter-spacing: 1px;
    color: #717171;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dossier-section-title::after {
    content: '';
    flex: 1;
    height: 8px;
    background-color: var(--text-color);
}

/* Dossier List Items */
.dossier-list-item h3 a:hover {
    color: #56a5dc;
}

.dossier-list-item:last-child {
    border-bottom: none !important;
}
.main-category {
    font-size: 1.2em;
    color: var(--secondary-color);
}
.dossier-list-item .list-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.dossier-list-item .list-excerpt {
    font-size: 1.2em;
    font-weight: 500;
    color: #717171;
    line-height: 1.3em;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination styling */
.pagination {
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;

}

.pagination .page-numbers.current {
    background-color: var(--text-color);
    color: #ffffff;
    border-color: var(--text-color);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #56a5dc;
    color: #ffffff;
    border-color: #56a5dc;
}

@media (max-width: 768px) {
    .dossier-featured .row {
        min-height: auto;
    }

    .dossier-list-item .col-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .dossier-section-title::before {
        width: 40px;
    }
}


/* ===================================
   PODCAST ARCHIVE PAGE
   =================================== */

/* Page Title */
.podcasts-archive .page-title {

    font-size: 1.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Podcast Card */
.podcast-card {
    background: var(--bg-color);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.podcast-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Podcast Cover */
.podcast-cover {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #d946a6 0%, #7b2cbf 100%);
}

.podcast-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Podcast Content */
.podcast-content {
    padding: 2rem;
}

.podcast-meta .date {

    font-size: 0.68rem;
    font-weight: 400;
    color: #afafaf;
    text-transform: capitalize;
}

.podcast-title {

    font-size: 1.17rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.podcast-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.podcast-title a:hover {
    color: #56a5dc;
}

.podcast-excerpt {
    margin-bottom: 1.5rem;
}

.podcast-excerpt p {

    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Podcast Player Link */
.podcast-player {
    padding-top: 1rem;
    border-top: 1px solid #eeeeee;
}

.audio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;

    transition: opacity 0.3s ease;
}

.audio-link:hover {
    opacity: 0.8;
}

.audio-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.audio-meta {
    font-size: 0.875rem;
    font-weight: 400;
    color: #afafaf;
}

/* Responsive */
@media (max-width: 767px) {
    .podcast-content {
        padding: 1.5rem;
    }

    .podcasts-archive .page-title {
        font-size: 1.56rem;
    }

    .podcast-title {
        font-size: 0.98rem;
    }

    .podcast-cover {
        padding-bottom: 75%; /* Shorter on mobile */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .podcast-cover {
        padding-bottom: 120%; /* Taller in tablet view */
    }
}


/* Category Page Styles */
.category-title {
    font-size: 2.34rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.6em;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.3em;
}

/* Featured Grid Cards */
.category-featured-grid {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 2em;
}
.category-featured-card {
    background: var(--bg-color);
    overflow: hidden;
}

.category-featured-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-featured-img:hover {
    transform: scale(1.05);
}

.category-featured-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.category-featured-title a {
    color: var(--text-color);
    text-decoration: none;
}

.category-featured-title a:hover {
    color: #56a5dc;
}
.category-featured-date {
    opacity: 0.8;
    padding-top: 5px;
}

/* Article List Items */
.category-article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.6rem;
}

.category-article-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eeeeee;
}

.category-article-item:last-child {
    border-bottom: none;
}

.category-article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.category-article-title a {
    color: var(--text-color);
    text-decoration: none;
}

.category-article-title a:hover {
    color: #56a5dc;
}

.category-article-excerpt {
    font-size: 1.01rem;
    font-weight: 300;
    /*line-height: 1.3;*/
    color: #666;
}

/* Pagination */
.category-pagination {
    margin-top: 2rem;
}

.category-pagination .page-numbers {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0;
    list-style: none;
}

.category-pagination .page-numbers li {
    display: inline-block;
}

.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #eeeeee;
    background: var(--bg-color);
}

.category-pagination .page-numbers .current {
    background: #56a5dc;
    color: #fff;
    border-color: #56a5dc;
}

.category-pagination .page-numbers a:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 767px) {
    .category-article-img {
        height: 200px;
    }

    .category-article-title {
        font-size: 1.1rem;
    }
}



/* ========== Car Slider Widget ========== */
.car-slider-widget {
    background: var(--bg-color);
    overflow: hidden;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

/* Fuel Widget */
.fuel-widget {
    position: relative;
    background-color: #0f1b26 !important;
    min-height: 150px;
    border-radius: 16px;
}

.fuel-widget h5 {
font-size: 26px;
font-weight: bold;
    line-height: 1.3;
    z-index: 1;
    position: relative;
    display: inline-block; /* Makes width fit the text content */
}

.fuel-widget h5:after {
    content: '';
    display: block;
    width: 100%; /* Now 100% of the inline-block text width */
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    bottom: 14px;
    left: 0;
    z-index: -1; /* Places line BEHIND the text */
}

.fuel-icon {
    position: absolute;
    right: -20px;
    top: 65%;
    transform: translateY(-50%);
}
.fuel-icon img {
    filter: brightness(0) invert(1);
    transform: rotateY(180deg);
}


/* Slider Header */

.car-slider-section {
    border: 1px solid var(--wdgt-border-color);
    background: var(--wdgt-bg-color);
    border-radius: 16px;
    padding-bottom: 24px;
}
.car-slider-section  .carSwiper {
    padding: 0 0 5px 0;
}
.slider-header {
    padding-top: 5px;
    margin-bottom: 15px;
}

.slider-header h5 {
/*color: #0f1b26;*/
/*font-size: 34px;*/
/*font-weight: 700;*/

    font-size: 26px;
    font-weight: bold;
    line-height: 1.3;
    z-index: 1;
    position: relative;
    display: inline-block;
}
.car-slider-section .slider-header h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 0.7rem;
    margin-top: 15px;
}
.car-slider-section .car-slide-content {
    /*background: #fff;*/
    border-radius: 8px;
    overflow: hidden;
}
.slider-header h5:after {
    content: '';
    display: block;
    width: 100%; /* Now 100% of the inline-block text width */
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    bottom: 13px;
    left: 0;
    z-index: -1; /* Places line BEHIND the text */
}
.car-slider-section .slider-header h5:after {
    content: none!important;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 4px;
    justify-self: flex-end;
    margin-right: 15px;
}

.slider-btn {
    /*width: 52px;*/
    /*height: 46px;*/
    border: 2px solid #d2d2d2;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #101215;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: #ffffff;
    border-color: #c3c3c3;
}

.slider-btn .fas {
    color: inherit;
}

.slider-btn i {
    font-size: 18px;
    line-height: 1;
}

.slider-btn.car-prev,
.slider-btn.nouveautes-prev,
.slider-btn.essai-prev {
    color: #9aa0a6;
}

.slider-btn.car-next,
.slider-btn.nouveautes-next,
.slider-btn.essai-next {
    color: #101215;
}

.slider-btn.swiper-button-disabled,
.slider-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Car Swiper */
.carSwiper {
    padding: 0 0 20px 0;
}

.carSwiper .swiper-slide {
    width: 100%;
    height: auto;
}

.car-slide-content {
    /*background: #fff;*/
    border-radius: 8px;
    overflow: hidden;
}

/* Car Image */
.car-image {
    /*background: #f8f9fa;*/
    /*padding: 8px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.car-slide-content .car-image img {
    max-width: 72%;
    height: auto;
    transition: transform 0.3s ease;
}

.car-slide-content:hover .car-image img {
    transform: scale(1.05);
}

/* Car Info */
.car-info {
    /*background: #fff;*/
}

.car-model {
font-size: 15px;
font-weight: bold;
color: var(--primary-color);
margin-bottom: 0px;
}

.car-version {
font-size: 15px;
font-weight: bold;
color: var(--primary-color);
margin-bottom: 0px;
}

.car-price {
font-size: 16px;
color: #d80000 !important;
font-weight: bold;
margin-bottom: 0px;
}

/* Responsive */
@media (max-width: 992px) {
    .slider-header h5 {
        font-size: 16px;
    }

    .car-model {
        font-size: 14px;
    }

    .car-price {
        font-size: 13px;
    }

    .fuel-widget h5 {
        font-size: 16px;
    }

    .fuel-icon {
    font-size: 28px;
}
}

@media (max-width: 768px) {
    .car-slider-widget {
        margin-bottom: 20px;
    }
}

/* ========== Car Types Section ========== */

.car-types {
    border: 1px solid var(--wdgt-border-color);
    background: var(--wdgt-bg-color);
}

.car-types h2 {
font-size: 38px;
font-weight: 700;
}

.car-types .row {
    display: flex;
    flex-wrap: wrap;
}

.car-types .row > [class*='col-'] {
    display: flex;
}

.car-type-card {
    padding: 2rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distributes space evenly */
    min-height: 280px; /* Set minimum card height */
    background-image: url('assets/images/icons/logo-icon.svg');
    background-size: 140px;
    background-repeat: no-repeat;
    background-position: center 30px;
    /*background: #0a4b78;*/
}

.car-type-card:hover {
    transform: translateY(-4px);
    /*box-shadow: 0 10px 20px rgba(0,0,0,0.1);*/
}

.car-type-card img {
    width: 100%;
    height: 150px; /* Fixed height for image area */
    object-fit: contain; /* Keeps aspect ratio, centers image */
    object-position: center; /* Ensures centering */
    margin-bottom: 1rem;
}

.car-type-card h5 {
font-size: 28px;
font-weight: 600;
margin-top: auto; /* Pushes title to bottom */
}


/* ========== News Section (3 Columns) ========== */
.news-section {
    background: var(--bg-color);
}

.section-title {
font-size: 1.7rem;
font-weight: 600;
color: var(--primary-color);
display: inline-block;
position: relative;
z-index: 2;
}

.title-icon {
    /*color: var(--primary-color);*/
    margin-left: 5px;
    position: absolute;
    right: -15px;
    z-index: -1;
    top: 40%;
    transform: translateY(-50%);
}
.title-icon img {
    width: 52px;
    height: 52px;
}

/* Left Column: Featured Article */
.featured-article {
    /*border: 1px solid #e0e0e0;*/
    border-radius: 0;
    overflow: hidden;
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    height: 100%;
}

.featured-article:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.1);*/
}

.featured-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

/*.featured-content {*/
/*    background: #fff;*/
/*}*/

/* Vertical dividers between columns */
.news-section .row > [class*='col-']:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: rgba(224, 224, 224, 0.62);
    margin-bottom: 15px;
}

/* Make columns position relative for absolute positioning */
.news-section .row > [class*='col-'] {
    position: relative;
    padding: 0px 25px;
}

/* Remove divider on mobile when columns stack */
@media (max-width: 991px) {
    .news-section .row > [class*='col-']:not(:last-child)::after {
        display: none;
    }
}


.badge-category {
    display: inline-block;
    /*background: #6c757d;*/
    color: var(--category-red);
    font-size: 14px;
    font-weight: 600;
    padding: 0px 0px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.featured-title {
font-size: 22px !important;
font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Middle Column: News List */
.news-list {
    background: var(--bg-color);
    height: 100%;
}

.news-item {
    padding-bottom: 6px;
    padding-top: 8px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: padding-left 0.3s ease;
}
.news-item:first-child {
    padding-top: 0px;
    margin-top: -5px;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    padding-left: 10px;
}

.news-title {
font-size: 16px;
font-weight: 600;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

/* Right Column: Popular Sidebar */
.popular-sidebar {
    background: var(--bg-color);
    height: 100%;
}

/* Center the inline-block element within parent */
.popular-sidebar {
    background: var(--bg-color);
    height: 100%;
    text-align: center; /* Centers the inline-block child */
}

/* Background fits text width, text centered vertically */
.sidebar-title {
font-size: 19px;
font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    margin: 0 auto 20px auto;
    letter-spacing: 1px;

    /* Keep inline-block for width-to-content */
    display: inline-block;

    /* Vertical centering of text */
    padding: 7px; /* Adjust padding for desired height */
    line-height: 1.2; /* Adjust line-height for vertical balance */
}


.popular-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    padding-top: 5px;
}

.popular-item:last-child {
    border-bottom: 0px solid transparent;
}

.popular-item:hover {
    transform: translateX(5px);
}

.popular-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 65px;
    object-fit: cover;
}

.popular-content {
    flex: 1;
}

.popular-category {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--category-red);
    text-transform: uppercase;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.popular-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 0;
}

.col-lg-4 .popular-title {
	font-size:15px !important;
}

.popular-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0;

    /* Multi-line truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-title {
    font-size: 28px;
    }

    .featured-title {
        font-size: 16px;
    }

    .news-title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .featured-image {
        height: 200px;
    }

    .popular-image {
        width: 80px;
        height: 60px;
    }

    .popular-title {
        font-size: 12px;
    }
}


/* ========== Test Drives Section ========== */
.test-drives {
    border: 1px solid var(--wdgt-border-color);
    background: var(--wdgt-bg-color);
    padding-bottom: 10px!important;
}

/* Section Header with Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CRITICAL: Force equal heights in Swiper */
.essaiSwiper {
    padding: 0 0 0px 0;
}

.essaiSwiper .swiper-wrapper {
    align-items: stretch; /* Makes all slides equal height */
}

.essaiSwiper .swiper-slide {
    height: auto; /* Required for flexbox equal heights */
    display: flex;
}

/* Card - Fixed Structure */
.test-drives .card {
    border: none;
    transition: all 0.3s ease;
    padding: 15px;
    background: transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.test-drives .card:hover {
    transform: translateY(-5px);
}

/* Image Container - Fixed Height */
.card-img-top {
    height: 160px !important; /* Force fixed height */
    width: 100% !important;
    object-fit: cover !important; /* Crop to fill */
    object-position: center !important;
    border-radius: 15px 15px 0px 0px !important;
    background-color: #f5f5f5;
    flex-shrink: 0;
    display: block; /* Remove any inline spacing */
}

/* Card Body */
.test-drives .card-body {
    border: 1px solid #eeeeee;
    border-radius: 0px 0px 15px 15px;
    padding: 15px;
    min-height: 60px; /* Ensures minimum height for body */
}

.test-drives .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .slider-controls {
        align-self: flex-end;
    }
}
/* Responsive Adjustments */
@media (max-width: 992px) {
    .test-drives .card img {
        height: 140px; /* Slightly smaller on tablets */
    }

    .test-drives .card-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .test-drives .card img {
        height: 180px; /* Larger on mobile for better visibility */
    }

    .test-drives .card-title {
        font-size: 20px;
    }
}

/* ========== Guides Section ========== */

.guides-section {
    text-align: center; /* Centers all inline/inline-block children */
}

.guides-section .row {
    text-align: left; /* Reset for the cards */
}
/* Guide Card */
.guide-card {
    background: #0f1b26 !important; /* Dark blue-gray like screenshot */
    border-radius: 16px !important;
    padding: 25px 15px !important;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: left;
    margin-right: 20px;
    margin-left: 20px;
}

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

/* Title */
.guide-card h5 {
font-size: 15px;
font-weight: 600;
color: #fff;
margin-bottom: 15px;
line-height: 1.3;
}

/* Description Text */
.guide-card p {
    font-size: 13px;
    font-weight: 100;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
	padding: 0 5px;
    flex: 1; /* Pushes icons to bottom */
}

/* Icon Wrapper - Bottom Right */
.icon-wrapper {
    position: absolute;
    bottom: 13px;
    right: 10px;
    width: 217px;
    height: 158px;
}

/* Small Icon (EV Plug) - Top Left of Icon Area */
.small-icon {
    position: absolute;
    top: 19px;
    left: 28px;
    width: 50px;
    height: 50px;
    z-index: 2;
    filter: brightness(0) invert(1) opacity(0.8); /* Makes icon white */
    display: none;
}

/* Big Icon (Car) - Bottom Right, Overlapping */
.big-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    z-index: 1;
    filter: brightness(0) invert(1) opacity(0.8); /* Semi-transparent white */
}

/* Responsive */
@media (max-width: 992px) {
    .guide-card {
        min-height: 280px;
    }

    .guide-card h5 {
        font-size: 22px;
    }

    .icon-wrapper {
        width: 100px;
        height: 80px;
    }

    .small-icon {
        width: 35px;
        height: 35px;
    }

    .big-icon {
        width: 75px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .guide-card {
        min-height: 260px;
    }

    .guide-card h5 {
        font-size: 20px;
    }

    .guide-card p {
        font-size: 13px;
    }
}


/* ========== Dossiers Section ========== */
.dossiers-section .card {
    border: none;
    border-radius: 0!important;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.dossiers-section .card:hover {
    transform: translateY(-10px);
    /*box-shadow: 0 8px 16px rgba(0,0,0,0.2);*/
}

.dossiers-section .card-img-top {
    border-radius: 0!important;
}
.dossiers-section .card {
    /*padding: 20px;*/
}
.dossiers-section .card img {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.dossiers-section .card-body {
    padding: 10px 0px 0px 0px;
}

.dossiers-section .card-category {
    display: block;
    color: var(--category-red);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.dossiers-section .card-title {
font-size: 16px;
font-weight: 600;
    line-height: 1.4;
    color: #000;
    margin-bottom: 0;
}



/* ========== Videos Section with Swiper ========== */

.videos-section {
    background: var(--bg-color);
}

.videos-section .section-title {
    margin: 0;
}

.watch-all-link {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.watch-all-link i {
    padding-bottom: 3px;
}

.watch-all-link:hover {
    color: var(--secondary-color);
}

.videoSwiper {
    padding: 20px 0;
    margin: 0 -15px;
}

.videoSwiper .swiper-slide {
    height: auto;
}

.video-card {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    aspect-ratio: 282 / 501;
}

.video-thumbnail:hover {
    transform: scale(0.98);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 20px 24px 10px 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 200px;
}

.video-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 12px;
}

.video-duration {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.video-duration i {
    font-size: 0.75rem;
    padding-bottom: 3px;
}

/* Swiper Navigation Buttons */


/* Swiper Navigation Buttons */
.videoSwiper .swiper-button-next,
.videoSwiper .swiper-button-prev {
    color: #000;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.videoSwiper .swiper-button-next:after,
.videoSwiper .swiper-button-prev:after {
    font-size: 18px;
}

.videoSwiper .swiper-button-next:hover,
.videoSwiper .swiper-button-prev:hover {
    background: var(--bg-color);
}


/* ========== Films Section ========== */
.films-section {
    text-align: center; /* Centers all inline/inline-block children */
    background: #0f1b26 !important;
}
.films-section .row {
    text-align: left; /* Reset for the cards */
}
.films-section .section-title {
    color: white;
    margin-bottom: 40px;
}
/* Make anchor block so film-poster-ratio fills the column width */
.film-card a {
    display: block;
}
.film-poster-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 1200/900 = 3:4 portrait ratio */
    overflow: hidden;
}
.film-poster-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.film-card p {
font-size: 19px;
font-weight: 600;
}

.film-card:hover .film-poster-ratio img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}


/* ========== Barometre Content Section ========== */
.barometre-content-section {
    /*background: #f8f9fa;*/
    border-top: 1px solid #e0e0e0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.7rem;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: #333;
}

/* Breadcrumb separator */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    font-family: inherit;
    font-weight: 800;
    font-size: 0.5rem;
    color: #999;
    padding: 3px 0.5rem 0 0;
}

/* Title and Description */
.barometre-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.barometre-desc {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.05rem;
    /*line-height: 1.6;*/
    color: var(--primary-color);
    max-width: 80%;
    margin: 0 auto;
}

/* ========== Fuel Table - Override Bootstrap ========== */
.fuel-table-wrapper {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}

/* Force table to use separate borders for radius */
.barometre-content-section .fuel-table-wrapper .fuel-table {
    /*margin: 0;*/
    border-collapse: separate !important;
    border-spacing: 0 28px !important; /* Spacing between rows */
    width: 90%;
    margin: 0 auto;
}


/* Force thead background and colors */
.barometre-content-section .fuel-table-wrapper .fuel-table thead {
    background-color: var(--dark-color) !important;
}

.barometre-content-section .fuel-table-wrapper .fuel-table thead th {
    background-color: var(--dark-color) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    font-size: 1.8rem;
    padding: 0.3rem 2rem 0.1rem 2rem;
}

/* Add margin-top to tbody (works in most browsers) */
.barometre-content-section .fuel-table-wrapper .fuel-table tbody::before {
    content: '';
    display: block;
    height: 1px;
    background: transparent;
}


/* Rounded thead corners */
.barometre-content-section .fuel-table-wrapper .fuel-table thead th:first-child {
    border-top-left-radius: var(--fuel-table-border-radius) !important;
    border-bottom-left-radius: var(--fuel-table-border-radius) !important;
}

.barometre-content-section .fuel-table-wrapper .fuel-table thead th:last-child {
    border-top-right-radius: var(--fuel-table-border-radius) !important;
    border-bottom-right-radius: var(--fuel-table-border-radius) !important;
}

/* Remove Bootstrap's default border-bottom from thead */
.barometre-content-section .fuel-table-wrapper .fuel-table thead th,
.versions-table-wrapper .versions-table thead th
{
    border-bottom: none !important;
}

/* Tbody rows styling */
/*.barometre-content-section .fuel-table-wrapper .fuel-table tbody tr {*/
/*    background: gray;*/
/*}*/

.barometre-content-section .fuel-table-wrapper .fuel-table tbody td
/*.versions-table-wrapper .versions-table td */
{
    background: var(--light-gray) !important;
    padding: 1.5rem 2rem;
    vertical-align: middle;
    border: none !important;
}

/* Rounded tbody row corners */
.barometre-content-section .fuel-table-wrapper .fuel-table tbody tr td:first-child
/*.versions-table-wrapper .versions-table tbody tr td:first-child */
{
    border-top-left-radius: var(--fuel-table-border-radius) !important;
    border-bottom-left-radius: var(--fuel-table-border-radius) !important;
}

.barometre-content-section .fuel-table-wrapper .fuel-table tbody tr td:last-child
/*.versions-table-wrapper .versions-table tbody tr td:last-child */
{
    border-top-right-radius: var(--fuel-table-border-radius) !important;
    border-bottom-right-radius: var(--fuel-table-border-radius) !important;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: var(--bg-color);
    border-radius: 50%;
    padding: 10px;
}

.company-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
}

.price-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.version-name {
    font-weight: 600;
    font-size: 0.78rem;
    display: block;
    /*line-height: 1rem;*/
    margin-bottom: -0.5rem;
    margin-left: 1rem;
}
.details-version {
    font-weight: 500;
    font-size: 0.7rem;
    margin-left: 1rem;
    /*line-height: 8px;*/
}
.compare-version input{
    margin-top: 0.4rem;
}

.price-version {
    color: var(--secondary-color) !important;
}
.price-version.promo {
    color: var(--danger-color) !important;
    position: relative;
}
.price-version.promo:before {
    content: " ";
    width: 25px;
    height: 25px;
    display: inline-block;
    /*border: 1px solid red;*/
    background: url("assets/images/icons/discount-badge.svg") no-repeat center;
    background-size: contain;
    top: 22px;
    left: 15px;
    position: absolute;
}

.versions-table-wrapper .versions-table {
    /*margin: 0;*/
    border-collapse: separate !important;
    border-spacing: 0 12px !important; /* Spacing between rows */
    width: 95%;
    margin: 0 auto;
}
.versions-table thead th {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.1rem;
}


/* Subscription wrapper - 90% width and centered */
.subscription-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 5rem auto;
}

.subscription-wrapper .row {
    margin-bottom: 0;
}

/* Subscription Boxes */
.subscription-box {
    background: var(--bg-color);
    border-radius: var(--fuel-table-border-radius);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}
.versions-table-wrapper .versions-table td
{
    background: var(--wdgt-bg-color) !important;
    padding: 1rem 1rem;
    vertical-align: middle;
    border: none !important;
	font-weight:bold;
}

.newsletter-box {
    background: #424f5f;
    color: white;
}

.whatsapp-box {
    background: #4caf50;
    color: white;
}

.subscription-icon {
    flex-shrink: 0;
}

.subscription-icon i {
    font-size: 3rem;
}
.subscription-icon img {
    width: 60px;
    height: 60px;
}

.subscription-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subscription-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0; /* Remove bottom margin */
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent text from shrinking */
    text-align: center;
}

.subscription-form {
    flex: 1;
}

/* Input wrapper with button inside */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.subscription-form .form-control {
    width: 100%;
    border-radius: 50px;
    padding: 0.55rem 130px 0.55rem 1.5rem;
    border: none;
    font-size: 0.9rem;
}

.subscription-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.btn-subscribe {
    position: absolute;
    right: 5px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 10px;
}

.whatsapp-box .btn-subscribe {
    background: var(--bg-color);
    color: #424f5f;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 1px;
    padding: 0.4rem 1rem 0.2rem 1rem;
}

.btn-subscribe:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-content {
        flex-direction: column;
        align-items: stretch;
    }

    .subscription-content h5 {
        white-space: normal;
        text-align: center;
    }
}
/* Nouveautés Section */
.nouveautes-section {
    margin-top: 3rem;
}

.nouveautesSwiper .swiper-slide {
    width: auto;
}

/* Nouveautés Section - Fix card sizes */
.nouveautes-section .car-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nouveautes-section .car-image {
    /*background: #f8f9fa;*/
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: 180px;
    flex-shrink: 0;
}

.nouveautes-section .car-image img {
    max-width: 95%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.nouveautes-section .car-info {
    /*background: #fff;*/
    padding: 1rem;
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .barometre-title {
        font-size: 1.8rem;
    }

    .barometre-desc {
        font-size: 0.95rem;
        max-width: 96%;
        letter-spacing: 0.01rem;
    }

    .subscription-box {
        flex-direction: column;
        text-align: center;
    }

    .subscription-form {
        flex-direction: column;
    }

    .barometre-content-section .fuel-table-wrapper .fuel-table {
        width: 100%;
        border-spacing: 0 10px !important;
    }

    .barometre-content-section .fuel-table-wrapper .fuel-table thead th {
        font-size: 0.72rem;
        padding: 0.35rem 0.45rem 0.25rem 0.45rem;
        line-height: 1.15;
        letter-spacing: 0.01rem;
    }

    .barometre-content-section .fuel-table-wrapper .fuel-table tbody td {
        padding: 0.6rem 0.45rem;
        font-size: 0.76rem;
    }

    .barometre-content-section .fuel-table-wrapper .fuel-table tbody tr td:first-child .d-flex {
        flex-direction: column;
        align-items: center !important;
        justify-content: center;
        gap: 0.3rem !important;
    }

    .barometre-content-section .company-logo {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .barometre-content-section .company-name {
        font-size: 0.72rem;
        line-height: 1.2;
        text-align: center;
    }

    .barometre-content-section .price-cell {
        font-size: 0.76rem;
        line-height: 1.15;
    }
}

@media (max-width: 576px) {
    .barometre-content-section .fuel-table-wrapper .fuel-table {
        border-spacing: 0 8px !important;
    }

    .barometre-content-section .fuel-table-wrapper .fuel-table thead th {
        font-size: 0.94rem;
        padding: 0.3rem 0.3rem 0.2rem 0.3rem;
    }

    .barometre-content-section .fuel-table-wrapper .fuel-table tbody td {
        padding: 0.45rem 0.3rem;
        font-size: 0.82rem;
    }

    .barometre-content-section .company-logo {
        width: 26px;
        height: 26px;
        padding: 3px;
    }

    .barometre-content-section .company-name {
        font-size: 0.66rem;
    }

    .barometre-content-section .price-cell {
        font-size: 0.68rem;
    }
}


/* ========== Fiche Content Section ========== */
/* Add border and radius to fiche container */
.fiche-content-section .container {
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 1rem;
    /*background: white;*/
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
}

/* Adjust section background if needed */
.fiche-content-section {
    /*background: #f8f9fa;*/
    padding: 0.1rem 0;
}

/* Responsive padding */
@media (max-width: 768px) {
    .fiche-content-section .container {
        padding: 1.5rem;
    }
}

/* Breadcrumb with full-width bottom border */
.fiche-content-section nav[aria-label="breadcrumb"] {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 1.5rem;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .fiche-content-section nav[aria-label="breadcrumb"] {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Fiche Header */
.fiche-header {
    margin-bottom: 2rem;
}

.fiche-title {
    font-size: 1.64rem;
    font-weight: 600;
    color: #000;
    margin-bottom: .4rem;
}

.fiche-subtitle {
    font-size: .95rem;
    font-weight: 500;
    color: #555;
}

.annonce-meta-right {
    font-size: .82rem;
}

.annonce-report-link:hover {
    color: #c0392b !important;
    text-decoration: underline !important;
}

.fiche-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0rem 0.8rem;
    /*border: 1px solid #eeeeee;*/
}

.fiche-content-section .wrapper-price {
    border: 1px solid #eeeeee;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.2rem 1rem;
}

.fiche-price-section img {
    width: 32px;
    height: 32px;
}

.fiche-price-section .occ-phone-btn  img {
    width: 20px;
    height: 20px;
}

.price-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.price-meta {
    margin-left: auto;
    padding-left: 0.9rem;
    border-left: 1px solid #eeeeee;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--category-red);
}

.old-price {
    font-size: 1.0rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: var(--secondary-color);
    color: white;
    padding: 2px 3px 1px 3px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    line-height: 10px;
}

/* Media Tabs (Images/Videos) */
.media-tabs {
    display: flex;
    gap: 6px;
    /*border: 1px solid #dee2e6;*/
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.media-tab {
    background: rgba(248, 249, 250, 0);
    border: 1px solid #eeeeee;
    padding: 2px 3px 1px 3px;
    line-height: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}


.media-tab i {
    font-size: 1.1rem;
}

.media-tab img {
    width: 15px;
    height: 15px;
}

.media-tab.active {
    background: var(--medium-gray);
    color: white;
}

.media-tab.active img {
    filter: brightness(0) invert(1);
}
.media-tab:hover:not(.active) img {
    filter: brightness(0) invert(1);
}

.media-tab:hover:not(.active) {
    background: var(--medium-gray);
    color: white;
}

/* Responsive */
@media (max-width: 576px) {
    .media-tabs {
        width: 100%;
    }

    .media-tab {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}


/* ========== Photo Gallery ========== */
.photo-gallery {
    background: rgb(26, 26, 26);
    /*border-radius: 12px;*/
    overflow: hidden;
    /*padding: 1rem;*/
}

.mainGallerySwiper {
    position: relative;
    /*border-radius: 8px;*/
    overflow: hidden;
    background: #f8f9fa;
}

.mainGallerySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.mainGallerySwiper .swiper-slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    /*max-width: 100%;*/
    /*!* max-height: 400px; *!*/
    /*height: 100%;*/
    /*object-fit: cover;*/
}

.top10-carousel-section .swiper-button-next,
.top10-carousel-section .swiper-button-prev,
.mainGallerySwiper .swiper-button-next,
.mainGallerySwiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 28px;
    height: 30px;
}

.top10-carousel-section .swiper-button-prev,
.mainGallerySwiper .swiper-button-prev {
    border-radius: 0px 6px 6px 0px;
    left: 0;
}
.top10-carousel-section .swiper-button-next,
.mainGallerySwiper .swiper-button-next {
    border-radius: 6px 0px 0px 6px;
    right: 0;
}

.mainGallerySwiper .swiper-button-next::after,
.mainGallerySwiper .swiper-button-prev::after {
    font-size: 1rem;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.2rem 0.4rem 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.62rem;
    line-height: 0.8rem;
    z-index: 10;
}

.gallery-badge i {
    margin-right: 0.5rem;
    display: none;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    margin-top: 6px;
}

.thumbGallerySwiper .swiper-slide {
    cursor: pointer;
    /*border-radius: 8px;*/
    overflow: hidden;
    position: relative;
    /*border: 2px solid transparent;*/
    transition: border 0.3s ease;
}

.thumbGallerySwiper .swiper-slide:hover,
.thumbGallerySwiper .swiper-slide-thumb-active {
    border-color: var(--secondary-color);
}

.thumbGallerySwiper .swiper-slide img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========== Collapsible Details Sections ========== */
.details-accordion {
    /*margin-top: 0rem;*/
    padding-top: 40px;
}

.detail-section {
    /*background: white;*/
    margin-bottom: 2.4rem;
    overflow: hidden;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1rem;
    background: #3e3d3d;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.3rem;
}

.btn-collapse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.label-details {
    font-weight: 500;
    font-size: 0.7rem;
}

/* Icon styling */
.btn-collapse i {
    font-size: 12px;
    border: 1px solid #FFF;
    border-radius: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hide minus icon when collapsed */
.detail-header.collapsed .icon-minus {
    display: none !important;
}

/* Show plus icon when collapsed */
.detail-header.collapsed .icon-plus {
    display: flex !important;
}

/* Hide plus icon when expanded */
.detail-header:not(.collapsed) .icon-plus {
    display: none !important;
}

/* Show minus icon when expanded */
.detail-header:not(.collapsed) .icon-minus {
    display: flex !important;
}

.detail-body {
    padding: 0 20px 0 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1.6rem 0 0.1rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #3e3d3d;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 1px;
}

.detail-value {
    text-align: right;
}


/* ========== Sidebar Widgets ========== */
.widget {
    background: var(--wdgt-bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}
.widget.car-slider-widget {
    background: none;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    padding-bottom: 1.2rem;
    /*border-bottom: 2px solid #f0f0f0;*/
}

/* Versions & Models Lists */
.versions-list,
.models-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.versions-list li,
.models-list li {
    margin-bottom: 0.75rem;
}

.versions-list li:last-child,
.models-list li:last-child {
    margin-bottom: 0;
}

.versions-list a,
.models-list a {
    color: #333;
    text-decoration: none;
    font-size: 0.90rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.versions-list a:hover,
.models-list a:hover {
    color: var(--secondary-color);
}

.versions-list a i,
.models-list a i {
    font-size: 0.8rem;
    /*margin-top: -0.1rem;*/
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.3rem 0.2rem 0.3rem;
    border-radius: 9px;
}

/* Nouveautés Widget Slider */
.nouveautes-widget .widget-header {
    margin-bottom: 1rem;
}

.nouveautes-widget .car-slider-section {
   background: transparent;
    border: none;
}

.nouveautes-widget .slider-header h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 0.7rem;
}

.nouveautes-widget .slider-header h5:after {
   content: none;
}

.nouveautes-widget  .carSwiper {
    padding: 0 0 5px 0;
}



/* Thumbnail navigation arrows */
.thumbnail-gallery {
    position: relative;
}

.thumb-button-next,
.thumb-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.thumb-button-next:hover,
.thumb-button-prev:hover {
    background: var(--secondary-color);
}

.thumb-button-prev {
    left: 5px;
}

.thumb-button-next {
    right: 5px;
}

/* Hide arrows when not needed */
.thumb-button-next.swiper-button-disabled,
.thumb-button-prev.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* Compare Form Widget - Select styling */
.compare-widget .form-select {
    margin-bottom: 1px;
    border: 1px solid #eeeeee;
}



/* Change text color when an option is selected */
.compare-widget .form-select:not(:invalid) {
    color: #333;
}

/* Style for options */
.compare-widget .form-select option {
    color: var(--light-gray); /* Black text for options */
}

.compare-widget .form-select option:first-child {
    color: var(--light-gray); /* Gray for placeholder option */
}

/* When select has a valid value (not placeholder), make it black */
.compare-widget .form-select:valid {
    color: #333 !important;
}

.compare-widget .form-select:focus, .compare-widget .form-select:active {
    border: 1px solid #eeeeee;
    box-shadow: none;
    color: #333 !important;
}

.compare-form > .mb-3 {
    margin-bottom: 10px !important;
}

.compare-widget .btn-dark {
    margin-top: 2rem;
    padding: 0.7rem 1rem 0.5rem 1rem;
}


/* Responsive */
@media (max-width: 991px) {
    .fiche-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .mainGallerySwiper .swiper-slide {
        min-height: 300px;
    }

    .detail-header {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .detail-body {
        padding: 1.5rem;
    }

    .widget {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .fiche-price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-info {
        flex-wrap: wrap;
    }

    .price-meta {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        white-space: normal;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-value {
        text-align: left;
    }

    .thumbGallerySwiper .swiper-slide img {
        height: 80px;
    }
}

/* ========== Voitures Neuves Page Styles ========== */
.search-form-panel, .top10-carousel-section {
    border: 1px solid var(--wdgt-border-color);
    background: var(--wdgt-bg-color);
    border-radius: 16px;
    padding-bottom: 1.1rem;
}

/* Change text color when an option is selected */
.search-form-panel .form-select:not(:invalid) {
    color: #333!important;
}

/* Style for options */
.search-form-panel .form-select option {
    color: #333!important; /* Black text for options */
}

.search-form-panel .form-select option:first-child {
    color: #999!important; /* Gray for placeholder option */
}
.search-form-panel input.form-select {
    background-image: none;
}
.search-form-panel input.form-select::placeholder {
    background-image: none;
    color: #999 !important;
}

/* Search Form Panel */
.search-form-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Top 10 Carousel Section */
.top10-carousel-section h2 {
    color: var(--category-red);
    font-weight: 600;
    font-size: 2.1rem;
}

.top10Swiper {
    padding: 0.1rem 2rem;
}

.top-position {
    position: absolute;
    top: -5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font-size: 8rem;
    font-weight: bold;
    z-index: -1;
}

.top10-carousel-section .car-card img {
    max-height: 180px;
    padding-top: 1rem;
}

.top10-carousel-section .car-card h5 {
    font-size: 1.2rem;
    font-weight: 500;
}

.top10-carousel-section .badge {
    background-color: #5b9bd5;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.top10-carousel-section .swiper-button-prev,
.mainGallerySwiper .swiper-button-prev {
    left: 0;
    top: calc(50% - 0rem);
    transform: translateY(calc(50% - 0rem));
}
.top10-carousel-section .swiper-button-next,
.mainGallerySwiper .swiper-button-next {
    right: 0;
    top: calc(50% - 0rem);
    transform: translateY(calc(50% - 0rem));
}

/* Brand Grid Section */
.brand-grid-section h2 {
    font-weight: 600;
    font-size: 2.03rem;
    /*letter-spacing: 0.3rem;*/
}

.brand-grid-section .brand-tile {
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-rows: 1fr auto;    /* Image area flexible, title fixed */
    align-items: center;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    padding: 1rem;
    gap: 0.5rem;
    border-radius: 12px;
    background-color: #eeeeee;
}

.brand-grid-section .brand-tile img {
    max-height: 90px;
    max-width: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    justify-self: center;
    align-self: center;
    padding-top: 0.5rem;
}

.brand-grid-section .brand-tile p {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    grid-row: 2;                     /* Always in second row */
}

/* Tablet */
@media (max-width: 991px) {
    .brand-grid-section .brand-tile {
        max-width: 140px;
    }
    .brand-grid-section .brand-tile img {
        max-height: 50px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brand-grid-section .brand-tile {
        max-width: 120px;
    }
    .brand-grid-section .brand-tile img {
        max-height: 40px;
    }
    .brand-grid-section .brand-tile p {
        font-size: 0.7rem;
    }
}


/* Car Listing Page Styles - Add to style.css */

/* Page Title */
.page-title-wrapper {
    padding: 1rem 0;
}

.page-main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Active Filters */
.active-filters .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-color: #afafaf;
}

/* Filter Sidebar */
.filter-sidebar-wrapper {
    background: var(--bg-color);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.filter-header-box {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #0f1b26;
}

.filter-main-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eeeeee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.filter-options-list .form-check {
    margin-bottom: 0.75rem;
}

.filter-options-list .form-check-label {
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
}

.filter-options-list .form-check-input:checked {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.filter-show-more {
    font-size: 0.875rem;
    color: #56a5dc;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.filter-show-more:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-sidebar-wrapper {
        margin-bottom: 2rem;
    }

    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .page-main-title {
        font-size: 1rem;
    }

    .active-filters {
        width: 100%;
        margin-bottom: 1rem;
    }

    .car-models-grid .row {
        margin: 0 -0.5rem;
    }

    .car-models-grid .row > div {
        padding: 0 0.5rem;
    }
}


/* ========== Brand Page Styles ========== */

 /* Main Title */
.brand-main-title {
    font-size: 30px;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
/* Subtitle Section */
.wrap-box {
    border: 1px solid #eeeeee;
    padding: 15px;
}
.brand-subtitle-section {
    background: var(--bg-color);
    /*padding: 1.5rem 0;*/
    padding-bottom: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    border-bottom: 1px solid #eeeeee;
}

.brand-subtitle-text {
    font-size: clamp(0.95rem, 0.55vw + 0.82rem, 1.125rem);
}

.brand-subtitle-text p {
    font-size: 1em;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
}
.wrap-box .brand-logo {
    margin-right: 2rem;;
}

.brand-subtitle-text .price-highlight {
    color: #dc3545;
    font-weight: 600;
}

.brand-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Car Models Grid */
.car-models-grid {
    margin-bottom: 3rem;
}

.car-model-card {
    background: var(--bg-color);
    /*border-radius: 8px;*/
    overflow: hidden;
    border: 1px solid #eeeeee;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.car-image-wrapper {
    background: var(--bg-color);
    padding: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    /*border: 1px solid red;*/
}

.car-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.car-name-badge {
    background: #1a1d2e;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-name-badge .car-brand-name {
    font-size: 0.875rem; /* 2px smaller than model name */
    line-height: 1.2;
    margin-bottom: 2px;
}

.car-name-badge .car-model-name {
    font-size: 1rem;
    line-height: 1.2;
    color: white;
}

/* Description Section */
.brand-description-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.description-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 1rem;
    margin-top: 5rem;
    margin-left: 1rem;
}

.description-text p {
    font-size: 1.1rem;
    /*line-height: 1.8;*/
    color: #333;
    text-align: justify;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Newsletter Section */
.newsletter-box {
    background: #424f5f;
    border-radius: 10px;
    padding: 1.5rem;
}

.newsletter-icon {
    color: #666;
}

.newsletter-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.newsletter-form {
    gap: 10px;
}

.newsletter-input {
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    min-width: 250px;
}

.newsletter-btn {
    background: #007bff;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #0056b3;
}

/* WhatsApp Section */
.whatsapp-box {
    background: #25D366;
    border-radius: 10px;
    padding: 1.5rem;
}

.whatsapp-icon {
    color: #fff;
}

.whatsapp-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.whatsapp-btn {
    background: var(--bg-color);
    color: #25D366;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.whatsapp-btn:hover {
    background: #f0f0f0;
    color: #25D366;
}

/* Sidebar - Autres Marques Section */
.autres-marques-section {
    background: #f4f4f7;
    border-radius: 16px;
    overflow: hidden;
}

.autres-marques-header {
    background: #f8f8f8;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.autres-marques-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.autres-marques-body {
    padding: 1.5rem;
    background: #f8f8f8;
}

.brand-logo-item {
    background: var(--bg-color);
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Forces square shape */
    width: 100%;
    position: relative;
}

.brand-logo-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}


.arrow-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.arrow-btn:hover {
    color: #000;
}

.carousel-arrows {
    display: flex;
    gap: 10px;
}
.carSwiper.autres-marques {
    padding-bottom: 1rem ;
}
.slider-controls.autres-marques {
}

.brand-logo-item img {
    margin-top: 0;
}

.brand-logo.car img {
    max-height: 80px;
}
.wrap-box .brand-logo.car  {
    margin-right: 0.5rem;
}
.brand-logo.version {
    margin-right: 0.1rem;
}
.brand-logo.version img {
   max-width: 80px;
}

/* Advertisement Banner */
.ad-banner-content {
    background: linear-gradient(135deg, #3a2b5e 0%, #8b3a62 50%, #ff6b6b 100%);
    border-radius: 10px;
    padding: 2rem;
    color: #fff;
}

.ad-banner-header {
    margin-bottom: 1.5rem;
}

.ad-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.ad-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.ad-main-title {
    font-size: 1.37rem;
    font-weight: 700;
    color: #ff9966;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.ad-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
}

.ad-advantages {
    margin-bottom: 1.5rem;
}

.ad-advantages-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.ad-advantages-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.ad-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ad-logo-box {
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-logo-letter {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.ad-contact-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.ad-contact-email {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0;
}

/* Car Comparison Section */
.car-comparison-section {
    background-color: var(--bg-color);
}

.fiche-title.comparateur {
    font-size: 3rem;
    margin-top: 2.4rem;
}

.section-title {

    font-size: 2rem;
    font-weight: 700;
    color: #0f1b26;
    margin-bottom: 0;
}

.comparison-card {
    background: var(--bg-color);
    border: 1px solid #eeeeee;
    /*border-radius: 8px;*/
    padding: 1rem;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.comparison-card:hover {
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}

.card-header-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.card-header-actions .fas.fa-ellipsis-v {
    font-size: 1.6rem;
}

.btn-more {
    background: transparent;
    border: none;
    color: #afafaf;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.btn-more:hover {
    color: var(--text-color);
}

.action-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #f3f3f3;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);*/
    display: none;
    min-width: 150px;
    z-index: 10;
}

.card-header-actions:hover .action-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.car-model-name {

    font-size: 1.87rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0rem;
    text-align: center;
    margin-top: 0.5rem;
}

.car-image-wrapper {
    margin: 0 0 2.5rem  0;
    text-align: center;
}

.car-image-wrapper img {
    max-width: 100%;
    height: auto;
}

.car-info {
    text-align: center;
    padding-bottom: 2.5rem;
}

.car-year {
    display: block;
    font-size: 1.0rem;
    color: #9b9b9b;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1rem;
}

.car-specs {
    font-size: 1.5rem;
    color: #9b9b9b;
    font-weight: 600;
    line-height: 1.5rem;
    margin: 0.5rem;
}

.car-price {
    font-size: 14px;
    font-weight: 600;
    line-height: 2.5rem;
    color: #ed3e20;
    margin: 0.2rem;
}

.comparison-divider {
    border: 0;
    border-top: 2px solid #eeeeee;
    margin: 0;
}

/* Comparison-specific styles */
.car-comparison-specs {
    margin: 2rem 0;
}

.car-comparison-specs .details-accordion {
    display: flex;
    flex-direction: column;
}

.car-comparison-specs .detail-apercu-rapide {
    order: 1;
}

.car-comparison-specs .detail-prix-charges {
    order: 2;
}

.car-comparison-specs .detail-moteur-tech {
    order: 3;
}

.car-comparison-specs .detail-conso-perf {
    order: 4;
}

.car-comparison-specs .detail-dimensions-volumes {
    order: 5;
}

.car-comparison-specs .detail-securite {
    order: 6;
}

.car-comparison-specs .detail-confort {
    order: 7;
}

.car-comparison-specs .detail-esthetique {
    order: 8;
}

.comparison-row-header {
    background-color: #f3f3f3;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid #a1a09e;
    text-align: center;
}

.comparison-row-header h4 {

    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    text-align: center;
}

.comparison-row-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--bg-color);
    /*border-bottom: 1px solid #eeeeee;*/
}

.comparison-value {
    padding: 1.5rem 1rem;
    text-align: center;

    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    /*border-right: 1px solid #eeeeee;*/
}

.comparison-value:last-child {
    border-right: none;
}

.comparison-label {

    font-size: 1.8rem;
    font-weight: 300;
}

.action-dropdown {
    z-index: 1000 !important;
}

.action-dropdown.show {
    display: block !important;
}

/* Make cards equal height */
.comparison-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fixed height for car title - handles 1 or 2 lines */
.car-model-name {
    /*min-height: 6rem;*/
    /*max-height: 6rem;*/
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show max 2 lines */
    -webkit-box-orient: vertical;
    line-height: 3rem;
}

/* Fixed height container for images - UPDATED TO COVER */
.car-image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 2.5rem 0;
    overflow: hidden; /* Crop overflowing parts */
}

.comparison-card .car-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill entire container */
    object-position: center; /* Keep car centered when cropping */
}

/* Fixed minimum height for car info section */
.car-info {
    min-height: 120px;
}


/* ========== Single Article Styles ========== */
.article-main {
    background: var(--bg-color);
}

.article-category {
    display: inline-block;
    color: var(--category-red);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-title {
font-size: 28px;
font-weight: 800;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.article-meta {
    font-size: 14px;
    color: #6c757d;
    /*padding-bottom: 20px;*/
    /*border-bottom: 1px solid #e0e0e0;*/
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.article-featured-image {
    overflow: hidden;
    /*border-radius: 8px;*/
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
	border:solid 8px #e7e0c9;
}

.article-content {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #1f1e19;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content p a{
	text-decoration: underline;
	font-weight:500;
}

.article-content h2,
.article-content h3 {
    font-weight: 700;
    color: #1f1e19;
    margin-top: 30px;
    margin-bottom: 15px;
}
.article-content h2 {
    font-size:25px;
}

.article-content h3 {
    font-size:23px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0 5px 0;
    border-radius: 12px;
}

.article-content figcaption {
	margin-bottom: 0.5em;
    margin-top: .2em;
	font-size:13px;
	text-align:center;
}

/* Read more */
.article-content .yoast-seo-related-links::before{
	content:"Lire aussi :";
	font-weight:600;
	font-size:17px;
}

.article-content .yoast-seo-related-links{
	border: solid 2px #e7e0c9;
	margin: 3rem 2rem;
	padding: 1rem 2.3rem;
	box-shadow: 13px 13px 0 0 #fefcf6,
			  15px 15px 0 0 #e7e0c9,
			  15px 11px 0 0 #e7e0c9,
			  11px 15px 0 0 #e7e0c9;
}

.article-content .yoast-seo-related-links li{
	font-size:12px;
	list-style-type: square;
}

.article-content .yoast-seo-related-links li:first-child{
	margin-top:0.6rem;
}

.article-content .yoast-seo-related-links li a{
	color:#56a5dc !important;
	font-weight:600px !important;
}

.article-content .yoast-seo-related-links li a:hover{
	color:#ed3e20 !important;
	font-weight:700px !important;
}

/* Article Tags */
.article-tags .tag-badge {
    display: inline-block;
    background: #717171;
    color: #ffffff;
    padding: 4px 15px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.article-tags .tag-badge:hover {
    background: var(--secondary-color);
    color: #fff;
}

.article-tags .tags-label {
    font-size: 1.0em;
    font-weight: 400;
    color: #717171;
    margin-right: 15px;
}

/* Social Share */
.article-share .share-label {
    font-weight: 600;
    color: var(--primary-color);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Related Articles */
.section-title-small {
font-size: 19px;
font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.section-title-small::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--category-red);
}

.related-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-image {
    overflow: hidden;
    height: 180px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-category {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--category-red);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-color);
    margin: 0;
}

.related-title:hover {
    color: var(--secondary-color);
}

/* Sidebar Mini Car Cards */
.car-card-mini {
    background: var(--bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.car-card-mini:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.car-card-mini .car-image {
    margin-bottom: 10px;
}

.car-card-mini .car-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.car-card-mini .car-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.car-card-mini .car-model {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.car-card-mini .car-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--category-red);
    margin: 0;
}
.article-cat {
    font-weight: 600;
    font-size: 1.3em;
    color: #d2d2d2;
    display: flex;
    position: relative;
    z-index: 2;
    margin-bottom: 1.1rem;
}

.article-cat .article-cat-link,
.article-cat .article-cat-link:visited,
.article-cat .article-cat-link:hover,
.article-cat .article-cat-link:focus,
.article-cat .article-cat-link:active {
    color: #d2d2d2;
    text-decoration: none;
}

.article-meta-separator {
    border: 0;
    border-top: 1px solid var(--wdgt-border-color);
    opacity: 1;
}

.article-icon {
    width: 28px;
    height: 28px;
    left: 0px;
    top: -4px;
    position: relative;
    margin-right: 0.4em;
    /*z-index: -1;*/
}

/* Responsive */
@media (max-width: 991px) {
    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .article-title {
        font-size: 24px;
    }

    .related-image {
        height: 150px;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .car-model-name {
        font-size: 2rem;
        min-height: 5rem;
        max-height: 5rem;
        line-height: 2.5rem;
    }

    .car-image-wrapper {
        height: 180px;
    }

    .car-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .car-model-name {
        font-size: 1.8rem;
        min-height: 4.5rem;
        max-height: 4.5rem;
        line-height: 2.25rem;
    }

    .car-image-wrapper {
        height: 160px;
    }

    .car-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .car-info {
        min-height: 100px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-row-values {
        grid-template-columns: 1fr;
    }

    .comparison-value {
        border-right: none;
        border-bottom: 1px solid #eeeeee;
        padding: 1rem;
    }

    .comparison-value:last-child {
        border-bottom: none;
    }

    .comparison-row-header h4 {
        text-align: left;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .comparison-row-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional responsive adjustments */
@media (max-width: 991px) {
    .section-title {
    font-size: 1.3rem;
}

    .car-price {
        font-size: 1.25rem;
    }

    .guides-section .swiper-slide-active {
        margin-right: 0px!important;
    }
    .videoSwiper {
         margin: 0 0px!important;
    }
    .popular-sidebar {
        padding-top: 3rem;
    }
    .featured-title {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e0e0e0;
    }
}

@media (max-width: 767px) {
    .comparison-card {
        margin-bottom: 1rem;
    }
}

/* Empty card for adding cars */
.comparison-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 2px dashed #afafaf;
    background: #f9f9f9;
}

.empty-card-content {
    text-align: center;
}

.empty-card-content i {
    color: #56a5dc;
}

.empty-card-content h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Modal styles */
#carSelectionModal .modal-content {
    border-radius: 12px;
}

#carSelectionModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #eeeeee;
}

#carSelectionModal .modal-title {
    font-weight: 600;
    color: var(--text-color);
}

#carSelectionModal .form-select {
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

#carSelectionModal .form-select:focus {
    border-color: #56a5dc;
    box-shadow: 0 0 0 0.2rem rgba(86, 165, 220, 0.25);
}

#carSelectionModal .form-select option {
    color: var(--text-color);
}

#carSelectionModal .form-select option:first-child {
    color: #afafaf;
}

#carSelectionModal .btn-dark {
    background-color: var(--text-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

#carSelectionModal .btn-dark:hover {
    background-color: #1a2d3d;
}

#carSelectionModal .btn-secondary {
    background-color: #afafaf;
    border: none;
    padding: 0.75rem 2rem;
}

#carSelectionModal .btn-secondary:hover {
    background-color: #999;
}

/* Recent Cars Section */
.recent-cars-section {
    background: var(--bg-color);
}

.recent-cars-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.recent-car-card {
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    padding: 1.5rem;
}

.recent-car-image {
    margin-bottom: 1rem;
}

.recent-car-image img {
    width: 100%;
    border-radius: 8px;
}

.recent-car-details {
    text-align: center;
}

.recent-car-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.recent-car-price {
    font-size: 1rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .brand-main-title {
        font-size: 2rem;
    }

    .brand-logo-img {
        width: 80px;
        height: 80px;
    }

    .newsletter-input {
        min-width: 200px;
    }

    .ad-main-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .brand-main-title {
        font-size: 1.75rem;
    }

    .brand-subtitle-text p {
        font-size: 1em;
    }

    .brand-logo-img {
        width: 60px;
        height: 60px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-input {
        width: 100%;
        min-width: auto;
    }

    .newsletter-btn,
    .whatsapp-btn {
        width: 100%;
    }

    .ad-banner-content {
        padding: 1.5rem;
    }

    .ad-main-title {
        font-size: 1.2rem;
    }
}



/* ========== Footer Section ========== */
.footer-section {
    background: var(--footer-bg-color);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.footer-title-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-trace {
    width: auto;
    max-width: 220px;
    height: 42px;
}

.footer-icon {
    width: 34px;
    height: 34px;
    left: -5px;
    position: absolute;
    z-index: -1;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    /*margin-bottom: 0.75rem;*/
}

.footer-links a {
    color: rgb(248, 247, 247);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 2rem;
    font-weight: 500;
    /*letter-spacing: 0.7px;*/
    /*line-height: 1.6;*/
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-socials .social-icon {
    color: #ffffff;
    font-size: 1.15rem;
    opacity: 0.95;
}

.footer-socials .social-icon:hover {
    color: #ffffff;
    opacity: 0.7;
}

.footer-copyright {
    color: rgb(248, 247, 247);
    font-size: 0.8rem;
    font-weight: 600;
    padding-top: 2rem;
    /*border-top: 1px solid #dee2e6;*/
}


/* ========== Swiper Custom Overrides ========== */
.swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}
/* Film card must fill the flex slide container width */
.film-card {
    width: 100%;
}

.promoSwiper .swiper-slide {
    width: 200px;
}

.videoSwiper .swiper-slide {
    width: 280px;
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
    /* Navigation Menu - Stack on mobile */
    .nav-menu {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }

    .promo-card img {
        height: 250px;
    }

    .featured-article img {
        height: 300px;
    }

    .promoSwiper .swiper-slide {
        width: 180px;
    }

    .videoSwiper .swiper-slide {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .logo-link img {
        /*max-width: 100%;*/
        max-width: 200px;
        height: auto;
    }

    .header-link span {
        display: none !important;
    }

    .promo-card img {
        height: 220px;
    }

    .car-type-card {
        padding: 1.5rem 0.5rem;
    }

    .featured-article img {
        height: 250px;
    }

    .promoSwiper .swiper-slide {
        width: 160px;
    }

    .videoSwiper .swiper-slide {
        width: 220px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .promo-card img {
        height: 200px;
    }

    .promoSwiper .swiper-slide {
        width: 150px;
    }

    .videoSwiper .swiper-slide {
        width: 200px;
    }

    .video-thumbnail img {
        height: 100%;
    }
}

/* Desktop Only - Show navigation */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ========== Utility Classes ========== */
.shadow-sm {
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

.shadow {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.rounded {
    border-radius: 8px !important;
}

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

.card {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.video-thumbnail:hover .play-button i {
    animation: pulse 1s ease-in-out infinite;
}
/* ========== Custom Updates 2026-02-01 ========== */

/* Page background color */
body {
    background-color: #fefbf3;
}

/* News title - 2 line ellipsis */
.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em; /* 2 lines × 1.4em */
}

/* Video slider navigation buttons */
.video-slider-wrapper {
    position: relative;
}

.video-slider-wrapper .swiper-button-next,
.video-slider-wrapper .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-slider-wrapper .swiper-button-next:hover,
.video-slider-wrapper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.video-slider-wrapper .swiper-button-next {
    right: 10px;
}

.video-slider-wrapper .swiper-button-prev {
    left: 10px;
}

.video-slider-wrapper .swiper-button-next::after,
.video-slider-wrapper .swiper-button-prev::after {
    font-size: 20px;
    color: #333;
}
.video-slider-wrapper .swiper-wrapper img {
    border-radius: 16px;
}
/* Play overlay for video slides (if needed) */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-overlay i {
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

.video-slide-link {
    position: relative;
    display: block;
}

.video-slide-link:hover .play-overlay {
    background: rgba(0, 0, 0, 0.9);
}

/* Search form submit button disabled state */
.search-submit-btn.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Section titles - 2 line ellipsis for all content sections */
.actualites-section .card-title,
.articles-section .card-title,
.dossiers-section .card-title,
.essai-section .card-title,
.films-section p,
.promo-section h5,
.videos-section .video-title,
.newcars-section .car-title,
.guides-section h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
}


/* =====================================================
 * GALLERY LIGHTBOX  (#at-lightbox)
 * ===================================================== */

#at-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#at-lightbox.is-open { display: flex; }

body.lightbox-open { overflow: hidden; }

#at-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    cursor: zoom-out;
    animation: at-lb-fade-in .25s ease;
}

#at-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: at-lb-scale-in .25s ease;
}

#at-lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 48px rgba(0,0,0,.7);
    object-fit: contain;
}

#at-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    transition: opacity .15s;
    opacity: .8;
}
#at-lightbox-close:hover { opacity: 1; }

/* Cursor pointer hint on gallery images */
.wp-block-gallery img,
.wp-block-image img {
    cursor: zoom-in;
}

@keyframes at-lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes at-lb-scale-in {
    from { transform: scale(.93); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ========================================
   DEPOSER ANNONCE PAGE STYLES
   ======================================== */

.form-annonce-section {
    background-color: var(--light-bg);
}

.form-annonce-container {
    max-width: 900px;
}

/* Custom Pills for Particulier / Professionnel */
.custom-pills {
    background-color: #fff;
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.custom-pills .nav-link {
    color: var(--text-color);
    border-radius: 50px;
    padding: 10px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-pills .nav-link.active {
    background-color: var(--danger-color);
    color: #fff;
}

/* Section Title */
.form-section-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}
.form-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Occasion / Neuf Switcher styling */
.toggle-container {
    display: inline-flex;
    background-color: var(--dark-color);
    border-radius: 50px;
    padding: 5px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: calc(50% - 5px);
    background-color: var(--bg-color);
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.toggle-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 40px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: color 0.3s;
}

.toggle-btn.active {
    color: var(--dark-color);
}

/* Section indicators */
.section-indicator {
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Custom Inputs and Selects */
.custom-select-lg,
.custom-input-lg,
.input-group .custom-input-lg {
    height: 60px;
    border-radius: 8px;
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-size: 1rem;
    padding-left: 20px;
}

.custom-select-lg:focus,
.custom-input-lg:focus {
    border-color: var(--dark-color);
    box-shadow: none;
    background-color: #fff;
}

/* Photo Upload Area */
.photo-upload-container {
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.photo-upload-container:hover {
    border-color: var(--secondary-color);
    background-color: #fff;
}

/* Submit Button */
.custom-submit-btn {
    background-color: var(--primary-color); /* Correct Dark Blue color */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.custom-submit-btn:hover {
    background-color: #0b1a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(11, 26, 48, 0.3);
}

/* Custom switch checkbox */
.custom-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}
.custom-switch .form-check-input:checked {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}
.custom-switch .form-check-label {
    cursor: pointer;
    font-size: 1.05rem;
}

/* Custom Checkbox for Options */
.custom-checkbox .form-check-input {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid #ced4da;
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-checkbox .form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.custom-checkbox .form-check-label {
    cursor: pointer;
    color: var(--text-color);
    font-size: 1rem;
}

/* ====== Deposer Annonce (Pixel Match) ====== */
.page-deposer-annonce .form-annonce-section {
    background-color: #fefbf3;
}

.page-deposer-annonce .form-annonce-container {
    max-width: 680px;
}

.page-deposer-annonce .deposer-title {
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.page-deposer-annonce .vehicule-toggle {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.page-deposer-annonce .toggle-container {
    background-color: #0f1b26;
    padding: 3px;
    box-shadow: none;
}

.page-deposer-annonce .toggle-slider {
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    background-color: #fefbf3;
}

.page-deposer-annonce .toggle-btn {
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.page-deposer-annonce .toggle-btn.active {
    color: #0f1b26;
}

.page-deposer-annonce .form-section-title {
    font-size: 13px;
    font-weight: 600;
    padding-bottom: 0;
}

.page-deposer-annonce .form-section-title::after {
    display: none;
}

.page-deposer-annonce .section-indicator {
    width: 10px;
    height: 6px;
    border-radius: 0px;
    background-color: var(--secondary-color);
}

.page-deposer-annonce .custom-select-lg,
.page-deposer-annonce .custom-input-lg,
.page-deposer-annonce .input-group .custom-input-lg {
    height: 38px;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: none;
    font-size: 18px;
    padding-left: 12px;
}

.page-deposer-annonce .custom-input-lg::placeholder {
    color: #9b9b9b;
}

.page-deposer-annonce .custom-checkbox .form-check-input {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border-color: #cfcfcf;
}

.page-deposer-annonce .custom-checkbox .form-check-label {
    font-size: 12px;
    color: #2a2a2a;
}

.page-deposer-annonce .photo-upload-container {
    border: 1px solid #e3e3e3;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

/* Drop area — the dashed inner zone */
.photo-drop-area {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    margin: 12px;
    padding: 22px 16px;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.photo-drop-area.drag-over {
    border-color: #56a5dc;
    background-color: #f0f7fd;
}

.photo-upload-icon {
    font-size: 26px;
    color: #adb5bd;
}

.page-deposer-annonce .photo-upload-title {
    font-size: 12px;
    color: #8a8a8a;
}
.page-deposer-annonce .photo-upload-sub {
    font-size: 11px;
    color: #bbb;
}

.page-deposer-annonce .photo-upload-btn {
    background-color: #56a5dc;
    border: none;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
}
.page-deposer-annonce .photo-upload-btn:hover {
    background-color: #3a8ec7;
    color: #fff;
}

/* Preview grid */
.photo-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
}
.photo-preview-grid:empty { display: none; }

.photo-thumb {
    position: relative;
    width: 80px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #e0e0e0;
    flex-shrink: 0;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-thumb-delete {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background .15s;
}
.photo-thumb-delete:hover { background: #dc3545; }

/* Progress bar wrapper */
.photo-progress-wrap {
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
}

.page-deposer-annonce .custom-textarea {
    border: 1px solid #eeeeee;
    border-radius: 6px;
    font-size: 12.5px;
    padding: 10px 12px;
}

.page-deposer-annonce .custom-submit-btn {
    background-color: #0f1b26;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 10px 32px;
}

.page-deposer-annonce .custom-submit-btn:hover {
    background-color: #0b1520;
    transform: none;
    box-shadow: none;
}

.page-deposer-annonce .form-select {
    margin-bottom: 15px;
}

.page-deposer-annonce .fields-group {
    padding: 0 25px 0 25px;
}

@media (max-width: 767.98px) {
    .page-deposer-annonce .form-annonce-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-deposer-annonce .vehicule-toggle {
        max-width: 100%;
    }
    .page-deposer-annonce .toggle-container {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }
    .page-deposer-annonce .toggle-btn {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        font-size: 11px;
    }

    .page-deposer-annonce .custom-select-lg,
    .page-deposer-annonce .custom-input-lg,
    .page-deposer-annonce .input-group .custom-input-lg {
        height: 40px;
        font-size: 13px;
    }

    .page-deposer-annonce .custom-submit-btn {
        width: 100%;
    }
}

/* Breadcrumb override */
.custom-breadcrumb .breadcrumb-item a {
    color: var(--text-color);
    font-weight: 600;
}
.custom-breadcrumb .breadcrumb-item.active {
    color: var(--dark-color);
}

/* ========== Main Content Area: Responsive Grid Layout ========== */

/* Mobile (< 992px) — Bootstrap flex, stacked full-width with correct order */
@media (max-width: 991px) {
    .main-content-row .search-form-col,
    .main-content-row .youtube-col,
    .main-content-row .right-col {
        width: 100%;
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
    }
    .main-content-row .fuel-widget-col,
    .main-content-row .carslider-col {
        width: 100%;
    }
    /* Stacking order: Featured slider first, then search, then right column */
    .main-content-row .youtube-col     { order: 1; }
    .main-content-row .search-form-col { order: 2; }
    .main-content-row .right-col       { order: 3; }
}

/* 2-column layout: 992px – 1399px */
@media (min-width: 992px) and (max-width: 1399px) {
    .main-content-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 1.5rem;
        /* align-items: stretch (default) — cells in same row match each other's height */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Reset Bootstrap gutter padding on grid children */
    .main-content-row > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* right-col is transparent to the grid — fuel and carslider placed individually */
    .main-content-row .right-col       { display: contents; }
    /* Grid placement */
    .main-content-row .search-form-col { grid-column: 1; grid-row: 1; }
    .main-content-row .youtube-col     { grid-column: 2; grid-row: 1; }
    .main-content-row .fuel-widget-col { grid-column: 1; grid-row: 2; margin-bottom: 0 !important; width: 100% !important; }
    .main-content-row .carslider-col   { grid-column: 2; grid-row: 2; margin-bottom: 0 !important; width: 100% !important; }
    /* Inner widgets fill their grid cell height */
    .main-content-row .search-form-col .search-widget { height: 100%; }
    .main-content-row .fuel-widget-col .fuel-widget   { height: 100%; }
    .fuel-icon img { height: 200px!important; }
    .sidebar-section .fuel-icon img { height: 100px!important; }
    .fuel-icon {
        transform: translateY(-26%);
    }
}

/* 3-column layout: 1400px+ — matches client-approved desktop design */
@media (min-width: 1400px) {
    .main-content-row {
        display: grid !important;
        grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
        grid-template-rows: auto;
        column-gap: 1.5rem;
        align-items: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .main-content-row > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* search & youtube in cols 1 & 2 */
    .main-content-row .search-form-col { grid-column: 1; align-self: stretch; }
    .main-content-row .youtube-col     { grid-column: 2; }
    /* right-col is a single grid item in col 3, stacking its children vertically */
    .main-content-row .right-col {
        grid-column: 3;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .main-content-row .right-col .fuel-widget-col,
    .main-content-row .right-col .carslider-col {
        margin-bottom: 0 !important;
        width: 100% !important;
    }
    /* Search widget fills its stretched cell */
    .main-content-row .search-form-col .search-widget { height: 100%; padding-bottom: 0.5rem !important; }
}

/* ========== Navigation Menu: Reduce item spacing at 1000-1200px ========== */
@media (min-width: 992px) and (max-width: 1199px) {
    .menu-link {
        padding: .3rem 0.55rem;
        font-size: 16px;
    }
}

/* ========== Fix right-side overflow (horizontal scroll) — mobile only ========== */
@media (max-width: 991px) {
    html {
        overflow-x: hidden;
    }
    .main-content .container {
        overflow-x: hidden;
    }
    .main-content-row {
        overflow-x: hidden;
    }
}

/* ========== Mobile Offcanvas Menu (wp_nav_menu output) ========== */
#mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#mobile-nav-menu .menu-item > a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
#mobile-nav-menu .menu-item > a:hover,
#mobile-nav-menu .menu-item > a.active {
    color: var(--primary-color);
    padding-left: 1.5rem;
}
#mobile-nav-menu .menu-item-has-children > a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    float: right;
    margin-top: 3px;
    transition: transform 0.2s ease;
}
#mobile-nav-menu .menu-item-has-children > a.active::after {
    transform: rotate(90deg);
}
#mobile-nav-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    display: none;
}
#mobile-nav-menu .sub-menu .menu-item > a {
    padding: 0.75rem 1rem 0.75rem 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

/* ========== Mobile Mega Menu – collapsible sub-list ========== */
#mobile-nav-menu .has-mobile-mega-menu {
    border-bottom: 1px solid #f0f0f0;
}

#mobile-nav-menu .mobile-mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, background 0.2s ease;
}

#mobile-nav-menu .mobile-mega-header:hover {
    color: var(--primary-color);
    background: #fafafa;
}

.mobile-mega-label {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

#mobile-nav-menu .mobile-mega-header:hover .mobile-mega-label {
    color: var(--primary-color);
}

.mobile-mega-chevron {
    font-size: 0.75rem;
    color: #888;
    transition: transform 0.25s ease;
}

#mobile-nav-menu .mobile-mega-header.active .mobile-mega-chevron {
    transform: rotate(90deg);
}

.mobile-mega-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    display: none;
}

.mobile-mega-submenu li > a {
    display: block;
    padding: 0.7rem 1rem 0.7rem 1.75rem;
    font-size: 0.875rem;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-mega-submenu li:last-child > a {
    border-bottom: none;
}

.mobile-mega-submenu li > a:hover {
    color: var(--primary-color);
    padding-left: 2.25rem;
}

/* ========== Mobile Swiper: Grid sections become swipeable on mobile ========== */

/* On desktop (992px+), disable Swiper transform and restore grid layout */
@media (min-width: 992px) {
    .typesSwiper,
    .guidesSwiper,
    .dossiersSwiper,
    .filmsSwiper {
        overflow: visible;
    }
    .typesSwiper .swiper-wrapper,
    .guidesSwiper .swiper-wrapper,
    .dossiersSwiper .swiper-wrapper,
    .filmsSwiper .swiper-wrapper {
        transform: none !important;
        flex-wrap: wrap;
        width: 100% !important;
    }
    /* Override Swiper CSS width:100% — mirror Bootstrap column widths */
    .guidesSwiper .swiper-slide,
    .dossiersSwiper .swiper-slide {
        width: 25% !important;     /* col-lg-3 = 4 columns */
        height: auto !important;
        margin-right: 0 !important;
    }
    .typesSwiper .swiper-slide,
    .filmsSwiper .swiper-slide {
        flex: 1 0 0% !important;   /* col-lg = auto equal columns */
        width: auto !important;
        height: auto !important;
        margin-right: 0 !important;
    }
    /* Restore film poster size: zero Bootstrap g-7 padding on slides and
       the row's negative margins, then apply the equivalent column-gap
       (g-7 = 5rem total between adjacent content areas = 2.5rem each side).
       Gives the same 164px poster width as before the mobile-swiper work. */
    .filmsSwiper .swiper-slide {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .filmsSwiper .swiper-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        column-gap: 5rem;
        row-gap: 0;
    }
}

/* On mobile (< 992px), Swiper takes over — ensure no overflow clipping from container */
@media (max-width: 991px) {
    .typesSwiper,
    .guidesSwiper,
    .dossiersSwiper,
    .filmsSwiper {
        overflow: hidden;
        padding-bottom: 0.5rem;
    }
    /* Zero out Bootstrap row negative margins that shift content left */
    .typesSwiper .swiper-wrapper,
    .guidesSwiper .swiper-wrapper,
    .dossiersSwiper .swiper-wrapper,
    .filmsSwiper .swiper-wrapper {
        flex-wrap: nowrap;
        align-items: stretch;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Remove Bootstrap column padding — Swiper spaceBetween handles gaps */
    .typesSwiper .swiper-slide,
    .guidesSwiper .swiper-slide,
    .dossiersSwiper .swiper-slide,
    .filmsSwiper .swiper-slide {
        height: auto;
        flex-shrink: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ========== Mobile Responsiveness Fixes ========== */

/* Hide empty sticky nav bar on mobile */
@media (max-width: 992px) {
    .navigation-menu {
        display: none;
    }
}

/* Reduce car-type-card min-height on mobile */
@media (max-width: 768px) {
    .car-type-card {
        min-height: 180px;
    }
    /* Prevent fuel-icon from overflowing on narrow screens */
    .fuel-widget {
        overflow: hidden;
    }
}


/* ==========================================================================
   OCCASIONS MODULE — Used Car Ads
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Auth pages (login / register)
   --------------------------------------------------------------------------- */
.auth-split-row {
    min-height: calc(100vh - 180px);
}

.auth-image-col {
    position: relative;
    overflow: hidden;
}

.auth-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,28,60,0.75) 0%, rgba(11,28,60,0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.auth-image-text { color: #fff; }
.auth-image-text h2 { font-size: 2rem; font-weight: 300; line-height: 1.3; }
.auth-image-text h2 strong { font-weight: 900; }
.auth-image-text p { opacity: 0.85; margin-top: 0.5rem; }

.auth-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #fff;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
}

.auth-logo { max-height: 48px; }

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    text-align: center;
}

/* Override wp_login_form defaults */
#loginform {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}
#loginform .input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    height: 52px;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.15s;
}
#loginform .input:focus { border-color: var(--dark-color); outline: none; box-shadow: none; }
#loginform label { font-weight: 600; font-size: 0.9rem; color: #555; margin-bottom: 4px; display: block; }
#loginform p { margin-bottom: 0.75rem; }
#loginform p.login-remember { display: flex; align-items: center; gap: 0.5rem; }
#loginform .button-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: #0b1c3c;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
#loginform .button-primary:hover { background: #071329; }
#login_error { color: #dc3545; font-size: 0.9rem; margin-bottom: 1rem; }

.form-control-icon { position: relative; }
.form-control-icon .icon-fa {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.95rem;
}
.form-control-icon .form-control,
.form-control-icon input.auth-input { padding-left: 2.8rem; }

.auth-input {
    height: 52px;
    border-radius: 8px;
    border-color: #dee2e6;
    font-size: 0.95rem;
}
.auth-input:focus { border-color: var(--dark-color); box-shadow: none; }

.auth-submit-btn {
    background: #0b1c3c;
    color: #fff;
    border-radius: 25px;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    transition: background 0.2s;
}
.auth-submit-btn:hover { background: #071329; color: #fff; }

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #888;
    font-size: 0.9rem;
}
.auth-separator::before, .auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eaeaea;
}
.auth-separator::before { margin-right: 1em; }
.auth-separator::after  { margin-left: 1em; }

.auth-link-small  { color: #6c757d; font-size: 0.88rem; text-decoration: none; }
.auth-link-small:hover { color: var(--dark-color); text-decoration: underline; }
.auth-link-register { font-weight: 600; color: var(--dark-color); text-decoration: none; font-size: 0.92rem; }
.auth-link-register:hover { text-decoration: underline; }
.auth-cta-btn { border-radius: 8px; font-weight: 600; }

@media (max-width: 991.98px) {
    .auth-form-col { padding: 2.5rem 1.25rem; }
    .auth-split-row { min-height: auto; }
}

/* ---------------------------------------------------------------------------
   Profile pages
   --------------------------------------------------------------------------- */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.profile-name  { font-size: 1.5rem; font-weight: 800; }
.profile-email, .profile-city { font-size: 0.9rem; }

.profile-stat-card {
    background: var(--light-bg);
    border-radius: 10px;
    border: 1px solid var(--light-gray);
}
.stat-number { font-size: 1.3rem; font-weight: 800; color: var(--dark-color); }
.stat-label  { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }

.profile-edit-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0 3rem;
}

.occ-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.occ-status-active  { background: #d1fae5; color: #065f46; }
.occ-status-pending { background: #fef3c7; color: #92400e; }
.occ-status-expired { background: #fee2e2; color: #991b1b; }

.occ-card-actions .btn { font-size: 0.8rem; padding: 4px 8px; }

.occ-empty-state i { display: block; }

@media (max-width: 575.98px) {
    .profile-edit-card { padding: 1.25rem; }
}

/**** overrides ***/

.profile-container { max-width: 900px; margin: 0 auto; padding: 40px 20px;  }

/* Header row: avatar centered with text */
.profile-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 40px; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; cursor: pointer; }
.profile-avatar-icon {
    width: 86px; height: 86px;
    display: flex; align-items: center; justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #666;
    font-size: 2rem; color: #111820;
    overflow: hidden;
}
.profile-avatar-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-overlay {
    position: absolute; inset: 0; border-radius: 6px;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
    color: #fff; font-size: 1.1rem; gap: 10px;
}
.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }
.avatar-clear-btn {
    position: absolute; top: -7px; right: -7px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #dc3545; color: #fff; border: 2px solid #fff;
    font-size: 10px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    display: none; /* shown via JS when avatar exists */
    z-index: 10;
}
.has-avatar .avatar-clear-btn { display: flex; }
.profile-header-text { }
.profile-name { font-size: 2rem; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.badge-pill { padding: 6px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600; color: #fff; text-decoration: none; display: inline-block; }
.badge-dark { background-color: #111820; }
.badge-grey { background-color: #6c757d; }

/* Tabs */
.profile-tabs {
    display: flex; justify-content: flex-start; gap: 20px;
    margin-bottom: 40px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px;
}
.profile-tab { text-decoration: none; color: #1a1a1a; font-weight: 700; font-size: 1.1rem; padding: 10px 24px; border-radius: 25px; transition: all .3s; }
.profile-tab:hover { color: #0b1c3c; }
.profile-tab.active { border: 1px solid var(--secondary-color); }

/* Form */
.profile-content-area { max-width: 450px; margin: 0; text-align: left; }
.profile-form .form-control {
    margin-bottom: 1rem; border-radius: 8px;
    border: 1px solid #dee2e6; height: 52px;
}
.profile-form-actions { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 20px; }
.btn-save {
    background-color: #111820; color: #fff; border: none;
    border-radius: 25px; padding: 14px 40px; font-weight: 700; cursor: pointer;
    width: 250px; letter-spacing: 0.5px;
    transition: background .2s;
}
.btn-save:hover { background-color: #071329; }
.btn-pro {
    background-color: #5bc0de; color: #fff; border: none;
    border-radius: 25px; padding: 14px 40px; font-weight: 700; cursor: pointer;
    width: 250px; transition: background .2s;
}
.btn-pro:hover:not(:disabled) { background-color: #31b0d5; }
.btn-pro:disabled { opacity: .65; cursor: default; }
.btn-particulier {
    background-color: #6c757d; color: #fff; border: none;
    border-radius: 25px; padding: 14px 40px; font-weight: 700; cursor: pointer;
    width: 250px; transition: background .2s;
}
.btn-particulier:hover { background-color: #545b62; }
.switch-status { font-size: .8rem; color: #888; margin-top: -8px; }



/* ---------------------------------------------------------------------------
   Car Occasions Card (shared by listing / profile / single)
   --------------------------------------------------------------------------- */
.car-occ-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    /*border-radius: 8px;*/
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.car-occ-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }

.car-occ-img {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--light-bg);
}
.car-occ-img img { transition: transform 0.35s ease; }
.car-occ-card:hover .car-occ-img img { transform: scale(1.04); }

.occ-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    background: #f5f5f5;
}

.car-occ-body  { flex: 1; display: flex; flex-direction: column; }
.car-occ-title { font-size: 0.95rem; font-weight: 700; color: var(--primary-color); margin: 4px 0 2px; line-height: 1.3; }
.car-occ-meta  { font-size: 0.8rem; color: #888; margin-bottom: 4px; }
.car-occ-price { font-size: 1rem; font-weight: 800; color: var(--dark-color); margin-top: auto; padding-top: 4px; }
.car-occ-location { font-size: 0.78rem; color: #999; margin-top: 3px; }
.car-occ-location i { color: var(--secondary-color); }

/* ---------------------------------------------------------------------------
   Occasions listing page
   --------------------------------------------------------------------------- */
.occ-filter-section { padding: 6px 0 0; }
/*.occ-filter-section .form-select,*/
.occ-filter-section .form-control { font-size: 0.875rem; }
.occ-filter-actions { display: flex; align-items: flex-start; gap: 8px; }
.occ-filter-actions .btn-dark { flex: 1; }

.occ-results-count { font-size: 0.9rem; color: #555; }
.occ-sort-select   { font-size: 0.85rem; }

.occ-sidebar-cta {
    background: var(--wdgt-bg-color);
    border: 1px solid var(--wdgt-border-color);
    border-radius: 10px;
}

@media (max-width: 767.98px) {
    .occ-filter-section .row > div { margin-bottom: 0; }
    .occ-filter-actions { flex-direction: row; }
}

/* ---------------------------------------------------------------------------
   Single annonce detail
   --------------------------------------------------------------------------- */
.occ-detail-price .current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-color);
}

.occ-gallery-main .occ-main-img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}
.occ-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.occ-gallery-thumbs {
    padding: 4px 0;
}
.occ-gallery-thumbs .swiper-slide {
    width: 80px !important;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}
.occ-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--dark-color);
}
.occ-thumb-img { width: 100%; height: 100%; object-fit: cover; }

.occ-specs-section {}
.occ-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    height: 100%;
}
.occ-spec-icon  { font-size: 1rem; color: var(--secondary-color); min-width: 18px; }
.occ-spec-label { font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.3px; }
.occ-spec-value { font-size: 0.9rem; font-weight: 700; color: var(--primary-color); }

.occ-description .occ-desc-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.occ-contact-box {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
}
.occ-seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #888;
}
.occ-seller-name { font-size: 1rem; }
.occ-seller-city { color: #888; }
.occ-ad-meta > div { margin-bottom: 4px; }
.occ-report-link:hover { color: #dc3545 !important; }

/* Swiper buttons on gallery */
.occ-gallery-main .swiper-button-prev,
.occ-gallery-main .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.occ-gallery-main .swiper-button-prev::after,
.occ-gallery-main .swiper-button-next::after { font-size: 0.8rem; }

/* ---------------------------------------------------------------------------
   Multi-step ad submission form
   --------------------------------------------------------------------------- */
.deposer-card {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 1rem 0 3rem;
}

.deposer-title { font-size: 1.6rem; font-weight: 800; }

/* Step progress bar */
.step-progress { margin-bottom: 1.5rem; }
.step-progress-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}
.step-item.active .step-circle   { background: var(--dark-color); color: #fff; }
.step-item.done   .step-circle   { background: var(--secondary-color); color: #fff; }
.step-label { font-size: 0.78rem; color: #888; text-transform: uppercase; letter-spacing: 0.3px; }
.step-item.active .step-label    { color: var(--dark-color); font-weight: 700; }
.step-line {
    flex: 1;
    height: 2px;
    background: var(--light-gray);
    min-width: 40px;
    max-width: 100px;
    margin-bottom: 22px;
}
.step-line.done { background: var(--secondary-color); }

/* Form steps */
.form-step { animation: fadeStep 0.25s ease; }
@keyframes fadeStep { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.step-title { font-size: 1.2rem; font-weight: 700; }

/* Photo upload zone */
.occ-photo-upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.occ-photo-upload-zone:hover,
.occ-photo-upload-zone.drag-over {
    border-color: var(--dark-color);
    background: var(--light-bg);
}
.occ-photo-previews .preview-thumb {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--light-gray);
}
.occ-photo-previews .preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.occ-photo-previews .preview-thumb .remove-thumb {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposer-summary {
    background: var(--wdgt-bg-color);
    border: 1px solid var(--wdgt-border-color);
    border-radius: 8px;
}

/* Occasion/Neuf toggle (Pro page) */
.occ-type-toggle-row {
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}
.occ-type-switch { width: 2.5em; height: 1.4em; cursor: pointer; }
.occ-type-switch:focus { box-shadow: none; }
.occ-type-switch:checked { background-color: var(--dark-color); border-color: var(--dark-color); }

@media (max-width: 575.98px) {
    .deposer-card { padding: 1.25rem; }
    .step-line { min-width: 20px; }
}

/* ---------------------------------------------------------------------------
   Profile pages responsive
   --------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .profile-container { padding: 24px 16px; }

    /* Header: keep row but tighter */
    .profile-header { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; margin-bottom: 24px; }
    .profile-avatar-icon { width: 68px; height: 68px; font-size: 1.6rem; }
    .profile-name { font-size: 1.4rem; margin-bottom: 8px; }

    /* Tabs: single scrollable row */
    .profile-tabs {
        overflow-x: auto; flex-wrap: nowrap; gap: 6px;
        scrollbar-width: none; -ms-overflow-style: none;
        margin-bottom: 24px; padding-bottom: 16px;
    }
    .profile-tabs::-webkit-scrollbar { display: none; }
    .profile-tab { white-space: nowrap; flex-shrink: 0; font-size: .9rem; padding: 8px 16px; }

    /* Edit form: content area full width, buttons full width */
    .profile-content-area { max-width: 100%; }
    .btn-save, .btn-pro, .btn-particulier { width: 100%; }
}
