/**
 * Plugin Animations DDEC 44 — Styles front
 * ----------------------------------------
 * Variables CSS exposées par les templates :
 *   --ec44-alveole-color    (alvéoles hexagonales)
 *   --ec44-seg-color        (segments d'octogone)
 *   --ec44-seg-rotation     (rotation segment en deg)
 */

/* =========================================================
   1. Variables globales
   ========================================================= */
:root {
    --ec44-radius: 8px;
    --ec44-gap: 1.25rem;
    --ec44-text: #2b2b2b;
    --ec44-text-light: #fff;
    --ec44-muted: #6b7280;
    --ec44-border: #e5e7eb;
    --ec44-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --ec44-shadow-hover: 0 8px 20px rgba(0,0,0,0.15);
    --ec44-default: #6366f1;
    --ec44-transition: 0.25s ease;
}

/* =========================================================
   2. Alvéoles hexagonales — Champs d'actions
   ========================================================= */
.ec44-alveoles-wrap {
    width: 100%;
    margin: 2rem 0;
}

.ec44-alveoles-grid {
    display: flex;
    flex-direction: column;
    /* chevauchement vertical */
    gap: 0;
}

/*
 * Chaque item = grille 3 colonnes : [label-gauche | hexagone | label-droite]
 * Items impairs  : label en col 1 (gauche, aligné à droite), hex en col 2
 * Items pairs    : col 1 élargie (= décalage zigzag), hex en col 2, label en col 3
 *
 * Impair : col1=200px  | col2=130px | col3=1fr  → hex bord gauche à 200px
 * Pair   : col1=260px  | col2=130px | col3=1fr  → hex bord gauche à 260px (+60px)
 */
.ec44-alveole-item {
    display: grid;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: -22px; /* chevauchement */
    position: relative;
}
.ec44-alveole-item--odd {
    grid-template-columns: 200px 130px 1fr;
}
.ec44-alveole-item--even {
    grid-template-columns: 260px 130px 1fr;
}
/* dernier item : pas de chevauchement */
.ec44-alveole-item:last-child {
    margin-bottom: 0;
}

/* L'hexagone (colonne du milieu) */
.ec44-alveole {
    display: block;
    width: 130px;
    aspect-ratio: 1 / 1.1547;
    clip-path: url(#ec44-hex-clip);
    background: var(--ec44-alveole-color, var(--ec44-default));
    color: var(--ec44-text-light);
    text-decoration: none;
    transition: transform var(--ec44-transition), filter var(--ec44-transition);
    cursor: pointer;
    position: relative;
    z-index: 0;
}
.ec44-alveole:hover,
.ec44-alveole:focus-visible {
    transform: scale(1.06);
    filter: brightness(1.08);
    outline: none;
    z-index: 1;
}

.ec44-alveole-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ec44-alveole-icon {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1) opacity(0.75);
}

/* Labels */
.ec44-alveole-label {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity var(--ec44-transition);
}
.ec44-alveole-label:hover { opacity: 0.75; }
.ec44-alveole-label--left  { text-align: right; }
.ec44-alveole-label--right { text-align: left; }
/* Sur grand écran, le label mobile-only (droite des items impairs) est invisible */
.ec44-alveole-label--mobile-only { visibility: hidden; pointer-events: none; }

/* Responsive tablette */
@media (max-width: 768px) {
    .ec44-alveole-item--odd,
    .ec44-alveole-item--even {
        grid-template-columns: 160px 110px 1fr;
    }
    .ec44-alveole-item--even {
        grid-template-columns: 200px 110px 1fr;
    }
    .ec44-alveole { width: 110px; }
    .ec44-alveole-icon { width: 38px; height: 38px; }
    .ec44-alveole-label { font-size: 0.9rem; }
    .ec44-alveole-item { margin-bottom: -18px; }
}

