/* Otoolia — Cuisine centrale : recettes, effectifs, bacs, planning et commande — styles limités à .cc / .cc-* */
.cc-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .2em; }
.cc h2 { font-size: 1.15rem; margin: 0 0 10px; }
.cc h3 { font-size: .98rem; margin: 18px 0 8px; }
.cc-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.cc-sm { min-height: 32px; padding: 4px 12px; font-size: .85rem; }
.cc-danger { color: var(--ot-danger); }

/* onglets */
.cc-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--ot-border); margin: 14px 0 16px; scrollbar-width: thin; }
.cc-tab { flex: none; border: 0; background: none; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ot-text-soft); padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; min-height: 44px; }
.cc-tab:hover { color: var(--ot-text); }
.cc-tab[aria-selected="true"] { color: var(--ot-text); border-bottom-color: var(--ot-brand); }
.cc-tab b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ot-surface-2); font-size: .75rem; margin-right: 6px; }
.cc-tab[aria-selected="true"] b { background: var(--ot-brand); color: var(--ot-brand-ink); }

/* pastilles (jours) */
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.cc-chip { border: 1px solid var(--ot-border); background: var(--ot-surface); color: var(--ot-text); font: inherit; font-size: .88rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.cc-chip:hover { border-color: var(--ot-logo-blue); }
.cc-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--ot-brand) 14%, var(--ot-surface)); border-color: var(--ot-brand); font-weight: 700; }
.cc-chip.is-off { opacity: .5; text-decoration: line-through; }

/* champs : les commandes restent alignées en bas, même quand un libellé passe sur deux lignes */
.cc-grid { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: stretch; }
.cc-f { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--ot-text-soft); min-width: 0; }
.cc-f > .ot-input, .cc-f > .ot-select, .cc-f > .ot-textarea { margin-top: auto; color: var(--ot-text); font-weight: 400; width: 100%; }
.cc-f small { font-weight: 400; }
.cc-note { font-size: .86rem; color: var(--ot-text-soft); margin: 6px 0 10px; line-height: 1.45; }
.cc-warn { font-size: .86rem; background: color-mix(in srgb, var(--ot-logo-orange) 14%, var(--ot-surface)); border-left: 3px solid var(--ot-logo-orange); padding: 7px 10px; border-radius: 6px; margin: 8px 0; }

/* mise en page recettes */
.cc-two { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .cc-two { grid-template-columns: 250px minmax(0, 1fr); } }
.cc-list { display: grid; gap: 5px; align-content: start; }
.cc-list .cc-g { font-size: .74rem; font-weight: 700; color: var(--ot-text-soft); text-transform: uppercase; letter-spacing: .03em; margin: 10px 0 2px; }
.cc-item { text-align: left; border: 1px solid var(--ot-border); background: var(--ot-surface); color: var(--ot-text); font: inherit; font-size: .92rem; padding: 8px 11px; border-radius: var(--ot-radius-s); cursor: pointer; }
.cc-item:hover { border-color: var(--ot-logo-blue); }
.cc-item[aria-pressed="true"] { border-color: var(--ot-brand); box-shadow: inset 4px 0 0 var(--ot-brand); font-weight: 600; }
.cc-panel { background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: var(--ot-radius); padding: 16px; margin-bottom: 16px; }
.cc-ck { display: flex; gap: 7px; align-items: center; font-size: .88rem; cursor: pointer; }
.cc-cks { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* tableaux */
.cc-tablewrap { overflow-x: auto; margin: 8px 0; }
.cc-table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cc-table th, .cc-table td { border-bottom: 1px solid var(--ot-border); padding: 6px 8px; text-align: left; vertical-align: middle; }
.cc-table thead th { font-size: .76rem; color: var(--ot-text-soft); font-weight: 700; background: var(--ot-surface-2); white-space: nowrap; }
.cc-table .r { text-align: right; white-space: nowrap; }
.cc-table tfoot td { font-weight: 700; border-top: 2px solid var(--ot-border); }
.cc-table .ot-input { min-height: 32px; padding: 3px 7px; font-size: .92rem; }
.cc-table .ot-select { min-height: 32px; padding: 3px 6px; font-size: .88rem; }
.cc-table input.n { width: 76px; text-align: right; }
.cc-table input.xs { width: 58px; text-align: right; }
.cc-table input.is-mod { background: color-mix(in srgb, var(--ot-logo-orange) 18%, var(--ot-surface)); border-color: var(--ot-logo-orange); }
.cc-table tr.is-off td { opacity: .45; }
.cc-x { border: 0; background: none; color: var(--ot-text-soft); cursor: pointer; font-size: 1.05rem; padding: 2px 7px; border-radius: 6px; }
.cc-x:hover { color: var(--ot-danger); background: var(--ot-surface-2); }
.cc-menu td { min-width: 150px; }
.cc-menu td:first-child { min-width: 120px; font-weight: 600; }
.cc-menu .ot-select { width: 100%; }
.cc-menu .cc-alt { margin-top: 4px; font-size: .8rem; }
.cc-menu th .cc-ck { font-weight: 400; font-size: .76rem; justify-content: center; margin-top: 3px; }
.cc-menu td.is-off { background: var(--ot-surface-2); }

/* chiffres clés */
.cc-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 10px 0 14px; }
.cc-card { background: var(--ot-surface-2); border: 1px solid var(--ot-border); border-radius: var(--ot-radius-s); padding: 9px 12px; }
.cc-card b { display: block; font-size: 1.4rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.cc-card span { font-size: .8rem; color: var(--ot-text-soft); }
.cc-card--main { background: color-mix(in srgb, var(--ot-brand) 10%, var(--ot-surface)); border-color: color-mix(in srgb, var(--ot-brand) 40%, var(--ot-border)); }

/* bacs gastronormes */
.cc-bacs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cc-bac { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.cc-bac i { display: inline-block; height: 13px; border: 2px solid var(--ot-logo-blue); border-radius: 3px; background: linear-gradient(transparent 45%, color-mix(in srgb, var(--ot-logo-blue) 25%, transparent) 45%); }
.cc-bac small { font-weight: 400; color: var(--ot-text-soft); }
.cc-sv { color: var(--ot-danger); font-weight: 600; }
.cc-empty { padding: 28px; text-align: center; color: var(--ot-text-soft); border: 2px dashed var(--ot-border); border-radius: var(--ot-radius); }

/* bons de livraison */
.cc-bon { border: 1px solid var(--ot-border); border-radius: var(--ot-radius); padding: 18px; margin-bottom: 20px; background: var(--ot-surface); }
.cc-bon__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: baseline; border-bottom: 2px solid var(--ot-text); padding-bottom: 8px; margin-bottom: 10px; }
.cc-bon__h h2 { margin: 0; }
.cc-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; font-size: .8rem; color: var(--ot-text-soft); }
.cc-sign div { border-top: 1px solid var(--ot-border); padding-top: 26px; }

