/* ========================================
   ACTU FINANCE AUJOURD'HUI - STYLES CSS
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rouge-principal: #dc2626;
    --noir: #111827;
    --gris-fonce: #374151;
    --gris-moyen: #6b7280;
    --gris-clair: #f3f4f6;
    --blanc: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--noir);
    background-color: var(--gris-clair);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--noir);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--rouge-principal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* === HEADER === */
.site-header {
    background-color: var(--blanc);
    border-bottom: 3px solid var(--rouge-principal);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.logo-link {
    display: block;
}

.logo-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-icon, .menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--noir);
    padding: 5px 10px;
}

.search-icon:hover, .menu-toggle:hover {
    color: var(--rouge-principal);
}

/* === NAVIGATION === */
.main-nav {
    background-color: var(--noir);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 15px 25px;
    color: var(--blanc);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: var(--rouge-principal);
    text-decoration: none;
}

/* === BANDEAU DERNIÈRE MINUTE === */
.breaking-news {
    background-color: var(--rouge-principal);
    color: var(--blanc);
    padding: 12px 0;
    overflow: hidden;
}

.breaking-news-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    background-color: var(--blanc);
    color: var(--rouge-principal);
    padding: 5px 15px;
    border-radius: 3px;
}

.breaking-text {
    font-size: 0.95rem;
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* === HERO SECTION === */
.hero-section {
    background-color: var(--blanc);
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-content {
    padding: 20px;
}

.hero-category {
    display: inline-block;
    background-color: var(--rouge-principal);
    color: var(--blanc);
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 3px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gris-fonce);
    margin-bottom: 25px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gris-moyen);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--rouge-principal);
    color: var(--blanc);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #b91c1c;
    text-decoration: none;
}

/* === SECTIONS PRINCIPALES === */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px 0;
}

.content-area {
    background-color: transparent;
}

/* === GRILLE D'ARTICLES === */
.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--rouge-principal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 35px;
    background-color: var(--rouge-principal);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background-color: var(--noir);
    color: var(--blanc);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-radius: 3px;
}

.article-category.category-enquete {
    background-color: var(--rouge-principal);
}

.article-category.category-fintech {
    background-color: #2563eb;
}

.article-category.category-interview {
    background-color: #059669;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-title a {
    color: var(--noir);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--rouge-principal);
}

.article-excerpt {
    color: var(--gris-fonce);
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gris-moyen);
}

/* === SIDEBAR === */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background-color: var(--blanc);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rouge-principal);
}

.popular-articles-list {
    list-style: none;
}

.popular-articles-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--gris-clair);
}

.popular-articles-list li:last-child {
    border-bottom: none;
}

.popular-article-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.popular-article-title a {
    color: var(--noir);
}

.popular-article-title a:hover {
    color: var(--rouge-principal);
}

.popular-article-date {
    font-size: 0.8rem;
    color: var(--gris-moyen);
}

/* === NEWSLETTER === */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form p {
    font-size: 0.9rem;
    color: var(--gris-fonce);
}

.newsletter-form input[type="email"] {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--rouge-principal);
}

/* === ARTICLE PAGE === */
.article-page {
    background-color: var(--blanc);
    max-width: 900px;
    margin: 40px auto;
    padding: 50px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 40px;
}

.article-page .article-category {
    margin-bottom: 20px;
}

.article-page h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.article-chapo {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--gris-fonce);
    font-style: italic;
    margin-bottom: 30px;
    padding-left: 30px;
    border-left: 4px solid var(--rouge-principal);
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--gris-clair);
    border-bottom: 1px solid var(--gris-clair);
    margin-bottom: 30px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.author-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gris-moyen);
}

.article-featured-image {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 8px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-body h2 {
    font-size: 2.2rem;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--noir);
}

.article-body h3 {
    font-size: 1.7rem;
    margin-top: 35px;
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

/* === ENCADRÉS === */
.encadre {
    background-color: var(--gris-clair);
    border-left: 5px solid var(--rouge-principal);
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.encadre-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--noir);
}

.testimonial {
    background-color: #fef3c7;
    border-left: 5px solid #f59e0b;
    padding: 25px;
    margin: 30px 0;
    border-radius: 5px;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--gris-fonce);
}

.editorial-box {
    background-color: #dbeafe;
    border: 2px solid #2563eb;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.editorial-box h3 {
    color: #2563eb;
    margin-top: 0;
}

/* === INTERVIEW Q&A === */
.interview-qa {
    margin: 30px 0;
}

.question {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--rouge-principal);
    margin-bottom: 15px;
    margin-top: 30px;
}

.answer {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-left: 20px;
}

/* === CLASSEMENT / TABLEAU === */
.classement-item {
    background-color: var(--blanc);
    border: 2px solid var(--gris-clair);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.classement-item:hover {
    border-color: var(--rouge-principal);
}

.classement-item.top-rank {
    border-color: var(--rouge-principal);
    background-color: #fef2f2;
}

.classement-rank {
    display: inline-block;
    background-color: var(--noir);
    color: var(--blanc);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
}

.classement-item.top-rank .classement-rank {
    background-color: var(--rouge-principal);
}

.classement-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* === ÉQUIPE RÉDACTION === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--blanc);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.team-member-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.team-member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.team-member-name {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

.team-member-role {
    color: var(--rouge-principal);
    font-weight: 600;
    font-size: 0.95rem;
}

.team-member-bio {
    line-height: 1.7;
}

/* === FORMULAIRE CONTACT === */
.contact-form {
    max-width: 700px;
    margin: 40px auto;
    background-color: var(--blanc);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--noir);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rouge-principal);
}

/* === FOOTER === */
.site-footer {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--blanc);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--blanc);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* === SOCIAL SHARE === */
.social-share {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--gris-clair);
    border-radius: 8px;
}

.social-share-label {
    font-weight: 600;
    margin-right: 10px;
}

.social-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    color: var(--blanc);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

/* === BREADCRUMB === */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gris-moyen);
}

.breadcrumb a:hover {
    color: var(--rouge-principal);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--gris-moyen);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-article {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-list a {
        padding: 12px 20px;
    }
    
    .article-page {
        padding: 30px 20px;
    }
    
    .article-page h1 {
        font-size: 2rem;
    }
    
    .article-chapo {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* === UTILITAIRES === */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.highlight {
    background-color: #fef08a;
    padding: 2px 6px;
    border-radius: 3px;
}

.text-rouge {
    color: var(--rouge-principal);
}

/* === LOADING & ANIMATIONS === */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