/* Mobile : labels toujours à droite */
@media (max-width: 480px) {
    .ec44-alveole-item--odd,
    .ec44-alveole-item--even {
        grid-template-columns: 90px 1fr;
    }
    .ec44-alveole-item { margin-bottom: -14px; }
    .ec44-alveole { width: 90px; }
    /* masquer la colonne gauche, afficher uniquement la droite */
    .ec44-alveole-label--left           { display: none; }
    .ec44-alveole-label--right          { display: block; text-align: left; }
    /* le label mobile-only (items impairs) reste visible */
    .ec44-alveole-label--mobile-only    { display: block; }
}

/* =========================================================
   3. Octogones en alvéoles — Axes de travail
   ========================================================= */

/*
 * Réutilise toute la mécanique de la grille hexagonale (section 2)
 * avec les classes .ec44-alveole-item, .ec44-alveole-label, etc.
 * Seule différence : .ec44-axe remplace le clip-path hexagone par
 * le clip-path octogone et change l'aspect-ratio en 1/1.
 */
.ec44-axe {
    aspect-ratio: 1 / 1 !important;
    clip-path: url(#ec44-oct-clip) !important;
    position: relative;
}

/* Contour blanc intérieur via masque SVG en anneau */
.ec44-axe::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    mask: url(#ec44-oct-ring);
    -webkit-mask: url(#ec44-oct-ring);
    pointer-events: none;
    z-index: 2;
}

/* Moins de chevauchement pour les octogones (plus courts que les hexagones) */
.ec44-axe-grid .ec44-alveole-item {
    margin-bottom: -8px;
}
.ec44-axe-grid .ec44-alveole-item:last-child {
    margin-bottom: 0;
}

/* =========================================================
   3b. Octogone découpé (SVG) — ancienne version conservée
   ========================================================= */
.ec44-octogone-wrap {
    width: 100%;
    margin: 2rem 0;
}

.ec44-octogone {
    position: relative;
    width: min(560px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
}

.ec44-octogone-segment {
    --ec44-seg-color: var(--ec44-default);
    --ec44-seg-rotation: 0deg;
    position: absolute;
    inset: 0;
    transform: rotate(var(--ec44-seg-rotation));
    transform-origin: center;
    /* Triangle 45° pointant vers le haut depuis le centre */
    clip-path: polygon(50% 50%, 29.29% 0%, 70.71% 0%);
    background: var(--ec44-seg-color);
    color: var(--ec44-text-light);
    text-decoration: none;
    transition: filter var(--ec44-transition), transform var(--ec44-transition);
    cursor: pointer;
}

.ec44-octogone-segment:hover,
.ec44-octogone-segment:focus-visible {
    filter: brightness(1.12);
    outline: none;
    z-index: 2;
}

.ec44-seg-inner {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%) rotate(calc(var(--ec44-seg-rotation) * -1));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 90px;
    text-align: center;
    pointer-events: none;
}

.ec44-seg-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.ec44-seg-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
}

.ec44-octogone-centre {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28%;
    height: 28%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ec44-shadow);
    z-index: 3;
}

.ec44-octogone-boussole {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Liste verticale (mobile + fallback no-js) */
.ec44-octogone-liste { display: none; }
.ec44-octogone-liste ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ec44-octogone-liste li {
    background: #f9fafb;
    border-left: 4px solid var(--ec44-default);
    border-radius: 4px;
    padding: 0.6rem 1rem;
}
.ec44-octogone-liste a {
    color: var(--ec44-text);
    text-decoration: none;
    font-weight: 600;
    display: block;
}
.ec44-octogone-liste a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .ec44-octogone { display: none; }
    .ec44-octogone-liste { display: block; }
}

/* =========================================================
   4. Cartes d'animation (listings + archives)
   ========================================================= */
.ec44-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--ec44-gap);
    margin: 2rem 0;
}

.ec44-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ec44-border);
    border-radius: var(--ec44-radius);
    overflow: hidden;
    box-shadow: var(--ec44-shadow);
    transition: transform var(--ec44-transition), box-shadow var(--ec44-transition);
}

.ec44-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ec44-shadow-hover);
}

