.page-id-4251 #themesflat-content{
padding:0!important;

}
.page-id-4251 .page-title .inner-breadcrumb{
padding:0!important;
}
.page-id-4251 .footer_background {
display:none!important;
}
/* Dashboard Sidebar Styles */
.page-template-page-dashboard #header.header-default {
    padding-left: 8px;
    padding-right: 35px;
    border-bottom: 1px solid #EDEDED;
    box-shadow: unset;
}

.page-template-page-dashboard #header .header-wrap .header-ct-center {
    justify-content: left;
}

.page-template-page-dashboard .wrap-content-area .content-area {
    border-radius: 0px;
    overflow: hidden;
    padding: 50px 35px 60px 28px;
    margin-right: 0px;
    margin-left: 0px;
}

.page-template-page-dashboard .admin-title {
    font-weight: 600;
}

.page-template-page-dashboard #themesflat-content {
    padding-top: 0px;
    padding-bottom: 0px;
}

.page-template-page-dashboard #mainnav>ul>li>a {
    line-height: 75px !important;
}

.page-template-page-dashboard #header .tf-btn {
    background: var(--theme-primary-color);
    color: #fff;
}

.page-template-page-dashboard #header .tf-btn:hover {
    background: #24272C;
    border-color: #24272C;
}

.page-template-page-dashboard .tfcl-login-form .tf-btn {
    border-radius: 4px;
}

.page-template-page-dashboard .tfcl-login-form .tf-btn i.fa-google {
    margin-right: 5px;
}

.page-template-page-dashboard .tfcl-login-form .tf-btn:hover {
    color: #fff !important;
}

.page-template-page-dashboard #header .logo {
    justify-content: left;
}

.themesflat-boxed.has-dashboard {
    padding-left: 287px;
}

.themesflat-boxed.has-dashboard .container {
    max-width: 100%;
}

.sidebar-dashboard {
    -webkit-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
    top: 0px;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    position: fixed;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: #24272C;
    left: 0;
    overflow-y: scroll;
}

.sidebar-dashboard::-webkit-scrollbar {
    background: transparent;
    width: 0px;
}

.sidebar-dashboard::-webkit-scrollbar {
    background: transparent;
    width: 5px;
}

.sidebar-dashboard::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #1A2435;
}

