/* site/css/tawla.css */
:root {
  --ds-fire-gradient: linear-gradient(135deg, #f59e0b 0%, #ff5a1f 50%, #e5450c 100%);
  --ds-glow-sm: 0 0 15px rgba(255, 90, 31, 0.3);
  --primary-glow: rgba(255, 107, 53, 0.4);
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --section-padding: 5rem 1.5rem;

  /* C13 : variables utilisées par tawla.css mais jamais définies */
  --color-primary: #FF5A1F;
  --color-accent: #F59E0B;
  --color-bg: var(--ds-bg);
  --bg-card: var(--ds-surface);
  --bg-dark: var(--ds-bg);
  --border-color: var(--ds-separator);
  --radius-lg: var(--ds-radius-lg);
  --radius-md: var(--ds-radius-md);
}

body {
  background-color: var(--color-bg);
  color-scheme: dark; /* from design-system.css */
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow); }
  100% { box-shadow: 0 0 20px var(--primary-glow); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:active { color: var(--text-primary); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text-primary); }
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:active,
.nav-links a.btn-primary:focus-visible { color: #1a0e06; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a.btn-primary:hover { color: #1a0e06; }
}


@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.nav-simple {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 1.5rem 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.15) 0%, transparent 60%);
  z-index: -1;
  filter: blur(50px);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--ds-fire-gradient);
  color: #1a0e06;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: var(--ds-glow-sm);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary:active { transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 90, 31, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 90, 31, 0.6); }
}


.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.btn-secondary:active { background: var(--glass-border); }
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover { background: var(--glass-border); }
}


/* Device Frames Montage */
.hero-montage {
  position: relative;
  height: 500px;
}

.device-frame {
  position: absolute;
  background: #111;
  border-radius: 20px;
  border: 4px solid #333;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-desktop {
  width: 480px;
  height: 300px;
  top: 50px;
  left: 0;
  z-index: 1;
}

.device-tablet {
  width: 260px;
  height: 180px;
  bottom: 50px;
  right: -20px;
  z-index: 2;
  border-width: 3px;
  border-radius: 12px;
}

.device-phone {
  width: 160px;
  height: 340px;
  top: 100px;
  right: 60px;
  z-index: 3;
  border-width: 3px;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-montage {
    height: 400px;
    transform: scale(0.8);
    transform-origin: center top;
  }
  .device-desktop { left: 50%; transform: translateX(-50%); }
  .device-tablet { right: 10%; }
  .device-phone { right: 25%; }
}

@media (max-width: 768px) {
  .hero-montage {
    height: 360px;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .device-desktop, .device-tablet {
    display: none;
  }
  .device-phone {
    position: relative;
    top: auto;
    right: auto;
    width: 160px;
    height: 340px;
  }
}

@media (max-width: 400px) { /* 360px perfect */
  .hero-buttons { flex-direction: column; }
}

/* Evidence Banner */
.evidence-banner {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 2rem 0;
}

.evidence-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 1.5rem;
}

.evidence-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.evidence-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  color: var(--color-primary);
}

.close-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Features */
.section {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:active { transform: translateY(-5px);
  border-color: var(--color-primary); }
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { transform: translateY(-5px);
  border-color: var(--color-primary); }
}


.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  fill: currentColor;
}

/* Demo Cards */
.demo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.demo-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, #222, #111);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
}
.demo-card:active { transform: scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
@media (hover: hover) and (pointer: fine) {
  .demo-card:hover { transform: scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
}


.demo-card-content {
  padding: 2rem;
}

.demo-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-primary);
  color: #0A0B0D; /* C1h (n° 20) : texte foncé sur l'orange (≥ 4,5:1 ; le blanc donnait 3,12:1) */
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  padding-top: 1rem;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card > .btn-primary, .pricing-card > .btn-outline, .pricing-card > .btn-secondary {
  margin-top: auto;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  transform: translateY(-12px);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.15);
}

@media (max-width: 768px) {
  .pricing-card.featured {
    transform: none;
  }
}

.price-creation {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
}

.pricing-card h3 {
  font-size: 15px;
  text-transform: none;
  font-weight: 700;
  color: var(--color-primary);
}

