/* ==========================================================================
   Club Café La Réunion — Main Stylesheet
   Fonts: DM Sans (body), Forum (headings)
   Colors: #000 / #fff
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Forum&display=swap');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid: #e0e0e0;
  --grey-text: #555555;
  --transition: 0.3s ease;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Forum', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 5rem 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Forum', serif;
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 600px;
  color: var(--grey-text);
  font-size: 1.05rem;
}

.section-subtitle.center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn svg { width: 16px; height: 16px; }

/* ---------- NAVIGATION ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: var(--white);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 56px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

#navbar.scrolled .nav-logo img { filter: brightness(0); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: currentColor;
  transition: right var(--transition);
}

.nav-links a:hover::after { right: 0; }

#navbar.scrolled .nav-links a { color: var(--black); }

.nav-links a:hover { opacity: 0.75; }

.nav-cta { margin-left: 1rem; }

#navbar .nav-cta .btn-outline-white {
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
}

#navbar.scrolled .nav-cta .btn-outline-white {
  color: var(--black);
  border-color: var(--black);
}

#navbar.scrolled .nav-cta .btn-outline-white:hover {
  background: var(--black);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

#navbar.scrolled .nav-toggle span { background: var(--black); }

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

/* ---------- HERO SLIDER ---------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.55) 100%);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.slide-content h1 {
  font-family: 'Forum', serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.slide-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
  font-weight: 300;
}

.hero-badges {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.slider-btn:hover { background: var(--white); color: var(--black); }
.slider-btn.prev { left: 1.5rem; }
.slider-btn.next { right: 1.5rem; }
.slider-btn svg { width: 20px; height: 20px; }

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 4px;
}

/* ---------- SECTION: Services / Ce que nous proposons ---------- */
#services {
  background: var(--grey-light);
}

.services-header { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body { padding: 1.75rem; }

.service-card-body h3 { margin-bottom: 0.75rem; }

.service-card-body p { color: var(--grey-text); font-size: 0.95rem; margin-bottom: 1.25rem; }

.services-cta { margin-top: 3rem; text-align: center; }

/* ---------- SECTION: Notre histoire ---------- */
#about {
  background: var(--black);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.about-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -2rem; right: -2rem;
  width: 55%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-img-accent img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-content .section-label { color: rgba(255,255,255,0.5); }

.about-content h2 { color: var(--white); margin-bottom: 1.5rem; }

.about-content p { color: rgba(255,255,255,0.75); font-size: 1rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-family: 'Forum', serif;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ---------- SECTION: Galerie / Photos ---------- */
#gallery {
  background: var(--white);
}

.gallery-header { margin-bottom: 3rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--white);
  opacity: 0;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,0,0,0.35);
  opacity: 1;
}

.gallery-cta { margin-top: 2.5rem; text-align: center; }

/* Plats grid (menu cards) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.menu-card {
  background: var(--grey-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.menu-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--grey-mid);
}

.menu-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img { transform: scale(1.08); }

.menu-card-info {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-card-info h3 {
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.menu-card-price {
  font-family: 'Forum', serif;
  font-size: 1.15rem;
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- SECTION: Événements ---------- */
#events {
  background: var(--grey-light);
}

.events-header { margin-bottom: 3rem; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.event-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.event-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card-img img { transform: scale(1.05); }

.event-card-body { padding: 1.5rem; }

.event-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.event-card-body h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

.event-card-body p { font-size: 0.9rem; color: var(--grey-text); margin-bottom: 1rem; }

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--grey-text);
}

.event-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.events-cta { margin-top: 3rem; text-align: center; }

/* ---------- SECTION: Contact ---------- */
#contact {
  background: var(--black);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-label { color: rgba(255,255,255,0.5); }
.contact-info h2 { color: var(--white); margin-bottom: 1.5rem; }
.contact-info p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-item-text { flex: 1; }
.contact-item-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 0.2rem; }
.contact-item-value { color: var(--white); font-size: 0.95rem; font-weight: 500; }
.contact-item-value a { color: inherit; }
.contact-item-value a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.social-link {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.social-link svg { width: 18px; height: 18px; }

/* Contact form */
.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.3); }

input:focus, textarea:focus, select:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

textarea { resize: vertical; min-height: 130px; }

select option { background: #111; color: var(--white); }

.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
  color: #6ee7b7;
  font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
#footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 52px;
  filter: brightness(0) invert(1) opacity(0.85);
  margin-bottom: 1rem;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  font-family: 'Forum', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-hours { display: flex; flex-direction: column; gap: 0.5rem; }

.hours-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.hours-day { color: rgba(255,255,255,0.5); }
.hours-time { color: var(--white); font-weight: 500; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-left { font-size: 0.82rem; }

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.footer-social a svg { width: 15px; height: 15px; }

/* ---------- BACK TO TOP ---------- */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
}

#back-top.visible { opacity: 1; pointer-events: all; }
#back-top:hover { transform: translateY(-3px); }
#back-top svg { width: 18px; height: 18px; }

/* ---------- ANIMATIONS (Scroll Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-images { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--black);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-mobile-open .nav-links a { color: var(--white); font-size: 1.4rem; }
  .nav-mobile-open .nav-links a::after { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section-pad { padding: 3.5rem 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .hero-badges { gap: 0.75rem; }
}
