/* ==================================================================
 * Direction A — effets au défilement (chargé seulement sur l'aperçu)
 * ================================================================== */

/* Barre de progression dorée sous l'en-tête */
.da-fx-progress { position: fixed; left: 0; right: 0; top: var(--da-header-h); height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--da-gold-deep, #9c7a2b), var(--da-sky, #8cc6ea));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Apparitions */
.da-fx [data-fx] { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), clip-path 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--fx-delay, 0ms); will-change: opacity, transform; }
.da-fx [data-fx="up"] { opacity: 0; transform: translate3d(0, 38px, 0); }
.da-fx [data-fx="spin"] img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .8s; opacity: 0; transform: rotate(-25deg) scale(.6); }
.da-fx [data-fx="spin"].is-in img { opacity: 1; transform: none; }
.da-fx [data-fx="pop"] { opacity: 0; transform: scale(.35) rotate(-16deg); transition: transform .9s cubic-bezier(.34,1.56,.64,1), opacity .45s ease; transition-delay: var(--fx-delay, 0ms); }
.da-fx [data-fx].is-in { opacity: 1; transform: none; }

/* Survol des cartes : léger soulèvement */
.da-fx .da-tile, .da-fx .da-pillar > a, .da-fx .da-shelf__item { transition: transform .35s ease, box-shadow .35s ease; }
.da-fx .da-tile:hover, .da-fx .da-shelf__item:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(12,48,84,.55); }

/* Parallaxe */
.da-fx .da-hero__img, .da-fx .da-hero__alt-bonbon, .da-fx .da-atelier__bg { will-change: transform; }

@media (min-width: 1024px) {
  /* Tiroirs : la section reste en place, la suivante glisse par-dessus */
  .da-fx .da-fx-drawer { position: sticky; }
  .da-fx .da-fx-drawer > * { transition: none; transform: scale(calc(1 - var(--fx-cover, 0) * .05)); transform-origin: 50% 0;
    filter: brightness(calc(1 - var(--fx-cover, 0) * .18)); }
  .da-fx .da-fx-cover:not(.da-fx-drawer) { position: relative; }
  .da-fx .da-fx-cover { border-radius: 34px 34px 0 0;
    box-shadow: 0 -26px 50px -20px rgba(12,48,84,.35); }

  /* Galerie des parfums épinglée, défilement horizontal piloté par la molette */
  .da-fx .da-fx-pin { position: relative; }
  .da-fx .da-fx-pinned { position: sticky; z-index: 3; display: flex; flex-direction: column; justify-content: center; }
  .da-fx .da-fx-pinned > .da-wrap { width: 100%; }
  .da-fx .da-fx-pinned .da-shelf { scroll-behavior: auto; scroll-snap-type: none; }
}

