/* Fade-in pour le contenu chargé (ex. Turbo Frame) */
@keyframes recipes-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.recipes-fade-in {
  animation: recipes-fade-in 0.35s ease-out forwards;
}

/* Reset dans @layer base pour que les utilitaires Tailwind (p-4, etc.) prennent le dessus */
@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --primary: #f97316;
  --primary-foreground: #ffffff;
  --secondary: #ff6b6b;
  --accent: #fbbf24;
  --card: #ffffff;
  --card-border: #e5e7eb;
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --navbar-border: rgba(15, 23, 42, 0.08);
  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(15, 23, 42, 0.12);
  --gradient-primary: linear-gradient(135deg, #f97316, #ff6b6b);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.18), transparent);
  --gradient-glow: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(255, 255, 255, 0.7));
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b0f19;
  --foreground: #e2e8f0;
  --muted: #111827;
  --muted-foreground: #94a3b8;
  --primary: #f97316;
  --primary-foreground: #0b0f19;
  --secondary: #ff6b6b;
  --accent: #fbbf24;
  --card: #0f172a;
  --card-border: rgba(148, 163, 184, 0.2);
  --navbar-bg: rgba(9, 11, 20, 0.8);
  --navbar-border: rgba(148, 163, 184, 0.18);
  --dropdown-bg: #0f172a;
  --dropdown-border: rgba(148, 163, 184, 0.25);
  --gradient-primary: linear-gradient(135deg, #f97316, #ff6b6b);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.22), transparent);
  --gradient-glow: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(15, 23, 42, 0.7));
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.3);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Feedback visuel global au clic pour boutons et liens */
button,
input[type="submit"],
.btn,
.early-access-submit,
.pricing-button,
.pricing-button-featured {
  transition: transform 0.12s ease-out, filter 0.12s ease-out, box-shadow 0.12s ease-out;
}

button:active,
input[type="submit"]:active,
.btn:active,
.early-access-submit:active,
.pricing-button:active,
.pricing-button-featured:active {
  transform: translateY(1px) scale(0.97);
  filter: brightness(0.9);
}

a:active {
  filter: brightness(0.9);
}

.fill-current path {
  fill: currentColor;
  stroke: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 2rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navbar-border);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

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

/* Locale switcher (desktop) */
.navbar-locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--card-border);
}

.navbar-locale-link {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: var(--muted-foreground);
  background: transparent;
  transition: all 0.2s ease;
}

.navbar-locale-link:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.08);
  color: var(--foreground);
}

.navbar-locale-link.is-active {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.12);
  color: var(--foreground);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
}

.navbar-mobile {
  display: none;
  position: relative;
}

.navbar-mobile-toggle {
  list-style: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--foreground);
}

.navbar-mobile-toggle::-webkit-details-marker {
  display: none;
}

.navbar-mobile[open] .navbar-mobile-toggle {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
}

.navbar-mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 16px;
  min-width: 220px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.navbar-mobile-menu a {
  color: var(--foreground);
  font-weight: 500;
}

.theme-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--card-border);
}

/* Locale switcher (mobile menu) */
.locale-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--card-border);
}

