/* Tokens couleur du décor "carnet italien peint main" (aquarelle, tampons,
   dégradés) — définis ici globalement car réutilisés par des composants
   comme .review-grid sur des pages qui ne chargent pas assets/css/clone/*.css
   (celui-ci ne s'inclut qu'sur l'accueil). Mêmes valeurs que le :root du clone,
   à garder synchronisées si l'une des deux est modifiée. */
:root { --cream: #f7f0df; --paper: #fffaf0; --espresso: #2d1710; --red: #a13b2d; --green: #496249; --gold: #c5984b; --ink: #35251e; }

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; color-scheme: light; }
section[id] { scroll-margin-top: 140px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
body {
  overflow-x: hidden;
  background-color: #fffaf0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 8.5%, rgba(63,145,206,.16) 8.5% 10.5%, transparent 10.5% 18%),
    radial-gradient(ellipse at 91% 8%, rgba(243,206,49,.5) 0 5%, transparent 13%),
    radial-gradient(ellipse at 74% 38%, rgba(233,154,160,.5) 0 6%, transparent 17%),
    radial-gradient(ellipse at 7% 22%, rgba(127,156,112,.32) 0 7%, transparent 18%),
    radial-gradient(ellipse at 85% 70%, rgba(127,156,112,.28) 0 6%, transparent 16%),
    radial-gradient(ellipse at 15% 85%, rgba(233,154,160,.4) 0 6%, transparent 17%);
  background-attachment: fixed;
}

/* Sans ça, Chrome/Firefox appliquent leur thème sombre auto aux champs de
   formulaire non stylés quand l'OS est en dark mode : texte tapé en bleu.
   Couleur forcée en dur (pas "inherit") car l'auto-dark de certains
   navigateurs/OS repeint le texte des champs même avec color-scheme:light. */
input, textarea, select { color: #000000 !important; }
input::placeholder, textarea::placeholder { color: rgba(0, 0, 0, 0.45) !important; }

/* Barre de scroll fine et discrète pour le panier (au lieu de la barre
   système par défaut, trop massive visuellement dans un panneau étroit). */
.cart-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 136, 201, 0.4) transparent;
}
.cart-scroll::-webkit-scrollbar { width: 6px; }
.cart-scroll::-webkit-scrollbar-track { background: transparent; }
.cart-scroll::-webkit-scrollbar-thumb { background-color: rgba(52, 136, 201, 0.4); border-radius: 999px; }

html.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html.hide-scrollbar::-webkit-scrollbar { display: none; }

.text-gradient-gold {
  color: #286b9f;
}

.glow-gold {
  box-shadow: 0 0 40px -14px rgba(52, 136, 201, 0.35);
}

.glass-card {
  background: rgba(74, 43, 32, 0.05);
  border: 1px solid rgba(52, 136, 201, 0.3);
}

body { font-family: 'DM Sans', sans-serif; }
.font-display { font-family: 'Playfair Display', serif; }
.font-script { font-family: 'Italiana', serif; }

/* Décor "carnet italien peint main" — repris du design Dolce Vita.
   Réutilisé sur les sections d'accueil et les bannières internes. */
.hand-card {
  border: 3px solid #fff;
  background: #fffdf7;
  box-shadow: 0 18px 0 rgba(52, 140, 202, 0.09), 0 28px 55px rgba(87, 56, 35, 0.09);
}
.stamp-badge {
  border: 2px solid #e5867e;
  color: #bc665e;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(203, 130, 120, 0.19);
}
.postcard {
  border: 3px solid #fff;
  background: #fffaf0;
  box-shadow: 0 25px 0 rgba(232, 142, 140, 0.14), 0 35px 55px rgba(93, 52, 32, 0.2);
}
.ribbon-tag {
  background: #3488c9;
  color: #fff;
  transform: rotate(-9deg);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.paint-note {
  background: #e5867e;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  box-shadow: 0 10px 25px rgba(32, 59, 85, 0.25);
}
.brush-title {
  color: #e27e78;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  position: relative;
}
.wash-blob {
  position: absolute;
  border-radius: 48% 52% 64% 36%;
  filter: blur(35px);
  opacity: .16;
  pointer-events: none;
  animation: blob-drift 14s ease-in-out infinite;
}
.wash-blob:nth-of-type(2) { animation-duration: 18s; animation-direction: reverse; }
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -18px) scale(1.06); }
}

/* Boutons/CTA — micro-interaction cohérente sur tout le site (pilules, liens
   de carte, boutons "Ajouter"). */
.primary, .details button, .text-link,
button[class*="bg-or"], a[class*="bg-or"],
button[class*="bg-espresso"], a[class*="bg-espresso"],
button[class*="bg-gold"], a[class*="bg-gold"] {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background-color .25s ease;
}
.primary:hover, .details button:hover,
button[class*="bg-or"]:hover, a[class*="bg-or"]:hover,
button[class*="bg-espresso"]:hover, a[class*="bg-espresso"]:hover,
button[class*="bg-gold"]:hover, a[class*="bg-gold"]:hover {
  transform: translateY(-2px) scale(1.03);
}
.primary:active, .details button:active,
button[class*="bg-or"]:active, a[class*="bg-or"]:active,
button[class*="bg-espresso"]:active, a[class*="bg-espresso"]:active,
button[class*="bg-gold"]:active, a[class*="bg-gold"]:active {
  transform: scale(.97);
}

