/* ============================================================
   MY RENAULT TN — Design System & Étape 1 Styles
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Renault Official Dark Theme */
  --renault-yellow: #EFDF00;
  --renault-yellow-glow: rgba(239, 223, 0, 0.3);
  --renault-yellow-soft: rgba(239, 223, 0, 0.15);
  --renault-black: #191C1F;
  --renault-black-light: #23272B;
  --renault-surface: #2A2D31;
  --renault-surface-light: #333639;
  --renault-border: rgba(255, 255, 255, 0.08);
  --white: #FFFFFF;
  --white-soft: rgba(255, 255, 255, 0.85);
  --white-muted: rgba(255, 255, 255, 0.5);
  --grey-bg: #1E2124;
  --grey-text: rgba(255, 255, 255, 0.6);
  --grey-icon: rgba(255, 255, 255, 0.4);
  --grey-dot: rgba(255, 255, 255, 0.2);
  --green-valid: #22C55E;
  --red-error: #EF4444;

  --font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-full: 999px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-btn: 0 4px 16px rgba(239, 223, 0, 0.25);
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--renault-black);
  color: var(--white);
  overflow: hidden;
  width: 100%;
  height: 100dvh;
  position: relative;
}

/* --- Screen System --- */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.screen--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 10;
}

.screen--exit {
  opacity: 0;
  transform: translateY(-30px);
  z-index: 5;
}

.screen--slide-left {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 5;
}

.screen--enter-right {
  transform: translateX(100%);
  opacity: 0;
  visibility: visible;
}

/* ============================================================
   SPLASHSCREEN
   ============================================================ */
.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: var(--renault-black);
  position: relative;
}

.splash__logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: splash-enter 0.8s ease-out forwards;
}

.splash__diamond {
  width: 90px;
  height: 105px;
  filter: drop-shadow(0 0 30px rgba(239, 223, 0, 0.4));
  animation: diamond-pulse 2s ease-in-out infinite;
}

.splash__title {
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: text-fade-in 0.6s ease-out 0.5s forwards;
}

.splash__loader {
  position: absolute;
  bottom: 80px;
  display: flex;
  gap: 8px;
}

.splash__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--renault-yellow);
  opacity: 0.3;
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.splash__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.splash__dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Splash Keyframes */
@keyframes splash-enter {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes text-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes diamond-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(239, 223, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(239, 223, 0, 0.6));
  }
}

@keyframes dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ============================================================
   ONBOARDING
   ============================================================ */
.onboarding {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--renault-black);
  position: relative;
  overflow: hidden;
}

/* Skip button */
.onboarding__skip {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 20;
  background: none;
  border: none;
  color: var(--grey-icon);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.onboarding__skip:hover {
  color: var(--grey-text);
}

.onboarding__skip--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Carousel */
.onboarding__carousel {
  flex: 1;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  padding-top: 60px;
}

.onboarding__track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform var(--transition-smooth);
  will-change: transform;
}

.onboarding__track--dragging {
  transition: none;
}

.onboarding__slide {
  width: calc(100% / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  gap: 32px;
  flex-shrink: 0;
}

.onboarding__image-wrapper {
  width: 260px;
  height: 260px;
  border-radius: 45px;
  overflow: hidden;
  background: var(--renault-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.onboarding__image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 1px solid var(--renault-border);
  pointer-events: none;
}

.onboarding__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding__content {
  text-align: center;
  max-width: 320px;
}

.onboarding__heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.onboarding__desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--white-muted);
  line-height: 1.6;
}

/* Footer: Dots + CTA */
.onboarding__footer {
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.onboarding__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.onboarding__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--grey-dot);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.onboarding__dot--active {
  width: 28px;
  background: var(--renault-yellow);
  box-shadow: 0 0 12px var(--renault-yellow-glow);
}

/* CTA Button */
.onboarding__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  height: 56px;
  background: var(--renault-yellow);
  color: var(--renault-black);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0);
}

.onboarding__cta:hover {
  box-shadow: 0 6px 24px rgba(239, 223, 0, 0.45);
  transform: translateY(-1px);
}

.onboarding__cta:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(239, 223, 0, 0.2);
}

.onboarding__cta--hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.onboarding__cta--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  animation: cta-appear 0.5s ease-out forwards;
}

@keyframes cta-appear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Onboarding secondary login link */
.onboarding__login-link {
  background: none;
  border: none;
  color: var(--white-muted);
  font-family: var(--font-family);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.onboarding__login-link strong {
  color: var(--renault-yellow);
  font-weight: 600;
}

.onboarding__login-link:hover {
  color: var(--white);
}

/* ============================================================
   AUTH SCREENS (Étape 2)
   ============================================================ */
.auth {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--renault-black);
  overflow-y: auto;
}

/* Header */
.auth__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--renault-black);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--renault-border);
}

.auth__back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.auth__back:hover {
  background: var(--renault-surface);
}

.auth__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
}

/* Body */
.auth__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 48px;
  gap: 20px;
}