.locale-switcher span {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.locale-switcher-buttons {
  display: inline-flex;
  gap: 0.5rem;
}

.theme-switcher label {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.theme-switcher select {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
}

.navbar-nav a {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-nav a:hover {
  color: var(--foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--primary);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Dashboard */
.dashboard-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 3rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.dashboard-empty {
  color: var(--muted-foreground);
  text-align: center;
  padding: 3rem 0;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: var(--gradient-glow);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite reverse;
}

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

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

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--muted);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  transition: all 0.3s;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.store-btn-text small {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: block;
}

.store-btn-text strong {
  font-size: 1rem;
  font-weight: 600;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--background);
  margin-left: -12px;
}

.avatars img:first-child {
  margin-left: 0;
}

.social-proof-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.social-proof-text strong {
  color: var(--foreground);
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 32px;
  overflow: hidden;
}

.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-glow {
  position: absolute;
  inset: -50px;
  background: var(--gradient-glow);
  filter: blur(60px);
  z-index: -1;
  opacity: 0.5;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Features Section */
.features {
  padding: 8rem 2rem;
  position: relative;
}

/* Early Access Signup */
.early-access-signup {
  padding: 6rem 2rem 4rem;
}

.early-access-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 1.75rem 2.5rem;
}

.early-access-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.early-access-fields {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.early-access-input {
  flex: 1;
  padding: 0.9rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  font-size: 0.95rem;
  outline: none;
  background: var(--muted);
  color: var(--foreground);
}

.early-access-input::placeholder {
  color: var(--muted-foreground);
}

.early-access-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
  background: #ffffff;
}

.early-access-submit {
  padding: 0.9rem 1.4rem;
  border-radius: 9999px;
  border: none;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.early-access-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

.early-access-hint {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-align: left;
  padding-left: 0.5rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.features-soon {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed rgba(249, 115, 22, 0.4);
  text-align: center;
}

.features-soon h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.features-soon ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: center;
}

.features-soon li {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 0.4rem;
}

/* How It Works */
.how-it-works {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.03), transparent);
}

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

.step-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-glow);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
  padding: 8rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-weight: 600;
}

.testimonial-info span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonial-content {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.25rem;
}

/* CTA Section */
.cta {
  position: relative;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: var(--gradient-glow);
  filter: blur(80px);
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--card-border);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-brand p {
  color: var(--muted-foreground);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* Pricing Section */
.pricing {
  padding: 8rem 2rem;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(255, 107, 107, 0.05));
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pricing-card-featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.pricing-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.pricing-features {
  list-style: none;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--foreground);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9375rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li strong {
  color: var(--primary);
}

.pricing-info {
  max-width: 800px;
  margin: 2rem auto 3rem;
  padding: 1.5rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 1rem;
  text-align: center;
}

.pricing-info p {
  color: var(--foreground);
  font-size: 1rem;
  margin: 0;
}

.pricing-info strong {
  color: var(--primary);
}

.pricing-note {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.pricing-note p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
  font-style: italic;
}

.pricing-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--muted);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  color: var(--foreground);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.pricing-button:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.pricing-button-featured {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.pricing-button-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 80px rgba(249, 115, 22, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-proof {
    justify-content: center;
  }

  .phone-mockup {
    margin-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-card-featured {
    transform: scale(1);
  }

  .pricing-card-featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 640px) {
  .navbar-nav {
    display: none;
  }

  .navbar-mobile {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .early-access-card {
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
  }

  .early-access-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .early-access-submit {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
  }

  .cta-box {
    padding: 2rem;
  }

  .cta h2 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-brand p {
    margin: 1rem auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .pricing {
    padding: 4rem 1rem;
  }

  .pricing-grid {
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 2rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .pricing-features {
    min-height: auto;
  }

  .pricing-info {
    margin: 1.5rem auto 2rem;
    padding: 1rem;
  }

  .pricing-info p {
    font-size: 0.875rem;
  }

  .dashboard-page {
    padding: 6rem 1rem 2rem;
  }

  .recipe-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .recipe-card-row {
    gap: 0.5rem;
  }

  .recipe-card-image {
    width: 100%;
    height: 180px;
  }
}

/* Slider portions (page recette) – gradient aligné sur les boutons */
.servings-scaler {
  overflow: visible;
}

.servings-scaler__header {
  min-height: 2rem;
}

.servings-scaler__value {
  min-width: 5.5rem;
  padding: 0.5rem 1rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.servings-scaler__value-icon {
  color: #fff;
}

.servings-scaler__value-icon svg,
.servings-scaler__value-icon .servings-scaler__lucide-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

/* Icônes Lucide injectées (data-lucide) */
.servings-scaler__lucide-icon,
.servings-scaler__hint-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
}

.servings-scaler__lucide-icon svg,
.servings-scaler__hint-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.servings-scaler__track {
  padding: 0.75rem 0;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.servings-scaler__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  --slider-percent: 40%;
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #ff6b6b var(--slider-percent),
    #e5e7eb var(--slider-percent),
    #e5e7eb 100%
  );
  outline: none;
  display: block;
}

.servings-scaler__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.45);
  cursor: pointer;
  border: 3px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  /* centre verticalement le rond sur une piste de 10px */
  margin-top: -7px;
}

.servings-scaler__input::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 9999px;
}

.servings-scaler__input::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.5);
}

