/* ============================================================
   CHEZ IZZA — La carte
   ============================================================ */

/* ---- Titre page ---- */
.carte-page-titre {
  text-align: center;
  padding: 100px 20px 32px;
  background: var(--beige);
}
.carte-page-titre h1 {
  font-size: clamp(56px, 8vw, 100px);
  color: var(--or);
  line-height: 1;
  margin: 0;
}
@media (max-width: 720px) {
  .carte-page-titre {
    padding-top: 170px;
  }
}

/* ---- Hero ---- */
.carte-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 60px;
}
.carte-hero__titre {
  font-size: clamp(56px, 9vw, 110px);
  line-height: 1;
  margin: 8px 0 16px;
}
.carte-hero__sous {
  font-size: clamp(15px, 2vw, 18px);
  color: #c9bfb0;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.carte-hero__sous strong { color: var(--or-clair); }
.carte-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Menu ancres catégories ---- */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 20px 20px 32px;
  background: var(--beige);
}
.cat-nav a {
  font-family: var(--f-titre2);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brun);
  opacity: .7;
  transition: opacity .2s, color .2s;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.cat-nav a:hover {
  opacity: 1;
  color: var(--or);
  border-bottom-color: var(--or);
}

/* ---- Sections catégories ---- */
.categories { background: var(--beige); overflow-x: hidden; }

.cat-section { padding-block: 28px; }

.cat-section__inner {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 48px;
  align-items: start;
}

.cat-section__photo {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 14px;
  overflow: hidden;
}
.cat-section__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.cat-section__titre {
  font-size: clamp(48px, 6vw, 60px);
  color: var(--or);
  line-height: 1.1;
  margin: 0 0 10px;
}

.cat-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-liste li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(59,26,8,.1);
}
.cat-liste li:last-child { border-bottom: none; padding-bottom: 0; }
.cat-liste li strong {
  font-family: var(--f-titre2);
  font-size: clamp(20px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--brun);
}
.cat-liste li span {
  font-size: clamp(16px, 2vw, 17px);
  color: #6b5040;
  line-height: 1.6;
}
.cat-liste li .prix {
  font-family: var(--f-titre2);
  font-size: 16px;
  color: var(--or);
  margin-top: 2px;
}
.cat-note {
  font-size: clamp(16px, 2vw, 17px);
  color: #6b5040;
  line-height: 1.6;
  margin: 0 0 8px;
  font-style: italic;
}
.cat-pour {
  font-style: italic;
  font-size: 0.85em;
  color: #8a6a50;
  margin-left: 4px;
}
.cat-variante {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(15px, 1.8vw, 16px);
  color: #6b5040;
  line-height: 1.5;
  padding: 4px 0;
  border-top: 1px dashed rgba(59,26,8,.08);
}
.prix-inline {
  font-family: var(--f-titre2);
  font-size: 16px;
  color: var(--or);
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-note--supp {
  margin-top: 12px;
  margin-bottom: 0;
  border-top: 1px solid rgba(59,26,8,.1);
  padding-top: 14px;
  font-style: normal;
  color: var(--brun);
}

@media (max-width: 700px) {
  .cat-section__inner { grid-template-columns: 1fr; gap: 24px; }
  .cat-section__photo { aspect-ratio: 3/2; }
}

/* ---- Strip avis mobile ---- */
.avis-strip { display: none; }

@media (max-width: 720px) {
  .avis-strip {
    display: block;
    background: var(--beige);
    padding: 20px 0 20px 16px;
    overflow: hidden;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
  }
  .avis-strip__inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 16px;
    box-sizing: border-box;
    width: 100%;
  }
  .avis-strip__inner::-webkit-scrollbar { display: none; }
  .avis-strip__card {
    flex: 0 0 75vw;
    max-width: 260px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(44,24,16,.07);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
  }
  .avis-strip__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--f-titre2);
    font-size: 18px;
    color: var(--brun);
    margin-bottom: 12px;
    padding-right: 16px;
  }
  .avis-strip__etoiles { color: #f5a623; font-size: 13px; }
  .avis-strip__card strong {
    font-family: var(--f-titre2);
    font-size: 14px;
    font-weight: 400;
    color: var(--brun);
  }
  .avis-strip__card p {
    font-size: 13px;
    color: #6b5040;
    line-height: 1.55;
    margin: 0;
    font-style: italic;
  }
}

