:root {
  --color-navy: #1d2542;
  --color-navy-deep: #1d2542;
  --color-orange: #f14900;
  --color-orange-hover: #f14900;
  --color-white: #ffffff;
  --color-muted: #c8d4e0;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-navy) 40%);
  min-height: 100vh;
}

a {
  color: var(--color-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-white);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: 72px;
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__pcs {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  font-style: italic;
  line-height: 1;
}

.brand__pcs .letter-c {
  color: var(--color-orange);
}

.brand__sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.9;
}

.nav-main {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-main a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--color-orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-orange-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn--lg {
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(241, 73, 0, 0.38) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(241, 73, 0, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #121623 0%, var(--color-navy-deep) 38%, #141b2e 100%);
}

.hero__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 20%, transparent 70%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 2.5rem 3rem;
    align-items: stretch;
  }
}

.hero__copy {
  text-align: left;
  max-width: 38rem;
}

.hero__kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.hero__title-line {
  display: block;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.hero__title-accent {
  display: block;
  color: var(--color-orange);
  text-shadow: 0 0 40px rgba(241, 73, 0, 0.35);
}

.hero__lede {
  margin: 0 0 1.35rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 34rem;
}

.hero__values {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.hero__values li {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  padding-left: 1rem;
  border-left: 2px solid var(--color-orange);
  line-height: 1.2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hero__phone {
  margin: 1.35rem 0 0;
  font-size: 0.95rem;
}

.hero__phone a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}

.hero__phone a:hover {
  color: var(--color-orange);
  text-decoration: none;
}

.hero__phone-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.2rem;
}

.hero__panel {
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(155deg, rgba(241, 73, 0, 0.22) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(18, 22, 35, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
  align-self: stretch;
}

.hero__quote {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  height: 100%;
  display: flex;
  align-items: center;
}

.hero__quote p {
  margin: 0;
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-left: 3px solid var(--color-orange);
  padding-left: 1.1rem;
}

.cta-strip {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 2rem 1rem;
  margin: 2rem 0 0;
}

.cta-strip .wrap {
  text-align: center;
}

.cta-strip h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.cta-strip p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

.cta-strip a {
  color: var(--color-white);
  font-weight: 800;
  text-decoration: underline;
}

.section {
  padding: 3rem 0;
}

.section__title {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.5rem;
  border-left: 4px solid var(--color-orange);
  padding-left: 0.75rem;
}

.grid-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-vehicle {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s, border-color 0.15s;
}

.card-vehicle:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 112, 33, 0.45);
}

.card-vehicle a {
  color: inherit;
  text-decoration: none;
}

.card-vehicle a:hover {
  text-decoration: none;
}

.card-vehicle__img {
  aspect-ratio: 4 / 3;
  background: var(--color-navy-deep);
  object-fit: cover;
  width: 100%;
}

.card-vehicle__body {
  padding: 1rem 1.1rem 1.25rem;
}

.card-vehicle__title {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.card-vehicle__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.card-vehicle__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-orange);
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
}

.detail-hero {
  padding: 2rem 0 1rem;
}

.detail-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .detail-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-navy-deep);
}

.detail-image img {
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

.detail-panel {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-panel h1 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  font-weight: 800;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-orange);
  margin-bottom: 1rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.35rem;
  font-size: 0.95rem;
}

.spec-list span:first-child {
  color: var(--color-muted);
}

.spec-list span:last-child {
  color: var(--color-white);
  font-weight: 600;
}

.prose {
  color: var(--color-muted);
  white-space: pre-wrap;
}

/* Descriptions HTML (import AS24) : pas de pre-wrap hérité du bloc .prose */
.prose.vehicle-description {
  white-space: normal;
}

.prose.vehicle-description p {
  margin: 0.45rem 0;
}

.prose.vehicle-description ul,
.prose.vehicle-description ol {
  margin: 0.45rem 0;
  padding-left: 1.25rem;
}

.contact-block {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1rem;
}

.contact-block h3 {
  color: var(--color-white);
  margin-top: 0;
  font-size: 1.1rem;
}

.contact-block p {
  margin: 0.35rem 0;
}

.contact-block a {
  font-weight: 700;
  font-size: 1.15rem;
}

.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.site-footer a {
  color: var(--color-orange);
}

/* Admin */
.admin-body {
  background: var(--color-navy-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-top {
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.admin-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-top h1 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-white);
}

.admin-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-nav a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-main {
  flex: 1;
  padding: 2rem 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

table.data th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  font-weight: 700;
}

table.data td {
  color: var(--color-muted);
}

table.data tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge--ok {
  background: rgba(46, 160, 67, 0.25);
  color: #6ee7a8;
}

.badge--draft {
  background: rgba(243, 112, 33, 0.2);
  color: var(--color-orange);
}

.badge--danger {
  background: rgba(220, 53, 69, 0.25);
  color: #f8a0aa;
}

.form-card {
  max-width: 640px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="password"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  font-family: inherit;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row--check label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
}

.flash--error {
  background: rgba(220, 53, 69, 0.2);
  color: #f8a0aa;
}

.flash--success {
  background: rgba(46, 160, 67, 0.2);
  color: #6ee7a8;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn--small {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.btn--danger {
  background: #8b2942;
  color: #fff;
}

.btn--danger:hover {
  background: #a8324f;
}

@media (max-width: 720px) {
  .nav-main {
    display: none;
  }
}
