:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#111;
  --muted:#666;
  --green:#3ca000;
  --dark:#111;
  --line:rgba(0,0,0,0.08);
  --shadow:0 10px 30px rgba(0,0,0,0.08);
}

*{
  box-sizing:border-box;
}

html, body{
  overflow-x:hidden;
}

body{
  margin:0;
  font-family:Inter, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.container{
  max-width:1200px;
  margin:auto;
  padding:20px;
}

/* HEADER */

header{
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  position:sticky;
  top:0;
  z-index:50;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:20px;
}

.logo img{
  height:160px;
  max-width:100%;
  display:block;
}

/* MENU */

nav{
  display:flex;
  align-items:center;
  gap:14px;
}

nav a{
  text-decoration:none;
  color:#333;
  font-weight:700;
  padding:8px 12px;
  border-radius:8px;
  transition:0.2s;
}

nav a:hover{
  color:var(--green);
  background:rgba(60,160,0,0.08);
}

.nav-admin{
  background:#111;
  color:#fff;
}

.nav-admin:hover{
  background:#222;
  color:#fff;
}

/* HERO */

.hero{
  background:url("hero.jpg") center/cover no-repeat;
  min-height:560px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px 20px;
}

.hero-overlay{
  background:rgba(0,0,0,0.65);
  padding:42px;
  border-radius:18px;
  text-align:center;
  color:#fff;
  max-width:820px;
  box-shadow:var(--shadow);
}

.hero-badge{
  display:inline-block;
  padding:8px 14px;
  background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.18);
  border-radius:999px;
  margin-bottom:16px;
  font-size:13px;
  font-weight:800;
}

.hero h1{
  font-size:48px;
  margin:0 0 14px;
}

.hero p{
  color:#eee;
  line-height:1.7;
  max-width:700px;
  margin:0 auto;
}

.hero-actions{
  margin-top:22px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.hero-mini-info{
  margin-top:18px;
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  color:#f1f1f1;
  font-size:14px;
  font-weight:700;
}

/* BOUTONS */

.btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  border:none;
}

.full{
  width:100%;
  text-align:center;
}

.green{
  background:var(--green);
  color:#fff;
}

.dark{
  background:#111;
  color:#fff;
}

.ghost{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,0.4);
}

.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:#111;
  text-decoration:none;
  font-weight:800;
}

/* SECTIONS */

.section{
  padding:75px 20px;
}

.grey{
  background:#f8f8f8;
}

.subtitle{
  color:var(--muted);
  margin:8px 0 0;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px;
  flex-wrap:wrap;
}

/* STATS */

.stats-section{
  padding-top:35px;
  padding-bottom:15px;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.stat-card{
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.stat-card strong{
  font-size:18px;
}

.stat-card span{
  color:#555;
  line-height:1.5;
}

/* VEHICULES EN VEDETTE */

.featured-cars{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.car-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:0.2s;
}

.car-card:hover{
  transform:translateY(-6px);
}

.car-image-wrap{
  position:relative;
}

.car-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}

.origin-badge{
  position:absolute;
  top:12px;
  left:12px;
  background:#111;
  color:#fff;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.car-info{
  padding:18px;
  text-align:center;
}

.car-info h3{
  margin:0 0 8px;
  font-size:18px;
}

.car-meta{
  color:#666;
  margin:0 0 12px;
  font-size:14px;
}

.car-chips{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.car-chips span{
  padding:7px 10px;
  border-radius:999px;
  background:#f4f4f4;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:700;
}

.featured-price{
  font-size:22px;
  font-weight:900;
  color:#111;
  margin-bottom:14px;
}

.empty-box{
  background:#fff;
  padding:24px;
  border-radius:16px;
  box-shadow:var(--shadow);
  color:#666;
}

/* WHY */

.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.why-card{
  background:#fff;
  padding:24px;
  border-radius:16px;
  box-shadow:var(--shadow);
}

.why-card h3{
  margin:0 0 10px;
}

.why-card p{
  margin:0;
  color:#555;
  line-height:1.6;
}

/* SERVICES */

.services{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.service{
  background:var(--card);
  padding:25px;
  border-radius:16px;
  box-shadow:var(--shadow);
  transition:0.2s;
}

.service:hover{
  transform:translateY(-6px);
}

.service h3{
  margin:0 0 10px;
}

.service p{
  color:#444;
  line-height:1.6;
  margin:0;
}

/* CONTACT */

.contact{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.contact-card{
  background:#fff;
  padding:26px;
  border-radius:16px;
  box-shadow:var(--shadow);
  text-align:center;
}

.contact-card h3{
  margin:0 0 8px;
}

.contact-card p{
  color:#555;
  margin-bottom:16px;
}

/* FOOTER */

footer{
  background:#111;
  color:#fff;
  padding:36px 20px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

footer a{
  color:#fff;
  text-decoration:none;
}

footer p{
  margin:8px 0;
  color:#ddd;
}

/* RESPONSIVE WEB/TABLET */

@media(max-width:1100px){
  .featured-cars,
  .stats-grid,
  .why-grid,
  .services{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:900px){
  .contact,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:34px;
  }
}

/* MOBILE ONLY */

@media(max-width:700px){
  .container{
    padding:14px;
  }

  header{
    position:sticky;
    top:0;
  }

  .header{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding-top:4px;
    padding-bottom:4px;
  }

  .logo{
    width:100%;
    justify-content:center;
    text-align:center;
    gap:8px;
    font-size:18px;
    line-height:1.1;
    margin:0;
  }

  .logo img{
    height:120px;
    width:auto;
  }

  nav{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:10px 10px;
    margin-top:4px;
  }

  nav a{
    padding:10px 14px;
    border-radius:12px;
    font-size:15px;
    line-height:1.2;
    text-align:center;
  }

  .nav-admin{
    padding:10px 14px;
    font-size:14px;
  }

  .hero{
    min-height:auto;
    padding:10px 0 0;
    background-position:center center;
  }

  .hero-overlay{
    width:100%;
    max-width:none;
    margin:0 14px;
    padding:22px 16px 22px;
    border-radius:22px;
  }

  .hero-badge{
    font-size:12px;
    line-height:1.3;
    padding:9px 12px;
    margin-bottom:14px;
  }

  .hero h1{
    font-size:25px;
    line-height:1.15;
    margin:0 0 12px;
  }

  .hero p{
    font-size:16px;
    line-height:1.55;
    max-width:100%;
  }

  .hero-actions{
    margin-top:18px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline,
  .hero-actions a{
    width:100%;
    text-align:center;
    justify-content:center;
    min-height:50px;
    display:flex;
    align-items:center;
  }

  .hero-mini-info{
    margin-top:16px;
    flex-direction:column;
    gap:8px;
    font-size:14px;
  }

  .section{
    padding:48px 0;
  }

  .section-head{
    margin-bottom:18px;
    gap:12px;
  }

  .section-head h2,
  .section h2{
    font-size:26px;
    line-height:1.2;
    margin:0;
    text-align:center;
    width:100%;
  }

  .subtitle{
    text-align:center;
    width:100%;
    font-size:15px;
  }

  .featured-cars,
  .stats-grid,
  .why-grid,
  .services,
  .contact,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .stat-card,
  .why-card,
  .service,
  .contact-card,
  .car-card,
  .empty-box{
    border-radius:16px;
  }

  .car-info{
    padding:16px;
  }

  .featured-price{
    font-size:20px;
  }

  footer{
    padding:28px 14px;
    text-align:center;
  }

  footer p,
  footer a{
    word-break:break-word;
  }
}