/**
 * Theme Name: alphasano
 * Template: kadence
 */

/* ================================
   TILES (TUILES)
   ================================ */

.ll-tiles{margin:0;padding:0}
.ll-tiles__grid{list-style:none;margin:0;padding:0;display:grid;gap:14px;grid-template-columns:repeat(1,minmax(0,1fr))}
.ll-tiles--cols-2 .ll-tiles__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ll-tiles--cols-3 .ll-tiles__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ll-tiles--cols-4 .ll-tiles__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.ll-tiles--cols-5 .ll-tiles__grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.ll-tiles--cols-6 .ll-tiles__grid{grid-template-columns:repeat(6,minmax(0,1fr))}

@media (max-width: 980px){
  .ll-tiles--cols-3 .ll-tiles__grid,
  .ll-tiles--cols-4 .ll-tiles__grid,
  .ll-tiles--cols-5 .ll-tiles__grid,
  .ll-tiles--cols-6 .ll-tiles__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 560px){
  .ll-tiles--cols-2 .ll-tiles__grid,
  .ll-tiles--cols-3 .ll-tiles__grid,
  .ll-tiles--cols-4 .ll-tiles__grid,
  .ll-tiles--cols-5 .ll-tiles__grid,
  .ll-tiles--cols-6 .ll-tiles__grid{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.ll-tiles__link{
  display:block;height:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  padding:14px 14px 12px;
  text-decoration:none;
  background:rgba(255,255,255,.02);
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
}

.ll-tiles__link:hover{
  transform:translateY(-1px);
  border-color:rgba(0,0,0,.22);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.ll-tiles__link:focus{
  outline:2px solid currentColor;
  outline-offset:2px;
}

.ll-tiles__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.ll-tiles__title{font-weight:700;font-size:1.02em}
.ll-tiles__badge{
  font-size:.85em;opacity:.85;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  padding:2px 8px;
  line-height:1.4;
  white-space:nowrap;
}
.ll-tiles__desc{margin:0 0 10px 0;opacity:.92}
.ll-tiles__cta{font-size:.95em;opacity:.85}

.ll-tiles__empty{
  border:1px dashed rgba(0,0,0,.18);
  border-radius:12px;
  padding:12px;
  opacity:.85;
}

/* ================================
   CHARTE – COMMANDMENTS
   ================================ */

.ll-charter {
  max-width: 880px;
  margin: 2rem auto;
  padding: clamp(16px, 4vw, 32px);
  border-left: 6px solid darkcyan;
  background: linear-gradient(
    to bottom,
    rgba(0, 139, 139, 0.04),
    transparent
  );
}

/* Header */
.ll-charter__header {
  margin-bottom: 2rem;
}

.ll-charter__title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
}

.ll-charter__subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.3rem;
}

/* Commandments list */
.ll-commandments {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Single commandment */
.ll-commandment {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}

.ll-commandment:last-child {
  border-bottom: none;
}

/* Roman numeral */
.ll-commandment__index {
  font-size: 1.8rem;
  font-weight: 700;
  color: darkcyan;
  text-align: center;
  line-height: 1;
}

/* Content */
.ll-commandment__title {
  font-size: 1.2rem;
  margin: 0 0 0.4rem 0;
}

.ll-commandment__rule {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* =========================================================
   Lambique Ledger — Ligne méta documentaire (sobre, responsive)
   - 1 ligne tant que ça rentre
   - wrap naturel seulement quand nécessaire
   ========================================================= */

.ll-doc-badgebar{
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;

    margin: 4px 0 12px 0;
    padding: 0;

    background: none;
    border: none;
}

/* Item */
.ll-doc-badgebar__item{
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
    white-space: nowrap;
}

.ll-doc-badgebar__k{
    font-size: 11px;
    opacity: 0.55;
    font-weight: 400;
}

.ll-doc-badgebar__v{
    font-size: 12px;
    font-weight: 500;
}

.ll-doc-badgebar__sep{
    opacity: 0.25;
    user-select: none;
}

@media (max-width: 820px){
    .ll-doc-badgebar{
        gap: 4px 10px;
    }
    .ll-doc-badgebar__k{
        font-size: 10px;
        opacity: 0.50;
    }
    .ll-doc-badgebar__v{
        font-size: 11px;
        font-weight: 500;
    }
}

@media (max-width: 420px){
    .ll-doc-badgebar__sep{
        display: none;
    }
}

/* =========================
   Balises standard — Documentation only
   Scope strict : .ll-doc
   ========================= */
.ll-doc h3, h4, h5, h6 {
  font-weight: 600;
  opacity: 0.85;
}

.ll-doc p {
  margin: 0.25em 0;
}

.ll-doc code {
  font-family: inherit;
  font-size: 0.95em;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 10px;
  border-radius: 5px;
}

/* =========================
   Tables — Documentation only
   Scope strict : .ll-doc
   ========================= */

.ll-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.9em;
}

.ll-doc th,
.ll-doc td {
  /*border: 1px solid #e5e7eb;*/
  padding: 0.45rem 0.6rem;
  vertical-align: top;
}

.ll-doc th {
  /*background: #f9fafb;*/
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #d1d5db;
}

.ll-doc table :is(h2, h3, h4, h5, h6) {
  font-size: 1em;
}

/* =========================
   LL Doc Navigation
   ========================= */

.ll-doc-nav {
  margin: 0.75rem 0 1rem;
}

.ll-doc-nav__section {
  margin: 0 0 0.65rem 0;
  padding: 0;
}

.ll-doc-nav__section:last-child {
  margin-bottom: 0;
}

.ll-doc-nav__title {
  margin: 0 0 0.35rem 0;
  font-size: 0.95em;
  font-weight: 600;
  opacity: 0.85;
}

.ll-doc-nav__search {
  width: 100%;
  max-width: 460px;
  margin: 0 0 0.6rem 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-size: 0.95em;
  line-height: 1.2;
}

.ll-doc-nav__search:focus,
.ll-doc-nav__search:focus-visible {
  outline: none;
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.ll-doc-nav__search::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.ll-doc-nav__loader {
  display: none;
  padding: 0.35rem 0;
  font-style: italic;
  opacity: 0.7;
}

.ll-doc-nav__loader[aria-hidden="false"] {
  display: list-item;
}

.ll-doc-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.ll-doc-nav__item {
  margin: 0;
  padding: 0;
}

.ll-doc-nav__link {
  display: inline-block;
  text-decoration: none;
  line-height: 1.2;

  padding: 0.35em 0.65em;
  border-radius: 6px;

  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
}

.ll-doc-nav__link:hover,
.ll-doc-nav__link:focus-visible {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.30);
  outline: none;
}

.ll-doc-nav__link[aria-current="page"] {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.10);
}

/* =========================
   LL Doc TOC (horizontal)
   ========================= */

.ll-doc-toc {
  margin: 0.75rem 0 1rem;
}

.ll-toc {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}

.ll-toc__item {
  margin: 0;
  padding: 0;
}

.ll-toc__item > a {
  display: inline-block;
  text-decoration: none;
  line-height: 1.1;

  padding: 0.15em 0.85em;
  border-radius: 999px;

  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  font-size: 0.8em;
}

.ll-toc__item > a:hover,
.ll-toc__item > a:focus-visible {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.30);
  outline: none;
}