.auth__logo {
  margin-bottom: 8px;
}

.auth__icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--renault-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--renault-border);
  margin-bottom: 4px;
}

.auth__icon-circle--large {
  width: 80px;
  height: 80px;
}

.auth__heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.3;
}

.auth__subtitle {
  font-size: 14px;
  color: var(--white-muted);
  text-align: center;
  line-height: 1.6;
}

.auth__email-display {
  color: var(--renault-yellow);
  font-weight: 600;
}

/* Form fields */
.auth__field {
  width: 100%;
  max-width: 360px;
}

.auth__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.auth__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--renault-surface);
  border: 1.5px solid var(--renault-border);
  border-radius: var(--radius-btn);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth__input-wrap:focus-within {
  border-color: var(--renault-yellow);
  box-shadow: 0 0 0 3px var(--renault-yellow-glow);
}

.auth__input-icon {
  position: absolute;
  left: 16px;
  color: var(--grey-icon);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.auth__input-wrap:focus-within .auth__input-icon {
  color: var(--renault-yellow);
}

.auth__input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--white);
}

.auth__input::placeholder {
  color: var(--grey-icon);
}

.auth__field-error {
  display: none;
  font-size: 12px;
  color: var(--red-error);
  margin-top: 6px;
  padding-left: 4px;
}

.auth__field--error .auth__input-wrap {
  border-color: var(--red-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.auth__field--error .auth__field-error {
  display: block;
}

.auth__field-counter {
  font-size: 12px;
  color: var(--grey-icon);
  text-align: right;
  margin-top: 6px;
  padding-right: 4px;
}

/* CTA Button */
.auth__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  height: 52px;
  background: var(--renault-yellow);
  color: var(--renault-black);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  margin-top: 4px;
}

.auth__cta:hover {
  box-shadow: 0 6px 24px rgba(239, 223, 0, 0.4);
  transform: translateY(-1px);
}

.auth__cta:active {
  transform: scale(0.97);
}

.auth__cta--disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

/* ── Floating Label Field ── */
.float-field {
  position: relative;
  width: 100%;
}

.float-field__input {
  width: 100%;
  padding: 20px 16px 8px 44px;
  background: var(--renault-surface);
  border: 1.5px solid var(--renault-border);
  border-radius: var(--radius-btn);
  color: var(--white);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 2;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.float-field__input:focus {
  border-color: var(--renault-yellow);
  box-shadow: 0 0 0 3px var(--renault-yellow-glow);
}

.float-field__label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-icon);
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.float-field__input:focus ~ .float-field__label,
.float-field__input:not(:placeholder-shown) ~ .float-field__label {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  color: var(--renault-yellow);
}

.float-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-icon);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.float-field__input:focus ~ .float-field__icon {
  color: var(--renault-yellow);
}

.float-field__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--grey-icon);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.float-field__toggle:hover {
  color: var(--white);
}

/* ── CGU Checkbox ── */
.auth__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.auth__checkbox input[type="checkbox"] {
  display: none;
}

.auth__checkbox-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--renault-border);
  border-radius: 5px;
  background: var(--renault-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-top: 1px;
}

.auth__checkbox input:checked ~ .auth__checkbox-mark {
  background: var(--renault-yellow);
  border-color: var(--renault-yellow);
}

.auth__checkbox input:checked ~ .auth__checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--renault-black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.auth__checkbox-text {
  font-size: 12px;
  color: var(--white-muted);
  line-height: 1.5;
}

