*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

.container{
max-width:1300px;
margin:auto;
width:100%;
padding:0 20px;
}

/* TOP BAR */
.topbar{
background:black;
color:white;
font-size:14px;
}

.topbar .container{
display:flex;
justify-content:space-between;
align-items:center;
padding:8px 20px;
}

.topbar i{
color:red;
margin-right:6px;
}

.social i{
margin-left:12px;
cursor:pointer;
}

/* HEADER */
header {
  background: #000;
  padding: 15px 0;
  width: 100%;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* LOGO */
.logo img {
  width: 120px;
  transition: 0.3s;
}

.logo img:hover {
  opacity: 0.8;
}

/* NAVIGATION */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: 0.3s;
  border-radius: 6px;
}

nav ul li a i {
  color: red;
}

nav ul li a:hover {
  background: red;
  color: white;
}

/* DROPDOWN */
.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown li {
  width: 100%;
}

.dropdown li a {
display:flex;
align-items:center;
gap:8px;
padding:12px 15px;
color:black;
font-weight:600;
}

.dropdown li a:hover {
  background: #f3f3f3;
  color: red;
}

/* TOGGLE BUTTON */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
  
}

/* SLIDER TOPBAR (mobile only) */
.topbar-slider {
  display: flex;
  gap: 20px;
  
}

.slide {
  display: none;
  white-space: nowrap;
}

.slide.active {
  display: block;
  
  
}
.topbar-slider .slide {
  display: block;
}


.mobile-only {
  display: none;
}

/* SECTION DETAILS */

.car-section{
margin-top:40px;
display:grid;
grid-template-columns:1.3fr 1fr;
gap:40px;
background:#f4f6f9;
padding:25px;
border-radius:10px;
align-items:start;
}

/* IMAGE SLIDER */

.slider{
position:relative;
}

.main-image img{
width:100%;
height:420px;
max-height:60vh;
object-fit:cover;
border-radius:10px;
cursor:pointer;
}

/* ARROWS */

.arrow{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,0.5);
color:white;
border:none;
width:45px;
height:45px;
border-radius:50%;
cursor:pointer;
font-size:20px;
}

.arrow:hover{
background:red;
}

.prev{ left:10px; }
.next{ right:10px; }

/* THUMBNAILS */

.thumbs{
display:flex;
gap:10px;
margin-top:12px;
overflow-x:auto;
padding-bottom:5px;
}

.thumbs img{
width:100px;
height:70px;
object-fit:cover;
border-radius:6px;
cursor:pointer;
border:2px solid transparent;
flex-shrink:0;
}

.thumbs img:hover{
border-color:red;
}

/* INFO */

.car-info h1{
font-size:30px;
margin-bottom:5px;
color: #474747;
}

.car-title{
color:#666;
margin-bottom:15px;
}

.price{
font-size:32px;
color:red;
font-weight:bold;
}

.monthly{
font-size:20px;
margin-bottom:20px;
color:#444;
}

/* SPECS */

.specs{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px;
color:#474747;
}

.spec{
background:white;
padding:12px;
border-radius:8px;
display:flex;
align-items:center;
gap:10px;
font-weight:600;
}

.spec i{
color:red;
}

/* IMAGE FULLSCREEN */

.image-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.image-popup img{
max-width:90%;
max-height:90%;
border-radius:10px;
}

/* =========================
   FINANCE SECTION (NEW UI)
========================= */

