/* =========================================================
   LE SCARABÉE DORÉ — Design System
   Palette : émeraude profond / doré / ivoire / terracotta
   Typo    : Cinzel (titres) + Poppins (texte courant)
   ========================================================= */

:root {
  /* Couleurs */
  --color-ink:        #14201d;
  --color-cream:       #f7f0dd;
  --color-cream-soft:  #fbf6e9;
  --color-teal-900:    #0a2622;
  --color-teal-800:    #0e2f2b;
  --color-teal-700:    #123a34;
  --color-teal-600:    #163f3a;
  --color-teal-500:    #1a4640;
  --color-gold-200:    #f3d98b;
  --color-gold-400:    #d9b64a;
  --color-gold-500:    #c9a227;
  --color-gold-700:    #8f6c14;
  --color-terracotta:  #7a1f2b;
  --color-terracotta-light: #8f2733;
  --color-sage:        #4f7a3c;

  --gradient-gold: linear-gradient(135deg, var(--color-gold-200), var(--color-gold-500));

  /* Typo */
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rythme */
  --container-w: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 20px 50px -20px rgba(10, 38, 34, 0.45);
  --shadow-card: 0 12px 30px -14px rgba(10, 38, 34, 0.35);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-gold-500);
  color: var(--color-teal-900);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--color-gold-500);
  margin: 0 0 .9em;
}

.section-head { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6em; }
.section-sub { color: rgba(20,32,29,.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-teal-900);
  box-shadow: 0 10px 24px -10px rgba(201,162,39,.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(201,162,39,.7); }
.btn-outline {
  border-color: rgba(201,162,39,.6);
  color: var(--color-cream);
}
.btn-outline:hover { background: rgba(201,162,39,.12); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 38, 34, .92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-emblem { flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  color: var(--color-cream);
  font-size: 1.1rem;
  letter-spacing: .04em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-name-sub { color: var(--color-gold-400); font-size: .9em; letter-spacing: .3em; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: var(--color-cream);
  font-size: .92rem;
  letter-spacing: .02em;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--color-gold-500);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--color-cream);
  font-size: .88rem;
}
.header-phone svg { color: var(--color-gold-500); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201,162,39,.18), transparent 55%),
    linear-gradient(180deg, var(--color-teal-900), var(--color-teal-700) 60%, var(--color-teal-800));
  overflow: hidden;
}
.hero-sunburst {
  position: absolute;
  top: 50%; left: 50%;
  width: min(1100px, 140vw);
  transform: translate(-50%, -50%);
  opacity: .12;
  pointer-events: none;
  animation: spin 140s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 110px;
  padding-bottom: 60px;
}
.hero .eyebrow { color: var(--color-gold-400); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--color-cream-soft);
  letter-spacing: .03em;
}
.hero h1 span { color: var(--color-gold-500); }
.hero-tagline {
  max-width: 640px;
  margin: 1.4rem auto 2.2rem;
  color: rgba(247,240,221,.82);
  font-size: 1.08rem;
}
.hero-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  color: var(--color-gold-200);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(201,162,39,.7);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--color-gold-500);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Chevron divider ---------- */
.chevron-divider {
  height: 22px;
  background-image: url('../assets/chevron.svg');
  background-repeat: repeat-x;
  background-size: 44px 22px;
  background-position: center;
  opacity: .8;
}

/* ---------- Story ---------- */
.story { padding: 6rem 0; background: var(--color-cream); }
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.story-figure img { width: 100%; height: 100%; object-fit: cover; }
.story-figure figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 20px;
  background: linear-gradient(0deg, rgba(10,38,34,.85), transparent);
  color: var(--color-gold-200);
  font-size: .82rem;
  letter-spacing: .05em;
}
.story-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .7em; }
.story-content p { color: rgba(20,32,29,.85); }
.story-content strong { color: var(--color-terracotta); font-weight: 600; }

.story-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201,162,39,.35);
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-terracotta);
}
.stat-label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(20,32,29,.6); }

/* ---------- Menu ---------- */
.menu { padding: 6rem 0; background: var(--color-teal-800); color: var(--color-cream); }
.menu .eyebrow { color: var(--color-gold-400); }
.menu .section-head h2 { color: var(--color-cream-soft); }
.menu .section-sub { color: rgba(247,240,221,.7); }

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.menu-tab {
  background: transparent;
  border: 1px solid rgba(201,162,39,.4);
  color: rgba(247,240,221,.8);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .04em;
  transition: all .25s var(--ease);
}
.menu-tab:hover { border-color: var(--color-gold-500); color: var(--color-cream-soft); }
.menu-tab.is-active {
  background: var(--gradient-gold);
  color: var(--color-teal-900);
  border-color: transparent;
  font-weight: 600;
}