.ec44-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}
.ec44-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ec44-transition);
}
.ec44-card:hover .ec44-card-thumb img { transform: scale(1.04); }

.ec44-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
}

.ec44-card-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}
.ec44-card-title a {
    color: var(--ec44-text);
    text-decoration: none;
}
.ec44-card-title a:hover { text-decoration: underline; }

.ec44-card-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--ec44-muted);
}
.ec44-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.ec44-card-meta-item::before {
    font-size: 0.95rem;
}
.ec44-meta-ec44_date::before    { content: "📅"; }
.ec44-meta-ec44_horaires::before { content: "🕐"; }
.ec44-meta-ec44_anime_par::before { content: "👤"; }
.ec44-meta-ec44_lieu::before    { content: "📍"; }

.ec44-meta-label { display: none; }
.ec44-meta-value { color: var(--ec44-text); }

.ec44-card-excerpt {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ec44-muted);
    flex: 1;
}

.ec44-card-link {
    align-self: flex-start;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--ec44-default);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: filter var(--ec44-transition);
}
.ec44-card-link:hover { filter: brightness(1.1); color: #fff; }

.ec44-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid var(--ec44-border);
}

/* =========================================================
   5. Badges (taxonomie)
   ========================================================= */
.ec44-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    background: var(--ec44-default);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: filter var(--ec44-transition);
}
.ec44-badge:hover { filter: brightness(1.1); color: #fff; }
.ec44-badge-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

/* =========================================================
   6. Bloc de qualification (bas d'article)
   ========================================================= */
.ec44-qualification-block {
    margin: 2.5rem 0 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid var(--ec44-border);
    border-radius: var(--ec44-radius);
}

.ec44-qual-section + .ec44-qual-section { margin-top: 1.25rem; }

.ec44-qual-heading {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ec44-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ec44-qual-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.92rem;
}
.ec44-qual-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ec44-qual-meta-item .ec44-meta-label {
    display: inline;
    color: var(--ec44-muted);
    font-weight: 600;
}

.ec44-qual-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* =========================================================
   7. En-tête archive de taxonomie
   ========================================================= */
.ec44-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.ec44-archive-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--ec44-radius);
    color: #fff;
    margin-bottom: 2rem;
    background: var(--ec44-default);
}

.ec44-archive-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.ec44-archive-header-text { flex: 1; }

.ec44-archive-tax-label {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.ec44-archive-title {
    margin: 0.25rem 0 0.5rem;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
}

.ec44-archive-desc {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

@media (max-width: 600px) {
    .ec44-archive-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.5rem;
    }
    .ec44-archive-icon { width: 56px; height: 56px; }
    .ec44-archive-title { font-size: 1.5rem; }
}

.ec44-no-result {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ec44-muted);
    font-style: italic;
}

.ec44-archive-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* =========================================================
   8. Fiche d'une animation (single)
   ========================================================= */
.ec44-single-animation {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.ec44-single-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.ec44-single-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 1rem;
    color: var(--ec44-muted);
}
.ec44-single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ec44-single-meta-item::before { font-size: 1.1rem; }
.ec44-single-meta .ec44-meta-ec44_date::before     { content: "📅"; }
.ec44-single-meta .ec44-meta-ec44_horaires::before { content: "🕐"; }
.ec44-single-meta .ec44-meta-ec44_lieu::before     { content: "📍"; }

.ec44-single-thumb {
    margin: 0 0 2rem;
    border-radius: var(--ec44-radius);
    overflow: hidden;
}
.ec44-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.ec44-single-section { margin-bottom: 2rem; }
.ec44-single-section h2 {
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--ec44-border);
}
.ec44-section-body { line-height: 1.6; }

/* =========================================================
   9. Équipe / animateurs
   ========================================================= */
.ec44-equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--ec44-gap);
    margin: 1.5rem 0;
}

