/* LK Lexique - mobile-first bottom sheet popin */

/* =========================================================
   FICHE TECHNIQUE : LARGEUR FIXE COLONNES (ANTI-DÉCALAGE)
========================================================= */
#product-details table{
  width:100%;
  table-layout:fixed;
}
#product-details th{
  width:46%;
  box-sizing:border-box;
  vertical-align:middle;
}
#product-details td{
  width:54%;
  box-sizing:border-box;
  vertical-align:middle;
}

/* Cas dl/dt/dd */
#product-details dl{
  display:grid;
  grid-template-columns: 46% 54%;
}
#product-details dt,
#product-details dd{
  min-width:0;
  box-sizing:border-box;
}

/* =========================================================
   LABELS : RETOUR LIGNE PROPRE (PAR DÉFAUT)
========================================================= */
#product-details th,
#product-details dt{
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
  hyphens:none;
  position:relative;
  padding-right:44px;
}

/* =========================================================
   EXCEPTION UNIQUE — DERNIÈRE LIGNE UNIQUEMENT
========================================================= */
#product-details tr:last-child th,
#product-details dt:last-of-type{
  hyphens:auto;
  overflow-wrap:normal;
  word-break:normal;

  hyphenate-limit-chars: 14 5 5;
  -webkit-hyphenate-limit-chars: 14 5 5;
  -ms-hyphenate-limit-chars: 14 5 5;
}

/* =========================================================
   INFO BUTTON (EXTÉRIEUR GAUCHE — CENTRÉ)
========================================================= */
.lkx-info-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  color:#111;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  user-select:none;

  position:absolute;
  left:-25px;              /* ← SEULE CORRECTION : plus centré */
  right:auto;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
}
.lkx-info-btn:focus{
  outline:2px solid rgba(0,0,0,.35);
  outline-offset:2px;
}
.lkx-info-btn:hover{
  border-color: rgba(0,0,0,.35);
}

/* =========================================================
   BOTTOM SHEET
========================================================= */
.lkx-sheet{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
.lkx-sheet.is-open{ display:block; }

.lkx-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}

.lkx-panel{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:#fff;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  box-shadow:0 -12px 30px rgba(0,0,0,.18);
  max-height:80vh;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:0;
}

/* sticky topbar */
.lkx-topbar{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
  padding:14px 14px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  z-index:2;
}

.lkx-title{
  font-weight:700;
  font-size:16px;
  line-height:1.2;
}

.lkx-close{
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  font-size:28px;
  line-height:40px;
  cursor:pointer;
}

.lkx-content{
  padding:14px;
  font-size:14px;
  line-height:1.45;
}

.lkx-content .lkx-desc{ margin:0 0 12px; }

.lkx-content .lkx-tip{
  margin:12px 0 0;
  padding:10px 12px;
  background:#fff6df;
  border-radius:12px;
}

/* accordion */
.lkx-acc{
  margin:10px 0 0;
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  overflow:hidden;
}
.lkx-acc details{
  border-top:1px solid rgba(0,0,0,.08);
}
.lkx-acc details:first-child{ border-top:0; }

.lkx-acc summary{
  list-style:none;
  cursor:pointer;
  padding:10px 12px;
  font-weight:700;
  display:flex;
  justify-content:space-between;
}
.lkx-acc summary::after{
  content:"+";
  opacity:.6;
}
.lkx-acc details[open] summary::after{
  content:"–";
}

.lkx-acc .lkx-acc-body{
  padding:0 12px 12px;
}

/* scale */
.lkx-scale{
  margin-top:10px;
  padding:10px 12px;
  background:#f6f6f6;
  border-radius:12px;
}
.lkx-scale-row{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
}

/* desktop */
@media (min-width:768px){
  .lkx-panel{
    left:50%;
    bottom:50%;
    transform:translate(-50%,50%);
    width:min(560px,92vw);
    max-height:72vh;
    border-radius:18px;
  }
}
