/* ==========================================================================
   Kiko Motos — feuille de style du site public
   Création : Websly.ch
   ========================================================================== */

:root {
  --red: #ae1c1c;
  --red-dark: #8c1414;
  --red-soft: #f6e3e3;
  --asphalt: #18191b;
  --graphite: #2b2d31;
  --steel: #6f747b;
  --line: #dcdfe2;
  --paper: #f4f5f3;
  --white: #ffffff;
  --ok: #2f8f4e;
  --amber: #b7791f;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --slant: 14px;            /* coupe oblique, reprise du logo italique */
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(24, 25, 27, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--graphite);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--asphalt);
  line-height: 1.02;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1, h2 { font-style: italic; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--white); padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons : coupe oblique ---------- */
.btn {
  --bg: var(--asphalt); --fg: var(--white);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.7em;
  font: 700 1.05rem/1 var(--display);
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--fg); background: var(--bg);
  border: 0;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { --bg: var(--red); }
.btn:active { transform: translateY(1px); }
.btn-red { --bg: var(--red); }
.btn-red:hover { --bg: var(--red-dark); }
.btn-light { --bg: var(--white); --fg: var(--asphalt); }
.btn-light:hover { --bg: var(--red); --fg: var(--white); }
.btn-ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); clip-path: none; border-radius: 2px; }
.btn-ghost:hover { --bg: var(--white); --fg: var(--asphalt); }
.btn i { font-size: .9em; }
.link {
  font: 700 1.05rem var(--display); color: var(--red); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link:hover { color: var(--asphalt); }

/* ---------- Bandeau d'annonce ---------- */
.announce { background: var(--red); color: var(--white); text-align: center; font-weight: 500; padding: 8px 0; font-size: .95rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--asphalt); color: var(--white); }
.topbar { border-bottom: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: #c9ccd0; }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 38px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--white); }
.topbar i { color: var(--red); font-size: .85em; }
.topbar .push { margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--white); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #777; }
.status.is-open .dot { background: #3bbf66; box-shadow: 0 0 0 4px rgba(59,191,102,.18); }
.status.is-closed .dot { background: var(--red); }

.nav-row { display: flex; align-items: center; height: 78px; gap: 24px; transition: height .25s var(--ease); }
.site-header.is-scrolled .nav-row { height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.logo-img { height: 54px; width: auto; transition: height .25s var(--ease); }
.site-header.is-scrolled .logo-img { height: 44px; }
.logo-text { font: italic 800 1.9rem/1 var(--display); color: var(--white); letter-spacing: .01em; }
.brand-name { font: 600 1.05rem var(--display); letter-spacing: .06em; color: #c9ccd0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.18); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  position: relative; padding: 10px 14px;
  font: 600 1.12rem var(--display); letter-spacing: .02em;
  color: #e3e5e8; text-decoration: none;
}
.nav > a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--red); transform: scaleX(0) skewX(-20deg); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > a:not(.btn):hover, .nav > a.active { color: var(--white); }
.nav > a:not(.btn):hover::after, .nav > a.active::after { transform: scaleX(1) skewX(-20deg); }
.nav-cta { margin-left: 14px; }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; position: relative; }
.burger span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
  .brand-name { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; top: var(--header-h, 116px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--asphalt); padding: 12px var(--gutter) 32px;
    transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav > a:not(.btn) { font-size: 1.7rem; font-style: italic; font-weight: 700; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a.active { color: var(--red); }
  .nav-cta { margin: 24px 0 0; justify-content: center; padding: 1.1em; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .topbar-in { gap: 16px; justify-content: space-between; }
  .nav-row { height: 66px; }
  .logo-img { height: 44px; }
}

/* ---------- Héros d'accueil (slider) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(560px, 86vh, 820px);
  background: var(--asphalt); color: var(--white);
  overflow: hidden; display: flex; align-items: center;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(24,25,27,.92) 0%, rgba(24,25,27,.72) 38%, rgba(24,25,27,.15) 75%),
    linear-gradient(0deg, rgba(24,25,27,.85) 0%, rgba(24,25,27,0) 35%);
}
.hero-inner { padding-top: 60px; padding-bottom: 170px; }
.hero h1 {
  color: var(--white); max-width: 11ch;
  font-size: clamp(3rem, 8.2vw, 6.6rem); line-height: .92;
  margin-bottom: .32em;
}
.hero-text { max-width: 34rem; font-size: 1.15rem; color: #dfe1e4; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 150px;
  display: flex; align-items: center; gap: 18px;
}
.hero-caption .cap { font: 600 1.05rem var(--display); color: #cfd2d6; min-width: 12ch; text-align: right; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 46px; height: 22px; border: 0; background: none; padding: 0; position: relative;
}
.hero-dots button::before, .hero-dots button::after {
  content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: rgba(255,255,255,.3); transform: skewX(-25deg);
}
.hero-dots button::after { background: var(--red); transform-origin: left; transform: skewX(-25deg) scaleX(0); }
.hero-dots button.is-active::after { animation: fill var(--hero-delay, 6.5s) linear forwards; }
@keyframes fill { to { transform: skewX(-25deg) scaleX(1); } }
@media (max-width: 760px) {
  .hero { min-height: 640px; align-items: flex-start; }
  .hero-inner { padding-top: 64px; }
  .hero-caption { left: var(--gutter); right: auto; bottom: auto; top: 20px; }
  .hero-caption .cap { display: none; }
}

/* ---------- Tuiles catégories (chevauchent le héros) ---------- */
.cats { position: relative; z-index: 3; margin-top: -110px; }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; box-shadow: var(--shadow); }
.cat-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 220px; padding: 26px 30px; text-decoration: none; color: var(--white);
  background: var(--graphite);
}
.cat-tile:nth-child(1) { background: var(--red); }
.cat-tile:nth-child(2) { background: var(--graphite); }
.cat-tile:nth-child(3) { background: var(--asphalt); }
.cat-tile .cat-icon {
  position: absolute; right: -18px; top: 16px; width: 62%; max-width: 230px; opacity: .14;
  transition: transform .4s var(--ease), opacity .3s;
}
.cat-tile:hover .cat-icon { transform: translateX(-12px); opacity: .26; }
.cat-tile h3 { color: var(--white); font-size: 2rem; font-style: italic; font-weight: 800; margin-bottom: .15em; }
.cat-tile p { margin: 0; color: rgba(255,255,255,.78); font-size: .98rem; }
.cat-tile .cat-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font: 700 1rem var(--display); letter-spacing: .02em; }
.cat-tile .cat-go i { transition: transform .25s var(--ease); }
.cat-tile:hover .cat-go i { transform: translateX(6px); }
@media (max-width: 860px) {
  .cats { margin-top: -70px; }
  .cats-grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 150px; padding: 22px 24px; }
  .cat-tile .cat-icon { width: 38%; top: 50%; transform: translateY(-50%); }
  .cat-tile:hover .cat-icon { transform: translate(-12px, -50%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--asphalt); color: #d9dbde; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 36rem; margin: .6em 0 0; color: var(--steel); }
.section-dark .section-head p { color: #a9adb3; }
.lead { font-size: 1.18rem; color: var(--steel); max-width: 40rem; }

/* ---------- À propos (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.frame { position: relative; }
.frame::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; background: var(--red);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  z-index: 0;
}
.frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split-text h2 { max-width: 14ch; }
.split-text .prose { color: #4a4e54; max-width: 36rem; }
.split-text .btn { margin-top: 1.6rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .frame { margin-right: 22px; }
}

/* ---------- Atelier / services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--asphalt); }
.service { padding: 28px 26px 30px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 26px; }
.service:last-child { border-right: 0; }
.service i { font-size: 1.6rem; color: var(--red); margin-bottom: 18px; display: block; }
.service h3 { font-size: 1.4rem; margin-bottom: .35em; }
.service p { color: var(--steel); font-size: .98rem; margin: 0; }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 26px 22px 26px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .service:nth-child(even) { padding-left: 22px !important; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0 !important; border-left: 0; }
}

/* ---------- Cartes motos ---------- */
.grid-motos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card-moto { background: var(--white); display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.card-moto:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cm-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e7e9eb; }
.cm-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-moto:hover .cm-img img { transform: scale(1.04); }
.cm-tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.cm-count { position: absolute; right: 12px; bottom: 12px; background: rgba(24,25,27,.75); color: var(--white); font-size: .82rem; padding: 4px 9px; border-radius: 2px; display: flex; gap: 6px; align-items: center; }
.tag { display: inline-block; font: 700 .85rem/1 var(--display); letter-spacing: .03em; padding: 6px 10px 5px; color: var(--white); background: var(--asphalt); }
.tag-feat { background: var(--red); }
.tag-reserve { background: var(--amber); }
.tag-vendu { background: var(--asphalt); }
.tag-disponible { background: var(--ok); }
.is-sold .cm-img img { filter: grayscale(.85); opacity: .75; }
.cm-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cm-cat { margin: 0 0 4px; color: var(--red); font: 600 .98rem var(--display); letter-spacing: .02em; }
.cm-body h3 { font-size: 1.55rem; margin-bottom: .45em; }
.cm-body h3 a { text-decoration: none; }
.cm-body h3 a:hover { color: var(--red); }
.cm-specs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--steel); font-size: .93rem; }
.cm-specs i { color: #a5aab0; margin-right: 6px; }
.cm-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: italic 800 1.5rem/1 var(--display); color: var(--asphalt); }
.cm-more { font: 700 .98rem var(--display); color: var(--red); text-decoration: none; }
.cm-more:hover { color: var(--asphalt); }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; background: var(--white); border: 1px solid var(--line);
  font: 600 1rem var(--display); letter-spacing: .02em; text-decoration: none; color: var(--graphite);
}
.chip small { font: 500 .8rem var(--body); color: var(--steel); }
.chip:hover { border-color: var(--asphalt); }
.chip.is-active { background: var(--asphalt); color: var(--white); border-color: var(--asphalt); }
.chip.is-active small { color: #b9bcc1; }
.filters .sort { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: .95rem; }
.filters select, .filters input[type=search] {
  font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line); background: var(--white); color: var(--graphite); border-radius: 2px;
}
@media (max-width: 700px) { .filters .sort { margin-left: 0; width: 100%; flex-wrap: wrap; } .filters .sort > * { flex: 1 1 140px; min-width: 0; } }

