/* ═══════════════════════════════════════════════════
   BISCAVE — BRAND FOUNDATION CSS
   Shared across all templates and pages
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

:root {
  /* ── PALETTE ── */
  --espresso:    #2c1f0e;
  --havane:      #7a5c3a;
  --fauve:       #c9a97a;
  --fauve-light: #e8d5b5;
  --fauve-pale:  #f0e4cc;
  --cream:       #f7f2eb;
  --cream-dark:  #ede4d5;
  --white:       #fdfaf6;
  --ink:         #1a1208;
  --muted:       #9e7c50;
  --line:        rgba(201,169,122,0.20);
  --line-strong: rgba(201,169,122,0.45);
  --error:       #b94040;
  --success:     #4a7c5c;

  /* ── TYPOGRAPHY ── */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  /* ── SPACING ── */
  --nav-h: 72px;
  --radius: 2px;
  --transition: 0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--espresso);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--fauve); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: var(--fauve); color: var(--white); }

/* ── SHARED UTILITIES ── */
.u-eyebrow {
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--muted);
}
.u-display {
  font-family: var(--font-display); font-weight: 300; color: var(--espresso);
}
.u-italic { font-style: italic; }
.u-fauve  { color: var(--fauve); }
.u-havane { color: var(--havane); }
.u-muted  { color: var(--muted); }

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 12px; margin: 2rem 0;
}
.divider-line { flex: 1; height: 0.5px; background: var(--line); }
.divider-diamond {
  width: 5px; height: 5px; background: var(--fauve); transform: rotate(45deg);
}

/* ── LANGUAGE / RTL ── */
.lang-fr [data-ar] { display: none !important; }
.lang-ar [data-fr] { display: none !important; }
body.rtl { direction: rtl; }

/* ── TOAST NOTIFICATIONS ── */
#toast-container {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--espresso); color: var(--white);
  padding: 0.8rem 1.2rem; font-size: 0.75rem; letter-spacing: 0.08em;
  border-left: 3px solid var(--fauve);
  animation: toastIn 0.3s ease both;
  pointer-events: all;
  max-width: 320px;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ── SHARED BUTTON STYLES ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 300;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 12px 28px; border: 0.5px solid var(--espresso);
  background: transparent; color: var(--espresso);
  cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--espresso); transform: translateX(-101%);
  transition: transform var(--transition);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--white); }
.btn span { position: relative; z-index: 1; }

.btn-filled {
  background: var(--espresso); color: var(--white);
  border-color: var(--espresso);
}
.btn-filled::before { background: var(--ink); }
.btn-filled:hover { color: var(--white); }

.btn-fauve {
  background: var(--fauve); color: var(--white); border-color: var(--fauve);
}
.btn-fauve::before { background: var(--havane); }
.btn-fauve:hover { color: var(--white); }