.auth__checkbox-link {
  color: var(--renault-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── OTP 4-digit Group ── */
.otp-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.otp-digit {
  width: 56px;
  height: 64px;
  background: var(--renault-surface);
  border: 1.5px solid var(--renault-border);
  border-radius: var(--radius-btn);
  text-align: center;
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  caret-color: var(--renault-yellow);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.otp-digit:focus {
  border-color: var(--renault-yellow);
  box-shadow: 0 0 0 3px var(--renault-yellow-glow);
}

.otp-digit--filled {
  border-color: var(--renault-yellow);
  background: var(--renault-surface-light);
}

.otp-digit--success {
  border-color: var(--green-valid);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Resend button */
.auth__resend {
  background: none;
  border: none;
  color: var(--white-muted);
  font-family: var(--font-family);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block;
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
}

.auth__resend:hover {
  color: var(--renault-yellow);
}



/* Validation feedback */
.auth__validation {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 40px;
}

.auth__validation-spinner,
.auth__validation-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--white-soft);
}

.auth__validation-spinner--visible {
  display: flex;
}

.auth__validation-success--visible {
  display: flex;
  animation: success-pop 0.4s ease-out;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--renault-border);
  border-top-color: var(--renault-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes success-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Separator */
.auth__separator {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  margin: 4px 0;
}

.auth__separator-line {
  flex: 1;
  height: 1px;
  background: var(--renault-border);
}

.auth__separator-text {
  font-size: 13px;
  color: var(--grey-icon);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scan VIN button */
.auth__scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  height: 52px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--renault-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.auth__scan-btn:hover {
  border-color: var(--renault-yellow);
  background: var(--renault-yellow-soft);
}

.auth__scan-btn:active {
  transform: scale(0.97);
}

/* Password toggle */
.auth__toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--grey-icon);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.auth__toggle-pw:hover {
  color: var(--white);
}

.auth__input-wrap {
  position: relative;
}

/* Forgot password link */
.auth__forgot-link {
  background: none;
  border: none;
  color: var(--renault-yellow);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin: -4px 0 16px;
  text-align: right;
  display: block;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.auth__forgot-link:hover {
  text-decoration: underline;
}

/* Auth footer link (switch between login/signup) */
.auth__footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--white-muted);
  margin-top: 20px;
}

.auth__link-btn {
  background: none;
  border: none;
  color: var(--renault-yellow);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.auth__link-btn:hover {
  text-decoration: underline;
}

/* Onboarding secondary login link */
.onboarding__login-link {
  background: none;
  border: none;
  color: var(--white-muted);
  font-family: var(--font-family);
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.onboarding__login-link strong {
  color: var(--renault-yellow);
  font-weight: 600;
}

.onboarding__login-link:hover strong {
  text-decoration: underline;
}

/* ============================================================
   DASHBOARD (Guest Mode)
   ============================================================ */
.dashboard {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--renault-black);
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--renault-black);
  border-bottom: 1px solid var(--renault-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard__header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.dashboard__login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--renault-yellow);
  color: var(--renault-black);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.dashboard__login-btn:hover {
  box-shadow: 0 4px 16px var(--renault-yellow-glow);
  transform: translateY(-1px);
}

.dashboard__login-btn:active {
  transform: scale(0.96);
}

.dashboard__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 40px;
}

/* Welcome */
.dashboard__welcome {
  padding: 20px;
  background: var(--renault-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--renault-border);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.dashboard__welcome::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--renault-yellow), transparent);
}

.dashboard__welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.dashboard__welcome-desc {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.5;
}

/* Section title */
.dashboard__section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-icon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  margin-top: 4px;
}

/* Cards */
.dashboard__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.dashboard__card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--renault-surface-light);
  transform: translateX(2px);
}

.dashboard__card:active {
  transform: scale(0.98);
}

.dashboard__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--renault-yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard__card-content {
  flex: 1;
  min-width: 0;
}

.dashboard__card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.dashboard__card-desc {
  font-size: 12px;
  color: var(--white-muted);
}

.dashboard__card-arrow {
  color: var(--grey-icon);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.dashboard__card:hover .dashboard__card-arrow {
  transform: translateX(3px);
}

/* Locked cards */
.dashboard__card--locked {
  opacity: 0.55;
}

.dashboard__card--locked:hover {
  opacity: 0.75;
  border-color: var(--renault-yellow);
}

.dashboard__card--locked .dashboard__card-icon {
  background: rgba(255, 255, 255, 0.06);
}

.dashboard__card-lock {
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--renault-black);
  position: relative;
  overflow: hidden;
}

/* ── Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--renault-black);
  border-bottom: 1px solid var(--renault-border);
  z-index: 20;
  flex-shrink: 0;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-header__icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.app-header__icon-btn:hover {
  background: var(--renault-surface-light);
  border-color: rgba(255, 255, 255, 0.15);
}

.app-header__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--renault-yellow);
  color: var(--renault-black);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.app-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--renault-yellow);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--renault-black);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.app-header__avatar:hover {
  box-shadow: 0 0 0 3px var(--renault-yellow-glow);
}

/* ── Tab Content ── */
.app-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tab-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(8px);
}

.tab-page--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 1;
}

.tab-page__scroll {
  height: 100%;
  overflow-y: auto;
  padding: 16px 16px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-page__scroll::-webkit-scrollbar {
  display: none;
}

.tab-page__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60%;
  text-align: center;
  gap: 16px;
  padding: 32px;
}

.tab-page__placeholder-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-page__placeholder-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.tab-page__placeholder-desc {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.5;
  max-width: 280px;
}

/* ── Bottom Navigation ── */
.bottom-nav {
  display: flex;
  align-items: stretch;
  background: var(--renault-black);
  border-top: 1px solid var(--renault-border);
  flex-shrink: 0;
  z-index: 20;
  padding: 4px 0 env(safe-area-inset-bottom, 6px);
}

.bottom-nav__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-icon);
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bottom-nav__tab:hover {
  color: var(--white-muted);
}

.bottom-nav__tab--active {
  color: var(--renault-yellow);
}

.bottom-nav__tab--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--renault-yellow);
  border-radius: 0 0 2px 2px;
}

.bottom-nav__icon {
  flex-shrink: 0;
}

.bottom-nav__label {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── Drawer ── */
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.drawer-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--renault-black-light);
  border-left: 1px solid var(--renault-border);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer--open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid var(--renault-border);
}

.drawer__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer__user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-icon);
}