.servings-scaler__input::-moz-range-track {
  height: 10px;
  border-radius: 9999px;
  background: #e5e7eb;
}

.servings-scaler__input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.45);
  cursor: pointer;
  border: 3px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.servings-scaler__input::-moz-range-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.5);
}

.servings-scaler__hint {
  max-width: 100%;
}

/* ========== Dark theme uniquement (light theme inchangé) ========== */
/* Boutons primary : texte blanc en dark pour bonne lisibilité */
[data-theme="dark"] .btn.btn-primary {
  color: #ffffff;
}

/* Vue recette : tout en variantes de gris (pas de slate) */
[data-theme="dark"] .min-h-screen.bg-white {
  background-color: #1a1a1a;
}

[data-theme="dark"] .min-h-screen.bg-white .bg-white {
  background-color: #262626;
}

[data-theme="dark"] .min-h-screen.bg-white .bg-slate-100 {
  background-color: #2d2d2d;
}

[data-theme="dark"] .min-h-screen.bg-white .bg-slate-200 {
  background-color: #2d2d2d;
}

[data-theme="dark"] .min-h-screen.bg-white .border-slate-200,
[data-theme="dark"] .min-h-screen.bg-white .border-slate-100 {
  border-color: #404040;
}

[data-theme="dark"] .recipe-add-banner {
  background-color: #2d2520;
  border-color: rgba(249, 115, 22, 0.5);
  color: #e2e8f0;
}

[data-theme="dark"] .min-h-screen.bg-white .servings-scaler {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(255, 107, 107, 0.08));
  border-color: rgba(249, 115, 22, 0.35);
}

[data-theme="dark"] .min-h-screen.bg-white .servings-scaler__input {
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #ff6b6b var(--slider-percent),
    #2d2d2d var(--slider-percent),
    #2d2d2d 100%
  );
}

[data-theme="dark"] .min-h-screen.bg-white .servings-scaler__input::-webkit-slider-thumb,
[data-theme="dark"] .min-h-screen.bg-white .servings-scaler__input::-moz-range-thumb {
  border-color: #262626;
}

[data-theme="dark"] .min-h-screen.bg-white .servings-scaler__input::-moz-range-track {
  background: #2d2d2d;
}

[data-theme="dark"] .min-h-screen.bg-white #nutrition .relative.h-full.w-full.rounded-full {
  background-color: #262626 !important;
}

.user-page-banner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #0f172a;
}

.user-page-banner__title {
  color: #0f172a;
}

.user-page-banner__subtitle {
  color: #475569;
}

.user-page-banner__cta {
  background: #fff7ed;
  color: #c2410c;
}

.user-page-banner__cta:hover {
  background: #ffedd5;
}

[data-theme="dark"] .user-page-banner {
  background: #3f3f46;
  border-color: #52525b;
  color: #f8fafc;
}

[data-theme="dark"] .user-page-banner__title {
  color: #f8fafc;
}

[data-theme="dark"] .user-page-banner__subtitle {
  color: #e4e4e7;
}

[data-theme="dark"] .user-page-banner__cta {
  background: #52525b;
  color: #ffffff;
}

[data-theme="dark"] .user-page-banner__cta:hover {
  background: #63636f;
}

[data-theme="dark"] .min-h-screen.bg-white #nutrition .absolute.inset-4.rounded-full.bg-white {
  background-color: #262626 !important;
}

