/* =========================================================
   BN + PERFORMANCE 2026 — feuille de style
   Noir / blanc / rouge — style automobile sportif
   ========================================================= */

:root {
  --red: #e10600;
  --red-dark: #a80400;
  --black: #0b0b0d;
  --ink: #16171a;
  --graphite: #23252a;
  --steel: #3a3d44;
  --grey: #8b9099;
  --light: #f4f4f5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .18);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-transform: uppercase; font-style: italic; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border: 2px solid transparent; border-radius: 4px;
  font: 700 .95rem/1 var(--font-display);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(225, 6, 0, .35); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { background: var(--light); color: var(--black); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(0,0,0,.25); }
.btn-ghost-light:hover { background: #fff; color: var(--black); }
.btn-sm { padding: .55rem 1rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- En-tête ---------- */
.topbar { background: var(--black); color: #cfd2d6; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--red); }
.topbar span + span::before { content: "•"; color: var(--red); margin: 0 .6rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.logo-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--red); color: #fff;
  font: 800 1.15rem/1 var(--font-display); font-style: italic;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
.logo-text { font: 800 1.05rem/1.05 var(--font-display); font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.logo-text small { display: block; color: var(--red); font-size: .72rem; letter-spacing: .25em; }
.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: .6rem .6rem; color: #e8e9eb; text-decoration: none; white-space: nowrap;
  font: 600 .84rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .2rem; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-home { display: none; }
.nav .nav-cta { margin-left: .5rem; }
.nav .nav-cta a { background: var(--red); color: #fff; border-radius: 3px; padding: .7rem 1rem; }
.nav .nav-cta a::after { display: none; }
.nav .nav-cta a:hover { background: var(--red-dark); }
.cart-link { position: relative; color: #fff; display: inline-flex; padding: .5rem; }
.cart-link svg { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font: 700 .72rem/20px var(--font); text-align: center;
}
.cart-count[hidden] { display: none; }
.header-tools { display: flex; align-items: center; gap: .4rem; }
.burger { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.burger svg { width: 30px; height: 30px; }

@media (max-width: 1300px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 75px 0 auto 0; background: var(--black);
    border-bottom: 3px solid var(--red);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; }
  .nav a { padding: 1rem .5rem; border-bottom: 1px solid #222; font-size: 1rem; }
  .nav a::after { display: none; }
  .nav .nav-cta { margin: 1rem 0 0; }
  .nav .nav-cta a { text-align: center; }
  .nav .nav-home { display: block; }
}
@media (max-width: 1020px) {
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #000;
}
.hero-banner { position: relative; max-width: 1400px; margin: 0 auto; }
.hero-banner img { display: block; width: 100%; height: auto; }
.hero-banner::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; padding: 1.6rem 0 3rem; max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-content .tagline { border-left: 0; padding-left: 0; }
.hero-content .hero-actions, .hero-content .hero-badges { justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .8rem/1 var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 38px; height: 3px; background: var(--red); }
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-style: italic; text-transform: uppercase; font-weight: 800;
  line-height: .98; margin-bottom: .35em;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero h1 .accent { color: var(--red); display: block; }
.hero .tagline {
  font: 600 clamp(1rem, 2vw, 1.25rem)/1.5 var(--font-display);
  letter-spacing: .04em; color: #e6e7e9; margin-bottom: 2rem;
  border-left: 4px solid var(--red); padding-left: 1rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; font-size: .9rem; color: #d5d7da; }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges svg { width: 18px; height: 18px; color: var(--red); }
@media (max-width: 700px) {
  .hero-content { padding-top: 1rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

.page-hero {
  background:
    linear-gradient(115deg, rgba(225,6,0,.0) 60%, rgba(225,6,0,.85) 60.2%, rgba(225,6,0,.85) 62%, transparent 62.2%),
    linear-gradient(135deg, #0b0b0d 0%, #1d1f24 100%);
  color: #fff; padding: 3.4rem 0 3rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-style: italic; text-transform: uppercase; margin: 0 0 .3rem; }
.page-hero p { color: #c9ccd1; margin: 0; max-width: 640px; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-dark { background: var(--black); color: #fff; }
.section-grey { background: var(--light); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.section-head p { color: var(--grey); max-width: 560px; margin: 0; }
.section-dark .section-head p { color: #b5b8be; }
.kicker { color: var(--red); font: 700 .8rem/1 var(--font-display); letter-spacing: .3em; text-transform: uppercase; display: block; margin-bottom: .7rem; }

.strip { background: var(--red); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; align-items: center; gap: .8rem; padding: 1.2rem 1rem; font: 700 .95rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.strip-item + .strip-item { border-left: 1px solid rgba(255,255,255,.25); }
.strip-item svg { width: 30px; height: 30px; flex: none; }
@media (max-width: 860px) {
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); }
}

/* ---------- Cartes prestations ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.07); border: 1px solid #ececee;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; background: var(--graphite); }
.card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; text-transform: uppercase; font-style: italic; }
.card-body h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--red); margin-top: .5rem; }
.card-body p { color: #50545b; margin: 0; }
.card-body .card-link { margin-top: auto; padding-top: .8rem; font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }

.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.service-row + .service-row { margin-top: clamp(3rem, 7vw, 5rem); }
.service-row:nth-child(even) .service-media { order: 2; }
.service-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; width: 100%; height: auto; }
.service-row h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.6rem; display: grid; gap: .5rem; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}
@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-media { order: 0; }
}

/* ---------- Boutique ---------- */
.shop-tools { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.shop-tools input, .shop-tools select { flex: 1 1 220px; }
.product .card-img { object-fit: contain; background: linear-gradient(135deg, #f6f6f7, #e8e9eb); padding: .6rem; }
.product-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--grey); flex-wrap: wrap; }
.product-price { font: 800 1.5rem/1 var(--font-display); color: var(--ink); margin: .6rem 0 .2rem; }
.badge {
  display: inline-block; padding: .25rem .6rem; border-radius: 30px;
  font: 700 .7rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .05em;
}
.badge-ok { background: #e6f6ea; color: #17702f; }
.badge-low { background: #fff3dc; color: #8a5a00; }
.badge-out { background: #fde8e7; color: var(--red-dark); }
.badge-dark { background: var(--ink); color: #fff; }
.product-actions { margin-top: auto; padding-top: 1rem; display: grid; gap: .5rem; }
.empty { text-align: center; color: var(--grey); padding: 3rem 1rem; border: 2px dashed #dcdde0; border-radius: var(--radius); }

.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th { text-align: left; font: 700 .78rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--grey); padding: .8rem; border-bottom: 2px solid var(--ink); }
.cart-table td { padding: 1rem .8rem; border-bottom: 1px solid #ececee; vertical-align: middle; }
.cart-item { display: flex; gap: .8rem; align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--light); border-radius: 6px; }
.qty { display: inline-flex; border: 1px solid #d5d6da; border-radius: 4px; overflow: hidden; }
.qty button { width: 32px; border: 0; background: var(--light); cursor: pointer; font-size: 1.1rem; }
.qty input { width: 44px; text-align: center; border: 0; padding: .35rem 0; font: inherit; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.summary { background: var(--light); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 100px; }
.summary-line { display: flex; justify-content: space-between; padding: .4rem 0; }
.summary-total { border-top: 2px solid var(--ink); margin-top: .6rem; padding-top: .8rem; font: 800 1.3rem/1 var(--font-display); }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid #ececee; }
  .cart-table td { border: 0; padding: .2rem 0; }
}

/* ---------- Véhicules d'occasion ---------- */
.vehicle-media { position: relative; display: block; overflow: hidden; }
.vehicle-media .card-img { transition: transform .35s ease; }
.vehicle-card:hover .vehicle-media .card-img { transform: scale(1.04); }
.vehicle-status { position: absolute; top: .8rem; left: .8rem; z-index: 1; }
.vehicle-status .badge { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.vehicle-photos {
  position: absolute; right: .8rem; bottom: .8rem; background: rgba(11,11,13,.8); color: #fff;
  font: 700 .72rem/1 var(--font); padding: .35rem .55rem; border-radius: 4px; letter-spacing: .03em;
}
.vehicle-card h3 a { color: inherit; text-decoration: none; }
.vehicle-card h3 a:hover { color: var(--red); }
.vehicle-version { color: var(--grey) !important; font-size: .9rem; }
.vehicle-specs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; padding: 0; }
.vehicle-specs li { background: var(--light); border-radius: 4px; padding: .25rem .55rem; font-size: .8rem; font-weight: 600; color: #50545b; }
.vehicle-bottom { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.vehicle-bottom .product-price { margin: 0; }
.vehicle-card.is-sold .card-img { filter: grayscale(.85); opacity: .75; }
.vehicles-count { color: var(--grey); font-weight: 600; margin: -1rem 0 1.5rem; }

.vehicle-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.vehicle-detail > aside { position: sticky; top: 100px; }
.vehicle-main { display: grid; gap: 2rem; }
@media (max-width: 960px) {
  .vehicle-detail { grid-template-columns: 1fr; }
  .vehicle-detail > aside { position: static; }
}
.back-link { display: inline-block; margin-bottom: 1.2rem; font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; }
.gallery { display: grid; gap: .7rem; }
.gallery-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--graphite); }
.gallery-main { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-count {
  position: absolute; right: .8rem; bottom: .8rem; background: rgba(11,11,13,.8); color: #fff;
  font: 700 .8rem/1 var(--font); padding: .4rem .6rem; border-radius: 4px;
}
.gallery-count:empty { display: none; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(11,11,13,.7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 4px; transition: background .2s;
}
.gallery-nav:hover { background: var(--red); }
.gallery-nav.prev { left: .8rem; }
.gallery-nav.next { right: .8rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--light); }
.gallery-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumb[aria-current="true"] { border-color: var(--red); }
.vehicle-info { display: grid; gap: 1rem; }
.vehicle-info h2.h3 { font-size: 1.25rem; margin: .8rem 0 0; }
.vehicle-price-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; border-left: 5px solid var(--red); }
.vehicle-price-box .muted { color: #b5b8be; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.vehicle-price { font: 800 2.1rem/1.1 var(--font-display); }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: 0; }
.spec-list dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); font-weight: 700; }
.spec-list dd { margin: 0; font-weight: 700; }
.spec-list > div { background: var(--light); padding: .6rem .9rem; border-radius: 6px; border-left: 3px solid var(--red); }
.checklist-cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0; }
.vehicle-desc { white-space: pre-line; color: #50545b; margin: 0; }
.hint-err { color: var(--red-dark); font-weight: 700; }
h2.h3 { font-size: 1.35rem; }

.steps { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding-left: 3.2rem; min-height: 2.4rem; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center; background: var(--red); color: #fff;
  font: 800 1rem/1 var(--font-display); clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
.steps strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: #fff; }

/* ---------- Avis ---------- */
.rating-summary { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.rating-big { font: 800 3.4rem/1 var(--font-display); }
.stars { color: var(--red); letter-spacing: .1em; font-size: 1.2rem; white-space: nowrap; }
.stars .off { color: #cfd1d5; }
.review { background: #fff; border-radius: var(--radius); padding: 1.4rem; border: 1px solid #ececee; border-top: 4px solid var(--red); }
.section-dark .review { background: var(--graphite); border-color: var(--steel); border-top-color: var(--red); color: #e6e7e9; }
.review header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.review strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.review time { color: var(--grey); font-size: .82rem; }
.review p { margin: 0; white-space: pre-line; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; color: #cfd1d5; cursor: pointer; line-height: 1; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--red); }
.star-input input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
label .req { color: var(--red); }
input, select, textarea {
  width: 100%; padding: .8rem .9rem;
  font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #d5d6da; border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .15); }
textarea { min-height: 130px; resize: vertical; }
input[type="file"] { padding: .6rem; background: var(--light); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .85rem; color: #50545b; }
.check input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--red); }
.hint { font-size: .8rem; color: var(--grey); margin-top: .3rem; }
.form-status { padding: .9rem 1rem; border-radius: 6px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #e6f6ea; color: #17702f; border-left: 4px solid #1f9d42; }
.form-status.err { background: #fde8e7; color: var(--red-dark); border-left: 4px solid var(--red); }
.panel { background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); border-top: 5px solid var(--red); }
.panel-dark { background: var(--ink); color: #fff; border-top-color: var(--red); }
.panel-dark p { color: #c9ccd1; }
.panel-dark input, .panel-dark select, .panel-dark textarea { background: var(--graphite); border-color: var(--steel); color: #fff; }
.panel-dark .check { color: #c9ccd1; }
.two-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .two-cols { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--light); padding: 1.2rem; border-radius: var(--radius); }
.contact-card .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h3 { margin: 0 0 .2rem; font-size: 1rem; text-transform: uppercase; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; text-decoration: none; }
.map-box {
  margin-top: 2rem; aspect-ratio: 16 / 7; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1d1f24, #0b0b0d); color: #fff;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map-box iframe { width: 100%; height: 100%; border: 0; }
.map-box p { color: #b5b8be; font-size: .85rem; max-width: 460px; margin: .8rem auto 1.2rem; }

/* ---------- CTA ---------- */
.cta-band {
  background:
    linear-gradient(120deg, var(--red) 0%, var(--red) 55%, var(--red-dark) 55.1%, var(--red-dark) 100%);
  color: #fff; padding: 3rem 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: .3rem 0 0; color: #ffe1e0; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--black); color: #b5b8be; padding: 3.5rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: #d5d7da; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #222; margin-top: 2.5rem; padding: 1.2rem 0 6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Boutons flottants ---------- */
.float-cta { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.float-cta .btn { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .float-cta { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--black); border-top: 3px solid var(--red);
  }
  .mobile-bar a, .mobile-bar button {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    padding: .55rem .2rem .65rem; color: #fff; text-decoration: none; background: none; border: 0;
    font: 700 .72rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
  }
  .mobile-bar .primary { background: var(--red); }
  .mobile-bar svg { width: 22px; height: 22px; }
}

/* ---------- Fenêtre modale ---------- */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--radius); width: min(94vw, 460px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); border-top: 5px solid var(--red);
}
dialog.modal::backdrop { background: rgba(5,5,7,.75); backdrop-filter: blur(3px); }
.modal-body { padding: 1.8rem; }
.modal-close { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--grey); }
.modal-close:hover { color: var(--red); }

/* ---------- Texte légal ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.4rem; }
.todo { background: #fff3dc; padding: 0 .3rem; border-radius: 3px; }

.notice { background: var(--light); border-left: 4px solid var(--red); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; margin-bottom: 1.5rem; }
.center { text-align: center; }
.justify-center { justify-content: center; }
.star-field { border: 0; padding: 0; margin: 0; }
.star-field legend { padding: 0; }
.prose.center { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--grey); }

/* =========================================================
   ADMINISTRATION
   ========================================================= */
.admin-body { background: #eef0f2; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(135deg, #0b0b0d, #23252a); }
.admin-login .panel { width: min(100%, 400px); }
.admin-top { background: var(--black); color: #fff; border-bottom: 3px solid var(--red); }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: .3rem; flex-wrap: wrap; padding: 1rem 0; }
.admin-tabs button {
  border: 0; background: #fff; padding: .7rem 1rem; border-radius: 6px; cursor: pointer;
  font: 700 .82rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink);
  display: inline-flex; gap: .4rem; align-items: center;
}
.admin-tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.admin-tabs .count { background: var(--ink); color: #fff; border-radius: 10px; padding: .1rem .45rem; font-size: .7rem; }
.admin-tabs .count:empty, .admin-tabs .count[data-zero] { display: none; }
.admin-section { background: #fff; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.admin-section h2 { font-size: 1.4rem; }
.admin-list { display: grid; gap: .8rem; }
.admin-item { border: 1px solid #e3e4e7; border-radius: 8px; padding: 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; }
.admin-item.is-new { border-left: 4px solid var(--red); }
.admin-item img.thumb { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--light); }
.admin-item h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.admin-item .meta { color: var(--grey); font-size: .82rem; }
.admin-item dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; margin: .5rem 0 0; font-size: .9rem; }
.admin-item dt { font-weight: 700; color: #50545b; }
.admin-item dd { margin: 0; white-space: pre-line; word-break: break-word; }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.admin-actions select { width: auto; padding: .4rem; font-size: .85rem; }
.btn-danger { background: #fff; color: var(--red-dark); border-color: #f2c2c0; }
.btn-danger:hover { background: var(--red); color: #fff; }
.admin-form { background: var(--light); border-radius: 8px; padding: 1.2rem; margin-bottom: 1.5rem; }
.admin-form[hidden] { display: none; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters select { width: auto; }
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 6px; box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
}
.toast[hidden] { display: none; }
.photo-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.photo-manager figure { margin: 0; background: #fff; border: 1px solid #e3e4e7; border-radius: 8px; padding: .4rem; display: grid; gap: .3rem; }
.photo-manager img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.photo-manager .check { font-size: .78rem; margin: 0; }
.photo-manager figure:has(input[name="remove_images"]:checked) img { opacity: .3; }
@media (max-width: 640px) {
  .admin-item { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
}