.price-monthly {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.price-monthly span {
  font-size: 44px;
  font-weight: 800;
  color: var(--ds-text, #fff);
  font-variant-numeric: tabular-nums;
}

.pricing-card.featured .price-monthly span, 
#panel-achat .pricing-card:nth-child(2) .price-monthly span {
  background: var(--ds-fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pricing-options ul li {
  gap: 1rem;
}

.pricing-options ul li strong {
  color: var(--text-secondary) !important;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.pricing-options ul li > span:first-child {
  min-width: 0;
}

.pricing-options ul li strong span {
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-text, #fff) !important;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .price-monthly span {
    font-size: 36px;
  }
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-list li svg {
  fill: var(--color-primary);
  width: 20px;
  flex-shrink: 0;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  color: var(--text-secondary);
}

.faq-answer > * {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0; /* C1h (n° 12) : l'icône +/× ne rétrécit plus quand la question passe sur 2 lignes */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Footer */
footer {
  background: #0a0a0a;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.footer-links {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:active { color: var(--text-primary); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--text-primary); }
}


.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
/* C1e (n° 14) : sur téléphone, les deux boutons de contact s'empilent (texte entier, e-mail non coupé) */
@media (max-width: 480px) {
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn-whatsapp,
  .contact-actions .btn-secondary { justify-content: center; text-align: center; white-space: normal; }
}

.btn-whatsapp {
  background: #25D366;
  color: #052E16; /* C1h (n° 5) : texte foncé sur le vert WhatsApp (≥ 4,5:1 ; le blanc donnait 1,98:1) */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.form-error {
  color: #F87171;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.success-message {
  display: none;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid #25D366;
  color: #25D366;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

/* Vibes / Ambiance */
.vibes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.vibe-card {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--glass-border);
}

/* Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  padding: 1rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .steps-container::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
  }
}


/* Text Gradient */
.text-gradient {
  background: var(--ds-fire-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Embers */
.embers-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.ember {
  position: absolute;
  top: 30%;
  left: var(--e-pos);
  width: 4px;
  height: 4px;
  background: var(--ds-fire-gradient);
  border-radius: 50%;
  box-shadow: var(--ds-glow-sm);
  animation: emberRise var(--e-dur) ease-in infinite;
  animation-delay: var(--e-delay);
  opacity: 0;
}
@keyframes emberRise {
  0% { transform: translateY(0) scale(1) translateX(0); opacity: 1; }
  50% { transform: translateY(-80px) scale(1.2) translateX(calc(var(--e-drift) * 0.5)); opacity: 0.8; }
  100% { transform: translateY(-160px) scale(0) translateX(var(--e-drift)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ember { display: none !important; }
}
/* Hover glow for cards */
.feature-card:active, .demo-card:active, .vibe-card:active { border-color: #ff5a1f !important;
  box-shadow: 0 0 20px rgba(255, 90, 31, 0.2) !important; }
@media (hover: hover) and (pointer: fine) {
  /* Hover glow for cards */
.feature-card:hover, .demo-card:hover, .vibe-card:hover { border-color: #ff5a1f !important;
  box-shadow: 0 0 20px rgba(255, 90, 31, 0.2) !important; }
}


/* Mobile Menu Sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  border-top: 1px solid var(--glass-border);
  border-radius: 20px 20px 0 0;
  z-index: 1001;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}
.mobile-sheet.active {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.sheet-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sheet-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}
.sheet-nav a.btn-primary,
.sheet-nav a.btn-primary:active,
.sheet-nav a.btn-primary:focus-visible {
  color: #1a0e06;
}
@media (hover: hover) and (pointer: fine) {
  .sheet-nav a.btn-primary:hover {
    color: #1a0e06;
  }
}
@media (max-width: 768px) {
  .menu-burger { display: block !important; }
}

.pricing-grid {
  margin-top: 2rem;
}
.pricing-card.featured.glow-card {
  border-color: #ff5a1f;
  box-shadow: 0 0 30px rgba(255, 90, 31, 0.2);
}


/* T8 overrides for touch targets and gaps */
@media (max-width: 768px) {
  .ds-chip { min-height: 44px !important; }
  .ds-segmented__item { min-height: 44px !important; }
  .restaurant-selector-pill { min-height: 44px !important; }
  .menu-toggle { width: 44px !important; height: 44px !important; }
}

/* gaps 8px */
.header-actions { gap: 8px !important; }
.restaurant-selector { gap: 8px !important; }
.categories-scroll-list { gap: 8px !important; }
.demo-banner-actions { gap: 8px !important; }
.demo-banner { gap: 8px !important; }

/* 1. Safe areas */
.demo-banner { padding-top: env(safe-area-inset-top) !important; }
.ds-bottom-sheet__content, .cart-bar, .floating-actions {
  padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
}
.ds-drawer__body {
  padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
}


@media (max-width: 768px) {
  section { padding: 64px max(20px, env(safe-area-inset-right)) 64px max(20px, env(safe-area-inset-left)) !important; }
  /* C1h (n° 22) : le logo du hero ne colle plus sous l'en-tête fixe (≈ 80 px de haut) */
  .hero { padding-top: 7rem !important; }
  .pricing-card { padding: 24px !important; }
  .hero-visual { transform: scale(0.8) !important; transform-origin: center center !important; margin: 0 auto; max-width: 100%; overflow: hidden; }
}
.check-icon {
  color: currentColor; /* or var(--ds-text) or whatever makes it visible */
  fill: none;
  stroke: currentColor;
}

.feature-icon svg, .menu-burger svg, .check-icon {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check-icon { color: #10B981 !important; } /* C.8: Les coches de la liste des tarifs sont noires sur fond noir (couleur d'accent) */
@media (max-width: 768px) {
  .menu-burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
}

.flame-part {
  transform-origin: 100px 85px;
  animation: flame-flicker 3s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  0% { transform: scale(0.95) skewX(-2deg); opacity: 0.9; }
  100% { transform: scale(1.05) skewX(2deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .flame-part { animation: none; }
}

.hero-logo-container {
  width: 140px !important;
  height: 140px !important;
}
@media (max-width: 768px) {
  .hero-logo-container {
    width: 112px !important;
    height: 112px !important;
  }
}

/* Hero Layout Update */
.hero-logo-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 0 2rem 0; /* Align left by default (desktop) */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .hero-logo-container {
    margin: 0 auto 2rem;
    justify-content: center;
  }
}

.halo-braise {
  position: absolute; width: 200%; height: 200%; 
  background: radial-gradient(circle, rgba(229,69,12,0.15) 0%, rgba(26,28,29,0) 60%); 
  z-index: 0; top: -50%; left: -50%;
}
.embers-container {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1;
}
.hero-logo-mark {
  position: relative; z-index: 2; width: 100%; height: 100%; color: #fff;
}

/* Tabs Styles */
.pricing-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.pricing-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 0.25rem;
}
.pricing-tab {
  background: transparent;
  color: #ccc;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
}
.pricing-tab:hover {
  color: #fff;
}
.pricing-tab.active {
  background: var(--ds-fire-gradient);
  color: #1a0e06;
  box-shadow: 0 4px 12px rgba(229, 69, 12, 0.3);
}
.pricing-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.pricing-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.badge-featured {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ds-fire-gradient);
  color: #1a0e06;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Economies Section */
.economies-comparative {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .economies-comparative {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.comp-col {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.comp-col.classic {
  opacity: 0.9;
}

.comp-col.tawla-col {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(229, 69, 12, 0.05) 0%, rgba(34, 34, 34, 0) 100%);
  position: relative;
}

.comp-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tawla-col .comp-header {
  color: var(--color-primary);
}

.comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.comp-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.comp-list li:last-child {
  border-bottom: none;
}

.comp-list .price {
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.text-danger { color: #ff6b5c; } /* C1h (n° 20) : ≥ 4,5:1 sur fond sombre (#e74c3c donnait 4,04:1) */
.text-success { color: #2ecc71; }

.comp-total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-weight: 700;
}

.comp-total.highlight {
  border-color: rgba(229, 69, 12, 0.3);
}

.comp-total-tawla {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.comp-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.comp-total-detail {
  font-size: 0.875rem;
  font-weight: normal;
  color: var(--text-secondary);
  line-height: 1.35;
}

.total-label {
  font-size: 1.1rem;
}

.total-price {
  font-size: 1.3rem;
  white-space: nowrap;
}

.tawla-col .total-price {
  color: var(--color-primary);
}

/* Calculator Form */
.economies-calculator {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .calc-form {
    grid-template-columns: repeat(3, 1fr);
  }
}

.calc-group {
  display: flex;
  flex-direction: column;
}

.calc-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.calc-group select {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.calc-group select:focus {
  border-color: var(--color-primary);
}

.calc-results {
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: baseline;
  gap: 0.5rem;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-val {
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.tawla-val {
  color: var(--color-primary);
}

.saving-row {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
  font-weight: 700;
}

.saving-val {
  color: #2ecc71;
  font-size: 1.4rem;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.pricing-options li strong {
  white-space: nowrap;
}

/* C1h (n° 11) : options d'achat sur petit écran : libellé au-dessus du prix, plus de colonne étroite */
@media (max-width: 380px) {
  .pricing-options { padding: 1.25rem !important; }
  .pricing-options ul li { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .pricing-options ul li strong { margin-left: 0 !important; justify-content: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  .comp-col {
    padding: 1.25rem 1rem;
  }
  .economies-calculator {
    padding: 1.25rem 1rem;
  }
}

/* Reasons */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reasons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.reason-card h4 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.hero-badge {
  display: inline-block;
  background: rgba(229, 69, 12, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(229, 69, 12, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.success-message:focus { outline: none; }

/* ==========================================================================
   C1l : QR codes et affiches + catalogue « Toutes les fonctionnalités »
   ========================================================================== */
.fx-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- QR codes et affiches --- */
.qr-section .section-header { margin-bottom: 3rem; }
.qr-section .section-header p { max-width: 760px; margin: 0 auto; }
.qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.qr-plate { margin: 0; text-align: center; }
.qr-plate-svg { width: 100%; max-width: 260px; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45)); }
.qr-plate figcaption { font-size: 0.9rem; margin-top: 1rem; max-width: 260px; margin-inline: auto; }
.qr-usages { display: grid; gap: 1rem; }
.qr-usage {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.qr-usage h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.qr-usage p { margin: 0 0 0.6rem; color: #d4d4d4; }
.qr-usage p:last-child { margin-bottom: 0; }
.qr-usage[data-usage="plaque-table"] { border-color: rgba(255, 90, 31, 0.5); }
.qr-steps {
  list-style: none;
  counter-reset: qr;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin: 2.5rem auto 0;
  padding: 0;
  max-width: 900px;
}
.qr-steps li {
  counter-increment: qr;
  position: relative;
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.9rem 3.4rem;
  min-height: 56px;
}
.qr-steps li::before {
  content: counter(qr);
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #1a0e06;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-note { text-align: center; font-size: 0.9rem; margin: 1rem 0 0; }
.qr-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.qr-cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-align: center; max-width: 100%; }
@media (min-width: 900px) {
  .qr-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 3rem; }
  .qr-plate { position: sticky; top: 6rem; }
  .qr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Catalogue des fonctionnalités --- */
.fx-section .section-header { margin-bottom: 2rem; }
.fx-section .section-header p { max-width: 760px; margin: 0 auto; }
.fx-order-note {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 0.9rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(255, 90, 31, 0.08);
  border-radius: 8px;
  color: #f0f0f0;
}
.fx-index { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 1rem; }
.fx-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--glass-bg);
}
.fx-group { margin-top: 3rem; scroll-margin-top: 5rem; }
.fx-group h3 { font-size: 1.6rem; margin: 0 0 0.25rem; }
.fx-group-note { color: var(--text-secondary); margin: 0 0 1.5rem; }
.fx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}
.fx-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fx-card h4 { font-size: 1.2rem; margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.fx-what { margin: 0 0 1rem; color: #f0f0f0; font-weight: 500; }
.fx-use-title { margin: 0 0 0.4rem; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #ffb089; font-weight: 700; }
.fx-use { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--text-secondary); display: grid; gap: 0.45rem; }
.fx-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; }
.fx-demo-link, .fx-more-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
  min-height: 44px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fx-where { font-weight: 400; font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; display: inline-block; }
.pricing-qr-link { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

/* C1l : types de restaurants */
.vibe-card { background: var(--glass-bg); }
.vibes-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.vibes-note { max-width: 760px; margin: 0 auto; color: #d4d4d4; }
.fx-all-types { max-width: 760px; margin: 1rem auto 0; }
