/**
 * BonPlanAstuce - Styles principaux
 * Dark Theme inspiré de Dealabs
 */

/* ========================================
   Variables CSS
   ======================================== */
:root {
  --bg-body: #1a1a1a;
  --bg-header: #242424;
  --bg-card: #2d2d2d;
  --bg-card-hover: #363636;
  --bg-input: #3a3a3a;
  --bg-nav: #1a1a1a;

  --accent-primary: #ff7800;
  --accent-primary-hover: #ff8f2a;
  --accent-success: #4caf50;
  --accent-danger: #e74c3c;
  --accent-info: #2196f3;

  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;

  --border-color: #404040;
  --border-light: #2a2a2a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 50px;

  --transition: 0.2s ease;

  --container-width: 950px;
  --header-height: 56px;
  --nav-height: 52px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  padding: 24px 0 48px;
  min-height: calc(100vh - var(--header-height) - var(--nav-height) - 200px);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  box-shadow: 0 1px 0 var(--border-light);
}

.header-main {
  height: var(--header-height);
}

.header-main .container {
  height: 100%;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Search */
.search-form {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 44px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-input:hover {
  background: var(--bg-card-hover);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-card);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--bg-input);
}

/* ========================================
   Navigation Catégories
   ======================================== */
.nav-categories {
  height: var(--nav-height);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-light);
}

.nav-categories .container {
  position: relative;
  height: 100%;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 6px;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list.dragging {
  cursor: grabbing;
  user-select: none;
}

.nav-list.dragging .nav-link {
  pointer-events: none;
}

.nav-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.nav-link:hover svg {
  opacity: 1;
}

.nav-link.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.nav-link.active svg {
  opacity: 1;
}

/* Gradient fade sur les bords */
.nav-categories .container::before,
.nav-categories .container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 1;
}

.nav-categories .container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-nav), transparent);
}

.nav-categories .container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-nav), transparent);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-cta {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #e66800 100%);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(255, 120, 0, 0.25);
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--accent-primary-hover) 0%, #cc5c00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 120, 0, 0.35);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--accent-primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
}

/* ========================================
   Page Title
   ======================================== */
.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.page-title svg {
  color: var(--accent-primary);
}

/* Texte SEO intro */
.seo-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: -12px 0 24px 0;
  max-width: 700px;
}

.seo-intro strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========================================
   Deals Grid
   ======================================== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ========================================
   Deal Card
   ======================================== */
.deal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color);
}

.deal-card-link {
  display: block;
}

.deal-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-input);
}

.deal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deal-card:hover .deal-card-image img {
  transform: scale(1.05);
}

.deal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--accent-danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.deal-badge-lg {
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.deal-badge-free {
  background: var(--accent-success);
}

/* Filter Switch - Premium Design */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-bar-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-bar-label svg {
  opacity: 0.6;
}

.filter-switch {
  display: inline-flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 5px;
  gap: 4px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.filter-switch-btn {
  position: relative;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.filter-switch-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text-primary);
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.2s ease;
}

.filter-switch-btn:hover {
  color: var(--text-primary);
}

.filter-switch-btn:hover::before {
  opacity: 0.05;
}

.filter-switch-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.filter-switch-btn:hover svg {
  transform: scale(1.1);
}

.filter-switch-btn.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #e55a00 100%);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(255, 120, 0, 0.35),
    0 4px 16px rgba(255, 120, 0, 0.2);
  transform: translateY(-1px);
}

.filter-switch-btn.active::before {
  display: none;
}

.filter-switch-btn.active:hover {
  box-shadow:
    0 4px 12px rgba(255, 120, 0, 0.4),
    0 6px 20px rgba(255, 120, 0, 0.25);
}

