/* ================================================================
   HALOX — UI Magnifique & Gamifiée

   ✨ Features:
   - Glassmorphism design
   - Fluid animations & micro-interactions
   - Complete dark mode
   - Confetti & particle effects
   - Responsive mobile-first
   ================================================================ */

/* ================================================================
   COLOR PALETTE & DESIGN TOKENS
   ================================================================ */
:root {
  /* Halox — Blanc & bleu marine */
  --navy: #0f2c52;
  --navy-2: #1b3e68;
  --green: #0f2c52;
  --green-light: #2563eb;
  --green-dark: #0f2c52;
  --orange: #0f2c52;
  --orange-bright: #1b3e68;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --neon: #7aa2ff;
  --neon-pink: #7aa2ff;

  /* Backgrounds & Surfaces */
  --page: #ffffff;
  --page-alt: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --surface-glass-border: rgba(255, 255, 255, 0.2);

  /* Text */
  --ink: #1a1a1a;
  --ink-soft: #5f6b73;
  --ink-muted: #8a9499;
  --ink-light: #9ca3af;

  /* Utilities */
  --ring: rgba(0, 0, 0, 0.08);
  --ring-light: rgba(0, 0, 0, 0.04);
  --wheel-bg: #0f1a28;

  /* Shadows */
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.15);

  /* Spacing & Radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-wheel: 3500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode désactivé — charte blanc & marine forcée */

/* ================================================================
   ANIMATIONS & KEYFRAMES
   ================================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 rgba(15, 44, 82, 0.4); }
  50% { box-shadow: 0 0 20px rgba(15, 44, 82, 0.8); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes confettiDrop {
  to {
    transform: translate(var(--x), 200px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes confettiSwing {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes typewriter {
  from {
    width: 0;
    visibility: hidden;
  }
  to {
    width: 100%;
    visibility: visible;
  }
}

@keyframes countUp {
  from { --count: 0; }
  to { --count: 100; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(400px) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
  }
}

/* ================================================================
   GLOBAL STYLES
   ================================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(28px, 6vw, 48px); }
h2 { font-size: clamp(22px, 5vw, 36px); }
h3 { font-size: clamp(18px, 4vw, 28px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  margin: 0;
  line-height: 1.6;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  -webkit-appearance: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.btn--primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 44, 82, 0.25);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 44, 82, 0.35);
  background: var(--navy-2);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn--primary.pulse {
  animation: pulse 1s ease-in-out infinite;
}

/* Orange Button */
.btn--orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 44, 82, 0.3);
}

.btn--orange:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 44, 82, 0.5);
}

/* Secondary Button */
.btn--secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--ring);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--ink-muted);
}

/* Ghost Button */
.btn--ghost {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(15, 44, 82, 0.1);
}

/* Icon Button */
.btn--icon {
  padding: 8px;
  border-radius: 50%;
  min-width: 40px;
  min-height: 40px;
}

/* ================================================================
   TOPBAR / HEADER
   ================================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--ring);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand__halo,
.brand__x {
  color: var(--navy);
}

.topbar .logo img,
.brand.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.topbar__city {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 13px;
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ring);
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--ring);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--ring);
}

/* ================================================================
   PROMO BAR
   ================================================================ */

.promo-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

.promo-bar strong {
  font-weight: 800;
  color: #7aa2ff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding: 12px 0 4px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

.trust-row span::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
  margin-top: 8px;
  animation: slideInUp 0.6s var(--transition);
}

.hero__inner {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px;
  }
}

.hero__text {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
  animation: slideInLeft 0.6s var(--transition) 0.1s backwards;
}

.hero__text h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin: 10px 0 12px;
}

.hero__text p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.5;
}

.hero__bullets {
  padding-left: 18px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.hero__bullets li {
  margin: 5px 0;
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(15, 44, 82, 0.12);
  color: var(--green-dark);
  border-radius: 4px;
}

/* Hero Wheel Container */
.hero__wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: slideInRight 0.6s var(--transition) 0.1s backwards;
}

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  background: var(--wheel-bg);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wheel-frame {
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.spin-button {
  margin-top: 12px;
  animation: slideInUp 0.6s var(--transition) 0.2s backwards;
}

.legal-disclaimer {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}

/* ================================================================
   DEAL CARDS & GRID
   ================================================================ */

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 100px;
  animation: fadeIn 0.4s var(--transition) 0.2s backwards;
}

.deals-section {
  margin-top: 24px;
}

.deals-section h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.category-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.chip:hover {
  background: var(--surface);
  border-color: var(--ink-muted);
}

.chip--active {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(15, 44, 82, 0.3);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  animation: slideInUp 0.6s var(--transition) 0.3s backwards;
}