.drawer__user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.drawer__user-email {
  font-size: 12px;
  color: var(--white-muted);
}

.drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--renault-surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.drawer__close:hover {
  background: var(--renault-surface-light);
}

.drawer__body {
  padding: 12px 0;
  flex: 1;
}

.drawer__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: var(--white-soft);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.drawer__item:hover {
  background: var(--renault-surface);
}

.drawer__divider {
  height: 1px;
  background: var(--renault-border);
  margin: 8px 16px;
}

.drawer__section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-icon);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 20px 4px;
}

.drawer__item--small {
  font-size: 13px;
  padding: 12px 20px;
  color: var(--white-muted);
}

.drawer__footer {
  padding: 16px;
  border-top: 1px solid var(--renault-border);
  flex-shrink: 0;
}

.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--renault-yellow);
  color: var(--renault-black);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.drawer__cta:hover {
  box-shadow: 0 4px 16px var(--renault-yellow-glow);
  transform: translateY(-1px);
}

.drawer__cta:active {
  transform: scale(0.97);
}

.drawer__cta--logout {
  background: transparent;
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.drawer__cta--logout:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: none;
}

.drawer__version {
  text-align: center;
  font-size: 11px;
  color: var(--grey-icon);
  margin-top: 12px;
}

/* ── Notification Panel ── */
.notif-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.notif-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.notif-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: 75%;
  background: var(--renault-black-light);
  border-bottom: 1px solid var(--renault-border);
  border-radius: 0 0 20px 20px;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-panel--open {
  transform: translateY(0);
}

.notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--renault-border);
}

.notif-panel__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.notif-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--renault-surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
}

.notif-panel__body {
  overflow-y: auto;
  padding: 8px 0;
}

.notif-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  transition: background var(--transition-fast);
}

.notif-panel__item:hover {
  background: var(--renault-surface);
}

.notif-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  margin-top: 6px;
  flex-shrink: 0;
}

.notif-panel__item--unread .notif-panel__dot {
  background: var(--renault-yellow);
}

.notif-panel__content {
  flex: 1;
}

.notif-panel__item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.notif-panel__item-desc {
  font-size: 13px;
  color: var(--white-muted);
  line-height: 1.4;
}

.notif-panel__item-time {
  font-size: 11px;
  color: var(--grey-icon);
  margin-top: 4px;
}

/* ============================================================
   SUIVI DASHBOARD (Étape 4)
   ============================================================ */

/* Hero Card */
.suivi__hero {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 16px 0 12px 0 ;
}

.suivi__hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239,223,0,0.15) 0%, rgba(239,223,0,0.03) 100%);
  border: 1px solid rgba(239,223,0,0.15);
  border-radius: var(--radius-card);
}

.suivi__hero-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.suivi__hero-model {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suivi__hero-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.suivi__hero-vin {
  font-size: 11px;
  color: var(--grey-icon);
  letter-spacing: 1px;
  font-family: monospace, var(--font-family);
  margin-top: 2px;
}

.suivi__hero-badge {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--renault-black);
  background: var(--green-valid);
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* KM Gauge Card */
.suivi__gauge-card {
  margin: 0 0 16px 0;
  background: var(--renault-surface);
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1px solid var(--renault-border);
}

.suivi__gauge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.suivi__gauge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.suivi__gauge-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--renault-yellow);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.suivi__gauge-edit:hover {
  background: var(--renault-yellow-soft);
}

.suivi__gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.suivi__gauge-svg {
  width: 200px;
  height: 120px;
}

.suivi__gauge-value {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.suivi__gauge-km {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.suivi__gauge-unit {
  font-size: 13px;
  color: var(--grey-icon);
  margin-top: 2px;
}

.suivi__gauge-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 1px solid var(--renault-border);
  margin-top: 8px;
}

.suivi__gauge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suivi__gauge-info-label {
  font-size: 11px;
  color: var(--grey-icon);
}

.suivi__gauge-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

/* Quick Actions */
.suivi__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 16px 0;
}

.suivi__action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-btn);
  color: var(--white-soft);
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.suivi__action-btn:hover {
  background: var(--renault-surface-light);
  border-color: var(--renault-yellow);
}

.suivi__action-btn:active {
  transform: scale(0.95);
}

.suivi__action-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--renault-yellow-soft);
  border-radius: 10px;
  color: var(--renault-yellow);
}

/* Section Title */
.suivi__section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  padding: 0 16px;
  margin-bottom: 10px;
}

/* Alert Cards */
.suivi__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px 0;
  padding: 14px 16px;
  background: var(--renault-surface);
  border-radius: var(--radius-btn);
  border: 1px solid var(--renault-border);
  transition: transform var(--transition-fast);
}

.suivi__alert:active {
  transform: scale(0.98);
}

.suivi__alert-icon {
  flex-shrink: 0;
}

