/* Reset minimal et base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header ultra-simple */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header p {
    color: #666;
    font-size: 1rem;
}

/* Main content */
main {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Feed d'accueil */
.articles-feed {
    max-width: 600px;
    margin: 0 auto;
}

.feed-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feed-item h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feed-item h2 a:hover {
    color: #3498db;
}

.feed-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Article page */
.article-content {
    max-width: 700px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.article-content h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.4rem;
    color: #1a252f;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.2rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

.article-content h4 {
    font-size: 1.1rem;
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 2rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Solution express */
.quick-solution {
    background: #f8fffe;
    border: 1px solid #2ecc71;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.quick-solution h2 {
    color: #27ae60;
    margin-bottom: 1rem;
    margin-top: 0;
}

.quick-solution p {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.quick-solution p:last-child {
    margin-bottom: 0;
}

/* Pro tip */
.pro-tip {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.pro-tip h4 {
    color: #856404;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.pro-tip p {
    margin-bottom: 0;
    color: #856404;
}

/* Hero section */
.hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-feature {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.hero-feature h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    padding: 0.1rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.expertise-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}


.expertise-about p {
    color: #5d6d7e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.expertise-about p:last-child {
    margin-bottom: 0;
}

.articles-section {
    margin: 3rem 0;
}

.articles-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.articles-preview {
    margin-bottom: 2rem;
}

.article-preview {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
}

.article-preview h4 {
    margin-bottom: 1rem;
}

.article-preview h4 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
}

.article-preview h4 a:hover {
    color: #3498db;
}

.article-preview p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.view-all-button:hover {
    background: #2980b9;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #95a5a6;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

/* Legal pages */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

/* Cookie Consent Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-text p:first-child {
    margin-bottom: 0.5rem;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings {
    background: transparent;
    color: white;
    border: 1px solid #95a5a6;
}

.cookie-settings:hover {
    background: #95a5a6;
}

.cookie-accept {
    background: #e74c3c;
    color: white;
}

.cookie-accept:hover {
    background: #c0392b;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cookie-category {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #e8ecef;
    border-radius: 6px;
}

.cookie-switch {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.cookie-switch input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background: #ccc;
    border-radius: 13px;
    transition: background 0.3s;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.cookie-switch input[type="checkbox"]:checked {
    background: #27ae60;
}

.cookie-switch input[type="checkbox"]:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.cookie-switch input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-switch input[type="checkbox"]:checked::after {
    transform: translateX(24px);
}

.cookie-info strong {
    color: #2c3e50;
    font-size: 1rem;
}

.cookie-info p {
    color: #5d6d7e;
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-save {
    background: #2c3e50;
    color: white;
    flex: 1;
}

.cookie-save:hover {
    background: #34495e;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #27ae60;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1002;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.notification-content span {
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-close:hover {
    background: rgba(255,255,255,0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cookie-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

.legal-content h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 1rem 0 2rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: #3498db;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Layout avec sidebar */
.main-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    max-width: 800px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Page description */
.page-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.article-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.article-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.article-card h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #3498db;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.read-article {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-article:hover {
    color: #2980b9;
}

/* Coming soon articles */
.coming-soon-card {
    opacity: 0.7;
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Newsletter signup */
.newsletter-signup {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-signup h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 250px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.newsletter-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Sidebar */
.sidebar-widget {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #e9ecef;
    padding: 0.8rem 0;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list a:hover {
    color: #3498db;
}

.categories-list a.active {
    color: #2c3e50;
    font-weight: 600;
}

.categories-list span {
    font-size: 0.8rem;
    color: #888;
}


/* AdSense placeholders */
.ad-banner-header {
    text-align: center;
    margin: 1rem 0;
}

.ad-content-middle {
    text-align: center;
    margin: 3rem 0;
}

.ad-sidebar {
    margin-bottom: 2rem;
}

.ad-label {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #ddd;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero-feature,
    .article-preview,
    .article-card,
    .newsletter-signup {
        padding: 1.5rem;
    }
    
    .main-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
        max-width: 300px;
    }
    
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .feed-item {
        margin-bottom: 2rem;
    }
    
    .article-content h1 {
        font-size: 1.6rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .quick-solution {
        padding: 1.5rem;
    }
    
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero-feature,
    .article-preview,
    .article-card,
    .newsletter-signup,
    .quick-solution {
        padding: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .article-content h1 {
        font-size: 1.5rem;
    }
    
}