/* ---- Layout carte + sidebar ---- */
.carte-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: start;
  background: var(--beige);
  overflow-x: hidden;
  max-width: 100%;
}

/* ---- Sidebar avis ---- */
.carte-sidebar {
  padding: 28px 20px 28px 0;
}

.csb-avis__lien {
  color: var(--or);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.csb-avis__lien:hover { opacity: .75; }

.carte-sidebar__titre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0 0 20px;
  font-family: var(--f-titre2);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  color: var(--brun);
}

.carte-sidebar__avis {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.csb-avis {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(44,24,16,.07);
}

.csb-avis__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.csb-avis__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--or);
  color: #fff;
  font-family: var(--f-titre2);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.csb-avis__avatar img { width: 100%; height: 100%; object-fit: cover; }
.csb-avis__avatar--violet { background: #7c5cbf; }
.csb-avis__avatar--dark { background: #3b3b3b; }
.csb-avis__avatar--dark2 { background: #1a2a4a; }
.csb-avis__avatar--teal { background: #1a7a6e; }
.csb-avis__avatar--rose { background: #c0392b; }
.csb-avis__avatar--orange { background: #d35400; }

.csb-avis__nom {
  display: block;
  font-family: var(--f-titre2);
  font-size: 13px;
  font-weight: 400;
  color: var(--brun);
}
.csb-avis__meta {
  font-size: 11px;
  color: #9a8070;
}
.csb-avis__etoiles {
  color: #f5a623;
  font-size: 12px;
  margin-bottom: 6px;
}
.csb-avis__texte {
  font-size: 13px;
  color: #6b5040;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

@media (max-width: 960px) {
  .carte-layout { grid-template-columns: 1fr; }
  .carte-sidebar { display: none; }
}

/* ---- Sections carte ---- */
.carte-section {
  padding-block: clamp(48px, 7vw, 96px);
  background: var(--creme);
}
.carte-section--beige {
  background: var(--beige);
}
.carte-section__header {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.carte-section__titre {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  margin: 6px 0 0;
}

/* ---- Grille de plats ---- */
.carte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

/* ---- Carte plat ---- */
.plat-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44,24,16,.08);
  transition: transform .2s, box-shadow .2s;
}
.plat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44,24,16,.14);
}
.plat-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--beige);
}
.plat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.plat-card:hover .plat-card__img img {
  transform: scale(1.04);
}
/* placeholder quand pas encore de photo */
.plat-card__img:not(:has(img[src*="."]))::after,
.plat-card__img img[src=""]::after {
  content: "";
}
.plat-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--or);
  font-family: var(--f-titre);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.plat-card__body {
  padding: 18px 20px 22px;
}
.plat-card__nom {
  font-family: var(--f-titre2);
  font-size: 18px;
  font-weight: 400;
  color: var(--brun);
  margin: 0 0 6px;
}
.plat-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: #6b5040;
  margin: 0;
}

/* ---- CTA final ---- */
.carte-cta-final {
  background: var(--brun);
  padding-block: clamp(48px, 7vw, 96px);
  text-align: center;
}
.carte-cta-final__titre {
  font-size: clamp(52px, 8vw, 100px);
  line-height: 1;
  margin: 0 0 16px;
}
.carte-cta-final__sous {
  color: #c9bfb0;
  font-size: clamp(15px, 2vw, 18px);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.carte-cta-final__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .carte-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .plat-card__body { padding: 14px 14px 16px; }
  .plat-card__nom { font-size: 15px; }
  .plat-card__desc { font-size: 13px; }
  .carte-hero__ctas { flex-direction: column; align-items: center; }
  .carte-cta-final__btns { flex-direction: column; align-items: center; }
  .carte-cta-final__btns .btn { width: 100%; max-width: 320px; justify-content: center; }
  .carte-hero__ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 400px) {
  .carte-grid { grid-template-columns: 1fr; }
}