@media (max-width: 640px) {
  .deals-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.deal-card {
  background: var(--surface);
  border: 2px solid var(--ring);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

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

.deal-card--selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 44, 82, 0.1), var(--shadow-lg);
  transform: scale(1.02);
}

.deal-card__image {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.deal-card__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-card__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.deal-card__badge {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 4px;
}

.deal-card__desc {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: auto;
  line-height: 1.4;
}

.deal-card__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  margin-top: 8px;
}

/* ================================================================
   FORMS
   ================================================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition);
}

.field input,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(15, 44, 82, 0.1);
}

.field input:disabled,
.field textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field.error input,
.field.error textarea {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.field.valid input,
.field.valid textarea {
  border-color: var(--green);
  background: rgba(15, 44, 82, 0.05);
}

.field-error {
  font-size: 12px;
  color: #ef4444;
  animation: slideInUp 0.3s var(--transition);
}

.field-success {
  font-size: 12px;
  color: var(--green);
  animation: slideInUp 0.3s var(--transition);
}

/* ================================================================
   MODALS & DIALOGS
   ================================================================ */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
  opacity: 0;
  animation: fadeIn 0.3s var(--transition) forwards;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s var(--transition) 0.1s backwards;
}

.modal__header {
  padding: 20px;
  border-bottom: 1px solid var(--ring);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-size: 20px;
  font-weight: 800;
}

.modal__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color var(--transition);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  color: var(--ink);
}

.modal__body {
  padding: 20px;
}

.modal__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--ring);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ================================================================
   PROGRESS INDICATOR
   ================================================================ */

.payment-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}

.step--active .step__number {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 44, 82, 0.3);
}

.step__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.step--active .step__label {
  color: var(--green);
}

.step__connector {
  position: absolute;
  height: 2px;
  background: var(--ring);
  flex: 1;
  margin: 0 8px;
}

.step:first-child .step__connector {
  display: none;
}

/* ================================================================
   GLASSMORPHISM UTILITIES
   ================================================================ */

.glassmorphism {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
}

.card-glass {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 16px;
}

/* ================================================================
   LOADER & SPINNER
   ================================================================ */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--ring);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.loader-text {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ================================================================
   ALERTS & TOAST
   ================================================================ */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  animation: slideInUp 0.3s var(--transition);
}

.alert--success {
  background: rgba(15, 44, 82, 0.1);
  border: 1px solid rgba(15, 44, 82, 0.3);
  color: var(--green-dark);
}

.alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.alert--warning {
  background: rgba(255, 230, 0, 0.1);
  border: 1px solid rgba(255, 230, 0, 0.3);
  color: #b8860b;
}

.alert--info {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--indigo);
}

/* ================================================================
   STICKY BOTTOM BAR
   ================================================================ */

.sticky-buy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--ring);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
  z-index: 20;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  animation: slideInUp 0.3s var(--transition);
}

@media (min-width: 768px) {
  .sticky-buy {
    display: none;
  }
}

.sticky-buy__content {
  font-size: 14px;
  font-weight: 600;
}

.sticky-buy__price {
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}

/* ================================================================
   COUPON DISPLAY
   ================================================================ */

.coupon-display {
  text-align: center;
  padding: 20px;
}

.coupon-percentage {
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 800;
  color: var(--indigo-light);
  line-height: 1;
  margin: 20px 0;
  animation: slideInDown 0.6s var(--transition) 0.2s backwards;
}

.coupon-code {
  font-family: 'Courier Prime', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--surface-2);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  word-break: break-all;
  cursor: pointer;
  transition: all var(--transition);
  animation: slideInUp 0.6s var(--transition) 0.3s backwards;
}

.coupon-code:hover {
  background: var(--ring);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.coupon-qr {
  width: 160px;
  height: 160px;
  margin: 20px auto;
  background: var(--surface-2);
  padding: 12px;
  border-radius: var(--radius);
  animation: slideInUp 0.6s var(--transition) 0.4s backwards;
}

.coupon-qr img {
  width: 100%;
  height: 100%;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  background: var(--navy);
  color: white;
  padding: 40px 16px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--neon);
}

