/* ============================================================
   Amaya — Menu rendu HTML (design proche PDF crème/palmier)
   ============================================================ */

/* Carte container — papier crème + texture douce */
.m-card{
  position:relative;
  margin:36px auto 0;
  max-width:900px;
  background:
    radial-gradient(800px 600px at 0% 0%, rgba(180,140,90,.08) 0%, transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(180,140,90,.06) 0%, transparent 60%),
    linear-gradient(180deg, #f7ecd6 0%, #f0e3c7 100%);
  border:1px solid rgba(120,80,40,.18);
  border-radius:14px;
  padding:54px 56px 46px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 60px -20px rgba(60,30,10,.18),
    0 8px 24px -10px rgba(60,30,10,.10);
  color:#3a2614;
  overflow:hidden;
}
.m-card::before, .m-card::after{
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  pointer-events:none;
  background-repeat:no-repeat;
  background-size:contain;
  opacity:.32;
}
.m-card::before{
  top:-30px; left:-40px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g stroke='%23556b2f' stroke-width='1.5' fill='%23556b2f' fill-opacity='.18'><path d='M40 30c20 0 50 20 70 60-30-15-55-25-80-30 5-12 7-22 10-30z'/><path d='M30 80c25 5 55 25 75 60-30-10-55-15-85-15 3-15 7-30 10-45z'/><path d='M55 130c25 10 50 25 70 50-30-5-55-5-85 0 5-18 10-35 15-50z'/></g></svg>");
  transform:rotate(-12deg);
}
.m-card::after{
  bottom:-20px; right:-30px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g stroke='%23556b2f' stroke-width='1.5' fill='%23556b2f' fill-opacity='.18'><path d='M160 170c-20 0-50-20-70-60 30 15 55 25 80 30-5 12-7 22-10 30z'/><path d='M170 120c-25-5-55-25-75-60 30 10 55 15 85 15-3 15-7 30-10 45z'/></g></svg>");
  transform:rotate(8deg);
}

/* Cover */
.m-cover{
  text-align:center;
  padding:6px 0 28px;
  position:relative;
}
.m-cover-mark{
  display:inline-flex;
  width:46px; height:46px;
  align-items:center; justify-content:center;
  color:#b95e2c;
  margin-bottom:12px;
}
.m-cover-mark .m-palm{ width:36px; height:36px; }
.m-cover-name{
  font-family:'Cormorant Garamond', serif;
  font-weight:600;
  font-size:clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing:.18em;
  color:#2a1f17;
  margin:0 0 6px;
}
.m-cover-sub{
  font-family:'Manrope', sans-serif;
  font-weight:500;
  font-size:.78rem;
  letter-spacing:.36em;
  color:#b95e2c;
  text-transform:uppercase;
  margin-bottom:14px;
}
.m-cover-tag{
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:1.05rem;
  color:#5a3e22;
  max-width:520px;
  margin:0 auto;
}

/* Corps */
.m-body{ position:relative; z-index:1; }

/* Section */
.m-sec{ margin-top:38px; }
.m-sec:first-child{ margin-top:8px; }
.m-sec-head{
  text-align:center;
  margin:0 auto 22px;
}
.m-sec-bullet{
  display:none;
}
.m-sec-title{
  display:inline-block;
  margin:0;
  font-family:'Cormorant Garamond', serif;
  font-weight:600;
  font-size:clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing:.32em;
  color:#b95e2c;
  text-transform:uppercase;
}
.m-sec-title::before,
.m-sec-title::after{
  content:"·";
  color:#b95e2c;
  margin:0 .55em;
  font-weight:700;
}
.m-sec-rule{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:6px;
}
.m-sec-rule .m-sec-line{
  display:block;
  width:80px;
  height:1px;
  background:#b95e2c;
  opacity:.7;
}
.m-sec-rule .m-palm{
  width:14px; height:14px;
  color:#b95e2c;
  flex-shrink:0;
}

/* List */
.m-list{
  list-style:none;
  padding:0;
  margin:0;
}

/* Detailed item */
.m-item-detailed{
  padding:10px 0 14px;
  border-bottom:1px dotted rgba(120,80,40,.32);
}
.m-item-detailed:last-child{ border-bottom:0; }
.m-item-detailed .m-item-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
}
.m-item-detailed .m-item-name{
  font-family:'Manrope', sans-serif;
  font-weight:700;
  font-size:.98rem;
  letter-spacing:.04em;
  color:#2a1f17;
  text-transform:uppercase;
}
.m-item-detailed .m-item-price{
  font-family:'Manrope', sans-serif;
  font-weight:600;
  font-size:1.05rem;
  color:#b95e2c;
  white-space:nowrap;
}
.m-item-detailed .m-item-desc{
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:.98rem;
  color:#5a3e22;
  margin-top:4px;
  max-width:78%;
  line-height:1.45;
}

