/* ============================================================
   CAFÉ CHARLIE — Stylesheet
   ============================================================ */

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

:root {
  --beige:     #ded0c0;
  --bordeaux:  #7a1a22;
  --blue:      #74c6f6;
  --black:     #000000;
  --white:     #ffffff;
  --beige-dark: #c9baa8;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', Georgia, serif;
  --font-serif:   Georgia, 'Times New Roman', serif;

  --max-width: 1100px;
  --section-pad: clamp(4rem, 8vw, 8rem);
}

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

body {
  background-color: var(--beige);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: var(--beige);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--bordeaux);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--black);
  transition: color 0.2s;
}

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

/* Mobile nav */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--beige);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: var(--bordeaux);
}

.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--black);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-logo {
  width: clamp(300px, 55vw, 560px);
  height: auto;
  margin: 0 auto 2.5rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--bordeaux);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-arrow {
  width: 1px;
  height: 40px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.hero-scroll-arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bordeaux);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

/* --- Gallery Strip --- */
.gallery {
  overflow: hidden;
  padding: 0;
}

.gallery-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-strip:active {
  cursor: grabbing;
}

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(260px, 33vw, 420px);
  height: clamp(260px, 33vw, 420px);
  overflow: hidden;
}

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

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

/* --- Horaires --- */
.horaires {
  padding: var(--section-pad) 2rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 1rem;
  display: block;
}

.horaires-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.05em;
  color: var(--bordeaux);
  line-height: 0.9;
  margin-bottom: 2.5rem;
}

.horaires-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.horaires-item {
  text-align: center;
}

.horaires-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.horaires-time {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--bordeaux);
}

.horaires-closed {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--beige-dark);
  margin-top: 1.5rem;
}

.horaires-divider {
  width: 1px;
  height: 60px;
  background: var(--bordeaux);
  opacity: 0.3;
}

/* --- Full Photo --- */
.full-photo {
  width: 100%;
  height: clamp(300px, 50vw, 600px);
  overflow: hidden;
}

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

/* --- Menu / Carte --- */
.carte {
  padding: var(--section-pad) 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.carte-header {
  text-align: center;
  margin-bottom: 3rem;
}

.carte-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.05em;
  color: var(--bordeaux);
  line-height: 0.9;
  margin-bottom: 0.5rem;
}

.carte-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--bordeaux);
  opacity: 0.7;
}

/* Tabs */
.carte-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carte-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.75rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  color: rgba(0,0,0,0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--bordeaux);
}

.tab-btn.active {
  color: var(--bordeaux);
  border-bottom-color: var(--bordeaux);
}

/* Menu panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Menu sections grid */
.menu-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem 3rem;
}

.menu-section {
  /* each section */
}

.menu-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.menu-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.menu-section-title.accent-blue {
  color: var(--blue);
}

.menu-section-note {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordeaux);
  opacity: 0.7;
  white-space: nowrap;
}

.menu-section-desc {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(0,0,0,0.5);
  margin-bottom: 0.75rem;
  margin-top: -0.25rem;
}

/* Full-width sections (plats, vins) */
.menu-section.wide {
  grid-column: 1 / -1;
}

.menu-items {
  list-style: none;
}

.menu-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-item-name {
  font-size: 0.92rem;
  font-weight: 400;
}

.menu-item-price {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--bordeaux);
  flex-shrink: 0;
}

.menu-item-desc {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(0,0,0,0.45);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.menu-item-note {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(0,0,0,0.35);
  margin-top: 0.2rem;
}

.menu-local-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(0,0,0,0.4);
  text-align: center;
  padding: 1.5rem 0 0;
}

/* --- Contact / Trouver --- */
.contact {
  background: var(--bordeaux);
  color: var(--white);
  padding: var(--section-pad) 2rem;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  display: block;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: 0.05em;
  line-height: 0.9;
  margin-bottom: 2rem;
}

.contact-address {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.contact-map-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-map-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.3);
}

.social-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.social-link-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.social-link-handle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
}

/* --- Footer --- */
footer {
  background: var(--bordeaux);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

/* --- Divider --- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--bordeaux);
  opacity: 0.3;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .horaires-grid {
    gap: 2rem;
  }

  .horaires-divider {
    display: none;
  }

  .gallery-item {
    width: clamp(220px, 75vw, 320px);
    height: clamp(220px, 75vw, 320px);
  }

  .menu-sections {
    grid-template-columns: 1fr;
  }

  .menu-section.wide {
    grid-column: 1;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .carte,
  .horaires {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
