/* Piazza Cucina - tout-en-un */
@import url("../fonts/style.css");

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Jost, sans-serif; font-size: 1rem; line-height: 1.5; color: #232323; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.wrap--narrow { max-width: 900px; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(53,53,53,.92); border-bottom: 1px solid rgba(255,255,255,.08); min-height: 77px; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(35,35,35,.98); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 2.25rem; min-height: 77px; }
.nav-logo { transition: opacity .2s; }
.nav-logo:hover { opacity: .9; }
.nav-logo img { height: 3.8rem; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: #fff; font-size: 1.1rem; font-weight: 500; text-transform: uppercase; position: relative; padding: .35rem 0; transition: color .25s; }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #e60101; transform: scaleX(0); transition: transform .25s ease; }
.nav-menu a:hover { color: #fff; }
.nav-menu a:hover::after { transform: scaleX(1); }
.page-index .nav-menu a[href="index.html"]::after,
.page-menu .nav-menu a[href="menu.html"]::after,
.page-emporter .nav-menu a[href="carteemporter.html"]::after,
.page-contact .nav-menu a[href="contact.html"]::after { transform: scaleX(1); color: #fff; }
/* CTA téléphone : règles plus spécifiques que .nav-menu a pour garder padding/gap */
.nav-menu a.nav-cta { display: inline-flex; align-items: center; gap: .75rem; padding: .55rem 2rem; background: #e60101; color: #fff !important; border-radius: 6px; font-weight: 600; white-space: nowrap; transition: background .25s, transform .2s; }
.nav-cta::after { display: none; }
.nav-cta__icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; display: block; }
.nav-cta__num { line-height: 1; white-space: nowrap; }
.nav-menu a.nav-cta:hover { background: #c50101; color: #fff; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; transition: opacity .2s; }
.nav-toggle:hover { opacity: .85; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 991px) {
  .nav-menu a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 77px; left: 0; right: 0; background: #353535; flex-direction: column;
    padding: 0 1.5rem; gap: 0; max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: max-height .3s, opacity .25s, visibility .25s;
  }
  .nav-menu.nav-open {
    max-height: 80vh; overflow: auto; padding: 1.5rem;
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-menu li { width: 100%; border-bottom: 1px solid #444; }
  .nav-menu a { display: block; padding: .75rem 0; }
  .nav-menu a.nav-cta { margin-top: .5rem; display: flex; justify-content: center; align-items: center; gap: .75rem; padding: .7rem 1.75rem; min-height: 2.75rem; }
}

/* Hero */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: url("../images/49727980-2265409420405001-4142208112578789376-n-2000x1500.jpeg") 50% 50% / cover no-repeat; position: relative; padding: 6rem 1rem 4rem; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 100%); }
.hero-content { position: relative; z-index: 1; }
.hero-tagline { color: rgba(255,255,255,.9); font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 0.5rem; animation: fadeInUp 0.8s ease-out both; }
.hero-title { font-family: 'beyond_the_mountains', serif; font-size: clamp(2.75rem, 8vw, 6rem); line-height: 1.1; color: #fff; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.3); animation: fadeInUp 0.8s ease-out 0.15s both; }
.hero-sub { color: rgba(255,255,255,.95); font-size: clamp(1rem, 2vw, 1.2rem); margin: 0.75rem 0 1.5rem; font-weight: 500; animation: fadeInUp 0.8s ease-out 0.3s both; }
.btn-hero { display: inline-block; padding: 0.75rem 2rem; background: #e60101; color: #fff !important; border-radius: 4px; font-weight: 600; font-size: 1.1rem; transition: transform .2s, box-shadow .2s; animation: fadeInUp 0.8s ease-out 0.45s both; }
.btn-hero:hover { background: #c50101; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,1,1,.35); }
.hero-phone { display: block; margin-top: 1.25rem; color: rgba(255,255,255,.9); font-size: 1rem; font-weight: 500; animation: fadeInUp 0.8s ease-out 0.6s both; }
.hero-phone:hover { color: #fff; text-decoration: underline; }
.hero-scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1; animation: bounce 2s ease-in-out 1.5s infinite; }
.hero-scroll span { display: block; width: 24px; height: 24px; border-right: 2px solid rgba(255,255,255,.7); border-bottom: 2px solid rgba(255,255,255,.7); transform: rotate(45deg); margin: -8px 0 0 -8px; }

/* Intro bande */
.intro { padding: 3rem 1rem; background: #f8f8f8; }
.intro-text { font-size: 1.15rem; line-height: 1.7; color: #444; margin: 0 0 2rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.intro-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.intro-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; background: #fff; border-radius: 8px; color: #232323; font-weight: 600; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.intro-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); color: #e60101; }
.intro-link__icon { font-size: 1.25rem; }
@media (max-width: 767px) { .intro-links { flex-direction: column; } .intro-link { justify-content: center; } }

/* Section histoire */
.section-history .section-title,
.section-history .section-lead { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.section-history.in-view .section-title,
.section-history.in-view .section-lead { opacity: 1; transform: translateY(0); }
.section-history.in-view .section-lead { transition-delay: 0.1s; }
.section-lead { font-size: 1.1rem; color: #666; margin: -1rem 0 2rem; }
.grid-history .menu-card { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.section-history.in-view .grid-history .menu-card { opacity: 1; transform: translateY(0); }
.section-history.in-view .grid-history .menu-card:nth-child(1) { transition-delay: 0.1s; }
.section-history.in-view .grid-history .menu-card:nth-child(2) { transition-delay: 0.25s; }

/* Sections communes */
.section { padding: 4rem 1rem; background: #fff; }
.section--alt { padding-top: 6rem; }
.section-title { font-family: 'beyond_the_mountains', serif; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; text-align: center; margin: 0 0 2rem; }
.section-title--white { color: #fff; }

/* Page titre (menu / emporter) */
.page-title { padding: 9rem 1rem 4rem; text-align: center; background: url("../images/pizza-pie-tomatoes-oil-1920x1440-1920x1440.jpg") 50% 50% / cover no-repeat; position: relative; }
.page-title-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 100%); }
.page-title h1 { position: relative; z-index: 1; font-family: 'beyond_the_mountains', serif; font-size: clamp(2.5rem, 6vw, 4.5rem); color: #fff; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.4); animation: fadeInUp 0.7s ease-out both; }
.page-title-sub { position: relative; z-index: 1; color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 1rem 0 0; animation: fadeInUp 0.7s ease-out 0.2s both; }
.page-title-intro { max-width: 640px; margin: 2rem auto 0; padding: 0 1rem; position: relative; z-index: 1; color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.6; animation: fadeInUp 0.7s ease-out 0.35s both; }

/* Sections menu (révélation au scroll) */
.menu-section { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
.menu-section.in-view { opacity: 1; transform: translateY(0); }
.menu-section.in-view .menu-section-title { opacity: 1; transform: translateY(0); }
.menu-section .menu-section-title { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.menu-section .menu-subtitle { opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.menu-section.in-view .menu-subtitle { opacity: 1; transform: translateY(0); }
.menu-section .menu-card { opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.menu-section.in-view .menu-card { opacity: 1; transform: translateY(0); }
.menu-section.in-view .menu-card:nth-child(1) { transition-delay: 0.05s; }
.menu-section.in-view .menu-card:nth-child(2) { transition-delay: 0.1s; }
.menu-section.in-view .menu-card:nth-child(3) { transition-delay: 0.15s; }
.menu-section.in-view .menu-card:nth-child(4) { transition-delay: 0.2s; }
.menu-section.in-view .menu-card:nth-child(5) { transition-delay: 0.25s; }
.menu-section.in-view .menu-card:nth-child(6) { transition-delay: 0.3s; }
.menu-section.in-view .menu-card:nth-child(7) { transition-delay: 0.35s; }
.menu-section.in-view .menu-card:nth-child(8) { transition-delay: 0.4s; }
.menu-section.in-view .menu-card:nth-child(9) { transition-delay: 0.45s; }
.menu-section.in-view .menu-card:nth-child(10) { transition-delay: 0.5s; }
.menu-section.in-view .menu-card:nth-child(n+11) { transition-delay: 0.55s; }
.menu-section .grid { margin-top: 1.5rem; }
.menu-section .menu-subtitle { margin-top: 1.5rem; }
.menu-section .menu-subtitle:first-of-type { margin-top: 0; }

/* Grille 2 colonnes */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 767px) { .grid { grid-template-columns: 1fr; } }

/* Cartes menu */
.menu-card { background: #fafafa; border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; transition: transform .25s, box-shadow .25s, background .25s; }
.menu-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); background: #fff; }
@media (min-width: 768px) { .menu-card { padding: 2rem; } }
.menu-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .25rem; }
.menu-card__title { font-size: 1.25rem; font-weight: 700; margin: 0; text-transform: uppercase; }
.menu-card__price { font-size: 1.25rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.menu-card__desc { font-size: 1rem; line-height: 1.5; margin: 0; color: #444; }
.menu-section-title { font-family: 'beyond_the_mountains', serif; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 1.5rem; }
.menu-subtitle { font-size: 1.1rem; font-weight: 600; color: #555; margin: 1.5rem 0 0.75rem; }
.menu-subtitle:first-of-type { margin-top: 0; }

/* Contact */
.contact {
  min-height: 100vh;
  padding: 8rem 1rem 4rem;
  background: url("../images/mbr-1920x1281.jpg") 50% 50% / cover no-repeat;
  position: relative;
}
.contact-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(50,40,35,.4) 0%, rgba(50,40,35,.55) 100%); }
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { color: #fff; text-align: center; margin-bottom: 0.5rem; opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.contact.in-view h2 { opacity: 1; transform: translateY(0); }
.contact-intro { text-align: center; color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.6; opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s; }
.contact.in-view .contact-intro { opacity: 1; transform: translateY(0); }
.contact-card { display: flex; align-items: flex-start; gap: 1.5rem; background: rgba(255,255,255,.96); border-radius: 8px; padding: 1.5rem 2rem; margin-bottom: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,.08); opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow .25s; }
.contact.in-view .contact-card { opacity: 1; transform: translateY(0); }
.contact.in-view .contact-card:nth-child(1) { transition-delay: 0.15s; }
.contact.in-view .contact-card:nth-child(2) { transition-delay: 0.25s; }
.contact.in-view .contact-card:nth-child(3) { transition-delay: 0.35s; }
.contact.in-view .contact-card:nth-child(4) { transition-delay: 0.45s; }
.contact.in-view .contact-card:nth-child(5) { transition-delay: 0.55s; }
.contact-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.contact-card__icon { flex-shrink: 0; color: #e60101; transition: transform .25s; }
.contact-card:hover .contact-card__icon { transform: scale(1.1); }
.contact-card__icon svg { width: 2rem; height: 2rem; }
.contact-card__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 .25rem; }
.contact-card__text { margin: 0; font-size: 1rem; }
.contact-card a { color: #e60101; transition: color .2s; }
.contact-card a:hover { color: #900101; }
.contact .grid { margin-top: 2rem; }
.contact-cta { text-align: center; margin-top: 2.5rem; opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out 0.6s, transform 0.5s ease-out 0.6s; }
.contact.in-view .contact-cta { opacity: 1; transform: translateY(0); }
.contact-cta .btn { display: inline-block; padding: 0.75rem 2rem; background: #e60101; color: #fff !important; border-radius: 6px; font-weight: 600; transition: background .25s, transform .2s; }
.contact-cta .btn:hover { background: #c50101; transform: translateY(-2px); }
.contact-cta__secondary { display: block; margin-top: 0.75rem; }
.contact-cta__secondary a { color: rgba(255,255,255,.9); font-size: 0.95rem; }
.contact-cta__secondary a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 992px) { .contact-card { padding: 2rem 4rem; } }

/* Footer */
.menu-disclaimer { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem 1.5rem; font-size: 0.85rem; color: #666; text-align: center; line-height: 1.4; }

/* Footer */
.footer { padding: 1.5rem 1rem; background: #fff; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-social a { opacity: .7; transition: opacity .2s, transform .2s; }
.footer-social a:hover { opacity: 1; transform: scale(1.15); }
.footer-social svg { width: 1.5rem; height: 1.5rem; }
.footer-copy { margin: 0; font-size: .95rem; color: #232323; }
.footer-copy a { color: #ff0000; }

/* Utilitaires */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