.finance-section{
        background:linear-gradient(to bottom,#ffffff,#f8f8f8);
    padding:80px 20px;
}

/* CONTAINER */
.finance-container{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:stretch;
}

/* ================= CALCULATOR ================= */

.finance-calculator{
    background:#ffffff;
    border-radius:14px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border-top:5px solid #e30613;
        position:relative;
    overflow:hidden;
}
/* RED GLOW EFFECT */
.finance-calculator::before{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    background:radial-gradient(circle,#e30613,transparent 70%);
    top:-100px;
    right:-100px;
    opacity:0.1;
}
.finance-calculator h2{
    font-size:24px;
    margin-bottom:10px;
    color:#111;
    text-align: center;
}
.calculator{
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
}

.finance-calculator p{
    color:#777;
    font-size:14px;
}

.finance-calculator h1{
    font-size:32px;
    color:#e30613;
    margin-bottom:20px;
}

/* RANGE INPUT STYLE */
.finance-calculator input[type="range"]{
    width:100%;
    margin:15px 0;
    appearance:none;
    height:6px;
    background:#eee;
    border-radius:5px;
    outline:none;
}

/* THUMB */
.finance-calculator input[type="range"]::-webkit-slider-thumb{
    appearance:none;
    width:18px;
    height:18px;
    background:#e30613;
    border-radius:50%;
    cursor:pointer;
    border:3px solid white;
    box-shadow:0 0 0 2px #e30613;
}

/* LABELS */
#apportLabel,
#dureeLabel{
    font-size:14px;
    color:#555;
    margin-bottom:10px;
    text-align: center;
    
}



/* RESULT BOX */
.mensualite-box{
    margin-top:55px;
    background:#f40014;
    color:white;
    border-radius:12px;
    padding:25px;
    text-align:center;
}

.mensualite-box p{
    color:#000000;
    font-size: 20px;
}

.mensualite-box h3{
    font-size:32px;
    color:#ffffff;
    margin-top:10px;
}

/* ================= FORM ================= */

.finance-form{
    background:#ffffff;
    padding:35px;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* STEP TITLE */
.finance-form h3{
    margin-bottom:20px;
    color:#111;
}

/* INPUTS */
.finance-form input,
.finance-form select{
    width:100%;
    padding:14px;
    margin:10px 0;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    transition:0.3s;
}

/* FOCUS EFFECT */
.finance-form input:focus,
.finance-form select:focus{
    border-color:#e30613;
    box-shadow:0 0 0 2px rgba(227,6,19,0.1);
    outline:none;
}

/* BUTTONS */
.btns{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:25px;
}

.btns button{
    flex:1;
    background:#e30613;
    color:white;
    border:none;
    padding:14px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

/* HOVER */
.btns button:hover{
    background:#111;
}

/* SECOND BUTTON */
.btns button:first-child{
    background:#eee;
    color:#111;
}

.btns button:first-child:hover{
    background:#ddd;
}

/* ERROR */
.form-error{
    background:#ffe6e6;
    color:#c40000;
    padding:12px;
    border-radius:6px;
    margin-bottom:15px;
    border-left:4px solid red;
}

/* INPUT ERROR */
input.error,
select.error{
    border:2px solid #e30613;
}

#documents ul{
padding-left:20px;
margin-top:10px;
}

#documents{
  font-size:15px;
}
.step{
display:none;
}

.step.active{
display:block;
}
/* ================= RECAP ================= */

.recap-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.recap-card{
    background:white;
    border-radius:12px;
    padding:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.06);
    border-top:3px solid #e30613;
}

.recap-card h4{
    margin-bottom:15px;
    font-size:16px;
    color:#111;
    display:flex;
    align-items:center;
    gap:10px;
}

.recap-item{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #eee;
    font-size:14px;
}

.recap-item span:first-child{
    color:#777;
}

.recap-item span:last-child{
    font-weight:600;
    color:#111;
}

.recap-price{
    color:#e30613;
    font-size:20px;
}

/* CAR similaires */

.car-page{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
margin-top:40px;
}

.car-gallery img{
width:100%;
border-radius:10px;
margin-bottom:10px;
}

.car-info h1{
margin-bottom:10px;
}

.price{
font-size:28px;
color:red;
font-weight:bold;
margin:10px 0;
}

.details{
display:flex;
gap:20px;
margin-top:15px;
color:#555;
}

