/* styles.css */
@import url('https://fonts.googleapis.com/css?family=Fira+Mono:400');
/* ===========================
   Reset & typographie (Ex 1)
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: #2c2c2c;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}

/* Container (Ex 1.2) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titles (Ex 1.3) */
h1 {
  color: #ffffff;
  font-size: 3em;
  letter-spacing: 2px;
  line-height: 1;
}
h2 {
  color: #2c2c2c;
  font-size: 2.5em;
  margin-bottom: 30px;
}
h3 {
  color: #8B4513;
  font-size: 1.8em;
  margin-bottom: 20px;
}

/* ===========================
   Hero & Navbar (Ex 2)
   =========================== */
.hero {
  background: linear-gradient(135deg, #000000, #a10000);
  height: 100vh;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
}

/* Navbar (Ex 2.2) */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  left: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation menu (Ex 2.3) */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #FFD700;
}

.logo-image {
  height: 100px;
  width: auto;
  border-radius: 5px;
}

/* CTA in navbar */
.cta {
  background: #FFD700;
  color: #8B4513;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta:hover {
  background: #FFA500;
  transform: scale(1.05);
}

/* Hero content (Ex 2.4) */
.hero-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text p {
  margin: 15px 0 25px;
  font-size: 1.2em;
}

/* Glitch hero title (scoped) */
.hero .glitch {
  position: relative;
  display: inline-block;
  font-family: 'Fira Mono', monospace;
  font-size: clamp(48px, 10vw);
  color: #ffffff;
  letter-spacing: -7px;
  line-height: 1;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: heroGlitch 1s linear infinite;
}

.hero .glitch::before,
.hero .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.hero .glitch::before {
  animation: heroGlitchTop 1s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  color: #ff00c1; /* magenta channel */
  z-index: -1;
}

.hero .glitch::after {
  animation: heroGlitchBottom 1.5s linear infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  color: #00fff0; /* cyan channel */
  z-index: -1;
}

@keyframes heroGlitch {
  2%,64%{ transform: translate(2px,0) skew(0deg); }
  4%,60%{ transform: translate(-2px,0) skew(0deg); }
  62%{ transform: translate(0,0) skew(5deg); }
}

@keyframes heroGlitchTop{
  2%,64%{ transform: translate(2px,-2px); }
  4%,60%{ transform: translate(-2px,2px); }
  62%{ transform: translate(13px,-1px) skew(-13deg); }
}

@keyframes heroGlitchBottom{
  2%,64%{ transform: translate(-2px,0); }
  4%,60%{ transform: translate(-2px,0); }
  62%{ transform: translate(-22px,5px) skew(21deg); }
}

/* ===========================
   Menu Section (Ex 3)
   =========================== */
.menu-section {
  background: #f8f8f8;
  padding: 80px 0;
}

/* Section intro (Ex 3.2) */
.section-intro {
  color: #666;
  font-size: 1.3em;
  font-style: italic;
  text-align: center;
  margin-bottom: 50px;
}

/* Menu grid (Ex 3.3) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Menu category (Ex 3.4) */
.menu-category {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Dish (Ex 3.5) */
.dish {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.menu-category .dish:last-child {
  border-bottom: none;
}

/* Dish special (Ex 3.6) */
.dish-special {
  border-left: 4px solid #FFD700;
  padding-left: 20px;
}

/* Price (Ex 3.7) */
.dish-price {
  color: #8B4513;
  font-weight: bold;
  font-size: 1.2em;
}

/* ===========================
   Chef Section (Ex 4)
   =========================== */
.chef-section {
  padding: 80px 0;
  background: white;
}

.chef-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Chef text (Ex 4.3) */
.chef-text {
  flex: 1;
  max-width: 600px;
}

/* Chef title (Ex 4.4) */
.chef-title {
  color: #8B4513;
  font-style: italic;
  font-size: 1.3em;
  margin-bottom: 20px;
}

/* Chef awards (Ex 4.5) */
.chef-awards {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* Award (Ex 4.6) */
.award {
  background: #8B4513;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
}

/* Chef image (Ex 4.7) */
.chef-image {
  flex: 1;
  max-width: 400px;
}

/* Image placeholder (Ex 4.8) */
.image-placeholder {
  background: #ddd;
  height: 300px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
}

/* ===========================
   Footer (Ex 5)
   =========================== */
.site-footer {
  background: #2c2c2c;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-content h4 {
  margin-bottom: 10px;
}

.contact, .hours {
  flex: 1;
}

/* Closed (Ex 5.4) */
.closed {
  color: #ccc;
  font-style: italic;
}

/* Footer bottom (Ex 5.5) */
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #aaa;
}

/* ===========================
   Transitions & micro-interactions
   =========================== */
a, button {
  transition: all 0.3s ease;
}

/* ===========================
   Responsive (bonus)
   =========================== */
@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chef-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    gap: 12px;
    flex-wrap: wrap;
  }
  h2 { font-size: 1.8em; }
  h1 { font-size: 2em; }
}