/* fenêtre */
.cc-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.cc-modal[hidden] { display: none; }
.cc-modal__box { width: min(680px, 100%); background: var(--ot-surface); border-radius: var(--ot-radius); padding: 18px; box-shadow: var(--ot-shadow-h); }
.cc-modal textarea { min-height: 220px; font: .85rem/1.4 var(--ot-mono); width: 100%; }
.cc-toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ot-text); color: var(--ot-surface); padding: 9px 16px; border-radius: 8px; z-index: 70; font-size: .92rem; }
.cc-toast[hidden] { display: none; }

@media print {
  #ot-header, #ot-footer, .ot-related, .ot-guide, .cc-about, .cc-noprint, .cc-tabs, .cc-modal, .cc-toast, .adsbygoogle, .ot-consent { display: none !important; }
  body { background: #fff; color: #000; }
  .ot-section { padding: 0; }
  .cc-bon { border: 0; padding: 0; break-after: page; page-break-after: always; }
  .cc-bon:last-child { break-after: auto; page-break-after: auto; }
  .cc-panel { border: 0; padding: 0; }
  .cc-table th, .cc-table td { border-color: #999; }
  .cc-table thead th { background: #eee; }
}
.cc-menu .cc-alt.is-set { border-color: var(--ot-danger); color: var(--ot-text); font-weight: 600; }
.cc-menu .cc-alt:not(.is-set) { color: var(--ot-text-soft); }

/* outils simples de la rubrique (adapter une recette, convertisseur, pâte, prix de revient, allergènes) */
.cc-two2 { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 820px) { .cc-two2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cc-two2 > .cc-panel { min-width: 0; }
.cc-big { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cc-chip.is-on { background: color-mix(in srgb, var(--ot-brand) 14%, var(--ot-surface)); border-color: var(--ot-brand); font-weight: 700; }
/* tableau des allergènes */
.cc-al th.cc-alh { vertical-align: bottom; text-align: center; padding: 4px 2px; min-width: 34px; }
.cc-al th.cc-alh span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; font-size: .78rem; }
.cc-al td.cc-alc { text-align: center; padding: 2px; }
.cc-alb { width: 32px; height: 32px; border: 1px solid var(--ot-border); border-radius: 7px; background: var(--ot-surface); color: var(--ot-text); font-size: 1.05rem; cursor: pointer; line-height: 1; }
.cc-alb:hover { border-color: var(--ot-logo-blue); }
.cc-alb.v1 { background: color-mix(in srgb, var(--ot-danger) 18%, var(--ot-surface)); border-color: var(--ot-danger); color: var(--ot-danger); }
.cc-alb.v2 { background: color-mix(in srgb, var(--ot-logo-orange) 18%, var(--ot-surface)); border-color: var(--ot-logo-orange); }
.cc-alp td.cc-alc.v1 { color: var(--ot-danger); font-size: 1.1rem; }
.cc-alp td.cc-alc { border-left: 1px solid var(--ot-border); }
.cc-alp tr.cc-algrp td { background: var(--ot-surface-2); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .03em; }
.cc-poster { background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: var(--ot-radius); padding: 16px; }
@media print {
  .cc-poster { border: 0; padding: 0; }
  .cc-alp { font-size: 10.5pt; }
  .cc-alp td.cc-alc.v1 { color: #000; }
  .cc-poster { page: cc-paysage; }
}
@page cc-paysage { size: A4 landscape; margin: 12mm; }
.cc-al th.cc-alh.is-x span { font-style: italic; }
.cc-alp td.cc-alc.is-x, .cc-al th.cc-alh.is-x { background: color-mix(in srgb, var(--ot-logo-blue) 7%, transparent); }