.ec44-animateur-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--ec44-border);
    border-radius: var(--ec44-radius);
    padding: 1.5rem 1rem;
    box-shadow: var(--ec44-shadow);
    transition: transform var(--ec44-transition), box-shadow var(--ec44-transition);
}
.ec44-animateur-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ec44-shadow-hover);
}

.ec44-animateur-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ec44-animateur-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ec44-animateur-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ec44-animateur-photo-placeholder .dashicons {
    font-size: 52px;
    width: 52px;
    height: 52px;
    color: #c0c4c8;
}

.ec44-animateur-name {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
    color: var(--ec44-text);
}
.ec44-animateur-role {
    font-size: 0.9rem;
    color: var(--ec44-muted);
    margin: 0;
}
.ec44-animateur-mail {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--ec44-default);
    text-decoration: none;
    word-break: break-all;
}
.ec44-animateur-mail:hover { text-decoration: underline; }

/* =========================================================
   10. Badge catégorie
   ========================================================= */
.ec44-badge-categorie {
    background: #4b5563;
}

/* =========================================================
   11. Fiche publique d'un animateur (single-animateur)
   ========================================================= */

/* Hero --------------------------------------------------- */
.ec44-anim-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
    color: #fff;
    padding: 3rem 1rem;
    margin-bottom: 0;
}
.ec44-anim-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* Photo ronde dans le hero */
.ec44-anim-hero-photo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.ec44-anim-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ec44-anim-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ec44-anim-hero-placeholder .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: rgba(255,255,255,0.5);
}

/* Infos dans le hero */
.ec44-anim-hero-info { flex: 1; }

.ec44-anim-hero-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #fff;
    line-height: 1.2;
}
.ec44-anim-hero-role {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1rem;
    font-style: italic;
}
.ec44-anim-hero-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    transition: background var(--ec44-transition);
}
.ec44-anim-hero-mail:hover {
    background: rgba(255,255,255,0.25);
    text-decoration: none;
}

/* Corps de la fiche -------------------------------------- */
.ec44-single-animateur-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

/* Sections communes */
.ec44-sa-section {
    margin-bottom: 2.5rem;
}
.ec44-sa-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ec44-border);
    color: var(--ec44-text);
}
.ec44-sa-section-icon { font-style: normal; }
.ec44-sa-count {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--ec44-default, #2d6a9f);
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    line-height: 1.6;
}

/* Section À propos */
.ec44-sa-apropos .ec44-sa-section-body {
    background: #f8fafc;
    border-left: 4px solid var(--ec44-default, #2d6a9f);
    border-radius: 0 var(--ec44-radius) var(--ec44-radius) 0;
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
    color: var(--ec44-text);
}

/* Grille des animations (réutilise ec44-cards-grid) */
.ec44-sa-animations .ec44-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--ec44-gap);
}