@media (prefers-reduced-motion: reduce) {
  .da-fx [data-fx] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ==================================================================
   Ouverture de l'accueil (hero) + effet 3D
   ================================================================== */
.da-fx .da-hero { --tx: 0; --ty: 0; --sy: 0; --sz: 0; perspective: 1400px; }
.da-fx .da-hero picture { display: block; overflow: hidden; } /* 14/11 : l'image agrandie (x1.07) ne déborde plus du cadre, sinon elle dépasse des fondus blancs sur tablette */
.da-fx .da-hero__img { transform: translate3d(calc(var(--tx) * -22px), calc(var(--ty) * -14px), 0) scale(1.07); /* 16/11 : plus de descente ni de zoom au scroll, bandeau fixe comme la photo du lac */ will-change: transform; }
.da-fx .da-clouds { transform: translate3d(calc(var(--tx) * 10px), calc(var(--ty) * 6px), 0); }
.da-fx .da-hero__text { transform: translate3d(calc(var(--tx) * 16px), calc(var(--ty) * 10px), 0); }
.da-fx .da-ribbon-h, .da-fx .da-ribbon-v, .da-fx .da-edge, .da-fx .da-seal, .da-fx .da-hero__badge {
  transform: translate3d(calc(var(--tx) * 26px), calc(var(--ty) * 16px), 0); }

/* État de départ (avant la séquence) */
.da-fx-intro .da-hero__stage { background: #fff; }
.da-fx-intro picture { opacity: 0; }
.da-fx-intro .da-hero__alt { visibility: hidden; }
.da-fx-intro .da-clouds { opacity: 0; }
.da-fx-intro .da-ribbon-h { clip-path: inset(0 100% 0 0); }
.da-fx-intro .da-ribbon-v { clip-path: inset(0 0 100% 0); }
.da-fx-intro .da-edge { opacity: 0; }
.da-fx-intro .da-seal { opacity: 0; }
.da-fx-intro .da-hero__title, .da-fx-intro .da-hero__subtitle { opacity: 0; transform: translateY(26px); letter-spacing: .12em; }
.da-fx-intro .da-hero__badge { opacity: 0; }

/* Séquence : 1. fondu du blanc vers l'image — 2. les rubans se déroulent — 3. le sceau — 4. le titre */
.da-fx-intro.is-play picture { transition: opacity 1.6s ease; }
.da-fx-intro.is-play .da-clouds { transition: opacity 1.6s ease .6s; }
.da-fx-intro.is-play .da-ribbon-h { transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) .9s; }
.da-fx-intro.is-play .da-ribbon-v { transition: clip-path 1s cubic-bezier(.7,0,.2,1) 1.35s; }
.da-fx-intro.is-play .da-edge { transition: opacity .4s ease 1.6s; }
.da-fx-intro.is-play .da-seal { transition: opacity .9s ease 1.9s; } /* blason : simple fondu */
.da-fx-intro.is-play .da-hero__title { transition: opacity .9s ease 1.1s, transform 1.1s cubic-bezier(.2,.7,.2,1) 1.1s, letter-spacing 1.4s ease 1.1s; }
.da-fx-intro.is-play .da-hero__subtitle { transition: opacity .9s ease 1.4s, transform 1.1s cubic-bezier(.2,.7,.2,1) 1.4s, letter-spacing 1.4s ease 1.4s; }
.da-fx-intro.is-play .da-hero__badge { transition: opacity .8s ease 2.2s; }

.da-fx-intro.is-play picture { opacity: 1; }
.da-fx-intro.is-play .da-hero__alt { visibility: visible; }
.da-fx-intro.is-play .da-clouds, .da-fx-intro.is-play .da-edge,
.da-fx-intro.is-play .da-seal, .da-fx-intro.is-play .da-hero__badge { opacity: 1; }
.da-fx-intro.is-play .da-ribbon-h, .da-fx-intro.is-play .da-ribbon-v { clip-path: inset(0 0 0 0); }
.da-fx-intro.is-play .da-hero__title, .da-fx-intro.is-play .da-hero__subtitle { opacity: 1; transform: none; letter-spacing: normal; }

@media (prefers-reduced-motion: reduce) {
  .da-fx-intro picture, .da-fx-intro .da-clouds, .da-fx-intro .da-edge, .da-fx-intro .da-seal, .da-fx-intro .da-seal img,
  .da-fx-intro .da-hero__title, .da-fx-intro .da-hero__subtitle, .da-fx-intro .da-hero__badge, .da-fx-intro .da-ribbon-h, .da-fx-intro .da-ribbon-v
  { opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; letter-spacing: normal !important; }
  .da-fx-intro .da-hero__alt { visibility: visible !important; }
}

/* Reflet satiné qui court une fois sur les rubans une fois déroulés */
.da-fx .da-ribbon-h::after, .da-fx .da-ribbon-v::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 300% 100%; background-position: 120% 0; }
.da-fx .da-ribbon-v::after { background: linear-gradient(195deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 100% 300%; background-position: 0 120%; }
.da-fx .da-fx-intro.is-play .da-ribbon-h::after { animation: da-fx-sheen-h 1.4s ease 2.1s both; }
.da-fx .da-fx-intro.is-play .da-ribbon-v::after { animation: da-fx-sheen-v 1.4s ease 2.4s both; }
.da-fx .da-hero.is-live .da-ribbon-h::after { animation: da-fx-sheen-loop 9s ease-in-out 3s infinite; }
@keyframes da-fx-sheen-loop { 0% { background-position: 120% 0; } 18%, 100% { background-position: -20% 0; } }
@keyframes da-fx-sheen-h { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes da-fx-sheen-v { from { background-position: 0 120%; } to { background-position: 0 -20%; } }

/* ==================================================================
   Bonbon fixe à gauche du logo (bandeau du haut)
   ================================================================== */
.da-fx-bonbon { position: fixed; left: 0; top: 0; z-index: 70; display: block; opacity: 0; transition: opacity .8s ease; cursor: pointer; }
.da-fx-ready .da-fx-bonbon { opacity: 1; }
.da-fx-bonbon img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.da-fx-bonbon:hover img { animation: da-fx-wiggle .6s ease; }
@keyframes da-fx-wiggle { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-12deg) scale(1.08); } 65% { transform: rotate(8deg); } }
/* ==================================================================
   Gros plan : le bonbon se reconstitue au défilement
   ================================================================== */
