/* Thème Finca · « la véranda » (06/12/2026, direction A choisie sur aperçu par Timour, né pour Medellin Coffee 74).
   En fin de journée, la véranda d'une ferme à café au-dessus des collines ; le logo de la boutique devant la vue.
   « Entrer dans la finca » : on avance vers la vallée, et le catalogue est le séchoir à café vu de haut : chaque produit
   est dans un sac de jute. Trois couches, posées par finca.js (même squelette que Mine) :
     #fc-vue      (derrière tout)   la terre cuite du séchoir
     le catalogue (dans la page)    les dalles du séchoir, qui défilent avec les sacs
     #fc-avant    (par-dessus)      la véranda, le logo, le bouton ; tout s'efface au passage
   États sur <body> : fc-accueil → fc-bord. fc-hors = on n'est pas sur l'onglet Produits.
   La profondeur : finca.js écrit --px et --py (de -1 à 1) ; le décor et le logo glissent chacun à sa distance.
   Aucune ombre molle : les reliefs sont des rebords nets (retour de Timour sur la boutique de Snoop). */
body[data-vitrine="finca"] #cl-vitrine > :is(.cl-hero, .cl-bande, .cl-rayons) { display: none !important; }
/* #fc-vue est derrière la page (z-index -1) : le fond de <body> le cacherait, on le rend transparent et on peint <html>. */
body[data-vitrine="finca"][data-glossy="candy"] { background: transparent !important; }
html:has(body[data-vitrine="finca"]) { background: #160d08 !important; }
body[data-vitrine="finca"].fc-accueil #cl-barre { display: none !important; }

#fc-vue, #fc-avant { position: fixed; inset: 0; overflow: hidden; container-type: inline-size; }
#fc-vue { z-index: -1; background: radial-gradient(circle at 50% 38%, #7a3a1c, #160d08 68%); }
#fc-avant { z-index: 2; pointer-events: none; }
body.fc-hors #fc-avant { display: none; }
/* Grand écran : l'app reste une colonne à la taille d'un téléphone, le décor ne déborde pas. */
@media (min-width: 600px) {
  #fc-vue, #fc-avant { left: 50%; right: auto; width: 56.25svh; translate: -50% 0; }
}
/* La boîte de la planche (9:16) : calée en bas, elle couvre toujours l'écran. */
.fc-cadre { position: absolute; left: 50%; bottom: 0; width: max(100cqw, 56.25svh); aspect-ratio: 9 / 16; translate: -50% 0; }
.fc-cadre img { display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.fc-plein { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Par-dessus : la véranda ---------- */
/* Le point de fuite est la vallée, entre le poteau et le soleil : c'est vers elle qu'on avance. */
.fc-plan { translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 6px); scale: 1.03; transform-origin: 62% 27%; will-change: transform; transition: transform .9s cubic-bezier(.6,0,.25,1), opacity .45s .4s; }
/* Le soleil bas sur les collines : sa lueur respire. Posée sur celui de la planche (91 % · 13,5 %). */
.fc-flamme { position: absolute; left: 91%; top: 13.5%; width: 44%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen; opacity: .5;
  background: radial-gradient(circle, rgba(255,214,120,.85), rgba(255,170,60,.3) 38%, rgba(255,170,60,0) 68%); }
.fc-anime .fc-flamme { animation: fc-flamme 3.4s ease-in-out infinite; }
@keyframes fc-flamme { 0%, 100% { opacity: .5; scale: 1; } 22% { opacity: .78; scale: 1.08; } 40% { opacity: .42; scale: .96; } 63% { opacity: .7; scale: 1.05; } 80% { opacity: .5; } }
/* Le passage : on avance vers la vallée jusqu'à la lumière. */
body.fc-bord .fc-plan { transform: scale(3.6); opacity: 0; }
body.fc-bord #fc-avant { visibility: hidden; transition: visibility 0s .95s; }

/* Le logo de la boutique devant l'entrée. Il flotte à peine. */
.fc-nom { position: absolute; left: 50%; top: max(14svh, calc(env(safe-area-inset-top) + 26px)); width: min(80cqw, 40svh); margin: 0; translate: calc(-50% + var(--px, 0) * -6px) calc(var(--py, 0) * -4px); transition: opacity .3s; }
.fc-nom img { display: block; width: 100%; height: auto; max-height: 52svh; object-fit: contain; }
.fc-anime .fc-nom { animation: fc-pose .7s .15s cubic-bezier(.34,1.4,.64,1) both; }
@keyframes fc-pose { from { opacity: 0; scale: .7; } }
.fc-anime .fc-nom img { animation: fc-flotte 5s 1s ease-in-out infinite; }
@keyframes fc-flotte { 50% { translate: 0 -7px; } }
.fc-nom.fc-coup img { animation: fc-coup .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes fc-coup { 40% { scale: 1.05; rotate: -1.5deg; } }
/* Le logo répond au doigt. */
.fc-touche { position: absolute; left: 12%; top: 16svh; width: 76%; height: 42svh; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Le bouton : or verni, texte et contour brun café du lettrage, un rebord net dessous. */
.fc-go {
  position: absolute; left: 50%; bottom: calc(112px + env(safe-area-inset-bottom) + 2.5svh); translate: -50% 0; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px 18px 30px; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; white-space: nowrap;
  border: 3.5px solid #3b2314; border-radius: 999px; color: #3b2314; font: 900 19px/1 'Poppins', system-ui, sans-serif; letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 46%), linear-gradient(180deg, #ffd84a, #ffb400 62%, #f29a00);
  box-shadow: 0 7px 0 #3b2314;
}
.fc-go svg { width: 12px; height: 17px; fill: none; stroke: #3b2314; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.fc-anime .fc-go { animation: fc-monte .6s .5s cubic-bezier(.34,1.4,.64,1) both; }
@keyframes fc-monte { from { opacity: 0; translate: -50% 26px; } }
.fc-anime .fc-go svg { animation: fc-appel 1.6s ease-in-out infinite; }
@keyframes fc-appel { 50% { translate: 5px 0; } }
.fc-go:active { translate: -50% 5px; box-shadow: 0 2px 0 #3b2314; }
body.fc-bord :is(.fc-nom, .fc-go, .fc-touche) { opacity: 0; pointer-events: none; animation: none; }
.fc-grain { position: fixed; z-index: 9999; width: 10px; aspect-ratio: 1; border-radius: 3px; pointer-events: none; background: var(--c, #ffc629); }
/* Hors du catalogue (panier, infos, avis, contact) : le séchoir reste derrière, assombri pour laisser lire les panneaux. */
#fc-vue::after { content: ""; position: absolute; inset: 0; background: rgba(22,13,8,.6); opacity: 0; transition: opacity .4s; }
body.fc-hors #fc-vue::after { opacity: 1; }

/* ---------- Le catalogue : le séchoir à café ---------- */
#fc-monde { display: none; }
/* Les dalles du séchoir sont le fond du catalogue lui-même : elles défilent avec les sacs. La tuile se répète sans raccord. */
body.fc-bord #fc-monde {
  display: block; box-sizing: border-box; min-height: 100svh; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 22px) 5% 170px;
  background: #b5532d url("heros/patio.webp?v=1") center top / 100% auto repeat-y;
  border-top: 16px solid #6b4423; box-shadow: inset 0 5px 0 #2a160a; /* la poutre de la véranda, au-dessus de la tête */
}
@media (min-width: 600px) { body.fc-bord #fc-monde { width: 56.25svh; } }
/* La poutre de la véranda touche le haut de l'écran : sur le catalogue, la marge haute du moteur (70 px + 24 px) laissait une bande noire vide. */
body[data-vitrine="finca"].fc-bord:not(.fc-hors) #appContent { padding-top: 0 !important; }
body[data-vitrine="finca"].fc-bord:not(.fc-hors) #shoppingSection { margin-top: 0 !important; }
.fc-anime#fc-monde { animation: fc-entre .6s .3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes fc-entre { from { opacity: 0; scale: 1.12; } }
.fc-rayon + .fc-rayon { margin-top: 30px; }
/* Le nom du rayon : une plaque crème vissée. */
.fc-rayon h2 { display: inline-flex; align-items: center; margin: 0 0 14px; padding: 10px 18px; border-radius: 12px; border: 3px solid #3b2314;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0) 50%), #fff3d6; color: #3b2314; font: 900 15px/1 'Poppins', system-ui, sans-serif; letter-spacing: .03em; box-shadow: 0 4px 0 #3b2314; }
.fc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding-bottom: 28px; }
/* Une fiche : un sac de jute posé sur le séchoir. La colonne de droite est un demi-sac plus bas. */
.fc-carte { position: relative; display: flex; flex-direction: column; cursor: pointer; }
.fc-carte:nth-child(even) { top: 28px; }
.fc-anime .fc-rayon:not(.fc-vu) .fc-carte { opacity: 0; }
.fc-anime .fc-rayon.fc-vu .fc-carte { animation: fc-arrive .5s calc(var(--n) * 70ms) cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes fc-arrive { from { opacity: 0; translate: 0 22px; scale: .92; } 60% { opacity: 1; } }
.fc-carte.fc-tenu { scale: .97; }
/* Le sac : la photo du commerçant est dans sa fenêtre cousue, la toile passe devant ses bords.
   La fenêtre mesurée sur heros/sac.webp (preparer-finca.py) : 16,4 % à gauche, 16,6 % à droite, 14,4 % en haut, 15,5 % en bas. */
.fc-photo { position: relative; width: 100%; aspect-ratio: 1; }
.fc-photo::before { content: ""; position: absolute; inset: 13.4% 15.6% 14.5% 15.4%; background: linear-gradient(165deg, #fff8e8, #efe2c6); }
.fc-photo > :is(img, video) { position: absolute; left: 15.4%; top: 13.4%; width: 69%; height: 72.1%; display: block; object-fit: cover; }
.fc-photo::after { content: ""; position: absolute; inset: 0; background: url("heros/sac.webp?v=1") center / 100% 100% no-repeat; pointer-events: none; }
/* L'étiquette du sac : crème, le nom, le prix, le + vert. */
.fc-plaque { position: relative; display: flex; flex-direction: column; gap: 4px; margin: -9% 2% 0; padding: 9px 46px 10px 11px; min-height: 56px; box-sizing: border-box; justify-content: center;
  border: 2.5px solid #3b2314; border-radius: 12px; box-shadow: 0 5px 0 #3b2314;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0) 46%), #fff3d6; }
.fc-plaque b { font: 800 13.5px/1.2 'Poppins', system-ui, sans-serif; color: #3b2314; overflow-wrap: anywhere; }
.fc-prix { font: 900 15px/1 'Poppins', system-ui, sans-serif; color: #2f7d32; }
.fc-prix small { font-weight: 700; font-size: 11px; color: #6b4423; }
#fc-monde .fc-plus { position: absolute; right: 6px; top: 50%; left: auto; bottom: auto; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 2.5px solid #3b2314 !important; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 48%), linear-gradient(180deg, #7fd05a, #3f9a3a) !important; box-shadow: none !important; }
#fc-monde .fc-plus svg { width: 18px; height: 18px; fill: none; stroke: #3b2314; stroke-width: 3.6; stroke-linecap: round; }
#fc-monde .fc-plus:active { scale: .88; }
.fc-vide { padding: 24px 16px; text-align: center; border-radius: 16px; border: 3px solid #3b2314; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0) 50%), #fff3d6; color: #3b2314; box-shadow: 0 5px 0 #3b2314; }
.fc-vide b { display: block; margin-bottom: 4px; font: 900 19px/1.2 'Poppins', system-ui, sans-serif; }
.fc-vide span { font: 600 13.5px/1.4 'Poppins', system-ui, sans-serif; opacity: .85; }
/* Le produit ajouté descend vers le panier de cueilleur. */
.fc-envol { position: fixed; z-index: 9999; border-radius: 10px; object-fit: cover; pointer-events: none; outline: 2.5px solid #3b2314; }

@media (prefers-reduced-motion: reduce) {
  .fc-go svg, .fc-nom img, .fc-flamme { animation: none; }
  .fc-plan { transition: none; }
}
