/* ============================================
   ACTUALITÉS - PAGE STYLES
   Design dynamique, masonry-like, images dominantes
   ============================================ */

/* Hero background */
.page-hero-bg--actu {
    background: url('../images/apropos/ap-2.jpg') center/cover no-repeat;
}

/* ============================================
   ARTICLE À LA UNE
   ============================================ */
.actu-featured {
    padding: 80px 0;
    background: #fff;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
}

.featured-image {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.04);
}

.actu-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actu-badge--featured {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(93, 164, 34, 0.35);
}

.featured-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.actu-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.actu-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.actu-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.actu-tag-new {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #e53e3e;
    padding: 3px 10px;
    border-radius: 20px;
}

.featured-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 16px;
}

.featured-intro {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.7;
}

.featured-intro strong {
    color: var(--accent);
}

.featured-content > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.spec-item {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
}

.spec-item strong {
    min-width: 60px;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

.spec-item span {
    color: var(--text-light);
}

/* ============================================
   GRILLE D'ACTUALITÉS (Masonry-like)
   ============================================ */
.actu-grid-section {
    padding: 0 0 80px;
    background: #fff;
}

.actu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
}

/* Cards hautes (span 2 rows) */
.actu-card--tall {
    grid-row: span 2;
}

/* Cards larges (span 2 cols) */
.actu-card--wide {
    grid-column: span 2;
}

/* ============================================
   CARTE ARTICLE
   ============================================ */
.actu-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.actu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.actu-card-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.actu-card:not(.actu-card--tall) .actu-card-image {
    height: 200px;
}

.actu-card--tall .actu-card-image {
    height: 260px;
}

.actu-card--wide .actu-card-image {
    height: 240px;
}

.actu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.actu-card:hover .actu-card-image img {
    transform: scale(1.06);
}

.actu-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actu-card:hover .actu-card-overlay {
    opacity: 1;
}

.actu-card-overlay .btn {
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.actu-card:hover .actu-card-overlay .btn {
    transform: translateY(0);
}

.actu-card-overlay .btn:hover {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 6px 28px rgba(93, 164, 34, 0.4);
}

.actu-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actu-card-body h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.actu-card:hover .actu-card-body h3 {
    color: var(--accent);
}

.actu-card-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
}

/* Mini specs (tags) */
.actu-specs-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.actu-specs-mini span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fff;
    color: var(--text-light);
    border: 1px solid rgba(0,0,0,0.06);
}

/* ============================================
   WIDE CARD : layout horizontal
   ============================================ */
.actu-card--wide {
    flex-direction: row;
}

.actu-card--wide .actu-card-image {
    width: 45%;
    height: auto;
    min-height: 240px;
}

.actu-card--wide .actu-card-body {
    width: 55%;
    justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .actu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actu-card--wide {
        grid-column: span 2;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .actu-grid {
        grid-template-columns: 1fr;
    }

    .actu-card--tall {
        grid-row: span 1;
    }

    .actu-card--wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .actu-card--wide .actu-card-image {
        width: 100%;
        height: 200px;
    }

    .actu-card--wide .actu-card-body {
        width: 100%;
    }

    .featured-content {
        padding: 28px 24px;
    }

    .featured-image {
        min-height: 240px;
    }
}

/* ============================================
   BANDEAU FIL D'ACTUALITÉS (ticker défilant)
   ============================================ */
.actu-ticker {
    display: flex;
    align-items: stretch;
    background: var(--primary-dark, #1f2733);
    color: #fff;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.actu-ticker-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 18px;
    background: var(--accent);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Pastille "en direct" clignotante */
.actu-ticker-label span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: #fff;
    vertical-align: middle;
    animation: actu-ticker-blink 1.4s ease-in-out infinite;
}

.actu-ticker-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

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

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

.actu-ticker-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.actu-ticker-item {
    display: flex;
    align-items: center;
    padding: 11px 0;
    font-size: 0.9rem;
    color: #e6e9ee;
}

/* Séparateur en pastille accent entre chaque info */
.actu-ticker-item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 26px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.actu-ticker-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.actu-ticker-item a:hover,
.actu-ticker-item a:focus {
    color: var(--accent);
    text-decoration: underline;
}

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

@keyframes actu-ticker-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

@media (max-width: 640px) {
    .actu-ticker-label {
        padding: 0 12px;
        font-size: 0.74rem;
    }
    .actu-ticker-item {
        font-size: 0.84rem;
    }
    .actu-ticker-item::before {
        margin: 0 18px;
    }
}

/* Accessibilité : pas de défilement si l'utilisateur le refuse */
@media (prefers-reduced-motion: reduce) {
    .actu-ticker-track {
        animation: none;
    }
    .actu-ticker-list[aria-hidden="true"] {
        display: none;
    }
    .actu-ticker-viewport {
        overflow-x: auto;
    }
    .actu-ticker-label span::before {
        animation: none;
    }
}