/* Recipes index, Dashboard, New recipe, Share : même UI gris (dark) */
[data-theme="dark"] .min-h-screen.bg-slate-50 {
  background-color: #1a1a1a;
}

/* Plan de repas : même fond bleu foncé que le dashboard en dark (spécificité >= .min-h-screen.bg-slate-50) */
[data-theme="dark"] .meal-plans-page.min-h-screen.bg-slate-50 {
  background-color: var(--background);
}

/* Liste de courses : même fond bleu foncé que le dashboard en dark */
[data-theme="dark"] .shopping-list-page.min-h-screen.bg-slate-50 {
  background-color: var(--background);
}

[data-theme="dark"] .recipes-index-page.min-h-screen.bg-slate-50,
[data-theme="dark"] .community-recipes-page.min-h-screen.bg-slate-50 {
  background-color: var(--background);
}

[data-theme="dark"] .share-new-page.min-h-screen.bg-slate-50 {
  background-color: var(--background);
}

[data-theme="dark"] .share-waiting-page.min-h-screen {
  background: var(--background);
}

[data-theme="dark"] .share-waiting-page .from-orange-50,
[data-theme="dark"] .share-waiting-page .via-amber-50,
[data-theme="dark"] .share-waiting-page .to-white {
  --tw-gradient-from: var(--background) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(11, 15, 25, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #111827 var(--tw-gradient-via-position), var(--tw-gradient-to);
}

[data-theme="dark"] .share-waiting-page .border-orange-100 {
  border-color: #404040;
}

[data-theme="dark"] .share-waiting-page .border-orange-200 {
  border-color: #525252;
}

[data-theme="dark"] .share-waiting-page .bg-white\/85,
[data-theme="dark"] .share-waiting-page .bg-white {
  background-color: rgba(38, 38, 38, 0.92);
}

[data-theme="dark"] .share-waiting-page .bg-slate-100 {
  background-color: #2d2d2d;
}

[data-theme="dark"] .share-waiting-page .bg-orange-50\/70 {
  background-color: rgba(249, 115, 22, 0.12);
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .bg-white {
  background-color: #262626;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .bg-slate-50,
[data-theme="dark"] .min-h-screen.bg-slate-50 .bg-slate-100 {
  background-color: #2d2d2d;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .bg-slate-200 {
  background-color: #2d2d2d;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .border-slate-200,
[data-theme="dark"] .min-h-screen.bg-slate-50 .border-slate-100,
[data-theme="dark"] .min-h-screen.bg-slate-50 .border-slate-300 {
  border-color: #404040;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .hover\:bg-slate-50:hover {
  background-color: #2d2d2d;
}

/* Barre sticky recherche + tri (dark) : fond et bordure cohérents */
[data-theme="dark"] .min-h-screen.bg-slate-50 .bg-slate-50\/95 {
  background-color: rgba(26, 26, 26, 0.95);
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .sticky.border-b.border-slate-200 {
  border-bottom-color: #404040;
}

/* Champ recherche liste recettes (dark) : bordure et placeholder */
[data-theme="dark"] .min-h-screen.bg-slate-50 input.border-orange-300 {
  border-color: #fb923c;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 input.border-orange-300:focus {
  border-color: #f97316;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 input::placeholder {
  color: var(--muted-foreground);
}

/* Sort dropdown (liste recettes) : fond blanc en light, aligné sur la barre en dark (pas de fond slate) */
.min-h-screen.bg-slate-50 .sort-dropdown__trigger {
  background: #ffffff;
  border-color: #fdba74;
  color: #0f172a;
}

.min-h-screen.bg-slate-50 .sort-dropdown__trigger:hover {
  background: #f8fafc;
  border-color: #fdba74;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .sort-dropdown__trigger {
  background: #262626;
  border-color: #fb923c;
  color: #e2e8f0;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .sort-dropdown__trigger:hover {
  background: #404040;
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .sort-dropdown__menu {
  background: #262626;
  border-color: #404040;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .min-h-screen.bg-slate-50 .sort-dropdown__option:hover {
  background: #404040;
}

/* Navbars (dark) : variantes de gris comme la vue recette */
[data-theme="dark"] .navbar {
  background: rgba(26, 26, 26, 0.92);
  border-bottom-color: #404040;
}

[data-theme="dark"] .navbar .navbar-locale-switch {
  border-left-color: #404040;
}

[data-theme="dark"] .navbar .navbar-locale-link:hover {
  border-color: #404040;
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .navbar .navbar-mobile-toggle {
  background: #262626;
  border-color: #404040;
}

[data-theme="dark"] .navbar .navbar-mobile-menu {
  background: #262626;
  border-color: #404040;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar .theme-switcher,
[data-theme="dark"] .navbar .locale-switcher {
  border-top-color: #404040;
}

[data-theme="dark"] .navbar .theme-switcher select {
  background: #2d2d2d;
  border-color: #404040;
}

/* Reste de l'app (hors vue recette) : slate conservé */
[data-theme="dark"] .bg-white {
  background-color: var(--card);
}

[data-theme="dark"] .border-slate-200,
[data-theme="dark"] .border-slate-100 {
  border-color: var(--card-border);
}

[data-theme="dark"] .text-slate-900,
[data-theme="dark"] .text-slate-800 {
  color: var(--foreground);
}

[data-theme="dark"] .text-slate-700,
[data-theme="dark"] .text-slate-600 {
  color: var(--muted-foreground);
}

[data-theme="dark"] .text-slate-500 {
  color: var(--muted-foreground);
}

[data-theme="dark"] .bg-slate-100 {
  background-color: var(--muted);
}

[data-theme="dark"] .bg-slate-200 {
  background-color: var(--muted);
}

[data-theme="dark"] .hover\:text-slate-900:hover {
  color: var(--foreground);
}

[data-theme="dark"] .hover\:bg-slate-100:hover {
  background-color: var(--muted);
}

/* Bouton création de dossier (dashboard) : fond et bordure en dark */
[data-theme="dark"] .folder-create-card {
  background-color: var(--muted);
  border-color: var(--card-border);
  color: var(--muted-foreground);
}
[data-theme="dark"] .folder-create-card:hover {
  background-color: #404040;
}
[data-theme="dark"] .folder-create-card__icon {
  color: var(--muted-foreground);
}

/* Modale sélection dossier (dark) : dossier sélectionné lisible */
[data-theme="dark"] .folder-select-modal .folder-select-card--selected {
  background-color: rgba(249, 115, 22, 0.25);
}
[data-theme="dark"] .folder-select-modal .folder-select-card--selected .folder-select-card__label {
  color: var(--foreground);
}

/* Servings scaler (dark) – hors vue recette */
[data-theme="dark"] .servings-scaler {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(255, 107, 107, 0.08));
  border-color: rgba(249, 115, 22, 0.35);
}

[data-theme="dark"] .servings-scaler__input {
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #ff6b6b var(--slider-percent),
    var(--muted) var(--slider-percent),
    var(--muted) 100%
  );
}

[data-theme="dark"] .servings-scaler__input::-webkit-slider-thumb,
[data-theme="dark"] .servings-scaler__input::-moz-range-thumb {
  border-color: var(--card);
}

[data-theme="dark"] .servings-scaler__input::-moz-range-track {
  background: var(--muted);
}

/* Nutrition donut (dark) – hors vue recette */
[data-theme="dark"] #nutrition .relative.h-full.w-full.rounded-full {
  background-color: var(--card) !important;
}

[data-theme="dark"] #nutrition .absolute.inset-4.rounded-full.bg-white {
  background-color: var(--card) !important;
}

/* Cartes recette (index, dashboard, etc.) : gris comme le reste */
[data-theme="dark"] .rounded-2xl.border.border-slate-200.bg-white {
  background-color: #262626;
  border-color: #404040;
}

[data-theme="dark"] .ring-white\/60 {
  --tw-ring-color: rgba(15, 23, 42, 0.4);
}

[data-controller~="bridge--button"]
[data-bridge-components~="button"]{
  display: none;
}
[data-bridge-components~="menu"]
[data-controller~="bridge--menu"] {
  display: none;
}
[data-controller~="bridge--close-modal"] 
button[data-action~="bridge--close-modal#dismiss"] {
  display: none;
}


/* ========== Devise error messages ========== */
#error_explanation {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
}

#error_explanation h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc2626;
  margin: 0 0 0.5rem 0;
}

#error_explanation ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #991b1b;
}

#error_explanation li {
  margin-bottom: 0.25rem;
}

