/* =========================================
   Pizza Pinos — Page d'accueil
   ========================================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- Variables --- */
:root {
  --bg:           #FAF8F4;
  --surface:      #FFFFFF;
  --text:         #1A1A1A;
  --muted:        #8A8070;
  --accent:       #C0392B;
  --accent-hover: #96271F;
  --border:       #E8E2D9;
  --radius:       8px;
}

body {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* --- Wrapper --- */
.pp-wrap {
  width: 100%;
  max-width: 860px;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
}

/* --- Header --- */
header {
  margin-bottom: 2.8rem;
  text-align: center;
}

.pp-logo {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .4rem;
   cursor: pointer;
}

.pp-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin: 0 auto .8rem;
}

.pp-tagline {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .08em;
}

/* --- Titres de section (menu) --- */
.section-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

/* --- Galerie menu --- */
.menu-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .menu-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .menu-gallery { grid-template-columns: repeat(3, 1fr); }
}

.menu-img-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.menu-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
  border-color: var(--accent);
}

.menu-img-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.menu-img-card:hover img { transform: scale(1.04); }

.menu-img-label {
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox-overlay.active img { transform: scale(1); }

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0.3rem 0.6rem;
}
.lightbox-close:hover { opacity: 1; }

/* --- Divider --- */
.pp-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.8rem 0;
}

/* --- Hero --- */
.pp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.pp-hero-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pp-hero-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 500px;
}

.pp-hero-desc {
  font-size: .95rem;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
}

/* --- Boutons --- */
.pp-btns {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}

.pp-btn-primary,
.pp-btn-outline {
  font-family: 'Times New Roman', Times, serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  padding: .85rem 2.2rem;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s;
}

.pp-btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(192,57,43,0.25);
}
.pp-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192,57,43,0.35);
}

.pp-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.pp-btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* --- Localisation --- */
.pp-location {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.pp-location i {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.pp-loc-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pp-loc-addr {
  font-size: .9rem;
  margin-top: .2rem;
}

.pp-loc-link {
  font-size: .78rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: .2rem;
  display: inline-block;
}
.pp-loc-link:hover { text-decoration: underline; }

/* --- Footer --- */
.pp-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .06em;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.pp-footer-tel {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .08em;
}
.pp-footer-tel:hover { text-decoration: underline; }

/* --- Responsive mobile --- */
@media (max-width: 480px) {
  .pp-wrap { padding: 1.8rem 1rem 2.5rem; }
  .pp-btns { flex-direction: column; width: 100%; }
  .pp-btns button { width: 100%; text-align: center; }
}

/* --- Formulaire de commande --- */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  font-weight: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 90px; }

.btn-submit {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2.5rem;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(192,57,43,0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192,57,43,0.35);
}

@media (max-width: 480px) {
  .btn-submit { width: 100%; text-align: center; }
}

/* --- Grille catégories (index) --- */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  flex-shrink: 0;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  border-color: var(--accent);
}

.cat-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 2.8rem;
  color: var(--muted);
  transition: color .25s;
}

.cat-card:hover .cat-placeholder {
  color: var(--accent);
}

/* quand une vraie image remplace le placeholder */
.cat-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.cat-card:hover img { transform: scale(1.04); }

.cat-label {
  width: 100%;
  padding: .7rem 1rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
  text-align: center;
  transition: color .25s;
}

.cat-card:hover .cat-label { color: var(--accent); }

@media (max-width: 480px) {
  .cat-card { width: calc(50% - .5rem); }
}

/* --- Badge "Sur commande" --- */
.cat-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.cat-badge {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: .15rem .5rem;
}

/* --- Fiches produits --- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.product-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  transition: border-color .2s, box-shadow .2s;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.product-icon {
  font-size: 1.8rem;
  color: var(--muted);
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  padding-top: .1rem;
  transition: color .2s;
}

.product-card:hover .product-icon {
  color: var(--accent);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-name {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.product-price {
  font-size: .95rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.product-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-note {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .2rem;
  opacity: .8;
}

.product-note i {
  font-size: .9rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .product-card { flex-direction: column; gap: .8rem; }
  .product-icon { width: auto; }
}

/* --- Carte mise en avant (Box Tex-Mex, etc.) --- */
.product-featured {
  border-color: var(--accent);
  background: var(--surface);
  position: relative;
}

.product-featured::before {
  content: 'À ne pas manquer';
  position: absolute;
  top: -0.7rem;
  left: 1.2rem;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  padding: 0 .4rem;
}

/* --- Bannière info (couscous, etc.) --- */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--accent-light, rgba(192,57,43,0.07));
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
}

.info-banner i {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .1rem;
}

.info-banner-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: .2rem;
}

.info-banner-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Grille desserts / couscous --- */
.dessert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.dessert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.2rem 1.2rem;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  cursor: default;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.dessert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
  border-color: var(--accent);
}

.dessert-card--featured {
  border-color: var(--accent);
  background: var(--surface);
  position: relative;
}

.dessert-icon {
  font-size: 2.2rem;
  color: var(--muted);
  transition: color .2s;
}

.dessert-card:hover .dessert-icon,
.dessert-card--featured .dessert-icon {
  color: var(--accent);
}

.dessert-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
}

.dessert-name {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.dessert-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.dessert-badge {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: .15rem .55rem;
}

.dessert-note {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .dessert-card { width: calc(50% - .5rem); }
}

/* --- Section livraison --- */
.delivery-section {
  margin-bottom: 2rem;
}

.delivery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.delivery-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  width: calc(50% - .5rem);
  transition: border-color .2s, box-shadow .2s;
}

.delivery-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.delivery-card i {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .1rem;
}

.delivery-card--promo {
  border-color: var(--accent);
  background: rgba(192,57,43,0.04);
}

.delivery-card-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .2rem;
}

.delivery-card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Prix fous --- */
.prix-fous {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 1.4rem 2rem;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.prix-fous-badge {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}

.prix-fous-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.prix-fous-label {
  font-size: .82rem;
  opacity: .9;
  letter-spacing: .04em;
}

/* --- Section menu image --- */
.menu-img-section {
  margin-bottom: 1.5rem;
}

/* --- Bouton toggle icône --- */
.pp-btn-outline i {
  vertical-align: -2px;
  margin-right: .3rem;
}

@media (max-width: 480px) {
  .delivery-card { width: 100%; }
}

/* --- Liste boissons --- */
.drink-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 3rem;
}

.drink-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  transition: border-color .2s, box-shadow .2s;
}

.drink-row:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.drink-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drink-left i {
  font-size: 1.5rem;
  color: var(--accent);
  width: 1.8rem;
  text-align: center;
  flex-shrink: 0;
}

.drink-texts {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.drink-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.drink-qty {
  font-size: .95rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.drink-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* --- Grille glaces --- */
.ice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem 2rem;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: default;
}

.ice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  border-color: var(--accent);
}

.ice-icon {
  font-size: 3.5rem;
  color: var(--muted);
  transition: color .2s;
}

.ice-card:hover .ice-icon {
  color: var(--accent);
}

.ice-name {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.ice-qty {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.ice-price {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: .3rem;
}

@media (max-width: 480px) {
  .ice-card { width: calc(50% - .75rem); }
}