   /* === RESET DE BASE === */
   /* "btn-primary btn-block" */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html, .protect-vin-page {
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(135deg, #eef3ff, #e8f0ff);
  color: #111827;
  min-height: 100vh;
  line-height: 1.5;
}

/* === HEADER === */
.pv-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.pv-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.pv-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 1001;
}

.pv-logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
  font-weight: bold;
}

.pv-nav a {
  margin: 0 0.75rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.pv-nav a:hover {
  color: #111827;
}

/* Active nav state */
.pv-nav a.active,
.pv-mobile-nav a.active {
  color: #0c97fa;
  font-weight: 700;
  position: relative;
}

/* Smooth page transition helper */
#app {
  transition: opacity 300ms ease, transform 300ms ease;
}
.page-fade-out {
  opacity: 0;
  transform: translateY(8px);
}
.page-fade-in {
  opacity: 1;
  transform: translateY(0);
}

.pv-ctas button {
  margin-left: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-outline {
  background: white;
  border: 1px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background: #f0f6ff;
}

.btn-primary {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  border-radius: 9px;
  color: white;
  border: bold;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-block {
  width: 100%;
}

/* === BOUTON TOGGLE MOBILE === */
.pv-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.pv-toggle-line {
  width: 25px;
  height: 3px;
  background: #2563eb;
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.pv-mobile-toggle.active .pv-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.pv-mobile-toggle.active .pv-toggle-line:nth-child(2) {
  opacity: 0;
}

.pv-mobile-toggle.active .pv-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === MENU MOBILE DÉROULANT === */
.pv-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pv-mobile-menu.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pv-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.pv-mobile-nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.3s ease;
}

.pv-mobile-nav a:hover {
  color: #2563eb;
}

.pv-mobile-nav a:last-child {
  border-bottom: none;
}

.pv-mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pv-mobile-user-info {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.pv-mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* === STYLES D'AUTHENTIFICATION === */
.pv-auth-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pv-user-info {
  color: #666;
  font-size: 0.9rem;
}

.pv-admin-badge {
  color: #dc3545;
  margin-left: 0.5rem;
  font-weight: 600;
}

.pv-auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-logout {
  padding: 0.5rem 1rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #c82333;
}

.pv-login-section {
  position: relative;
}

.pv-login-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 200px;
}

.btn-admin-login, .btn-user-login {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.btn-admin-login {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: white;
  border-radius: 6px 6px 0 0;
}

.btn-user-login {
  border-radius: 0 0 6px 6px;
}

.btn-user-login:hover {
  background-color: #f8f9fa;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .pv-header {
    padding: 0.75rem 1rem;
  }

  .pv-mobile-toggle {
    display: flex;
  }

  .pv-nav, .pv-ctas {
    display: none;
  }

  .pv-mobile-menu.active {
    display: block;
  }

  .pv-auth-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .pv-user-info {
    text-align: center;
    padding: 0.5rem 0;
  }

  .pv-auth-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pv-auth-buttons button {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pv-header {
    padding: 0.5rem;
  }

  .pv-brand {
    font-size: 1.1rem;
  }

  .pv-logo-circle {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .pv-mobile-menu {
    padding: 1rem;
  }

  .pv-mobile-nav a {
    font-size: 0.95rem;
  }
}

/* === ANIMATIONS === */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pv-mobile-menu.active {
  animation: slideDown 0.3s ease-out;
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  .pv-mobile-menu,
  .pv-toggle-line {
    transition: none;
  }
  
  .pv-mobile-menu.active {
    animation: none;
  }
}

.pv-logo {
  width: 50px; /* Ajustez la taille selon vos besoins */
  height: auto; /* Conserve les proportions */
}

/*  */


/* === PROTECT VIN PAGE - VERSION AMÉLIORÉE === */
/* Conservation du design original en thème clair avec animations modernes */

/* === VARIABLES POUR LE THÈME CLAIR === */
:root {
  --primary-blue: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-cyan: #06b6d4;
  --accent-dark: #0891b2;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #eef3ff, #e8f0ff);
  
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 25px 60px rgba(37, 99, 235, 0.15);
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  --transition: all 0.3s ease;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === ANIMATIONS PERSONNALISÉES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

/* === RESET ET STYLES DE BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html, .protect-vin-page {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

/* Animation d'entrée principale */
.protect-vin-page {
  animation: fadeInUp 0.8s ease-out;
}

/* === HERO SECTION AVEC ANIMATIONS PROGRESSIVES  === */
.pv-hero {
  padding: 4rem 2rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.pv-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

/* Colonne gauche - Animations séquentielles */
.pv-hero-left {
  flex: 1;
  animation: fadeInLeft 0.8s ease-out 0.4s both;
  display: flex;
  justify-content: center;
}

.pv-hero-left-content {
  max-width: 600px;
  width: 100%;
}

.pv-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: #e0f2fe;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out 0.5s both;
  transition: var(--transition);
}

.pv-badge:hover {
  transform: translateY(-2px);
  background: #bae6fd;
}

.pv-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  animation: fadeInUp 0.8s ease-out 0.6s both;
  text-align: left;
}

.pv-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.7s both;
  text-align: left;
}

/* Liste des fonctionnalités avec animations en cascade */
.pv-features-pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
  justify-content: flex-start;
}

.pill {
  background: #f1f5f9;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-bounce);
  animation: slideInUp 0.5s ease-out var(--delay) both;
}

.pill:nth-child(1) { --delay: 0.9s; }
.pill:nth-child(2) { --delay: 1.0s; }
.pill:nth-child(3) { --delay: 1.1s; }

.pill:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Statistiques avec effets de survol */
.pv-stats {
  display: flex;
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out 1.2s both;
  justify-content: flex-start;
}

.stat {
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}

.stat:hover .stat-value {
  color: var(--primary-blue);
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === CARTE DE FORMULAIRE AVEC EFFETS MODERNES === */
.pv-hero-right {
  flex: 0.9;
  max-width: 420px;
  animation: fadeInRight 0.8s ease-out 0.5s both;
}

.pv-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.pv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  transform: scaleX(0);
  transition: var(--transition);
}

.pv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pv-card:hover::before {
  transform: scaleX(1);
}

.pv-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pv-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Formulaire avec effets améliorés */
.pv-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pv-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.pv-form input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  background: var(--bg-white);
}

.pv-form input:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.pv-form input:valid {
  border-color: #10b981;
}

.pv-form input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-block::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-block:hover::after {
  width: 300px;
  height: 300px;
}

.btn-block:active {
  transform: translateY(0);
}

.pv-card-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-blue);
  transition: var(--transition);
}