#error_explanation li:last-child {
  margin-bottom: 0;
}

/* ========== Sort dropdown (liste recettes) ========== */
.sort-dropdown {
  position: relative;
}

.sort-dropdown__details {
  display: inline-block;
}

.sort-dropdown__details summary {
  list-style: none;
}

.sort-dropdown__details summary::-webkit-details-marker {
  display: none;
}

.sort-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.sort-dropdown__trigger:hover {
  background: var(--card-border);
}

.sort-dropdown__trigger .sort-dropdown__chevron {
  transition: transform 0.2s;
}

.sort-dropdown__details[open] .sort-dropdown__chevron {
  transform: rotate(180deg);
}

.sort-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
  z-index: 50;
}

.sort-dropdown__option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.sort-dropdown__option:hover {
  background: var(--muted);
}

/* ========== Convert dropdown (fiche recette) ========== */
.convert-dropdown__details summary {
  list-style: none;
}

.convert-dropdown__details summary::-webkit-details-marker {
  display: none;
}

.convert-dropdown__details[open] .convert-dropdown__chevron {
  transform: rotate(180deg);
}

.convert-dropdown__chevron {
  transition: transform 0.2s;
}

.convert-dropdown__label-wrap {
  overflow: hidden;
}

.convert-dropdown__label {
  transition: opacity 0.4s ease-out;
}

