* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    line-height: 1.6;
}

h1{
    margin-top: 25%;
}

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

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.nav-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.nav-pill {
    background: white;
    color: #666;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.nav-pill:hover, .nav-pill.active {
    background: #ffb103;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 177, 3, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.featured-post {
    background-color: black;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: scale(1.02);
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 177, 3, 0.1), rgba(0,0,0,0.3));
}

.featured-post .content {
    position: relative;
    z-index: 2;
}

.featured-tag {
    background: #ffb103;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.read-more {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.read-more:hover {
    background: #ffb103;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 177, 3, 0.4);
}

.sidebar {
    background: #ffb103;
    border-radius: 20px;
    padding: 40px 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.sidebar-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 15px;
    position: relative;
}

.sidebar-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sidebar-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-button {
    background: white;
    color: #ffb103;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.post-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffb103;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-link {
    color: #ffb103;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.post-link:hover {
    color: #333;
}

.post-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.services-showcase {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    border-radius: 20px;
    padding: 50px 40px;
    margin: 60px 0;
    color: white;
    text-align: center;
}

.services-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 15px;
}

.services-subtitle {
    color: #ffb103;
    font-size: 18px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 177, 3, 0.2);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 177, 3, 0.1);
    transform: translateY(-5px);
    border-color: #ffb103;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: #ffb103;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 13px;
    opacity: 0.8;
}

/* Modal pour les articles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #ffb103, #e09003);
    color: white;
    padding: 30px 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    line-height: 1.8;
}

.modal-body h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-body h3 {
    color: #ffb103;
    margin: 30px 0 15px 0;
    font-size: 22px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #555;
}

.highlight-box {
    background: linear-gradient(135deg, #fff5e6, #ffebcc);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffb103;
    margin: 20px 0;
}

.highlight-box h4 {
    color: #ffb103;
    margin-bottom: 10px;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

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

    .main-title {
        font-size: 36px;
    }

    .featured-title {
        font-size: 24px;
    }

    .nav-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 10px auto;
    }

    .modal-body {
        padding: 20px;
    }
}