.menu-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
}
.menu-list[hidden] { display: none; }
.menu-item { padding-bottom: 1.4rem; border-bottom: 1px dashed rgba(201,162,39,.3); }
.menu-item:last-child { border-bottom: none; }
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: .4em;
}
.menu-item-head h3 {
  font-size: 1.15rem;
  color: var(--color-gold-200);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5em;
}
.menu-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(247,240,221,.3);
  height: 0;
  transform: translateY(-4px);
}
.menu-price { font-family: var(--font-display); color: var(--color-cream-soft); font-size: 1.05rem; }
.menu-item p { color: rgba(247,240,221,.72); font-size: .95rem; }
.tag {
  font-family: var(--font-body);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(79,122,60,.25);
  color: #a9d18f;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.menu-note {
  text-align: center;
  margin-top: 2.6rem;
  font-size: .8rem;
  color: rgba(247,240,221,.5);
}

/* ---------- Gallery ---------- */
.gallery { padding: 6rem 0; background: var(--color-cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--color-teal-800);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(10,38,34,.88), transparent);
  color: var(--color-gold-200);
  font-size: .88rem;
  letter-spacing: .03em;
  text-align: left;
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 6rem 0; background: var(--color-teal-700); color: var(--color-cream); }
.testimonials .eyebrow { color: var(--color-gold-400); }
.testimonials .section-head h2 { color: var(--color-cream-soft); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.testimonial {
  margin: 0;
  background: rgba(247,240,221,.05);
  border: 1px solid rgba(201,162,39,.25);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-cream-soft);
  margin-bottom: 1.2em;
}
.testimonial footer { color: var(--color-gold-400); font-size: .85rem; letter-spacing: .04em; }

/* ---------- Infos & réservation ---------- */
.info-section { padding: 6rem 0; background: var(--color-cream); }
.info-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.info-col h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .8em; }

.info-list { display: grid; gap: 1.4rem; margin: 1.6rem 0 2rem; }
.info-list dt {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-gold-700);
  margin-bottom: .35em;
}
.info-list dt svg { color: var(--color-gold-500); }
.info-list dd { margin: 0; color: var(--color-ink); }
.info-list dd a:hover { color: var(--color-terracotta); }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; max-width: 320px; padding: 3px 0; font-size: .93rem; }
.hours-row span:first-child { color: rgba(20,32,29,.6); }

.map-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,162,39,.3);
}

/* Reservation form */
.reservation-form {
  background: var(--color-teal-800);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  margin-top: 1.6rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-gold-300, var(--color-gold-400));
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(247,240,221,.06);
  border: 1px solid rgba(201,162,39,.35);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--color-cream-soft);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(247,240,221,.4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-gold-500);
  background: rgba(247,240,221,.1);
  outline: none;
}
.form-field select option { color: #000; }
.form-field textarea { resize: vertical; }

.form-field:has(input:invalid[data-touched="true"]) input,
.form-field:has(select:invalid[data-touched="true"]) select {
  border-color: var(--color-terracotta-light);
}

.form-note {
  font-size: .74rem;
  color: rgba(247,240,221,.5);
  text-align: center;
  margin-top: 14px;
}
.form-success[hidden] { display: none; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(79,122,60,.18);
  border: 1px solid rgba(169,209,143,.5);
  border-radius: var(--radius-sm);
  color: #c7e3b6;
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-teal-900); color: rgba(247,240,221,.75); padding-top: 4rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,162,39,.2);
  align-items: start;
}
.footer-brand .brand-name { color: var(--color-cream-soft); margin: .8rem 0 .6rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand p { font-size: .85rem; color: rgba(247,240,221,.55); }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; justify-self: center; }
.footer-nav a { font-size: .9rem; }
.footer-nav a:hover { color: var(--color-gold-400); }
.footer-social { display: flex; gap: 14px; justify-self: end; align-self: start; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 50%;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.footer-social a:hover { border-color: var(--color-gold-500); color: var(--color-gold-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem 28px 2.2rem;
  font-size: .78rem;
  color: rgba(247,240,221,.45);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,20,18,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  animation: fadeIn .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 900px; width: 100%; }
.lightbox img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.lightbox figcaption { text-align: center; color: var(--color-gold-200); margin-top: 16px; font-size: .95rem; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: transparent;
  border: 1px solid rgba(201,162,39,.5);
  color: var(--color-cream);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Back to portfolio ---------- */
.back-to-portfolio{
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .6em 1.1em;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-cream);
  background: rgba(10,38,34,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,162,39,.4);
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.5);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.back-to-portfolio:hover{ border-color: var(--color-gold-500); color: var(--color-gold-400); transform: translateY(-2px); }
@media (max-width: 600px){
  .back-to-portfolio{ bottom: 14px; left: 14px; font-size: .74rem; padding: .5em .9em; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--color-teal-900);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.5);
  z-index: 90;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top[hidden] { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-sunburst { animation: none; }
  .scroll-cue span { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .story-inner, .info-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-nav, .footer-social { justify-self: start; }
  .footer-social { margin-top: .5rem; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--color-teal-900);
    border-left: 1px solid rgba(201,162,39,.25);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    padding: 100px 32px 40px;
    z-index: 99;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { font-size: 1.05rem; }

  .header-actions .btn-sm { padding: 9px 18px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero-inner { padding-top: 130px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .story-stats { gap: 1.4rem; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }
}