/* ========== Recipe detail redesign (light + dark) ========== */
.recipe-detail-screen {
  background: #f2f2f7 !important;
}

.recipe-stats-card {
  min-height: 120px;
  margin-bottom: 12px !important;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #1c1c1e;
}

.recipe-stats-card__grid {
  color: #1c1c1e;
}

.recipe-stats-subtext {
  color: #1c1c1e;
}

.recipe-section-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.recipe-cta-shell {
  margin-top: 0 !important;
}

.recipe-cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.recipe-cta-primary,
.recipe-cta-secondary {
  height: 52px;
  border-radius: 14px;
  font-weight: 700;
}

.recipe-cta-primary {
  width: 100%;
  background: #ff6b00;
  color: #ffffff;
}

.recipe-cta-cook {
  background: #2fc75d;
  box-shadow: 0 8px 18px rgba(47, 199, 93, 0.28);
}

.recipe-cta-cook:hover,
.recipe-cta-cook:active {
  background: #26b552;
}

.recipe-cta-play-icon {
  width: 22px;
  height: 22px;
}

.recipe-cta-secondary {
  width: 100%;
  min-width: 0;
  background: #ff6b00;
  border: 2px solid transparent;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.25);
  white-space: nowrap;
  padding: 0 16px;
}

.recipe-cta-secondary svg {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .recipe-cta-secondary {
    width: 35%;
    min-width: 210px;
  }
}

