/* ==========================================================================
   KAMAL CARS — feuille de style
   Direction : écran sombre, panneau latéral, cartes blanches, liens soulignés.
   ========================================================================== */
:root {
  --bg: #0a0a0b;
  --panel: #131315;
  --panel-2: #1a1a1d;
  --line: rgba(255,255,255,0.1);
  --text: #f2f2f2;
  --muted: #8f9096;
  --card: #f5f4f1;
  --card-text: #111;
  --card-muted: #6b6b6f;
  --red: #d4232f;
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Unbounded", "Manrope", sans-serif;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(18px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: 15px; }

/* Lien souligné (style de la référence) */
.ul { position: relative; display: inline-block; font-weight: 600; padding-bottom: 2px; border-bottom: 1px solid currentColor; line-height: 1.3; transition: opacity 0.2s; }
.ul:hover { opacity: 0.65; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill--light { background: #fff; color: #111; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: opacity 0.2s, transform 0.15s; white-space: nowrap; }
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn--dark { background: #111; color: #fff; }
.btn--light { background: #fff; color: #111; }
.btn--red { background: var(--red); color: #fff; }
.btn--block { width: 100%; }

.mark { display: block; width: 36px; height: auto; color: var(--red); flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--pad); }
.header--solid { position: sticky; background: rgba(10,10,11,0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Montserrat", var(--font); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; line-height: 1.1; }
.brand__icon { height: 30px; width: auto; flex: 0 0 auto; }
.brand__text small { display: block; font-family: "Montserrat", var(--font); font-weight: 500; font-size: 10px; color: #d6d6d8; letter-spacing: 0; margin-top: 3px; text-transform: none; }
.mobile-nav__logo { width: 150px; height: auto; margin-bottom: 14px; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { height: 64px; width: auto; }
.header__tag { color: var(--muted); font-size: 13px; max-width: 30ch; line-height: 1.35; }
.header__right { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: #fff; transition: transform 0.25s, opacity 0.2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 15; background: var(--bg); padding: 90px var(--pad) 40px; flex-direction: column; gap: 6px; }
.mobile-nav a { font-family: var(--display); font-weight: 700; font-size: 26px; padding: 10px 0; }
.mobile-nav .mobile-nav__contact { margin-top: auto; display: grid; gap: 10px; font-family: var(--font); font-size: 15px; }
.mobile-nav .mobile-nav__contact a { font-family: var(--font); font-size: 15px; font-weight: 600; padding: 0; }
body.menu-open .mobile-nav { display: flex; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero : visuel + panneau latéral
   -------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 400px; gap: 12px; min-height: 100svh; padding: 92px 12px 12px; }
.hero__visual { position: relative; border-radius: var(--radius); overflow: hidden; background: #0e0e10; min-height: 520px; }
.hero__bg { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 30% 20%, rgba(255,255,255,0.10), transparent 60%),
  radial-gradient(50% 45% at 75% 85%, rgba(212,35,47,0.22), transparent 65%),
  linear-gradient(180deg, #17171a 0%, #0b0b0c 100%); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: brightness(0.62) saturate(0.85); }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0) 35%, rgba(10,10,11,0.85) 100%); }
.hero__car { position: absolute; left: 6%; right: 6%; bottom: 24%; margin: auto; width: 84%; max-height: 62%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 40px 50px rgba(0,0,0,0.65)); }
.hero__title { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(22px, 3vw, 40px); font-size: clamp(30px, 4.6vw, 66px); max-width: 14ch; }
.hero__title em { font-style: normal; color: var(--red); }

.hero__panel { display: flex; flex-direction: column; border-radius: var(--radius); background: linear-gradient(200deg, #1b1b1e 0%, #111113 45%, #1a0f11 100%); padding: 28px 28px 20px; min-height: 520px; }
.panel__nav { display: grid; gap: 4px; }
.panel__nav a { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.5; transition: color 0.2s; }
.panel__nav a:hover { color: var(--red); }
.panel__contact { margin-top: auto; padding: 28px 0 22px; display: grid; gap: 12px; font-size: 14px; }
.panel__contact .ul { justify-self: start; }
.panel__contact .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Carte véhicule en vedette (blanche) */
.feature { background: var(--card); color: var(--card-text); border-radius: var(--radius-sm); padding: 12px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.feature__img { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: #ddd; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.feature__name { font-weight: 800; font-size: 14px; line-height: 1.25; }
.feature__specs { color: var(--card-muted); font-size: 12px; margin: 6px 0 10px; }
.feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature__arrows { display: flex; gap: 4px; }
.feature__arrows button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; transition: background 0.2s; }
.feature__arrows button:hover { background: #e9e8e4; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 12px 0; }
.stats div { background: var(--panel); border-radius: var(--radius-sm); padding: 20px 22px; display: flex; align-items: baseline; gap: 12px; }
.stats b { font-family: var(--display); font-size: 26px; font-weight: 700; color: #fff; white-space: nowrap; }
.stats span { color: var(--muted); font-size: 13px; line-height: 1.3; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 110px) var(--pad); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section__head p { color: var(--muted); margin-top: 8px; max-width: 48ch; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 26px; border-top: 1px solid var(--line); }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.search input, .sort { height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; padding: 0 16px; outline: 0; -webkit-appearance: none; appearance: none; }
.search input { width: 280px; }
.search input:focus, .sort:focus { border-color: rgba(255,255,255,0.4); }
.search input::placeholder { color: var(--muted); }
.sort { padding-right: 34px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238f9096' fill='none' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.filters { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.filters button b { font-weight: 600; opacity: 0.55; margin-left: 2px; }
.filters button { color: var(--muted); font-weight: 600; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.filters button:hover { color: var(--text); }
.filters button.is-active { color: var(--text); border-color: currentColor; }

/* Groupes par catégorie */
.fleet-group { margin-bottom: 44px; }
.fleet-group[hidden] { display: none; }
.fleet-group__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.fleet-group__head h3 { font-size: 20px; }
.fleet-group__head h3 span { color: var(--red); font-size: 13px; margin-left: 4px; }
.fleet-group__head p { color: var(--muted); font-size: 14px; }

/* Cartes blanches */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vcard { background: var(--card); color: var(--card-text); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; transition: transform 0.2s; }
.vcard:hover { transform: translateY(-2px); }
.vcard.is-hidden { display: none; }
.vcard--wide { grid-column: span 2; }
.vcard--wide .vcard__media { aspect-ratio: 16 / 8; }
.vcard--wide .vcard__body { padding: 16px 12px 8px; }
.vcard--wide .vcard__specs { grid-template-columns: repeat(4, 1fr); }
.vcard__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #e7e6e2; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.vcard:hover .vcard__media img { transform: scale(1.03); }
.vcard__chip { position: absolute; top: 10px; left: 10px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(17,17,17,0.85); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; letter-spacing: 0.02em; }
.vcard__count { position: absolute; right: 10px; bottom: 10px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,0.9); color: #111; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
.vcard__body { padding: 14px 8px 6px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vcard__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vcard__row h3 { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.vcard__row h3 span { font-family: var(--font); color: var(--card-muted); font-weight: 600; font-size: 13px; margin-left: 6px; }
.vcard__price { text-align: right; white-space: nowrap; }
.vcard__price b { display: block; font-size: 17px; font-weight: 800; }
.vcard__price small { color: var(--card-muted); font-size: 11px; }
.vcard__tag { color: #444; font-size: 13px; line-height: 1.45; }
.vcard__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 10px 0; border-top: 1px solid #e3e2de; border-bottom: 1px solid #e3e2de; }
.vcard__specs li { display: flex; flex-direction: column; font-size: 12px; }
.vcard__specs small { color: var(--card-muted); font-size: 11px; }
.vcard__specs b { font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; font-size: 13px; }
.vcard__foot .btn { height: 42px; padding: 0 18px; }
.vcard__note { width: 100%; color: var(--card-muted); font-size: 12px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service { background: var(--panel); border-radius: var(--radius-sm); padding: 26px 24px 28px; }
.service__n { font-family: var(--display); color: var(--red); font-size: 13px; margin-bottom: 40px; }
.service h3 { font-size: 17px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: end; border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 70px); }
.contact h2 { max-width: 16ch; }
.contact p { color: var(--muted); margin-top: 12px; max-width: 44ch; }
.contact__list { display: grid; gap: 14px; font-size: 16px; }
.contact__list .ul { justify-self: start; }
.contact__list small { color: var(--muted); display: block; font-size: 12px; margin-bottom: 2px; }
.contact .btn { margin-top: 10px; justify-self: start; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 70px); }
.faq__intro { color: var(--muted); margin-top: 12px; max-width: 34ch; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 22px; font-weight: 500; }
.faq__list details[open] summary::after { content: "–"; }
.faq__list p { color: var(--muted); padding: 0 0 20px; max-width: 64ch; }

/* Pied de page */
.footer { padding: 30px var(--pad) 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer nav { display: flex; gap: 18px; }
.footer nav a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Page véhicule / réservation
   -------------------------------------------------------------------------- */
.page { padding: 28px var(--pad) 40px; }
.back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.vehicle { display: grid; grid-template-columns: 1fr 440px; gap: 14px; align-items: start; }
.gallery { position: sticky; top: 14px; }
.gallery__main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.gallery__thumb { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--panel); border: 2px solid transparent; transition: border-color 0.2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: #fff; }
.stack { display: grid; gap: 14px; }
.card { background: var(--card); color: var(--card-text); border-radius: var(--radius); padding: 24px; }
.card--dark { background: var(--panel); color: var(--text); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card__head h1 { font-size: clamp(22px, 2.4vw, 30px); }
.card__head h1 span { display: block; font-family: var(--font); font-weight: 600; color: var(--card-muted); font-size: 14px; margin-top: 4px; }
.card__cat { color: var(--card-muted); font-size: 13px; margin-top: 8px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 18px 0 16px; border-top: 1px solid #e3e2de; }
.specs li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e3e2de; font-size: 13px; }
.specs small { color: var(--card-muted); font-size: 13px; }
.specs b { font-weight: 700; text-align: right; }
.card__desc { color: #444; font-size: 14px; }
.card h2 { font-size: 20px; margin-bottom: 16px; }

/* Formulaires (fond blanc) */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--card-muted); }
.field input, .field select, .field textarea { width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid #d9d8d3; background: #fff; color: #111; font: inherit; font-size: 15px; outline: 0; -webkit-appearance: none; appearance: none; transition: border-color 0.2s; }
.field textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.field select { background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23111' fill='none' stroke-width='1.5'/></svg>") no-repeat right 12px center; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #111; }
.field input::placeholder, .field textarea::placeholder { color: #a5a5a5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; padding: 12px; border-radius: 10px; border: 1px solid #d9d8d3; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.choice b { display: block; font-size: 14px; }
.choice small { color: var(--card-muted); font-size: 12px; }
.choice input:checked + label { border-color: #111; background: #fff; }
.estimate { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid #e3e2de; margin: 6px 0 14px; }
.estimate span { color: var(--card-muted); font-size: 13px; }
.estimate small { display: block; font-size: 12px; }
.estimate b { font-size: 20px; font-weight: 800; }
.form__note { color: var(--card-muted); font-size: 12px; margin-top: 12px; }
.form__actions { display: grid; gap: 8px; }
.form__actions .ul { justify-self: center; font-size: 14px; margin-top: 6px; }

.booking { display: grid; grid-template-columns: 1fr 380px; gap: 14px; align-items: start; }
.summary__media { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #e7e6e2; margin-bottom: 14px; }
.summary__media img { width: 100%; height: 100%; object-fit: cover; }
.summary dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e3e2de; font-size: 13px; }
.summary dt { color: var(--card-muted); }

/* Barre mobile (page véhicule) */
.mobile-bar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; padding: 10px 10px 10px 18px; background: var(--card); color: var(--card-text); border-radius: 999px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.mobile-bar b { font-size: 15px; }
.mobile-bar small { display: block; color: var(--card-muted); font-size: 11px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 340px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .header__tag { display: none; }
  .vehicle { grid-template-columns: 1fr 380px; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header__right .ul, .header__right .header__phone { display: none; }
  .burger { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 80px; }
  .hero__visual { min-height: 72svh; }
  .hero__car { left: 2%; right: 2%; width: 96%; bottom: 30%; max-height: 50%; }
  .hero__title { font-size: clamp(30px, 8vw, 44px); }
  .hero__panel { min-height: 0; padding: 20px; }
  .panel__nav { display: none; }
  .panel__contact { margin-top: 0; padding: 0 0 16px; }
  .vehicle, .booking, .contact { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .vcard--wide .vcard__media { aspect-ratio: 16 / 9; }
  .vcard--wide .vcard__specs { grid-template-columns: 1fr 1fr; }
  .search { display: block; flex: 1; }
  .search input { width: 100%; }
  .toolbar__right { width: 100%; }
  .mobile-bar { display: flex; }
  body.has-bar { padding-bottom: 84px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .vcard--wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; padding: 12px 12px 0; }
  .stats div { padding: 14px 16px; flex-direction: column; gap: 2px; }
  .stats b { font-size: 20px; }
  .field-row, .choice, .specs { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
