/* ============================================================
   LA CHALOUPE — Site vitrine restaurant
   Style : Luxe / Chic — Glassmorphism, animations fluides, hover 3D
   ============================================================ */

:root {
  --gold: #c8a45d;
  --gold-light: #e6c988;
  --gold-dark: #9a7a3e;
  --bg: #0d0b09;
  --bg-soft: #16120d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.10);
  --border-glass: rgba(255, 255, 255, 0.14);
  --text: #f4efe6;
  --text-muted: #c9bfae;
  --text-dim: #9a917f;
  --danger: #b3402f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

/* ---------- NAVIGATION (transparente) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 26px 6%;
}

.nav.scrolled {
  background: rgba(13, 11, 9, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  padding: 14px 6%;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--text);
  letter-spacing: 1px;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.86rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 22px;
  border-radius: 40px;
  color: var(--gold) !important;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg) !important;
}

.nav-cta::after {
  display: none !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 6% 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.08);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,11,9,0.72) 0%, rgba(13,11,9,0.5) 50%, rgba(13,11,9,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--text);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 44px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(200, 164, 93, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 100px 6%;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}

.section-head .divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 18px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- CARTES SERVICES (3D hover) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 44px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  transform-style: preserve-3d;
  perspective: 900px;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(-2deg) scale(1.02);
  box-shadow: var(--shadow);
  border-color: rgba(200, 164, 93, 0.45);
}

.service-icon {
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200, 164, 93, 0.12);
  border: 1px solid rgba(200, 164, 93, 0.35);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
}

.service-card h3 {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- APERÇU GALERIE / CARTE MENU ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 22px;
}

.split-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.split-text ul {
  list-style: none;
  margin: 20px 0 30px;
}

.split-text ul li {
  padding: 10px 0 10px 34px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.split-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 2px;
  background: var(--gold);
}

.split-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.split-img:hover img {
  transform: scale(1.06);
}

/* ---------- GALERIE ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.09);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 11, 9, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay span {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* ---------- MENU / PLATS ---------- */
.menu-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.dish-card {
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.dish-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.dish-info {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-info .dish-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.dish-info h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.dish-price {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.1rem;
  white-space: nowrap;
}

.dish-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.dish-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 93, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- TEMOIGNAGES ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 36px 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stars {
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
  font-size: 0.97rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
}

.testimonial-author .name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-author .role {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  backdrop-filter: blur(10px);
}

.contact-card .ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(200, 164, 93, 0.12);
  border: 1px solid rgba(200, 164, 93, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.contact-card h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-glass);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ---------- FORMULAIRE ---------- */
.form-glass {
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.form-glass h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.form-glass .form-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: none;
  background: rgba(46, 160, 94, 0.16);
  border: 1px solid rgba(46, 160, 94, 0.5);
  color: #7fd9a5;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.form-error {
  display: none;
  background: rgba(179, 64, 47, 0.16);
  border: 1px solid rgba(179, 64, 47, 0.5);
  color: #ef9a8b;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0a0806;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 70px 6% 30px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer-brand h3 {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.footer-brand h3 span {
  color: var(--gold);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
}

.footer h4 {
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 50px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---------- PAGE HERO (pages internes) ---------- */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 6% 70px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,11,9,0.8) 0%, rgba(13,11,9,0.92) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 14px;
}

.page-hero-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- ANIMATIONS REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: revealFallback 0.9s ease 0.3s forwards;
}

.reveal.visible {
  animation: revealIn 0.9s ease forwards;
}

@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-delay-1 { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }
.reveal-delay-3 { animation-delay: 0.45s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid,
  .menu-list,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .split-img img {
    height: 340px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 5%;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: rgba(13, 11, 9, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    padding: 40px;
  }
  .nav-links.open {
    right: 0;
  }
  .burger {
    display: flex;
  }
  .services-grid,
  .menu-list,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .form-glass {
    padding: 28px 20px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .map-wrap iframe {
    min-height: 320px;
  }
}
