/* TraLIS — conteneur "Standard" (pleine largeur, compact) — v01.01.00
   Une seule carte autour du module ; les actions du module (Modifier / Admin / Déplacer)
   sont regroupées derrière un engrenage en haut à droite (créé par js/tralis-app.js). */
.tl-card { width: 100%; background: #fff; border: 1px solid #DAEBE8; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 80, 96, .05); margin-bottom: 16px; position: relative; }
.tl-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 12px 12px 0 0; background: linear-gradient(135deg, #6FD3C0 0%, #43B3A0 50%, #0F766E 100%); }

.tl-card__head { padding: 12px 72px 10px 16px; border-bottom: 1px solid #DAEBE8; background: #F0F8F7; border-radius: 12px 12px 0 0; }
.tl-page .tl-card__title, .tl-card .tl-card__title { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 800; color: #005060; }
.tl-card__titletext { color: #005060; }
.tl-card__head:has(.tl-card__titletext:empty) { display: none; }

.tl-card__body { padding: 12px 16px 16px; }

/* Outils (engrenage + réduire/agrandir) */
.tl-card__tools { position: absolute; top: 8px; right: 10px; z-index: 20; display: flex; align-items: center; gap: 6px; }
.tl-card__tools:not(:has(a, button, input)) { display: none; }

.tl-actions { position: relative; }
.tl-actions__btn { width: 30px; height: 30px; border: 1px solid #DAEBE8; border-radius: 9px; background: #fff; color: #005060; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tl-actions__btn:hover, .tl-actions.is-open .tl-actions__btn { background: #F0F8F7; }
.tl-actions__btn:focus-visible { outline: 2px solid #0F766E; outline-offset: 2px; }

/* Sans JavaScript, les liens restent visibles ; avec JavaScript ils sont dans un menu déroulant */
.tl-actions.is-ready .tl-actions__menu { display: none; position: absolute; right: 0; top: 36px; min-width: 190px; padding: 6px; background: #fff; border: 1px solid #DAEBE8; border-radius: 12px; box-shadow: 0 16px 36px rgba(0, 80, 96, .22); z-index: 30; }
.tl-actions.is-ready.is-open .tl-actions__menu { display: block; }
.tl-actions__menu ul { list-style: none; margin: 0; padding: 0; }
.tl-actions__menu a { display: block; padding: 7px 12px; border-radius: 8px; color: #0B2F36; font-size: .85rem; font-weight: 600; text-decoration: none; }
.tl-actions__menu a:hover { background: #F0F8F7; color: #0F766E; text-decoration: none; }
.tl-actions__menu img { vertical-align: middle; margin-right: 6px; }

/* ---- Conteneur "Standard" : sans cadre (les modules TraLIS ont déjà leur propre carte) ---- */
.tl-card--bare { background: transparent; border: 0; box-shadow: none; border-radius: 0; margin-bottom: 12px; }
.tl-card--bare::before { display: none; }
/* Le titre du module répète le titre de la page : masqué visuellement, gardé pour les lecteurs d'écran */
.tl-card--bare > .tl-card__head { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.tl-card--bare > .tl-card__body { padding: 0; }
/* Outils (engrenage / réduire) : flottent en haut à droite, sans bande vide */
.tl-card--bare > .tl-card__tools { top: 4px; right: 4px; }
.tl-card--bare > .tl-card__tools .tl-actions__btn { width: 26px; height: 26px; background: rgba(255,255,255,.9); }

