/* Journal d'accueil — bandeau, une, rubriques, articles, partenaires */

.journal-top {
    padding-top: var(--header-height);
    position: relative;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(255, 87, 34, 0.14), transparent 58%),
        radial-gradient(ellipse 50% 40% at 100% 10%, rgba(16, 185, 129, 0.08), transparent 52%),
        var(--bg-dark);
    border-bottom: 1px solid var(--glass-border);
}

.news-ticker {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(4, 6, 10, 0.72);
    min-height: 44px;
}

.news-ticker-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 0 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-orange);
    background: transparent;
    border-right: 1px solid var(--glass-border);
}

.news-ticker-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.45);
    animation: ticker-pulse 1.8s ease-out infinite;
}

.news-ticker-viewport {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.news-ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 48s linear infinite;
}

.news-ticker:hover .news-ticker-track,
.news-ticker:focus-within .news-ticker-track,
.news-ticker.is-paused .news-ticker-track {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1.75rem;
    min-height: 44px;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
}

.news-ticker-item:hover {
    color: var(--accent-orange);
}

.news-ticker-pause {
    flex: 0 0 auto;
    border: 0;
    border-left: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    padding: 0 0.9rem;
    min-width: 44px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-ticker-pause:hover,
.news-ticker-pause:focus-visible {
    color: var(--text-main);
    outline: 2px solid var(--accent-orange);
    outline-offset: -2px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.pill-ia {
    color: #ffd7cc;
    background: rgba(255, 87, 34, 0.18);
    border: 1px solid rgba(255, 87, 34, 0.35);
}

.pill-tech {
    color: #c7f9e4;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.pill-agence {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.journal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 2.5rem;
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
    align-items: start;
}

.journal-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.une h1 {
    font-size: clamp(2.15rem, 4.2vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.1rem;
    max-width: 16ch;
}

.une-lead {
    max-width: 42rem;
    font-size: 1.12rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 0;
}

.une .hero-actions {
    justify-content: flex-start;
    margin-top: 1.75rem;
}

.briefs {
    border-left: 1px solid var(--glass-border);
    padding-left: 1.75rem;
}

.briefs-title {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.brief {
    display: block;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: inherit;
}

.brief:last-child {
    border-bottom: 0;
}

.brief:hover h3 {
    color: var(--accent-orange);
}

.brief-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.brief h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0;
    font-weight: 600;
    transition: color 0.2s ease;
}

.journal-block {
    padding: 4.5rem 0;
}

.journal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.journal-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
    margin: 0.35rem 0 0;
}

.journal-head p {
    margin: 0;
    max-width: 36rem;
    font-size: 1rem;
}

.journal-kicker-plain {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.journal-more {
    flex: 0 0 auto;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.journal-more:hover {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.portal-grid,
.article-grid,
.partner-grid {
    display: grid;
    gap: 1rem;
}

.portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card,
.article-card,
.partner-card-home {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: inherit;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.portal-card {
    padding: 1.35rem 1.35rem 1.2rem;
    min-height: 168px;
}

.portal-card:hover,
.article-card:hover,
.partner-card-home:hover {
    border-color: rgba(255, 87, 34, 0.55);
    background: rgba(255, 87, 34, 0.04);
    transform: translateY(-3px);
}

.portal-index {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.portal-card h3,
.article-card h3,
.partner-card-home h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.portal-card p,
.article-card p,
.partner-card-home p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.portal-go,
.article-go {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-orange);
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    padding: 1.25rem 1.25rem 1.15rem;
}

.article-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-card-home {
    padding: 1.25rem;
    gap: 0.35rem;
}

.partner-logo-slot {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 12px;
}

.partner-logo-slot img {
    max-height: 52px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-wordmark {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.25rem;
    color: #0f172a;
}

.partner-wordmark svg {
    width: 28px;
    height: 24px;
    display: block;
}

.partner-kind {
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.journal-rule {
    height: 1px;
    background: var(--glass-border);
    border: 0;
    margin: 0;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes ticker-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.45); }
    100% { box-shadow: 0 0 0 8px rgba(255, 87, 34, 0); }
}

@media (max-width: 992px) {
    .journal-hero,
    .portal-grid,
    .article-grid,
    .partner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .journal-hero {
        gap: 1.5rem;
    }

    .briefs {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 1.25rem;
        grid-column: 1 / -1;
    }

    .une h1 {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .news-ticker-label {
        padding: 0 0.75rem;
        font-size: 0.65rem;
    }

    .journal-hero,
    .portal-grid,
    .article-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .journal-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .journal-block {
        padding: 3rem 0;
    }

    .une .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .une .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (hover: none) {
    .portal-card:hover,
    .article-card:hover,
    .partner-card-home:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-ticker-label::before,
    .news-ticker-track {
        animation: none;
    }

    .news-ticker-viewport {
        overflow-x: auto;
        mask-image: none;
    }

    .news-ticker-track [aria-hidden="true"] {
        display: none;
    }

    .portal-card,
    .article-card,
    .partner-card-home {
        transition: none;
    }
}
