/* ═══════════════════════════════════════════════
   YES MY EVENT — shared.css
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@200;300;400;500&display=swap');

/* Custom display font for hero title */
@font-face {
  font-family: 'TAN MON CHERI';
  src: url('TAN-MON-CHERI-Regular.woff2') format('woff2'),
       url('TAN-MON-CHERI-Regular.ttf') format('truetype'),
       url('TAN-MON-CHERI-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #F7F3EE;
  --bg2:       #FAF7F3;
  --text:      #18140f;
  --text-muted:#7a6f63;
  --gold:      #c8a96e;
  --gold-light:#dfc08a;
  --gold-dark: #a8874e;
  --white:     #fdfaf7;
  --border:    rgba(24,20,15,0.11);
  --nav-h:     88px;
  --side:      clamp(1.5rem, 5vw, 6rem);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --ease:      cubic-bezier(0.25,0.46,0.45,0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; max-width: 100%; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  cursor: none;
  position: relative;
}
/* Prevent image download: no drag, no selection, no right-click (see shared.js) */
img,
.hero-photo,
.founder-img,
.u-card-photo,
.p-item,
.ap-hero-bg,
.ap-founder-img-frame,
.ap-photo,
.ap-identity-img,
.ap-identity-img-frame,
.ap-philo-img,
.ap-engagement-img,
.ap-engagement-img-frame,
.ap-marrakech-img-full,
.uv-hero-bg,
.uv-img-bg,
.uv-img-side,
.pf-hero-bg,
.pf-item,
.ct-hero-bg,
.ap-step-frame-img,
.lb-img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
img {
  display: block;
  width: 100%;
}
a { text-decoration: none; color: inherit; }

/* ─── CURSOR ─── */
.cursor {
  position: fixed; z-index: 9999;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.25s;
  will-change: left, top;
  mix-blend-mode: exclusion;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.7);
}
.cursor-ring {
  position: fixed; z-index: 9998;
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width 0.35s, height 0.35s, border-color 0.35s, opacity 0.35s;
  will-change: left, top;
  mix-blend-mode: exclusion;
  background: rgba(200,169,110,0.07);
}
.cursor.hover { width: 12px; height: 12px; background: #fff; box-shadow: 0 0 0 1.5px rgba(200,169,110,0.8); }
.cursor-ring.hover { width: 52px; height: 52px; border-color: #fff; background: rgba(255,255,255,0.05); }

/* ─── NAV ─── */
nav#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 500;
  transition: background 0.5s, box-shadow 0.5s;
}
nav#mainNav.scrolled {
  background: rgba(247,243,238,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--side);
}
.nav-left, .nav-right {
  list-style: none;
  display: flex; align-items: center; gap: 2.2rem;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text); cursor: none;
  position: relative; padding-bottom: 2px;
  transition: color 0.3s;
}
.nav-left a::after, .nav-right a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-left a:hover, .nav-right a:hover { color: var(--gold-dark); }
.nav-left a:hover::after, .nav-right a:hover::after { width: 100%; }
.nav-left a.nav-active::after, .nav-right a.nav-active::after { width: 100%; background: var(--gold); }

/* Language switcher (FR | EN) */
.lang-switcher { margin-left: 0.5rem; }
.lang-switcher .lang-link {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  padding: 0.25rem 0.5rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 2px;
}
nav#mainNav:not(.scrolled) .lang-switcher .lang-link { color: #ffffff; border-color: #a8874e; background-color: #c8a96e!important; }
.lang-switcher .lang-link:hover { color: var(--gold-light); border-color: var(--gold); }
nav#mainNav.scrolled .lang-switcher .lang-link { color: var(--text-muted); border-color: var(--border); }
nav#mainNav.scrolled .lang-switcher .lang-link:hover { color: var(--gold-dark); border-color: var(--gold); }
.footer-lang { margin-left: 0.5rem; }
.footer-nav .footer-lang a { font-size: 0.6rem; opacity: 0.8; }

/* Hero page: white links */
nav#mainNav:not(.scrolled) .nav-left a,
nav#mainNav:not(.scrolled) .nav-right a { color: rgba(255,255,255,0.88); }
nav#mainNav:not(.scrolled) .nav-left a:hover,
nav#mainNav:not(.scrolled) .nav-right a:hover { color: var(--gold-light); }
nav#mainNav:not(.scrolled) .nav-left a::after,
nav#mainNav:not(.scrolled) .nav-right a::after { background: var(--gold-light); }

/* Contact CTA button in nav */
.nav-cta {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5rem 1.3rem !important;
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}
nav#mainNav:not(.scrolled) .nav-cta { border-color: rgba(255,255,255,0.5); }
nav#mainNav.scrolled .nav-cta { border-color: var(--border) !important; color: var(--text) !important; }
.nav-cta:hover { background: var(--text) !important; color: var(--white) !important; border-color: var(--text) !important; }
nav#mainNav:not(.scrolled) .nav-cta:hover { background: var(--white) !important; color: var(--text) !important; }
.nav-cta::after { display: none !important; }

