:root {
  /* Couleurs */
  --color-primary:    #F7941D;
  --color-primary-dark: #E07A0A;
  --color-ink:        #343131;
  --color-black: #0F0F0F;
   --color-dark:      #111111;   /* boutons secondaires */
  --color-bg:         #FFFFFF;
  --color-surface:    #F5F5F5;
  --color-surface-2:  #F9F9F9;
  --color-border:     #E8E8E8;
  --color-muted:      #888888;
  --color-ink-2:     #4A4A4A;   /* texte secondaire */
  --color-white:      #FFFFFF;
  --color-header: rgba(255,255,255,.9);
  /* Typographie */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', sans-serif;

  /* Rayons */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 9999px;

  /* Ombres */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 48px rgba(0,0,0,0.15);

  /* Espacements */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
}

*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-surface-2);
}
.header{
    position: fixed;
    inset: 0 0 auto 0;
    height: 72px;
    padding: 0 32px;
    background-color: var(--color-header);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow:  0 1px 0 rgba(0,0,0,.05) ;
    display:flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 100;
    
}
.logo{
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color:var(--color-black);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-dot{
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary-dark);
}
.nav{
    display:flex;
    align-items: center;
    gap: 32px;
}
.nav a{
    text-decoration: none;
    color: var(--color-black);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.2px;
}
/* Ligne animée sous le lien*/
.nav a:hover, .nav a.active{
    color: var(--color-primary);
}
.nav a.active::after{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--color-primary-dark);
    border-radius: 2px;
}
.header-action{
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-ghost{
    text-decoration: none;
    font-size: 14px;
    color: var(--color-black);
    font-weight: 500;
}
.btn-contact{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    font-size: 14px;
    border-radius: var(--radius-pill);
    color: var(--color-white);
    background-color: var(--color-primary);
    text-decoration: none;
     box-shadow :0 8px 20px rgba(247,148,29,0.45);
    transition: transform 0.2s ease;
}
.btn-contact:hover{
    transform: translateY(-1px);
}
.menu-toggle-input{
    display:none;
}
.menu-toggle{
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle span{
    width: 24px;
    height: 2px;
    background-color: var(--color-ink);
    margin: 2px;
}

.page-hero {
  padding: 120px 24px 60px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-ink-2);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(247,148,29,.15);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  margin: 14px 0 16px;
}
.page-hero h1 em { font-style: italic; color: var(--color-primary); }
.page-hero > .container > p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--c-ink-2);
  font-size: 16px;
}


/* ── Galerie de véhicules (vehicules.html) ────────────────────────────────── */

.filters {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 48px;
}
.chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-2);
  transition: all .2s;
  cursor: pointer;
}
.chip:hover { border-color: var(--color-ink); color: var(--color-ink); }
.chip:focus {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.cars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.car-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .3s, box-shadow .3s;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.car-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.car-image img {
  width: 90%;
  height: auto;
  object-fit: contain;
  transition: transform .5s ease;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,.2));
}
.car-imag{
  overflow: hidden;
}
.car-imag img{
  width: 100%;
  height: 100%;
}
.car-imag {
  position: relative; /* allow absolutely-positioned badge to anchor here */
}
.car-imag .car-badge {
  z-index: 5; /* keep badge above the image */
}
.car-imag img {
  z-index: 0; /* ensure image stays below the badge */
}
.car-card:hover .car-image img, .car-imag img{ transform: scale(1.06) translateY(-6px); }

.car-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.car-badge-dark { background: var(--color-primary); color: #fff; }

.car-body { padding: 24px; }
.car-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.car-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 14px;
}
.car-specs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.car-specs span {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--c-bg);
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
}

.car-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.car-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-ink);
}
.car-price span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}
.cars-gallery { margin-bottom: 40px; }

/* Nouvelle disposition prix + boutons (2 actions au lieu d'une) */
.car-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.car-btns { display: flex; gap: 8px; }

/* Variante de bouton contour pour fond clair (utilisé dans les cartes) */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(247,148,29,.35);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

.btn-outline-dark {
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.btn-outline-dark:hover {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.btn-sm  { padding: 10px 18px; font-size: 13px; }

.gallery-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
  margin-top: 20px;
}



.footer {
  background: #0a0a0a;
  color: #fff;
  margin-top: 90px;
}
.footer-content {
  padding: 56px clamp(24px, 6vw, 80px) 32px;
  /* Marge pour ne pas être caché par la bottom-nav sur mobile */
  /* ajusté via media query */
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-white);
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 300px;
  font-size: 13px;
  margin-top: 8px;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.25s ease;
}
.social-btn:hover {
  background: var(--color-primary);
  transform: scale(1.1) rotate(6deg);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover { color: var(--color-primary); }

/* Bottom nav mobile — cachée par défaut */
.bottom-nav { display: none; }

@media (max-width:768px){
    .nav{
       display: none;
       align-items: stretch;
       gap:0.25rem;
       flex-direction: column;
       background: rgba(255,255,255,0.97);
       backdrop-filter: blur(16px);
       padding: 1.25em 1.5rem 1.5rem;
       position: fixed;
       inset: 72px 0 auto 0;
       border-bottom:1px solid var(--color-border);
       border-radius: 0 0 var(--radius-lg) var(--radius-lg);
       z-index: 99;
       box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    }
    .nav a{
        font-size: 16px;
        font: 600;
        padding: 12px 8px;
        color: var(--color-black);
        border-bottom: 1px solid var(--color-border);
    }
    .nav a:last-child{
        border-bottom: none;
    }
    .nav a:after{
        display: none;
    }
    .header{
        padding:4px;
        z-index: 100;
        width: 100%;
    }
    .menu-toggle{
        display: flex;
    }
    .header:has(.menu-toggle-input:checked) .nav{
        display: flex;
    }
    .header:has(.menu-toggle-input:checked) .menu-toggle span:nth-child(1){
        transform: rotate(45deg) translateY(7px);
        transform-origin: center;
    }
    .header:has(.menu-toggle-input:checked) .menu-toggle span:nth-child(2){
        opacity: 0;
    }
   .header:has(.menu-toggle-input:checked) .menu-toggle span:nth-child(3){
        transform: rotate(-45deg) translateY(-7px);
         transform-origin: center;
    }
    .infos{
        grid-template-columns: repeat(1, 1fr);
    }
    /* --- Footer --- */
  .footer-content { padding: 40px 20px 24px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    /* Espace pour la bottom-nav */
    padding-bottom: 72px;
  }

  /* --- Bottom nav --- */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--color-border);
    height: 64px;
    z-index: 200;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  }
  .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
  }
  .nav-item.active { color: var(--color-primary); }
  .nav-item svg { stroke: currentColor; }
  .nav-item:active { color: var(--color-primary); }

}

@media (max-width:425px){
    .btn-ghost{
        display: none;
    }
}
@media (max-width: 900px) {
  .page-hero    { padding: 100px 20px 40px; }
  .cars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .car-actions { flex-direction: column; align-items: stretch; }
  .car-btns    { justify-content: stretch; }
  .car-btns a  { flex: 1; text-align: center; }
  .cars { grid-template-columns: 1fr; }
}