.details i{
color:red;
}

/* CARS SECTION */

.cars{
padding:70px 0;
background:white;
margin-top:60px;
}

.cars-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}

.cars-header h2{
font-size:28px;
}

.cars-controls{
display:flex;
gap:10px;
}

.cars-controls button{
width:40px;
height:40px;
border:none;
background:black;
color:white;
font-size:20px;
border-radius:50%;
cursor:pointer;
}

.cars-controls button:hover{
background:red;
}

/* SLIDER */

.cars-slider{
display:flex;
gap:20px;
overflow-x:auto;
scroll-behavior:smooth;
}

.cars-slider::-webkit-scrollbar{
display:none;
}

/* CARD */

.car-card{
min-width:280px;
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 6px 20px rgba(0,0,0,0.1);
transition:0.3s;
}

.car-card:hover{
transform:translateY(-5px);
}

.car-card img{
width:100%;
height:180px;
object-fit:cover;
}

.car-info-card{
padding:15px;
}

.car-info-card h3{
margin-bottom:8px;
}

.monthly{
font-size:14px;
color:#777;
margin-bottom:10px;
}

.car-details{
display:flex;
gap:12px;
font-size:14px;
color:#555;
margin-bottom:12px;
}

.discover{
display:block;
text-align:center;
background:#f40014;
color:white;
padding:10px;
border-radius:6px;
text-decoration:none;
font-weight:bold;
}

.discover:hover{
background:red;
}

/* CALLBOX */

.callbox-section{
    width:100%;
    display:flex;
    justify-content:center;
    padding:80px 20px;
    background:#000;
}

.callbox-section i{
color:red;
}
.callbox-container{
    max-width:1300px;
    width:100%;
    background:linear-gradient(135deg,#000,#111);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    padding:60px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    position:relative;
    overflow:hidden;
}

/* RED GLOW */
.callbox-container::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle,#ff0000,transparent 70%);
    top:-200px;
    right:-200px;
    opacity:0.15;
    pointer-events:none;
}

/* TEXT */
.callbox-text{
    max-width:650px;
}

.callbox-text h2{
    font-size:38px;
    font-weight:700;
    color:#fff;
    margin-bottom:20px;
}

.callbox-text p{
    color:#ccc;
    font-size:17px;
    line-height:1.6;
    margin-bottom:18px;
}

.callbox-location{
    color:#fff;
    font-weight:500;
}

/* BUTTON */
.callbox-btn{
    background:#ff0000;
    color:#fff;
    padding:18px 40px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
    transition:0.3s;
    white-space:nowrap;
}

.callbox-btn:hover{
    background:#fff;
    color:#000;
}


/* FOOTER */

.footer{
background:#0d0d0d;
color:white;
padding:70px 20px 30px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:40px;
}

/* TITLES */

.footer h3{
margin-bottom:15px;
color:white;
}

/* CONTACT FORM */

.footer-contact input,
.footer-contact textarea{
width:100%;
padding:12px;
margin-bottom:10px;
border:none;
border-radius:6px;
background:#1a1a1a;
color:white;
}

.footer-contact textarea{
height:100px;
resize:none;
}

.footer-contact button{
width:100%;
padding:12px;
border:none;
border-radius:6px;
background:red;
color:white;
font-weight:bold;
cursor:pointer;
transition:0.3s;
}

.footer-contact button:hover{
background:white;
color:black;
}

/* LINKS */

.footer-links a{
display:block;
color:#ccc;
text-decoration:none;
margin-bottom:8px;
transition:0.3s;
}

.footer-links a:hover{
color:red;
}

/* SOCIAL */

.social-icons a{
color:white;
font-size:22px;
margin-right:12px;
transition:0.3s;
}

.social-icons a:hover{
color:red;
}

/* ABOUT */

.footer-about p{
color:#ccc;
line-height:1.6;
}