.suivi__alert--green .suivi__alert-icon { color: #22C55E; }
.suivi__alert--yellow .suivi__alert-icon { color: #FACC15; }
.suivi__alert--orange .suivi__alert-icon { color: #F97316; }
.suivi__alert--red .suivi__alert-icon { color: #EF4444; }

.suivi__alert-content {
  flex: 1;
  min-width: 0;
}

.suivi__alert-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.suivi__alert-desc {
  font-size: 12px;
  color: var(--grey-text);
  margin-top: 2px;
}

.suivi__alert-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.suivi__alert-badge--green { background: rgba(34,197,94,0.15); color: #22C55E; }
.suivi__alert-badge--yellow { background: rgba(250,204,21,0.15); color: #FACC15; }
.suivi__alert-badge--orange { background: rgba(249,115,22,0.15); color: #F97316; }
.suivi__alert-badge--red { background: rgba(239,68,68,0.15); color: #EF4444; }

/* KM Bottom Sheet */
.km-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.km-sheet-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.km-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--renault-black-light);
  border-radius: 20px 20px 0 0;
  padding: 16px 24px 40px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.km-sheet--open {
  transform: translateY(0);
}

.km-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--grey-icon);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.km-sheet__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.km-sheet__desc {
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ============================================================
   OCR CAMERA SIMULATOR
   ============================================================ */
.ocr-camera {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ocr-camera--active {
  display: flex;
}

.ocr-camera__viewfinder {
  position: relative;
  width: 90%;
  max-width: 340px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ocr-camera__corners {
  position: absolute;
  inset: 0;
}

.ocr-camera__corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.ocr-camera__corner--tl {
  top: 0; left: 0;
  border-top: 3px solid var(--renault-yellow);
  border-left: 3px solid var(--renault-yellow);
}

.ocr-camera__corner--tr {
  top: 0; right: 0;
  border-top: 3px solid var(--renault-yellow);
  border-right: 3px solid var(--renault-yellow);
}

.ocr-camera__corner--bl {
  bottom: 0; left: 0;
  border-bottom: 3px solid var(--renault-yellow);
  border-left: 3px solid var(--renault-yellow);
}

.ocr-camera__corner--br {
  bottom: 0; right: 0;
  border-bottom: 3px solid var(--renault-yellow);
  border-right: 3px solid var(--renault-yellow);
}

.ocr-camera__target {
  text-align: center;
  z-index: 1;
}

.ocr-camera__plate {
  font-family: monospace, var(--font-family);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: transparent;
  padding: 10px 20px;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  min-width: 240px;
  transition: all 0.3s ease;
}

.ocr-camera__plate--detected {
  color: var(--renault-yellow);
  border-color: var(--renault-yellow);
  background: rgba(239, 223, 0, 0.08);
  text-shadow: 0 0 12px rgba(239, 223, 0, 0.4);
}

.ocr-camera__scanline {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--renault-yellow) 30%, var(--renault-yellow) 70%, transparent 100%);
  box-shadow: 0 0 8px rgba(239, 223, 0, 0.5);
  top: 0;
  opacity: 0;
}

.ocr-camera__scanline--active {
  opacity: 1;
  animation: ocrScan 1.8s ease-in-out infinite;
}

@keyframes ocrScan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.ocr-camera__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--grey-text);
  font-size: 13px;
}

.ocr-camera__status-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.ocr-camera__status--detected {
  color: var(--green-valid);
}

.ocr-camera__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================================================
   CARTE GRISE — Info Display
   ============================================================ */
.auth__icon-circle--success {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.cg-info {
  margin: 8px 0 16px;
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  width: 100%;
}

.cg-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--renault-border);
}

.cg-info__row:last-child { border-bottom: none; }

.cg-info__label {
  font-size: 11px;
  color: var(--grey-icon);
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 12px;
}

.cg-info__value {
  font-size: 13px;
  color: var(--white-soft);
  font-weight: 600;
  text-align: right;
}

.cg-info__value--mono {
  font-family: monospace, var(--font-family);
  letter-spacing: 1.5px;
  color: var(--renault-yellow);
}

/* Transfer Toggle */
.cg-transfer {
  margin: 16px 0 12px;
  padding: 14px;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
}

.cg-transfer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cg-transfer__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.cg-transfer__desc {
  font-size: 11px;
  color: var(--grey-icon);
  margin-top: 6px;
  line-height: 1.4;
}

/* iOS-style toggle */
.cg-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.cg-toggle input { opacity: 0; width: 0; height: 0; }

.cg-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.cg-toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cg-toggle input:checked + .cg-toggle__slider {
  background: var(--renault-yellow);
}

.cg-toggle input:checked + .cg-toggle__slider::before {
  transform: translateX(20px);
}

/* Transfer Warning */
.cg-transfer-warning {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
}

.cg-transfer-warning__icon {
  flex-shrink: 0;
  color: #FB923C;
  padding-top: 2px;
}

.cg-transfer-warning__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cg-transfer-warning__text strong {
  font-size: 13px;
  color: #FB923C;
}

.cg-transfer-warning__text span {
  font-size: 11px;
  color: var(--grey-text);
  line-height: 1.4;
}

/* Transfer CTA */
.auth__cta--transfer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FB923C;
  color: #000;
}

/* Re-scan / Cancel actions */
.cg-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.cg-actions__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-text);
  background: transparent;
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cg-actions__btn:active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.05);
}