.recipe-variant-trigger {
  min-height: 56px;
  border-radius: 14px;
  border: 1.5px solid #27ae60;
  background: linear-gradient(180deg, #e8f8ef 0%, #d4f1e1 100%);
  color: #1e7a45;
  font-size: 16px;
  font-weight: 700;
  padding: 0 16px;
}

.recipe-variant-trigger__chevron {
  margin-left: auto;
  color: #27ae60;
}

.recipe-variant-menu {
  padding: 8px 0;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recipe-variant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 16px;
  font-size: 16px;
  background: #ffffff;
  color: #1c1c1e;
}

.recipe-variant-option + .recipe-variant-option {
  border-top: 1px solid #e5e5ea;
}

.recipe-variant-option:hover,
.recipe-variant-option:active {
  background: #f2f2f7;
}

.recipe-variant-option__emoji {
  font-size: 24px;
  line-height: 1;
}

.recipe-variant-option__text {
  font-size: 16px;
  color: #1c1c1e;
}

[data-theme="dark"] .recipe-detail-screen {
  background: var(--background) !important;
}

[data-theme="dark"] .recipe-detail-screen .bg-slate-50 {
  background-color: #303033 !important;
}

[data-theme="dark"] .recipe-detail-screen .text-slate-700 {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .recipe-detail-screen .text-slate-600 {
  color: #aebbd0 !important;
}

[data-theme="dark"] .recipe-detail-screen .recipe-step-bullet {
  background-color: rgba(249, 115, 22, 0.22) !important;
  color: #ffb36b !important;
}

[data-theme="dark"] .recipe-detail-screen .recipe-section-icon {
  background-color: rgba(249, 115, 22, 0.2) !important;
  color: #ffb36b !important;
  border-color: rgba(249, 115, 22, 0.32) !important;
}

[data-theme="dark"] .recipe-stats-card {
  background: #2c2c2e;
  border-color: #3a3a3c;
  box-shadow: none;
  color: #ffffff;
}

[data-theme="dark"] .recipe-stats-card__grid,
[data-theme="dark"] .recipe-stats-subtext {
  color: #ffffff;
}

[data-theme="dark"] .recipe-cta-primary {
  background: #ff6b00;
  color: #ffffff;
}

[data-theme="dark"] .recipe-cta-cook {
  background: #2fc75d;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 199, 93, 0.24);
}

[data-theme="dark"] .recipe-cta-cook:hover,
[data-theme="dark"] .recipe-cta-cook:active {
  background: #26b552;
}

[data-theme="dark"] .recipe-cta-secondary {
  background: #2c2c2e;
  border-color: #ff6b00;
  color: #ff6b00;
  box-shadow: none;
}

[data-theme="dark"] .recipe-variant-trigger {
  border-color: #2ecc71;
  background: linear-gradient(180deg, #1a3a2a 0%, #1e4d35 100%);
  color: #2ecc71;
}

[data-theme="dark"] .recipe-variant-trigger__chevron {
  color: #2ecc71;
}

[data-theme="dark"] .recipe-variant-menu {
  background: #2c2c2e;
  border-color: #3a3a3c;
  box-shadow: none;
}

[data-theme="dark"] .recipe-variant-option {
  background: #2c2c2e;
  color: #ffffff;
}

[data-theme="dark"] .recipe-variant-option + .recipe-variant-option {
  border-top-color: #3a3a3c;
}

[data-theme="dark"] .recipe-variant-option:hover,
[data-theme="dark"] .recipe-variant-option:active {
  background: #3a3a3c;
}

[data-theme="dark"] .recipe-variant-option__text {
  color: #ffffff;
}

/* ========== Modal "Cuisiner pour X personnes" (fiche recette) ========== */
.cooking-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cooking-modal.cooking-modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cooking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.cooking-modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.cooking-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.75rem;
  text-align: center;
}

.cooking-modal-text {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin: 0 0 1.25rem;
  text-align: center;
}

.cooking-modal-portions {
  color: var(--primary);
  font-weight: 700;
}

.cooking-modal-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cooking-modal-min,
.cooking-modal-max {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.cooking-modal-track {
  flex: 1;
  padding: 0.75rem 0;
  --slider-percent: 50%;
}

.cooking-modal-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #ff6b6b var(--slider-percent),
    #e5e7eb var(--slider-percent),
    #e5e7eb 100%
  );
  outline: none;
  display: block;
}

.cooking-modal-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.45);
  cursor: pointer;
  border: 3px solid var(--card);
  transition: transform 0.15s ease;
}