.sidebar-dashboard .db-content {
    color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

.sidebar-dashboard .db-content.db-list-menu {
    padding-left: 16px;
    padding-right: 11px;
}

.sidebar-dashboard .db-content.db-list-menu .db-title {
    margin-left: 14px;
}

.sidebar-dashboard .db-content:last-child {
    border-bottom: unset;
}

.sidebar-dashboard .db-author .name {
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    margin-bottom: -2px;
}

.sidebar-dashboard .db-author .author-position {
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 400;
    line-height: 16.8px;
    color: #ffffff7b;
}

.sidebar-dashboard .db-author .author .avatar {
    flex-shrink: 0;
}

.sidebar-dashboard .db-author .author .avatar img {
    border-radius: 50%;
    width: 52px;
    height: 52px;
    object-fit: cover;
}

.sidebar-dashboard .db-author .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-dashboard .db-title {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    opacity: 0.4;
    margin-bottom: 8px;
}

.sidebar-dashboard .db-list-menu ul li a {
    color: #fff;
    padding: 12px 14px;
    display: block;
    border-radius: 16px;
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    position: relative;
}

.sidebar-dashboard .db-list-menu ul li a .count-page {
    width: 24px;
    height: 24px;
    background: #7ED321;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 17.64px;
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.sidebar-dashboard .db-list-menu ul li a:hover .count-page,
.sidebar-dashboard .db-list-menu ul li a.active .count-page {
    background: #fff;
    color: #24272C !important;
}

.sidebar-dashboard .db-list-menu ul li:not(:last-child) {
    margin-bottom: 5.6px;
}

.sidebar-dashboard .db-list-menu ul li a i {
    color: #4d5153;
    font-size: 20px;
    vertical-align: sub;
    margin-right: 14px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.sidebar-dashboard .db-list-menu ul li a:hover,
.sidebar-dashboard .db-list-menu ul li a.active {
    background: var(--theme-primary-color);
    color: #fff !important;
}

.sidebar-dashboard .db-list-menu ul li a:hover i,
.sidebar-dashboard .db-list-menu ul li a.active i {
    color: #fff;
}

.sidebar-dashboard .db-logo img {
    max-width: 216px;
    height: auto;
}

.sidebar-dashboard .db-media-box {
    border-radius: 8px;
    background: #1A2435;
    padding: 38px 20px 38px 20px;
}

.sidebar-dashboard .db-media-box .group-title {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.sidebar-dashboard .db-media-box .group-title a {
    color: #fff;
    word-break: break-all;
}

.sidebar-dashboard .db-media-box .group-title a:hover {
    color: var(--theme-primary-color);
}

.sidebar-dashboard .db-media-box .group-title i {
    color: var(--theme-primary-color);
    margin-right: 16px;
    font-size: 20px;
    vertical-align: text-bottom;
}

.sidebar-dashboard .db-media-box .list-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.sidebar-dashboard .db-media-box .list-social li {
    background: unset;
    margin-bottom: 10px;
}

.sidebar-dashboard .db-media-box .list-social li:not(:last-child) {
    margin-right: 11px;
}

.sidebar-dashboard .db-media-box .list-social li a {
    width: 30px;
    height: 30px;
    border: 1px solid #FFFFFF17;
    border-radius: 50%;
    color: #9497A3;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-dashboard .db-media-box .list-social li a:hover {
    color: #fff;
    background: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
}

.sidebar-dashboard .db-media-box .media-social .group-title i {
    font-size: 30px;
    vertical-align: bottom;
}

.db-email-box {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.db-email-box .icon {
    font-size: 37px;
    color: var(--theme-primary-color);
    margin-right: 25px;
}

.db-email-box .content p {
    color: rgba(255, 255, 255, 0.53);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'DM Sans';
    margin-bottom: -6px;
}

.db-email-box .content a {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-overlay {
    position: fixed;
    z-index: 7;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.4);
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
    visibility: hidden;
}

.dashboard-overlay.active {
    visibility: visible;
    opacity: 1;
    filter: alpha(opacity=100);
    cursor: not-allowed;
    z-index: 9999;
}

.sidebar-dashboard.active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
    z-index: 9999;
}

.dashboard-toggle {
    padding-top: 30px;
    padding-left: 25px;
    padding-right: 25px;
    color: #24272C;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

@media screen and (max-width: 992px) {
.dashboard-toggle {
    display: block!important;
}
.sidebar-dashboard {
    display: none!important;
}
}
@media screen and (min-width: 1600px) {
  .bar-page {
flex-direction: column!important;
}
}

.dashboard-toggle {
    display: none;
}



.gallery-image-wrapper {
    position: relative;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-image-wrapper.cover-image {
    box-shadow: 0 0 0 3px #2e7d32;
    transform: scale(1.05);
}


.image-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-image-wrapper:hover .image-controls {
    opacity: 1;
}

.set-cover-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.set-cover-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.set-cover-btn.active {
    background: #2e7d32;
    color: white;
}

.remove-gallery-btn {
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-gallery-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

.remove-gallery-btn i {
    font-size: 10px;
    color: white;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    margin-bottom: 20px;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-btn {
    background-color: #2e7d32;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2e7d32;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 0.6s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Style pour la section d'information */
.cover-info {
    background: #e8f5e8;
    border: 1px solid #2e7d32;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1b5e1f;
}

.cover-info strong {
    color: #2e7d32;
}



.option-heading {
    display: flex;
    align-items: center;
    margin: 25px 0 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}
.option-heading:hover {
    padding: 10px;
    border-radius: 5px;
}
.option-title {
    font-size: 16px;
    color: #247a34;
    white-space: nowrap;
    margin-right: 10px;
    font-weight: 600;
}
.option-line {
    flex-grow: 1;
    height: 1px;
    background-color: #ccc;
    border: none;
}
.accordion-icon {
    margin-left: 10px;
    font-size: 22px;
    color: #247a34;
    transition: transform 0.3s ease;
}
.accordion-icon.rotated {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
}
.accordion-content.active {
    max-height: 1000px;
    padding: 15px 0;
}
.form-check-label {
    font-size: 15px;
    font-weight: normal;
    color: #1a1a1a;
    margin-left: 6px;
    cursor: pointer;
}
.form-check-input {
    margin-top: 0.15rem;
}
.row .col-md-4 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.options-container {
    padding-left: 15px;
    margin-left: 10px;
}



#prix-total-display {
display: inline-block;
    background-color: #c4c4c4;
    color: #000;
    font-weight: bold;
    font-size: 24px;
    padding: 12px 40px;
    border-radius: 40px;
    min-width: 280px;
    }
.form-inline-group {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.form-inline-group .form-group {
    flex: 1;
}

.prix_approx{
    display: grid;
}

.prix_approx_value {
    font-weight: bold;
    margin: 0;
}

.price-error-message {
    color: red;
    font-size: 0.9em;
    margin-bottom: 5px;
}

            .price-error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 8px 12px;
            border: 1px solid #f5c6cb;
            border-radius: 4px;
            margin-top: 5px;
            font-size: 14px;
            line-height: 1.4;
        }

    


.form-group {
    margin-bottom: 1rem;
}

.btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn:hover {
    background-color: #247a34;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 35px;
}

.input-with-icon span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color:#fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}
span#get-location-btn {
    background-color: #247a34;
    padding: 17px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
     right: 0!important;

}
@media screen and (max-width: 992px) {
span#get-location-btn {
    padding: 10px;
}
.form-check .form-check-input{
margin-left:0px;
}
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}
.close-button:hover {
    background: transparent!important;
    color: #333!important;
}




.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.info-message {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}



.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-box h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-box p {
    margin: 15px 0;
    font-size: 16px;
}

.modal-box label {
    display: block;
    margin: 20px 0 10px 0;
    font-weight: bold;
}

.modal-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-validate {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: #3b82f6;
    color: white;
    transition: background-color 0.3s;
}

.btn-validate:hover {
    background-color: #2563eb;
}



    .upload-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 10px;
}

.image-preview {
    position: relative;
    width: 140px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
}

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

.remove-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s;
}

.upload-box:hover {
    border-color: #4caf50;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.upload-text {
    font-size: 13px;
    margin-top: 6px;
    color: #333;
}

.hidden {
    display: none;
}

.success-message, .error-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}
.success-message { background: #e6f4ea; color: #2e7d32; }
.error-message { background: #fdecea; color: #c62828; }
.form-container {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.form-group { margin-bottom: 20px; }
label { font-weight: bold; margin-bottom: 5px; display: block; }
select, input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
button {
    background: #4caf50;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
fieldset {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
}
legend {
    font-size: 1.1em;
    padding: 0 6px;
    color: #333;
}




             .options-container {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 40px;
    margin: 40px auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 1200px; /* même largeur que .car-details-container */
}


              .option-heading {
    display: flex;
    align-items: center;
    margin: 25px 0 15px;
    font-weight: normal;
    font-size: 16px;
}
.section-title{ font-size: 22px;  /* plus petit */
    font-weight: 600; /* moins gras que bold */
    color: #1a1a1a;
    display: block;
    margin-bottom: 15px;}

.option-line {
    flex-grow: 1;
    height: 1px;
    background-color: #ccc;
    border: none;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-label {
    font-size: 15px;
    font-weight: normal; 
    color: #1a1a1a;
    cursor: pointer;
    margin-bottom: 0;
}

.form-check-input {
    margin-top: 0.1rem;
    accent-color: #0e9f6e;
}

.row .col-md-4 {
    margin-bottom: 12px;
}
.btn-validate {
    background-color: #257e3f;
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 40px;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-validate:hover {
    background-color: #212429; 
}


	#listing_finition {
  display: block !important;
  visibility: visible !important;

}
    #listing_model {
        display: block !important;
        visibility: visible !important;
    }

    #listing_body {
        display: block !important;
        visibility: visible !important;
    }

	.boite-container .nice-select.form-control{ display:none !important;}
   /* Cache les composants Nice Select générés en double */
.nice-select.form-control {
    display: none !important;
}

/* Affiche le select natif */
select.form-control {
    display: block !important;
    visibility: visible !important;
}

/* S'assurer que les autres éléments JS ne prennent pas la place */
.nice-select.open, .nice-select.disabled {
    display: none !important;
}


	.finition-container .nice-select.form-control{ display:none !important;}
	.mygen .nice-select.form-control{ display:none !important;}
	.listing_finition .nice-select.form-control{ display:none !important;}
	.model-container .nice-select.form-control{ display:none !important;}
	.fuel-type-container .nice-select.form-control{ display:none !important;}
	.cylinders-container .nice-select.form-control{ display:none !important;}
	.transmission-container  .nice-select.form-control{ display:none !important;}
	.body-container .nice-select.form-control{ display:none !important;}
    #listing_transmission {
        display: block !important;
        visibility: visible !important;
    }

    #listing_generation {
        display: block !important;
        visibility: visible !important;
    }

    #listing_fuel_type {
        display: block !important;
        visibility: visible !important;
       
    }
	
    #listing_cylinders
	{
        display: block !important;
        visibility: visible !important;
    }




 .car-details-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 30px; /* <- marge horizontale gauche/droite ajoutée ici */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.car-details-container h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.car-details-container .form-group {
    margin-bottom: 20px;
}
.car-details-container .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px 30px;
}
.select-large {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    appearance: none;
    background-color: white;
}

.select-large:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
/* Cache tous les .nice-select sans casser la mise en page */
.nice-select, .nice-select.form-control, 
.nice-select.open, .nice-select.disabled {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Forcer l'affichage des vrais <select> */
select.form-control, select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Polices et structure de base */
body, select, input {
    font-family: 'Inter', sans-serif;
}

/* Titre principal */
.car-details-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

/* Organisation du formulaire */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 24px;
}

/* Style pour un champ sur une ligne (ex. titre) */
.form-grid .form-group:nth-child(1) {
    grid-column: span 3; /* occupe toute la ligne */
}

/* Labels */
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
}

/* Inputs et selects */
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    color: #111827;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

input:focus,
select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
    outline: none;
}