/* ============================================================
   COFFRE-FORT & EXPENSES
   ============================================================ */
.coffre__header {
  padding: 10px 0 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
 
}

.coffre__total-label {
  font-size: 13px;
  color: var(--grey-text);
  display: block;
}

.coffre__total-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin: 4px 0;
}

.coffre__total-amount small {
  font-size: 16px;
  font-weight: 500;
  color: var(--renault-yellow);
}

.coffre__total-period {
  font-size: 11px;
  color: var(--grey-icon);
}

.coffre__scan-cta {
  background: var(--renault-yellow);
  color: var(--renault-black);
  border: none;
  border-radius: 40px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(239, 223, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.coffre__scan-cta:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(239, 223, 0, 0.2);
}

/* Chart */
.coffre__chart-card {
  margin: 0 0 24px;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  padding: 16px;
}

.coffre__chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-soft);
  margin-bottom: 20px;
}

.coffre__chart-container {
  height: 140px;
  position: relative;
}

.coffre__chart-svg {
  width: 100%;
  height: 100px;
  overflow: visible;
}

.coffre__chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 5px;
}

.coffre__chart-labels span {
  font-size: 10px;
  color: var(--grey-icon);
}

/* Doc List */
.coffre__list-header {
  padding: 0 0 12px 0;
}

.coffre__list-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}


.coffre__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
}

.coffre__item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coffre__item-icon--blue { background: rgba(59, 130, 246, 0.1); color: #60A5FA; }
.coffre__item-icon--orange { background: rgba(249, 115, 22, 0.1); color: #FB923C; }
.coffre__item-icon--green { background: rgba(34, 197, 94, 0.1); color: #4ADE80; }

.coffre__item-info {
  flex: 1;
}

.coffre__item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.coffre__item-meta {
  font-size: 11px;
  color: var(--grey-icon);
  margin-top: 2px;
}

.coffre__item-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--white-soft);
}

.coffre__item-amount small { font-size: 10px; color: var(--grey-icon); }

/* Scanner Doc Overrides */
.ocr-camera__viewfinder--doc {
  width: 85% !important;
  height: 60% !important;
  border-radius: 16px;
}

.ocr-camera__target--doc {
  border: 1px dashed rgba(239, 223, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ocr-camera__doc-hint {
  color: rgba(239, 223, 0, 0.6);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
.chart-path-anim {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ============================================================
   HOME PAGE REDESIGN (Étape 3.5)
   ============================================================ */

/* Alert / Advice Banner */
.home__alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 16px 0;
  padding: 16px;
  background: rgba(239, 223, 0, 0.1);
  border: 1px solid rgba(239, 223, 0, 0.2);
  border-radius: var(--radius-card);
}

.home__alert-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--renault-yellow);
  color: var(--renault-black);
  border-radius: var(--radius-btn);
}

.home__alert-text {
  font-size: 13px;
  color: var(--white-soft);
  line-height: 1.5;
}

.home__alert-text strong {
  color: var(--renault-yellow);
}

/* ============================================================
   MONITORING & GLOBAL ACTIVITY
   ============================================================ */
.monitoring__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 16px 0;
}

.monitoring__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.monitoring__add-btn {
  background: var(--renault-yellow-soft);
  color: var(--renault-yellow);
  border: 1px solid rgba(239, 223, 0, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.monitoring__empty {
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.monitoring__empty-icon {
  margin-bottom: 15px;
  color: var(--grey-icon);
}

.monitoring__empty-text {
  font-size: 14px;
  color: var(--grey-text);
  margin-bottom: 20px;
}

.monitoring__empty-btn {
  background: transparent;
  color: var(--renault-yellow);
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.monitoring__track-card {
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 24px;
}

.monitoring__track-info {
  margin-bottom: 20px;
}

.monitoring__track-vehicle {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.monitoring__track-status {
  font-size: 12px;
  color: var(--renault-yellow);
  margin-top: 4px;
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.stepper__item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

.stepper__dot {
  width: 20px;
  height: 20px;
  background: var(--renault-black);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.stepper__label {
  font-size: 10px;
  color: var(--grey-text);
  font-weight: 500;
  text-align: center;
}

.stepper__item--done .stepper__dot {
  background: var(--green-valid);
  border-color: var(--green-valid);
}

.stepper__item--done .stepper__label {
  color: var(--white-soft);
}

.stepper__item--active .stepper__dot {
  background: var(--renault-yellow);
  border-color: var(--renault-yellow);
  box-shadow: 0 0 12px var(--renault-yellow-glow);
}

.stepper__item--active .stepper__label {
  color: var(--renault-yellow);
  font-weight: 700;
}

/* Full content scroll in details screen overrides */
#screen-vehicle-details .tab-page__scroll {
  overflow-y: auto;
  scrollbar-width: none;
}
#screen-vehicle-details .tab-page__scroll::-webkit-scrollbar { display: none; }

/* Home Redesign Header Fix */
.home__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.home__section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.home__link-btn {
  background: none;
  border: none;
  color: var(--renault-yellow);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px;
}

/* Vehicle Card — Premium Photo-based */
.home__vehicles-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home__vehicles-scroll::-webkit-scrollbar { display: none; }

.home__vcard {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.home__vcard-photo {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1d21 0%, #232730 100%);
}

.home__vcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home__vcard-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--renault-black);
  background: var(--green-valid);
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.home__vcard-body {
  padding: 14px 16px;
}

.home__vcard-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.home__vcard-plate {
  font-size: 12px;
  color: var(--grey-icon);
  font-family: monospace, var(--font-family);
  letter-spacing: 1px;
  margin-top: 2px;
}

.home__vcard-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--renault-border);
}

.home__vcard-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--grey-text);
}

.home__vcard-stat svg {
  color: var(--renault-yellow);
  flex-shrink: 0;
}

/* Vehicle Reminder Badges */
.home__vcard-reminder {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 8px;
  line-height: 1.3;
}

.home__vcard-reminder strong {
  font-weight: 700;
}

.home__vcard-reminder svg {
  flex-shrink: 0;
}

.home__vcard-reminder--rdv {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
}

.home__vcard-reminder--entretien {
  background: rgba(249, 115, 22, 0.12);
  color: #FB923C;
  border: 1px solid rgba(249, 115, 22, 0.2);
  cursor: pointer;
}

.home__vcard-reminder--waiting {
  background: rgba(234, 179, 8, 0.12);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.home__vcard-reminder-arrow {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Inactive vehicle card */
.home__vcard--inactive {
  opacity: 0.5;
  border-color: rgba(234, 179, 8, 0.3);
}

.home__vcard-badge--pending {
  background: #FACC15 !important;
  color: var(--renault-black) !important;
}

/* Alert color variants */
.home__alert--green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}
.home__alert--green .home__alert-icon {
  background: #22C55E;
}
.home__alert--green .home__alert-text strong {
  color: #22C55E;
}

.home__alert--red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}
.home__alert--red .home__alert-icon {
  background: #EF4444;
}
.home__alert--red .home__alert-text strong {
  color: #EF4444;
}


/* ============================================================
   INFO SHEETS (RDV / Entretien)
   ============================================================ */
.info-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.info-sheet-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.info-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--renault-surface);
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 40px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 75%;
  overflow-y: auto;
  scrollbar-width: none;
}
.info-sheet::-webkit-scrollbar { display: none; }

.info-sheet--open {
  transform: translateY(0);
}

.info-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--grey-icon);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.info-sheet__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.info-sheet__section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-sheet__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--renault-border);
}

