/**
 * WINSTEMIND CMS — Minimal CSS Reset
 */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
}


/* Site-specific overrides */
:root {
  --color-primary: #c41e3a;
  --color-secondary: #1a5f2a;
  --color-accent: #f5e6c8;
}

/**
 * WINSTEMIND CMS — Pizzeria Classique Template
 * Dual theme: dark (gold/charbon) + light (crème/italien)
 * Mobile-first responsive
 */

/* ── Custom Properties ── */
:root {
  --color-primary: #c41e3a;
  --color-secondary: #1a5f2a;
  --color-accent: #f5e6c8;

  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Open Sans', system-ui, sans-serif;

  --header-height: 70px;
  --container-max: 1200px;
  --section-padding: 5rem 0;
  --radius: 8px;
  --transition: 0.3s ease;
}

/* ── Dark Theme (default) ── */
[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-alt: #242424;
  --text: #f0ece4;
  --text-muted: #a89f91;
  --heading: var(--color-accent);
  --border: rgba(245, 230, 200, 0.15);
  --card-bg: #2a2a2a;
  --header-bg: rgba(26, 26, 26, 0.95);
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --cta-bg: var(--color-primary);
  --cta-text: #fff;
  --cta-hover: #d42e4a;
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg: #faf6f0;
  --bg-alt: #f0ece4;
  --text: #2d2d2d;
  --text-muted: #6b6b6b;
  --heading: var(--color-primary);
  --border: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --header-bg: rgba(250, 246, 240, 0.95);
  --hero-overlay: rgba(0, 0, 0, 0.45);
  --cta-bg: var(--color-primary);
  --cta-text: #fff;
  --cta-hover: #a8182f;
}

/* ── Base ── */
html { scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
}

/* ── Mobile Menu Toggle ── */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle--active span:nth-child(2) { opacity: 0; }
.menu-toggle--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav ── */
.nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 100;
}
.nav--open { display: flex; }
.nav__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--color-primary); }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    gap: 2rem;
  }
  .nav__link { font-size: 0.95rem; font-family: var(--font-body); font-weight: 500; }
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-alt) url('') center/cover no-repeat;
  text-align: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
[data-theme="light"] .hero__title { color: #fff; }
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}
.hero__hours {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}
.hero__cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.hero__cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
}

/* ── Sections ── */
.section {
  padding: var(--section-padding);
}
.section:nth-child(even) { background: var(--bg-alt); }
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ── Menu ── */
.menu__category { margin-bottom: 3rem; }
.menu__category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.menu__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.menu__item {
  padding: 0.75rem 0;
}
.menu__item-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.menu__item-name {
  font-weight: 600;
  white-space: nowrap;
}
.menu__item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--border);
  margin-bottom: 4px;
}
.menu__item-price {
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}
.menu__item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .menu__category { max-width: 700px; margin-left: auto; margin-right: auto; }
}

/* ── Spécialités ── */
.specialites__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 768px) { .specialites__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .specialites__grid { grid-template-columns: repeat(3, 1fr); } }

.specialites__card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.specialites__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.specialites__card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.specialites__card-body { padding: 1.25rem; }
.specialites__card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.specialites__card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.specialites__card-price {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* ── About ── */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about__inner { flex-direction: row; gap: 4rem; }
  .about__inner > * { flex: 1; }
}
.about__image-wrap { position: relative; }
.about__image {
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}
.about__badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 0.4rem 1.25rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.about__text .section__title { text-align: left; }
.about__story {
  color: var(--text-muted);
  line-height: 1.8;
}
.about__story p { margin-bottom: 1rem; }

/* ── Contact ── */
.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .contact__inner { flex-direction: row; gap: 3rem; }
  .contact__inner > * { flex: 1; }
}
.contact__info .section__title { text-align: left; }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact__detail strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.contact__detail a {
  color: var(--color-primary);
  transition: opacity var(--transition);
}
.contact__detail a:hover { opacity: 0.8; }
.contact__map iframe {
  border-radius: var(--radius);
}

/* ── Footer ── */
.footer {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
