/* ═══════════════════════════════════════════════════════════
   CARDS.CSS 
═══════════════════════════════════════════════════════════ */

/* ── Conteneur principal ── */
.tl-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Titre de section ── */
.tl-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.tl-section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}
.tl-section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
.events-title {
    margin-top: 50px;
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE ACTUALITÉS
═══════════════════════════════════════════════════════════ */

.tl-actu-list {
    position: relative;
    padding-left: 36px;
    margin-bottom: 28px;
}

/* Ligne verticale */
.tl-actu-list::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-border, #e2e8f0) 100%);
    border-radius: 2px;
}

/* Carte */
.tl-actu-item {
    position: relative;
    background: var(--color-boxground, #fff);
    border-radius: 14px;
    border: 3px solid var(--color-border, #e2e8f0);
    padding: 20px 22px;
    margin-bottom: 18px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: box-shadow 0.25s, transform 0.25s;
}
.tl-actu-item:last-child {
    margin-bottom: 0;
}
.tl-actu-item:hover {
    box-shadow: 0 8px 28px var(--shadow, rgba(0,0,0,0.08));
    transform: translateX(5px);
}

/* Nœud sur la ligne */
.tl-actu-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-background, #fff);
    border: 3px solid var(--color-primary);
    transition: background 0.2s;
}
.tl-actu-item.tl-pinned {
    border-color: var(--color-primary);
}
.tl-actu-item.tl-pinned::before {
    background: var(--color-primary);
}

/* Bloc date */
.tl-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    background: var(--color-background-alt, hsl(207, 65%, 96%));
    border-radius: 10px;
    padding: 10px 8px;
    flex-shrink: 0;
}
.tl-date-block .tl-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.tl-date-block .tl-mon {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Corps */
.tl-actu-body {
    flex: 1;
    min-width: 0;
}
.tl-pin-badge {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-background-alt, hsl(207,65%,95%));
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tl-actu-body h3 {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.4;
}
.tl-actu-body .tl-excerpt {
    font-size: 1.3rem;
    color: var(--color-text-light, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* Icône caméra / multi-images */
.tl-cam-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--color-background-alt, hsl(207,65%,95%));
    color: var(--color-primary);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
    align-self: flex-start;
    white-space: nowrap;
}
.tl-cam-badge svg {
    width: 16px;
    height: 16px;
}

/* Version longue (page actualites.php) — affiche tout le contenu */
.tl-actu-item.tl-full .tl-actu-body p.tl-content {
    font-size: 1.4rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-top: 10px;
    white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE ÉVÉNEMENTS
═══════════════════════════════════════════════════════════ */

.tl-evt-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

/* Carte événement */
.tl-evt-item {
    background: var(--color-boxground, #fff);
    border-radius: 14px;
    border: 1px solid var(--color-border, #e2e8f0);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}
.tl-evt-item:hover {
    box-shadow: 0 8px 28px var(--shadow, rgba(0,0,0,0.08));
    transform: translateX(5px);
}

/* Bande date (gauche) */
.tl-evt-date {
    background: var(--color-primary);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    flex-shrink: 0;
}
.tl-evt-date .tl-day {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.tl-evt-date .tl-mon {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Corps événement */
.tl-evt-body {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
}
.tl-evt-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
    line-height: 1.4;
}
.tl-evt-body .tl-evt-desc {
    font-size: 1.3rem;
    color: var(--color-text-light, #64748b);
    line-height: 1.5;
    margin: 0;
}
.tl-evt-body .tl-evt-time {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 6px;
}

/* Bande countdown (droite) */
.tl-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    min-width: 78px;
    flex-shrink: 0;
    border-left: 1px solid var(--color-border, #e2e8f0);
    text-align: center;
}
.tl-countdown .tl-cd-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.tl-countdown .tl-cd-lbl {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 3px;
}

/* États countdown */
.tl-countdown.tl-today {
    background: #f0fdf4;
}
.tl-countdown.tl-today .tl-cd-num { color: #16a34a; font-size: 1.5rem; }
.tl-countdown.tl-today .tl-cd-lbl { color: #16a34a; }

.tl-countdown.tl-soon {
    background: #fff7ed;
}
.tl-countdown.tl-soon .tl-cd-num { color: #ea580c; }
.tl-countdown.tl-soon .tl-cd-lbl { color: #ea580c; }

.tl-countdown.tl-normal {
    background: var(--color-background-alt, hsl(207,65%,96%));
}
.tl-countdown.tl-normal .tl-cd-num { color: var(--color-primary); }
.tl-countdown.tl-normal .tl-cd-lbl { color: var(--color-text-light, #64748b); }

/* ── Bouton voir tout ── */
.tl-btn-voir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: 4px;
}
.tl-btn-voir:hover { gap: 10px; }
.tl-btn-voir svg { width: 16px; height: 16px; }

/* ─── Pagination (actualites.php) ─── */
.tl-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border, #e2e8f0);
}
.tl-pagination-info {
    font-size: 1.2rem;
    color: var(--color-text-light, #64748b);
}
.tl-pagination-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.tl-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border, #e2e8f0);
    background: var(--color-boxground, #fff);
    color: var(--color-text);
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tl-page-btn:hover {
    background: var(--color-background-alt, hsl(207,65%,95%));
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.tl-page-btn.tl-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 700;
}
.tl-page-btn.tl-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .tl-actu-list { padding-left: 28px; }
    .tl-actu-item::before { left: -23px; width: 10px; height: 10px; top: 18px; }
    .tl-actu-list::before { left: 8px; }
    .tl-date-block { min-width: 44px; padding: 8px 6px; }
    .tl-date-block .tl-day { font-size: 1.7rem; }
    .tl-evt-date { min-width: 54px; padding: 12px 10px; }
    .tl-evt-date .tl-day { font-size: 1.9rem; }
    .tl-countdown { min-width: 64px; padding: 10px 10px; }
    .tl-countdown .tl-cd-num { font-size: 1.7rem; }
    .tl-cam-badge { padding: 3px 8px; font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════════
   NOUVEAU DESIGN IMAGES — preview unique + strip multi
═══════════════════════════════════════════════════════════ */

/* Preview image unique (colonne droite) */
.tl-single-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--color-border, #e2e8f0);
    flex-shrink: 0;
    align-self: center;
    transition: transform 0.2s, border-color 0.2s;
    background: var(--color-background-alt, hsl(207,65%,96%));
}
.tl-actu-item:hover .tl-single-preview {
    transform: scale(1.04);
    border-color: var(--color-primary);
}

/* Badge images multiples (plein primaire) */
.tl-multi-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--color-primary);
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    align-self: flex-start;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(30,100,180,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tl-actu-item:hover .tl-multi-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(30,100,180,0.35);
}
.tl-multi-badge svg { flex-shrink: 0; }

/* Strip de miniatures (multi-images) */
.tl-img-strip {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: nowrap;
}
.tl-img-strip-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--color-border, #e2e8f0);
    flex-shrink: 0;
    transition: transform 0.2s, border-color 0.2s;
    background: var(--color-background-alt, hsl(207,65%,96%));
}
.tl-actu-item:hover .tl-img-strip-thumb { border-color: hsl(207,65%,70%); }
.tl-img-strip-thumb:hover {
    transform: scale(1.1);
    border-color: var(--color-primary) !important;
    z-index: 1;
    position: relative;
}
.tl-img-strip-more {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--color-primary);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Lien discret "Voir la photo / le diaporama" */
.tl-click-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}
.tl-actu-item:hover .tl-click-hint { opacity: 1; }

/* Transition hover sur badge caméra existant */
.tl-actu-item:hover .tl-cam-badge {
    background: var(--color-primary);
    color: white;
}

/* ─── Responsive ajustements ─── */
@media (max-width: 640px) {
    .tl-single-preview { width: 64px; height: 64px; }
    .tl-img-strip-thumb,
    .tl-img-strip-more { width: 44px; height: 44px; }
    .tl-multi-badge { font-size: 1.1rem; padding: 4px 10px; }
}

/* ─── Accessibilité : mode contraste ─── */
.high-contrast .tl-actu-item,
.high-contrast .tl-evt-item {
    border: 2px solid var(--color-text);
}
.high-contrast-light .tl-actu-item,
.high-contrast-light .tl-evt-item {
    border: 1px solid var(--color-border);
}

/* ═══════════════════════════════════════════════════════════
   PLANNING CETTE SEMAINE — Carousel onglets
   Utilisé par : index.php, plannings.php
═══════════════════════════════════════════════════════════ */

/* ── Onglets de jours ── */
.tl-day-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.tl-day-tabs::-webkit-scrollbar { display: none; }

.tl-day-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9px 14px;
    border-radius: 12px;
    border: 2px solid var(--color-border, #e2e8f0);
    background: var(--color-boxground, #fff);
    cursor: pointer;
    transition: all 0.2s;
    gap: 2px;
    min-width: 66px;
    user-select: none;
}
.tl-day-tab:hover {
    border-color: var(--color-primary);
    background: var(--color-background-alt, hsl(207,65%,96%));
}
.tl-day-tab.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
}
.tl-day-tab.is-today {
    border-color: var(--color-primary);
}
.tl-day-tab .tab-name {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light, #64748b);
}
.tl-day-tab.active .tab-name { color: white; }
.tl-day-tab.is-today:not(.active) .tab-name { color: var(--color-primary); }

.tl-day-tab .tab-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text, #1e293b);
    line-height: 1;
}
.tl-day-tab.active .tab-num { color: white; }

.tl-day-tab .tab-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    margin-top: 3px;
}
.tl-day-tab.active .tab-dot { background: white; }
.tl-day-tab.no-events .tab-dot { display: none; }

/* ── Panneaux ── */
.tl-carousel-panels { 
    position: relative;
    overflow: hidden;
    width: 100%;
 }

.tl-carousel-panel  { 
    display: none; 
    width: 100%;
    box-sizing: border-box;
}

.tl-carousel-panel.active { display: block; }

/* ── Carte de jour ── */
.tl-day-card {
    background: var(--color-boxground, #fff);
    border-radius: 14px;
    border: 2px solid var(--color-border, #e2e8f0);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tl-day-card.is-today  { border-color: var(--color-primary); }
.tl-day-card.is-empty  { opacity: 0.6; }

/* En-tête de la carte */
.tl-day-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-background-alt, hsl(207,65%,96%));
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.tl-day-card.is-today .tl-day-head {
    background: var(--color-primary);
}
.tl-day-head-left { flex: 1; display: flex; flex-direction: column; }

.tl-day-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}
.tl-day-card.is-today .tl-day-name { color: white; }

.tl-day-date {
    font-size: 1.15rem;
    color: var(--color-text-light, #64748b);
    margin-top: 2px;
}
.tl-day-card.is-today .tl-day-date { color: rgba(255,255,255,0.8); }

.tl-today-pill {
    background: white;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    display: none;
}
.tl-day-card.is-today .tl-today-pill { display: block; }

.tl-evt-count {
    background: var(--color-primary);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tl-day-card.is-today .tl-evt-count {
    background: white;
    color: var(--color-primary);
}

/* ── Lignes d'événements ── */
.tl-day-events { padding: 8px 0; }

.tl-evt-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    transition: background 0.15s;
}
.tl-evt-row:last-child { border-bottom: none; }
.tl-evt-row:hover { background: var(--color-background-alt, hsl(207,65%,96%)); }
.tl-evt-row.is-special { background: linear-gradient(var(--color-primary),var(--color-background)); }

.tl-evt-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    min-width: 40px;
    flex-shrink: 0;
    padding-top: 1px;
}
.tl-evt-info { flex: 1; min-width: 0; }

.tl-evt-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.tl-evt-desc {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-top: 2px;
    line-height: 1.4;
}
.tl-repeat-icon {
    width: 13px;
    height: 13px;
    color: var(--color-text-light, #64748b);
    flex-shrink: 0;
}
.tl-evt-special-badge {
    font-size: 1rem;
    background: white;
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
    align-self: flex-start;
    white-space: nowrap;
}
.tl-no-events {
    padding: 20px 16px;
    font-size: 1.25rem;
    color: var(--color-text-light, #64748b);
    font-style: italic;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .tl-day-tab  { min-width: 56px; padding: 8px 10px; }
    .tl-day-tab .tab-num { font-size: 1.4rem; }
    .tl-evt-row  { padding: 9px 14px; }
    .tl-day-head { padding: 11px 14px; }
}

/* ── Accessibilité : mode contraste ── */
.high-contrast .tl-day-card { border: 2px solid var(--color-text); }
.high-contrast-light .tl-day-card { border: 1px solid var(--color-border); }

/* ═══════════════════════════════════════════════════════════
   GROUPES PAROISSIAUX
═══════════════════════════════════════════════════════════ */

.tl-groupes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.tl-groupe-card {
    background: var(--color-boxground, #fff);
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.tl-groupe-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.tl-groupe-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--color-background-alt, hsl(207,65%,96%));
    flex-shrink: 0;
}
.tl-groupe-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.tl-groupe-card:hover .tl-groupe-img-wrap img {
    transform: scale(1.04);
}
.tl-groupe-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.4;
}

.tl-groupe-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tl-groupe-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text, #1e293b);
    margin: 0 0 10px 0;
}

.tl-groupe-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}
.tl-groupe-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.15rem;
    color: var(--color-text-light, #64748b);
}
.tl-groupe-meta-item .groupe_icon {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    flex-shrink: 0;
}

.tl-groupe-desc {
    font-size: 1.2rem;
    color: var(--color-text-light, #64748b);
    line-height: 1.45;
    margin: 0 0 14px 0;
    flex: 1;
}

.tl-groupe-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s;
}
.tl-groupe-link:hover { gap: 10px; }
.tl-groupe-link svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════
   SACREMENTS / SERVICES PAROISSIAUX
═══════════════════════════════════════════════════════════ */

.tl-sacr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.tl-sacr-card {
    background: var(--color-boxground, #fff);
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.tl-sacr-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.tl-sacr-icon-wrap {
    width: 46px;
    height: 46px;
    background: var(--color-background-alt, hsl(207,65%,96%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.tl-sacr-card:hover .tl-sacr-icon-wrap {
    background: var(--color-primary);
}
.tl-sacr-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.2s;
}
.tl-sacr-card:hover .tl-sacr-icon {
    filter: brightness(0) invert(1);
}

.tl-sacr-body {
    flex: 1;
    min-width: 0;
}
.tl-sacr-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text, #1e293b);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tl-sacr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.tl-sacr-pill {
    font-size: 1.05rem;
    background: var(--color-background-alt, hsl(207,65%,96%));
    color: var(--color-primary);
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.tl-sacr-card:hover .tl-sacr-pill {
    background: var(--color-primary);
    color: white;
}

.tl-sacr-desc {
    font-size: 1.15rem;
    color: var(--color-text-light, #64748b);
    margin: 0;
    line-height: 1.4;
}

.tl-sacr-arrow {
    width: 18px;
    height: 18px;
    color: var(--color-text-light, #64748b);
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.2s, transform 0.2s;
}
.tl-sacr-card:hover .tl-sacr-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .tl-groupes-grid { grid-template-columns: 1fr; }
    .tl-sacr-grid    { grid-template-columns: 1fr; }
    .tl-groupe-img-wrap { height: 130px; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — CORRECTION ACTUALITÉS
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Item global ── */
    .tl-actu-item {
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
    }

    /* ── Zone texte : prend toute la largeur ── */
    .tl-actu-body,
    .tl-actu-text {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box;
    }

    /* ── Badge multi-images : ne prend plus de place à droite ── */
    .tl-multi-badge,
    .tl-cam-badge {
        position: absolute;      
        top: 8px;
        right: 8px;
        z-index: 2;
        font-size: 0.72rem;
        padding: 3px 7px;
    }

    /* ── Image unique : passe EN DESSOUS du texte ── */
    .tl-single-preview {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-top: 10px;
        order: 99;              
    }

    /* ── Conteneur image/badge ── */
    .tl-actu-media,
    .tl-img-strip {
        position: relative;
        width: 100%;
        order: 99;
        margin-top: 10px;
    }

    /* ── Strip multi-images : pleine largeur ── */
    .tl-img-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .tl-img-strip img {
        width: calc(50% - 2px);
        height: 90px;
        object-fit: cover;
        border-radius: 6px;
    }
}