.cooking-modal-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.45);
  cursor: pointer;
  border: 3px solid var(--card);
}

.cooking-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cooking-modal-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
}

.cooking-modal-btn-cancel {
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--card-border);
}

.cooking-modal-btn-cancel:hover {
  background: var(--card-border);
}

.cooking-modal-btn-confirm {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.cooking-modal-btn-confirm:hover {
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

/* Toast modal / popup de confirmation */
.toast-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.toast-modal-wrap > * {
  pointer-events: auto;
}

.toast-modal {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 420px;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: toast-modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-modal--dismissing {
  animation: toast-modal-out 0.3s ease forwards;
}

.toast-modal--success {
  background: var(--card);
  border: 1px solid rgba(249, 115, 22, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 40px rgba(249, 115, 22, 0.08);
}

.toast-modal--error {
  background: var(--card);
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 40px rgba(239, 68, 68, 0.08);
}

.toast-modal-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.toast-modal-message {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.5;
}

.toast-modal-close {
  flex-shrink: 0;
  padding: 0.25rem;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.toast-modal-close:hover {
  color: var(--foreground);
  background: var(--muted);
}

@keyframes toast-modal-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes toast-modal-out {
  to {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }
}

.meal-plan-interactions-root,
.meal-plan-interactions-root * {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

html.meal-plan-scroll-locked,
body.meal-plan-scroll-locked {
  overflow: hidden !important;
  touch-action: none;
}

body.meal-plan-scroll-locked {
  position: fixed;
  width: 100%;
}

.meal-plan-entry-link {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.folder-card-trigger {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.folder-card-trigger * {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

[data-theme="dark"] .folder-dashboard-card {
  background-color: #1e2431;
}

.folder-context-menu-root,
.folder-context-menu-root * {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.meal-plan-drop-zone,
.meal-plan-drop-zone * {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.meal-plan-entry-link img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.meal-plan-entry--dragging {
  opacity: 0.35;
  transform: scale(0.97);
}

.meal-plan-entry--drag-ready {
  background: rgba(249, 115, 22, 0.16) !important;
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.75);
}

.meal-plan-drop-zone {
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.meal-plan-drop-zone--past {
  background: rgba(148, 163, 184, 0.12);
}

.meal-plan-drop-zone--past > * {
  opacity: 0.55;
}

.meal-plan-drop-zone--active {
  background: rgba(249, 115, 22, 0.2);
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.9);
  transform: scale(0.98);
}

.meal-plan--menu-open,
.meal-plan--menu-open *,
.meal-plan--dragging,
.meal-plan--dragging * {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.meal-plan-context-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.04);
}

.meal-plan-context-menu {
  position: fixed;
  z-index: 90;
  width: min(66vw, 280px);
  border-radius: 22px;
  background: rgba(242, 242, 247, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.meal-plan-context-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
}

.meal-plan-context-menu__item:active {
  background: rgba(60, 60, 67, 0.14);
}

.meal-plan-context-menu__item + .meal-plan-context-menu__item {
  border-top: 0.5px solid rgba(60, 60, 67, 0.28);
}

.meal-plan-context-menu__item--danger {
  color: #111827;
}

.meal-plan-drag-preview {
  position: fixed;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  z-index: 120;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.95);
  transform: rotate(-3deg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.meal-plan-drag-preview--empty {
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}

/* Shared interactions for paywall + device auth views links/buttons */
.ui-link-button-anim {
  transition:
    transform 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .ui-link-button-anim:hover {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.05);
  }
}

.ui-link-button-anim:focus-visible {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

.ui-link-button-anim:active,
.ui-link-button-anim--pressed {
  transform: scale(0.97);
  filter: brightness(0.92) saturate(1.05);
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .ui-link-button-anim {
    transition: none;
  }
}
