/* ============================================
   L'ATELIER MB — style-2026.css
   Couche enrichissement 10K€ feeling
   - Custom cursor desktop
   - Scroll progress bar
   - Marquee infinie
   - Parallax multi-couches
   - Showreel frame glass
   - Galerie masonry
   - Glass review cards
   - Gradient mesh final-cta
   ============================================ */

/* ---------- 1. CUSTOM CURSOR (desktop) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: transform 0.06s linear, opacity 0.2s ease;
}
.cursor-ring {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  transition: transform 0.2s var(--ease-out), width 0.25s var(--ease-out),
              height 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              opacity 0.2s ease, background 0.25s ease;
}
.cursor-ring.hovering {
  width: 56px; height: 56px;
  background: rgba(168, 132, 92, 0.12);
  border-color: var(--color-accent);
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .btn, input, textarea, select, [role="button"] { cursor: none; }
}

/* ---------- 2. SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-pale));
  z-index: 9998;
  box-shadow: 0 0 14px var(--color-glow);
  pointer-events: none;
  will-change: width;
  transition: width 0.06s linear;
}

/* ---------- 3. HERO TITLE — Fraunces variable + glow soft ---------- */
.hero-title {
  font-variation-settings: "opsz" 120, "wght" 300, "SOFT" 50;
}
.hero-title em {
  font-variation-settings: "opsz" 144, "wght" 300, "SOFT" 100;
}

/* ---------- 4. MARQUEE BAND ---------- */
.marquee-band {
  background: var(--color-bg-darker);
  color: var(--color-text-on-dark);
  overflow: hidden;
  padding: 1.1rem 0;
  position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg-darker), transparent);
}
.marquee-band::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-bg-darker), transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  animation: marquee-scroll 70s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.02rem;
  color: rgba(244, 239, 231, 0.86);
  letter-spacing: 0.005em;
  flex-shrink: 0;
}
.marquee-item strong {
  color: var(--color-accent-pale);
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
}
.marquee-sep {
  color: var(--color-accent);
  opacity: 0.6;
  font-size: 1.1rem;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 5. PARALLAX FIGURE (about) ---------- */
.about-figure {
  aspect-ratio: 4/5;
  position: relative;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.about-figure-img,
.about-figure-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.about-figure-img {
  z-index: 1;
  transition: transform 1.6s var(--ease-out);
}
.about-figure-overlay {
  z-index: 2;
  width: 52%;
  height: 44%;
  bottom: 6%;
  left: 6%;
  top: auto;
  right: auto;
  border-radius: var(--radius);
  border: 6px solid var(--color-bg);
  box-shadow: 0 24px 60px -16px rgba(26, 20, 16, 0.4);
  object-position: center;
}
.about-figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 20, 16, 0.25));
  pointer-events: none;
  z-index: 3;
}
.about-figure-stamp {
  position: absolute;
  z-index: 4;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(168, 132, 92, 0.4);
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: var(--radius);
  text-align: right;
  display: flex; flex-direction: column;
  gap: 0.1rem;
}
.about-figure-stamp em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-accent);
  font-weight: 400;
  line-height: 1;
}
.about-figure-stamp small {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
@media (hover: hover) {
  .about-figure:hover .about-figure-img { transform: scale(1.04); }
}

/* ---------- 6. SHOWREEL VIDEO FRAME ---------- */
.showreel {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 132, 92, 0.08), transparent 55%),
    var(--color-bg-soft);
  position: relative;
}
.showreel-frame {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto 0;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  box-shadow:
    0 30px 80px -20px rgba(26, 20, 16, 0.30),
    inset 0 0 0 1px rgba(168, 132, 92, 0.08);
}
.showreel-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.showreel-corner {
  position: absolute;
  width: 28px; height: 28px;
  z-index: 3;
  pointer-events: none;
}
.showreel-corner-tl {
  top: 14px; left: 14px;
  border-top: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
}
.showreel-corner-tr {
  top: 14px; right: 14px;
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
}
.showreel-corner-bl {
  bottom: 14px; left: 14px;
  border-bottom: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
}
.showreel-corner-br {
  bottom: 14px; right: 14px;
  border-bottom: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
}

/* ---------- 7. DISHES 6-COL GRID (signatures) ---------- */
.dishes-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}
@media (max-width: 1000px) {
  .dishes-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .dishes-grid-6 { grid-template-columns: 1fr; }
}

/* ---------- 8. GALLERY MASONRY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
  margin: 0;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.5s var(--ease);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 20, 16, 0.65));
  z-index: 1;
  opacity: 0.75;
  transition: opacity 0.4s var(--ease);
}
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 1rem;
  left: 1.1rem; right: 1.1rem;
  z-index: 2;
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  line-height: 1.3;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.08); filter: brightness(1.05); }
  .gallery-item:hover::before { opacity: 1; }
}
.gallery-item-tall { grid-column: span 2; grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; grid-row: span 1; }
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item-tall { grid-column: span 2; grid-row: span 2; }
  .gallery-item-wide { grid-column: span 2; grid-row: span 1; }
}
.gallery-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-soft);
}

/* ---------- 9. GLASS REVIEW CARDS ---------- */
.review-card-glass {
  background:
    linear-gradient(135deg, rgba(251, 247, 239, 0.7), rgba(251, 247, 239, 0.35)),
    rgba(245, 239, 230, 0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(168, 132, 92, 0.2);
  box-shadow: 0 24px 60px -28px rgba(26, 20, 16, 0.18);
  transition: all 0.5s var(--ease);
}
@media (hover: hover) {
  .review-card-glass:hover {
    border-color: rgba(168, 132, 92, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 32px 80px -24px rgba(26, 20, 16, 0.22);
  }
}

/* ---------- 10. CONTACT MAP — Google iframe ---------- */
.contact-map-frame {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: 0 24px 60px -28px rgba(26, 20, 16, 0.2);
  filter: grayscale(0.08) contrast(1.02) sepia(0.04);
  background: var(--color-bg-soft);
}
.contact-map-frame iframe {
  width: 100%; height: 100%;
  display: block;
}

/* ---------- 11. SECTION DIVIDERS ---------- */
.section + .quiet,
.quiet + .section,
.section + .showreel,
.showreel + .section,
.section-alt + .section,
.section + .section-alt,
.showreel + .section-alt {
  position: relative;
}
.quiet::before,
.showreel::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.6;
}

/* ---------- 12. SCROLLBAR ---------- */
@media (pointer: fine) {
  body::-webkit-scrollbar { width: 10px; }
  body::-webkit-scrollbar-track { background: var(--color-bg-soft); }
  body::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--color-accent-soft), var(--color-accent));
    border-radius: 5px;
    border: 2px solid var(--color-bg-soft);
  }
}

/* ---------- 13. COUNTER REFINEMENTS ---------- */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.018em;
}

/* ---------- 14. BUTTON SHIMMER ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 239, 231, 0.35), transparent);
  transition: left 0.7s var(--ease);
}
@media (hover: hover) {
  .btn-primary:hover::before { left: 100%; }
}

/* ---------- 15. PAGE PRESTATIONS HERO ---------- */
.page-hero {
  padding: clamp(7rem, 14vh, 9rem) 0 clamp(3rem, 6vh, 5rem);
  position: relative;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(168, 132, 92, 0.10), transparent 55%),
    linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-line-soft);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-decor {
  position: absolute;
  right: -5%;
  top: 30%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 132, 92, 0.18), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