/* ======
   Badges
   ======*/
.ll-doc-badge {
  --badge-bg: #f3f4f6;
  --badge-text: #374151;
  --badge-border: #d1d5db;

  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.ll-doc-badge[data-status="active"] {
  --badge-bg: #e8f7ed;
  --badge-text: #1f7a3d;
  --badge-border: #b7dfc4;
}

.ll-doc-badge[data-status="optionnal"] {
  --badge-bg: #fff7e6;
  --badge-text: #9a6700;
  --badge-border: #f2d38b;
}

.ll-doc-badge[data-status="inactive"] {
  --badge-bg: #fdecec;
  --badge-text: #b42318;
  --badge-border: #f5c2c0;
}

/* =========================
   Lambique Ledger — Callouts
   Objectif : sobres, lisibles, non intrusifs (WP/Kadence)
   ========================= */

.ll-callout {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-left: 4px solid #6b7280;
  padding: 0.7rem 0.85rem;
  margin: 0.75rem 0 1.1rem;
  border-radius: 0;
  color: inherit;
}

.ll-callout > :last-child {
  margin-bottom: 0;
}

.ll-callout p {
  margin: 0.25em 0;
}

.ll-callout--note {
  background: #fff6d6;
  border-left-color: #b45309;
  border-color: #f3d08a;
}

.ll-callout--definition {
  background: #e8f2ff;
  border-left-color: #1d4ed8;
  border-color: #bcd7ff;
}

.ll-callout--important {
  background: #ffe6e6;
  border-left-color: #b42318;
  border-color: #ffc2c2;
}

.ll-callout--exemple {
  background: inherit;
  border-left: solid 1px #64748b;
  border-top: none;
  border-bottom: none;
  border-right: none;
  color: #111827;
  overflow-x: auto;
  font-size: 0.95em;
  line-height: 1.45;
  font-style: italic;
}

.ll-callout--probleme {
  background: #ffe8e8;
  border-left-color: #c24141;
  border-color: #ffc7c7;
}

.ll-callout--solution {
  background: #e6f7ee;
  border-left-color: #2f7a4d;
  border-color: #bfe8d0;
}

.ll-callout code {
  font-family: inherit;
  font-size: 0.95em;
}

/* =========================
   Lambique Ledger — CPT WPS
   ========================= */
   
.ll-wps-host{
  display:block;
}

/* =========================
   Lambique Ledger — Calcul
   ========================= */

.ll-calcul table {
  border-collapse: collapse;
  width: 100%;
}

.ll-calcul th,
.ll-calcul td {
  border: none;
  padding: 3px 10px;
  vertical-align: middle;
}

.ll-calcul thead {
  display: none;
}

.ll-calcul td:nth-child(2),
.ll-calcul td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.ll-calcul td:nth-child(4) {
  font-size: 0.9em;
  color: #666;
}

.ll-calcul h2 {
  margin: 12px 0 6px 0;
  font-size: 1.2em;
  border-bottom: 1px solid lightgrey;
}

.ll-calcul input {
  width: 100px;
  padding: 3px 6px;
  font-size: 0.95em;
}

.ll-calcul span {
  font-weight: 600;
}

.ll-calcul tr td[colspan="4"] {
  padding-top: 14px;
}

