
*{box-sizing:border-box}html,body{margin:0;height:100%}
body{font-family:'Montserrat',Arial,sans-serif;color:#fff;background:#000}
body.public{background:url('../images/texture.jpg') center/cover fixed}
.wrapper{min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
.topbar,.footerbar{background:rgba(5,5,5,.95);border-top:1px solid rgba(214,169,120,.45);border-bottom:1px solid rgba(214,169,120,.45)}
.topbar{height:115px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:40px}
.topbar .left,.topbar .right{display:flex;align-items:center;gap:28px}
.topbar .right{justify-content:flex-end}
.topbar a{color:#f7f2ea;text-decoration:none;font-weight:700;font-size:20px;letter-spacing:1px}
.topbar a.active{color:#d6a978;border-bottom:3px solid #d6a978;padding-bottom:10px}
.logo-small{height:88px}
.hero-logo{text-align:center;margin:10px 0 0}.hero-logo img{width:360px;max-width:80%}
.market-title{text-align:center}.market-title h1{font-family:'Bebas Neue',sans-serif;font-size:120px;letter-spacing:4px;margin:0;line-height:.95;color:#efe8dd}
.subtitle{font-size:72px;font-style:italic;color:#d6a978}
.market-list{width:95%;max-width:1000px;margin:30px auto}
.market-item{display:grid;grid-template-columns:400px 1fr;background:#efe8dd;border-radius:16px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.4);margin:14px 0}
.day{background:linear-gradient(90deg,#7a0d0c,#980909);display:flex;align-items:center;gap:25px;padding:28px 35px;color:#fff;font-family:'Bebas Neue';font-size:68px;letter-spacing:2px}
.day img{width:58px}
.place{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:20px 50px;color:#33251f}
.place .row{display:flex;align-items:center;gap:18px;font-family:'Bebas Neue';font-size:58px}
.place .row img{width:42px}
.place small{font-size:26px;font-weight:700;margin-left:60px}
.quality{text-align:center;color:#d6a978;margin:30px 0 10px}
.quality h2{font-family:'Bebas Neue';font-size:90px;margin:0}
.quality .small{font-size:24px;color:#f0e7d8}
.script{font-size:72px;font-style:italic;color:#d6a978}
.meat-left,.meat-right{position:absolute;bottom:0px;width:260px;z-index:0;pointer-events:none}
.meat-left{left:0}.meat-right{right:0}
.content-layer{position:relative;z-index:1}
.card{max-width:1100px;margin:30px auto;background:rgba(0,0,0,.68);border:1px solid rgba(214,169,120,.25);padding:30px;border-radius:18px;line-height:1.8;font-size:18px}
.card h1{font-family:'Bebas Neue';font-size:72px;color:#d6a978;text-align:center}
.footerbar{padding:20px}
.contacts{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;color:#f0e7d8;font-size:18px;align-items:center}
.social{text-align:center;margin-top:15px}
.social a{color:#d6a978;text-decoration:none;margin:0 10px;font-size:22px}
.table-wrap table{width:100%;border-collapse:collapse;background:transparent;color:#f0e7d8}.table-wrap th,.table-wrap td{padding:10px;border:1px solid rgba(214,169,120,.35);background:rgba(0,0,0,.18)}.table-wrap th{background:rgba(122,13,12,.75);color:#fff}
@media(max-width:900px){.topbar{grid-template-columns:1fr; height:auto;padding:20px}.topbar .left,.topbar .right{display:flex;align-items:center;gap:28px}.market-title h1{font-size:70px}.subtitle,.script{font-size:42px}.market-item{grid-template-columns:1fr}.day{font-size:44px}.place .row{font-size:38px}.place small{font-size:18px}.meat-left,.meat-right{width:140px;bottom:0px}}

.nav-home{display:flex;align-items:center;gap:12px}.nav-home img{height:52px;width:auto;display:block}

.freres-photo{text-align:right;margin:0 !important;line-height:0 !important}.freres-photo img{max-width:420px;width:70%;filter:drop-shadow(0 10px 25px rgba(0,0,0,.45))}

.truck-photo{text-align:left;margin:20px 0}.truck-photo img{max-width:500px;width:75%;filter:drop-shadow(0 8px 20px rgba(0,0,0,.35))}

.card p:first-of-type{margin-bottom:0}.freres-photo{text-align:right;margin:0 !important;line-height:0 !important}

.card p:first-of-type{margin:0 !important;}.freres-photo{text-align:right;margin:0 !important;line-height:0 !important}

.freres-photo img{display:block !important;margin-top:-20px !important;}

.artisan-photo{text-align:center;margin:25px 0}.artisan-photo img{max-width:360px;width:65%;border-radius:8px;box-shadow:0 10px 25px rgba(0,0,0,.35)}

.viande-card{max-width:1100px;margin:30px auto;background:rgba(0,0,0,.68);border:1px solid rgba(214,169,120,.25);padding:30px;border-radius:18px;line-height:1.8;font-size:18px}
.viande-card h1{font-family:'Bebas Neue';font-size:72px;color:#d6a978;text-align:center;margin-bottom:0}
.viande-sub{text-align:center;font-size:30px;font-style:italic;color:#d6a978;margin-bottom:30px}
.viande-card h2{font-family:'Bebas Neue';font-size:42px;color:#d6a978;margin-top:30px}

.topbar{height:115px !important;display:flex !important;align-items:center !important;justify-content:space-between !important;padding:0 32px !important;gap:20px !important}
.topbar .left{display:flex !important;align-items:center !important;flex:0 0 auto !important}
.topbar .right{display:flex !important;align-items:center !important;justify-content:flex-end !important;gap:28px !important;flex:1 1 auto !important}
.nav-home{display:flex;align-items:center;gap:12px;text-decoration:none}
.nav-home img{height:52px !important;width:auto;display:block}

.btn{background:rgba(122,13,12,.8);color:#fff;border:1px solid rgba(214,169,120,.35);padding:10px 14px;border-radius:10px}
@media (max-width: 768px){
 body.public{background-attachment:scroll}
 .topbar{height:auto !important;flex-direction:column !important;padding:12px 16px !important;gap:12px !important}
 .topbar .left,.topbar .right{width:100%;justify-content:center !important;flex-wrap:wrap !important;gap:14px !important}
 .topbar a{font-size:16px !important}
 .nav-home img{height:42px !important}
 .hero-logo img{width:220px !important}
 .card,.viande-card{width:calc(100% - 20px) !important;padding:18px !important;margin:15px auto !important;font-size:16px !important;line-height:1.6 !important}
 .card h1,.viande-card h1{font-size:44px !important}
 .viande-sub{font-size:22px !important}
 .freres-photo,.truck-photo,.artisan-photo{text-align:center !important;margin:15px 0 !important}
 .freres-photo img,.truck-photo img,.artisan-photo img{max-width:90% !important;width:auto !important;margin:0 auto !important}
 .market-title h1{font-size:54px !important}
 .subtitle,.script{font-size:34px !important}
 .market-list{width:100% !important;padding:0 10px}
 .market-item{grid-template-columns:1fr !important}
 .day{font-size:34px !important;padding:18px 20px !important;gap:14px !important}
 .day img{width:34px !important}
 .place{padding:16px 18px !important}
 .place .row{font-size:30px !important;gap:10px !important}
 .place .row img{width:28px !important}
 .place small{font-size:16px !important;margin-left:38px !important}
 .quality h2{font-size:48px !important}
 .small{font-size:16px !important}
 .meat-left,.meat-right{display:none !important}
 .footerbar{padding:18px 12px !important}
 .contacts{flex-direction:column !important;gap:12px !important;text-align:center;font-size:16px !important}
 .social a{font-size:20px !important}
 .table-wrap{overflow-x:auto}
 .table-wrap table{min-width:520px}
 form[style*='grid-template-columns']{display:flex !important;flex-direction:column !important;align-items:stretch !important}
 form[style*='display:flex;gap:10px']{flex-direction:column !important}
 input,button{min-height:44px}
}


/* Superposition corrigée : conserver le placement existant des viandes */
.meat-left,
.meat-right{
  z-index: 1 !important;
  pointer-events:none;
}

.content-layer,
.viande-card,
.hero-card,
.hero-section,
main{
  position: relative;
  z-index: 10;
}


/* Ensure content layers sit above decorative meat images on all pages */
.card,
.market-title,
.market-list,
.table-wrap,
.market-item,
.hero-logo {
  position: relative;
  z-index: 10;
}


/* Mobile only fixes */
@media only screen and (max-width: 768px){

  .meat-left,
  .meat-right{
    bottom: 0 !important;
    top: auto !important;
    max-height: 22vh !important;
    opacity: .9;
  }

  .table-wrap{
    overflow-x: auto;
  }

  .table-wrap table{
    width: 100%;
    table-layout: auto !important;
  }

  .table-wrap td,
  .table-wrap th{
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    padding: 8px !important;
  }

  .table-wrap td:last-child,
  .table-wrap th:last-child{
    min-width: 90px;
    text-align: right;
  }
}


/* Precise mobile fixes */
@media only screen and (max-width: 768px){
  img.meat-left,
  img.meat-right{
    position:absolute !important;
    top:auto !important;
    bottom:0 !important;
    max-height:20vh !important;
    z-index:1 !important;
  }

  .content-layer{
    position:relative !important;
  }

  /* commande page pricing */
  .table-wrap table td:nth-child(2),
  .table-wrap table th:nth-child(2),
  .table-wrap table td:last-child,
  .table-wrap table th:last-child{
    width:auto !important;
    min-width:110px !important;
    white-space:nowrap !important;
  }

  .table-wrap table{
    min-width: 520px !important;
  }
}


/* Final mobile cleanup */
@media only screen and (max-width: 768px){

  .meat-left,
  .meat-right{
    display:none !important;
  }

  html, body, .wrapper{
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .table-wrap{
    overflow:visible !important;
    max-width:100% !important;
  }

  .table-wrap table{
    width:100% !important;
    table-layout:fixed !important;
    min-width:0 !important;
  }

  .table-wrap th,
  .table-wrap td{
    padding:6px !important;
    font-size:14px !important;
  }

  .table-wrap td:first-child,
  .table-wrap th:first-child{
    white-space:normal !important;
    word-break:break-word !important;
  }

  .table-wrap td:last-child,
  .table-wrap th:last-child{
    white-space:nowrap !important;
    width:1% !important;
    min-width:auto !important;
  }
}
