/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ==================== HEADER - COULEUR VERTE ==================== */
.main-header {
    background-color: #2e7d32;  /* Vert dominant */
    border-bottom: 3px solid #1b5e20;
    padding: 1.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0;
}

.logo p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #c8e6c9;
    text-align: center;
}

.event-badge .date {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #c8e6c9;
}

.event-badge .event-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.subscribe-btn {
    background-color: #ffffff;
    color: #2e7d32;
    border: none;
    padding: 8px 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background-color: #1b5e20;
    color: #ffffff;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    background-color: #ffffff;
    border-bottom: 2px solid #2e7d32;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.main-nav ul li a {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #2e7d32;
}

/* ==================== MAIN CONTENT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.content-grid {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #2e7d32;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
}

.section-header a {
    font-size: 0.8rem;
    color: #2e7d32;
    text-decoration: none;
}

.section-header a:hover {
    text-decoration: underline;
}

/* Article principal */
.main-article {
    margin-bottom: 2rem;
}

.main-article h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.danger-alert {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.article-description {
    font-size: 1rem;
    color: #444;
    margin: 0.5rem 0;
}

.author {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

.related-links {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #2e7d32;
}

.related-links li {
    margin: 0.5rem 0;
}

.related-links li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
}

.related-links li a:hover {
    color: #2e7d32;
}

/* Grille mini-articles */
.mini-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mini-article {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.mini-article h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mini-article h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.mini-article h3 a:hover {
    color: #2e7d32;
}

.mini-article p {
    font-size: 0.85rem;
    color: #666;
}

/* Sidebar widgets */
.sidebar-widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.weather {
    background-color: #f5f5f5;
    padding: 1rem;
    text-align: center;
}

.weather .temp {
    font-size: 2rem;
    font-weight: 700;
}

.bourse {
    background-color: #f5f5f5;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.bourse .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e7d32;
}

.fil-info {
    background-color: #f9f9f9;
    padding: 0.5rem;
}

.info-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.info-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2e7d32;
    text-transform: uppercase;
}

.info-text {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: #444;
}

.info-link {
    display: block;
    margin-top: 0.75rem;
    text-align: right;
    font-size: 0.8rem;
    color: #2e7d32;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

/* ==================== ARTICLE COMPLET ==================== */
.full-article {
    background: #fff;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.85rem;
    color: #888;
}

.article-category {
    color: #2e7d32;
    font-weight: 700;
}

.article-danger {
    background-color: #fff3f0;
    border-left: 4px solid #e74c3c;
    padding: 1rem;
    margin: 1rem 0;
}

.article-image {
    margin: 1.5rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-image .caption {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
}

.article-content h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #1a1a1a;
}

.article-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.article-tags {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
}

.tag {
    display: inline-block;
    background: #e8f5e9;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: #2e7d32;
}

/* Social share */
.social-share {
    background: #f5f5f5;
    padding: 1rem;
    margin-bottom: 2rem;
}

.social-share h4 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: Consolas, monospace;
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }

/* ==================== FORMULAIRE ==================== */
.form-page-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 0.5rem;
}

.form-container-custom {
    display: flex;
    gap: 2rem;
}

.form-sidebar-custom {
    flex: 1;
    background: #f9f9f9;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.form-sidebar-custom h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e7d32;
    color: #2e7d32;
}

.form-group-custom {
    margin-bottom: 1.25rem;
}

.form-group-custom label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-family: Consolas, monospace;
}

.form-group-custom select,
.form-group-custom input[type="color"],
.form-group-custom input[type="range"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    font-family: 'Playfair Display', serif;
}

.reset-btn-custom {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: Consolas, monospace;
    width: 100%;
    margin-top: 0.5rem;
}

.reset-btn-custom:hover {
    background: #1b5e20;
}

.preview-area {
    flex: 2;
}

.preview-card-custom {
    background: white;
    border: 1px solid #ddd;
    padding: 1.5rem;
    max-height: 550px;
    overflow-y: auto;
}

.preview-card-custom h2 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ==================== FOOTER - COULEUR VERTE ==================== */
footer {
    background-color: #2e7d32;
    color: #c8e6c9;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: Helvetica, Arial, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ffffff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #c8e6c9;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #1b5e20;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #ffffff;
    color: #2e7d32;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background-color: #1b5e20;
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: #c8e6c9;
}

.newsletter-form button {
    background-color: #ffffff;
    color: #2e7d32;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: Consolas, monospace;
}

.newsletter-form button:hover {
    background-color: #1b5e20;
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1.5rem 20px 0;
    border-top: 1px solid #1b5e20;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #c8e6c9;
    margin-bottom: 0.5rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #c8e6c9;
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .event-badge {
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .mini-articles {
        grid-template-columns: 1fr;
    }
    
    .form-container-custom {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}