/*
 * v579 — La grille tarifaire : l'écran de la direction (tableau de location,
 * tableau des formules) et sa lecture publique (site, page de la direction).
 * Sans script : une case « Payant » ouvre ses champs de prix par `:has()`.
 */
.gt-defile { overflow-x: auto; border: 1px solid var(--st-border-color, #e2e8f0); border-radius: 12px; background: var(--st-surface, #fff); }
.gt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gt-table th, .gt-table td { padding: 8px 10px; border-bottom: 1px solid var(--st-border-color, #e2e8f0); vertical-align: top; text-align: left; }
.gt-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--st-text-muted, #64748b); background: var(--st-surface-2, #f8fafc); }
.gt-table .gt-col-acte { width: 30%; min-width: 260px; }
.gt-table .gt-col-formule { min-width: 190px; }
.gt-theme td { background: var(--st-surface-2, #f8fafc); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--st-text-muted, #64748b); }
.gt-explication { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--st-text-muted, #64748b); }

/* Champs « en lecture » : sans cadre tant qu'on n'y touche pas. */
.gt-texte { width: 100%; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 2px 4px; font: inherit; color: inherit; }
.gt-texte:hover { border-color: var(--st-border-color, #cbd5e1); }
.gt-texte:focus { border-color: #10b981; outline: none; background: var(--st-surface, #fff); }
.gt-texte--petit { font-size: 11.5px; color: var(--st-text-muted, #64748b); }
.gt-texte--titre { font-size: 14px; font-weight: 600; color: var(--st-text, #0f172a); }

.gt-champ { width: 100%; border: 1px solid var(--st-border-color, #cbd5e1); border-radius: 6px; padding: 3px 6px; font-size: 12.5px; background: var(--st-surface, #fff); color: inherit; }
.gt-ligne { display: flex; gap: 4px; align-items: center; }
.gt-ligne > .gt-champ--nombre { width: 76px; flex: none; }
.gt-ligne > select.gt-champ { flex: 1 1 auto; min-width: 0; }
.gt-etiquette { font-size: 11px; color: var(--st-text-muted, #64748b); white-space: nowrap; }
.gt-ligne > .gt-nouveau { flex: 0 1 340px; }
.gt-interdit { font-size: 12px; color: var(--st-text-muted, #94a3b8); font-style: italic; }
.gt-coches { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 11.5px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--st-text-muted, #64748b); }
.gt-coches label { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }

/* Une case de formule : l'état, puis le prix si « Payant ». */
/* Teintes transparentes et liseré : lisibles sur les styles clairs comme sombres. */
.gt-case { border-radius: 8px; padding: 4px; border-left: 3px solid transparent; }
.gt-case:has(.gt-etat option[value="inclus"]:checked) { background: rgba(16, 185, 129, .16); border-left-color: #10b981; }
.gt-case:has(.gt-etat option[value="payant"]:checked) { background: rgba(245, 158, 11, .16); border-left-color: #f59e0b; }
.gt-case:has(.gt-etat option[value="non"]:checked) .gt-etat { opacity: .6; }
.gt-prix { display: none; margin-top: 4px; gap: 4px; }
.gt-case:has(.gt-etat option[value="payant"]:checked) .gt-prix { display: grid; }
.gt-assiette { display: none; }
.gt-prix:has(.gt-mode option[value="pourcentage"]:checked) .gt-assiette { display: block; }

.gt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.gt-bouton { border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 500; border: 1px solid var(--st-border-color, #cbd5e1); background: var(--st-surface, #fff); color: var(--st-text, #334155); cursor: pointer; }
.gt-bouton--plein { background: #0f172a; border-color: #0f172a; color: #fff; }

/* ─────────────── La lecture publique ─────────────── */
.gt-pub-formules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 10px; }
/* Les cartes gardent leurs couleurs quel que soit le style de l'écran (elles imitent la page publique). */
.gt-pub-carte { display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; color: #0f172a; }
.gt-pub-carte--avant { border: 2px solid #0f172a; }
.gt-pub-tete { padding: 12px 14px; background: #0f172a; color: #fff; text-align: center; }
.gt-pub-nom { font-size: 17px; font-weight: 600; }
.gt-pub-accroche { margin-top: 2px; font-size: 12.5px; opacity: .85; }
.gt-pub-liste { flex: 1 1 auto; margin: 0; padding: 10px 14px; list-style: none; font-size: 13.5px; }
.gt-pub-liste li { padding: 5px 0 5px 16px; border-bottom: 1px dashed #e2e8f0; position: relative; }
.gt-pub-liste li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #0f172a; }
.gt-pub-base { font-weight: 600; }
.gt-pub-taux { padding: 12px 14px; border-top: 1px solid #e2e8f0; text-align: center; }
.gt-pub-taux strong { display: block; font-size: 26px; line-height: 1.1; }
.gt-pub-taux span { font-size: 12px; color: #64748b; }
.gt-pub-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.gt-pub-table th { padding: 6px 8px 6px 0; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #cbd5e1; }
.gt-pub-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.gt-pub-table td.gt-pub-prix { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.gt-pub-par { display: block; font-weight: 400; font-size: 12.5px; }