.pv-card-note:hover {
  transform: translateX(5px);
  background: #f3f4f6;
}

/* === EFFETS DE CHARGEMENT SUBTILS === */
.pv-form input:placeholder-shown {
  background: linear-gradient(90deg, #f8fafc, #f1f5f9, #f8fafc);
  background-size: 200px 100%;
  animation: shimmer 2s infinite;
}

/* === RESPONSIVE DESIGN AMÉLIORÉ === */
@media (max-width: 1100px) {
  .pv-hero-inner {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }
  
  .pv-hero-left, .pv-hero-right {
    max-width: 100%;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
  }
  
  .pv-hero-left-content {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .pv-hero-title {
    font-size: 2.2rem;
    text-align: center;
  }
  
  .pv-hero-sub {
    text-align: center;
    max-width: 600px;
  }
  
  .pv-features-pill-list {
    justify-content: center;
  }
  
  .pv-stats {
    justify-content: center;
  }
  
  .pv-hero-right {
    display: flex;
    justify-content: center;
  }
  
  .pv-card {
    max-width: 500px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pv-hero {
    padding: 2rem 1rem;
  }
  
  .pv-hero-title {
    font-size: 1.8rem;
  }
  
  .pv-hero-sub {
    font-size: 0.95rem;
  }
  
  .pv-features-pill-list {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .pv-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .stat {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pv-hero {
    padding: 1.5rem 0.5rem;
  }
  
  .pv-hero-title {
    font-size: 1.5rem;
  }
  
  .pv-card {
    padding: 1.5rem;
  }
  
  .pv-stats {
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === AMÉLIORATIONS DES INTERACTIONS === */
.pv-form input:focus + .pv-label {
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Effet de pulse sur le bouton principal au survol */
.btn-primary:hover {
  animation: pulseSubtle 1s ease-in-out;
}

/* Transition douce pour tous les éléments interactifs */
button, input, .pill, .pv-card, .pv-badge {
  transition: var(--transition);
}

/* === Modal / Popup styles === */
.pv-modal {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  animation: fadeInUp 0.25s ease-out;
}

.pv-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(37,99,235,0.12), 0 8px 24px rgba(255,0,128,0.08);
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid rgba(37,99,235,0.08);
  transform: translateY(0);
}

.pv-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}

.pv-modal-body {
  padding: 0.5rem 0.25rem;
}

.pv-modal-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #0b61d6;
  font-weight: 800;
}

/* Types */
.pv-modal-body.found .pv-modal-title {
  color: #059669; /* green */
}
.pv-modal-body.notfound .pv-modal-title {
  color: #ef4444; /* red */
}

/* Buttons inside modal */
.pv-modal .btn-outline {
  background: transparent;
  border: 1px solid #2563eb;
  color: #2563eb;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.pv-modal .btn-outline:hover {
  background: #eff6ff;
}

/* Small responsive tweaks */
@media (max-width: 520px) {
  .pv-modal-content {
    padding: 1rem;
  }
  .pv-modal-title {
    font-size: 1.05rem;
  }
}


 /* Styles de base pour le Footer */
       .pv-footer {
  margin-top: 4rem;
  padding: 1rem;
  text-align: center;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: #6b7280;
}

.pv-footer-nav {
  margin-top: 1rem;
}

.pv-footer-link {
  margin: 0 1rem;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pv-footer-link:hover {
  color: #1e40af;
}

/* Style pour le séparateur du menu mobile */
.mobile-menu-separator {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 10px 0;
  width: 100%;
}

/* Style pour les boutons de la modal */
.modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.modal-buttons button {
  min-width: 180px;
  padding: 12px 24px;
}

/* Responsive pour la modal */
@media (max-width: 768px) {
  .modal-buttons {
    flex-direction: column;
  }
  
  .modal-buttons button {
    width: 100%;
    min-width: unset;
  }
}

/* Animation de chargement du bouton */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

button:disabled::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Validation des champs en temps réel */
#vinForm input:valid {
  border-color: #4caf50 !important;
}

#vinForm input:invalid {
  border-color: #f44336 !important;
}

/* Styles pour les différents types de modals */
.pv-modal-body.found {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 5px solid #4caf50;
}

.pv-modal-body.not-found {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 5px solid #ff9800;
}

.pv-modal-body.error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-left: 5px solid #f44336;
}