/* Responsive */
@media (max-width: 640px) {
    .ec44-anim-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .ec44-anim-hero-photo {
        width: 120px;
        height: 120px;
    }
    .ec44-anim-hero-name { font-size: 1.5rem; }
    .ec44-sa-animations .ec44-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   12. Timeline verticale — [ec44_timeline]
   ========================================================= */
.ec44-timeline {
    width: 100%;
    max-width: 760px;
    margin: 2rem 0;
}

/* En-tête de mois */
.ec44-tl-mois {
    margin-bottom: 2.5rem;
}
.ec44-tl-mois-header {
    margin-bottom: 1rem;
}
.ec44-tl-mois-label {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ec44-text);
    padding: .25rem .75rem;
    border-left: 4px solid var(--ec44-default, #2d6a9f);
    background: #f0f4f8;
}

/* ── Layout mobile (défaut) ──────────────────────────────
   [date 56px | axe 24px | carte 1fr]
   ─────────────────────────────────────────────────────── */
.ec44-tl-item {
    display: grid;
    grid-template-columns: 56px 24px 1fr;
    grid-template-areas: "date axis card";
    gap: 0 .75rem;
    margin-bottom: 1.25rem;
    position: relative;
    align-items: stretch; /* l'axe s'étire sur toute la hauteur */
}

/* ── Layout grand écran : alterné ─────────────────────────
   Impair (odd)  : [date | axe | carte]  — date gauche
   Pair  (even) : [carte | axe | date]  — carte gauche
   Timeline max-width élargie + centré
   ─────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .ec44-timeline {
        max-width: 960px;
    }
    .ec44-tl-item {
        grid-template-columns: 1fr 28px 1fr;
        gap: 0 1.25rem;
    }
    /* Odd : date à gauche (alignée droite), carte à droite */
    .ec44-tl-item--odd {
        grid-template-areas: "date axis card";
    }
    .ec44-tl-item--odd .ec44-tl-date {
        text-align: right;
        justify-self: end;
        padding-right: 0;
    }
    /* Even : carte à gauche, date à droite (alignée gauche) */
    .ec44-tl-item--even {
        grid-template-areas: "card axis date";
    }
    .ec44-tl-item--even .ec44-tl-date {
        text-align: left;
        justify-self: start;
        padding-top: .35rem;
    }
    /* En-tête de mois centré sur l'axe */
    .ec44-tl-mois-label {
        display: block;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid var(--ec44-default, #2d6a9f);
        padding: .25rem 1.5rem .4rem;
        background: #f0f4f8;
    }
}

/* Affectation des zones */
.ec44-tl-date  { grid-area: date; }
.ec44-tl-axis  { grid-area: axis; }
.ec44-tl-card  { grid-area: card; }

/* Colonne date */
.ec44-tl-date {
    text-align: right;
    padding-top: .35rem;
    align-self: start;
}
.ec44-tl-jour-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ec44-text);
}
.ec44-tl-jour-nom {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}

/* ── Colonne axe (point + trait continu) ─────────────── */
.ec44-tl-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ec44-tl-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ec44-default, #2d6a9f);
    flex-shrink: 0;
    margin-top: .45rem;
    z-index: 1;
    position: relative;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor;
}
/* Trait : flex:1 + align-self:stretch pour remplir la hauteur de la carte */
.ec44-tl-line {
    flex: 1;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #d1d5db 0px,
        #d1d5db 6px,
        transparent 6px,
        transparent 10px
    );
    margin: 6px auto 0;
    min-height: 24px;
}
/* Dernier item du groupe : pas de trait */
.ec44-tl-items > .ec44-tl-item:last-child .ec44-tl-line {
    display: none;
}

/* ── Carte ────────────────────────────────────────────── */
.ec44-tl-card {
    background: #fff;
    border: 1px solid var(--ec44-border, #e5e7eb);
    border-radius: var(--ec44-radius, .5rem);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow var(--ec44-transition), transform var(--ec44-transition);
    align-self: start;
}
.ec44-tl-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.ec44-tl-card-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
}
.ec44-tl-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ec44-tl-card-body {
    padding: .9rem 1rem;
}
.ec44-tl-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    line-height: 1.3;
}
.ec44-tl-card-title a {
    color: var(--ec44-text);
    text-decoration: none;
}
.ec44-tl-card-title a:hover { text-decoration: underline; }

.ec44-tl-card-meta {
    list-style: none;
    margin: 0 0 .6rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .9rem;
    font-size: .85rem;
    color: #4b5563;
}
.ec44-tl-card-excerpt {
    font-size: .88rem;
    color: #6b7280;
    margin: 0 0 .6rem;
    line-height: 1.45;
}
.ec44-tl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .75rem;
}
.ec44-tl-card-link {
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ec44-default, #2d6a9f);
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: opacity var(--ec44-transition);
}
.ec44-tl-card-link:hover { opacity: .75; }

/* Mobile petit */
@media (max-width: 480px) {
    .ec44-tl-item {
        grid-template-columns: 42px 20px 1fr;
        gap: 0 .5rem;
    }
    .ec44-tl-jour-num { font-size: 1.15rem; }
    .ec44-tl-card-thumb { height: 100px; }
}