/* Police Google Font Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Appliquer Inter globalement */
body, input, select, button, label {
    font-family: 'Inter', sans-serif;
}

/* Conteneur principal */
.car-details-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    margin: 40px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    max-width: 1200px;
}

/* Titre principal */
.car-details-container h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Grille responsive à 4 colonnes */
.car-details-container .form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 20px;
}

/* Le champ Titre occupe toute la ligne */
.car-details-container .form-group:nth-child(1) {
    grid-column: span 4;
}

/* Champs : label */
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
    display: block;
}
.page-id-4251 .btn-wrapper {
    max-width: 1200px;
    margin:0px;
    text-align: center;
}
/* Champs : input et select */
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    color: #111827;
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.3s ease;
}


/* Messages de succès/erreur */
.success-message, .error-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.success-message {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.error-message {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Responsive tablette */
@media (max-width: 1024px) {
    .car-details-container .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive mobile */
@media (max-width: 640px) {
    .car-details-container .form-grid {
        grid-template-columns: 1fr;
    }

    .btn-validate {
        width: 100%;
    }
}

/* Cacher tous les éléments Nice Select */
.nice-select,
.nice-select.form-control,
.nice-select.open,
.nice-select.disabled {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
    opacity: 0 !important;
}
/* Style spécifique pour le champ carburant */
.carburant-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.carburant-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}
.form-group-full {
    grid-column: span 4; /* prend toute la ligne */
}
    


.error-field {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

.field-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error i {
    color: #dc3545;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-message {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.form-control.is-valid, .was-validated .form-control:valid{
    border-color: #198754!important;
}



    @media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .car-details-container,
  .options-container {
    padding: 20px;
    margin: 20px 10px;
    border-radius: 12px;
  }

  .car-details-container .form-grid,
  .options-container .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .form-group {
    width: 100%;
  }

  .form-group-full {
    grid-column: span 1 !important;
  }

  .btn-wrapper {
    margin: 24px auto;
    text-align: center;
  }

  .btn-validate {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    border-radius: 12px;
  }

  .upload-area {
    padding: 20px;
    border-radius: 12px;
  }

  .upload-btn {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  .upload-content p {
    font-size: 14px;
  }

  .gallery-preview {
    gap: 6px;
    justify-content: flex-start;
  }

  .gallery-preview img {
    width: 80px;
    height: 60px;
  }

  .remove-gallery-btn {
    width: 24px;
    height: 24px;
  }

  .trash-icon {
    width: 14px;
    height: 14px;
  }

  /* Modale d’estimation */
  .modal-box {
    width: 100% !important;
    padding: 20px;
    border-radius: 12px;
  }

  .modal-box h2 {
    font-size: 20px;
  }

  .modal-box input {
    padding: 10px;
    font-size: 15px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-buttons .btn-validate {
    width: 100%;
  }
}

    


    
  @media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
  }

  .car-details-container,
  .options-container {
    width: calc(100% - 32px); /* marge gauche + droite = 16px chacun */
    padding: 20px;
    margin: 20px auto; /* centre horizontalement */
    border-radius: 12px;
    box-sizing: border-box;
  }
  

  .car-details-container .form-grid,
  .options-container .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .form-group,
  .form-group-full {
    width: 100%;
    grid-column: span 1 !important;
  }

  input[type="text"],
  input[type="number"],
  select,
  textarea,
  .form-control {
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-wrapper {
    margin: 24px auto;
    text-align: center;
    padding: 0 10px;
  }

  .btn-validate {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    border-radius: 12px;
  }

  .upload-area {
    padding: 20px;
    border-radius: 12px;
  }

  .upload-btn {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  .upload-content p {
    font-size: 14px;
    text-align: center;
  }

  .gallery-preview {
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .gallery-preview img {
    width: 80px;
    height: 60px;
  }

  .gallery-image-wrapper {
    width: 80px;
    height: 60px;
    position: relative;
  }

  .remove-gallery-btn {
    width: 22px;
    height: 22px;
    top: -6px;
    right: -6px;
  }

  .trash-icon {
    width: 14px;
    height: 14px;
  }

  /* Estimation popup */
  .modal-box {
    width: 100% !important;
    padding: 20px;
    border-radius: 12px;
  }

  .modal-box h2 {
    font-size: 20px;
  }

  .modal-box input {
    padding: 10px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-buttons .btn-validate {
    width: 100%;
  }

  /* Carte responsive */
  #map-add-listing {
    height: 250px !important;
    width: 100% !important;
    border-radius: 10px;
  }
}


#serial_number.invalid-format {
    border: 2px solid red;
}
.serial-hint {
  
    font-size: 13px;
    margin-top: 4px;
    display: none;
}