/* ---------- État vide ---------- */
.empty {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--white); padding: clamp(28px, 4vw, 48px); border-left: 5px solid var(--red);
}
.empty img { width: 160px; opacity: .9; filter: invert(1) brightness(.3); }
.empty h3 { font-size: 1.9rem; font-style: italic; font-weight: 800; }
.empty p { color: var(--steel); max-width: 38rem; }
.empty .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) { .empty { grid-template-columns: 1fr; } .empty img { width: 110px; } }

/* ---------- Bandeau de page ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--white);
  padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 86px);
  background: var(--asphalt) var(--hero-bg) center / cover no-repeat;
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,25,27,.9), rgba(24,25,27,.55)); }
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero h1 { color: var(--white); margin-bottom: .2em; }
.page-hero .lead { color: #d4d6da; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: #b6b9be; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* ---------- Offres (Nos motos) ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: 28px; color: var(--white); text-decoration: none; background: var(--asphalt);
}
.offer > .offer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.offer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(24,25,27,.95) 10%, rgba(24,25,27,.15) 70%); }
.offer:hover > .offer-bg { transform: scale(1.05); }
.offer .offer-icon { width: 92px; margin-bottom: 18px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.offer h2 { color: var(--white); font-size: 2.4rem; margin-bottom: .1em; }
.offer p { color: #cfd2d6; margin: 0 0 18px; }
.offer .count { position: absolute; top: 22px; right: 22px; font: 700 .95rem var(--display); background: var(--red); padding: 6px 12px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } .offer { min-height: 280px; } }

/* ---------- Fiche moto ---------- */
.moto-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery-main { position: relative; background: #e7e9eb; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main .zoom { position: absolute; right: 14px; bottom: 14px; background: rgba(24,25,27,.75); color: #fff; border: 0; width: 42px; height: 42px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 0; background: none; aspect-ratio: 4 / 3; overflow: hidden; opacity: .6; transition: opacity .2s; outline-offset: 2px; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.is-active { outline: 3px solid var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.moto-panel { background: var(--white); padding: clamp(24px, 3vw, 36px); position: sticky; top: 130px; box-shadow: var(--shadow); }
.moto-panel h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.moto-panel .price { font-size: 2.3rem; display: block; margin: 8px 0 4px; }
.moto-panel .price-note { color: var(--steel); font-size: .95rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .98rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--steel); font-weight: 500; width: 46%; }
.spec-table td { font-weight: 600; color: var(--asphalt); }
.moto-panel .actions { display: grid; gap: 10px; }
.moto-panel .actions .btn { justify-content: center; }
.moto-desc { margin-top: 40px; max-width: 46rem; }
.moto-desc h2 { font-size: 2rem; }
@media (max-width: 960px) { .moto-layout { grid-template-columns: 1fr; } .moto-panel { position: static; } }

