/* =========================================================================
   LE NÜBIA — Système de design « Arche Dorée »
   Restaurant · Bar · Lounge — Amiens
   ========================================================================= */

/* ----------------------------- Tokens ---------------------------------- */
:root {
  /* Fonds sombres */
  --bordeaux:        #1b1015;
  --bordeaux-2:      #241620;
  --bordeaux-3:      #2e1b27;
  --night:           #140a0f;

  /* Or */
  --gold:            #c8a24c;
  --gold-light:      #dcc185;
  --gold-deep:       #a47f34;

  /* Ruptures claires */
  --champagne:       #ece0c2;
  --champagne-light: #f5eedd;

  /* Texte */
  --ivory:           #f0e6d3;
  --ivory-dim:       #c8b69b;
  --ink:             #3a2418;   /* texte bordeaux/brun sur champagne */
  --ink-dim:         #6e5544;

  /* Lignes */
  --hair:            rgba(200, 162, 76, 0.32);
  --hair-soft:       rgba(200, 162, 76, 0.16);

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --mono:  "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Mesures */
  --maxw: 1200px;
  --gut:  clamp(20px, 5vw, 64px);
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bordeaux);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Grain global discret */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------- Layout ------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 10vw, 132px); position: relative; }
.section--tight { padding-block: clamp(44px, 7vw, 88px); }

/* Fond sombre feutré avec halos dorés */
.bg-dark {
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(200,162,76,0.10), transparent 55%),
    radial-gradient(90% 70% at 10% 110%, rgba(200,162,76,0.07), transparent 55%),
    var(--bordeaux);
}
.bg-dark-2 { background: var(--bordeaux-2); }
.bg-champagne {
  background:
    radial-gradient(120% 90% at 50% -20%, #fff7e6, transparent 60%),
    var(--champagne-light);
  color: var(--ink);
}
.bg-champagne .eyebrow { color: var(--gold-deep); }
.bg-champagne .eyebrow::before,
.bg-champagne .eyebrow::after { background: rgba(164,127,52,0.5); }

/* --------------------------- Typographie ------------------------------- */
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: 0.005em; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
}
.h-section { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ivory-dim); max-width: 60ch; }
.bg-champagne .lead { color: var(--ink-dim); }

/* Wordmark NÜBIA */
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--gold);
  white-space: nowrap;
}

/* Eyebrow (sur-titre) */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: clamp(0.62rem, 1vw, 0.74rem);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: clamp(18px, 4vw, 38px);
  height: 1px;
  background: var(--hair);
}
.eyebrow--plain::before, .eyebrow--plain::after { display: none; }

.star { color: var(--gold); font-style: normal; }
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: clamp(40px, 12vw, 110px);
  background: linear-gradient(90deg, transparent, var(--hair), transparent);
}

/* --------------------------- Boutons ----------------------------------- */
.btn {
  --bg: var(--bordeaux);
  --fg: var(--gold-light);
  --bd: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  padding: 1.05em 1.9em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bordeaux); border-color: var(--gold-light); }
.btn:hover::before { transform: translateY(0); }

.btn--gold { --bg: linear-gradient(180deg, var(--gold-light), var(--gold)); --fg: var(--bordeaux); --bd: var(--gold-light); }
.btn--gold::before { background: var(--bordeaux); }
.btn--gold:hover { color: var(--gold-light); border-color: var(--gold); }

.btn--ghost { --bg: transparent; --fg: var(--gold-light); }
.btn--ink { --bg: var(--bordeaux); --fg: var(--gold-light); --bd: var(--bordeaux); }
.btn--sm { padding: 0.8em 1.4em; font-size: 0.7rem; }

.textlink {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.74rem; color: var(--gold-light);
  display: inline-flex; align-items: center; gap: 0.6em;
  border-bottom: 1px solid var(--hair); padding-bottom: 4px;
  transition: gap .35s var(--ease), border-color .35s var(--ease);
}
.textlink:hover { gap: 1em; border-color: var(--gold-light); }
.bg-champagne .textlink { color: var(--gold-deep); }