.info-sheet__row:last-child {
  border-bottom: none;
}

.info-sheet__label {
  font-size: 12px;
  color: var(--grey-icon);
  font-weight: 500;
}

.info-sheet__value {
  font-size: 13px;
  color: var(--white-soft);
  font-weight: 600;
  text-align: right;
}

.info-sheet__subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin: 16px 0 10px;
}

.info-sheet__ops {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-sheet__op {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 10px;
  font-size: 13px;
  color: var(--white-soft);
}

.info-sheet__op svg {
  flex-shrink: 0;
}

.info-sheet__op--warn {
  background: rgba(249, 115, 22, 0.1);
}

.info-sheet__op-detail {
  display: flex;
  flex-direction: column;
}

.info-sheet__op-detail span {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-soft);
}

.info-sheet__op-detail small {
  font-size: 11px;
  color: var(--grey-icon);
  margin-top: 2px;
}

.info-sheet__close {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px 0;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--renault-border);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.info-sheet__close:active {
  transform: scale(0.97);
}


/* Add Vehicle Card */
.home__vcard--add {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(239, 223, 0, 0.25);
  min-height: 200px;
  cursor: pointer;
}

.home__vcard--add:active {
  transform: scale(0.97);
  border-color: var(--renault-yellow);
}

.home__vcard-add-inner {
  text-align: center;
  padding: 24px;
}

.home__vcard-add-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--renault-yellow-soft);
  color: var(--renault-yellow);
  border: 2px dashed rgba(239, 223, 0, 0.3);
}

.home__vcard-add-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.home__vcard-add-sub {
  font-size: 11px;
  color: var(--grey-icon);
  margin-top: 4px;
}

/* Shop Horizontal Scroll */
.home__shop-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home__shop-scroll::-webkit-scrollbar { display: none; }

/* Product Cards */
.home__product-card {
  flex: 0 0 42%;
  scroll-snap-align: start;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.home__product-card:active {
  transform: scale(0.97);
}

.home__product-img {
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1d21 0%, #232730 100%);
}

.home__product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home__product-info {
  padding: 10px 12px;
}

.home__product-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home__product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--renault-yellow);
  margin-top: 4px;
}