/* Soulignement du brush-title qui se dessine à l'arrivée au scroll. */
.brush-title { display: inline-block; }
.brush-title:after {
  content: "";
  display: block;
  height: 2px;
  background: currentColor;
  opacity: .4;
  width: 0%;
  transition: width .8s ease .15s;
}
.reveal.is-visible .brush-title:after,
.brush-title.is-visible:after { width: 100%; }

/* Zoom doux sur les photos produit au survol de la carte (home + catalogue). */
.product-card .photo img, a.hand-card img {
  transition: transform .5s ease;
}
.product-card:hover .photo img, a.hand-card:hover img {
  transform: scale(1.08);
}

/* Logo — petit tilt sympa au survol du lien d'accueil. */
header a[href="/"] img, .brand img {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
header a[href="/"]:hover img, .brand:hover img {
  transform: rotate(-6deg) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .wash-blob { animation: none !important; }
  .primary, .details button, .text-link, [class*="bg-or"], [class*="bg-espresso"], [class*="bg-gold"] { transition: none !important; }
}

/* Scroll-reveal générique — appliqué en JS (assets/js/reveal.js) sur les
   sections/cartes de toutes les pages. Discret : fondu + léger décalage. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticker-sway { animation: none !important; }
}

/* Balancement doux des stickers peints main (tampons, rubans, post-it) —
   rotation de base conservée via --base-rot, amplitude minime pour rester
   discret. */
.sticker-sway { animation: sticker-sway 6s ease-in-out infinite; }
@keyframes sticker-sway {
  0%, 100% { transform: rotate(var(--base-rot, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--base-rot, 0deg) + 3deg)) translateY(-5px); }
}

/* Icône de flèche pour tous les CTA texte+flèche du site — remplace les
   caractères unicode "→"/"↗" mal calés par un cercle qui glisse et se
   remplit au survol. Couleur héritée (currentColor) : lisible sur n'importe
   quel fond de bouton sans réglage au cas par cas. */
