/* Top Robot Pâtissier — compléments au Tailwind Play CDN */

:root {
  --tp-vert: #17332E;
  --tp-sauge: #4C6B5D;
  --tp-cuivre: #C2691F;
  --tp-amande: #F2E4CE;
  --tp-farine: #FAF6EF;
  --tp-gris: #8B8175;
  --tp-encre: #2A2A26;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', system-ui, sans-serif;
  background-color: var(--tp-farine);
  color: var(--tp-encre);
}

.font-display { font-family: 'Fraunces', Georgia, serif; }

/* Chiffres alignés dans les tableaux de specs */
table { font-variant-numeric: tabular-nums; }

/* Révélations au scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal-visible { opacity: 1; transform: none; }

/* Cascade du hero */
.hero-cascade > * {
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 0.65s ease-out forwards;
}
.hero-cascade > *:nth-child(1) { animation-delay: 0.05s; }
.hero-cascade > *:nth-child(2) { animation-delay: 0.18s; }
.hero-cascade > *:nth-child(3) { animation-delay: 0.31s; }
.hero-cascade > *:nth-child(4) { animation-delay: 0.44s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Cartes produit */
.product-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-card img { transition: transform 0.4s ease; }
.product-card:hover img { transform: scale(1.04); }

/* Contenu éditorial */
.prose-tp p { margin-bottom: 1.15rem; line-height: 1.75; }
.prose-tp h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; }
.prose-tp h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; }
.prose-tp ul, .prose-tp ol { margin-bottom: 1.25rem; padding-left: 1.25rem; }
.prose-tp li { margin-bottom: 0.5rem; line-height: 1.65; }
.prose-tp ul { list-style: disc; }
.prose-tp ol { list-style: decimal; }
.prose-tp a { color: var(--tp-cuivre); text-decoration: underline; text-underline-offset: 3px; }
.prose-tp a:hover { color: #A85716; }
.prose-tp table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.prose-tp th, .prose-tp td { border-bottom: 1px solid var(--tp-amande); padding: 0.7rem 0.6rem; text-align: left; vertical-align: top; }
.prose-tp th { background: var(--tp-amande); font-weight: 700; }
.prose-tp tbody tr:nth-child(even) { background: #fff; }
.prose-tp blockquote {
  border-left: 3px solid var(--tp-cuivre);
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: normal;
}

/* Focus visible accessible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--tp-cuivre);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cascade > * { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .product-card, .product-card img { transition: none; }
}