.filter-switch-btn.active[data-filter="free"] {
  background: linear-gradient(135deg, var(--accent-success) 0%, #1a9956 100%);
  box-shadow:
    0 2px 8px rgba(34, 197, 94, 0.35),
    0 4px 16px rgba(34, 197, 94, 0.2);
}

.filter-switch-btn.active[data-filter="free"]:hover {
  box-shadow:
    0 4px 12px rgba(34, 197, 94, 0.4),
    0 6px 20px rgba(34, 197, 94, 0.25);
}

/* Counter badge */
.filter-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.1);
  margin-left: 2px;
}

.filter-switch-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

.deal-card.hidden {
  display: none !important;
}

/* Animation for filtering */
.deal-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.deals-grid.filtering .deal-card {
  opacity: 0;
  transform: scale(0.95);
}

.deals-grid.filtering .deal-card:not(.hidden) {
  opacity: 1;
  transform: scale(1);
}

.deal-card-content {
  padding: 16px;
}

.deal-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.deal-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.deal-merchant {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================
   Deal Detail Page
   ======================================== */
.deal-detail {
  max-width: 1000px;
}

/* Deal Header - Titre + Description au-dessus de l'image */
.deal-header {
  margin-bottom: 28px;
}

.deal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.deal-header-top .deal-category-link {
  margin-bottom: 0;
}

.deal-header-top .deal-meta {
  margin-bottom: 0;
}

.deal-title-xxl {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.deal-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Bloc Action Unifié (Prix + Promo + CTA) */
.deal-action-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-color);
}

/* ====== Deal Action Block - Version GRATUIT ====== */
.deal-action-block--free {
  background: linear-gradient(165deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Bannière Gratuit */
.free-celebration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(22, 163, 74, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-md);
}

.free-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  color: #4ade80;
}

.free-icon svg {
  width: 24px;
  height: 24px;
}

.free-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.5px;
}

/* CTA Button version gratuit */
.deal-action-block--free .btn-cta {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.deal-action-block--free .btn-cta:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.deal-action-block .deal-price-main {
  margin-bottom: 0;
}

.deal-action-block .deal-shipping {
  margin-top: -8px;
}

.deal-action-block .btn-cta {
  margin-top: 4px;
}

.deal-action-block .deal-merchant-info {
  margin: 0;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Promo Code Display */
.deal-promo-code {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 120, 0, 0.08), rgba(255, 120, 0, 0.15));
  border: 2px dashed var(--accent-primary);
  border-radius: var(--radius-md);
}

.promo-code-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-code-value {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 2px;
  background: none;
  padding: 0;
}

.promo-code-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.promo-code-copy:hover {
  background: var(--accent-primary);
  color: #fff;
}

.promo-code-copy.copied {
  background: var(--accent-success);
  color: #fff;
}

@media (max-width: 768px) {
  .deal-header {
    margin-bottom: 20px;
  }

  .deal-title-xxl {
    font-size: 1.4rem;
  }

  .deal-lead {
    font-size: 0.95rem;
  }

  .deal-promo-code {
    flex-wrap: wrap;
  }

  .promo-code-copy {
    margin-left: 0;
  }
}

.deal-detail-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

/* Colonne gauche : Image + Prix + CTA */
.deal-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Colonne droite : Description */
.deal-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.deal-description-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
}

.deal-description-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.deal-details-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
}