/* Compact item */
.m-item-compact{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:7px 0;
}
.m-item-compact .m-item-name{
  font-family:'Manrope', sans-serif;
  font-weight:600;
  font-size:.86rem;
  letter-spacing:.06em;
  color:#2a1f17;
  text-transform:uppercase;
}
.m-item-compact .m-item-leader{
  flex:1;
  border-bottom:1px dotted rgba(120,80,40,.42);
  transform:translateY(-4px);
  min-width:30px;
}
.m-item-compact .m-item-price{
  font-family:'Manrope', sans-serif;
  font-weight:600;
  font-size:.95rem;
  color:#b95e2c;
  white-space:nowrap;
}

/* Footer carte */
.m-foot{
  margin-top:42px;
  padding-top:22px;
  border-top:1px dashed rgba(120,80,40,.32);
  text-align:center;
}
.m-foot-line{
  font-family:'Manrope', sans-serif;
  font-size:.72rem;
  letter-spacing:.22em;
  color:#5a3e22;
  text-transform:uppercase;
}
.m-foot-dot{ margin:0 .6em; color:#b95e2c; }
.m-foot-halal{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:7px 16px;
  background:rgba(60,90,40,.10);
  border:1px solid rgba(60,90,40,.22);
  border-radius:999px;
  font-family:'Manrope', sans-serif;
  font-size:.7rem;
  letter-spacing:.22em;
  color:#4a5a32;
  text-transform:uppercase;
}
.m-halal-mark{
  width:16px; height:16px;
  display:inline-flex;
  align-items:center; justify-content:center;
  background:#4a7c3a;
  color:#fff;
  border-radius:50%;
  font-size:.65rem;
  font-weight:700;
}

/* Erreur */
.m-err{ text-align:center; color:#7a5232; padding:24px; }

/* Actions row PDF (au-dessus de la carte) */
.menu-actions-row{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:24px;
  flex-wrap:wrap;
}

/* PDF lightbox trigger compact */
.menu-pdf-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 18px;
  border-radius:999px;
  font-family:'Manrope', sans-serif;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-decoration:none;
  transition:all .2s;
}
.menu-pdf-link.is-primary{
  background:#b95e2c; color:#fff;
  border:1px solid #b95e2c;
}
.menu-pdf-link.is-primary:hover{ background:#a04a1c; }
.menu-pdf-link.is-ghost{
  background:transparent; color:#5a3e22;
  border:1px solid rgba(120,80,40,.32);
}
.menu-pdf-link.is-ghost:hover{
  background:rgba(120,80,40,.06);
  border-color:rgba(120,80,40,.5);
}

/* Responsive */
@media (max-width: 760px){
  .m-card{ padding:36px 20px 32px; border-radius:10px; margin-top:24px; }
  .m-card::before, .m-card::after{ width:140px; height:140px; opacity:.22; }
  .m-cover{ padding:0 0 18px; }
  .m-cover-name{ letter-spacing:.12em; }
  .m-cover-sub{ letter-spacing:.22em; font-size:.7rem; }
  .m-cover-tag{ font-size:.95rem; }
  .m-sec{ margin-top:30px; }
  .m-sec-title{ font-size:1.15rem; letter-spacing:.22em; }
  .m-sec-title::before, .m-sec-title::after{ margin:0 .35em; }
  .m-sec-rule .m-sec-line{ width:50px; }
  .m-item-detailed{ padding:8px 0 12px; }
  .m-item-detailed .m-item-head{ gap:8px; }
  .m-item-detailed .m-item-name{ font-size:.9rem; letter-spacing:.02em; }
  .m-item-detailed .m-item-price{ font-size:.98rem; }
  .m-item-detailed .m-item-desc{ max-width:100%; font-size:.94rem; }
  .m-item-compact .m-item-name{ font-size:.8rem; }
  .m-item-compact .m-item-price{ font-size:.88rem; }
  .m-foot-line{ font-size:.65rem; letter-spacing:.16em; }
}

/* Cache l'ancien menu-wrap PDF si renderer monte (fallback gracieux pour no-JS) */
.menu-wrap-legacy{
  display:none;
}
