/* Flotte · cartes style Porsche HomeStage p-link-tile (france/) */

:root {
  --dz-black: #000;
  --dz-green: #1db954;
  --dz-tile-radius: 24px;
  --dz-tile-pad: clamp(12px, 1.25vw + 8px, 20px);
  --dz-font: "FerrariSans", "Porsche Next", "Arial Narrow", Arial, sans-serif;
}

@font-face {
  font-family: FerrariSans;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../ferrari-home/Ferrari-SansRegular.woff2@v=1") format("woff2"),
    url("../ferrari-home/Ferrari-SansRegular.woff@v=1") format("woff");
}

@font-face {
  font-family: FerrariSans;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../ferrari-home/Ferrari-SansMedium.woff2@v=1") format("woff2"),
    url("../ferrari-home/Ferrari-SansMedium.woff@v=1") format("woff");
}

html,
body,
.dz-flotte-page {
  margin: 0;
  background: #000 !important;
  color: #fff;
  font-family: var(--dz-font);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

.dz-header {
  z-index: 10000000 !important;
}

.dz-flotte-main {
  /* Large Forge header clearance + air for Filtres */
  padding: 7.25rem 0 3rem;
}

.dz-flotte-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

/* Toolbar */
.dz-flotte-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.dz-flotte-filter-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  background: transparent;
  padding: 0.35rem 0.15rem 0.45rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
}

.dz-flotte-filter-btn:hover,
.dz-flotte-filter-btn[aria-expanded="true"] {
  opacity: 0.7;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.dz-flotte-active {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Filter sheet */
.dz-flotte-panel[hidden] {
  display: none !important;
}

.dz-flotte-panel {
  position: fixed;
  inset: 0;
  z-index: 20000000;
  display: grid;
  place-items: end stretch;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (min-width: 720px) {
  .dz-flotte-panel {
    place-items: center;
    padding: 1.5rem;
  }
}

.dz-flotte-panel__inner {
  width: 100%;
  max-width: 480px;
  max-height: min(88dvh, 680px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  background: #000;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px 16px 0 0;
  padding: 1.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  color: #fff;
  box-sizing: border-box;
  pointer-events: auto;
}

@media (min-width: 720px) {
  .dz-flotte-panel__inner {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1.5rem 1.5rem 1.35rem;
  }
}

.dz-flotte-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dz-flotte-panel__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dz-flotte-panel__close {
  appearance: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.dz-flotte-panel__close:hover {
  color: #fff;
}

.dz-flotte-panel__group {
  margin: 0 0 1.5rem;
  padding: 0 0 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dz-flotte-panel__group:last-of-type {
  margin-bottom: 1.25rem;
}

.dz-flotte-panel__group h3 {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.dz-flotte-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
}

.dz-flotte-chips button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding: 0.35rem 0.7rem 0.35rem 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.dz-flotte-chips button:hover {
  color: rgba(255, 255, 255, 0.85);
}

.dz-flotte-chips button[aria-pressed="true"] {
  color: #fff;
  font-weight: 500;
}

.dz-flotte-panel__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.dz-flotte-panel__actions .btn,
.dz-flotte-reset,
.dz-flotte-apply {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dz-flotte-reset {
  order: 2;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.45rem 0;
}

.dz-flotte-reset:hover {
  color: #fff;
}

.dz-flotte-apply {
  order: 1;
  border: 0;
  background: #fff;
  color: #000;
  padding: 0.95rem 1.25rem;
}

.dz-flotte-apply:hover {
  opacity: 0.88;
}

html.dz-flotte-filters-open,
html.dz-flotte-filters-open body {
  overflow: hidden;
}

/* Grid · 1 / 2 / 3 like Porsche HomeStage tiles */
.dz-flotte-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.25vw + 12px, 36px);
}

@media (min-width: 760px) {
  .dz-flotte-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .dz-flotte-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Porsche p-link-tile replica */
.dz-p-tile {
  position: relative;
  display: grid;
  grid-template-rows: var(--dz-tile-pad) auto minmax(0, 1fr) auto var(--dz-tile-pad);
  grid-template-columns: var(--dz-tile-pad) minmax(0, 1fr) var(--dz-tile-pad);
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--dz-tile-radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: #111;
}

.dz-p-tile:focus-visible {
  outline: 2px solid var(--dz-green);
  outline-offset: 3px;
}

.dz-p-tile__media {
  grid-area: 1 / 1 / -1 / -1;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}

.dz-p-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (hover: hover) {
  .dz-p-tile:hover .dz-p-tile__media img {
    transform: scale3d(1.05, 1.05, 1.05);
  }
}

/* Bottom gradient (Porsche .root::after) */
.dz-p-tile::after {
  content: "";
  z-index: 2;
  grid-area: 4 / 1 / 6 / -1;
  margin-top: -2.5rem;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.8) 8%,
    rgba(0, 0, 0, 0.78) 22%,
    rgba(0, 0, 0, 0.6) 47%,
    rgba(0, 0, 0, 0.33) 65%,
    rgba(0, 0, 0, 0.05) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* Price · top right */
.dz-p-tile__price {
  grid-area: 2 / 2;
  z-index: 5;
  justify-self: end;
  align-self: start;
  margin: 0;
  text-align: right;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.dz-p-tile__price s {
  display: block;
  font-size: 0.78em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

/* Footer: title + arrow */
.dz-p-tile__footer {
  grid-area: 4 / 2;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: end;
  pointer-events: none;
}

.dz-p-tile__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.dz-p-tile__arrow {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dz-p-tile__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

@media (hover: hover) {
  .dz-p-tile:hover .dz-p-tile__arrow {
    background: rgba(255, 255, 255, 0.28);
  }
}

.dz-flotte-empty,
.dz-flotte-status {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.dz-oc .btn.hover-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.625rem 1.75rem;
  font-size: 0.875rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