.deal-details-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.deal-gallery {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.deal-gallery-main {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-image-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: var(--bg-input);
}

.deal-gallery-thumbs {
  display: flex;
  gap: 8px;
}

.thumb {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

.thumb:hover,
.thumb.active {
  border-color: var(--accent-primary);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-info {
  display: flex;
  flex-direction: column;
}

.deal-category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: var(--transition);
}

.deal-category-link:hover {
  opacity: 0.8;
}

.deal-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.deal-meta svg {
  vertical-align: middle;
  margin-right: 4px;
}

.deal-price-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.price-current-lg {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.price-original-lg {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  padding: 4px 10px;
  background: var(--accent-success);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.deal-shipping {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.deal-merchant-info {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.deal-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title svg {
  color: var(--accent-primary);
}

.section-title-lg {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.deal-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.deal-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
}

.deal-details-list li::before {
  content: '•';
  color: var(--accent-primary);
  font-weight: bold;
}

.merchant-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-info);
  font-weight: 500;
  transition: var(--transition);
}

.merchant-link:hover {
  color: var(--accent-primary);
}

/* ========================================
   Similar Deals Carousel
   ======================================== */
.similar-deals {
  margin-top: 40px;
}

.similar-deals-carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.carousel-track.dragging .deal-card-link {
  pointer-events: none;
}

.deal-card-sm {
  flex: 0 0 200px;
  min-width: 200px;
}

.deal-card-sm .deal-card-image {
  aspect-ratio: 1;
}

.deal-card-sm .deal-card-title {
  font-size: 0.8125rem;
  -webkit-line-clamp: 2;
}

.deal-card-sm .price-current {
  font-size: 1rem;
}

.deal-card-sm .price-original {
  font-size: 0.75rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.carousel-btn-prev {
  left: -20px;
}

.carousel-btn-next {
  right: -20px;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination-link:hover {
  background: var(--accent-primary);
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 20px;
}

/* Empty state inline (dans une vue filtrée) */
.empty-state-inline {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  margin: 20px 0;
  border: 1px dashed var(--border-color);
}

.empty-state-inline svg {
  opacity: 0.4;
  margin-bottom: 16px;
}

.empty-state-inline h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.empty-state-inline p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========================================
   Error Page (404)
   ======================================== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-primary);
  opacity: 0.3;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-content > p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-actions {
  margin-bottom: 40px;
}

.error-suggestions {
  text-align: left;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.error-suggestions p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-suggestions ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-suggestions li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.error-suggestions li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* ========================================
   Static Pages (À propos, Mentions légales)
   ======================================== */
.static-page {
  max-width: 800px;
  margin: 0 auto;
}

.static-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.static-section {
  margin-bottom: 32px;
}

.static-section:last-child {
  margin-bottom: 0;
}

.static-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.static-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.static-section p:last-child {
  margin-bottom: 0;
}

.static-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.static-section li {
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.6;
}

.static-section li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.static-section strong {
  color: var(--text-primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */
/* === TABLET (< 900px) - Garde 2 colonnes mais plus compact === */
@media (max-width: 900px) {
  .deal-detail-grid {
    grid-template-columns: 320px 1fr;
    gap: 24px;
  }

  .deal-header {
    margin-bottom: 20px;
  }

  .deal-title-xxl {
    font-size: 1.5rem;
  }

  .deal-lead {
    font-size: 0.95rem;
  }

  .deal-description-block,
  .deal-details-block {
    padding: 18px;
  }
}

/* === MOBILE (< 700px) - Passe en 1 colonne === */
@media (max-width: 700px) {
  /* Réorganisation mobile : Action > Description > Photo */
  .deal-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Aplatir les conteneurs pour réordonner les enfants */
  .deal-left,
  .deal-right {
    display: contents;
  }

  /* Ordre mobile : 1=Action, 2=Description, 3=Gallery */
  .deal-action-block { order: 1; }
  .deal-description-block { order: 2; }
  .deal-details-block { order: 3; }
  .deal-gallery { order: 4; }

  .deal-header {
    margin-bottom: 16px;
  }

  .deal-header-top {
    gap: 10px;
    margin-bottom: 10px;
  }

  .deal-title-xxl {
    font-size: 1.35rem;
    margin-bottom: 0;
  }

  .deal-action-block {
    padding: 20px;
  }

  .deal-gallery-main {
    max-width: 400px;
    margin: 0 auto;
  }

  .deal-gallery-thumbs {
    justify-content: center;
  }

  /* Filter bar mobile */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-bar-label {
    display: none;
  }

  .filter-switch {
    width: 100%;
    justify-content: center;
  }

  .filter-switch-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* === PETIT MOBILE (< 480px) === */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .filter-switch-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .filter-switch-btn svg {
    width: 14px;
    height: 14px;
  }

  .filter-count {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .deal-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .deal-title-xxl {
    font-size: 1.2rem;
  }

  .deal-detail-grid {
    gap: 16px;
  }

  .deal-action-block {
    padding: 16px;
    gap: 12px;
  }

  .price-current-lg {
    font-size: 1.6rem;
  }

  .deal-gallery-main {
    max-width: 100%;
  }

  .thumb {
    width: 50px;
    height: 50px;
  }

  .deal-description-block,
  .deal-details-block {
    padding: 14px;
  }

  .deal-description-title,
  .deal-details-title {
    font-size: 0.95rem;
  }

  .deal-lead {
    font-size: 0.9rem;
  }

  .deal-details-list li {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 52px;
    --nav-height: 48px;
  }

  .header-content {
    gap: 12px;
  }

  .logo-text {
    display: none;
  }

  .search-form {
    max-width: none;
  }

  .header-actions .btn span {
    display: none;
  }

  .header-actions .btn {
    padding: 9px 12px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Mobile nav */
  .nav-categories {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: var(--bg-body);
    z-index: 99;
    display: none;
    overflow-y: auto;
  }

  .nav-categories.active {
    display: block;
  }

  .nav-categories .container {
    height: auto;
  }

  .nav-categories .container::before,
  .nav-categories .container::after {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 16px;
    gap: 8px;
  }

  .nav-item {
    height: auto;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    height: 48px;
    padding: 0 20px;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
  }

  .deals-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .deal-card-content {
    padding: 12px;
  }

  .deal-card-title {
    font-size: 0.8125rem;
  }

  .price-current {
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .deal-title {
    font-size: 1.25rem;
  }

  .price-current-lg {
    font-size: 1.5rem;
  }

  .carousel-btn {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .deals-grid {
    grid-template-columns: 1fr;
  }

  .deal-card-image {
    aspect-ratio: 16/10;
  }

  .deal-section {
    padding: 16px;
  }

  .btn-cta {
    padding: 14px 20px;
  }
}

/* ========================================
   Submit Page (Guest Deal Submission)
   ======================================== */
.submit-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.submit-header {
  text-align: center;
  margin-bottom: 32px;
}

.submit-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.submit-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.submit-notice {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.submit-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-section {
  margin-bottom: 28px;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.submit-form .form-group {
  margin-bottom: 18px;
}

.submit-form .form-group:last-child {
  margin-bottom: 0;
}

.submit-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.submit-form .form-input,
.submit-form .form-select,
.submit-form .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.submit-form .form-input:focus,
.submit-form .form-select:focus,
.submit-form .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-body);
}

.submit-form .form-input::placeholder,
.submit-form .form-textarea::placeholder {
  color: var(--text-muted);
}

.submit-form .form-textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.submit-form .form-actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.submit-form .form-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Alert styles for submit page */
.submit-page .alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.submit-page .alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.submit-page .alert-success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.submit-page .alert-success svg {
  color: var(--accent-success);
}

.submit-page .alert-success strong {
  display: block;
  color: var(--accent-success);
  margin-bottom: 4px;
}

.submit-page .alert-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.submit-page .alert-error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.25);
  color: var(--accent-danger);
  font-weight: 500;
}

.submit-another {
  text-align: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .submit-form {
    padding: 20px;
  }

  .submit-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Upload Zone
   ======================================== */
.upload-zone {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent-primary);
  background: rgba(255, 107, 0, 0.05);
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-content {
  pointer-events: none;
}

.upload-content svg {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-zone:hover .upload-content svg,
.upload-zone.drag-over .upload-content svg {
  color: var(--accent-primary);
}

.upload-content p {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.upload-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Upload Preview */
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.upload-preview label {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.preview-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 90px;
}

.preview-item.preview-main .preview-img {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.3);
}

.preview-img {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 4px;
  text-align: center;
}

.preview-actions {
  display: flex;
  gap: 4px;
}

.preview-btn {
  flex: 1;
  padding: 4px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.preview-btn-main {
  background: var(--bg-input);
  color: var(--text-secondary);
}

.preview-btn-main:hover {
  background: var(--accent-primary);
  color: #fff;
}

.preview-item.preview-main .preview-btn-main {
  background: var(--accent-primary);
  color: #fff;
  pointer-events: none;
}

.preview-btn-remove {
  background: var(--bg-input);
  color: var(--text-muted);
}

.preview-btn-remove:hover {
  background: var(--accent-danger);
  color: #fff;
}

/* ========================================
   Deal Type Selector
   ======================================== */
.deal-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.deal-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.deal-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.deal-type-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.deal-type-option input:checked + .deal-type-card {
  border-color: var(--accent-primary);
  background: rgba(255, 120, 0, 0.1);
}

.deal-type-option input:checked + .deal-type-card svg {
  color: var(--accent-primary);
}

.deal-type-card svg {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.deal-type-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.deal-type-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Version compacte pour l'admin */
.deal-type-selector-compact {
  gap: 8px;
}

.deal-type-selector-compact .deal-type-card {
  padding: 12px 16px;
  flex-direction: row;
  gap: 0;
}

.deal-type-selector-compact .deal-type-title {
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .deal-type-selector {
    grid-template-columns: 1fr;
  }

  .deal-type-card {
    padding: 16px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .deal-type-card svg {
    width: 24px;
    height: 24px;
  }
}

/* ========================================
   Price Mode Selector
   ======================================== */
.price-mode-selector {
  display: flex;
  gap: 8px;
}

.price-mode-option {
  flex: 1;
  cursor: pointer;
}

.price-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-mode-option span {
  display: block;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.price-mode-option:hover span {
  border-color: var(--accent-primary);
}

.price-mode-option input:checked + span {
  border-color: var(--accent-primary);
  background: rgba(255, 120, 0, 0.1);
  color: var(--accent-primary);
}

/* Calculated Price Box */
#calculatedPrice {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  #calculatedPrice {
    margin-top: 16px;
  }
}

.calculated-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--accent-success);
  border-radius: var(--radius-sm);
  color: var(--accent-success);
}

.calculated-price-box strong {
  font-size: 1.2rem;
}

/* ========================================
   Promo Code Input
   ======================================== */
.promo-code-input {
  position: relative;
  display: flex;
  align-items: center;
}

.promo-code-input .form-input {
  padding-right: 40px;
  letter-spacing: 1px;
  font-weight: 600;
}

.promo-code-icon {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Existing Images Grid */
.existing-images {
  margin-top: 16px;
}

.existing-images > label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.existing-image {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
}

.existing-image.is-main {
  border-color: var(--accent-primary);
}

.existing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 4px;
  text-align: center;
}

/* ========================================
   Cookie Banner RGPD
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cookie-text svg {
  flex-shrink: 0;
  color: var(--accent-primary);
}

.cookie-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-text a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.cookie-btn-accept {
  background: var(--accent-primary);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--accent-primary-hover);
}

.cookie-btn-refuse {
  background: transparent;
  color: var(--text-muted);
}

.cookie-btn-refuse:hover {
  color: var(--text-primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cookie-modal-close:hover {
  color: var(--text-primary);
}

.cookie-modal-body {
  padding: 24px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cookie-option-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-input);
  border-radius: 26px;
  transition: 0.3s;
}

.cookie-toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--accent-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  background: #fff;
  transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

/* Responsive Cookie Banner */
@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-text {
    text-align: center;
    flex-direction: column;
  }

  .cookie-actions {
    justify-content: center;
  }

  .cookie-modal-content {
    margin: 10px;
  }
}

/* ========================================
   Boutons de Partage Social (Inline - dans bloc action)
   ======================================== */
.deal-share-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
}

.deal-share-inline-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.deal-share-inline-buttons {
  display: flex;
  gap: 8px;
}

.share-btn-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.share-btn-inline svg {
  flex-shrink: 0;
}

/* Facebook */
.share-btn-inline-facebook {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
}

.share-btn-inline-facebook:hover {
  background: #1877f2;
  color: #fff;
  transform: scale(1.1);
}

/* Twitter / X */
.share-btn-inline-twitter {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.share-btn-inline-twitter:hover {
  background: #000;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

/* WhatsApp */
.share-btn-inline-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.share-btn-inline-whatsapp:hover {
  background: #25d366;
  color: #fff;
  transform: scale(1.1);
}

/* Copier le lien */
.share-btn-inline-copy {
  background: rgba(255, 120, 0, 0.15);
  color: var(--accent-primary);
}

.share-btn-inline-copy:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.1);
}

.share-btn-inline-copy.copied {
  background: var(--accent-success);
  color: #fff;
}

/* Bloc action gratuit - boutons partage */
.deal-action-block--free .deal-share-inline {
  border-top-color: rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .deal-share-inline {
    gap: 10px;
  }

  .deal-share-inline-label {
    display: none;
  }

  .share-btn-inline {
    width: 42px;
    height: 42px;
  }
}

/* ========================================
   Éditeur Rich Text (Description)
   ======================================== */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  flex-wrap: wrap;
}

.editor-select {
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.editor-select:hover {
  border-color: var(--accent-primary);
}

.editor-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.editor-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.editor-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.editor-btn:active {
  background: var(--accent-primary);
  color: #fff;
}

.editor-btn.active {
  background: var(--accent-primary);
  color: #fff;
}

.editor-btn-html {
  gap: 6px;
  padding: 0 10px;
  width: auto;
}

.editor-btn-html span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.editor-btn:disabled {
  cursor: not-allowed;
}

.editor-separator {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 6px;
}

.form-editor {
  min-height: 150px;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  transition: border-color var(--transition);
}

.form-editor:focus {
  border-color: var(--accent-primary);
}

.form-editor-html {
  width: 100%;
  min-height: 150px;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.form-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

/* Styles du contenu dans l'éditeur */
.form-editor p {
  margin: 0 0 12px 0;
}

.form-editor p:last-child {
  margin-bottom: 0;
}

.form-editor ul,
.form-editor ol {
  margin: 0 0 12px 0;
  padding-left: 24px;
}

.form-editor li {
  margin-bottom: 4px;
}

.form-editor a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.form-editor strong,
.form-editor b {
  font-weight: 600;
}

/* Responsive Editor */
@media (max-width: 600px) {
  .editor-toolbar {
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 8px;
  }

  .editor-btn {
    width: 36px;
    height: 36px;
  }

  .editor-separator {
    display: none;
  }
}

/* ========================================
   Contenu HTML dans les descriptions (SEO)
   ======================================== */
.deal-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.deal-lead p {
  margin: 0 0 16px 0;
}

.deal-lead p:last-child {
  margin-bottom: 0;
}

.deal-lead strong,
.deal-lead b {
  color: var(--text-primary);
  font-weight: 600;
}

.deal-lead em,
.deal-lead i {
  font-style: italic;
}

.deal-lead u {
  text-decoration: underline;
}

.deal-lead ul,
.deal-lead ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.deal-lead ul {
  list-style: disc;
}

.deal-lead ol {
  list-style: decimal;
}

.deal-lead li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.deal-lead li:last-child {
  margin-bottom: 0;
}

.deal-lead a {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: color var(--transition);
}

.deal-lead a:hover {
  color: var(--accent-primary-hover);
}

.deal-lead h2,
.deal-lead h3,
.deal-lead h4 {
  color: var(--text-primary);
  margin: 24px 0 12px 0;
  font-weight: 600;
}

.deal-lead h2:first-child,
.deal-lead h3:first-child,
.deal-lead h4:first-child {
  margin-top: 0;
}

.deal-lead h2 {
  font-size: 18px;
}

.deal-lead h3 {
  font-size: 16px;
}

.deal-lead h4 {
  font-size: 15px;
}