.home__product-price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--grey-icon);
}

/* Car Showcase Cards */
.home__car-card {
  flex: 0 0 70%;
  scroll-snap-align: start;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.home__car-img {
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1d21 0%, #232730 100%);
}

.home__car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home__car-body {
  padding: 12px 14px;
}

.home__car-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.home__car-type {
  font-size: 11px;
  color: var(--grey-text);
  margin-top: 2px;
}

.home__car-cta {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 0;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: var(--renault-black);
  background: var(--renault-yellow);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.home__car-cta:active {
  transform: scale(0.97);
}

/* News Teaser (Vertical stack) */
.home__news-teaser {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home__news-card {
  display: flex;
  gap: 12px;
  background: var(--renault-surface);
  border-radius: var(--radius-card);
  padding: 12px;
  border: 1px solid var(--renault-border);
  overflow: hidden;
}

.home__news-img {
  width: 90px;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1d21 0%, #232730 100%);
  border-radius: 10px;
  overflow: hidden;
}

.home__news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home__news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home__news-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--renault-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.home__news-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white-soft);
}

.home__news-date {
  font-size: 10px;
  color: var(--grey-icon);
  margin-top: 6px;
}

/* ============================================================
   BOUTIQUE (Shop)
   ============================================================ */
.shop__header {
  padding: 20px 16px;
  background: var(--renault-surface);
  border-bottom: 1px solid var(--renault-border);
}

.shop__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.shop__search {
  position: relative;
  width: 100%;
}

.shop__search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--renault-black);
  border: 1px solid var(--renault-border);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-family);
  font-size: 14px;
}

.shop__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-icon);
}

.shop__categories {
  display: flex;
  gap: 10px;
  padding: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop__categories::-webkit-scrollbar { display: none; }

.shop__category {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-text);
  transition: all 0.3s ease;
}

.shop__category--active {
  background: var(--renault-yellow);
  color: var(--renault-black);
  border-color: var(--renault-yellow);
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 0 16px 0;
}

.shop__card {
  background: var(--renault-surface);
  border: 1px solid var(--renault-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shop__card-img {
  height: 120px;
  overflow: hidden;
  background: #000;
}

.shop__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop__card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop__card-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--renault-yellow);
  margin-bottom: 4px;
}

.shop__card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.shop__card-desc {
  font-size: 11px;
  color: var(--grey-icon);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop__card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop__card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.shop__card-price small {
  font-size: 10px;
  font-weight: 400;
  color: var(--grey-icon);
}

.shop__card-add {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--renault-yellow);
  color: var(--renault-black);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================================================
   ACTUALITÉS (News)
   ============================================================ */
.news__header {
  padding: 0 0 16px 0;
}

.news__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.news__filters {
  display: flex;
  gap: 8px;
}

.news__filter {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-text);
  background: transparent;
  border: 1px solid var(--renault-border);
  border-radius: 8px;
}

.news__filter--active {
  background: var(--renault-border);
  color: var(--white);
}

.news__spotlight {
  margin: 16px 0;
  background: var(--renault-surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--renault-border);
}

.news__spotlight-img {
  height: 180px;
  overflow: hidden;
}

.news__spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__spotlight-content {
  padding: 16px;
}

.news__tag {
  display: inline-block;
  padding: 4px 8px;
  background: var(--renault-yellow-soft);
  color: var(--renault-yellow);
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 10px;
}

.news__tag--promo { background: rgba(249, 115, 22, 0.1); color: #FB923C; }
.news__tag--new { background: rgba(34, 197, 94, 0.1); color: #22C55E; }

.news__spotlight-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.news__spotlight-desc {
  font-size: 13px;
  color: var(--grey-text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.news__spotlight-btn {
  padding: 8px 16px;
  background: var(--renault-yellow);
  color: var(--renault-black);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.news__list {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news__card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.news__card-img {
  width: 100px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.news__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__card-body {
  flex: 1;
}

.news__card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-soft);
  line-height: 1.4;
  margin-top: 4px;
}

.news__card-meta {
  font-size: 11px;
  color: var(--grey-icon);
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE — Desktop Preview Frame
   ============================================================ */
@media (min-width: 500px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0f11;
  }



  /* Phone frame: 9/19.5 aspect ratio, never exceeds 95vh, centered */
  .screen {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    height: 95vh;
    max-height: 844px;
    aspect-ratio: 9 / 19.5;
    width: auto;
    border-radius: 44px;
    overflow: hidden;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.08),
      0 20px 80px rgba(0, 0, 0, 0.5);
  }

  .screen--active {
    transform: translate(-50%, -50%) translateY(0);
  }

  .screen--exit {
    transform: translate(-50%, -50%) translateY(-30px);
  }

  .screen--slide-left {
    transform: translate(-50%, -50%) translateX(-100%);
  }

  .screen--enter-right {
    transform: translate(-50%, -50%) translateX(100%);
  }

  .splash,
  .onboarding,
  .auth,
  .app-shell {
    border-radius: 44px;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