.da-fx-bb { position: relative; background: var(--da-paper, #fbf8f1); }
.da-fx-bb__sticky { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 28px 16px 40px; overflow: hidden; }
.da-fx-bb__stage { position: relative; width: min(480px, 78vw, 52vh); aspect-ratio: 1033 / 973; transform: scale(var(--bb-pop, 1)); }
.da-fx-bb__stage img { position: absolute; display: block; height: auto; max-width: none; }
.da-fx-bb__right { left: 44.05%; top: 26.10%; width: 49.37%; }
.da-fx-bb__left { left: 5.81%; top: 26.10%; width: 49.37%; }
.da-fx-bb__center { left: 24.59%; top: 0.00%; width: 49.76%; }
.da-fx-bb__drop { left: 57.41%; top: 68.76%; width: 14.13%; }
.da-fx-bb__leaf-l { left: 0.00%; top: 55.91%; width: 49.95%; }
.da-fx-bb__leaf-r { left: 49.95%; top: 55.91%; width: 50.05%; }

.da-fx-bb__text { text-align: center; max-width: 640px; position: relative; z-index: 2; }
.da-fx-bb__text .da-h2 { margin: 6px 0 0; }
.da-fx .da-fx-bb { height: 215vh; }
.da-fx-bb__track { width: 100%; display: flex; justify-content: center; }
.da-fx .da-fx-bb__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
.da-fx .da-fx-bb__sticky { position: sticky; top: var(--da-header-h, 84px); height: calc(100vh - var(--da-header-h, 84px)); box-sizing: border-box; }
.da-fx .da-fx-bb__stage img { will-change: transform, opacity; transform-origin: 50% 50%; }
.da-fx .da-fx-bb__text .da-kicker { opacity: 0; }
.da-fx .da-fx-bb__w { display: inline-block; opacity: 0; will-change: transform, opacity, filter; transform-origin: 0 100%; }
/* la piste remonte jusqu'en haut de la zone : le bonbon central sort de sous le cadre bleu */
.da-fx .da-fx-bb__track { margin-top: -70vh; padding-top: 70vh; }
@media (max-width: 1023.98px) { .da-fx .da-fx-bb { height: 195vh; } }
@media (max-width: 767.98px) {
  .da-fx .da-fx-bb__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
}

/* 15/11/2026 : le titre descend sur le bonbon central une fois les autres pièces parties */
.da-fx .da-fx-bb__text { will-change: transform; }
.da-fx .da-fx-bb__text .da-h2 { transition: text-shadow .3s ease; }
.da-fx .da-fx-bb__text.is-over .da-h2 { text-shadow: 0 0 10px #fff, 0 0 18px #fff, 0 0 3px #fff; }

/* 15/11/2026 : les deux sapins du logo incrustés dans le bonbon central (ambre doré, image déjà découpée à la forme du bonbon : pas de masque CSS, mal géré par Safari), en fin d'animation */
.da-fx-bb__forest { position: absolute; left: 24.59%; top: 0; width: 49.76%; aspect-ratio: 411 / 630; pointer-events: none;
  background: url(/images/direction-a/bb-forest.webp) center / 100% 100% no-repeat; }
.da-fx-bb__forest i { display: none; }
.da-fx .da-fx-bb__forest { opacity: 0; will-change: transform, opacity; }

/* Le bonbon sort en douceur : voile blanc en haut de la section, fondu vers la transparence */
.da-fx .da-fx-bb::before { content: ''; position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 220px; pointer-events: none; background: linear-gradient(to bottom, var(--da-paper, #fff) 0%, var(--da-paper, #fff) 10%, rgba(255,255,255,.72) 45%, rgba(255,255,255,0) 100%); }
@media (max-width: 767.98px) { .da-fx .da-fx-bb::before { height: 170px; } }

/* Pas de filet gris entre le bloc des preuves et le bonbon : le fondu blanc fait la transition */
.da-fx .da-proof { border-bottom: 0; }
