/* ==========================================================================
   AUTO GALVAO - COMPOSANTS OFFICIELS
   ========================================================================== */

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: var(--accent-red-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: var(--accent-red-glow-lg);
  color: #ffffff;
}

.btn-primary:hover svg.arrow-icon {
  transform: translateX(4px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(21, 28, 46, 0.7);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(21, 28, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 17px;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  background: var(--card-bg-elevated);
}

.badge svg {
  width: 14px;
  height: 14px;
}

.badge-red {
  background: var(--badge-red-bg);
  border-color: var(--badge-red-border);
  color: var(--badge-red-text);
}

.badge-green {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--green);
}

.badge-gold {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--gold);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--info-blue);
}

.badge-status {
  padding: 4px 10px;
  font-size: 12px;
}

/* --- CARTES & SURFACES --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all var(--transition-normal);
}

.card-interactive:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 24px rgba(239, 68, 68, 0.15);
}

/* Carte avec icône en carré arrondi */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* --- BARRE DE CHIFFRES (FROSTED GLASS) --- */
.stats-bar {
  background: rgba(21, 28, 46, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-value {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-value.highlight-green {
  color: var(--green);
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.stat-value.highlight-red {
  color: var(--accent-red);
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 840px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none !important;
  }
  .stats-bar {
    margin-top: -30px;
    padding: 24px 16px;
  }
}

/* --- BANDEAU DÉFILANT DE MARQUES (MARQUEE) --- */
.brand-marquee-container {
  overflow: hidden;
  padding: 24px 0;
  position: relative;
  background: rgba(16, 21, 36, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brand-marquee-track {
  display: flex;
  gap: 48px;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.brand-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.brand-pill:hover {
  color: #ffffff;
  border-color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}

/* --- NAVBAR FIXE --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.navbar-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
}

.navbar-logo-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.navbar-logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-red);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.nav-phone-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-phone-link svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  max-height: 14px;
  color: var(--accent-red);
  flex-shrink: 0;
}

/* Classes pour garantir une taille minimale et nette aux icônes */
.card-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
}

.card-title-icon svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  max-height: 18px;
}

.inline-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  min-width: 14px;
  flex-shrink: 0;
}

.inline-status-icon svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  max-height: 14px;
}

.pill-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
}

.pill-check-icon svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  max-height: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }
  .nav-phone-link {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 28px 24px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 19px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- FOOTER (4 COLONNES) --- */
.footer {
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 70px;
  padding-bottom: 40px;
  margin-top: auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-red);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- BOUTONS FLOTTANTS SUR MOBILE --- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  color: #ffffff;
}

.floating-btn:hover {
  transform: scale(1.08);
}

.floating-btn-phone {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: var(--accent-red-glow);
}

.floating-btn-whatsapp {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

/* --- FORMULAIRES --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  background: rgba(16, 21, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control::placeholder {
  color: var(--text-disabled);
}

.form-error {
  font-size: 12.5px;
  color: #f87171;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Honeypot field (hidden from real users) */
.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* Pill Selectors (Motifs, filtres...) */
.pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-option {
  cursor: pointer;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--card-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  user-select: none;
}

.pill-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.pill-option.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--accent-red);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

/* Squelette de chargement */
.skeleton {
  background: linear-gradient(90deg, #151c2e 25%, #1e2842 50%, #151c2e 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #151c2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: slide-in-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.toast-success {
  border-left: 4px solid var(--green);
}

.toast.toast-error {
  border-left: 4px solid var(--accent-red);
}

@keyframes slide-in-toast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