.arrow-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px !important; /* isole la taille des vieilles règles unicode (ex. .primary span{font-size:22px} du clone) */
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: .6;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s ease, background-color .25s ease;
}
.arrow-ic svg {
  width: 52%;
  height: 52%;
  stroke: currentColor;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
a:hover .arrow-ic, button:hover .arrow-ic {
  transform: translateX(3px);
  opacity: 1;
}
a:hover .arrow-ic svg, button:hover .arrow-ic svg { transform: translateX(1px); }
a:active .arrow-ic, button:active .arrow-ic { transform: translateX(1px) scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .arrow-ic, .arrow-ic svg { transition: none; }
}

/* Filet de sécurité global : toute animation/transition non couverte
   explicitement ci-dessus (carrousel hero, toggle lactose, etc.) est
   neutralisée pour les utilisateurs qui demandent moins de mouvement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lift doux au survol des cartes "peintes main" (cohérent avec .product-card
   du hero, réutilisé sur les cartes des pages secondaires). */
.hand-card { transition: transform .35s ease, box-shadow .35s ease; }
.hand-card:hover { transform: translateY(-4px); box-shadow: 0 22px 0 rgba(52,140,202,.11), 0 32px 60px rgba(87,56,35,.14); }

/* Bandeaux "carnet italien peint main" — mêmes motifs (rayures diagonales +
   pastilles rondes colorées) que le hero/la sélection de la home, réutilisés
   en fond des bandeaux de titre sur les pages secondaires. */
.motif-band {
  position: relative;
  background-color: #fffaf0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 8.5%, rgba(63,145,206,.16) 8.5% 10.5%, transparent 10.5% 18%),
    radial-gradient(ellipse at 91% 20%, rgba(243,206,49,.55) 0 5%, transparent 13%),
    radial-gradient(ellipse at 74% 84%, rgba(233,154,160,.55) 0 6%, transparent 17%),
    radial-gradient(ellipse at 7% 72%, rgba(127,156,112,.35) 0 7%, transparent 18%);
}
.motif-band-select {
  position: relative;
  background-color: #fffaf0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(61,143,202,.14) 72px 88px, transparent 88px 146px),
    radial-gradient(circle at 8% 12%, rgba(243,199,85,.35) 0 3%, transparent 10%),
    radial-gradient(circle at 94% 80%, rgba(233,154,167,.4) 0 4%, transparent 12%);
}
.motif-band-blue {
  position: relative;
  background-color: #3488c9;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(255,255,255,.13) 88px 104px, transparent 104px 174px),
    radial-gradient(circle at 15% 25%, rgba(240,198,45,.6) 0 5%, transparent 13%),
    radial-gradient(circle at 88% 75%, rgba(234,142,150,.6) 0 6%, transparent 17%);
}

/* Footer bleu du design Dolce Vita — identique sur toutes les pages. */
.site-footer {
  background-color: #286b9f;
  background-image: repeating-linear-gradient(90deg, transparent 0 82px, rgba(255,255,255,.08) 82px 96px, transparent 96px 154px);
  color: #fff;
  padding: 0;
}

/* Flottement des chips d'ingrédients du hero — équivalent de l'animation
   Framer Motion y:[0,-14,0], rotate:[rot, rot+6, rot] en boucle infinie. */
.hero-chip-float {
  width: 100%;
  height: 100%;
  transform: rotate(var(--chip-rot, 0deg));
  animation-name: hero-chip-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes hero-chip-float {
  0%, 100% { transform: translateY(0) rotate(var(--chip-rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--chip-rot, 0deg) + 6deg)); }
}

/* Animations d'entrée du hero — portées 1:1 depuis Framer Motion (valeurs
   initial/animate/transition exactes de hero.tsx). Rejouées à chaque
   changement de saveur via replayEnterAnimations() dans hero.js. */
.hero-anim { opacity: 0; }
.hero-anim-play { animation-fill-mode: forwards; animation-timing-function: ease-in-out; }

.hero-anim-label.hero-anim-play { animation-name: hero-enter-label; animation-duration: 0.5s; }
@keyframes hero-enter-label {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to   { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
}

.hero-anim-product.hero-anim-play { animation-name: hero-enter-product; animation-duration: 0.7s; }
@keyframes hero-enter-product {
  from { opacity: 0; transform: translateY(420px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim-button.hero-anim-play { animation-name: hero-enter-button; animation-duration: 0.4s; animation-delay: 0.2s; }
@keyframes hero-enter-button {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-anim-chip.hero-anim-play { animation-name: hero-enter-chip; animation-duration: 0.7s; }
@keyframes hero-enter-chip {
  from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.4); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 40s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }

/* "À chacun sa box" (accueil) — le mockup carte postale du clone était 100%
   texte, sans visuel produit. On ajoute un médaillon "timbre postal" avec une
   vraie photo de box, en gardant la lisibilité de la carte texte d'origine. */
.postcard { position: relative; }
.postcard-stamp {
  position: absolute;
  top: 28px;
  right: 26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px #5d342033, 0 0 0 1px #8f6e4a44;
  transform: rotate(8deg);
}
.postcard-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section avis (accueil) — le clone ne définit ni .review-grid ni blockquote
   ni .rating, donc la section rendait nue (texte brut, pas de cartes). */
.reviews .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.reviews .rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: #fffdf7;
  border: 3px solid #fff;
  border-radius: 20px;
  padding: 14px 22px;
  box-shadow: 0 14px 0 #3d8cca18, 0 20px 40px #57382317;
}
.reviews .rating strong { font-size: 34px; color: var(--espresso); font-family: "Italiana", serif; }
.reviews .rating span { display: flex; flex-direction: column; gap: 2px; color: var(--gold); font-size: 15px; letter-spacing: 1px; }
.reviews .rating span small { color: #77665b; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  margin-bottom: 32px;
}
.review-grid blockquote {
  position: relative;
  margin: 0;
  background: #fffdf7;
  border: 3px solid #fff;
  border-radius: 24px 24px 24px 6px;
  padding: 34px 26px 24px;
  box-shadow: 0 14px 0 #3d8cca18, 0 22px 45px #57382317;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.review-grid blockquote:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33%, #fffdf7 33% 67%, var(--red) 67% 100%);
  opacity: 0.75;
}
.review-grid blockquote:nth-child(3n+2) { transform: translateY(-10px) rotate(0.3deg); }
.review-grid blockquote:nth-child(3n) { transform: rotate(-0.3deg); }
.review-grid blockquote:hover { transform: translateY(-5px); box-shadow: 0 18px 0 #e894941c, 0 28px 55px #57382325; }
.review-grid .quote-mark {
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: "Italiana", serif;
  font-size: 68px;
  line-height: 1;
  color: var(--red);
  opacity: 0.18;
  pointer-events: none;
}
.review-grid .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.review-grid p {
  color: var(--espresso);
  line-height: 1.65;
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16.5px;
}
.review-grid .review-meta { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #6b452114; }
.review-grid .review-avatar {
  display: flex; align-items: center; justify-content: center; shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(145deg, #c5984b33, #a13b2d22);
  color: var(--espresso); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.review-grid .review-meta-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.review-grid .review-meta-text b { color: var(--espresso); font-weight: 600; font-size: 14px; }
.review-grid .review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--green); }

.review-note {
  text-align: center;
  color: var(--ink);
}
.review-note a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: #fffdf7;
  border: 3px solid #fff;
  border-radius: 28px;
  padding: 48px 32px;
  margin-bottom: 32px;
  box-shadow: 0 14px 0 #3d8cca18, 0 22px 45px #57382317;
}
.reviews-empty .stars-ghost { font-size: 28px; letter-spacing: 4px; color: #c5984b4d; }
