/* Variables et reset */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #004e98;
    --astra-orange: #ff9800;
    --accent-color: #ff9a3c;
    --light-color: #f0f5fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --blue: #1E78B4;
    --orange: #F1642C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}


.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    animation: fadeIn 1s ease-in;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue);
    margin-left: 10px;
    align-items: left;
}

.logo img {
    height: 50px;
    width: 50px;
    margin-left: 10px;
    border-radius: 50px;
    float: left;

}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--orange);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.active::after {
    width: 100% !important;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .menu-btn {
        display: block;
    }

    nav {
        position: relative;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(30, 120, 180, 0.9), rgba(241, 100, 44, 0.8)), url('/api/placeholder/1200/800') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--yellow);
    color: var(--dark-gray);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* Blog Section */
.blog-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem ;
    margin-top: 25px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.8s ease-in-out;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.article-content {
    padding: 1.5rem;
}

.article-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.article-date i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

 /* Footer */
footer {
    background-color: var(--blue);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    color: #f8a326;
    transition: .3s;
}

.footer-col h3:hover {
    color: antiquewhite;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--orange), var(--yellow));
    bottom: 0;
    left: 0;
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--yellow);
}

.contact-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--yellow);
    margin-right: 10px;
    width: 20px;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--astra-orange);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--main-color);
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--astra-orange);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}


 /* Animations */
 @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animated-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.animated-text.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        margin-bottom: 30px;
    }

    

    .hero h1 {
        font-size: 2.5rem;
    }
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.pagination-item.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination-item:hover:not(.active) {
    background-color: var(--light-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .articles-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    



    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: var(--radius);
        margin-bottom: 1rem;
    }

    .newsletter-btn {
        border-radius: var(--radius);
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .articles-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}


/* ajustement le 28/06/2022 a 10h: 02 AM*/
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .globe-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .globe-container {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}