/* ---------- Galeries photo ---------- */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.album { position: relative; display: block; text-decoration: none; color: var(--white); background: var(--asphalt); overflow: hidden; aspect-ratio: 4 / 5; isolation: isolate; }
.album img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.album:hover img.cover { transform: scale(1.05); }
.album::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(24,25,27,.95) 0%, rgba(24,25,27,.1) 60%); }
.album .album-empty { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; background: repeating-linear-gradient(-60deg, #1f2023 0 18px, #222326 18px 36px); }
.album .album-empty img { width: 55%; opacity: .5; }
.album-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.album-info h2 { color: var(--white); font-size: 2.3rem; margin-bottom: .1em; }
.album-info p { margin: 0; color: #c7cace; font-size: .95rem; }
.album-info .meta { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font: 600 .95rem var(--display); color: var(--white); }
.album-info .meta i { color: var(--red); }
@media (max-width: 960px) { .albums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .albums { grid-template-columns: 1fr; } .album { aspect-ratio: 4 / 3; } }

.racing-intro { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.racing-intro .logo-badge { background: var(--asphalt); padding: 28px 36px; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.racing-intro .logo-badge img { width: 220px; }
.racing-intro p { font-size: 1.15rem; color: #4a4e54; max-width: 36rem; margin: 0; }
@media (max-width: 700px) { .racing-intro { grid-template-columns: 1fr; gap: 22px; } .racing-intro .logo-badge img { width: 170px; } }

.masonry { columns: 3 300px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; position: relative; background: #e2e4e7; }
.masonry button { padding: 0; border: 0; display: block; width: 100%; background: none; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: opacity .3s; }
.masonry button:hover img { opacity: .88; }
.masonry figcaption { position: absolute; left: 0; bottom: 0; padding: 8px 12px; background: rgba(24,25,27,.75); color: #fff; font-size: .9rem; }

/* ---------- Kiko Racing (accueil) ---------- */
.racing-band {
  position: relative; isolation: isolate; color: var(--white);
  background: var(--asphalt) var(--racing-bg) center / cover no-repeat;
  padding: clamp(80px, 11vw, 140px) 0;
}
.racing-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,25,27,.94) 30%, rgba(24,25,27,.6)); }
.racing-band .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.racing-band .r-logo { width: clamp(200px, 26vw, 320px); }
.racing-band h2 { color: var(--white); }
.racing-band p { color: #cfd2d6; max-width: 34rem; font-size: 1.1rem; }
.racing-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .racing-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Infos pratiques ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--white); box-shadow: var(--shadow); }
.visit-info { padding: clamp(28px, 4vw, 52px); }
.visit-info h2 { font-size: clamp(2rem, 3.5vw, 2.7rem); }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list i { color: var(--red); margin-top: 5px; }
.info-list a { text-decoration: none; font-weight: 600; color: var(--asphalt); }
.info-list a:hover { color: var(--red); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.hours th { font-weight: 500; color: var(--steel); }
.hours td { font-weight: 600; color: var(--asphalt); text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--red); }
.map { min-height: 380px; background: #dfe2e5; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map { min-height: 300px; } }

/* ---------- Formulaire de contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { background: var(--white); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--asphalt); }
.field label small { font-weight: 400; color: var(--steel); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--asphalt);
  padding: 13px 14px; border: 1px solid #cdd1d5; background: #fbfbfa; border-radius: 2px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--asphalt); background: var(--white); box-shadow: 0 0 0 3px rgba(174,28,28,.15); }
.field textarea { min-height: 160px; resize: vertical; }
.field .err { color: var(--red); font-size: .88rem; }
.field.has-err input, .field.has-err textarea { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-card .btn { margin-top: 22px; }
.form-note { font-size: .88rem; color: var(--steel); margin-top: 14px; }
.alert { padding: 16px 20px; margin-bottom: 22px; border-left: 4px solid; background: var(--white); }
.alert-ok { border-color: var(--ok); background: #eaf5ee; }
.alert-err { border-color: var(--red); background: var(--red-soft); }
.find-us { background: var(--asphalt); color: #d4d6da; padding: clamp(24px, 3vw, 36px); }
.find-us h2 { color: var(--white); font-size: 2rem; }
.find-us .street { aspect-ratio: 4 / 3; margin: 22px -4px 18px; position: relative; background: #2a2b2e; }
.find-us .street iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.find-us .info-list li { border-color: rgba(255,255,255,.1); }
.find-us .info-list a { color: var(--white); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Page garage : chiffres/valeurs ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; background: var(--asphalt); color: #cfd2d6; }
.value { padding: 34px 32px; border-right: 1px solid rgba(255,255,255,.08); }
.value:last-child { border-right: 0; }
.value i { color: var(--red); font-size: 1.5rem; margin-bottom: 14px; display: block; }
.value h3 { color: var(--white); font-size: 1.55rem; margin-bottom: .3em; }
.value p { margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } .value { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--red); color: var(--white); padding: clamp(40px, 6vw, 64px) 0; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn { --bg: var(--asphalt); }
.cta-band .btn:hover { --bg: var(--white); --fg: var(--asphalt); }

/* ---------- Mentions ---------- */
.prose-page { max-width: 46rem; }
.prose-page h2 { font-size: 1.9rem; margin-top: 1.6em; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative; isolation: isolate; color: #b8bcc1; font-size: .98rem;
  background: var(--asphalt) var(--footer-bg) center bottom / cover no-repeat;
  padding-top: clamp(56px, 7vw, 90px);
}
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(24,25,27,.86); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.site-footer h3 { color: var(--white); font-size: 1.35rem; font-style: italic; font-weight: 700; margin-bottom: .8em; }
.site-footer h3.mt { margin-top: 1.6em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.f-brand .logo-lg { height: 86px; margin-bottom: 18px; }
.f-brand .logo-text { font-size: 2.6rem; display: block; margin-bottom: 16px; }
.f-brand p { max-width: 22rem; margin-bottom: 22px; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.f-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.f-contact li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.f-contact i { color: var(--red); margin-top: 5px; }
.f-hours { margin: 0; display: grid; gap: 2px; }
.f-hours dt { color: var(--white); font-weight: 600; margin-top: 10px; }
.f-hours dt:first-child { margin-top: 0; }
.f-hours dd { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0; font-size: .9rem; }
.fb-in { display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: space-between; }
.creator { color: var(--white); font-weight: 600; border-bottom: 1px solid var(--red); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .fb-in { flex-direction: column; } }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,13,.96); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: #cfd2d6; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: var(--white); border: 0; width: 52px; height: 52px; font-size: 1.2rem; transition: background .2s; }
.lightbox button:hover { background: var(--red); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; color: #9a9ea4; font: 600 1rem var(--display); }
@media (max-width: 640px) { .lightbox { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Bouton retour en haut ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border: 0; background: var(--red); color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.to-top.show { opacity: 1; pointer-events: auto; }