/* ADDRESS */

.footer-address{
margin-top:15px;
color:#ccc;
font-size:14px;
}

/* BOTTOM */

.footer-bottom{
text-align:center;
margin-top:50px;
border-top:1px solid #222;
padding-top:20px;
color:#777;
font-size:14px;
}
.whatsapp-float{

position:fixed;
bottom:25px;
right:25px;
background:#25D366;
color:white;
width:60px;
height:60px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:32px;
box-shadow:0 8px 20px rgba(0,0,0,0.3);
z-index:999;

}

.whatsapp-float:hover{

background:#1ebe5b;

}


/* MOBILE */

@media(max-width:900px){
  .menu-toggle {
    display: block;
  }

  .header-flex {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #00000091;
    transition: 0.3s;
    padding-top: 80px;
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    padding: 12px 0;
  }

  .menu-toggle.active i::before {
    content: "\f00d";
  }

  .topbar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .topbar-slider {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
  }

  .social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
    .topbar-slider .slide {
    display: none;
  }

  .topbar-slider .slide.active {
    display: block;
  }
    .has-dropdown {
    display: none;
  }

  .mobile-only {
    display: block;
  }
.car-section{
grid-template-columns:1fr;
gap:25px;
padding:20px;
}

.main-image img{
height:320px;
}

.specs{
grid-template-columns:1fr 1fr;
}
.finance-container{
grid-template-columns:1fr;
}

.recap-container{
grid-template-columns:1fr;
}

.callbox-container{
    flex-direction:column;
    align-items:flex-start;
    padding:50px 30px;
}

.callbox-text h2{
    font-size:30px;
}
.footer-grid{
grid-template-columns:1fr 1fr;
}

}

@media(max-width:600px){

  /* LOGO */
.logo img {
  width: 90px;
  transition: 0.3s;
}
/* CAR SECTION */

.car-section{
grid-template-columns:1fr;
gap:20px;
padding:15px;
}

/* MAIN IMAGE */

.main-image img{
width:100%;
height:240px;
object-fit:cover;
}

/* THUMBNAILS */

.thumbs{
gap:8px;
}

.thumbs img{
width:80px;
height:60px;
flex-shrink:0;
}

/* INFO */

.car-info h1{
font-size:22px;
line-height:1.3;
}

.car-title{
font-size:14px;
}

.price{
font-size:24px;
}

.monthly{
font-size:16px;
}

/* SPECS */

.specs{
grid-template-columns:1fr;
gap:10px;
}

.spec{
padding:10px;
font-size:14px;
}

/* ARROWS SMALLER */

.arrow{
width:35px;
height:35px;
font-size:16px;
}

.contact-grid{
grid-template-columns:1fr;
}

.contact-title{
font-size:26px;
}


.footer-grid{
grid-template-columns:1fr;
}

}


@media(max-width:450px){
/* LOGO */
.logo img {
  width: 80px;
  transition: 0.3s;
}
  .social {
    gap: 10px;
    margin-left: 0px;
    margin-right: -5px;

  }
}
@media(max-width:400px){
/* CAR SECTION */

.car-section{
grid-template-columns:1fr;
gap:20px;
padding:15px;
}

/* MAIN IMAGE */

.main-image img{
width:100%;
height:240px;
object-fit:cover;
}

/* THUMBNAILS */

.thumbs{
gap:8px;
}

.thumbs img{
width:73px;
height:60px;
flex-shrink:0;
}

/* INFO */

.car-info h1{
font-size:22px;
line-height:1.3;
}

.car-title{
font-size:14px;
}

.price{
font-size:24px;
}

.monthly{
font-size:16px;
}

/* SPECS */

.specs{
grid-template-columns:1fr;
gap:10px;
}

.spec{
padding:10px;
font-size:14px;
}

/* ARROWS SMALLER */

.arrow{
width:35px;
height:35px;
font-size:16px;
} 
}