/* --------------------------- Monogramme -------------------------------- */
/* Arche art déco + N + étoile (signature de marque) */
.monogram { display: inline-block; color: var(--gold); }
.monogram svg { display: block; width: 100%; height: auto; }
.monogram .arch-stroke { fill: none; stroke: currentColor; }
.monogram .mono-n { font-family: var(--serif); font-weight: 500; fill: currentColor; }

/* --------------------- Cadre en arche (image / contenu) ---------------- */
.arch {
  border-radius: 46% 46% 7px 7px / 32% 32% 7px 7px;
  overflow: hidden;
  position: relative;
}
.arch-frame {
  position: relative;
  border-radius: 46% 46% 7px 7px / 32% 32% 7px 7px;
  padding: 7px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep) 55%, var(--gold) );
  box-shadow: 0 22px 50px -28px rgba(0,0,0,0.85);
}
.arch-frame > .arch-inner {
  border-radius: 44% 44% 3px 3px / 30% 30% 3px 3px;
  overflow: hidden;
  height: 100%;
  position: relative;
  background: var(--night);
}
/* fin trait intérieur */
.arch-frame::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(20,10,15,0.45);
  border-radius: 44% 44% 3px 3px / 30% 30% 3px 3px;
  pointer-events: none; z-index: 3;
}

/* ------------------- Placeholder photographie -------------------------- */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(135deg, rgba(200,162,76,0.07) 0 2px, transparent 2px 11px),
    radial-gradient(120% 120% at 50% 0%, var(--bordeaux-3), var(--night));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--ivory-dim);
  padding: 24px;
}
.ph .ph-mono { width: clamp(42px, 8vw, 64px); opacity: 0.5; color: var(--gold); }
.ph .ph-cap {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  opacity: 0.85;
  max-width: 24ch;
}
.ph .ph-cap::before { content: "❍  "; opacity: 0.6; }

/* ------------------------------- Nav ----------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20, 10, 15, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--hair-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.nav-logo { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo .monogram { width: 30px; }
.nav-logo .wordmark { font-size: 1.32rem; letter-spacing: 0.3em; text-indent: 0.3em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-link {
  font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ivory); opacity: 0.82; white-space: nowrap;
  position: relative; padding-block: 6px;
  transition: opacity .3s, color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold-light); transition: width .35s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; color: var(--gold-light); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Bascule langue */
.lang {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em;
  border: 1px solid var(--hair); border-radius: 999px; overflow: hidden;
}
.lang button {
  background: transparent; border: 0; color: var(--ivory-dim);
  padding: 6px 11px; letter-spacing: 0.12em; transition: color .3s, background .3s;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--bordeaux); font-weight: 600; }

/* Burger */
.burger {
  display: none; width: 42px; height: 42px; background: transparent;
  border: 1px solid var(--hair); border-radius: 50%;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px;
  background: var(--gold-light); transform: translate(-50%,-50%); transition: .3s var(--ease);
}
.burger span::before { transform: translate(-50%, -6px); }
.burger span::after  { transform: translate(-50%,  6px); }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translate(-50%,0) rotate(45deg); }
body.menu-open .burger span::after  { transform: translate(-50%,0) rotate(-45deg); }

/* Menu plein écran mobile */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(200,162,76,0.12), transparent 60%),
    var(--night);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--ivory); padding: 8px 0; transition: color .3s;
}
.menu a:hover { color: var(--gold-light); }
.menu .menu-foot { margin-top: 26px; display: flex; gap: 14px; }