.footer-section a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  .topbar {
    padding: 8px 12px;
  }

  .brand {
    font-size: 18px;
  }

  .hero__text {
    padding: 16px;
  }

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

  .deal-card__image {
    height: 100px;
    font-size: 32px;
  }

  .deal-card__name {
    font-size: 12px;
  }

  .deal-card__desc {
    font-size: 11px;
  }

  .modal {
    border-radius: var(--radius);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .hero__inner {
    gap: 12px;
  }

  .hero__text {
    padding: 12px;
  }

  .hero__bullets {
    font-size: 13px;
  }

  .app {
    padding: 12px 12px 80px;
  }

  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deal-card__image {
    height: 80px;
    font-size: 24px;
  }

  .modal {
    max-width: 90vw;
  }

  .modal__header {
    padding: 16px;
  }

  .modal__body {
    padding: 16px;
  }

  .sticky-buy {
    padding: 8px 12px;
  }

  .coupon-percentage {
    font-size: 48px;
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
  .topbar,
  .sticky-buy,
  .site-footer,
  .btn {
    display: none;
  }

  .coupon-display {
    background: white;
    padding: 20mm;
  }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .btn {
    border: 2px solid currentColor;
  }

  .ring {
    border-width: 2px;
  }
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--ink-muted);
}

.mt {
  margin-top: 16px;
}

.mb {
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ================================================================
   TUNNEL /:city — composants manquants (audit)
   ================================================================ */

.app-topbar-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: 8px;
}

.app-topbar-link:hover {
  color: var(--navy);
  background: var(--page-alt);
  text-decoration: none;
}

.btn--xl {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 999px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

.btn--nav-cta {
  border-radius: 999px;
  margin-left: auto;
}

.btn--pulse {
  animation: pulse 1s ease-in-out infinite;
}

/* Chips (filtres catégorie) */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

/* Section deals */
.partners {
  margin-top: 32px;
}

.deals-header {
  text-align: center;
  margin-bottom: 20px;
}

.deals-header__title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.deals-header__sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

/* Cartes deal (grille tunnel) */
.partner--selectable input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.deal-card {
  position: relative;
}

.deal-card__media {
  position: relative;
}

.deal-card__img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.deal-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(135deg, var(--page-alt), #e3ecf7);
}

.deal-card__img--resto {
  background: linear-gradient(135deg, #fdf1e7, #fbe3cf);
}

.deal-card__img--activite {
  background: linear-gradient(135deg, #e7f0fd, #d4e4fb);
}

.deal-card__img--artisan {
  background: linear-gradient(135deg, #f3e8fd, #e7d4fb);
}

.deal-card__img--commerce {
  background: linear-gradient(135deg, #e8fdf0, #d4fbe4);
}

.deal-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-light);
  margin-bottom: 2px;
}

.deal-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* Partenaire en pause : « Complet ce soir » */
.deal-card--paused {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.deal-card__badge--paused {
  background: #b91c1c;
  letter-spacing: 0.04em;
}

.deal-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  z-index: 2;
}

.deal-card--selected .deal-card__check {
  display: flex;
}

.deal-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 2px 0 4px;
  line-height: 1.3;
}

.deal-card__meta {
  font-size: 12px;
  color: var(--ink-muted);
  display: block;
}

.deal-card__footer {
  margin-top: auto;
  padding-top: 10px;
}

.deal-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.deal-card__price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}

.deal-card__save {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-light);
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* Hints & mentions légales */
.spin-hint {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

.legal-notice {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--page-alt);
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.legal-notice--alert {
  background: #fff7e6;
  border-color: #f0d9a8;
  color: #7a5200;
}

.legal-tiny {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.legal-tiny--left {
  text-align: left;
}

/* Sticky buy bar */
.sticky-buy__info {
  min-width: 0;
}

.sticky-buy__label {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sticky-buy__partner {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modales (dialog natif) */
dialog.modal {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: 440px;
  width: calc(100% - 32px);
}

dialog.modal::backdrop {
  background: rgba(15, 44, 82, 0.5);
}

dialog.modal[open] {
  animation: scaleIn 0.25s var(--transition);
}

.modal--lg {
  max-width: 520px;
}

.modal--polyfill {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  background: rgba(15, 44, 82, 0.5);
}

.modal__form {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 26px 22px 22px;
  max-height: 88vh;
  overflow-y: auto;
}

.modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
  padding-right: 32px;
}

.modal__sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--page-alt);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--ring);
  color: var(--navy);
}

.modal__err {
  color: #dc2626;
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 16px;
}

.modal__sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.modal__sep::before,
.modal__sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ring);
}

.claim__partner-card {
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* Modale coupon */
.coupon {
  text-align: center;
}

.coupon__big {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  margin: 14px 0;
  color: #fff;
}

.coupon__pct {
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.coupon__code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-block;
}

.coupon__partner {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 2px;
}

.coupon__valid {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.coupon__lottery {
  font-size: 13px;
  color: var(--green-light);
  font-weight: 600;
  margin: 0 0 10px;
}

.coupon-share-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

/* Footer tunnel */
.footer {
  text-align: center;
  padding: 32px 16px 90px;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer__legal {
  font-size: 12px;
  color: var(--ink-muted);
}

.footer__legal a {
  color: var(--green-light);
}
