/* ===========================
   Journali'tse – journalitse.css
   =========================== */

:root {
    --jt-orange:  #e8600a;
    --jt-red:     #d42b2b;
    --jt-dark:    #1a1a1a;
    --jt-grey:    #888;
    --jt-light:   #f6f6f6;
    --jt-card-bg: #ffffff;
    --jt-shadow:  0 2px 16px rgba(0,0,0,0.07);
    --theme-color: #e8600a;
}

/* ---------- Reset inside main ---------- */
main {
    font-family: 'Open Sans', sans-serif;
    color: var(--jt-dark);
    padding: 0;
}

/* ---------- Socials ---------- */
#socials {
    display: flex;
    justify-content: flex-end;
    padding: 0.8rem 3rem 0;
    gap: 0.6rem;
}

#socials a svg {
    width: 26px;
    height: 26px;
    fill: var(--jt-grey);
    transition: fill 0.2s;
}

#socials a:hover svg {
    fill: var(--jt-orange);
}

/* ---------- Hero ---------- */
.jt-hero {
    text-align: center;
    padding: 3.5rem 2rem 2.5rem;
    margin-top: 34px; /* Compensate for header height */
}

.jt-hero__logo {
    height: 140px;
    object-fit: contain;
    margin-bottom: 1.6rem;
    max-width: 100%;
}

.jt-hero__tagline {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.65;
    color: var(--jt-dark);
}

/* ---------- Section titles ---------- */
.jt-section {
    padding: 0 3rem 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

.jt-section__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    color: var(--jt-dark);
}

/* ---------- Publications grid ---------- */
.jt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

@media (max-width: 900px) {
    .jt-grid { grid-template-columns: 1fr; }
    .jt-section { padding: 0 1.2rem 2.5rem; }
}

/* ---------- Publication card ---------- */
.jt-card {
    background: var(--jt-card-bg);
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
    color: inherit;
}

.jt-card:hover {
    box-shadow: var(--jt-shadow);
    transform: translateY(-3px);
}

/* Card top section: title & badge side-by-side */
.jt-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Red download button */
.jt-card__dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--jt-red);
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.jt-card__dl:hover {
    background: #b01e1e;
    transform: scale(1.06);
}

/* New button styles for consult and download */
.jt-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
    gap: 0.6rem;
    padding: 0;
}

.jt-card__btn--consult {
    background: var(--jt-orange);
    flex: 1;
}

.jt-card__btn--consult:hover {
    background: #d17005;
    transform: scale(1.06);
}

.jt-card__btn--download {
    background: var(--jt-red);
    width: 48px;
    flex-shrink: 0;
}

.jt-card__btn--download:hover {
    background: #b01e1e;
    transform: scale(1.06);
}

/* Card bottom section: action buttons */
.jt-card__actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ebebeb;
}

/* "Nouveau" badge */
.jt-badge {
    display: inline-block;
    background: var(--jt-red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

/* Issue theme / title */
.jt-card__theme {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

/* Card title and subtitle */
.jt-card__info {
    flex: 1;
}

.jt-card__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.4rem 0;
    color: var(--jt-dark);
}

.jt-card__subtitle {
    font-size: 0.9rem;
    color: var(--jt-grey);
    margin: 0;
    line-height: 1.4;
}

/* Cover image */
.jt-card__cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: #111;
    border-radius: 8px;
    margin-bottom: 0;
}

/* Placeholder when no image */
.jt-card__cover--placeholder {
    background: #111;
    height: 280px;
    width: calc(100% + 2.8rem);
    margin-left: -1.4rem;
}

/* ---------- Contact section ---------- */
.jt-contact {
    /* padding: 4rem 3rem 4rem; */
    max-width: 1300px;
    margin: 0 auto;
}

.jt-contact__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.jt-contact__text {
    /* font-weight: 700; */
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.jt-contact__email {
    color: var(--jt-orange);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.jt-contact__email:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ---------- Admin Section (Temporary) ---------- */
.jt-admin-section {
    padding: 3rem 3rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.jt-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.4rem;
    background: var(--jt-orange);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(232, 96, 10, 0.2);
}

.jt-admin-btn:hover {
    background: #d17005;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 96, 10, 0.3);
}

/* ---------- Separator stripe (above footer) ---------- */
.jt-stripe {
    height: 4px;
    background: linear-gradient(to right,
        #3498db 0%, #3498db 33%,
        var(--jt-red) 33%, var(--jt-red) 66%,
        #81bb27 66%, #81bb27 100%
    );
    margin-top: 1rem;
}

/* ---------- Archives section ---------- */
.jt-archives {
    background: #fafafa;
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem auto;
}

.jt-grid--archives {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

/* Archives list view */
.jt-archives__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.jt-archive-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: #f9f9f9;
    border: none;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

.jt-archive-item:last-child:not(.jt-archive-item--more) {
    border-bottom: none;
}

.jt-archive-item:hover {
    background: #fff;
}

/* Voir plus item */
.jt-archive-item--more {
    margin-top: 0.8rem;
    background: linear-gradient(135deg, rgba(232, 96, 10, 0.08), rgba(232, 96, 10, 0.02));
    border: 2px dashed var(--jt-orange);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.jt-archive-item--more:hover {
    border-style: solid;
    background: linear-gradient(135deg, rgba(232, 96, 10, 0.15), rgba(232, 96, 10, 0.05));
}

.jt-archive-item__cover {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
}

.jt-archive-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jt-archive-item__info {
    flex: 1;
    min-width: 0;
}

.jt-archive-item__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--jt-dark);
}

.jt-archive-item__subtitle {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jt-archive-item__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.jt-archive-item__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--jt-orange);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.jt-archive-item__btn:hover {
    background: #d64f02;
    transform: scale(1.1);
}

/* Download button in archive list */
.jt-archive-item__actions .jt-archive-item__btn:last-child {
    background: var(--jt-red);
}

.jt-archive-item__actions .jt-archive-item__btn:last-child:hover {
    background: #b01e1e;
}

.jt-archive-item--more:hover {
    border-style: solid;
    background: linear-gradient(135deg, rgba(232, 96, 10, 0.15), rgba(232, 96, 10, 0.05));
}

.jt-archive-item__more-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    color: var(--jt-orange);
    font-weight: 600;
}

.jt-archive-item__more-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

@media (max-width: 900px) {
    .jt-archives {
        padding: 2rem 1.2rem;
    }
    .jt-grid--archives {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .jt-archive-item {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .jt-archive-item__cover {
        width: 60px;
        height: 75px;
    }
    
    .jt-archive-item__title {
        font-size: 0.9rem;
    }
    
    .jt-archive-item__subtitle {
        font-size: 0.75rem;
    }
    
    .jt-archive-item__btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
