/* ==========================================================================
   Aoyama — Restaurant japonais à Lille
   Feuille de style principale (mobile-first, responsive)
   ========================================================================== */

:root {
  --navy: #1c2c5b;
  --navy-dark: #121e40;
  --cream: #fbeae6;
  --cream-dark: #f5ded8;
  --white: #ffffff;
  --red: #c1272d;
  --text: #1c2c5b;
  --radius: 14px;
  --max-width: 1140px;
  --header-height: 64px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--navy-dark);
}

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

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

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Bandeau d'annonce ---------- */

.announcement-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  padding: 10px 16px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

.main-nav {
  position: fixed;
  top: var(--header-height); /* repositionné en JS à l'ouverture (voir main.js) */
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px calc(40px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.main-nav.is-open {
  transform: translateX(0);
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 14px 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  border-bottom: 1px solid var(--cream-dark);
}

.main-nav .btn {
  margin-top: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 0.6em 1.3em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.btn {
  white-space: nowrap;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-header .container {
    flex-wrap: nowrap;
  }

  .logo { order: 1; }
  .main-nav { order: 2; }
  .header-actions { order: 3; }

  .main-nav {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    overflow: visible;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 22px;
  }

  .main-nav a {
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: none;
  }

  .main-nav .btn {
    display: none;
  }
}

@media (min-width: 1100px) {
  .main-nav ul {
    gap: 26px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 60px;
  text-align: center;
}

.hero .eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.hero-image {
  margin: 32px auto 0;
  max-width: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, #33447a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 20px;
}

/* ---------- Galerie photo (défilement horizontal) ---------- */

.photo-gallery {
  position: relative;
  margin-top: 32px;
}

.photo-gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}

.photo-gallery-track::-webkit-scrollbar {
  display: none;
}

.photo-gallery-track img {
  flex: 0 0 auto;
  width: 240px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(28, 44, 91, 0.1);
}

@media (min-width: 700px) {
  .photo-gallery-track img {
    width: 300px;
    height: 380px;
  }
}

.photo-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(28, 44, 91, 0.2);
  color: var(--navy);
  font-size: 1.1rem;
  z-index: 5;
  transition: opacity 0.15s ease;
}

.photo-gallery-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.photo-gallery-arrow.prev { left: -6px; }
.photo-gallery-arrow.next { right: -6px; }

@media (min-width: 700px) {
  .photo-gallery-arrow.prev { left: -20px; }
  .photo-gallery-arrow.next { right: -20px; }
}

.workshop-photo {
  width: 100%;
  max-width: 420px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(28, 44, 91, 0.1);
}

/* ---------- Section header pill (style "bandeau bleu") ---------- */

.section-title {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.5em 1.4em;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.2em;
}

section {
  padding: 48px 0;
}

section.alt {
  background: var(--white);
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(28, 44, 91, 0.06);
  text-align: center;
}

.card h3 {
  margin-bottom: 0.4em;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 16px;
}

.product-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #33447a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--red);
}

/* ---------- Menu (page carte) ---------- */

.menu-item {
  margin-bottom: 1.4em;
}

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.menu-item p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: #3a4674;
}

.menu-block {
  margin-bottom: 40px;
}

.drink-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--cream-dark);
  font-size: 0.95rem;
}

.drink-row .name {
  font-weight: 600;
}

.drink-row .desc {
  display: block;
  font-size: 0.82rem;
  color: #5a6494;
  font-weight: 400;
}

.formula-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.formula-box h3 {
  color: var(--white);
  text-transform: uppercase;
}

/* ---------- Gift card amounts ---------- */

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 640px) {
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
}

.amount-card {
  display: block;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.amount-card:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- FAQ accordion ---------- */

.faq-item {
  border-bottom: 1px solid var(--cream-dark);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding-bottom: 18px;
  color: #3a4674;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info li {
  margin-bottom: 1em;
}

.contact-info .label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-bottom: 2px;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  width: 100%;
  min-height: 280px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 40px;
}

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

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-grid h4 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-grid p, .footer-grid li {
  font-size: 0.9rem;
  opacity: 0.85;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
}

.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- Utility notices ---------- */

.notice {
  background: #fff3cd;
  border: 1px solid #ffe08a;
  color: #6b5300;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
