/* Tableau des allergènes public et fiche imprimable (14 colonnes). */
.lc-allergen-page{background:#f9f6f2;padding:65px 0 85px;color:#292424}
.lc-allergen-page .lc-wrap{max-width:1280px}
.lc-allergen-head{text-align:center;max-width:750px;margin:0 auto 52px}
.lc-allergen-head h1{font-size:clamp(32px,5vw,53px);color:#292424;margin:10px 0 15px}
.lc-allergen-head p{line-height:1.65}
.lc-allergen-back{display:inline-block;margin-top:7px;color:#651225;font-weight:650}
.lc-allergen-section{margin-bottom:55px;break-inside:avoid-page}
.lc-allergen-section h2{font-size:clamp(23px,3vw,30px);font-weight:650;color:#292424;margin:0 0 18px}
.lc-allergen-scroll{overflow-x:auto;max-width:100%;border:1px solid #dfd7d0;border-radius:9px;background:white}
.lc-allergen-table{border-collapse:collapse;width:100%;min-width:1050px;background:white;font-family:Arial,Helvetica,sans-serif;font-size:12px;table-layout:fixed;color:#292424}
.lc-allergen-table th,.lc-allergen-table td{padding:10px 4px;border:1px solid #e9e5e1;text-align:center;vertical-align:middle;overflow-wrap:anywhere}
.lc-allergen-table thead th{background:#f0e9e3;font-size:10px;font-weight:700;line-height:1.25}
.lc-allergen-table thead th span{display:inline-block;overflow-wrap:anywhere}
.lc-allergen-table .lc-allergen-dish{min-width:190px;width:190px;text-align:left;padding:10px 14px;font-weight:650;overflow-wrap:normal}
.lc-allergen-table th:last-child,.lc-allergen-table .lc-allergen-status{width:115px;font-size:11px}
.lc-allergen-table .lc-allergen-present{color:#651225;background:#f8eaed;font-weight:800;font-size:16px}
.lc-allergen-table .lc-allergen-dash{color:#acaaaa}
.lc-allergen-table .lc-allergen-unreviewed{background:#fff8ed}
.lc-allergen-table .lc-allergen-unreviewed td{color:#9b720e}
.lc-allergen-note{margin-top:25px;padding:18px 23px;border-left:3px solid #651225;background:#f1e8e1;font-size:13px;line-height:1.6;color:#292424}
.lc-allergen-note p{margin:6px 0}
.lc-allergen-warning{padding:25px;border:1px solid #bc9c90}
.lc-allergen-link-callout{text-align:center;padding:24px;background:#f9f6f2}
.lc-allergen-print{font-family:Arial,Helvetica,sans-serif;color:#292424;margin:22px}
.lc-allergen-print-controls{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:15px;background:#f0e9e3}
.lc-allergen-print-controls form{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.lc-allergen-print-controls a{color:#651225}
.lc-allergen-print-controls select,.lc-allergen-print-controls button{padding:8px}
.lc-allergen-print-heading{text-align:center;margin:22px auto 30px}
.lc-allergen-print-heading h1{font-size:26px;color:#292424}
.lc-allergen-print .lc-allergen-section{margin:22px 0}
.lc-allergen-print .lc-allergen-section h2{font-size:20px;margin:0 0 10px}
.lc-allergen-print .lc-allergen-table{min-width:0;font-size:9px}
.lc-allergen-print .lc-allergen-table th,.lc-allergen-print .lc-allergen-table td{padding:5px 2px}
.lc-allergen-print .lc-allergen-table .lc-allergen-dish{width:175px;min-width:175px;padding:6px}
.lc-allergen-print .lc-allergen-table th:last-child,.lc-allergen-print .lc-allergen-table .lc-allergen-status{width:80px;font-size:9px}
.lc-allergen-print .lc-allergen-scroll{overflow:visible}
@media (max-width:720px){.lc-allergen-page{padding:40px 0}.lc-allergen-table .lc-allergen-dish{width:165px;min-width:165px}}

/* Affichage tactile : tableau defilant, premiere colonne visible.
   La grille d'impression A4 paysage reste regie exclusivement par @media print. */
@media screen and (max-width:1279px){
  .lc-allergen-print{margin:12px}
  .lc-allergen-page .lc-allergen-scroll,
  .lc-allergen-print .lc-allergen-scroll{
    display:block;
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
  }
  .lc-allergen-page .lc-allergen-table,
  .lc-allergen-print .lc-allergen-table{
    width:1220px;
    min-width:1220px;
    table-layout:fixed;
  }
  .lc-allergen-table thead th,
  .lc-allergen-table thead th span{
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
  }
  .lc-allergen-print .lc-allergen-table thead th{
    font-size:10px;
    padding:8px 4px;
  }
  .lc-allergen-print .lc-allergen-table td,
  .lc-allergen-print .lc-allergen-table th{
    padding:8px 4px;
  }
  .lc-allergen-page .lc-allergen-table .lc-allergen-dish,
  .lc-allergen-print .lc-allergen-table .lc-allergen-dish{
    position:sticky;
    left:0;
    z-index:1;
    width:210px;
    min-width:210px;
    max-width:210px;
    background:#fff;
    box-shadow:2px 0 3px -2px #9e938b;
  }
  .lc-allergen-page .lc-allergen-table thead .lc-allergen-dish,
  .lc-allergen-print .lc-allergen-table thead .lc-allergen-dish{
    z-index:2;
    background:#f0e9e3;
  }
  .lc-allergen-table .lc-allergen-unreviewed .lc-allergen-dish{
    background:#fff8ed;
  }
  .lc-allergen-print .lc-allergen-table th:last-child,
  .lc-allergen-print .lc-allergen-table .lc-allergen-status,
  .lc-allergen-page .lc-allergen-table th:last-child,
  .lc-allergen-page .lc-allergen-table .lc-allergen-status{
    width:130px;
    font-size:11px;
  }
}


/* V16.9 — Filtres discrets sur toute la largeur ; 14 cases accessibles en pastilles. */
.lc-allergen-filter{width:100%;margin:0 0 12px;padding:15px 0 12px;border-top:1px solid #ded4cc;border-bottom:1px solid #ded4cc;color:#292424}
.lc-allergen-filter-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;column-gap:16px;row-gap:8px;margin-bottom:10px}
.lc-allergen-filter-bar h2{font-family:inherit;color:#292424;font-size:15px;line-height:1.45;font-weight:650;margin:0}
.lc-allergen-filter-actions{display:flex;align-items:center;gap:12px}
.lc-allergen-filter-clear,.lc-allergen-filter-expand,.lc-allergen-filter-toggle{border:0;border-radius:0;padding:2px 0;background:transparent;color:#651225;font-size:12px;font-weight:650;line-height:1.45;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.lc-allergen-filter-clear:disabled{display:none}
.lc-allergen-filter-expand{display:none}
.lc-allergen-filter-fieldset{border:0;padding:0;margin:0;min-width:0}
.lc-allergen-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.lc-allergen-filter-grid{display:flex;flex-wrap:wrap;align-items:center;gap:6px 7px}
.lc-allergen-filter-choice{position:relative;display:inline-flex;cursor:pointer;min-width:0;max-width:100%;margin:0}
.lc-allergen-filter-choice input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.lc-allergen-filter-choice span{display:inline-flex;align-items:center;justify-content:center;max-width:100%;border:1px solid #ded4cc;border-radius:50px;padding:5px 11px;min-height:29px;background:#f7f2ed;color:#403835;font-size:12px;font-weight:500;line-height:1.3;text-align:center;overflow-wrap:anywhere;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.lc-allergen-filter-choice:hover span{border-color:#99827b;background:#eee5df}
.lc-allergen-filter-choice input:focus-visible + span{outline:2px solid #651225;outline-offset:3px}
.lc-allergen-filter-choice input:checked + span{background:#651225;border-color:#651225;color:#fff}

.lc-allergen-filter-caution{margin:9px 0 0;color:#6d655f;font-size:11px;line-height:1.45}
.lc-allergen-filter-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin:0 0 15px;padding:4px 0 9px;border-bottom:1px solid #ece4df}
.lc-allergen-filter-count{margin:0;font-size:13px;font-weight:650;color:#292424}
.lc-allergen-filter-toggle{text-align:left}
.lc-allergen-filter-empty,.lc-allergen-filter-noresults{padding:12px 14px;border-left:3px solid #b59b8a;background:#fff;color:#292424;font-size:13px}
.lc-allergen-table tr[hidden],.lc-allergen-filter[hidden],.lc-allergen-page [hidden]{display:none!important}
@media(max-width:680px){
 .lc-allergen-filter{padding:12px 0 9px;margin-bottom:12px}
 .lc-allergen-filter-bar{margin-bottom:0}
 .lc-allergen-filter-bar h2{font-size:13px}
 .lc-allergen-filter-actions{gap:10px}
 .lc-allergen-filter-expand{display:inline-block}
 .lc-allergen-filter-fieldset{display:none;margin-top:12px}
 .lc-allergen-filter.is-expanded .lc-allergen-filter-fieldset{display:block}
 .lc-allergen-filter-grid{gap:6px}
 .lc-allergen-filter-choice span{padding:5px 9px;font-size:11.5px;min-height:28px}
 .lc-allergen-filter-caution{margin-top:7px;font-size:10.5px}
 .lc-allergen-filter-summary{align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.lc-allergen-filter-choice span{transition:none}}

@page{size:A4 landscape;margin:9mm}
@media print{
 body.lc-allergen-print{margin:0;background:#fff;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .lc-allergen-print-controls{display:none!important}
 .lc-allergen-print-heading{margin:0 0 10px}
 .lc-allergen-print-heading h1{font-size:18px;margin:0 0 5px}
 .lc-allergen-print-heading p{margin:3px;font-size:10px}
 .lc-allergen-print .lc-allergen-section{margin:10px 0 14px;break-inside:auto}
 .lc-allergen-print .lc-allergen-section h2{font-size:14px;break-after:avoid}
 .lc-allergen-print .lc-allergen-table{font-size:7px;table-layout:fixed}
 .lc-allergen-print .lc-allergen-table th,.lc-allergen-print .lc-allergen-table td{padding:3px 1px;line-height:1.14}
 .lc-allergen-print .lc-allergen-table .lc-allergen-dish{width:135px;min-width:0;padding:3px 5px}
 .lc-allergen-print .lc-allergen-table th:last-child,.lc-allergen-print .lc-allergen-table .lc-allergen-status{width:72px;font-size:7px}
 .lc-allergen-print .lc-allergen-table thead th{font-size:7px}
 .lc-allergen-print .lc-allergen-scroll{border-radius:0;border:0}
 .lc-allergen-print .lc-allergen-note{font-size:9px;padding:5px;border:0}
 .lc-allergen-table thead{display:table-header-group}
 .lc-allergen-table tr{break-inside:avoid}
}

/* V16.14 — Séparations discrètes, uniquement dans le tableau public. */
.lc-allergen-page .lc-allergen-category th{position:static!important;text-align:left!important;padding:11px 16px!important;background:#f0e5d8!important;color:#651225;font:bold 12px/1.35 Arial,sans-serif;letter-spacing:.13em;border-top:2px solid #d7c6b8}
.lc-allergen-page .lc-allergen-category[hidden]{display:none!important}
.lc-allergen-page .lc-allergen-filter-caution{margin-top:16px}
.lc-allergen-page .lc-allergen-filter-count{font-family:Georgia,serif;font-size:clamp(23px,3vw,31px);font-weight:400;font-style:italic;line-height:1.3;color:#651225}

.lc-allergen-page .lc-allergen-category th{width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap;overflow-wrap:normal!important}