/* Logo */
.nav-logo {
  display: flex; flex-direction: column; align-items: center;
  cursor: none; text-align: center; line-height: 1.1;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.75; }
.logo-main {
  font-family: 'TAN MON CHERI';
  font-size: 1.3rem; font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: color 0.4s;
}
nav#mainNav:not(.scrolled) .logo-main { color: #fff; }
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.52rem; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.4s;
}
nav#mainNav:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.6); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none;
  padding: 8px; position: relative; z-index: 600;
}
.hamburger span {
  display: block; width: 22px; height: 1px;
  background: var(--text); transition: all 0.4s var(--ease);
  transform-origin: center;
}
nav#mainNav:not(.scrolled) .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--text) !important; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--text) !important; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 510;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-nav.open { opacity: 1; visibility: visible; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 300; font-style: italic;
  color: var(--text); cursor: none;
  transition: color 0.3s; letter-spacing: 0.03em;
}
.mobile-nav a:hover { color: var(--gold-dark); }

/* Creative close icon inside mobile menu — luxury ring + X */
.mobile-nav-close {
  position: absolute;
  top: clamp(1.25rem, 5vw, 2rem);
  right: clamp(1.25rem, 5vw, 2rem);
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.mobile-nav-close:hover { transform: scale(1.08); opacity: 0.9; }
.mobile-nav-close:active { transform: scale(0.96); }
.mobile-nav-close-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  opacity: 0.85;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.mobile-nav-close:hover .mobile-nav-close-ring {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 1px rgba(200, 169, 110, 0.2);
}
.mobile-nav-close-x {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-close-x i {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--gold-dark);
  border-radius: 1px;
  transition: background 0.3s, transform 0.35s var(--ease);
}
.mobile-nav-close-x i:first-child { transform: rotate(45deg); }
.mobile-nav-close-x i:last-child  { transform: rotate(-45deg); }
.mobile-nav-close:hover .mobile-nav-close-x i { background: var(--text); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  position: relative;
  height: 72vh; min-height: 480px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0 var(--side) clamp(3rem,7vw,6rem);
}
.page-hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 12s ease-out;
}
.page-hero-photo.loaded { transform: scale(1.04); }
.page-hero-photo-fallback {
  position: absolute; inset: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 5, .38) 0%, rgba(10, 8, 5, .25) -21%, rgb(0 0 0 / 55%) 25% 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}
.page-hero-eyebrow {
  font-size: 0.62rem; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-light);
  display: block; margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp 0.9s 0.3s forwards;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem,8vw,7.5rem);
  font-weight: 300; line-height: 0.9;
  color: #fff;
  opacity: 0; animation: fadeUp 0.9s 0.5s forwards;
}
.page-hero-title em { font-style: italic; color: var(--gold-light); }
.page-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem,2.2vw,1.4rem);
  font-style: italic; font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-top: 1.2rem;
  opacity: 0; animation: fadeUp 0.9s 0.7s forwards;
}

