/* ========================================
   Articles Index Page - Light Background Styles
   ======================================== */
/* La page actualites utilise un fond clair (pas primary-bg) */
/* Ces styles sont specifiques pour les pages sur fond clair */

body:not(.primary-bg) .page-badge {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

body:not(.primary-bg) .page-description {
    color: var(--muted-foreground);
    font-size: 1rem;
}

body:not(.primary-bg) main {
    padding-top: 128px;
    padding-bottom: 96px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #ffffff;
}

body:not(.primary-bg) .back-link {
    color: var(--muted-foreground);
}

body:not(.primary-bg) .back-link:hover {
    color: var(--foreground);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.5s;
}

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

.article-image {
    position: relative;
    height: 208px;
    overflow: hidden;
}

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

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 35, 116, 0.8), transparent);
}

.article-logo-placeholder {
    width: 140px;
    height: auto;
    opacity: 0.9;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.article-image:has(.article-logo-placeholder) {
    background: linear-gradient(135deg, var(--primary) 0%, #041a52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.article-content {
    padding: 1.5rem;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.article-card:hover .article-content h3 {
    color: var(--accent);
}

.article-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.article-link:hover {
    gap: 12px;
}


/* ========================================
   Article Show Page
   ======================================== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 600;
}

.article-hero {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, #041a52 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 35, 116, 0.4);
}

.hero-placeholder {
    position: relative;
    z-index: 1;
    color: var(--primary-foreground);
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    opacity: 0.5;
    letter-spacing: 4px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-badge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.4rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
}

.article-meta strong {
    color: var(--primary);
}

.article-container .article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--foreground);
}

.article-container .article-content p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary);
    float: left;
    line-height: 1;
    padding-right: 0.5rem;
}

.article-cta {
    background-color: var(--primary);
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}

.article-cta-location {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-cta h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-foreground);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-cta-date {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-cta-insight {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    font-style: italic;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-foreground);
    transform: translateY(-2px);
}

.similar-articles {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.similar-articles h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-align: center;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, #041a52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image span {
    color: var(--primary-foreground);
    opacity: 0.3;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.card-logo-placeholder {
    width: 120px;
    height: auto;
    opacity: 0.8;
    object-fit: contain;
}

.card-content {
    padding: 1.5rem;
}

.card-badge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card-date {
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

/* Article Show Page Responsive */
@media (max-width: 768px) {
    .article-hero {
        height: 300px;
    }

    .article-title {
        font-size: 2rem;
    }
}


/* ========================================
   Articles Page - Wrapper style for softer contrast
   ======================================== */

/* Wrapper container with subtle background to soften contrast */
.articles-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.articles-wrapper .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.articles-wrapper .article-card {
    display: block;
    text-decoration: none;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.articles-wrapper .article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.18);
}

.articles-wrapper .article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.articles-wrapper .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.articles-wrapper .article-card:hover .article-image img {
    transform: scale(1.05);
}

.articles-wrapper .article-image::after {
    display: none;
}

.articles-wrapper .article-image:has(.article-logo-placeholder) {
    background: linear-gradient(135deg, var(--primary) 0%, #041a52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-wrapper .article-logo-placeholder {
    width: 140px;
    height: auto;
    opacity: 0.9;
    object-fit: contain;
    position: static;
    transform: none;
}

.articles-wrapper .article-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.articles-wrapper .article-content {
    padding: 1.5rem;
}

.articles-wrapper .article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.articles-wrapper .article-date svg {
    color: var(--accent);
}

.articles-wrapper .article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--foreground);
    line-height: 1.4;
}

.articles-wrapper .article-content p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.articles-wrapper .article-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.articles-wrapper .article-link-text svg {
    transition: transform 0.2s ease;
}

.articles-wrapper .article-card:hover .article-link-text {
    color: var(--accent);
}

.articles-wrapper .article-card:hover .article-link-text svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .articles-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }

    .articles-wrapper .articles-grid {
        grid-template-columns: 1fr;
    }
}