/* ------------------------ Barre d'action mobile ------------------------ */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none;
  background: rgba(20,10,15,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair-soft);
}
.actionbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px calc(9px + env(safe-area-inset-bottom));
  font-family: var(--sans); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ivory-dim);
}
.actionbar a + a { border-left: 1px solid var(--hair-soft); }
.actionbar a svg { width: 18px; height: 18px; color: var(--gold-light); }
.actionbar a.primary { color: var(--gold-light); }

/* ------------------------------ Footer --------------------------------- */
.footer { background: var(--night); border-top: 1px solid var(--hair-soft); padding-block: clamp(48px, 7vw, 80px); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 64px);
}
.footer h4 { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.footer a.fl { display: block; color: var(--ivory-dim); padding: 5px 0; font-size: 0.92rem; transition: color .3s; }
.footer a.fl:hover { color: var(--gold-light); }
.footer .brandcol .wordmark { font-size: 1.6rem; }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 60px); padding-top: 26px; border-top: 1px solid var(--hair-soft);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--ivory-dim);
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border: 1px solid var(--hair); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-light); transition: .3s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--bordeaux); border-color: var(--gold); transform: translateY(-2px); }
.socials a svg { width: 17px; height: 17px; }

/* ------------------------- Cartes / blocs ------------------------------ */
.card {
  background: linear-gradient(180deg, rgba(200,162,76,0.05), rgba(200,162,76,0.01));
  border: 1px solid var(--hair-soft);
  position: relative;
}
.price {
  font-family: var(--serif); font-size: 1.25rem; color: var(--gold-light); font-weight: 600;
  white-space: nowrap;
}
.tag {
  font-family: var(--sans); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.16em;
  padding: 3px 8px; border: 1px solid var(--hair); border-radius: 999px; color: var(--gold-light);
  display: inline-block;
}
.tag--veg { color: #9ec48a; border-color: rgba(158,196,138,0.4); }

/* --------------------------- Page header ------------------------------- */
.page-head { position: relative; padding: calc(var(--nav-h) + clamp(46px,8vw,92px)) var(--gut) clamp(40px,6vw,72px); text-align: center; overflow: hidden; }
.page-head .monogram { width: clamp(54px,8vw,76px); margin: 0 auto 22px; }
.page-head h1 { font-size: clamp(2.6rem,6vw,4.6rem); }
.page-head .lead { margin: 18px auto 0; }
.page-head--dark { background: radial-gradient(120% 90% at 50% -10%, rgba(200,162,76,0.14), transparent 60%), var(--night); }

/* ------------------------- Reveal au scroll ---------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------- Cookie banner ------------------------------- */
.cookie {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  width: min(720px, calc(100% - 28px)); z-index: 70;
  background: rgba(20,10,15,0.96); border: 1px solid var(--hair);
  backdrop-filter: blur(12px);
  padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9);
  transition: transform .6s var(--ease);
}
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie p { font-size: 0.84rem; color: var(--ivory-dim); flex: 1 1 320px; }
.cookie .cookie-actions { display: flex; gap: 10px; }

/* ------------------------------ Utils ---------------------------------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.grid { display: grid; gap: clamp(18px, 3vw, 34px); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stack-sm > * + * { margin-top: 14px; }
.muted { color: var(--ivory-dim); }
.hide { display: none !important; }
[hidden] { display: none !important; }

/* ------------------------- Responsive ---------------------------------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .burger { display: inline-block; }
  .actionbar { display: flex; }
  body { padding-bottom: 62px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .brandcol { grid-column: 1 / -1; }
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  :root { --nav-h: 66px; }
}

/* Affichage selon langue : éléments marqués data-only */
html[data-lang="en"] [data-only="fr"],
html[data-lang="fr"] [data-only="en"] { display: none; }

/* --- Confidentialité : signature animée + anti-sélection --- */
@keyframes heartbeat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.2); } 50% { transform: scale(1); } 75% { transform: scale(1.15); } }
body { -webkit-user-select: none; -ms-user-select: none; user-select: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; -ms-user-select: text; user-select: text; }