/* ─── TYPOGRAPHY UTILITIES ─── */
.s-tag {
  display: block;
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.9rem;
}
.s-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,3.5vw,3rem);
  font-weight: 300; line-height: 1.12;
  margin-bottom: 1.2rem;
}
.s-title em { font-style: italic; color: var(--gold-dark); }
.s-body {
  font-size: 0.87rem; line-height: 1.95;
  color: var(--text-muted); font-weight: 300;
}
.ornament {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.ornament-diamond {
  width: 6px; height: 6px;
  border: 1px solid var(--gold); transform: rotate(45deg); flex-shrink: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 50px; cursor: none;
  position: relative; overflow: hidden;
  transition: color 0.4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: -1;
  border-radius: 50px;
}
.btn-outline {
  border: 1px solid var(--text); color: var(--text); background: transparent;
}
.btn-outline::before { background: var(--text); }
.btn-outline:hover { color: var(--white) !important; }
.btn-outline:hover::before { transform: scaleX(1); }

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.65); color: var(--white); background: transparent;
}
.btn-outline-light::before { background: #0f0c09; }
.btn-outline-light:hover { color: var(--white) !important; border-color: #0f0c09; }
.btn-outline-light:hover::before { transform: scaleX(1); }

.btn-gold {
  border: 1px solid rgba(255,255,255,0.65); color: var(--white); background: transparent;
}
.btn-gold::before { background: #0f0c09; }
.btn-gold:hover { color: var(--white) !important; border-color: #0f0c09; }
.btn-gold:hover::before { transform: scaleX(1); }

.btn-filled {
  border: 1px solid var(--text); color: var(--white); background: var(--text);
}
.btn-filled::before { background: var(--gold-dark); }
.btn-filled:hover { color: var(--white) !important; }
.btn-filled:hover::before { transform: scaleX(1); }

/* ─── BACK TO TOP ─── */
#btt {
  position: fixed;
  bottom: 2.4rem;
  right: 2.4rem;
  width: 52px;
  height: 52px;
  z-index: 400;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
  background: none;
  border: none;
  padding: 0;
}
#btt.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
/* Rotating progress ring */
#btt svg.btt-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
#btt svg.btt-ring circle {
  fill: none;
}
#btt .btt-track {
  stroke: rgba(200,169,110,.12);
  stroke-width: 1;
}
#btt .btt-progress {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-linecap: butt;
  transition: stroke-dashoffset .08s linear;
}
/* Glass disc center */
#btt .btt-face {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(18,14,10,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200,169,110,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
#btt:hover .btt-face {
  background: rgba(200,169,110,0.12);
  border-color: rgba(200,169,110,.55);
}
/* The icon: two stacked thin lines + a dot — minimal luxury mark */
#btt .btt-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform .35s var(--ease);
}
#btt:hover .btt-icon {
  transform: translateY(-2px);
}
#btt .btt-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5px;
}
#btt .btt-line {
  height: 1px;
  background: rgba(200,169,110,0.9);
  border-radius: 1px;
  transition: width .35s var(--ease), opacity .35s var(--ease);
}
#btt .btt-line-1 { width: 14px; }
#btt .btt-line-2 { width: 8px; opacity: .55; }
#btt:hover .btt-line-1 { width: 10px; }
#btt:hover .btt-line-2 { width: 14px; opacity: .9; }
#btt .btt-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 1px;
  transition: transform .35s var(--ease);
}
#btt:hover .btt-dot {
  transform: scaleX(3);
  border-radius: 2px;
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }
.delay-4 { transition-delay: 0.46s; }

/* ─── FOOTER ─── */
footer {
  background: var(--text);
  padding: clamp(3rem,6vw,5rem) var(--side) 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.footer-logo {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  text-align: center;
}
.footer-logo .logo-main { color: var(--white); font-size: 1.5rem; letter-spacing: 0.12em; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.4); font-size: 0.5rem; }
.footer-nav {
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.footer-nav a {
  font-size: 0.62rem; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  transition: color 0.3s; cursor: none;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-socials {
  display: flex; gap: 1rem;
}
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s; cursor: none;
}
.social-icon svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.5); transition: fill 0.3s; }
.social-icon:hover { border-color: var(--gold); background: rgba(200,169,110,0.1); }
.social-icon:hover svg { fill: var(--gold-light); }
.footer-copy {
  font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.footer-sep {
  width: 100%; height: 1px; background: rgba(255,255,255,0.07); margin: 0;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav-left, .nav-right { display: none; }
  .hamburger { display: flex; }
  .nav-inner {
    grid-template-columns: 1fr auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
  }
  .nav-logo {
    grid-column: 1;
    justify-self: start;
    max-width: 240px;
  }
  .logo-main {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    white-space: nowrap;
  }
  .logo-sub {
    font-size: clamp(0.4rem, 1.1vw, 0.5rem);
    letter-spacing: 0.16em;
    white-space: nowrap;
  }
  .nav-inner .hamburger {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

/* ─── TABLET / iPad (601px–960px) ─── */
@media (max-width: 960px) and (min-width: 601px) {
  :root { --side: clamp(1.5rem, 4vw, 3.5rem); }
  .nav-logo { max-width: 280px; }
  .logo-main { font-size: clamp(1rem, 2.2vw, 1.2rem); }
  .logo-sub { font-size: 0.48rem; }
  .footer-nav { flex-wrap: wrap; gap: 1rem; justify-content: center; }
  .footer-inner { text-align: center; }
  .footer-logo { justify-content: center; }
}

@media (max-width: 600px) {
  :root { --nav-h: 72px; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .footer-nav { gap: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-socials { justify-content: center; }
}

/* ─── Cookie consent banner (GA) ─── */
#yme-cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  display: none;
}
#yme-cookie-consent.visible { display: block; }
#yme-cookie-consent .yme-cc-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
#yme-cookie-consent .yme-cc-text { flex: 1; min-width: 200px; }
#yme-cookie-consent .yme-cc-btns { display: flex; gap: 0.6rem; flex-shrink: 0; }
#yme-cookie-consent .yme-cc-btn {
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s;
}
#yme-cookie-consent .yme-cc-btn.accept { background: var(--gold); border-color: var(--gold); color: var(--text); }
#yme-cookie-consent .yme-cc-btn.accept:hover { filter: brightness(1.08); }
#yme-cookie-consent .yme-cc-btn.decline:hover { background: rgba(255,255,255,0.1); }